/* ============================================
   VoxLink Landing Page — 淡蓝清新风
   无渐变 · 圆角统一 12px · 白/灰背景 · 淡蓝主色
   ============================================ */

/* ---------- Theme tokens ---------- */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-alt: #F4F6F9;
  --bg-footer: #F0F2F5;
  --card: #FFFFFF;
  --card-deep: #F5F8FC;
  --hairline: #E3E8EF;
  --hairline-strong: #D2DAE5;
  --text: #22303E;
  --text-2: #5C6B7A;
  --text-3: #93A1B0;
  --accent: #5EA8F2;
  --accent-2: #6FCFCE;
  --accent-3: #B7A6F2;
  --on-accent: #FFFFFF;
  --accent-soft: rgba(94, 168, 242, 0.1);
  --accent-2-soft: rgba(111, 207, 206, 0.12);
  --accent-3-soft: rgba(183, 166, 242, 0.14);
  --header-bg: rgba(255, 255, 255, 0.85);
  --chip-bg: #EDF3FB;
  --glow-accent: rgba(94, 168, 242, 0.25);
  --glow-accent-2: rgba(111, 207, 206, 0.2);
  --shadow-card: 0 8px 24px rgba(35, 55, 80, 0.08);
  --shadow-pop: 0 16px 40px rgba(35, 55, 80, 0.14);
  --visual-1: #E4F0FE;
  --visual-2: #E2F4F3;
  --visual-3: #EFEAFC;
  --star-fill: #FFD66E;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15171B;
  --bg-alt: #121418;
  --bg-footer: #0F1114;
  --card: #1C1F25;
  --card-deep: #181B20;
  --hairline: #2A2F38;
  --hairline-strong: #38404C;
  --text: #E8EDF3;
  --text-2: #9AA7B5;
  --text-3: #66727F;
  --accent: #7DBCFF;
  --accent-2: #7FD8D8;
  --accent-3: #C4B5F7;
  --on-accent: #0C1826;
  --accent-soft: rgba(125, 188, 255, 0.14);
  --accent-2-soft: rgba(127, 216, 216, 0.12);
  --accent-3-soft: rgba(196, 181, 247, 0.14);
  --header-bg: rgba(21, 23, 27, 0.85);
  --chip-bg: #232833;
  --glow-accent: rgba(125, 188, 255, 0.3);
  --glow-accent-2: rgba(127, 216, 216, 0.2);
  --shadow-card: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-pop: 0 18px 44px rgba(0, 0, 0, 0.55);
  --visual-1: #1C2733;
  --visual-2: #17262A;
  --visual-3: #221F2E;
  --star-fill: #FFD66E;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "MiSans", "HarmonyOS Sans SC", "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

.container { max-width: 1312px; margin: 0 auto; padding: 0 32px; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; }

kbd {
  font-family: inherit;
  font-size: 0.85em;
  background: var(--chip-bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1px 7px;
  color: var(--text);
}

/* ---------- Buttons（圆角 12px + 纯色） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 6px 18px var(--glow-accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px var(--glow-accent); }
.btn-ghost {
  background: var(--accent-soft);
  border-color: var(--hairline-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.25s ease, background 0.35s ease;
}
.site-header.scrolled { border-bottom-color: var(--hairline); }

.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--text); }
.logo svg { color: var(--accent); }
.nav-links { display: flex; gap: 36px; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.header-actions { display: flex; gap: 12px; align-items: center; }

/* 主题切换按钮 */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1.5px solid var(--hairline-strong);
  color: var(--accent);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 6px 16px var(--glow-accent); }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.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); }

.nav-mobile { display: none; flex-direction: column; padding: 8px 32px 20px; border-bottom: 1.5px solid var(--hairline); }
.nav-mobile a { padding: 12px 0; font-size: 15px; color: var(--text-2); border-bottom: 1px solid var(--hairline); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 104px; position: relative; overflow: hidden; }

/* 星星点缀（纯色） */
.star {
  position: absolute;
  width: 14px; height: 14px;
  background: var(--star-fill);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  animation: twinkle 2.6s ease-in-out infinite;
  pointer-events: none;
}
.star-1 { top: 14%; left: 6%; }
.star-2 { top: 26%; right: 10%; width: 10px; height: 10px; animation-delay: 0.8s; }
.star-3 { bottom: 18%; left: 42%; width: 8px; height: 8px; animation-delay: 1.5s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(20deg); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  width: fit-content;
}
.badge-dot, .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
  flex: none;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title {
  margin-top: 28px;
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--accent); }

.hero-sub { margin-top: 24px; font-size: 17px; line-height: 1.75; color: var(--text-2); max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { margin-top: 24px; font-size: 13px; color: var(--text-3); }

/* Hero 真实截图（纯色描边相框） */
.hero-visual { position: relative; }
.hero-shot {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--hairline-strong);
  box-shadow: var(--shadow-pop);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-shot:hover { transform: translateY(-4px); box-shadow: 0 22px 52px var(--glow-accent); }
.hero-shot img { display: block; width: 100%; height: auto; }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--card);
  border: 1.5px solid var(--hairline-strong);
  box-shadow: var(--shadow-card);
  color: var(--text);
  animation: floaty 4.5s ease-in-out infinite;
  z-index: 2;
}
.chip-latency { top: -18px; right: -6px; color: var(--accent); border-color: var(--accent); }
.chip-whisper { bottom: -16px; left: 24px; animation-delay: 1.2s; color: var(--accent-2); border-color: var(--accent-2); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { margin-bottom: 56px; max-width: 720px; }
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-label::before { content: "「 "; color: var(--accent-2); }
.section-label::after { content: " 」"; color: var(--accent-2); }
.section-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 16px; }
.section-sub { font-size: 17px; line-height: 1.65; color: var(--text-2); }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-pop);
}
.card h3 { font-size: 20px; font-weight: 700; margin: 16px 0 10px; }
.card p { font-size: 14px; line-height: 1.7; color: var(--text-2); }

.icon-tile {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.icon-tile-sm { width: 38px; height: 38px; }

/* Bento grid */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-wide { grid-column: span 2; }

.flow {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--card-deep);
  border: 1.5px dashed var(--hairline-strong);
  border-radius: 12px;
  padding: 14px 18px;
  width: fit-content;
  color: var(--accent-2);
}
.flow-chip { font-size: 13px; color: var(--text); background: var(--chip-bg); border-radius: 12px; padding: 7px 16px; }
.flow-chip-accent { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.chip-row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.mini-chip {
  font-size: 13px;
  color: var(--text-2);
  background: var(--card-deep);
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  padding: 7px 16px;
}

/* Scenarios */
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scenario-card { padding: 0; overflow: hidden; }
.scenario-visual { height: 150px; display: flex; align-items: center; justify-content: center; }
.visual-teal { background: var(--visual-1); color: var(--accent); }
.visual-cyan { background: var(--visual-2); color: var(--accent-2); }
.visual-green { background: var(--visual-3); color: var(--accent-3); }
.scenario-body { padding: 24px; }
.scenario-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.scenario-body p { font-size: 14px; line-height: 1.7; color: var(--text-2); }
.tag-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.tag-row span {
  font-size: 12px;
  color: var(--accent-2);
  background: var(--accent-2-soft);
  border-radius: 12px;
  padding: 5px 14px;
  font-weight: 600;
}

/* Wave bars animation */
.wave-bars path { animation: wave 1.6s ease-in-out infinite; transform-origin: center; }
.wave-bars path:nth-child(2n) { animation-delay: 0.2s; }
.wave-bars path:nth-child(3n) { animation-delay: 0.4s; }
.wave-bars path:nth-child(4n) { animation-delay: 0.6s; }
@keyframes wave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.55); } }

/* Tech */
.tech-inner { display: grid; grid-template-columns: 560px 1fr; gap: 80px; align-items: center; }
.tech-list { display: flex; flex-direction: column; gap: 28px; margin-top: 40px; }
.tech-list li { display: flex; gap: 16px; align-items: flex-start; }
.tech-list h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.tech-list p { font-size: 13px; line-height: 1.7; color: var(--text-2); }

.pipeline-card {
  background: var(--card-deep);
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.pipeline-label { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--accent-2); }
.pipeline-card hr { border: none; border-top: 1.5px dashed var(--hairline-strong); margin: 20px 0; }
.pipeline { display: flex; flex-direction: column; gap: 22px; }
.pipeline li { display: flex; gap: 18px; align-items: center; }
.step-num { font-size: 20px; font-weight: 700; color: var(--accent); flex: none; min-width: 34px; }
.pipeline h4 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.pipeline p { font-size: 13px; color: var(--text-2); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.step-card h3 { font-size: 18px; margin: 14px 0 10px; }
.step-num-lg { font-size: 28px; font-weight: 700; color: var(--accent); }

/* CTA band */
.cta-band {
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  padding: 64px 48px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
.cta-band p { margin-top: 16px; font-size: 15px; color: var(--text-2); }
.cta-buttons { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-footer); padding: 72px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1fr 160px 160px; gap: 48px; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.7; color: var(--text-2); max-width: 360px; }
.mit-badge {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 5px 14px;
}
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h5 { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--text); }
.footer-col a { font-size: 14px; color: var(--text-2); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-divider { border-top: 1.5px solid var(--hairline); margin: 56px 0 24px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }

/* ---------- Changelog（更新日志页） ---------- */
.page-top { padding-top: 72px; }
.changelog-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.changelog-item { padding: 28px 32px; }
.changelog-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.changelog-version { font-size: 22px; font-weight: 700; color: var(--text); }
.changelog-latest {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  padding: 3px 12px;
}
.changelog-date { font-size: 13px; color: var(--text-3); }
.changelog-github { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent); }
.changelog-github:hover { text-decoration: underline; }
.changelog-body {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1.5px dashed var(--hairline-strong);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
}
.changelog-body h2 { display: none; }
.changelog-body h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.changelog-body h3:first-child { margin-top: 0; }
.changelog-body blockquote {
  margin: 10px 0 16px;
  padding: 10px 16px;
  background: var(--card-deep);
  border-left: 3px solid var(--accent-2);
  border-radius: 0 12px 12px 0;
  font-size: 13px;
  color: var(--text-3);
}
.changelog-body ul { margin: 4px 0 10px; }
.changelog-body li { position: relative; padding-left: 18px; margin: 7px 0; }
.changelog-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.changelog-body li li::before { background: var(--accent-2); }
.changelog-body code {
  font-family: inherit;
  font-size: 0.9em;
  background: var(--chip-bg);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
}
.changelog-body details {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--hairline-strong);
}
.changelog-body summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); }
.changelog-body details ul { margin-top: 8px; }
.changelog-status { text-align: center; padding: 48px 0; font-size: 15px; color: var(--text-2); }
.changelog-status-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--accent); }
.changelog-status-link:hover { text-decoration: underline; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Scrollbar（侧边进度条） ---------- */
/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--hairline-strong) transparent;
}
/* WebKit / Chromium */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--hairline-strong);
  border-radius: 12px;
  border: 2.5px solid transparent;
  background-clip: padding-box;
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:active { background: var(--accent-2); }
::-webkit-scrollbar-corner { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wave-bars path, .float-chip, .badge-dot, .dot, .star { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner, .tech-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-sub { max-width: none; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: span 2; }
  .scenario-grid, .steps-grid { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav-links, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 64px 0 72px; }
  .section { padding: 72px 0; }
  .bento-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; }
  .chip-latency { right: 0; top: -14px; }
  .chip-whisper { left: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { padding: 48px 24px; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
}
