/* ==========================================================================
   LeapTerm 官网共享样式
   品牌色：#07C160（绿色强调） / 深色底 #111827 → #070A0F
   ========================================================================== */

:root {
  --bg-0: #070a0f;
  --bg-1: #111827;
  --bg-2: #0d1420;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text-0: #e8eef6;
  --text-1: #b6c0cd;
  --text-2: #84909e;
  --accent: #07c160;
  --accent-hover: #06ad56;
  --accent-soft: rgba(7, 193, 96, 0.12);
  --accent-border: rgba(7, 193, 96, 0.38);
  --amber: #f0b349;
  --amber-border: rgba(240, 179, 73, 0.4);
  --radius: 16px;
  --radius-sm: 10px;
  --font-ui: system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas,
    "Liberation Mono", "Noto Sans Mono CJK SC", monospace;
}

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

html {
  scroll-behavior: smooth;
}

/* 锚点跳转时为吸顶导航留出空间，避免标题被遮挡 */
section[id] {
  scroll-margin-top: 84px;
}

body {
  font-family: var(--font-ui);
  color: var(--text-0);
  background: radial-gradient(1200px 700px at 80% -10%, #14243a 0%, transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(7, 193, 96, 0.07) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 45%, var(--bg-0) 100%);
  background-attachment: fixed;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 10, 15, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-0);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.2px;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.nav-links a {
  color: var(--text-1);
}

.nav-links a:hover {
  color: var(--text-0);
  text-decoration: none;
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #04220f !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.hero h1 .accent {
  background: linear-gradient(120deg, #2ee287, #07c160);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--text-1);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #04220f;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-0);
}

.btn-ghost:hover {
  background: var(--surface-strong);
}

.hero-hint {
  color: var(--text-2);
  font-size: 13px;
}

/* ---------- 终端演示窗口 ---------- */
.terminal {
  background: linear-gradient(180deg, #10161f, #0a0e15);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-dot.r { background: #ff5f57; }
.terminal-dot.y { background: #febc2e; }
.terminal-dot.g { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  color: var(--text-2);
  font-size: 12px;
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 18px 20px 22px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: #c9d4e0;
  overflow-x: auto;
}

.terminal-body .t-user { color: #7ee2a8; }
.terminal-body .t-path { color: #6db3f2; }
.terminal-body .t-cmd { color: var(--text-0); }
.terminal-body .t-ok { color: #28c840; }
.terminal-body .t-dim { color: var(--text-2); }
.terminal-body .t-caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- 通用 section ---------- */
.section {
  padding: 72px 0;
}

.section-alt {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head .kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-1);
  font-size: 15.5px;
}

/* ---------- 特性卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

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

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}

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

/* ---------- 安全区块 ---------- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.security-item {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.security-item .card-icon {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.security-item h3 {
  font-size: 15.5px;
  margin-bottom: 5px;
}

.security-item p {
  color: var(--text-1);
  font-size: 13.5px;
}

.security-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: #bfe9d2;
  font-size: 14px;
}

.security-note svg {
  flex: 0 0 auto;
  margin-top: 3px;
}

/* ---------- 数字条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}

.stat {
  padding: 22px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.stat .num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--accent);
  font-family: var(--font-mono);
}

.stat .label {
  color: var(--text-1);
  font-size: 13px;
  margin-top: 4px;
}

/* ---------- 版本更新 ---------- */
.changelog {
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px 32px;
}

.changelog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.changelog-head h3 {
  font-size: 19px;
}

.version-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.changelog ul {
  list-style: none;
}

.changelog li {
  position: relative;
  padding: 5px 0 5px 26px;
  color: var(--text-1);
  font-size: 14.5px;
}

.changelog li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

.changelog-foot {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 13px;
}

/* ---------- 开源许可 ---------- */
.license-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.license-table th,
.license-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

.license-table th {
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.license-table td {
  color: var(--text-1);
}

.license-table .lib-name {
  color: var(--text-0);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.license-table tr:last-child td {
  border-bottom: none;
}

.license-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  color: var(--text-1);
  background: var(--surface-strong);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 20px 24px;
}

.faq-item h3 {
  font-size: 15.5px;
  margin-bottom: 6px;
}

.faq-item p {
  color: var(--text-1);
  font-size: 14px;
}

/* ---------- 下载 CTA ---------- */
.cta-band {
  margin: 0 auto;
  max-width: 1080px;
}

.cta-box {
  border: 1px solid var(--accent-border);
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(7, 193, 96, 0.14), rgba(7, 193, 96, 0.04) 60%);
  padding: 46px 32px;
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 10px;
}

.cta-box p {
  color: var(--text-1);
  margin-bottom: 26px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  margin-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.footer-col p {
  color: var(--text-2);
  font-size: 13.5px;
}

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: var(--text-1);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--text-0);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  color: var(--text-2);
  font-size: 12.5px;
}

/* ==========================================================================
   法务页面（隐私政策 / 用户协议）
   ========================================================================== */
.legal-page {
  padding: 56px 0 0;
}

.legal-doc {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 52px;
}

.legal-doc > h1 {
  font-size: 28px;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}

.legal-doc .doc-meta {
  color: var(--text-2);
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
  margin-bottom: 30px;
}

.legal-doc h2 {
  font-size: 19px;
  margin: 38px 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.legal-doc h3 {
  font-size: 16px;
  margin: 24px 0 8px;
}

.legal-doc p {
  color: var(--text-1);
  font-size: 14.5px;
  margin-bottom: 12px;
}

.legal-doc ul,
.legal-doc ol {
  color: var(--text-1);
  font-size: 14.5px;
  margin: 0 0 12px 22px;
}

.legal-doc li {
  margin-bottom: 6px;
}

.legal-doc strong {
  color: var(--text-0);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 12px 0 20px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 11px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}

.legal-table th {
  background: var(--surface-strong);
  color: var(--text-0);
  font-weight: 600;
  white-space: nowrap;
}

.legal-table td {
  color: var(--text-1);
}

.legal-table td code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-0);
}

/* 要点提示框 */
.legal-note {
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: #bfe9d2;
  font-size: 14px;
  margin: 18px 0;
}

.legal-note ul {
  margin-bottom: 0;
  color: #bfe9d2;
}

.legal-note li {
  margin-bottom: 4px;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-1);
  font-size: 14px;
  margin-bottom: 22px;
}

.back-home:hover {
  color: var(--text-0);
  text-decoration: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero {
    padding: 56px 0 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-doc {
    padding: 34px 26px;
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

  .legal-doc {
    padding: 28px 20px;
    border-radius: var(--radius-sm);
  }

  .legal-table {
    table-layout: fixed;
  }

  .legal-table th,
  .legal-table td {
    padding: 9px 7px;
    overflow-wrap: anywhere;
  }

  .legal-table td code {
    font-size: 11px;
    word-break: break-all;
  }
}


/* ==========================================================================
   界面预览 / 快速上手 / 灯箱 / 主题切换 / 浅色主题
   ========================================================================== */

/* --- 界面预览 --- */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.shot {
  position: relative;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.shot:hover { transform: translateY(-3px); border-color: var(--accent-border); }
.shot img {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}
.shot figcaption {
  position: absolute;
  left: 12px; bottom: 12px; right: 12px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  background: rgba(7, 10, 15, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #e8eef6;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  pointer-events: none;
}
.shot figcaption small {
  display: block;
  font-weight: 400;
  color: #b6c0cd;
  font-size: 11.5px;
  margin-top: 2px;
  letter-spacing: 0;
}

/* --- 灯箱 --- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  padding: 32px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.lightbox .lb-caption {
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  text-align: center;
  color: #e8eef6;
  font-size: 13px;
  pointer-events: none;
}
.lightbox .lb-close {
  position: absolute;
  top: 18px; right: 22px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #e8eef6;
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.lightbox .lb-close:hover { background: rgba(255, 255, 255, 0.18); }

/* --- 快速上手 --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  padding: 28px 26px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: #04220f;
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { color: var(--text-1); font-size: 14px; }
.step code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface-strong);
  color: var(--text-0);
}

/* --- 主题切换 --- */
.theme-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-1);
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover {
  color: var(--text-0);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ==========================================================================
   浅色主题（自动 + 手动）
   ========================================================================== */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg-0: #ffffff;
    --bg-1: #f5f7fa;
    --bg-2: #eef2f7;
    --surface: rgba(15, 23, 42, 0.035);
    --surface-strong: rgba(15, 23, 42, 0.06);
    --border: rgba(15, 23, 42, 0.10);
    --border-strong: rgba(15, 23, 42, 0.18);
    --text-0: #0f172a;
    --text-1: #3b4654;
    --text-2: #647087;
    --accent: #06ad56;
    --accent-hover: #05974c;
    --accent-soft: rgba(7, 193, 96, 0.10);
    --accent-border: rgba(7, 193, 96, 0.32);
    --amber-border: rgba(180, 130, 40, 0.45);
  }
  :root:not([data-theme="dark"]) body {
    background:
      radial-gradient(900px 500px at 80% -10%, rgba(7, 193, 96, 0.08) 0%, transparent 55%),
      linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  }
  :root:not([data-theme="dark"]) .site-header { background: rgba(255, 255, 255, 0.78); }
  :root:not([data-theme="dark"]) .security-note,
  :root:not([data-theme="dark"]) .legal-note { color: #0f4d2e; }
  :root:not([data-theme="dark"]) .shot figcaption {
    background: rgba(255, 255, 255, 0.82);
    color: #0f172a;
  }
  :root:not([data-theme="dark"]) .shot figcaption small { color: #3b4654; }
}

[data-theme="light"] {
  --bg-0: #ffffff;
  --bg-1: #f5f7fa;
  --bg-2: #eef2f7;
  --surface: rgba(15, 23, 42, 0.035);
  --surface-strong: rgba(15, 23, 42, 0.06);
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text-0: #0f172a;
  --text-1: #3b4654;
  --text-2: #647087;
  --accent: #06ad56;
  --accent-hover: #05974c;
  --accent-soft: rgba(7, 193, 96, 0.10);
  --accent-border: rgba(7, 193, 96, 0.32);
  --amber-border: rgba(180, 130, 40, 0.45);
}
[data-theme="light"] body {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(7, 193, 96, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}
[data-theme="light"] .site-header { background: rgba(255, 255, 255, 0.78); }
[data-theme="light"] .security-note,
[data-theme="light"] .legal-note { color: #0f4d2e; }
[data-theme="light"] .shot figcaption {
  background: rgba(255, 255, 255, 0.82);
  color: #0f172a;
}
[data-theme="light"] .shot figcaption small { color: #3b4654; }

/* 响应式扩展 */
@media (max-width: 900px) {
  .screens-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .screens-grid { grid-template-columns: 1fr; }
  .step { padding: 22px 20px; }
  .lightbox { padding: 16px; }
  .lightbox .lb-caption { bottom: 12px; font-size: 12px; }
}

/* ==========================================================================
   2026-08-18 迭代：横滑画廊 + 灯箱动画 + 滚动入场（覆盖上方同名规则）
   ========================================================================== */

/* 横向滚动画廊：替代 grid，避免长屏截图被裁切、避免页面被拉长 */
.screens-gallery {
  display: flex;
  gap: 16px;
  margin: 8px -4px 4px;
  padding: 6px 4px 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.screens-gallery::-webkit-scrollbar { height: 8px; }
.screens-gallery::-webkit-scrollbar-track { background: transparent; }
.screens-gallery::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
.screens-gallery::-webkit-scrollbar-thumb:hover { background: var(--accent-border); }

.shot {
  flex: 0 0 auto;
  width: 232px;
  scroll-snap-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.2s ease, box-shadow 0.28s ease;
}
.shot:hover {
  transform: translateY(-6px);
  border-color: var(--accent-border);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.36);
}
.shot img {
  height: auto;
  aspect-ratio: auto;            /* 取消强制比例，完整显示 */
  object-fit: contain;           /* 不裁切 */
  object-position: center top;
  background: var(--bg-2);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.shot:hover img { transform: scale(1.05); }

/* 灯箱：淡入 + 图片缩放入场 */
.lightbox {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lightbox img {
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.34s ease;
}
.lightbox.open img {
  transform: scale(1);
  opacity: 1;
}

/* 滚动入场动画（section / hero / footer 淡入上浮） */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.in-view { opacity: 1; transform: none; }

/* 截图逐张 stagger 入场 */
.js .screens-gallery .shot { opacity: 0; }
.js .screens-gallery.in-view .shot {
  animation: shotIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.js .screens-gallery.in-view .shot:nth-child(1) { animation-delay: 0.04s; }
.js .screens-gallery.in-view .shot:nth-child(2) { animation-delay: 0.15s; }
.js .screens-gallery.in-view .shot:nth-child(3) { animation-delay: 0.26s; }
@keyframes shotIn {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* 移动端画廊卡片收窄 */
@media (max-width: 900px) { .shot { width: 206px; } }
@media (max-width: 560px) { .shot { width: 168px; } }

/* 尊重「减少动态效果」系统偏好 */
@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .screens-gallery .shot {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .shot:hover { transform: none; }
  .shot:hover img { transform: none; }
}

/* ==========================================================================
   功能特性页 features.html
   ========================================================================== */
.page-hero {
  padding: 58px 0 14px;
  text-align: center;
}
.page-hero .kicker { display: inline-block; margin-bottom: 12px; }
.page-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.page-hero p {
  color: var(--text-1);
  max-width: 620px;
  margin: 0 auto;
  font-size: 16px;
}
.feat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
.feat-chips a {
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-1);
  font-size: 13.5px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.feat-chips a:hover {
  border-color: var(--accent-border);
  color: var(--text-0);
  background: var(--surface-strong);
}

/* 功能详解块 */
.feat {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px 26px;
  padding: 34px 0;
  border-top: 1px solid var(--border);
}
.feat:first-of-type { border-top: none; }
.feat-icon {
  grid-row: 1 / span 2;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.feat-icon svg { width: 28px; height: 28px; }
.feat-body h2 { font-size: 22px; margin-bottom: 10px; letter-spacing: -0.2px; }
.feat-body > p { color: var(--text-1); font-size: 15.5px; margin-bottom: 14px; }
.feat-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 22px;
  margin: 0 0 14px;
}
.feat-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-1);
  font-size: 14.5px;
  line-height: 1.55;
}
.feat-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent);
}

.feat-note {
  margin: 2px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--text-0);
  font-size: 13.5px;
  line-height: 1.55;
}
.feat-note a { color: var(--accent); }

@media (max-width: 640px) {
  .feat { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .feat-icon { grid-row: auto; }
  .feat-list { grid-template-columns: 1fr; }
}
