:root {
  --bg-0: #040811;
  --bg-1: #08101f;
  --bg-card: rgba(12, 20, 36, 0.78);
  --bg-card-hover: rgba(16, 28, 49, 0.92);
  --border: rgba(148, 163, 184, 0.16);
  --border-accent: rgba(52, 211, 153, 0.42);
  --text-0: #f8fafc;
  --text-1: #cbd5e1;
  --text-2: #94a3b8;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --cyan: #06b6d4;
  --cyan-bright: #38bdf8;
  --amber: #fbbf24;
  --violet: #a78bfa;
  --danger: #f87171;
  --font-zh: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Cascadia Code", "Consolas", "JetBrains Mono", monospace;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-zh);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 540px at 14% 6%, rgba(16, 185, 129, 0.14), transparent 65%),
    radial-gradient(860px 540px at 86% 14%, rgba(6, 182, 212, 0.13), transparent 65%),
    radial-gradient(900px 600px at 50% 60%, rgba(139, 92, 246, 0.06), transparent 70%),
    var(--bg-0);
  overflow-x: hidden;
  line-height: 1.65;
}

/* Precision engineering grid overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, #000 35%, transparent 100%);
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* ---- Sticky Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(4, 8, 17, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  display: grid;
  place-items: center;
  color: #022c22;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.45);
}

.brand-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--emerald-bright);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}

.nav-links a {
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--emerald-bright); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 11px;
  font-family: var(--font-zh);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ecfdf5;
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.32);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #022c22;
  box-shadow: 0 12px 34px rgba(16, 185, 129, 0.45);
}

.btn-cyan {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #f0f9ff;
  box-shadow: 0 8px 28px rgba(6, 182, 212, 0.28);
}
.btn-cyan:hover {
  background: linear-gradient(135deg, #38bdf8, #22d3ee);
  color: #082f49;
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--text-0);
}
.btn-ghost:hover {
  border-color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.12);
  color: #ecfdf5;
}

.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 13px; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; border-radius: 8px; }

/* ---- Hero ---- */
.hero {
  padding: 36px 0 48px;
  text-align: center;
}

.hero-cinema {
  max-width: 1020px;
  margin: 22px auto 32px;
  text-align: left;
  scroll-margin-top: 84px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.42);
  color: #6ee7b7;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero h1 {
  margin: 0 auto 18px;
  max-width: 960px;
  font-size: clamp(36px, 5.4vw, 66px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.025em;
  background: linear-gradient(100deg, #ffffff 0%, #d1fae5 52%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 auto 34px;
  max-width: 820px;
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--text-1);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.telemetry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  text-align: left;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, transform 0.2s;
}
.telemetry-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 6px;
}
.c-emerald { color: var(--emerald-bright); }
.c-cyan { color: var(--cyan-bright); }
.c-violet { color: var(--violet); }
.c-amber { color: var(--amber); }

.telemetry-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-0);
}
.telemetry-sub {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 3px;
}

/* ---- Sections ---- */
section { padding: 72px 0; }

.section-head {
  text-align: center;
  margin-bottom: 42px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--text-2);
  font-size: 15.5px;
}

/* ---- Cinema Demo Video Stage ---- */
.cinema-shell {
  background: rgba(7, 13, 25, 0.92);
  border: 1px solid rgba(52, 211, 153, 0.36);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 60px rgba(16, 185, 129, 0.12);
}

.cinema-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.window-dots { display: flex; gap: 7px; align-items: center; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ef4444; }
.dot-y { background: #f59e0b; }
.dot-g { background: #10b981; }

.cinema-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #02050c;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #02050c;
}

.chapter-bar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.chap-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 11px;
  padding: 10px 8px;
  color: var(--text-1);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  font-family: var(--font-zh);
}

.chap-btn:hover {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(16, 185, 129, 0.12);
}

.chap-btn.active {
  background: rgba(6, 78, 59, 0.45);
  border-color: var(--emerald-bright);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.22);
}

.chap-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald-bright);
  margin-bottom: 2px;
}

.chap-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-0);
}

.cinema-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 4px 6px 0;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-2);
}

/* ---- 7 Features Bento Grid ---- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.feat-card {
  grid-column: span 4;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.22s, transform 0.22s, background 0.22s;
  backdrop-filter: blur(12px);
}

.feat-card.span-6 { grid-column: span 6; }

.feat-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.34);
}

.feat-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: var(--cyan-bright);
}

.feat-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
}

.feat-card p {
  margin: 0 0 16px;
  color: var(--text-1);
  font-size: 14px;
}

.feat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 7px;
  font-size: 13.5px;
  color: var(--text-2);
}

.feat-list li::before {
  content: "✓ ";
  color: var(--emerald-bright);
  font-weight: 900;
}

.feat-jump {
  align-self: flex-start;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-zh);
  transition: all 0.18s;
}
.feat-jump:hover {
  background: var(--emerald);
  color: #022c22;
}

/* ---- Interactive Playground (One-Click Sort & Memory Demo) ---- */
.playground-box {
  margin-top: 28px;
  background: rgba(7, 13, 25, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.pg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.pg-controls { display: flex; flex-wrap: wrap; gap: 8px; }

.pg-stage {
  position: relative;
  height: 310px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 50%, rgba(16,185,129,0.08), #040811 72%);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  overflow: hidden;
  user-select: none;
}

.pg-phone {
  position: absolute;
  width: 112px;
  height: 128px;
  border-radius: 12px;
  background: linear-gradient(160deg, #111c33, #0a1222);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
  padding: 8px;
  cursor: grab;
  transition: left 0.42s cubic-bezier(0.22, 1.25, 0.36, 1), top 0.42s cubic-bezier(0.22, 1.25, 0.36, 1), box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pg-phone.dragging { transition: none; cursor: grabbing; z-index: 20; box-shadow: 0 18px 40px rgba(16,185,129,0.35); }
.pg-phone.master { border-color: #34d399; }

.pg-phone-hd {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: #6ee7b7;
}
.pg-phone.master .pg-phone-hd { color: #fcd34d; }

.pg-phone-scr {
  flex: 1;
  margin: 5px 0;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(16,185,129,0.22), rgba(6,182,212,0.18));
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #e2e8f0;
}

.pg-phone-nav {
  display: flex;
  justify-content: space-around;
  font-size: 10px;
  color: #94a3b8;
}

.pg-ghost {
  position: absolute;
  width: 112px;
  height: 128px;
  border-radius: 12px;
  border: 1.5px dashed rgba(52, 211, 153, 0.65);
  background: rgba(16, 185, 129, 0.06);
  pointer-events: none;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(52, 211, 153, 0.85);
}

/* ---- Dual Edition Download Shelf ---- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.dl-card {
  position: relative;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(14px);
}
.dl-card > div { min-width: 0; }

.dl-card.featured {
  border-color: rgba(52, 211, 153, 0.55);
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.24) 0%, rgba(11, 18, 32, 0.90) 48%);
  box-shadow: 0 24px 64px rgba(16, 185, 129, 0.14);
}

.dl-card.standard {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.20) 0%, rgba(11, 18, 32, 0.90) 48%);
}

.dl-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
  width: fit-content;
}
.dl-card.featured .dl-ribbon {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--emerald-bright);
  color: #6ee7b7;
}
.dl-card.standard .dl-ribbon {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid var(--cyan-bright);
  color: #7dd3fc;
}

.dl-card h3 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 900;
}

.dl-ver-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.meta-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-1);
}

.dl-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 9px;
  font-size: 14px;
  color: var(--text-1);
}

.dl-features li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.dl-features li span.ck {
  color: var(--emerald-bright);
  font-weight: 900;
}
.dl-card.standard .dl-features li span.ck { color: var(--cyan-bright); }

.sha-box {
  min-width: 0;
  max-width: 100%;
  background: rgba(4, 8, 17, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sha-text {
  min-width: 0;
  flex: 1 1 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-actions .btn { flex: 1; }

/* ---- Comparison Table ---- */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 680px;
}

.cmp-table th, .cmp-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.11);
}

.cmp-table thead th {
  background: rgba(15, 23, 42, 0.92);
  font-weight: 800;
  font-size: 14.5px;
}

.cmp-table tbody tr:hover { background: rgba(16, 185, 129, 0.05); }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table td:first-child { font-weight: 700; color: var(--text-0); width: 22%; }

/* ---- Help Center & Docs ---- */
.help-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 26px;
}

.tab-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-1);
  padding: 10px 18px;
  border-radius: 11px;
  font-family: var(--font-zh);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.tab-btn:hover { border-color: var(--emerald-bright); color: #fff; }
.tab-btn.active {
  background: linear-gradient(135deg, rgba(16,185,129,0.28), rgba(6,182,212,0.22));
  border-color: var(--emerald-bright);
  color: #ecfdf5;
}

.help-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(12px);
}
.help-panel.active { display: block; animation: fadeUp 0.25s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.step-card {
  background: rgba(8, 15, 29, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-md);
  padding: 20px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-bright);
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 10px;
}

.step-card h4 { margin: 0 0 8px; font-size: 16.5px; }
.step-card p { margin: 0; font-size: 13.5px; color: var(--text-1); }

.code-chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
}

.kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.36);
  box-shadow: 0 2px 0 rgba(148, 163, 184, 0.22);
  color: #f8fafc;
}

.callout {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
  font-size: 13.5px;
}

.callout-ok {
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(52, 211, 153, 0.38);
  color: #a7f3d0;
}

/* FAQ Accordion */
.faq-list { display: grid; gap: 10px; }

.faq-item {
  background: rgba(8, 15, 29, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-0);
  font-family: var(--font-zh);
  font-size: 15px;
  font-weight: 700;
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-q::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--emerald-bright);
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-1);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 14px;
}
.faq-item.open .faq-a { display: block; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  color: var(--text-2);
  font-size: 13.5px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---- Right-Side Floating After-Sales QQ Group Dock ---- */
.qq-dock {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 120;
  display: flex;
  align-items: center;
}

.qq-dock-card {
  width: 214px;
  background: rgba(8, 15, 29, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.65), 0 0 32px rgba(6, 182, 212, 0.16);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.qq-dock-tab {
  display: none;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 3px;
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.96), rgba(14, 116, 144, 0.96));
  border: 1px solid rgba(52, 211, 153, 0.6);
  color: #ecfdf5;
  font-family: var(--font-zh);
  font-size: 13px;
  font-weight: 800;
  padding: 14px 10px;
  border-radius: 14px 0 0 14px;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  align-items: center;
  gap: 8px;
}

.qq-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
  margin-bottom: 4px;
}

.qq-dock.collapsed { right: 0; }
.qq-dock.collapsed .qq-dock-card { display: none; }
.qq-dock.collapsed .qq-dock-tab { display: inline-flex; }

.qq-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.qq-title-wrap { display: flex; align-items: center; gap: 9px; min-width: 0; }

.qq-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(52, 211, 153, 0.7);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
}

.qq-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-0);
  line-height: 1.25;
}

.qq-sub {
  font-size: 11px;
  color: var(--emerald-bright);
  font-weight: 600;
}

.qq-close-btn {
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: var(--text-1);
  width: 24px;
  height: 24px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.qq-close-btn:hover { background: rgba(248, 113, 113, 0.22); color: #fecaca; }

.qq-qr-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: rgba(4, 8, 17, 0.85);
  border: 1px dashed rgba(56, 189, 248, 0.42);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 10px;
}

.qq-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
}

.qq-qr-empty {
  text-align: center;
  padding: 12px;
  color: var(--text-2);
  font-size: 12px;
}

.qq-qr-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--cyan-bright);
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 18px;
  display: grid;
  place-items: center;
}

.qq-qr-empty small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #64748b;
}

.qq-num-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 10px;
}

.qq-num-label {
  font-size: 11px;
  color: var(--text-2);
}

.qq-num-val {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--cyan-bright);
  letter-spacing: 0.04em;
}

.qq-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 8px;
}
.qq-actions .btn { padding: 7px 6px; font-size: 12px; }

.qq-hint {
  font-size: 11px;
  color: var(--text-2);
  text-align: center;
  line-height: 1.45;
}

.qq-qr-box { cursor: zoom-in; }

/* ---- SEO Topic Panel ---- */
.seo-section { padding: 16px 0 64px; }
.seo-panel {
  background: rgba(8, 15, 29, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}
.seo-panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-0);
}
.seo-panel p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.85;
}
.seo-panel p strong { color: var(--text-1); font-weight: 700; }
.seo-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-tags span {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 99px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #6ee7b7;
}

/* ---- QR Zoom Modal ---- */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(2, 6, 17, 0.80);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 20px;
}
.qr-modal.open { display: grid; }
.qr-modal-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: #0b1324;
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 22px;
  padding: 26px 24px 22px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
}
.qr-modal-x { position: absolute; top: 14px; right: 14px; }
.qr-modal-img {
  width: 248px;
  height: 248px;
  border-radius: 16px;
  background: #ffffff;
  padding: 10px;
  display: block;
  margin: 0 auto;
}

/* ---- Pricing Section & Auto-Popup Checkout Modal ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-accent); }
.price-card.hot {
  border-color: rgba(52, 211, 153, 0.6);
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.28), rgba(11, 18, 32, 0.92));
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.14);
}
.price-card.hot-cyan {
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.24), rgba(11, 18, 32, 0.92));
}
.price-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  width: fit-content;
  margin-bottom: 10px;
}
.price-badge.jb { background: rgba(16,185,129,0.16); color: #6ee7b7; border: 1px solid rgba(52,211,153,0.4); }
.price-badge.hot { background: rgba(245,158,11,0.2); color: #fde68a; border: 1px solid #f59e0b; }
.price-badge.std { background: rgba(56,189,248,0.16); color: #7dd3fc; border: 1px solid rgba(56,189,248,0.4); }
.price-card h3 { margin: 0 0 8px; font-size: 18px; }
.price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.price-yen { font-family: var(--font-mono); font-size: 38px; font-weight: 900; color: var(--text-0); }
.price-unit { font-size: 13.5px; color: var(--text-2); }
.price-card .btn { width: 100%; margin-top: auto; }

.pay-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #0b1324;
  border: 1px solid rgba(52, 211, 153, 0.5);
  border-radius: 22px;
  padding: 26px 24px 22px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.8);
}
.pay-kicker { font-family: var(--font-mono); font-size: 12px; color: #34d399; font-weight: 700; }
.pay-field { text-align: left; margin-bottom: 12px; }
.pay-field label { display: block; font-size: 12.5px; color: var(--text-1); margin-bottom: 6px; font-weight: 600; }
.pay-field input {
  width: 100%;
  background: #050a14;
  border: 1px solid #26415e;
  border-radius: 9px;
  padding: 10px 12px;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.pay-ch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-ch-btn {
  background: #0f1b30;
  border: 1px solid rgba(148,163,184,0.28);
  color: var(--text-1);
  border-radius: 10px;
  padding: 10px 8px;
  font-family: var(--font-zh);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.pay-ch-btn.active { border-color: #34d399; background: rgba(16,185,129,0.2); color: #ecfdf5; }
.pay-qr-big {
  width: 248px;
  max-height: 310px;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  padding: 6px;
  display: block;
  margin: 0 auto 10px;
}
.pay-status-pill {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(14, 116, 144, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  font-size: 12.5px;
  font-weight: 700;
}
.pay-card-out {
  width: 100%;
  background: #040811;
  border: 1.5px solid #34d399;
  border-radius: 10px;
  padding: 12px;
  color: #6ee7b7;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  resize: none;
}

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* Toast */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  background: rgba(6, 78, 59, 0.96);
  border: 1px solid #34d399;
  color: #ecfdf5;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .telemetry-grid { grid-template-columns: repeat(2, 1fr); }
  .chapter-bar { grid-template-columns: repeat(4, 1fr); }
  .feat-card, .feat-card.span-6 { grid-column: span 6; }
  .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .telemetry-grid { grid-template-columns: 1fr; }
  .chapter-bar { grid-template-columns: repeat(2, 1fr); }
  .feat-card, .feat-card.span-6 { grid-column: span 12; }
  .help-panel { padding: 20px; }
}
