@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ── 变量 ── */
:root {
  --c-green: #69ff69;
  --c-cyan: #00ffff;
  --c-dark: #172617;
  --c-dark2: #1e321e;
  --c-dark3: #243824;
  --c-card: #1a2e1a;
  --c-border: rgba(105,255,105,0.18);
  --c-text: #d4f5d4;
  --c-muted: #7aaa7a;
  --c-white: #f0fff0;
  --radius-card: 28px;
  --radius-btn: 14px;
  --shadow-green: 0 0 18px rgba(105,255,105,0.45), 0 0 40px rgba(105,255,105,0.18);
  --shadow-cyan: 0 0 18px rgba(0,255,255,0.45), 0 0 40px rgba(0,255,255,0.18);
  --nav-h: 64px;
  --font-main: 'Lexend', 'Source Sans 3', system-ui, sans-serif;
}

/* ── 重置 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body { font-family: var(--font-main); background: var(--c-dark); color: var(--c-text); line-height: 1.65; min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-cyan); }
ul { list-style: none; }
input, button { font-family: inherit; }

/* ── 点阵底纹 ── */
.y2k-body {
  background-image:
    radial-gradient(circle, rgba(105,255,105,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── 页面包裹 ── */
.page-wrap { display: flex; flex-direction: column; min-height: 100vh; }

/* ══════════════════════════════
   导航 header > nav > p > a
══════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  background: rgba(23,38,23,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.logo-mark {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-green), var(--c-cyan));
  color: var(--c-dark);
  font-weight: 700; font-size: .95rem;
  text-decoration: none;
  box-shadow: var(--shadow-green);
  transition: box-shadow .25s;
}
.logo-mark:hover { box-shadow: var(--shadow-cyan); }
.site-logo-img { width: 40px; height: 40px; border-radius: 10px; }
.logo-text-mark { font-size: .9rem; font-weight: 700; color: var(--c-dark); }

.site-nav { flex: 1; overflow-x: auto; }
.site-nav p {
  display: flex; flex-wrap: nowrap; align-items: center;
  gap: 4px; white-space: nowrap;
}
.site-nav p a {
  color: var(--c-text);
  font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  padding: 10px 12px; border-radius: 8px;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: color .2s, background .2s;
}
.site-nav p a:hover {
  color: var(--c-green);
  background: rgba(105,255,105,0.08);
}

.nav-search {
  flex-shrink: 0; position: relative; display: flex; align-items: center;
}
.search-input {
  background: rgba(105,255,105,0.07);
  border: 1px solid var(--c-border);
  border-radius: 20px; color: var(--c-text);
  padding: 8px 36px 8px 14px; font-size: .82rem; width: 150px;
  outline: none; transition: border-color .2s, width .3s;
  min-height: 44px;
}
.search-input:focus { border-color: var(--c-cyan); width: 200px; }
.search-input::placeholder { color: var(--c-muted); }
.search-icon {
  position: absolute; right: 12px;
  color: var(--c-muted); font-size: 1.1rem; pointer-events: none;
}

/* ══════════════════════════════
   Hero
══════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 70vh;
  margin-top: var(--nav-h);
  display: flex; flex-direction: column-reverse;
  align-items: flex-end;
  overflow: hidden;
  padding: 48px 32px 40px;
  background: radial-gradient(ellipse 80% 60% at 60% 80%, rgba(0,255,255,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 30% 20%, rgba(105,255,105,0.07) 0%, transparent 65%),
              var(--c-dark);
}

/* 点阵装饰 */
.hero-dots {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle, rgba(105,255,105,0.12) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(0,255,255,0.08) 1px, transparent 1px);
  background-size: 36px 36px, 18px 18px;
  background-position: 0 0, 9px 9px;
}

.hero-text {
  position: relative; z-index: 2;
  text-align: right;
  max-width: 600px;
  margin-top: 32px;
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700; line-height: 1.2;
  background: linear-gradient(120deg, var(--c-green) 0%, var(--c-cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 22px rgba(105,255,105,0.5));
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1rem; color: var(--c-muted);
  line-height: 1.7; margin-bottom: 24px;
}

.hero-cta {
  display: inline-flex; align-items: center;
  padding: 14px 32px; border-radius: var(--radius-btn);
  background: linear-gradient(135deg, var(--c-green), var(--c-cyan));
  color: var(--c-dark); font-weight: 700; font-size: .95rem;
  letter-spacing: .04em;
  box-shadow: var(--shadow-green);
  transition: box-shadow .25s, transform .2s;
  min-height: 48px;
}
.hero-cta:hover {
  box-shadow: var(--shadow-cyan);
  transform: translateY(-2px);
  color: var(--c-dark);
}

.hero-media {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,255,255,0.2), 0 0 20px rgba(105,255,105,0.15);
  border: 1px solid rgba(0,255,255,0.15);
}
.hero-img { width: 100%; height: auto; display: block; }
.hero-media-placeholder {
  height: 280px;
  background: linear-gradient(135deg, rgba(105,255,105,0.08), rgba(0,255,255,0.1));
  display: flex; align-items: center; justify-content: center;
}

/* 铬球装饰 */
.chrome-orb {
  width: 120px; height: 120px; border-radius: 50%;
  display: block;
  background: radial-gradient(circle at 35% 30%, #c0ffc0 0%, #00ffff 35%, #172617 75%);
  box-shadow: 0 0 40px rgba(0,255,255,0.4), 0 0 80px rgba(105,255,105,0.2);
  animation: orb-pulse 3s ease-in-out infinite;
}
@keyframes orb-pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(0,255,255,0.4), 0 0 80px rgba(105,255,105,0.2); }
  50% { box-shadow: 0 0 60px rgba(0,255,255,0.6), 0 0 120px rgba(105,255,105,0.35); }
}

/* scroll margin for fixed nav */
div[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ══════════════════════════════
   内容区 main > section > div + aside
══════════════════════════════ */
.content-shell {
  display: flex; gap: 32px; align-items: flex-start;
  max-width: 1200px; margin: 0 auto;
  padding: 56px 24px 48px;
  width: 100%;
}

.main-content { flex: 1; min-width: 0; }
.main-article {}
.page-content-section {}

/* 正文内容样式 */
.page-content-section h2,
.main-article h2 {
  font-size: 1.5rem; font-weight: 700;
  color: var(--c-green);
  margin: 2.4rem 0 1rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--c-border);
  display: flex; align-items: center; gap: .5rem;
}
.page-content-section h2 span,
.main-article h2 span { color: var(--c-cyan); }

.page-content-section h3,
.main-article h3 {
  font-size: 1.18rem; font-weight: 600;
  color: var(--c-cyan); margin: 1.8rem 0 .8rem;
}
.page-content-section h3 span { color: var(--c-green); }

.page-content-section p,
.main-article p {
  margin-bottom: 1.1rem; color: var(--c-text);
  font-size: 1rem; line-height: 1.75;
}

.page-content-section ul,
.main-article ul {
  margin: .8rem 0 1.2rem 1.2rem;
  list-style: disc;
}
.page-content-section ul li,
.main-article ul li { margin-bottom: .45rem; color: var(--c-text); }

.page-content-section ol,
.main-article ol { margin: .8rem 0 1.2rem 1.4rem; }
.page-content-section ol li,
.main-article ol li { margin-bottom: .45rem; }

.page-content-section a { color: var(--c-cyan); }
.page-content-section a:hover { color: var(--c-green); }

/* 区块分隔 — div 卡片 */
.page-content-section > div,
.main-article div + div {
  border-top: 1px solid var(--c-border);
  padding-top: 2rem; margin-top: 2rem;
}

/* ── 泡泡糖卡片风格 ── */
.page-content-section .card,
.main-article .card {
  background: var(--c-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border);
  border-bottom: 3px solid var(--c-green);
  padding: 24px 28px;
  margin: 1.2rem 0;
}

/* ══════════════════════════════
   Aside 侧边栏
══════════════════════════════ */
.sidebar {
  width: 240px; flex-shrink: 0;
  position: sticky; top: calc(var(--nav-h) + 24px);
  display: flex; flex-direction: column; gap: 20px;
}

.aside-card {
  background: var(--c-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border);
  border-bottom: 3px solid var(--c-cyan);
  padding: 20px 18px;
}

.aside-title {
  font-size: .8rem; font-weight: 700;
  letter-spacing: .1em;
  color: var(--c-cyan); margin-bottom: 12px;
}
.aside-title span { color: var(--c-green); }

.aside-nav-list { display: flex; flex-direction: column; gap: 4px; }
.aside-nav-list li a {
  display: flex; align-items: center;
  color: var(--c-text); font-size: .85rem;
  padding: 10px 10px; border-radius: 8px;
  transition: background .2s, color .2s;
  min-height: 44px; line-height: 1.3;
}
.aside-nav-list li a:hover {
  background: rgba(105,255,105,0.1); color: var(--c-green);
}

.aside-desc { font-size: .82rem; color: var(--c-muted); line-height: 1.6; }

/* ══════════════════════════════
   Footer
══════════════════════════════ */
.site-footer {
  background: var(--c-dark2);
  border-top: 1px solid var(--c-border);
  margin-top: auto;
}

.footer-top {
  max-width: 1200px; margin: 0 auto;
  padding: 48px 24px 32px;
  border-bottom: 1px solid var(--c-border);
}
.footer-form-title {
  font-size: 1.2rem; font-weight: 700;
  color: var(--c-green); margin-bottom: 8px;
}
.footer-form-title span { color: var(--c-cyan); }
.footer-form-sub { font-size: .88rem; color: var(--c-muted); margin-bottom: 16px; }

.subscribe-form {
  display: flex; gap: 10px; flex-wrap: wrap; max-width: 460px;
}
.sub-input {
  flex: 1; min-width: 180px;
  background: rgba(105,255,105,0.07);
  border: 1px solid var(--c-border); border-radius: 10px;
  color: var(--c-text); padding: 12px 16px; font-size: .9rem;
  outline: none; transition: border-color .2s;
  min-height: 44px;
}
.sub-input:focus { border-color: var(--c-cyan); }
.sub-input::placeholder { color: var(--c-muted); }
.sub-btn {
  background: linear-gradient(135deg, var(--c-green), var(--c-cyan));
  color: var(--c-dark); font-weight: 700; font-size: .9rem;
  border: none; border-radius: 10px;
  padding: 12px 24px; cursor: pointer;
  min-height: 44px; transition: opacity .2s, transform .15s;
}
.sub-btn:hover { opacity: .88; transform: translateY(-1px); }

/* footer 三列 dl */
.footer-cols {
  max-width: 1200px; margin: 0 auto;
  padding: 32px 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.footer-dl {}
.footer-dl dt {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; color: var(--c-green);
  margin-bottom: 12px;
}
.footer-dl dd {
  font-size: .85rem; color: var(--c-muted);
  margin-bottom: 8px; line-height: 1.55;
}
.footer-dl dd a {
  color: var(--c-muted); transition: color .2s;
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 4px 0;
}
.footer-dl dd a:hover { color: var(--c-cyan); }

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding: 20px 24px; text-align: center;
}
.copyright { font-size: .78rem; color: var(--c-muted); }

/* ══════════════════════════════
   Scroll Reveal (JS 配合)
══════════════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ══════════════════════════════
   Glow 动画
══════════════════════════════ */
@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 8px rgba(105,255,105,0.5); }
  50% { text-shadow: 0 0 22px rgba(105,255,105,0.9), 0 0 40px rgba(0,255,255,0.4); }
}
.hero-h1 { animation: glow-pulse 4s ease-in-out infinite; }

/* ══════════════════════════════
   prefers-reduced-motion
══════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ══════════════════════════════
   响应式
══════════════════════════════ */
@media (max-width: 900px) {
  .content-shell { flex-direction: column; padding: 36px 16px 32px; }
  .sidebar { width: 100%; position: static; flex-direction: row; flex-wrap: wrap; }
  .aside-card { flex: 1; min-width: 220px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --nav-h: 56px; }
  .site-header { padding: 0 12px; gap: 8px; }
  .site-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .site-nav p { gap: 2px; }
  .site-nav p a { padding: 8px 7px; font-size: .72rem; min-height: 44px; }
  .search-input { width: 80px; min-height: 44px; }
  .search-input:focus { width: 130px; }
  .hero-section { padding: 32px 16px 28px; min-height: 70vh; }
  .hero-text { max-width: 100%; }
  .hero-h1 { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .hero-media { max-width: 100%; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-top { padding: 32px 16px 24px; }
  .subscribe-form { flex-direction: column; }
  .sub-input, .sub-btn { width: 100%; }
  .content-shell { padding: 28px 14px 24px; }
  .sidebar { flex-direction: column; }
  .footer-dl dd a { min-height: 44px; padding: 8px 0; }
}

/* ══════════════════════════════
   色彩强调线 — 卡片底线变体
══════════════════════════════ */
.aside-brand { border-bottom-color: var(--c-green); }

/* ══════════════════════════════
   sparkle 装饰 ::before
══════════════════════════════ */
.hero-text::before {
  content: '✦ ✦ ✦';
  display: block;
  font-size: .7rem; letter-spacing: .6em;
  color: var(--c-cyan); opacity: .6;
  margin-bottom: 12px; text-align: right;
}

button[aria-expanded]{min-width:44px;min-height:44px}
