/* ============================================================
   聆曦字幕助手官网 — 全部样式（浅色 / 深色双主题）
   主题通过 <html data-theme="light|dark"> 切换，颜色全部走变量。
   ============================================================ */

/* ---------- 主题变量 ---------- */
:root {
  --bg: #f6f7fb;
  --bg-soft: #eef0f7;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --border: #e6e8f0;
  --border-strong: #d7dbe8;
  --text: #1d2030;
  --text-soft: #5b6072;
  --text-dim: #8b90a3;
  --accent: #4f8cff;
  --accent-2: #6a5cff;
  --accent-soft: rgba(79, 140, 255, 0.1);
  --accent-text: #ffffff;
  --ok: #16a34a;
  --shadow-sm: 0 1px 2px rgba(20, 24, 45, 0.04), 0 4px 12px rgba(20, 24, 45, 0.04);
  --shadow-md: 0 8px 30px rgba(20, 24, 45, 0.08);
  --shadow-lg: 0 24px 70px rgba(20, 24, 45, 0.14);
  --nav-bg: rgba(246, 247, 251, 0.78);
  --hero-glow-1: rgba(79, 140, 255, 0.22);
  --hero-glow-2: rgba(106, 92, 255, 0.16);
  --code-bg: #1b1e2b;
  --grad: linear-gradient(100deg, #4f8cff 0%, #6a5cff 100%);
}

html[data-theme="dark"] {
  --bg: #0f1116;
  --bg-soft: #141720;
  --surface: #191c26;
  --surface-2: #1f2330;
  --border: #2a2f3d;
  --border-strong: #373d4e;
  --text: #eceef5;
  --text-soft: #a7adc0;
  --text-dim: #757c90;
  --accent: #5d97ff;
  --accent-2: #8577ff;
  --accent-soft: rgba(93, 151, 255, 0.14);
  --accent-text: #ffffff;
  --ok: #4ade80;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 34px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  --nav-bg: rgba(15, 17, 22, 0.78);
  --hero-glow-1: rgba(79, 140, 255, 0.18);
  --hero-glow-2: rgba(106, 92, 255, 0.16);
  --code-bg: #0b0d13;
  --grad: linear-gradient(100deg, #5d97ff 0%, #8a7bff 100%);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; }
/* 图标走线性风格：fill/stroke 是可继承属性，会穿透 <use> 的 shadow DOM 作用于 symbol 内的图形 */
svg:not(.svg-sprite) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(1160px, 92vw); margin: 0 auto; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 20px;
  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:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 15px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn-primary {
  background: var(--grad);
  color: var(--accent-text);
  box-shadow: 0 8px 24px rgba(79, 140, 255, 0.32);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(79, 140, 255, 0.45); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ic { width: 17px; height: 17px; }
.btn-ic.left { order: -1; }

.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--accent); border-color: var(--border); }
.icon-btn svg { width: 19px; height: 19px; }
/* 主题图标：暗色时隐藏月亮、显示太阳（可点击切换到亮）；反之亦然 */
.icon-sun { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.brand-logo {
  width: 30px; height: 30px; flex: none; object-fit: contain;
  border-radius: 9px; box-shadow: 0 4px 12px rgba(79, 140, 255, 0.35);
}
.nav-links { display: flex; align-items: center; gap: 22px; margin: 0 auto; }
.nav-links a { font-size: 14px; color: var(--text-soft); font-weight: 500; transition: color 0.18s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 54px;
  background: radial-gradient(1200px 600px at 50% -10%, var(--bg-soft), transparent 70%);
}
.hero-glow {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 520px; pointer-events: none;
  background:
    radial-gradient(circle at 35% 40%, var(--hero-glow-1), transparent 55%),
    radial-gradient(circle at 65% 35%, var(--hero-glow-2), transparent 55%);
  filter: blur(30px);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12.5px; font-weight: 600; margin-bottom: 22px;
  border: 1px solid var(--accent-soft);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-title { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.12; letter-spacing: -1.5px; font-weight: 800; }
.hero-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { margin-top: 22px; font-size: 17px; color: var(--text-soft); max-width: 560px; }
.hero-sub strong { color: var(--text); font-weight: 650; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-micro { margin-top: 18px; font-size: 12.5px; color: var(--text-dim); }
.scroll-hint {
  position: relative; margin-top: 62px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 2px; color: var(--text-dim); text-transform: uppercase;
}
.scroll-hint span { width: 1px; height: 34px; background: linear-gradient(var(--border-strong), transparent); }

/* ---------- 软件界面示意（纯 CSS） ---------- */
.hero-visual { position: relative; }
.app-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
  transition: transform 0.4s ease;
}
.hero-visual:hover .app-window { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg); }
.app-titlebar {
  height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.tb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.tb-dot:first-child { background: #ff605c; }
.tb-dot:nth-child(2) { background: #ffbd44; }
.tb-dot:nth-child(3) { background: #00ca4e; }
.tb-logo { width: 15px; height: 15px; margin-left: 10px; border-radius: 4px; }
.tb-title { font-size: 11px; color: var(--text-dim); }
.app-body { display: flex; height: 320px; }
.app-sidebar {
  width: 52px; background: var(--surface-2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 16px;
}
.side-item { width: 26px; height: 26px; border-radius: 7px; background: var(--border); opacity: 0.6; }
.side-item.active { background: var(--grad); opacity: 1; }
.app-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.app-drop {
  height: 96px; border: 1.5px dashed var(--border-strong); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  background: var(--accent-soft);
}
.drop-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; }
.drop-icon svg { width: 17px; height: 17px; }
.drop-line { height: 6px; border-radius: 3px; background: var(--border-strong); }
.drop-line.lg { width: 130px; }
.drop-line.sm { width: 88px; opacity: 0.6; }
.app-wave { height: 62px; border-radius: 8px; background: var(--surface-2); position: relative; overflow: hidden; display: flex; align-items: center; padding: 0 10px; }
.wave-bars { display: flex; align-items: center; gap: 3px; height: 100%; width: 100%; }
.wave-bars i { flex: 1; background: var(--accent); opacity: 0.35; border-radius: 2px; }
.wave-bars i:nth-child(3n) { height: 60%; }
.wave-bars i:nth-child(3n+1) { height: 30%; }
.wave-bars i:nth-child(4n) { height: 85%; }
.wave-bars i:nth-child(5n) { height: 45%; }
.wave-block { position: absolute; top: 8px; height: 46px; border-radius: 5px; background: var(--accent-soft); border: 1px solid var(--accent); opacity: 0.5; }
.wave-block.w1 { left: 12%; width: 22%; }
.wave-block.w2 { left: 40%; width: 18%; }
.wave-block.w3 { left: 65%; width: 26%; }
.wave-playhead { position: absolute; top: 0; bottom: 0; left: 38%; width: 2px; background: #ff5c7a; box-shadow: 0 0 8px #ff5c7a; }
.app-rows { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.row { display: flex; align-items: center; gap: 10px; padding: 6px 9px; border-radius: 6px; font-size: 10px; }
.row.on { background: var(--accent-soft); }
.row-time { color: var(--accent); font-variant-numeric: tabular-nums; font-family: monospace; }
.row-text { color: var(--text-soft); }
.float-badge {
  position: absolute; display: flex; align-items: center; gap: 7px;
  padding: 9px 13px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-md); font-size: 12.5px; font-weight: 600;
}
.float-badge svg { width: 15px; height: 15px; }
.fb-1 { top: 30px; right: -14px; color: var(--ok); }
.fb-2 { bottom: 46px; left: -22px; color: var(--accent); }
.fb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- 通用 section ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; letter-spacing: -0.8px; }
.section-lead { margin-top: 14px; color: var(--text-soft); font-size: 15.5px; }

/* ---------- 卖点条 ---------- */
.why { padding: 40px 0 20px; }
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.highlight {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 20px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.highlight:hover { transform: translateY(-3px); border-color: var(--accent); }
.hl-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.hl-icon svg { width: 20px; height: 20px; }
.hl-text h3 { font-size: 15px; }
.hl-text p { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; line-height: 1.5; }

/* ---------- 功能网格 ---------- */
.features { background: var(--bg-soft); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card {
  padding: 26px 22px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.fc-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(79, 140, 255, 0.3); }
.fc-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-top: 18px; font-size: 17px; }
.feature-card p { margin-top: 8px; font-size: 13.5px; color: var(--text-soft); line-height: 1.65; }

/* ---------- 步骤 ---------- */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; }
.step-top { justify-content: center; }
/* 左侧补一条对称的渐隐线，让序号真正居中 */
.step-top::before { content: ""; flex: 1; height: 1px; background: linear-gradient(270deg, var(--border-strong), transparent); }
.step-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.step-n { font-size: 34px; font-weight: 800; letter-spacing: -1px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); }
.step h3 { font-size: 19px; }
.step p { margin-top: 8px; color: var(--text-soft); font-size: 14px; }

/* ---------- 界面预览 ---------- */
.preview { background: var(--bg-soft); }
.preview-tabs { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.preview-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-soft);
  font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.preview-tab:hover { color: var(--accent); border-color: var(--accent); }
.preview-tab.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(79, 140, 255, 0.3);
}
.preview-autoplay { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.preview-autoplay .pa-play { display: none; }
.preview-autoplay.paused .pa-play { display: block; }
.preview-autoplay.paused .pa-pause { display: none; }
.preview-autoplay.paused { color: var(--accent); }
.preview-stage {
  position: relative;
  aspect-ratio: 1920 / 1122;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
}
.preview-shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
  cursor: zoom-in;
}
.preview-shot.active { opacity: 1; }
.preview-shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.preview-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 6px 2px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.preview-theme { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 11.5px; }

/* ---------- 下载区 ---------- */
.download { padding-top: 30px; }
.download-card {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px;
  padding: 52px; border-radius: 24px;
  background: radial-gradient(460px 380px at 100% 0%, var(--hero-glow-1), transparent 68%), var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.download-copy { position: relative; }
.download-copy h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.8px; }
.download-copy .section-lead { max-width: 540px; }

/* 平台卡片 */
.platform-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.platform-card {
  position: relative; padding: 18px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.platform-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.pc-head { display: flex; align-items: center; gap: 11px; }
.pc-icon {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.pc-icon svg { width: 21px; height: 21px; }
.pc-title h3 { font-size: 15px; line-height: 1.3; }
.pc-title p { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.pc-btn { width: 100%; margin-top: 16px; padding: 10px 12px; font-size: 14px; }
.pc-hint { margin-top: 9px; font-size: 11.5px; color: var(--text-dim); }

/* macOS 芯片版本菜单：悬停显示，点击也可展开（兼容触屏） */
.variant-wrap { position: relative; }
.variant-menu {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20;
  display: flex; flex-direction: column; gap: 3px; min-width: 232px; padding: 7px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 13px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
/* 透明桥接区：鼠标从按钮移到菜单时穿过 8px 间隙也不会收起 */
.variant-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.variant-wrap:hover .variant-menu,
.variant-wrap:focus-within .variant-menu,
.variant-wrap.open .variant-menu {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
}
.variant-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; padding: 9px 11px; border: 0; border-radius: 9px;
  background: transparent; color: var(--text); text-align: left;
  font: inherit; cursor: pointer; transition: background 0.15s ease;
}
.variant-item:hover { background: var(--accent-soft); }
.vi-label { font-size: 13px; font-weight: 600; }
.variant-item:hover .vi-label { color: var(--accent); }
.vi-desc { font-size: 11.5px; color: var(--text-dim); }
.idle-note { margin-top: 14px; font-size: 12.5px; color: var(--text-dim); }
.req-card {
  position: relative; padding: 26px; border-radius: 18px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.req-card h3 { font-size: 15px; margin-bottom: 16px; }
.req-card ul { display: flex; flex-direction: column; gap: 12px; }
.req-card li { display: flex; gap: 10px; font-size: 13px; color: var(--text-soft); line-height: 1.5; }
.req-card li svg { flex: none; width: 17px; height: 17px; color: var(--ok); margin-top: 2px; }
.req-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-dim); line-height: 1.6; }

/* ---------- 更新日志页 ---------- */
.changelog-page { padding-top: 60px; }
.changelog-list {
  max-width: 860px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
}
.changelog-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.changelog-item[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.changelog-item summary {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px;
  cursor: pointer; list-style: none;
  transition: background 0.15s ease;
}
.changelog-item summary::-webkit-details-marker { display: none; }
.changelog-item summary:hover { background: var(--surface-2); }
.cl-ver { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.cl-badge {
  padding: 3px 10px; border-radius: 999px;
  background: var(--grad); color: #fff;
  font-size: 11.5px; font-weight: 600;
}
.cl-date { color: var(--text-dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.cl-chevron { margin-left: auto; flex: none; width: 18px; height: 18px; color: var(--text-dim); transition: transform 0.22s ease; }
.changelog-item[open] .cl-chevron { transform: rotate(180deg); color: var(--accent); }
.cl-body { padding: 4px 22px 22px; border-top: 1px solid var(--border); }
.cl-group {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 10px;
  font-size: 14px; font-weight: 700;
}
.cl-group::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--grad); }
.cl-body ul { display: flex; flex-direction: column; gap: 8px; }
.cl-body li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-soft); line-height: 1.7; }
.cl-type {
  flex: none; margin-top: 3px; height: 20px; padding: 0 8px;
  display: inline-flex; align-items: center;
  border-radius: 6px;
  font-size: 11px; font-weight: 700;
}
.cl-type { background: var(--accent-soft); color: var(--accent); } /* 默认：优化 */
li[data-type="新增"] .cl-type { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
li[data-type="修复"] .cl-type { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
li[data-type="公告"] .cl-type { background: rgba(245, 158, 11, 0.14); color: #d97706; }
li[data-type="重构"] .cl-type { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
li[data-type="说明"] .cl-type { background: rgba(107, 114, 128, 0.14); color: #6b7280; }
html[data-theme="dark"] li[data-type="新增"] .cl-type { background: rgba(74, 222, 128, 0.14); color: var(--ok); }
html[data-theme="dark"] li[data-type="修复"] .cl-type { background: rgba(248, 113, 113, 0.14); color: #f87171; }
html[data-theme="dark"] li[data-type="公告"] .cl-type { background: rgba(251, 191, 36, 0.14); color: #fbbf24; }
html[data-theme="dark"] li[data-type="重构"] .cl-type { background: rgba(167, 139, 250, 0.14); color: #a78bfa; }
html[data-theme="dark"] li[data-type="说明"] .cl-type { background: rgba(156, 163, 175, 0.14); color: #9ca3af; }
.changelog-back { text-align: center; margin-top: 34px; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-soft); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 13px;
  overflow: hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 20px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { flex: none; width: 18px; height: 18px; color: var(--text-dim); transition: transform 0.22s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-a { padding: 0 20px 18px; }
.faq-a p { color: var(--text-soft); font-size: 13.5px; line-height: 1.75; }
.faq-a strong { color: var(--text); }
.faq-a code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.footer-brand { display: flex; gap: 13px; align-items: flex-start; }
.footer-brand p { margin-top: 4px; font-size: 13px; color: var(--text-dim); max-width: 360px; }
.footer-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 13px; }
.footer-side a { color: var(--text-soft); }
.footer-side a:hover { color: var(--accent); }
.copyright { color: var(--text-dim); font-size: 12px; margin-top: 6px; }
.icp { color: var(--text-dim); font-size: 12px; transition: color 0.18s ease; }
.icp:hover { color: var(--accent); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px);
  padding: 12px 20px; border-radius: 12px;
  background: var(--code-bg); color: #fff; font-size: 13.5px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease; z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 截图灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 12, 18, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }
.lb-viewport { position: relative; width: 100%; height: 100%; overflow: hidden; }
.lb-track {
  display: flex; height: 100%;
  transition: transform 0.35s ease;
}
.lb-track img {
  flex: none; width: 100%; height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: rgba(17, 20, 32, 0.5);
  color: #fff; cursor: pointer;
  transition: background 0.18s ease;
}
.lb-nav:hover { background: rgba(17, 20, 32, 0.72); }
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { left: 22px; }
.lb-prev svg { transform: rotate(90deg); }   /* 向下箭头转 90° = 向左 */
.lb-next { right: 22px; }
.lb-next svg { transform: rotate(-90deg); }  /* 向下箭头转 -90° = 向右 */
.lb-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: 999px;
  background: rgba(17, 20, 32, 0.5);
  color: #fff; font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.lb-close {
  position: absolute; top: 18px; right: 22px; z-index: 2;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: rgba(17, 20, 32, 0.5);
  color: #fff; cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.lb-close:hover { background: rgba(17, 20, 32, 0.72); transform: rotate(90deg); }
.lb-close svg { width: 20px; height: 20px; }

/* ---------- 滚动渐显 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 4vw 16px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 8px; }
  .nav-burger { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 540px; }
  .highlight-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .download-card { grid-template-columns: 1fr; padding: 36px; }
}
@media (max-width: 620px) {
  .hero { padding-top: 54px; }
  .section { padding: 60px 0; }
  .highlight-grid, .feature-grid, .step-grid { grid-template-columns: 1fr; }
  .feature-grid { gap: 12px; }
  .nav-cta { display: none; }
  .platform-list { grid-template-columns: 1fr; }
  .float-badge { display: none; }
  .app-window { transform: none; }
  .hero-visual:hover .app-window { transform: none; }
  .footer-inner { flex-direction: column; }
  .footer-side { align-items: flex-start; }
  .preview-autoplay { position: static; transform: none; }
  .preview-caption { flex-direction: column; gap: 6px; }
  .lb-nav { width: 36px; height: 36px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
