/* HS工具箱官网 —— 模型空间深色 × 石材暖白
   强调色取自侧边栏分节标题色 rgb(255,200,87) */

:root {
  --ink: #1c2026;
  --ink-2: #232831;
  --ink-3: #2c323d;
  --ink-line: #3a4250;
  --ink-text: #e7e9ec;
  --ink-mute: #9aa3b0;

  --paper: #f5f2eb;
  --paper-2: #ebe6dc;
  --paper-line: #d9d2c4;
  --stone: #2a2621;
  --stone-mute: #6f675c;

  --amber: #ffc857;
  --amber-deep: #d99a1e;
  --cyan: #5fd8e8;
  --green: #4fe07a;
  --magenta: #e55fe0;

  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, Menlo, monospace;

  --r: 6px;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--stone);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
code, .mono { font-family: var(--mono); }
code {
  font-size: .86em;
  padding: .1em .4em;
  border-radius: 3px;
  background: rgba(217, 154, 30, .14);
  color: #8a5a00;
}
ul, ol { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: var(--r);
  font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #1c1606; }
.btn-primary:hover { background: #ffd47a; }
.btn-ghost { border-color: currentColor; color: inherit; opacity: .9; }
.btn-ghost:hover { opacity: 1; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--ink-text);
  transition: background .25s, box-shadow .25s;
}
.nav.scrolled, .nav.open {
  background: rgba(28, 32, 38, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--ink-line);
}
.nav-inner { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: .5px;
}
.brand-mark { width: 32px; height: 32px; }
/* 导航：鼠标移上去亮显；滚动时当前所在分节高亮（main.js 加 .on） */
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; text-decoration: none; font-size: 14.5px; color: var(--ink-mute);
  padding: 7px 12px; border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px; border-radius: 2px;
  background: var(--amber); transform: scaleX(0); transition: transform .25s;
}
.nav-links a:hover { color: var(--ink-text); background: rgba(255,255,255,.07); }
.nav-links a.on { color: var(--amber); }
.nav-links a.on::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 7px 6px; background: var(--ink-text); transition: transform .2s; }
.nav.open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: var(--ink-text);
  padding: 132px 0 96px;
}
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 85%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; color: var(--ink-mute);
  margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(79,224,122,.15); }
.eyebrow-ver { color: var(--amber); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.hero h1 .line { white-space: nowrap; }
.hero h1 .hl { color: var(--amber); font-family: var(--mono); font-weight: 700; letter-spacing: 0; }
.lead { font-size: 17.5px; color: #c3c9d2; max-width: 30em; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-facts { display: flex; gap: 0; border-top: 1px solid var(--ink-line); padding-top: 22px; }
.hero-facts li { flex: 1; padding-right: 16px; }
.hero-facts li + li { padding-left: 20px; border-left: 1px solid var(--ink-line); }
.hero-facts b { display: block; font-family: var(--mono); font-size: 28px; color: var(--ink-text); line-height: 1.2; }
.hero-facts span { font-size: 13px; color: var(--ink-mute); }
.fact-price { flex: 1.6; }
.fact-price span { white-space: nowrap; }
.fact-price b s { text-decoration-thickness: 3px; text-decoration-color: #e0443e; color: var(--ink-text); }
.fact-price b i { font-family: var(--sans); font-style: normal; font-size: 13px; font-weight: 400; color: var(--ink-mute); margin-left: 6px; }
.fact-price span em { font-family: var(--mono); font-style: normal; font-size: 28px; font-weight: 700; color: #fff; line-height: 1.2; margin: 0 2px; }

/* 模拟 CAD 窗口 */
.cad {
  background: #21252b;
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
}
.cad-bar {
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 12px 0 8px;
  background: #2b3038; border-bottom: 1px solid var(--ink-line);
  font-size: 12px; color: var(--ink-mute);
}
.cad-bar > span { font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cad-bar > span b { color: var(--ink-text); font-weight: 600; }
.cad-step { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
/* 五个步骤按钮：圆点 + 命令名 */
.cad-dots { display: flex; gap: 2px; flex-shrink: 0; }
.cad-dots button {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 8px 0 6px; border: 0; border-radius: 4px;
  background: none; cursor: pointer;
  font: 600 11.5px var(--mono); color: var(--ink-mute);
  transition: background .2s, color .2s;
}
.cad-dots i { width: 9px; height: 9px; border-radius: 50%; background: #4a515d; flex-shrink: 0; transition: background .25s, box-shadow .25s; }
.cad-dots button:hover { background: rgba(255,255,255,.05); color: var(--ink-text); }
.cad-dots button.done i { background: #8a6a2a; }
.cad-dots button.on { background: rgba(255,200,87,.12); color: var(--amber); }
.cad-dots button.on i { background: var(--amber); box-shadow: 0 0 0 3px rgba(255,200,87,.18); }
.cad-dots button:focus-visible { outline: 1px solid var(--amber); }
.cad-progress { height: 2px; background: #1a1d22; }
.cad-progress i { display: block; height: 100%; width: 0; background: var(--amber); opacity: .7; }
.cad-stage { position: relative; padding: 8px 6px 4px; background: #000; }
.cad-svg { width: 100%; height: auto; display: block; overflow: visible; }

/* 过渡统一由类名驱动；.instant 用于场景切换时瞬间复位 */
.cad-svg * { transition-property: opacity, stroke-dashoffset, transform, fill, stroke; transition-duration: .6s; transition-timing-function: ease; }
.cad-svg.instant * { transition: none !important; }

.cad-svg .floor-g { transform-origin: 0 0; transition: transform .8s cubic-bezier(.6,0,.2,1); }
.cad-svg.small .floor-g { transform: translate(8px, 10px) scale(.5); }
.cad-svg .floor-outline { fill: none; stroke: #d9dce1; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
/* 排版线不用 non-scaling-stroke：它会让虚线按屏幕像素计算，pathLength 失效，线画不到底 */
.cad-svg .grid-lines line { stroke: #2fd3e8; stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; transition-duration: .7s; transition-delay: var(--d); }
.cad-svg.small .grid-lines line { stroke-width: 2; }
.cad-svg.laid .grid-lines line { stroke-dashoffset: 0; }
.cad-svg.instant.laid .grid-lines line { stroke-dashoffset: 0; }

.cad-svg .nums text { fill: #ff5a5a; font-size: 11px; font-family: var(--mono); text-anchor: middle; opacity: 0; transition-duration: .3s; transition-delay: var(--d); }
.cad-svg .nums text.sm { font-size: 8px; }
.cad-svg.numbered .nums text { opacity: 1; }
.cad-svg.small .nums text { transition-delay: 0s; }

.cad-svg .pc { fill: none; stroke: #ff4fd8; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transition-duration: .3s; transition-delay: var(--d); }
.cad-svg.boxed .pc { opacity: 1; }

.cad-svg .tiles image { opacity: 1; }
.cad-svg .fill-cell { opacity: 0; transition-duration: .45s; transition-delay: var(--d); }
.cad-svg.filled .fill-cell { opacity: 1; }
.cad-svg.filled .grid-lines line { stroke: rgba(47,211,232,.55); }

.cad-svg .start-pt { opacity: 0; fill: none; stroke: var(--amber); stroke-width: 1.5; }
.cad-svg.start .start-pt { opacity: 1; animation: pulse 1s ease-in-out 2; }
.cad-svg.filled .start-pt { opacity: 0; }
@keyframes pulse { 50% { transform: scale(1.4); } }
.cad-svg .start-pt { transform-origin: 40px 30px; transform-box: view-box; }

.cad-svg .sw { opacity: 0; transform: translateY(6px); transition-delay: var(--d); }
.cad-svg .sw-frame { fill: none; stroke: rgba(255,255,255,.7); stroke-width: .5; }
.cad-svg .sw-no { fill: var(--amber); font-size: 8px; font-family: var(--mono); text-anchor: middle; }
.cad-svg .sw-label { fill: var(--ink-mute); font-size: 8.5px; text-anchor: middle; opacity: 0; }
.cad-svg.swatch .sw { opacity: 1; transform: none; }
.cad-svg.swatch .sw-label { opacity: 1; }

.cad-svg .dims { opacity: 0; }
.cad-svg .dims path { fill: none; stroke: #3ee06c; stroke-width: 1; }
.cad-svg .dims text { fill: #fff; font-size: 10px; font-family: var(--mono); text-anchor: middle; }
.cad-svg .dims text.v { text-anchor: start; }
.cad-svg.laid .dims { opacity: 1; transition-delay: .5s; }
.cad-svg.small .dims, .cad-svg.filled .dims { opacity: 0; transition-delay: 0s; }

.cad-svg .qd-table { opacity: 0; }
.cad-svg.listed .qd-table { opacity: 1; }
.cad-svg .qd-bg { fill: #0b0d10; stroke: #d9dce1; stroke-width: 1; }
.cad-svg .qd-table line { stroke: #d9dce1; stroke-width: .6; }
.cad-svg .qd-col { opacity: .6; }
.cad-svg .qd-table text { fill: #e7e9ec; font-size: 10px; font-family: var(--mono); text-anchor: middle; }
.cad-svg .qd-table .th { fill: var(--amber); font-family: var(--sans); font-size: 10.5px; }
.cad-svg .qd-row { opacity: 0; transition-delay: var(--d); }
.cad-svg.listed .qd-row { opacity: 1; }
.cad-svg .qd-total text { fill: #3ee06c; font-weight: 700; }

.cad-svg .nest { opacity: 0; }
.cad-svg.nested .nest { opacity: 1; }
.cad-svg .nest .slab { opacity: 0; transform: translateY(4px); transition-delay: var(--d); }
.cad-svg.nested .nest .slab { opacity: 1; transform: none; }
.cad-svg .slab-rect { fill: none; stroke: #c9ccd2; stroke-width: .6; }
.cad-svg .slab-part { fill: rgba(255,79,216,.18); stroke: #ff4fd8; stroke-width: .6; }
.cad-svg .nest-label { fill: var(--ink-mute); font-size: 10px; font-family: var(--mono); }

.cad-hud {
  position: absolute; right: 14px; bottom: 12px;
  padding: 6px 12px; border-radius: 4px;
  background: rgba(20,22,26,.92); border: 1px solid var(--ink-line);
  font-size: 12px; color: var(--ink-mute);
  opacity: 0; transform: translateY(4px); transition: .4s;
}
.cad-hud b { font-family: var(--mono); font-size: 16px; color: var(--green); margin-left: 4px; }
.cad-hud.show { opacity: 1; transform: none; }

.cad-cmd {
  border-top: 1px solid var(--ink-line);
  background: #1a1d22;
  padding: 10px 14px 12px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.5;
  height: 166px; overflow: hidden;
}
.cmd-history { color: var(--ink-mute); }
.cmd-history > div { margin-bottom: 4px; animation: fadeUp .3s; }
.cmd-history .out { color: #c3c9d2; padding-left: 1em; }
.prompt { color: var(--amber); }
.cmd-line { color: var(--ink-text); }
.caret { display: inline-block; width: 7px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--ink-text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } }

/* ---------- 痛点条 ---------- */
.strip { background: var(--amber); color: #2a1f05; }
.strip-inner { padding: 22px 28px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 28px; font-size: 16px; }
.strip s { opacity: .62; text-decoration-thickness: 1.5px; }
.strip-after b { font-weight: 800; }

/* ---------- 通用分节 ---------- */
.sec { padding: 112px 0; }
.sec-dark { background: var(--ink); color: var(--ink-text); }
.sec-dark code { background: rgba(255,200,87,.12); color: var(--amber); }
.sec-head { margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-no {
  display: inline-block; font-family: var(--mono); font-size: 13px;
  color: var(--amber-deep); letter-spacing: 2px; margin-bottom: 14px;
}
.sec-no::before { content: "— "; }
.sec-dark .sec-no { color: var(--amber); }
h2 {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.28;
  letter-spacing: .5px; margin-bottom: 16px;
}
.sec-head p { color: var(--stone-mute); font-size: 16.5px; }
.sec-dark .sec-head p { color: var(--ink-mute); }

/* ---------- 工作流 ---------- */
.flow-steps {
  display: grid; grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--paper-line);
  margin-bottom: 40px;
}
.flow-steps button {
  width: 100%; background: none; border: 0; cursor: pointer;
  padding: 0 4px 16px; font: inherit; font-size: 16px; font-weight: 600;
  color: var(--stone-mute); text-align: center;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.flow-steps button em { display: block; font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 400; opacity: .7; }
.flow-steps button:hover { color: var(--stone); }
.flow-steps button.on { color: var(--stone); border-bottom-color: var(--amber-deep); }

.flow-panel { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; min-height: 420px; }
.flow-panel.in .fp-copy, .flow-panel.in .fp-shot { animation: fadeUp .45s both; }
.flow-panel.in .fp-shot { animation-delay: .06s; }
.fp-copy h3 { font-family: var(--serif); font-size: 28px; line-height: 1.35; margin-bottom: 14px; }
.fp-copy p { color: var(--stone-mute); margin-bottom: 28px; }
.fp-cmds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.fp-cmds li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--paper-line); font-size: 14.5px; }
.fp-cmds code { min-width: 58px; text-align: center; font-weight: 600; }
.fp-shot {
  background: #21252b; border-radius: 8px; padding: 10px;
  box-shadow: 0 24px 60px -24px rgba(42, 38, 33, .45);
  display: flex; justify-content: center;
}
.fp-shot img { border-radius: 4px; max-height: 440px; object-fit: contain; }
.fp-shot.tall img { max-height: 440px; }

/* ---------- 常用功能界面 ---------- */
.ui-tabs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 28px; }
.ui-tabs button {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--paper); border: 1px solid var(--paper-line); color: var(--stone);
  font: inherit; font-size: 14.5px; padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: .2s;
  white-space: nowrap;
}
.ui-tabs button code { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--amber-deep); }
.ui-tabs button:hover { border-color: var(--amber-deep); }
.ui-tabs button.on { background: var(--stone); border-color: var(--stone); color: var(--paper); }
.ui-tabs button.on code { color: var(--amber); }
.ui-desc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; color: var(--stone-mute); margin-bottom: 16px; }
.ui-desc b { color: var(--stone); }
.ui-shot {
  background: #21252b; border-radius: 8px; padding: 10px;
  box-shadow: 0 24px 60px -24px rgba(42, 38, 33, .45);
  display: flex; justify-content: center;
}
.ui-shot img, .ui-shot video { border-radius: 4px; max-width: 100%; max-height: 640px; object-fit: contain; }
.ui-shot.missing { min-height: 320px; align-items: center; color: var(--ink-mute); font-size: 14px; }
.ui-panel.in .ui-desc, .ui-panel.in .ui-shot { animation: fadeUp .45s both; }
@media (max-width: 1020px) {
  .ui-tabs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  .ui-tabs { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 功能地图 ---------- */
.cmd-search {
  display: flex; align-items: center; gap: 10px;
  background: #15181c; border: 1px solid var(--ink-line); border-radius: var(--r);
  padding: 0 18px; height: 58px; margin-bottom: 18px;
  font-family: var(--mono); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.cmd-search:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,200,87,.12); }
.cmd-search input {
  flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0;
  color: var(--ink-text); font: inherit;
}
.cmd-search input::placeholder { color: #5d6573; }
.cmd-count { font-size: 12.5px; color: var(--ink-mute); white-space: nowrap; }

.cmd-tags { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-bottom: 30px; }
.cmd-tags button { white-space: nowrap; }
@media (max-width: 1020px) { .cmd-tags { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cmd-tags { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cmd-tags button { padding: 6px 8px; font-size: 13px; } }
.cmd-tags button {
  background: var(--ink-2); border: 1px solid var(--ink-line); color: var(--ink-mute);
  font: inherit; font-size: 14px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  transition: .2s;
}
.cmd-tags button:hover { color: var(--ink-text); border-color: #56606f; }
.cmd-tags button.on { background: var(--amber); border-color: var(--amber); color: #1c1606; font-weight: 600; }
.cmd-tags button.is-line { border-style: dashed; }
.cmd-tags button.is-line.on { border-style: solid; }

.cmd-intro { color: var(--ink-mute); margin-bottom: 22px; }
.cmd-intro a { color: var(--amber); text-decoration: none; margin-left: 6px; white-space: nowrap; }
.cmd-intro a:hover { text-decoration: underline; }
.cmd-tags button sup { font-family: var(--mono); font-size: 10.5px; margin-left: 4px; opacity: .6; vertical-align: 4px; }
.cmd-tags button.is-native { opacity: .75; }
.cmd-sec + .cmd-sec { margin-top: 26px; }
.cmd-sec h4, .cmd-sec h3 {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px; color: var(--amber);
  margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--ink-line);
}
.cmd-sec h4 span, .cmd-sec h3 span { font-family: var(--mono); font-size: 11.5px; color: var(--ink-mute); font-weight: 400; }
.cmd-more { margin-top: 18px; color: var(--ink-mute); font-size: 14px; }
.cmd-all { margin-top: 26px; }
.cmd-all a { color: var(--amber); text-decoration: none; }
.cmd-all a:hover { text-decoration: underline; }

/* 命令大全页 commands.html */
.cmds-page .sec { padding-top: 120px; }
.cmds-page h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 3.6vw, 44px); margin: 6px 0 12px; }
.cmds-page .sec-head { margin-bottom: 30px; }
.cmds-page .sec-head p { color: var(--ink-mute); }
.cmds-page .sec-head a { color: var(--amber); }
.crumb { font-size: 13px; }
.crumb a { text-decoration: none; }
.cmds-toc a {
  background: var(--ink-2); border: 1px solid var(--ink-line); color: var(--ink-mute);
  font-size: 14px; padding: 6px 14px; border-radius: 999px; text-decoration: none; text-align: center; white-space: nowrap;
}
.cmds-toc a:hover { color: var(--ink-text); border-color: #56606f; }
.cmds-toc a sup { font-family: var(--mono); font-size: 10.5px; margin-left: 4px; opacity: .6; vertical-align: 4px; }
/* 分组按钮吸顶在导航下方；--toc-h 由页面脚本按按钮栏实际高度设置（html 已有 72px scroll-padding-top） */
.cmds-toc {
  position: sticky; top: 64px; z-index: 40; margin-bottom: 0; padding: 12px 0;
  background: var(--ink); box-shadow: 0 0 0 100vmax var(--ink), 0 1px 0 100vmax var(--ink-line); clip-path: inset(0 -100vmax -1px);
}
.cmds-toc a.on { background: var(--amber); border-color: var(--amber); color: #1c1606; font-weight: 600; }
.cmds-group { padding-top: 40px; scroll-margin-top: calc(var(--toc-h, 140px) - 32px); }
@media (max-width: 760px) {
  .cmds-toc { display: flex; overflow-x: auto; scrollbar-width: none; }
  .cmds-toc::-webkit-scrollbar { display: none; }
  .cmds-toc a { flex: none; }
}
.cmds-page .cmd-card { animation: none; }

/* 教程页 tutorial/ */
.article { padding: 112px 0 90px; }
.article-wrap { max-width: 860px; }
.article .crumb { color: var(--stone-mute); }
.article .crumb a { color: var(--amber-deep); }
.article h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.3; margin: 10px 0 16px; }
.article h2 { font-size: 26px; margin: 48px 0 16px; }
.article p, .article li, .article dd { font-size: 16px; line-height: 1.85; }
.article p + p { margin-top: 10px; }
.article a { color: var(--amber-deep); }
.article a.tut-card, .article a.video { color: inherit; }
.article a.btn-primary { color: #1c1606; }
.article-cta a.btn-ghost { color: var(--ink-text); }
.article code { font-family: var(--mono); font-size: .92em; background: rgba(217,154,30,.14); color: #8a5a00; padding: 1px 6px; border-radius: 4px; }
.article-lead { font-size: 17px !important; color: var(--stone-mute); }
.article-shot { margin: 18px 0 6px; }
.article-shot img, .article-shot video { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--paper-line); background: #fff; }
.article-shot video { aspect-ratio: 16 / 10; background: #1c2026; }
.article-shot figcaption { font-size: 13px; color: var(--stone-mute); margin-top: 8px; text-align: center; }
.article-list { padding-left: 1.2em; list-style: disc; }
.article-list li + li { margin-top: 6px; }
.article-step { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--paper-line); }
.article-step h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 20px; margin-bottom: 10px; }
.article-step h3 em { font-family: var(--mono); font-style: normal; font-size: 14px; color: #fff; background: var(--amber-deep); border-radius: 4px; padding: 2px 8px; }
.article-tip { margin-top: 14px; padding: 12px 16px; background: var(--paper-2); border-left: 3px solid var(--amber-deep); border-radius: 4px; font-size: 15px !important; }
.article-faq dt { font-weight: 700; margin-top: 18px; }
.article-faq dd { color: var(--stone-mute); margin-top: 4px; }
.article-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.article-videos .video { text-decoration: none; color: inherit; }
.article-cta { margin-top: 56px; padding: 30px; text-align: center; background: var(--ink); color: var(--ink-text); border-radius: 10px; }
.article-cta p { margin-bottom: 18px; }
.article-cta .btn { margin: 4px 6px; }
.article-more { margin-top: 36px; color: var(--stone-mute); }
.tut-search { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.tut-search input {
  flex: 1; height: 46px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--stone);
  background: #fff; border: 1px solid var(--paper-line); border-radius: 8px; outline: none;
}
.tut-search input:focus { border-color: var(--amber-deep); box-shadow: 0 0 0 3px rgba(217,154,30,.18); }
.tut-count { font-size: 14px; color: var(--stone-mute); white-space: nowrap; }
.tut-empty { margin-top: 24px; color: var(--stone-mute); }
.tut-list { display: grid; gap: 18px; margin-top: 20px; }
.tut-card[hidden] { display: none; }
.tut-badge { display: inline-block; font-family: var(--mono); font-style: normal; font-size: 14px; color: #fff; background: var(--amber-deep); border-radius: 4px; padding: 1px 8px; margin-right: 10px; vertical-align: 3px; }
.tut-no { font-family: var(--mono); font-size: 13px; letter-spacing: 1px; color: var(--amber-deep); margin-top: 14px; }
.tut-no + h1 { margin-top: 4px; }
.tut-card { display: grid; grid-template-columns: 240px 1fr; gap: 22px; padding: 18px; background: #fff; border: 1px solid var(--paper-line); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.tut-card:hover { border-color: var(--amber-deep); transform: translateY(-2px); }
.tut-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; }
.tut-card h2 { font-size: 20px; margin: 4px 0 8px; }
.tut-card p { font-size: 15px; color: var(--stone-mute); }
.tut-cmds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@media (max-width: 640px) { .tut-card { grid-template-columns: 1fr; } }
.cmds-group h2 { font-size: 26px; display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.cmds-group h2 span { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--ink-mute); }
.cmd-items { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.cmd-card code, .cmd-card span { overflow-wrap: anywhere; }
@media (max-width: 1020px) { .cmd-items { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cmd-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cmd-card {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 12px; border-radius: var(--r);
  background: var(--ink-2); border: 1px solid var(--ink-line);
  animation: fadeUp .3s both;
  transition: border-color .2s, transform .2s;
}
.cmd-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.cmd-card code { background: none; padding: 0; color: var(--cyan); font-size: 17px; font-weight: 700; }
.cmd-card span { font-size: 14px; color: var(--ink-text); }
.cmd-card small { font-size: 12px; color: var(--ink-mute); }
.cmd-card { position: relative; scroll-margin: 120px; }
a.cmd-card { text-decoration: none; color: inherit; }
.cmd-card .badges { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; font-style: normal; }
.cmd-card .badges b { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 3px; }
.bd-video { background: rgba(255,200,87,.16); color: var(--amber); }
.bd-doc { background: rgba(95,216,232,.14); color: var(--cyan); }
.cmd-card.flash { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,200,87,.35); }
.cmd-empty { color: var(--ink-mute); padding: 32px 0; font-family: var(--mono); }

/* ---------- 效果图展示 ---------- */
.showcase-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
.shot img { border-radius: 6px; box-shadow: 0 30px 70px -28px rgba(42,38,33,.55); }
.showcase-copy h2 .line { white-space: nowrap; }
.showcase-copy p { color: var(--stone-mute); margin-bottom: 26px; }
/* 命令列固定宽度，说明文字上下对齐 */
.ticks li {
  position: relative; display: grid; grid-template-columns: 7.4em 1fr; align-items: baseline; column-gap: 8px;
  padding: 10px 0 10px 28px; border-top: 1px solid var(--paper-line); font-size: 15px;
}
.tk-cmd { white-space: nowrap; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 19px;
  width: 10px; height: 6px; border: solid var(--amber-deep); border-width: 0 0 2px 2px; transform: rotate(-45deg);
}

/* ---------- 版本 ---------- */
.sec-stone {
  background-color: var(--paper-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600' viewBox='0 0 1200 600'%3E%3Cg fill='none' stroke='%23b8ad99' stroke-opacity='.35'%3E%3Cpath d='M-20 480 C 200 380 340 460 560 300 S 900 160 1220 120' stroke-width='1.4'/%3E%3Cpath d='M-20 520 C 240 440 380 500 600 360 S 960 230 1220 200' stroke-width='.7'/%3E%3Cpath d='M100 640 C 300 520 520 560 700 420 S 1000 380 1240 300' stroke-width='.9'/%3E%3Cpath d='M-40 160 C 160 120 300 200 480 120 S 760 20 900 -20' stroke-width='.6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover; background-position: center;
}
.editions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ed {
  position: relative;
  background: #fff;
  border: 1px solid var(--paper-line); border-radius: 8px; padding: 36px;
}
.ed h3 { font-family: var(--serif); font-size: 26px; color: var(--stone); }
.ed-for { color: var(--stone-mute); font-size: 14px; margin-bottom: 22px; }
.ed li { padding: 10px 0 10px 22px; border-top: 1px solid var(--paper-line); position: relative; font-size: 15px; color: var(--stone); }
.ed li::before { content: "+"; position: absolute; left: 2px; color: var(--stone-mute); font-family: var(--mono); }
.ed-pro { background: var(--ink-2); color: var(--ink-text); border-color: var(--ink-line); box-shadow: 0 18px 40px -24px rgba(0,0,0,.6); }
.ed-pro h3 { color: var(--ink-text); }
.ed-pro .ed-for { color: var(--ink-mute); }
.ed-pro li { border-top-color: var(--ink-line); color: var(--ink-text); }
.ed-pro li::before { color: var(--amber); }
.ed-pro li::before { color: var(--amber); }
.ed-pro code { background: rgba(255,200,87,.12); color: var(--amber); }
.ed-ent { border: 2px solid var(--amber-deep); box-shadow: 0 18px 40px -24px rgba(217,154,30,.55); }
.ed-ent li::before { color: var(--amber-deep); }
.ed-ent code { background: rgba(217,154,30,.14); color: var(--amber-deep); font-weight: 700; }
.ed-ent .ed-badge { border-color: var(--amber-deep); color: var(--amber-deep); }
.ed-badge {
  position: absolute; top: 36px; right: 36px;
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--amber); color: var(--amber);
}

/* ---------- 增值模块 ---------- */
.addons { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.addon { color: var(--stone); background: #fff; border: 1px solid var(--paper-line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.addon figure { background: #000; height: 440px; overflow: hidden; }
.addon img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s; }
.addon:hover img { transform: scale(1.03); }
.addon-copy { padding: 26px 28px 30px; }
.addon-cmd { font-size: 14px; color: var(--stone-mute); margin-bottom: 6px; }
.addon-cmd code { font-size: 15px; font-weight: 700; }
.addon h3 { font-family: var(--serif); font-size: 22px; line-height: 1.4; margin-bottom: 10px; }
.addon-copy > p:last-child { color: var(--stone-mute); font-size: 15px; }

/* ---------- 价格 ---------- */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price {
  position: relative; text-align: center;
  background: #fff; border: 1px solid var(--paper-line); border-radius: 8px;
  padding: 40px 30px 30px;
}
.price h3 { font-size: 16px; color: var(--stone-mute); font-weight: 600; letter-spacing: 2px; }
.amount { font-family: var(--mono); font-size: 54px; font-weight: 700; line-height: 1.2; margin: 14px 0 6px; color: var(--stone); }
.amount small { font-size: 22px; vertical-align: 22px; margin-right: 2px; }
.amount span { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--stone-mute); margin-left: 4px; }
.note { color: var(--stone-mute); font-size: 14px; margin-bottom: 28px; }
/* 原价与优惠价同字体同字号，仅多一条红色删除线 */
.price-old { font-family: var(--mono); font-size: 54px; font-weight: 700; line-height: 1.2; color: var(--stone); margin-top: 14px; }
.price-old em { display: block; font-family: var(--sans); font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--stone-mute); letter-spacing: 1px; }
.price-old s { position: relative; text-decoration: none; }
.price-old s::after { content: ""; position: absolute; left: -6px; right: -6px; top: 48%; height: 4px; border-radius: 2px; background: #e0443e; }
.price-old small { font-size: 22px; vertical-align: 22px; margin-right: 2px; }
.price-old span { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--stone-mute); margin-left: 4px; }
.price-old + .amount { margin-top: 2px; }
.amount em { display: block; font-family: var(--sans); font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--amber-deep); letter-spacing: 1px; }
.price-ent .amount { font-size: 40px; }
.price-ent .amount small { font-size: 18px; vertical-align: 14px; }
.price-ent .price-old { font-size: 40px; margin-top: 10px; }
.price-ent .price-old small { font-size: 18px; vertical-align: 14px; }
.price .btn-ghost { color: var(--stone); }
.price-hot { border: 2px solid var(--amber-deep); transform: translateY(-10px); box-shadow: 0 24px 50px -24px rgba(217,154,30,.55); }
.price-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: #1c1606; font-size: 12.5px; font-weight: 700;
  padding: 3px 14px; border-radius: 999px; white-space: nowrap;
}
.price-rules {
  margin: 44px auto 0; padding: 26px 30px;
  border: 1px dashed var(--paper-line); border-radius: 8px;
}
.price-rules h4 { font-size: 15px; margin-bottom: 8px; }
.price-rules li { font-size: 14.5px; color: var(--stone-mute); padding: 3px 0 3px 18px; position: relative; }
.price-rules li::before { content: "·"; position: absolute; left: 4px; font-weight: 700; }

/* ---------- 更新日志 ---------- */
.log-year[open] + .log-year { margin-top: 18px; }
.log-year > summary {
  display: flex; align-items: baseline; gap: 14px; cursor: pointer; list-style: none;
  padding: 10px 4px; border-radius: 6px; transition: background .2s;
}
.log-year > summary::-webkit-details-marker { display: none; }
.log-year > summary:hover { background: rgba(255,255,255,.03); }
.log-year h3 { font-family: var(--mono); font-size: 22px; color: var(--amber); }
.log-year-sum { font-size: 13.5px; color: var(--ink-mute); }
.log-year > summary::after {
  content: "展开"; margin-left: auto; align-self: center;
  font-size: 12.5px; color: var(--ink-mute); padding: 2px 10px; border: 1px solid var(--ink-line); border-radius: 999px;
}
.log-year[open] > summary { margin-bottom: 6px; }
.log-year[open] > summary::after { content: "收起"; }
.log-year:not([open]) > summary { border-top: 1px solid var(--ink-line); border-radius: 0; }
.log-year:last-child:not([open]) > summary { border-bottom: 1px solid var(--ink-line); }
.log-item { border-top: 1px solid var(--ink-line); }
/* 固定列：日期 | 版本号 | 亮点 | 计数 | 展开符，没有版本号的旧版本也对齐 */
.log-item summary {
  display: grid; grid-template-columns: 7.2em 8.4em minmax(0, 1fr) auto 18px; align-items: center; column-gap: 14px;
  cursor: pointer; list-style: none; padding: 13px 4px; font-size: 15px; transition: background .2s;
}
.log-ver { line-height: 1; }
.log-item summary:hover { background: rgba(255,255,255,.03); }
.log-item summary::-webkit-details-marker { display: none; }
.log-item summary time { font-family: var(--mono); font-size: 13.5px; color: var(--ink-mute); flex-shrink: 0; }
.log-item summary code { font-size: 13px; flex-shrink: 0; }
.log-head { color: var(--ink-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-head .new { margin-right: 10px; }
.log-counts { display: flex; gap: 6px; }
.log-counts b, .log-body i {
  font-style: normal; font-weight: 600; font-size: 11.5px; padding: 1px 7px; border-radius: 3px; white-space: nowrap;
}
.k-n, .log-n i { background: rgba(79,224,122,.14); color: var(--green); }
.k-u, .log-u i { background: rgba(255,200,87,.12); color: var(--amber); }
.k-f, .log-f i { background: rgba(154,163,176,.14); color: var(--ink-mute); }
.log-item summary::after {
  content: "+"; width: 18px; text-align: center; color: var(--ink-mute); font-family: var(--mono); flex-shrink: 0;
}
.log-item[open] summary::after { content: "−"; }
.new { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: rgba(79,224,122,.15); color: var(--green); flex-shrink: 0; }
.log-item.is-latest summary time { color: var(--green); }
.log-body { padding: 4px 4px 20px; display: grid; gap: 10px; }
.log-body ul { display: grid; gap: 7px; }
.log-body li { display: grid; grid-template-columns: 3.4em 1fr; align-items: baseline; gap: 10px; color: #c3c9d2; font-size: 14.5px; }
.log-body i { justify-self: start; }
.log-n li { color: var(--ink-text); }
.log-f li { color: var(--ink-mute); }

/* ---------- 视频教程 ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.video {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 26px 24px 22px; border-radius: 8px; text-decoration: none;
  background: rgba(255,255,255,.78); border: 1px solid var(--paper-line);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.video:hover { border-color: var(--amber-deep); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(42,38,33,.5); }
.video-play {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink);
  position: relative; margin-bottom: 6px;
}
.video-play::after {
  content: ""; position: absolute; left: 16px; top: 13px;
  border: 7px solid transparent; border-left: 11px solid var(--amber); border-right: 0;
}
.video-count { position: absolute; top: 30px; right: 24px; font-family: var(--mono); font-size: 13px; color: var(--amber-deep); }
.video-series { font-size: 12px; color: var(--stone-mute); margin-top: -4px; }
.video h3 { font-family: var(--serif); font-size: 20px; }
.video p { font-size: 14.5px; color: var(--stone-mute); flex: 1; }
.video-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.video-tags code { font-size: 12px; }
.videos-more { margin-top: 34px; text-align: center; }
.videos-more .btn { color: var(--stone); }

/* ---------- 安装 ---------- */
.install-cards { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: stretch; }
.inst-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--paper-line); border-radius: 8px; padding: 36px;
  color: var(--stone);
}
.inst-card h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 24px; color: var(--stone); }
/* 运行环境：与左侧安装步骤等高，逐行分隔线对齐 */
.req-dl { display: grid; grid-template-columns: auto 1fr; font-size: 15px; align-content: start; }
.req-dl dt, .req-dl dd { padding: 14px 0; border-top: 1px dashed var(--paper-line); }
.req-dl dt:first-of-type, .req-dl dd:first-of-type { border-top: 0; padding-top: 0; }
.req-dl dt { color: var(--stone-mute); white-space: nowrap; padding-right: 20px; }
.req-dl dd { color: var(--stone); }
.steps { counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 34px 68px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 18px;
  background: var(--ink); color: var(--amber);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: 6px;
  border-left: 2px dotted var(--paper-line);
}
.steps h4 { font-size: 18px; margin-bottom: 4px; }
.steps p { color: var(--stone-mute); font-size: 15px; }
.steps a:not(.btn) { color: var(--amber-deep); }
.steps-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 4px; }
.steps-head h4 { margin-bottom: 0; }
.steps-dl {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 18px;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  border-radius: 6px;
}
.other-dl { margin-top: 24px; background: #fff; border: 1px solid var(--paper-line); border-radius: 8px; padding: 28px 36px 32px; color: var(--stone); }
.other-dl h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 18px; }
.other-dl-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.other-dl-list .btn { color: var(--stone); padding: 0 10px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.other-dl-list .btn:hover { border-color: var(--amber-deep); color: var(--amber-deep); }
@media (max-width: 1020px) { .other-dl-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .other-dl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .other-dl { padding: 24px 22px; } }
.req {
  background: #fff; border: 1px solid var(--paper-line); border-radius: 8px;
  padding: 28px; display: grid; grid-template-columns: 1fr 120px; gap: 20px;
}
.req h4 { grid-column: 1 / -1; font-size: 16px; }
.req dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14.5px; align-content: start; }
.req dt { color: var(--stone-mute); }
.req-menu { border-radius: 4px; width: 120px; max-height: 300px; object-fit: cover; object-position: top; box-shadow: 0 10px 30px -12px rgba(0,0,0,.4); }

/* ---------- 联系 ---------- */
.contact { background: var(--ink); color: var(--ink-text); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 85% 50%, rgba(255,200,87,.14), transparent 70%);
}
.contact-inner { position: relative; display: grid; grid-template-columns: 1.4fr auto; gap: 64px; align-items: center; }
.contact-copy p { color: #c3c9d2; font-size: 17px; margin-bottom: 30px; }
.contact-copy p b { color: var(--amber); }
.channels li { display: flex; gap: 18px; padding: 12px 0; border-top: 1px solid var(--ink-line); font-size: 15px; }
.channels span { color: var(--ink-mute); width: 3em; flex-shrink: 0; }
.channels a { color: var(--amber); }
.qr { background: #fff; padding: 14px 14px 10px; border-radius: 10px; text-align: center; transform: rotate(1.5deg); }
.qr img { width: 220px; height: 220px; }
.qr figcaption { color: var(--stone); font-size: 13.5px; margin-top: 6px; font-weight: 600; }

/* ---------- 页脚 ---------- */
.foot { background: #15181c; color: #6f7886; font-size: 13px; }
.foot a { color: inherit; }
.foot a:hover { color: var(--amber); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 26px 28px; }

/* ---------- 滚动渐显 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.seen { opacity: 1; transform: none; }
.steps li.reveal:nth-child(2) { transition-delay: .1s; }
.steps li.reveal:nth-child(3) { transition-delay: .2s; }
.steps li.reveal:nth-child(4) { transition-delay: .3s; }
.price.reveal:nth-child(2) { transition-delay: .08s; }
.price.reveal:nth-child(3) { transition-delay: .16s; }
.price.reveal:nth-child(4) { transition-delay: .24s; }
.price-hot.reveal.seen { transform: translateY(-10px); }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .hero h1 { font-size: clamp(29px, 7vw, 46px); }
  .hero-inner, .showcase-inner, .install-cards, .flow-panel { grid-template-columns: 1fr; }
  .hero-inner { gap: 48px; }
  .showcase-inner { gap: 40px; }
  /* 窄屏：工序保持一排，可左右滑动，下划线始终贴着底部基线 */
  .flow-steps { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .flow-steps::-webkit-scrollbar { display: none; }
  .flow-steps li { flex: 1 0 84px; }
  .flow-panel { gap: 32px; }
  .editions, .addons { grid-template-columns: 1fr; }
  .prices { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}
@media (max-width: 480px) {
  .showcase-copy h2 .line { white-space: normal; }
  .cad-bar > span { display: none; }
  .cad-dots button { padding: 0 6px 0 5px; }
}
@media (max-width: 760px) {
  .log-item summary { grid-template-columns: 6.6em minmax(0, 1fr) auto 18px; column-gap: 10px; }
  .log-ver { display: none; }
  .log-body li { grid-template-columns: 3.2em minmax(0, 1fr); }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 28px 18px;
    background: rgba(28, 32, 38, .97); border-bottom: 1px solid var(--ink-line);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--ink-line); font-size: 16px; }
  .nav-links a::after { left: 0; right: auto; width: 2em; bottom: -1px; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }

  .sec { padding: 80px 0; }
  .hero { padding: 104px 0 72px; }
  .hero-facts b, .fact-price span em { font-size: 22px; }
  .fp-cmds { grid-template-columns: 1fr; }
  .prices { grid-template-columns: 1fr; max-width: 420px; }
  .price-hot, .price-hot.reveal.seen { transform: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .qr { justify-self: start; }
  .inst-card { padding: 26px 22px; }
  .ed, .price-rules { padding: 26px 22px; }
  .ed-badge { position: static; display: inline-block; margin-bottom: 12px; }
}

/* 放在 760px 规则之后，确保覆盖 */
@media (max-width: 480px) {
  .log-counts { display: none; }
  .log-item summary { grid-template-columns: 6.6em minmax(0, 1fr) 18px; }
}

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

/* ============ 图片轮播 ============ */
.addon-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink-bg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-track img {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(11, 14, 20, 0.7);
  color: var(--ink-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
  opacity: 0;
  backdrop-filter: blur(4px);
}

.addon-carousel:hover .carousel-prev,
.addon-carousel:hover .carousel-next {
  opacity: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(11, 14, 20, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.4);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(248, 250, 252, 0.6);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 760px) {
  .carousel-prev,
  .carousel-next {
    width: 32px;
    height: 32px;
    font-size: 20px;
    opacity: 1;
  }

  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }

  .carousel-dots { bottom: 12px; }
}

