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

/* ── 基础变量 ── */
:root {
  --c-green: #69ff69;
  --c-cyan: #00ffff;
  --c-dark: #172617;
  --c-dark2: #1e3a1e;
  --c-dark3: #0d1a0d;
  --c-glass: rgba(105,255,105,0.07);
  --c-glass-border: rgba(105,255,105,0.18);
  --c-text: #e8ffe8;
  --c-muted: rgba(232,255,232,0.55);
  --font-head: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Space Grotesk', system-ui, sans-serif;
  --radius-card: 10px;
  --nav-h: 64px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--c-dark3);
  color: var(--c-text);
  line-height: 1.65;
  overflow-x: hidden;
}

body.home-page {
  background: linear-gradient(160deg, var(--c-dark3) 0%, var(--c-dark) 50%, #0a200a 100%);
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-cyan); }
ul, ol { list-style: none; }

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

/* ── Page Wrapper ── */
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* ════════════════════════════════
   HEADER / NAV
════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13,26,13,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-glass-border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid var(--c-green);
  background: var(--c-glass);
  color: var(--c-green);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  transition: box-shadow var(--transition);
}
.brand-icon:hover { box-shadow: 0 0 16px var(--c-green); color: var(--c-green); }
.logo-text-mark { font-size: 0.85rem; font-weight: 700; }
.site-logo-img { width: 32px; height: 32px; object-fit: contain; }

/* nav > ol > li > a  — 结构抽签 */
.primary-nav { flex: 1; overflow: hidden; }
.primary-nav > ol {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.primary-nav > ol::-webkit-scrollbar { display: none; }
.primary-nav > ol > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  min-height: 40px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-muted);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.primary-nav > ol > li > a:hover {
  background: var(--c-glass);
  color: var(--c-green);
  box-shadow: 0 0 10px rgba(105,255,105,0.15);
}
.nav-num {
  font-size: 0.68rem;
  color: var(--c-green);
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--c-glass-border);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-green);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(13,26,13,0.97);
  border-bottom: 1px solid var(--c-glass-border);
  padding: 16px 24px 24px;
  z-index: 99;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > ol { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu > ol > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  min-height: 48px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--c-text);
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.mobile-menu > ol > li > a:hover {
  background: var(--c-glass);
  border-color: var(--c-glass-border);
  color: var(--c-green);
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 48px 24px 40px;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  right: -2%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: clamp(120px, 22vw, 260px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(105,255,105,0.08);
  user-select: none;
  pointer-events: none;
  line-height: 1;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-copy { flex: 1; max-width: 560px; }

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--c-cyan);
  box-shadow: 0 0 6px var(--c-cyan);
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-green);
  text-shadow: 0 0 30px rgba(105,255,105,0.35), 0 0 60px rgba(105,255,105,0.15);
  margin-bottom: 16px;
}

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

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  min-height: 44px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-green) 0%, #00cc00 100%);
  color: var(--c-dark3);
  box-shadow: 0 0 20px rgba(105,255,105,0.4);
}
.btn-primary:hover {
  box-shadow: 0 0 32px rgba(105,255,105,0.65);
  transform: translateY(-1px);
  color: var(--c-dark3);
}
.btn-ghost {
  background: var(--c-glass);
  color: var(--c-cyan);
  border: 1.5px solid var(--c-cyan);
  box-shadow: 0 0 12px rgba(0,255,255,0.15);
}
.btn-ghost:hover {
  background: rgba(0,255,255,0.12);
  box-shadow: 0 0 24px rgba(0,255,255,0.35);
  color: var(--c-cyan);
  transform: translateY(-1px);
}

/* hero collage */
.hero-collage {
  flex-shrink: 0;
  position: relative;
  width: 280px;
  height: 260px;
}

.collage-card {
  position: absolute;
  border-radius: var(--radius-card);
  border: 1px solid var(--c-glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float-card 4s ease-in-out infinite;
}
.collage-card--a {
  background: linear-gradient(135deg, rgba(105,255,105,0.15), rgba(0,255,255,0.08));
  width: 160px; height: 100px;
  top: 0; left: 0;
  animation-delay: 0s;
  box-shadow: 0 4px 24px rgba(105,255,105,0.2);
}
.collage-card--b {
  background: linear-gradient(135deg, rgba(0,255,255,0.15), rgba(105,255,105,0.08));
  width: 140px; height: 90px;
  bottom: 20px; right: 0;
  animation-delay: 1.3s;
  box-shadow: 0 4px 24px rgba(0,255,255,0.2);
}
.collage-card--c {
  background: linear-gradient(135deg, rgba(105,255,105,0.1), rgba(0,255,255,0.12));
  width: 120px; height: 80px;
  bottom: 0; left: 30px;
  animation-delay: 2.6s;
  box-shadow: 0 4px 16px rgba(105,255,105,0.15);
}

.collage-inner { text-align: center; }
.collage-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 4px;
}
.collage-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-green);
  text-shadow: 0 0 12px rgba(105,255,105,0.5);
}
.collage-num small { font-size: 0.8em; color: var(--c-cyan); }

@keyframes float-card {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* sparkles */
.hero-sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.spark {
  position: absolute;
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  animation: spark-pulse 2.5s ease-in-out infinite;
}
.spark::before, .spark::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.spark::before { width: 2px; height: 14px; top: -4px; left: 2px; }
.spark::after  { width: 14px; height: 2px; top: 2px; left: -4px; }
.spark-1 { color: var(--c-green); top: 15%; left: 10%; animation-delay: 0s; }
.spark-2 { color: var(--c-cyan); top: 70%; left: 25%; animation-delay: 0.8s; }
.spark-3 { color: var(--c-green); top: 30%; right: 8%; animation-delay: 1.6s; }
.spark-4 { color: var(--c-cyan); bottom: 10%; right: 20%; animation-delay: 0.4s; }
@keyframes spark-pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(45deg); }
}

/* ════════════════════════════════
   CONTENT BODY SECTION
   main > div > figure/aside 交错 — 结构抽签
════════════════════════════════ */
.content-body-section {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto 1fr;
  gap: 32px;
  align-items: start;
}

/* aside 在内容左侧 — 结构抽签 */
.content-aside {
  grid-column: 1;
  grid-row: 1 / 3;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}

.aside-glass {
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-card);
  padding: 20px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.aside-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 14px;
}

.aside-links { display: flex; flex-direction: column; gap: 4px; }
.aside-links li a {
  display: block;
  padding: 8px 10px;
  min-height: 40px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--c-muted);
  transition: background var(--transition), color var(--transition);
  line-height: 1.5;
  display: flex;
  align-items: center;
}
.aside-links li a:hover {
  background: rgba(105,255,105,0.1);
  color: var(--c-green);
}

.aside-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--c-glass-border);
  font-size: 0.75rem;
  color: var(--c-green);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 8px var(--c-green);
  animation: dot-blink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* figure — 直接子元素在 div 内，结构抽签 */
.content-hero-figure {
  grid-column: 2;
  grid-row: 1;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--c-glass-border);
  background: var(--c-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.figure-glow-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: linear-gradient(135deg, rgba(105,255,105,0.08) 0%, rgba(0,255,255,0.06) 100%);
  padding: 24px;
}

.figure-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.figure-placeholder span {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--c-green);
  text-shadow: 0 0 20px rgba(105,255,105,0.4);
  letter-spacing: 0.04em;
}
.hero-brand-img { max-height: 80px; object-fit: contain; }

.content-hero-figure figcaption {
  padding: 10px 16px;
  font-size: 0.75rem;
  color: var(--c-muted);
  text-align: center;
  border-top: 1px solid var(--c-glass-border);
  letter-spacing: 0.06em;
}

/* page-content-body */
.page-content-body {
  grid-column: 2;
  grid-row: 2;
}

/* ── Content Typography ── */
.page-content-body h2 {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--c-green);
  margin: 2.4em 0 0.6em;
  letter-spacing: -0.01em;
  text-shadow: 0 0 20px rgba(105,255,105,0.2);
}
.page-content-body h3 {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--c-cyan);
  margin: 1.8em 0 0.5em;
}
.page-content-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  margin: 1.4em 0 0.4em;
}
.page-content-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(232,255,232,0.85);
  margin-bottom: 1em;
}
.page-content-body ul,
.page-content-body ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}
.page-content-body ul { list-style: disc; }
.page-content-body ol { list-style: decimal; }
.page-content-body li {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(232,255,232,0.82);
  margin-bottom: 0.3em;
}
.page-content-body a {
  color: var(--c-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-content-body a:hover { color: var(--c-green); }

.page-content-body div {
  padding: 40px 0;
  border-bottom: 1px solid var(--c-glass-border);
  position: relative;
}
.page-content-body div:last-child { border-bottom: none; }

.page-content-body small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 8px;
}

/* ════════════════════════════════
   FOOTER
   footer address + ul — 结构抽签
════════════════════════════════ */
.site-footer {
  background: rgba(9,17,9,0.9);
  border-top: 1px solid var(--c-glass-border);
  padding: 40px 24px 0;
  margin-top: auto;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-style: normal;
}
.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: 0.02em;
}
.footer-desc {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.6;
  max-width: 320px;
}
.footer-email {
  font-size: 0.82rem;
  color: var(--c-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links-col > ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-links-col > ul > li > a {
  display: block;
  padding: 7px 0;
  min-height: 40px;
  font-size: 0.85rem;
  color: var(--c-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.footer-links-col > ul > li > a:hover { color: var(--c-green); }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 0 24px;
  border-top: 1px solid var(--c-glass-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--c-muted);
}
.footer-disclaimer {
  font-size: 0.72rem;
  color: rgba(232,255,232,0.35);
}

/* ════════════════════════════════
   STAGGER ANIMATION
════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .collage-card { animation-play-state: running; }
  .spark { animation-play-state: running; }
  .badge-dot { animation-play-state: running; }

  .content-body-section { animation: fade-up 0.6s ease both; }
  .hero-copy { animation: fade-up 0.5s ease 0.1s both; }
  .hero-collage { animation: fade-in 0.6s ease 0.2s both; }

  @keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .collage-card, .spark, .badge-dot { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 900px) {
  .content-body-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .content-aside {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
  .content-hero-figure {
    grid-column: 1;
    grid-row: auto;
  }
  .page-content-body {
    grid-column: 1;
    grid-row: auto;
  }
  .hero-collage { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  .primary-nav { display: none; }
  .nav-toggle { display: flex; }

  .hero-section { min-height: 40vh; padding: 36px 16px 32px; }
  .hero-bg-text { font-size: clamp(80px, 30vw, 140px); right: -5%; }

  h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }

  .content-body-section { padding: 32px 16px 48px; gap: 20px; }

  .site-footer { padding: 32px 16px 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }

  .aside-links li a { min-height: 44px; }
  .footer-links-col > ul > li > a { min-height: 44px; }
  .primary-nav > ol > li > a { min-height: 44px; }
}

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