/* ============================================================
   YACReader 中文官方站 共享样式
   设计语言：扁平 / 现代 / 专业；品牌色取自 Logo（琥珀金渐变）
   主题策略：浅色为默认，跟随系统自动切换深色
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --amber: #e8a317;        /* 品牌主色（取自 Logo 金） */
  --amber-deep: #c9880a;   /* 主色深（悬停） */
  --amber-ink: #8a5b00;    /* 可读琥珀（浅底小字） */
  --amber-soft: #fdf3dc;   /* 琥珀浅底 */
  --amber-line: #f0dcae;   /* 琥珀描边 */
  --ink: #221e15;          /* 主文字 */
  --ink-2: #4f4a3d;        /* 次文字 */
  --ink-3: #6d6759;        /* 弱文字 */
  --bg: #fbfaf6;           /* 页面底 */
  --surface: #ffffff;      /* 卡片面 */
  --surface-2: #f5f3ea;    /* 次级面 */
  --line: #e9e4d6;         /* 分隔线 */
  --dark: #1d1a12;         /* 深色带 */
  --dark-2: #262219;       /* 深色带次级 */
  --dark-line: #3a3425;    /* 深色带描边 */
  --dark-text: #f4efe3;    /* 深色带文字 */
  --dark-text-2: #c9c2b0;  /* 深色带次文字 */
  --radius: 12px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgba(34, 30, 21, 0.05), 0 8px 24px rgba(34, 30, 21, 0.06);
  --shadow-lift: 0 2px 4px rgba(34, 30, 21, 0.06), 0 14px 36px rgba(34, 30, 21, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --amber-ink: #f2be4d;
    --amber-soft: #2b2413;
    --amber-line: #4a3d1c;
    --ink: #ece7db;
    --ink-2: #c4bdab;
    --ink-3: #97917f;
    --bg: #171511;
    --surface: #1f1c16;
    --surface-2: #26221a;
    --line: #342f23;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 14px 36px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.28; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--amber-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
code, kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.45em;
}

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber); color: #211d14;
  padding: 0.5rem 1rem; border-radius: 0 0 var(--radius-s) 0; z-index: 100;
}
.skip-link:focus { left: 0; }

::selection { background: var(--amber); color: #211d14; }

:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 2px; }

/* ---------- 图标 ---------- */
.icon {
  width: 22px; height: 22px; flex: none;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.icon-l { width: 28px; height: 28px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font: 600 0.98rem/1 var(--font);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--amber); color: #211d14;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 16px rgba(201, 136, 10, 0.28);
}
.btn-primary:hover { background: var(--amber-deep); text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-ink); text-decoration: none; }
.btn-dark { background: var(--amber); color: #211d14; }
.btn-dark:hover { background: #f2b52e; text-decoration: none; }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: -0.01em;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand:hover { text-decoration: none; }
.brand .brand-cn { font-size: 0.72rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0.02em; }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none; margin: 0 0 0 auto; padding: 0;
}
.nav-links a {
  display: block; padding: 0.5rem 0.85rem;
  font-size: 0.95rem; color: var(--ink-2); border-radius: var(--radius-s);
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--amber-ink); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-gh {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--ink-2); font-size: 0.9rem; padding: 0.45rem 0.7rem;
  border-radius: var(--radius-s);
}
.nav-gh:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-s);
  color: var(--ink); padding: 0.45rem 0.55rem; cursor: pointer;
}

/* ---------- 页头（子页） ---------- */
.page-head {
  padding: calc(4rem + 2vw) 0 3.2rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 420px at 85% -10%, color-mix(in srgb, var(--amber) 10%, transparent), transparent 70%),
    var(--bg);
}
.page-head .lede {
  max-width: 44em; color: var(--ink-2); font-size: 1.08rem; margin-bottom: 0;
}
.page-head .lede strong { color: var(--ink); }
.breadcrumb {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0; margin: 0 0 1.2rem; font-size: 0.85rem; color: var(--ink-3);
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line); }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--amber-ink); }
.breadcrumb [aria-current="page"] { color: var(--ink-2); }

/* ---------- 章节通用 ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.2rem) 0; }
.section-tint { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head p { color: var(--ink-2); font-size: 1.03rem; margin-bottom: 0; }
.section-head h2 + p { margin-top: 0.6em; }
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber-ink); margin-bottom: 0.7em;
}

/* ---------- 首页 Hero ---------- */
.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(1200px 500px at 12% -12%, color-mix(in srgb, var(--amber) 14%, transparent), transparent 68%),
    var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 em { font-style: normal; color: var(--amber-deep); }
.hero .lede {
  font-size: 1.1rem; color: var(--ink-2); max-width: 34em; margin-bottom: 1.8rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.4rem; }
.hero-legal { font-size: 0.84rem; color: var(--ink-3); margin: 0; }
.hero-legal a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }

/* Hero 插画：漫画跨页（纯 CSS 扁平示意） */
.spread {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
.spread-pages {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.page-sheet {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px;
  display: grid; gap: 7px;
  background: var(--surface);
}
.panel {
  border-radius: 3px;
  min-height: 54px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(34, 30, 21, 0.14);
}
.panel-amber { background: linear-gradient(160deg, #f7c626, #e8a317); }
.panel-ink { background: #2a261c; }
.panel-paper { background: var(--surface-2); }
.panel-sun {
  background: radial-gradient(circle at 72% 30%, #f7c626 0 26%, #e8a317 26% 42%, transparent 42%),
    linear-gradient(180deg, #fdf3dc, #f5e3b0);
}
.panel-city { background: #2a261c; }
.panel-city::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}
.panel-city::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background:
    linear-gradient(90deg, var(--amber) 0 12%, transparent 12% 20%, #c9880a 20% 34%, transparent 34% 46%, var(--amber) 46% 58%, transparent 58% 66%, #c9880a 66% 84%, transparent 84%);
  clip-path: polygon(0 100%, 0 40%, 18% 40%, 18% 10%, 34% 10%, 34% 55%, 50% 55%, 50% 0, 68% 0, 68% 35%, 84% 35%, 84% 100%);
  opacity: 0.92;
}
.panel-dots { background: var(--amber-soft); }
.panel-dots::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--amber) 1.2px, transparent 1.3px);
  background-size: 9px 9px; opacity: 0.5;
}
.panel-bubble { background: var(--surface-2); }
.panel-bubble::before {
  content: ""; position: absolute; inset: 18% 14%;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 46% 46% 46% 12%;
}
.panel-caption {
  position: absolute; inset: auto 6px 6px 6px;
  background: rgba(34, 30, 21, 0.82); color: #f4efe3;
  font-size: 0.6rem; line-height: 1.5; padding: 2px 7px;
  border-radius: 2px; letter-spacing: 0.06em;
}
.panel-sound {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 35%, transparent 0 8px, rgba(232, 163, 23, 0.85) 8px 10px, transparent 10px 16px, rgba(232, 163, 23, 0.6) 16px 18px, transparent 18px 26px, rgba(232, 163, 23, 0.4) 26px 28px, transparent 28px),
    radial-gradient(circle at 62% 60%, transparent 0 5px, rgba(42, 38, 28, 0.7) 5px 7px, transparent 7px 12px, rgba(42, 38, 28, 0.45) 12px 14px, transparent 14px);
}
.panel-speed { background: var(--surface-2); }
.panel-speed::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(100deg,
    transparent 0 10px, rgba(201, 136, 10, 0.4) 10px 13px, transparent 13px 22px);
}
.spread-tab {
  position: absolute; top: -13px; right: 18px;
  background: var(--ink); color: var(--dark-text);
  font-size: 0.72rem; letter-spacing: 0.1em;
  padding: 3px 12px; border-radius: 999px;
}
@media (prefers-color-scheme: dark) {
  .panel-ink, .panel-city { background: #14120c; }
  .panel-caption { background: rgba(12, 10, 6, 0.85); }
}

/* ---------- 数据条 ---------- */
.stats-band {
  border-block: 1px solid var(--line);
  background: var(--surface-2);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  list-style: none; margin: 0; padding: 0;
}
.stats-grid li {
  padding: 1.6rem 1rem;
  border-left: 1px solid var(--line);
}
.stats-grid li:first-child { border-left: 0; }
.stat-num {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink); line-height: 1.15;
}
.stat-num small { font-size: 0.55em; font-weight: 700; color: var(--amber-deep); margin-left: 2px; }
.stat-label { font-size: 0.88rem; color: var(--ink-3); margin-top: 0.2em; }

/* ---------- 优势 Bento ---------- */
.bento {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "a a b"
    "a a c"
    "d e f";
}
.bento-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.5rem 1.6rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.bento-item:hover { border-color: var(--amber-line); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.bento-item h3 { margin: 0; }
.bento-item p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.b-a { grid-area: a; background: linear-gradient(150deg, var(--amber-soft), transparent 62%), var(--surface); }
.b-b { grid-area: b; }
.b-c { grid-area: c; }
.b-d { grid-area: d; }
.b-e { grid-area: e; }
.b-f { grid-area: f; }
.bento-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--amber); color: #211d14;
}
.bento-icon .icon { width: 24px; height: 24px; }
.bento-icon.on-dark { background: rgba(255, 255, 255, 0.12); color: var(--amber); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.3rem; }
.chip {
  font-family: var(--mono); font-size: 0.78rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.15rem 0.7rem; color: var(--ink-2);
}
.platform-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.4rem; }
.platform-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.86rem; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.3rem 0.85rem; background: var(--surface); color: var(--ink);
}
.platform-pill .icon { width: 16px; height: 16px; color: var(--amber-deep); }
.bento-link { margin-top: auto; font-size: 0.9rem; font-weight: 600; }
.b-a .bento-body { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.4rem; align-items: start; }
.b-a .cover-wall { grid-template-columns: repeat(2, 1fr); gap: 8px; }

/* ---------- 场景行 ---------- */
.scenario-list { list-style: none; margin: 0; padding: 0; }
.scenario-list > li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1.4rem; align-items: start;
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
}
.scenario-list > li:last-child { border-bottom: 1px solid var(--line); }
.scenario-ico {
  width: 52px; height: 52px; border-radius: var(--radius-s);
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--amber-deep);
}
.scenario-ico .icon { width: 26px; height: 26px; }
.scenario-info h3 { margin-bottom: 0.3em; }
.scenario-info .tags { margin-top: 0.5em; }
.scenario-desc { color: var(--ink-2); font-size: 0.98rem; margin: 0; align-self: center; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.76rem; font-weight: 600;
  background: var(--amber-soft); color: var(--amber-ink);
  border: 1px solid var(--amber-line);
  border-radius: 999px; padding: 0.1rem 0.65rem;
}

/* ---------- CTA 深色带 ---------- */
.cta-band { background: var(--dark); color: var(--dark-text); }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem;
  padding: clamp(2.6rem, 6vw, 4rem) 0;
}
.cta-copy { flex: 1 1 24rem; }
.cta-copy h2 { color: var(--dark-text); }
.cta-copy p { color: var(--dark-text-2); margin-bottom: 0; max-width: 36em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.cta-band .btn-ghost { color: var(--dark-text); border-color: var(--dark-line); }
.cta-band .btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--dark); color: var(--dark-text-2);
  border-top: 1px solid var(--dark-line);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.4rem;
  padding: clamp(2.4rem, 5vw, 3.4rem) 0 2rem;
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--dark-text); font-weight: 700; font-size: 1.05rem; }
.footer-brand img { width: 30px; height: 30px; border-radius: 7px; }
.footer-desc { margin-top: 0.9rem; max-width: 30em; line-height: 1.7; }
.footer-grid h4 {
  color: var(--dark-text); font-size: 0.82rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 1em;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55em; }
.footer-grid a { color: var(--dark-text-2); }
.footer-grid a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid var(--dark-line);
  padding: 1.2rem 0 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; align-items: center;
  font-size: 0.84rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom .spacer { flex: 1; }

/* ---------- 下载弹窗 ---------- */
.dl-dialog {
  border: none; border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 80px rgba(15, 12, 5, 0.35);
  padding: 0;
  width: min(560px, calc(100vw - 2.5rem));
}
.dl-dialog::backdrop { background: rgba(20, 17, 10, 0.55); backdrop-filter: blur(3px); }
.dl-dialog[open] { animation: dl-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);left: 0;
  right: 0;
  top: 0;
  bottom: 0; }
  button { outline: none } 
@keyframes dl-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.dl-head {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.5rem 1.7rem 0.9rem;
}
.dl-head h2 { margin: 0; font-size: 1.25rem; }
.dl-head .dl-sub { margin: 0.25em 0 0; color: var(--ink-3); font-size: 0.88rem; }
.dl-close {
  margin-left: auto; flex: none;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 50%;
  width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer;
}
.dl-close:hover { color: var(--ink); border-color: var(--amber); }
.dl-close .icon { width: 16px; height: 16px; }
.dl-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem;
  padding: 0.4rem 1.7rem 0.4rem;
}
.dl-card {
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface);
  padding: 1.1rem 0.8rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.dl-card:hover { border-color: var(--amber-line); box-shadow: var(--shadow); }
.dl-card img {
  width: 168px; height: 168px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: #fff;
}
.dl-card .dl-name { font-weight: 700; font-size: 0.95rem; }
.dl-card .dl-hint { font-size: 0.78rem; color: var(--ink-3); line-height: 1.5; margin: 0; }
.dl-note {
  margin: 0; padding: 0.9rem 1.7rem 1.5rem;
  font-size: 0.84rem; color: var(--ink-3); line-height: 1.7;
}
.dl-note a { color: var(--amber-ink); }

/* ---------- 功能特性页 ---------- */
.comp-grid {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 1rem;
}
.comp-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 1.7rem 1.7rem 1.4rem;
  display: flex; flex-direction: column;
}
.comp-card.comp-reader {
  background: linear-gradient(155deg, var(--amber-soft), transparent 58%), var(--surface);
}
.comp-card h3 { display: flex; align-items: center; gap: 0.6rem; }
.comp-card .comp-en { font-size: 0.78rem; color: var(--ink-3); font-weight: 500; letter-spacing: 0.04em; }
.comp-card p { color: var(--ink-2); font-size: 0.95rem; }
.comp-card ul { margin: 0.4em 0 0; padding: 0; list-style: none; display: grid; gap: 0.45em; }
.comp-card ul li {
  display: flex; gap: 0.55rem; align-items: baseline; font-size: 0.92rem; color: var(--ink-2);
}
.comp-card ul li::before {
  content: ""; width: 5px; height: 5px; border-radius: 2px;
  background: var(--amber); flex: none; transform: translateY(-2px);
}
.feat-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  list-style: none; margin: 0; padding: 0;
}
.feat-list li {
  display: flex; gap: 1rem; padding: 1.3rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.feat-list li:nth-last-child(-n + 2) { border-bottom: 0; }
.feat-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.feat-ico {
  width: 42px; height: 42px; flex: none; border-radius: 10px;
  background: var(--amber-soft); border: 1px solid var(--amber-line);
  color: var(--amber-ink); display: grid; place-items: center;
}
.feat-ico .icon { width: 22px; height: 22px; }
.feat-list h3 { font-size: 1.02rem; margin-bottom: 0.25em; }
.feat-list p { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.feat-panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.feat-panel-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 1rem 1.4rem; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.feat-panel-head .dots { display: flex; gap: 5px; }
.feat-panel-head .dots i {
  width: 9px; height: 9px; border-radius: 50%; background: var(--line);
}
.feat-panel-head .dots i:first-child { background: var(--amber); }
.feat-panel-head .addr {
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 0.15rem 0.7rem; margin-left: 0.4rem;
}
.cover-wall {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 1.3rem 1.4rem;
}
.cover {
  aspect-ratio: 3 / 4; border-radius: 6px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8px; font-size: 0.66rem; font-weight: 700; line-height: 1.4;
  color: #fff; letter-spacing: 0.02em;
  position: relative; overflow: hidden;
}
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 12, 5, 0.45));
}
.cover span { position: relative; z-index: 1; }
.cover-1 { background: linear-gradient(165deg, #f7c626, #c9880a); color: #2a2409; }
.cover-2 { background: linear-gradient(165deg, #4a4232, #221e15); }
.cover-3 { background: linear-gradient(165deg, #e8a317, #8a5b00); }
.cover-4 { background: linear-gradient(200deg, #efe9d8, #b9ae8f); color: #4f4a3d; }
.cover-5 { background: linear-gradient(165deg, #2a261c, #14120c); }
.cover-6 { background: linear-gradient(165deg, #d9b44a, #a3750a); color: #2a2409; }
.cover-badge {
  position: absolute; top: 7px; left: 7px; z-index: 1;
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
}
.cover-badge.read { background: #6d6759; }
.flow-strip {
  display: flex; gap: 1rem; align-items: stretch; padding: 1.3rem 1.4rem 1.5rem;
}
.flow-step {
  flex: 1; border: 1px dashed var(--line); border-radius: var(--radius-s);
  padding: 1rem 1.1rem; background: var(--bg);
}
.flow-step .flow-ico {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--amber-soft); border: 1px solid var(--amber-line);
  color: var(--amber-ink); display: grid; place-items: center; margin-bottom: 0.7rem;
}
.flow-step .flow-ico .icon { width: 20px; height: 20px; }
.flow-step h4 { margin: 0 0 0.3em; font-size: 0.95rem; }
.flow-step p { margin: 0; font-size: 0.85rem; color: var(--ink-3); }
.flow-arrow { align-self: center; color: var(--amber-deep); flex: none; }

/* ---------- 时间线 ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.6rem; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line); border-radius: 2px;
}
.timeline li { position: relative; padding: 0 0 1.9rem 1.4rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -1.6rem; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--amber); border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line);
}
.timeline .tl-ver { font-weight: 800; letter-spacing: 0.01em; }
.timeline .tl-date {
  font-family: var(--mono); font-size: 0.76rem; color: var(--ink-3);
  margin-left: 0.6rem;
}
.timeline .tl-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  background: var(--amber); color: #211d14;
  border-radius: 4px; padding: 1px 7px; margin-left: 0.5rem; vertical-align: 2px;
}
.timeline p { margin: 0.35em 0 0; font-size: 0.94rem; color: var(--ink-2); }

/* ---------- 下载页 ---------- */
.ver-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem;
}
.ver-hero h1 { margin: 0; }
.ver-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ver-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.84rem; font-weight: 600;
  border: 1px solid var(--amber-line); background: var(--amber-soft);
  color: var(--amber-ink); border-radius: 999px; padding: 0.22rem 0.85rem;
}
.ver-chip.plain { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.ver-chip .icon { width: 15px; height: 15px; }
.dl-platforms {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.os-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 1.7rem 1.7rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.os-card:hover { border-color: var(--amber-line); box-shadow: var(--shadow-lift); }
.os-card.os-main {
  background: linear-gradient(160deg, var(--amber-soft), transparent 55%), var(--surface);
}
.os-head { display: flex; align-items: center; gap: 0.9rem; }
.os-tile {
  width: 52px; height: 52px; border-radius: var(--radius-s);
  background: var(--dark); color: var(--amber);
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.92rem; letter-spacing: 0.02em;
}
.os-head h3 { margin: 0; }
.os-head .os-sub { font-size: 0.82rem; color: var(--ink-3); margin: 0.1em 0 0; }
.os-card p { margin: 0; font-size: 0.93rem; color: var(--ink-2); }
.os-sources { display: grid; gap: 0.45rem; font-size: 0.88rem; margin: 0.2rem 0 0.4rem; }
.os-sources li { display: flex; align-items: baseline; gap: 0.5rem; color: var(--ink-2); list-style: none; }
.os-sources li::before {
  content: ""; width: 5px; height: 5px; border-radius: 2px;
  background: var(--amber); flex: none; transform: translateY(-2px);
}
.os-card .btn { margin-top: auto; }
.os-note { font-size: 0.8rem; color: var(--ink-3); margin: 0; }
.mobile-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.note-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.note-list li { display: flex; gap: 0.9rem; }
.note-ico {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  background: var(--amber-soft); border: 1px solid var(--amber-line);
  color: var(--amber-ink); display: grid; place-items: center;
}
.note-ico .icon { width: 21px; height: 21px; }
.note-list h3 { font-size: 1rem; margin-bottom: 0.2em; }
.note-list p { margin: 0; font-size: 0.92rem; color: var(--ink-2); }

/* ---------- 指南页 ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  counter-reset: step;
}
.step-card {
  counter-increment: step;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 1.7rem 1.6rem 1.5rem;
  position: relative;
}
.step-card::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 2.4rem; font-weight: 700;
  color: color-mix(in srgb, var(--amber) 45%, transparent);
  line-height: 1; display: block; margin-bottom: 0.7rem;
}
.step-card h3 { margin-bottom: 0.3em; }
.step-card p { margin: 0; font-size: 0.93rem; color: var(--ink-2); }
.step-card ol { margin: 0.8em 0 0; padding-left: 1.1em; font-size: 0.9rem; color: var(--ink-2); display: grid; gap: 0.35em; }
.guide-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.guide-cols h2 { margin-bottom: 0.7em; }
.guide-block { margin-bottom: 2.4rem; }
.guide-block:last-child { margin-bottom: 0; }
.guide-block ul, .guide-block ol { color: var(--ink-2); font-size: 0.97rem; display: grid; gap: 0.5em; }
.guide-block .kbd-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 0.6em 0 0; list-style: none; padding: 0; font-size: 0.9rem; color: var(--ink-2); }
.guide-block .kbd-row li { display: flex; align-items: center; gap: 0.5rem; }
kbd { font-size: 0.8rem; padding: 0.15rem 0.55rem; }
.tips-box {
  border: 1px solid var(--amber-line); background: var(--amber-soft);
  border-radius: var(--radius-s); padding: 1rem 1.2rem;
  font-size: 0.9rem; color: var(--ink-2); margin: 1.1rem 0 0;
}
.tips-box strong { color: var(--amber-ink); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.7rem; }
.faq-list details {
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface);
}
.faq-list details[open] { border-color: var(--amber-line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1.05rem 1.3rem;
  font-weight: 600; font-size: 0.99rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { margin-left: auto; width: 18px; height: 18px; color: var(--ink-3); transition: transform 0.2s ease; }
.faq-list details[open] summary .icon { transform: rotate(180deg); color: var(--amber-deep); }
.faq-list .faq-body { padding: 0 1.3rem 1.15rem; color: var(--ink-2); font-size: 0.94rem; }
.faq-list .faq-body p { margin: 0; }
.faq-list .faq-body a { font-weight: 600; }

/* ---------- 关于页 ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.about-side {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 1.6rem 1.7rem;
  align-self: start;
}
.about-side h3 { font-size: 1rem; }
.fact-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.fact-row:last-child { border-bottom: 0; }
.fact-row dt { color: var(--ink-3); flex: none; }
.fact-row dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.contrib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.contrib-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 1.5rem 1.5rem 1.3rem;
}
.contrib-card h3 { display: flex; align-items: center; gap: 0.55rem; font-size: 1.02rem; }
.contrib-card .icon { color: var(--amber-deep); }
.contrib-card p { margin: 0; font-size: 0.92rem; color: var(--ink-2); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
thead th {
  background: var(--surface-2); font-size: 0.82rem; letter-spacing: 0.06em;
  color: var(--ink-3); text-transform: uppercase; font-weight: 700;
  white-space: nowrap;
}
tbody th { font-weight: 600; white-space: nowrap; }
td .chip { margin: 0.15rem 0.15rem 0 0; display: inline-block; }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "a a" "b c" "d e" "f f";
  }
  .comp-grid { grid-template-columns: 1fr; }
  .cover-wall { grid-template-columns: repeat(6, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links, .nav-actions .nav-gh { display: none; }
  .nav-open .nav-links {
    display: grid; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.25rem 1rem; gap: 0.1rem;
  }
  .nav-open .nav-links a { padding: 0.7rem 0.9rem; font-size: 1rem; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn { padding: 0.7rem 1.1rem; font-size: 0.9rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid li { border-left: 0; border-top: 1px solid var(--line); }
  .stats-grid li:nth-child(even) { border-left: 1px solid var(--line); }
  .stats-grid li:nth-child(-n + 2) { border-top: 0; }
  .scenario-list > li { grid-template-columns: 48px 1fr; }
  .scenario-desc { grid-column: 2; }
  .feat-list { grid-template-columns: 1fr; }
  .feat-list li { border-right: 0 !important; }
  .feat-list li:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .feat-list li:last-child { border-bottom: 0; }
  .dl-platforms { grid-template-columns: 1fr; }
  .mobile-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .guide-cols { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contrib-grid { grid-template-columns: 1fr; }
  .flow-strip { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 1.4rem; }
  .b-a .bento-body { grid-template-columns: 1fr; }
  .cover-wall { grid-template-columns: repeat(4, 1fr); }
  .cover:nth-child(n + 5) { display: none; }
}
@media (max-width: 560px) {
  .dl-grid { grid-template-columns: 1fr; }
  .dl-card img { width: 150px; height: 150px; }
  .spread-tab { right: 10px; }
}
