/*
  样式文件 — 配色/布局/动画
  修改后推送到 GitHub 自动生效
*/
:root {
  --bg: #020617;
  --bg-2: #0a0f1e;
  --surface: #0f172a;
  --surface-2: #1a2332;
  --surface-3: #1e293b;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --cyan-glow: rgba(6, 182, 212, .18);
  --cyan-glow-2: rgba(6, 182, 212, .08);
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, .14);
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --border: rgba(255, 255, 255, .06);
  --border-2: rgba(255, 255, 255, .1);
  --radius: 6px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-glow: 0 0 30px var(--cyan-glow);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --width: min(1180px, calc(100vw - 56px));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  color: var(--text-2);
  background: var(--bg);
  font-family: "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
strong { color: var(--text); font-weight: 600; }

.container { width: var(--width); margin-inline: auto; }
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-dark { background: var(--bg-2); position: relative; }

.section-tag {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: clamp(40px, 6vw, 64px);
  color: var(--muted-2);
  font-size: 11px; font-weight: 650;
  text-transform: uppercase; letter-spacing: .22em;
}
.section-tag span {
  color: var(--cyan);
  font-weight: 750;
  background: rgba(6, 182, 212, .08);
  padding: 3px 8px; border-radius: 3px;
}
.section-tag::after { content: ""; flex: 1; height: 1px; margin-left: 6px; background: var(--border); }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.02em; line-height: 1.14; color: var(--text); }
h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.05; margin-bottom: 22px; }
h1 em { color: var(--cyan); font-style: normal; }
h2 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 16px; }
h3 { font-size: 19px; margin-bottom: 6px; }
h4 { font-size: 15px; margin-bottom: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
p { color: var(--muted); font-size: 15px; }

.overline {
  display: inline-block; margin-bottom: 12px;
  color: var(--cyan);
  font-size: 11px; font-weight: 650;
  text-transform: uppercase; letter-spacing: .16em;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #fff; background: var(--cyan);
  box-shadow: 0 4px 24px var(--cyan-glow);
}
.btn-primary:hover { background: var(--cyan-dark); box-shadow: 0 8px 36px var(--cyan-glow); }
.btn-glass {
  border: 1px solid var(--border-2);
  color: var(--text-2);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-glow-2); }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  padding: 0 max(24px, calc((100vw - var(--width)) / 2));
  transition: height .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  height: 60px;
  background: rgba(2, 6, 23, .85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 8px 32px rgba(0,0,0,.4);
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--text); }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: color .25s; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; bottom: -5px; left: 0;
  width: 0; height: 1.5px; background: var(--cyan);
  transition: width .3s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { width: 100%; }
.menu-btn { display: none; position: relative; z-index: 2; width: 32px; height: 24px; }
.menu-btn span { display: block; position: absolute; left: 0; width: 100%; height: 2px; background: var(--text); border-radius: 1px; transition: transform .3s var(--ease), opacity .3s; }
.menu-btn span:first-child { top: 0; }
.menu-btn span:last-child { bottom: 0; }
.menu-btn.active span:first-child { transform: translateY(11px) rotate(45deg); }
.menu-btn.active span:last-child { transform: translateY(-11px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 70%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(140px); opacity: .22; }
.hg-1 { width: 700px; height: 700px; background: var(--cyan); top: -280px; right: -200px; animation: glow-float 8s ease-in-out infinite; }
.hg-2 { width: 500px; height: 500px; background: var(--purple); bottom: -180px; left: -150px; animation: glow-float 10s ease-in-out 1s infinite; }
@keyframes glow-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.12); }
  66% { transform: translate(-20px, 20px) scale(.92); }
}
.hero-particles { position: absolute; inset: 0; }
.hero-content { position: relative; z-index: 1; width: var(--width); margin-inline: auto; max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: var(--muted); font-size: 12px; font-weight: 500;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.02);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 50% { opacity: .4; } }
.hero-content h1 { color: #fff; }
.hero-desc { color: var(--muted); font-size: clamp(15px, 1.7vw, 17px); line-height: 1.85; margin-bottom: 32px; }
.hero-desc strong { color: var(--text); }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 38px;
}
.hero-stat { display: grid; gap: 4px; }
.hs-num {
  font-size: clamp(28px, 3.5vw, 38px); font-weight: 700; color: var(--cyan);
  line-height: 1; letter-spacing: -.02em;
  font-family: "Inter", sans-serif;
}
.hs-num small { font-size: .38em; font-weight: 500; opacity: .7; margin-left: 2px; }
.hs-label { color: var(--muted-2); font-size: 12px; letter-spacing: .03em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-indicator {
  position: absolute; bottom: 28px; left: max(24px, calc((100vw - var(--width)) / 2));
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.18); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-indicator span { display: block; width: 40px; height: 1px; background: rgba(255,255,255,.12); }

/* ── Problem ── */
.problem-header {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: end;
  margin-bottom: 56px;
}
.problem-header p { font-size: 16px; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain-card {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.pain-card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.pain-num { font-size: 12px; font-weight: 700; color: var(--cyan); margin-bottom: 14px; letter-spacing: .08em; }
.pain-card h3 { margin-bottom: 12px; }
.pain-card > p { font-size: 14px; }
.card-keyword { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 2px; }

/* ── Technology ── */
.tech-header { margin-bottom: 52px; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tech-card {
  padding: 34px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.tech-card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.tech-icon { margin-bottom: 20px; }
.tech-card h3 { margin-bottom: 6px; }
.tech-sub { color: var(--cyan); font-size: 13px; font-weight: 600; margin-bottom: 14px; letter-spacing: .02em; }
.tech-card > p { font-size: 14px; }

/* ── Specs ── */
.specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.spec-item {
  padding: 32px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.spec-item:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.spec-value {
  font-size: clamp(32px, 4vw, 44px); font-weight: 700; color: var(--cyan);
  line-height: 1; letter-spacing: -.02em;
}
.spec-value small { font-size: .35em; font-weight: 500; opacity: .65; margin-left: 3px; }
.spec-label { color: var(--text); font-size: 15px; font-weight: 600; }
.spec-detail { color: var(--muted-2); font-size: 12px; }

/* ── Advantages ── */
.adv-header { margin-bottom: 48px; }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.adv-grid .adv-card:nth-child(4) { grid-column: span 2; }
.adv-card {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.adv-card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.adv-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(6, 182, 212, .08);
  color: var(--cyan);
  font-size: 14px; font-weight: 700;
}
.adv-card h3 { margin-bottom: 10px; }
.adv-card > p { font-size: 14px; }

/* ── Gallery ── */
.gallery h2 { margin-bottom: 40px; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery-feature { grid-column: 1 / -1; }
.gallery-item {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  border: 1px solid var(--border);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 22px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: var(--text); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.gallery-tag { padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 11px; font-weight: 600; }

/* ── Video ── */
.video-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 7vw; align-items: center; }
.video-stage { border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 0 60px rgba(6, 182, 212, .06); border: 1px solid var(--border); }
.video-player { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-info p { font-size: 15px; }
.video-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.video-meta span { padding: 5px 14px; border-radius: 999px; background: rgba(6, 182, 212, .08); color: var(--cyan); font-size: 12px; font-weight: 600; }

/* ── Honors ── */
.honors-header { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: end; margin-bottom: 50px; }
.honors-header p { font-size: 16px; }
.honors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.honor-card { padding: 28px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.honor-card:hover { border-color: var(--cyan); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(6, 182, 212, .06); }
.honor-year { display: inline-block; padding: 2px 10px; margin-bottom: 14px; border-radius: 999px; background: rgba(6, 182, 212, .08); color: var(--cyan); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.honor-card h3 { font-size: 17px; margin-bottom: 6px; }
.honor-card > p { font-size: 13px; }

/* ── Roadmap ── */
.roadmap { position: relative; padding: 0 0 0 48px; max-width: 720px; }
.roadmap-line {
  position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 1px; background: linear-gradient(180deg, var(--cyan), var(--purple), transparent);
}
.roadmap-item { position: relative; padding-bottom: 52px; }
.roadmap-item:last-child { padding-bottom: 0; }
.roadmap-item:last-child .roadmap-line { display: none; }
.roadmap-dot {
  position: absolute; left: -44px; top: 10px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}
.roadmap-phase { color: var(--cyan); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.roadmap-item h3 { font-size: 20px; margin-bottom: 8px; }
.roadmap-item > p { font-size: 14px; }

/* ── CTA ── */
.cta-card {
  padding: clamp(50px, 8vw, 90px); text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, var(--cyan-glow-2), transparent 55%);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(26px, 3.5vw, 40px); }
.cta-card p { color: var(--muted); font-size: 16px; margin-bottom: 28px; }
.cta-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ═══ Expandable Cards ═══ */
.card-expandable { position: relative; }
.card-expand-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); overflow: hidden; }
.card-expand-body > * { overflow: hidden; }
.card-expandable.expanded .card-expand-body { grid-template-rows: 1fr; }
.card-expandable.expanded { border-color: var(--cyan) !important; box-shadow: 0 0 40px rgba(6, 182, 212, .06), 0 12px 48px rgba(0,0,0,.3) !important; }

.expand-divider { width: 100%; height: 1px; background: var(--border); margin: 24px 0 18px; }

.expand-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  color: var(--cyan); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: color .25s;
  user-select: none;
}
.expand-trigger:hover { color: #22d3ee; }
.expand-arrow { font-size: 10px; transition: transform .35s var(--ease); }
.card-expandable.expanded .expand-arrow { transform: rotate(180deg); }

.detail-list { padding: 0; list-style: none; }
.detail-list li {
  position: relative; padding: 8px 0 8px 20px;
  color: var(--muted); font-size: 14px; line-height: 1.65;
  border-bottom: 1px solid var(--border);
}
.detail-list li:last-child { border-bottom: 0; }
.detail-list li::before {
  content: ""; position: absolute; left: 2px; top: 16px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--cyan);
}

.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.compare-table th { text-align: left; padding: 10px 12px; color: var(--muted-2); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--border); }
.compare-table td { padding: 10px 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
.compare-table td.hl { color: var(--cyan); font-weight: 600; }

/* ── Lightbox ── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(2, 6, 23, .94);
  backdrop-filter: blur(16px);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox.open { display: flex; animation: lb-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox img { max-width: 92vw; max-height: 90svh; border-radius: var(--radius-lg); cursor: default; }
.lightbox-close {
  position: fixed; top: 20px; right: 20px; z-index: 101;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--text); font-size: 22px;
  display: grid; place-items: center;
  transition: background .25s;
}
.lightbox-close:hover { background: rgba(255,255,255,.14); }

/* ── Footer ── */
.site-footer { padding: 36px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--text); }
.site-footer p { font-size: 12px; color: var(--muted-2); }
.footer-copy { font-size: 11px; }

/* ── Reveal ── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
  :root { --width: min(100% - 36px, 540px); }
  .section { padding: 64px 0; }
  .menu-btn { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    font-size: 19px; background: rgba(2, 6, 23, .96);
    backdrop-filter: blur(24px);
    transform: translateY(-100%); transition: transform .4s var(--ease);
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a::after { display: none; }

  .problem-header, .tech-header, .honors-header { grid-template-columns: 1fr; gap: 20px; }
  .problem-grid, .tech-grid, .adv-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .adv-grid .adv-card:nth-child(4) { grid-column: 1; }
  .honors-grid { grid-template-columns: 1fr 1fr; }
  .video-layout { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-feature { grid-column: 1; }
  .gallery-item img { aspect-ratio: 16 / 10; }

  .hero-stats { gap: 20px; }
  .scroll-indicator { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .roadmap { padding-left: 36px; }
  .roadmap-dot { left: -32px; }
}

@media (max-width: 520px) {
  :root { --width: min(100% - 28px, 360px); }
  .specs-grid { grid-template-columns: 1fr; }
  .honors-grid { grid-template-columns: 1fr; }
  .cta-links { flex-direction: column; align-items: center; }
  .btn { width: 100%; }
}
