/* FrontMap 官网样式
   - 零依赖、无构建步骤
   - 颜色全部走 CSS 变量：默认亮色纸感；[data-mode="dark"] 切换暗色
   - 强调色由 js/palette.js 用 Poline 生成后写到 :root 的内联变量上（--accent / --accent-ink / --accent-2 …）
   - 标题不用渐变，只用 --accent-ink 单色 */

/* ---------- 基础令牌 ---------- */
:root {
  --radius: 16px;
  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, "Liberation Mono", monospace;

  /* 强调色兜底（无 JS / 脚本未加载时也能看）：与 palette.js 的默认模型算出来的一致 */
  --accent: #009772;
  --accent-ink: #117e61;
  --on-accent: #ffffff;
  --accent-2: #af7969;
  --accent-2-ink: #926659;
  --on-accent-2: #ffffff;

  --accent-soft: color-mix(in srgb, var(--accent) 11%, transparent);
  --accent-soft-2: color-mix(in srgb, var(--accent) 6%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 34%, transparent);
  --accent-line-soft: color-mix(in srgb, var(--accent) 20%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 18%, transparent);
  --accent-2-soft: color-mix(in srgb, var(--accent-2) 11%, transparent);
  --accent-2-line: color-mix(in srgb, var(--accent-2) 30%, transparent);
}

/* 亮色（默认）：暖白纸面 + 石墨文字 */
:root,
:root[data-mode="light"] {
  color-scheme: light;
  --bg: #f7f6f3;
  --bg-2: #fdfcfa;
  --panel: #ffffff;
  --panel-2: #f2f1ec;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(255, 255, 255, 0.95);
  --border: #e5e2da;
  --border-strong: #d5d1c7;
  --text: #16161a;
  --muted: #5d5c64;
  --muted-2: #8c8b93;
  --on-deep: #ffffff;
  --header-bg: rgba(250, 249, 246, 0.82);
  --page-grad: linear-gradient(180deg, #f8f7f4 0%, #f7f6f3 55%, #f4f3ef 100%);
  --grid-line: rgba(22, 22, 26, 0.045);
  --glow-1: color-mix(in srgb, var(--accent) 16%, transparent);
  --glow-2: color-mix(in srgb, var(--accent-2) 12%, transparent);
  --card-bg: linear-gradient(180deg, #ffffff 0%, #fcfbf9 100%);
  --card-bg-hover: #ffffff;
  --shadow-card: 0 1px 2px rgba(22, 22, 26, 0.04), 0 8px 24px -14px rgba(22, 22, 26, 0.16);
  --shadow-hover: 0 18px 40px -22px rgba(22, 22, 26, 0.28);
  --shadow-pop: 0 24px 60px -28px rgba(22, 22, 26, 0.35);
  --kbd-bg: linear-gradient(180deg, #ffffff, #f1efe9);
  --kbd-border: rgba(22, 22, 26, 0.16);
  --kbd-shadow: inset 0 1px 0 #ffffff;
  --code-bg: #f2f1ec;
}

/* 暗色：中性石墨，不带紫 */
:root[data-mode="dark"] {
  color-scheme: dark;
  --bg: #0e0f13;
  --bg-2: #13141a;
  --panel: #17181f;
  --panel-2: #1d1f27;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eceaea;
  --muted: #a4a3ae;
  --muted-2: #7c7b87;
  --on-deep: #0e0f13;
  --header-bg: rgba(14, 15, 19, 0.78);
  --page-grad: linear-gradient(180deg, #0e0f13 0%, #101117 55%, #0c0d11 100%);
  --grid-line: rgba(255, 255, 255, 0.035);
  --glow-1: color-mix(in srgb, var(--accent) 22%, transparent);
  --glow-2: color-mix(in srgb, var(--accent-2) 14%, transparent);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
  --card-bg-hover: rgba(255, 255, 255, 0.07);
  --shadow-card: none;
  --shadow-hover: 0 24px 48px -28px rgba(0, 0, 0, 0.9);
  --shadow-pop: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  --kbd-bg: linear-gradient(180deg, #262832, #1a1b23);
  --kbd-border: rgba(255, 255, 255, 0.14);
  --kbd-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --code-bg: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent-line); color: var(--text); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* ---------- 换行断句 ----------
   中文可在任意两字之间断行，默认排版只把行长凑齐，结果会把词劈开（「试用期内不弹购买提 / 示」）、
   末行只剩一两个字。两道约束一起用：
   ① word-break: keep-all —— 汉字之间不随机断行，只在标点 / 空格处断，回到「按句读断句」；
   ② text-wrap: balance —— 段落各行长度拉平，不让末行掉单字
      （Chrome/Edge 114+、Firefox 121+、Safari 17.5+；不支持的引擎自动退回普通断行）。
   overflow-wrap: break-word 是安全网：万一某个超长标识符单独放不进一行，才允许从中间断开。 */
p, li, dd, dt, summary, figcaption, .faq-body {
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
  text-wrap: balance;
}
h1, h2, h3, .section-head p, .hero-sub, .hero-note span { text-wrap: balance; }
/* flex / grid 子项默认按「内容最小宽度」撑开：keep-all 之后一段长路径（%LOCALAPPDATA%\frontmap\）
   就能把卡片顶宽、窄屏横向溢出。整条链（卡片 → 行 → 值）都要给出可收缩许可，交给 overflow-wrap 去断。 */
.spec-card, .spec-row, .spec-row dd, .dl-meta, .code-block, .mono { min-width: 0; }

/* ---------- 背景装饰 ---------- */
.page-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 620px at 50% -12%, var(--glow-1), transparent 70%),
    radial-gradient(720px 520px at 94% 16%, var(--glow-2), transparent 70%),
    radial-gradient(760px 560px at 2% 52%, var(--glow-1), transparent 72%),
    var(--page-grad);
  transition: background 0.4s ease;
}
.page-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 72% 56% at 50% 0%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 72% 56% at 50% 0%, #000 0%, transparent 100%);
}

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-card); }
.nav { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 2px 10px var(--accent-line); }
.brand b { font-size: 18px; }
.brand span { font-size: 12px; color: var(--muted-2); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a { position: relative; transition: color 0.2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: var(--accent); border-radius: 2px; transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

/* 图标按钮（配色 / 亮暗） */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  color: var(--muted); border: 1px solid var(--border); background: var(--surface);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); transform: translateY(-1px); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; transition: transform 0.18s, background 0.18s, border-color 0.18s, box-shadow 0.18s, color 0.18s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 10px 22px -12px var(--accent), inset 0 1px 0 color-mix(in srgb, #fff 22%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -14px var(--accent); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent-line); transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr); gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; margin-bottom: 22px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
  font-size: 13px; color: var(--muted);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.badge b { color: var(--text); font-weight: 600; }
.badge .sep { color: var(--border-strong); }

h1 {
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.022em;
  font-weight: 800;
  color: var(--text);
}
/* 标题第二行：单色强调（不做渐变） */
h1 .grad, .grad { color: var(--accent-ink); -webkit-text-fill-color: currentColor; background: none; }
.hero-sub { margin-top: 18px; font-size: 16px; color: var(--muted); max-width: 30em; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-sub a { color: var(--accent-ink); border-bottom: 1px solid var(--accent-line); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.hero-note svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.hero-note strong { color: var(--text); font-weight: 600; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  font-size: 12.5px; color: var(--muted); padding: 5px 11px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
}
.chip.ok { color: var(--accent-ink); border-color: var(--accent-line); background: var(--accent-soft); }

/* 应用截图：截自真实 Windows 窗口，直接铺原图，不再包圆角描边（避免双层框）
   只留一层柔和投影，在亮色页面上也能把白色截图与背景分开 */
.shot {
  box-shadow: 0 24px 50px -28px rgba(10, 10, 14, 0.42), 0 6px 16px -10px rgba(10, 10, 14, 0.28);
}
.shot img { width: 100%; height: auto; }

/* 点击看大图：缩略图包一层 <a>（无 JS 时直接开大图），悬停给个提示 */
.shot-zoom { position: relative; display: block; cursor: zoom-in; }
.shot-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shot-zoom img { display: block; }
.shot-zoom::after {
  content: "点击看大图"; position: absolute; right: 10px; bottom: 10px;
  padding: 5px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .01em;
  color: #fff; background: rgba(12, 12, 16, 0.72); border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0; transition: opacity .16s ease; pointer-events: none;
}
.shot-zoom:hover::after, .shot-zoom:focus-visible::after { opacity: 1; }
@media (hover: none) { .shot-zoom::after { opacity: .92; } }

/* 大图：原生 dialog 铺满视口，点空白（= 点 dialog 本身）关闭；Esc 由 dialog 原生支持 */
dialog.lightbox[open] {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; overflow: hidden; z-index: 120;
  animation: lb-fade .16s ease-out;
}
dialog.lightbox::backdrop { background: rgba(10, 10, 14, 0.84); backdrop-filter: blur(6px); }
.lightbox-img {
  width: auto; height: auto; max-width: 96vw; max-height: 90vh; display: block;
  border-radius: 8px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  opacity: 0; transition: opacity .15s ease;
}
.lightbox-img.is-ready { opacity: 1; }
.lightbox-hint {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-size: 12.5px; color: rgba(255, 255, 255, 0.66); pointer-events: none; white-space: nowrap;
}
.lightbox-hint kbd {
  display: inline-block; min-width: 0; height: auto; padding: 1px 6px; border-radius: 4px;
  font-family: var(--mono); font-size: 11.5px; color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom-width: 1px; box-shadow: none; vertical-align: 1px;
}
.lightbox-close {
  position: fixed; right: 16px; top: 14px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-close svg { width: 18px; height: 18px; }
@keyframes lb-fade { from { opacity: 0 } to { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { dialog.lightbox[open] { animation: none; } }
html.lb-open, html.lb-open body { overflow: hidden; }
.hero-shot { position: relative; }
.hero-shot::before {
  content: ""; position: absolute; inset: -16% -8% -18% -8%; z-index: -1;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 72%);
  filter: blur(24px);
}

/* ---------- 区块通用 ---------- */
section { position: relative; }
.section { padding: 84px 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink);
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h2 { font-size: clamp(22px, 2.5vw, 31px); line-height: 1.3; letter-spacing: -0.018em; font-weight: 800; }
.section-head p { margin-top: 13px; color: var(--muted); font-size: 15.5px; }

/* ---------- 功能卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  position: relative; padding: 26px 24px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card-bg);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px 160px at 50% -40%, var(--accent-soft), transparent 70%);
  opacity: 0; transition: opacity 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-line); background: var(--card-bg-hover); box-shadow: var(--shadow-hover); }
.card:hover::after { opacity: 1; }
.card-icon {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--accent-ink);
  background: var(--accent-soft); border: 1px solid var(--accent-line-soft);
}
.card-icon svg { width: 21px; height: 21px; }
.card h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.card p a { color: var(--accent-ink); border-bottom: 1px solid var(--accent-line); }
.card p a:hover { border-bottom-color: var(--accent); }
.card .pro {
  display: inline-block; margin-left: 8px; vertical-align: 2px; padding: 1px 7px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line-soft);
}

/* ---------- 键盘流 ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.keys { display: grid; gap: 10px; }
.keyrow {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-card);
}
.keyrow .kbd-group { display: flex; gap: 6px; flex: 0 0 auto; }
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 30px; padding: 0 9px; border-radius: 7px;
  font-family: var(--mono); font-size: 12.5px; color: var(--text);
  background: var(--kbd-bg);
  border: 1px solid var(--kbd-border);
  border-bottom-width: 2px;
  box-shadow: var(--kbd-shadow);
}
.keyrow span { font-size: 14.5px; color: var(--muted); }
.keyrow span b { color: var(--text); font-weight: 600; }

/* ---------- 截图区 ---------- */
.shots { display: grid; gap: 22px; }
.shot-card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); gap: 36px; align-items: center; }
.shot-card.flip { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); }
.shot-card.flip .shot-text { order: 2; }
.shot-text h3 { font-size: 18.5px; font-weight: 700; letter-spacing: -0.015em; }
.shot-text p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.shot-text ul { margin-top: 16px; list-style: none; display: grid; gap: 9px; }
.shot-text li { display: flex; gap: 9px; font-size: 14.5px; color: var(--muted); }
.shot-text li svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 3px; color: var(--accent); }

/* ---------- 格式 / 导出 ---------- */
.format-band {
  padding: 30px 32px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--card-bg); box-shadow: var(--shadow-card);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px;
}
.format-band .band-label { font-size: 13px; color: var(--muted-2); letter-spacing: 0.06em; }
.ext {
  font-family: var(--mono); font-size: 13.5px; padding: 6px 12px; border-radius: 8px;
  color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line-soft);
}
.ext.out { color: var(--accent-2-ink); background: var(--accent-2-soft); border-color: var(--accent-2-line); }
.arrow { color: var(--muted-2); font-size: 15px; }

/* ---------- 下载 ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dl-card {
  position: relative; padding: 30px 28px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--card-bg); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.dl-card.recommend { border-color: var(--accent-line); box-shadow: var(--shadow-hover); }
.dl-tag {
  position: absolute; top: 22px; right: 22px; font-size: 11.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px; color: var(--accent-ink);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.dl-card h3 { font-size: 17.5px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.dl-card h3 svg { width: 20px; height: 20px; color: var(--accent); }
.dl-card p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.dl-card ul { list-style: none; margin: 18px 0 22px; display: grid; gap: 9px; }
.dl-card li { display: flex; gap: 9px; font-size: 14px; color: var(--muted); }
.dl-card li svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.dl-card .btn { margin-top: auto; width: 100%; }
.dl-meta { margin-top: 12px; font-size: 12px; color: var(--muted-2); text-align: center; }
.dl-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.dl-links a { color: var(--muted); border-bottom: 1px dashed var(--border-strong); padding-bottom: 1px; transition: color 0.2s, border-color 0.2s; }
.dl-links a:hover { color: var(--accent-ink); border-color: var(--accent); }

/* ---------- 下载页专用 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step {
  position: relative; padding: 26px 24px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card-bg); box-shadow: var(--shadow-card);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-bottom: 14px; border-radius: 9px;
  font-size: 14px; font-weight: 700; color: var(--on-accent);
  background: var(--accent);
}
.step h3 { font-size: 16.5px; font-weight: 700; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.spec-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card-bg); box-shadow: var(--shadow-card); }
.spec-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.spec-row { display: flex; gap: 12px; padding: 8px 0; font-size: 14px; border-top: 1px solid var(--border); }
.spec-row:first-of-type { border-top: 0; }
.spec-row dt { flex: 0 0 92px; color: var(--muted-2); }
.spec-row dd { color: var(--muted); }
.spec-row dd b { color: var(--text); font-weight: 600; }

.code-block {
  margin-top: 14px; padding: 14px 16px; border-radius: 12px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.9; color: var(--muted);
  background: var(--code-bg); border: 1px solid var(--border);
  white-space: pre; }
.callout {
  display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; font-size: 14.5px; color: var(--muted);
  border: 1px solid var(--accent-line-soft); background: var(--accent-soft-2);
}
.callout svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--accent); }
.callout b { color: var(--text); }

/* 正文里的强调链接 / 成功调性提示块 */
.text-link { color: var(--accent-ink); border-bottom: 1px solid var(--accent-line); }
.text-link:hover { border-color: var(--accent); }
.ok-callout { border-color: var(--accent-2-line); background: var(--accent-2-soft); }
.ok-callout svg { color: var(--accent-2); }

/* ---------- 更新日志时间线 ---------- */
.log-timeline { position: relative; padding-left: 32px; display: grid; gap: 16px; }
.log-timeline::before {
  content: ""; position: absolute; left: 7px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-line), var(--accent-line-soft) 72%, transparent);
}
.release {
  position: relative; padding: 24px 26px 22px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card-bg); box-shadow: var(--shadow-card);
  transition: border-color 0.22s, background 0.22s;
}
.release:hover { border-color: var(--accent-line); }
.release::before {
  content: ""; position: absolute; left: -32px; top: 28px; width: 10px; height: 10px; margin-left: 2px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.release.latest { border-color: var(--accent-line); background: var(--accent-soft-2); }
.release.latest::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 16px var(--accent-glow); }
.release-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rel-ver {
  font-family: var(--mono); font-size: 14.5px; font-weight: 700; padding: 3px 10px; border-radius: 8px;
  color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.release.latest .rel-ver { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.rel-date { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); }
.rel-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em; padding: 2px 8px; border-radius: 6px;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong);
}
.rel-title { margin-top: 12px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.release ul { list-style: none; display: grid; gap: 9px; margin-top: 12px; }
.release li { display: flex; gap: 9px; font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.release li svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.release li b { color: var(--text); font-weight: 600; }
.log-foot { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
details {
  border: 1px solid var(--border); border-radius: 13px; background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}
details[open] { border-color: var(--accent-line); background: var(--accent-soft-2); }
summary {
  list-style: none; cursor: pointer; padding: 16px 20px; font-size: 15.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
summary::-webkit-details-marker { display: none; }
summary .chev { width: 16px; height: 16px; flex: 0 0 auto; color: var(--muted-2); transition: transform 0.22s, color 0.22s; }
details[open] summary .chev { transform: rotate(180deg); color: var(--accent); }
.faq-body { padding: 0 20px 18px; font-size: 14.5px; color: var(--muted); }
.faq-body p + p { margin-top: 8px; }
.faq-body a { color: var(--accent-ink); border-bottom: 1px solid var(--accent-line); }
.faq-body strong { color: var(--text); }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--border); padding: 46px 0 34px; margin-top: 30px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.foot-brand img { width: 26px; height: 26px; border-radius: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13.5px; color: var(--muted-2); }
.foot-links a:hover, .foot-links button:hover { color: var(--text); }
.foot-links button { font: inherit; font-size: 13.5px; color: inherit; }
.foot-copy { margin-top: 22px; font-size: 12.5px; color: var(--muted-2); line-height: 1.8; }
.foot-copy .beian { color: var(--muted); border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.foot-copy .beian:hover { color: var(--accent-ink); border-bottom-color: var(--accent-line); }

/* ---------- 配色区（Poline 介绍 + 就地试用） ---------- */
.pal-try {
  margin-top: 22px; padding: 28px 30px; border-radius: 20px;
  border: 1px solid var(--accent-line);
  background:
    radial-gradient(520px 220px at 6% -30%, var(--accent-soft), transparent 70%),
    radial-gradient(420px 200px at 96% 130%, var(--accent-2-soft), transparent 70%),
    var(--card-bg);
  box-shadow: var(--shadow-card);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr); gap: 26px; align-items: center;
}
.pal-try .kicker { margin-bottom: 12px; }
.pal-try h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.pal-try p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.pal-try p b { color: var(--text); font-weight: 600; }
.pal-try-note { font-size: 13.5px; color: var(--muted-2); }
.pal-try-reset { margin-left: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent-ink); border-bottom: 1px solid var(--accent-line); }
.pal-try-reset:hover { color: var(--accent); border-bottom-color: var(--accent); }
.pal-try-actions { display: grid; gap: 10px; }
.pal-try-actions .btn { width: 100%; }

/* ---------- 配色面板（Poline） ---------- */
.palette-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 340px; max-width: calc(100vw - 24px);
  max-height: calc(100vh - 40px); overflow-y: auto;
  border-radius: 18px; border: 1px solid var(--border-strong);
  background: var(--panel); color: var(--text);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: pp-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.palette-panel[hidden] { display: none; }
@keyframes pp-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.pp-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.pp-head b { font-size: 14px; font-weight: 700; }
.pp-head span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted-2); }
.pp-head .pp-close {
  margin-left: auto; width: 26px; height: 26px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; color: var(--muted);
}
.pp-head .pp-close:hover { background: var(--surface-2); color: var(--text); }
.pp-head .pp-close svg { width: 13px; height: 13px; }
.pp-body { padding: 14px; display: grid; gap: 12px; }
.pp-wheel {
  width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.pp-wheel poline-picker { width: 100%; height: 100%; display: block; }
.pp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.pp-seg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); }
.pp-seg button {
  padding: 4px 9px; border-radius: 7px; font-family: var(--mono); font-size: 11px; color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.pp-seg button.on { background: var(--accent); color: var(--on-accent); }
.pp-btns { display: inline-flex; gap: 6px; }
.pp-btns button {
  padding: 4px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 600;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.pp-btns button:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent-line); }
.pp-btns button:disabled { opacity: 0.42; cursor: not-allowed; }
.pp-swatches { display: flex; flex-wrap: wrap; gap: 5px; }
.pp-swatch {
  width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border);
  transition: transform 0.15s;
}
.pp-swatch:hover { transform: scale(1.12); }
.pp-actions { display: flex; gap: 8px; }
.pp-actions button {
  flex: 1; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  transition: background 0.18s, border-color 0.18s;
}
.pp-actions button:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.pp-tip { font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }
.pp-tip b { color: var(--muted); font-weight: 600; }
.pp-tip a { color: var(--accent-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.pp-tip a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- 入场动画（无 JS 时内容直接可见） ---------- */
.has-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1); }
.has-js .reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.06s; }
.d2 { transition-delay: 0.12s; }
.d3 { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  .has-js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .palette-panel { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-sub { max-width: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .shot-card, .shot-card.flip { grid-template-columns: 1fr; gap: 22px; }
  .shot-card.flip .shot-text { order: 0; }
  .pal-try { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 20px; }
  .grid-3, .dl-grid, .steps, .spec { grid-template-columns: 1fr; }
  .format-band { padding: 22px 18px; }
  .nav-actions .btn-ghost { display: none; }
  .foot-grid { flex-direction: column; align-items: flex-start; }
  .log-timeline { padding-left: 22px; }
  .log-timeline::before { left: 4px; }
  .release { padding: 20px 18px 18px; }
  .release::before { left: -22px; top: 24px; margin-left: 0; width: 8px; height: 8px; border-width: 2px; }
  /* 手机上品牌副标题会挤成竖排，直接收起来 */
  .brand { flex: 0 0 auto; }
  .brand span { display: none; }
  .brand b { font-size: 17px; }
  .nav { gap: 10px; }
  .nav-actions { gap: 8px; margin-left: 4px; }
  .icon-btn { width: 32px; height: 32px; border-radius: 9px; }
  .icon-btn svg { width: 16px; height: 16px; }
  .nav-actions .btn-sm { padding: 8px 12px; }
  .palette-panel {
    left: 12px; right: 12px; bottom: 12px; width: auto;
    max-height: calc(100vh - 24px); overflow-y: auto;
  }
  .pp-body { padding: 12px; gap: 10px; }
  .pp-wheel { max-width: 190px; margin: 0 auto; }
}