/* 配置窗口与手机是静态素材，不绑定交互。 */
.device { position:relative; justify-self:end; width:690px; height:640px; flex-shrink:0 }
.device::before {
  content:""; position:absolute; z-index:0; left:-90px; right:-120px; top:-80px; bottom:-60px;
  background:radial-gradient(closest-side,var(--glow) 0%,var(--glow-fade) 100%);
  color:var(--text); pointer-events:none;
}
.win {
  position:absolute; z-index:1; left:0; top:0; width:640px; height:440px;
  display:grid; grid-template-columns:136px 1fr;
  background:var(--bg-panel); color:var(--text); border:1px solid var(--border);
  border-radius:var(--r-xl); box-shadow:var(--shadow-panel); overflow:hidden;
}
.rail { display:flex; flex-direction:column; padding:20px 12px 18px; background:var(--panel-tint); color:var(--text-muted); border-right:1px solid var(--border) }
.dots { display:flex; gap:6px; padding:0 6px; margin-bottom:22px }
.dots i { width:10px; height:10px; flex-shrink:0; border-radius:var(--r-circle); background:var(--border-strong); color:var(--text) }
.rail-nav { display:flex; flex-direction:column; gap:2px }
.rail-item { display:flex; align-items:center; gap:9px; height:34px; padding:0 10px; border-radius:var(--r-sm); font-size:13px; color:var(--text-muted) }
.rail-item svg { width:15px; height:15px }
.rail-item.is-on { background:var(--bg-panel-2); color:var(--text); font-weight:var(--weight-medium) }
.rail-foot { margin-top:auto; padding:10px 10px 0; border-top:1px solid var(--border); font-size:11px; line-height:1.5; color:var(--text-faint) }
.rail-foot b { display:block; font-family:var(--font-mono); font-weight:var(--weight-normal); font-size:11px; color:var(--text-muted) }
.main { display:flex; flex-direction:column; min-width:0; padding:22px 24px 26px }
.toolbar { display:flex; gap:8px }
.search { flex:1; display:flex; align-items:center; gap:8px; height:38px; padding:0 12px; border:1px solid var(--border); border-radius:var(--r-sm); font-size:13px; color:var(--text-faint) }
.search svg { width:15px; height:15px; color:var(--text-muted) }
.tb-btn { display:inline-flex; align-items:center; gap:6px; height:38px; padding:0 14px; border-radius:var(--r-sm); font-size:13px; font-weight:var(--weight-medium) }
.tb-btn svg { width:13px; height:13px }
.tb-dark { background:var(--text); color:var(--on-dark) }
.tb-line { background:var(--bg-panel); color:var(--text); border:1px solid var(--border) }
.sec-head { display:flex; align-items:baseline; justify-content:space-between; margin:22px 0 12px }
.sec-head h3 { margin:0; font-size:15px; font-weight:var(--weight-medium); color:var(--text) }
.sec-head span { font-size:12px; color:var(--text-faint) }
.cfgs { display:grid; grid-template-columns:1fr 1fr; gap:12px }
.cfg { height:90px; padding:12px 14px; border:1px solid var(--border); border-radius:var(--r-md); background:var(--bg-panel); color:var(--text) }
.cfg.is-active { border-color:var(--accent); box-shadow:var(--ring-active) }
.cfg-top { display:flex; align-items:center; gap:7px; margin-bottom:8px }
.cfg-top svg { width:14px; height:14px; color:var(--text-muted) }
.cfg-top b { font-size:13px; font-weight:var(--weight-medium); color:var(--text) }
.cfg-top b.mono { font-family:var(--font-mono); font-weight:var(--weight-normal); font-size:12px }
.cfg-type { margin-left:auto; font-size:11px; font-style:normal; color:var(--text-faint) }
.cfg-tag { margin-left:auto; padding:1px 8px; border-radius:var(--r-pill); font-size:11px; font-style:normal; background:var(--accent-soft); color:var(--accent) }
.cfg dl { margin:0; display:grid; gap:3px }
.cfg dl div { display:flex; justify-content:space-between; gap:8px; font-size:12px; line-height:1.5 }
.cfg dt { color:var(--text-faint) }
.cfg dd { margin:0; color:var(--text-muted) }
.cfg-add { display:flex; align-items:center; gap:10px; border-style:dashed; border-color:var(--border-strong); background:var(--panel-tint); color:var(--text-muted); font-size:13px }
.cfg-add svg { width:16px; height:16px }
.mode { margin-top:auto; padding-top:18px; border-top:1px solid var(--border); display:flex; align-items:center; gap:14px }
.mode-label { font-size:13px; color:var(--text-muted) }
.seg { display:inline-flex; padding:3px; border-radius:var(--r-sm); background:var(--bg-panel-2); color:var(--text-muted) }
.seg span { min-width:62px; padding:6px 0; border-radius:var(--r-xs); text-align:center; font-size:13px; line-height:1.4 }
.seg span.is-on { background:var(--text); color:var(--on-dark) }
.phone {
  position:absolute; z-index:2; right:0; top:214px; width:236px; height:420px; padding:8px;
  background:var(--bg-panel); color:var(--text); border:1px solid var(--border);
  border-radius:var(--r-phone); box-shadow:var(--shadow-phone); transform:rotate(-2deg);
}
.screen { height:100%; display:flex; flex-direction:column; padding:0 12px 10px; border-radius:var(--r-screen); background:var(--panel-tint); color:var(--text); overflow:hidden }
.status { position:relative; display:flex; align-items:center; justify-content:space-between; height:34px; padding:0 8px; font-size:11px; font-weight:var(--weight-strong) }
.island { position:absolute; left:50%; top:9px; width:62px; height:18px; margin-left:-31px; border-radius:var(--r-pill); background:var(--text); color:var(--on-dark) }
.status-icons { display:flex; gap:4px; align-items:center }
.status-icons svg { height:9px; width:auto }
.p-title { display:flex; align-items:center; gap:8px; margin:6px 4px 2px }
.p-title h4 { margin:0; font-size:21px; font-weight:var(--weight-medium); letter-spacing:-.01em }
.p-dot { width:8px; height:8px; flex-shrink:0; border-radius:var(--r-circle); background:var(--coral); color:var(--text); box-shadow:0 0 0 4px var(--coral-soft) }
.p-sub { margin:0 4px 10px; font-size:11px; color:var(--text-faint) }
.grp-label { margin:4px 6px 6px; font-size:10.5px; letter-spacing:.04em; color:var(--text-faint) }
.grp { margin-bottom:10px; border:1px solid var(--border); border-radius:var(--r-md); background:var(--bg-panel); color:var(--text) }
.row { display:flex; align-items:center; justify-content:space-between; gap:8px; height:39px; padding:0 11px; font-size:12px; color:var(--text) }
.row + .row { border-top:1px solid var(--border) }
.row code { font-family:var(--font-mono); font-size:11px; color:var(--text-muted) }
.sw { position:relative; flex-shrink:0; width:32px; height:19px; border-radius:var(--r-pill); background:var(--border-strong); color:var(--text) }
.sw::after { content:""; position:absolute; left:2px; top:2px; width:15px; height:15px; border-radius:var(--r-circle); background:var(--bg-panel); color:var(--text); box-shadow:var(--shadow-soft) }
.sw.on { background:var(--accent); color:var(--on-dark) }
.sw.on::after { left:15px }
.home-bar { margin:auto auto 0; width:84px; height:4px; border-radius:var(--r-pill); background:var(--text); color:var(--on-dark) }
.stage { background:var(--stage); color:var(--stage-text); padding-top:112px; padding-bottom:120px }
.stage-head { text-align:center; max-width:720px; margin:0 auto 64px }
.stage-tag { display:inline-block; padding:5px 12px; border-radius:var(--r-pill); background:var(--coral-soft); color:var(--coral); font-size:13px; line-height:1.5 }
.stage h2 { margin:18px 0 0; font-size:36px; line-height:1.25 }
.stage-head p { margin:16px 0 0; font-size:16px; line-height:1.75; color:var(--stage-muted) }
.dl-rows,.dl-row { display:grid; gap:20px }
.dl-row.two { grid-template-columns:1.25fr 1fr }
.dl-row.three { grid-template-columns:repeat(3,minmax(0,1fr)) }
.dl-row > * { min-width:0 }
.dl-card { display:grid; grid-template-columns:112px minmax(0,1fr); min-height:168px; border-radius:var(--r-lg); overflow:hidden; background:var(--stage-panel); color:var(--stage-text); border:1px solid var(--stage-line); transition:border-color var(--duration) }
.dl-card:hover { border-color:var(--stage-muted) }
.dl-icon { display:grid; place-items:center; background:var(--stage-ink); color:var(--on-dark) }
.dl-icon svg { width:40px; height:40px }
.dl-body { min-width:0; padding:22px 24px; display:flex; flex-direction:column }
.dl-body b { font-size:19px; font-weight:var(--weight-medium) }
.dl-body > span { margin-top:6px; font-size:14px; line-height:1.65; color:var(--stage-muted) }
.dl-body .dl-link { margin-top:auto; padding-top:14px; display:inline-flex; align-items:center; gap:8px; font-size:14px; color:var(--stage-text) }
.dl-link u { text-decoration:none; border-bottom:1px solid var(--stage-text); padding-bottom:1px }
.dl-link svg { width:14px; height:14px }
.tabs { min-width:0 }
[role="tablist"] { display:flex; align-items:center; gap:6px; max-width:100%; overflow-x:auto; padding:6px; border:1px solid var(--border); border-radius:var(--r-lg); background:var(--bg-panel-2); color:var(--text-muted) }
[role="tab"] { flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 20px; border:1px solid var(--clear); border-radius:var(--r-md); background:var(--clear); color:var(--text-muted); font-size:15px }
[role="tab"] svg { width:18px; height:18px }
[role="tab"][aria-selected="true"] { background:var(--accent); color:var(--on-dark); box-shadow:var(--shadow-btn) }
[role="tabpanel"] { min-width:0; margin-top:28px }
.toc { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:16px; border:1px solid var(--border); border-radius:var(--r-lg); background:var(--bg-panel); color:var(--text-muted) }
.toc a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 16px; border-radius:var(--r-pill); font-size:14px }
.toc a:hover,.toc a[aria-current] { background:var(--accent-soft); color:var(--accent) }
.toc-sticky { position:sticky; top:16px; z-index:5; align-self:start }
.faq-item { border-bottom:1px solid var(--border); padding-block:8px }
.faq-item summary { position:relative; padding:20px 44px 20px 0; cursor:pointer; list-style:none; font-size:18px }
.faq-item summary::-webkit-details-marker { display:none }
.faq-item summary::after { content:"+"; position:absolute; right:8px; top:18px; font-size:24px; color:var(--text-muted) }
.faq-item[open] summary::after { content:"−" }
.faq-answer { padding:0 36px 20px 0; color:var(--text-muted); line-height:1.9 }
.faq-answer p:last-child { margin-bottom:0 }
.term-card { padding:28px; border:1px solid var(--border); border-radius:var(--r-lg); background:var(--bg-panel); color:var(--text) }
.term-card h3 { margin:0 0 8px }
.term-en { display:block; font-family:var(--font-mono); color:var(--text-muted); font-size:13px; margin-bottom:16px }
.term-card p { color:var(--text-muted) }
.client-card { padding:32px; border:1px solid var(--border); border-radius:var(--r-xl); background:var(--bg-panel); color:var(--text); box-shadow:var(--shadow-soft) }
.client-card.is-pick { border-color:var(--accent); box-shadow:var(--ring-active),var(--shadow-soft) }
.client-head { display:flex; align-items:center; flex-wrap:wrap; gap:16px; margin-bottom:20px }
.client-icon { width:56px; height:56px; flex-shrink:0 }
.client-heading { flex:1; min-width:0 }
.client-heading h3 { margin:0 0 4px; font-size:24px }
.client-heading p { margin:0; font-size:14px; color:var(--text-muted) }
.client-card > p { color:var(--text-muted) }
.client-meta { display:flex; flex-wrap:wrap; gap:12px 24px; margin-block:20px; color:var(--text-muted); font-size:14px }
.client-actions { display:flex; flex-wrap:wrap; gap:12px }
[data-rev]:empty { display:none }
.badge,.tag { display:inline-block; max-width:100%; overflow-wrap:anywhere; padding:4px 10px; border:1px solid var(--border); border-radius:var(--r-pill); background:var(--panel-tint); color:var(--text-muted); font-size:12px; line-height:1.6; vertical-align:middle }
.badge-pick,.badge-recommended { background:var(--accent-soft); color:var(--accent); border-color:var(--accent-soft) }
.badge-archived { background:var(--bg-panel-2); color:var(--text-muted); border-color:var(--border) }
.article-tag { background:var(--coral-soft); color:var(--text); border-color:var(--clear) }
.post-card { display:flex; flex-direction:column; padding:32px; border:1px solid var(--border); border-radius:var(--r-xl); background:var(--bg-panel); color:var(--text); box-shadow:var(--shadow-soft) }
.post-meta { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:24px; font-size:13px; color:var(--text-muted) }
.post-card h3 { margin:0 0 16px; font-size:24px; line-height:1.5 }
.post-card h3 a:hover { color:var(--accent) }
.post-card p { color:var(--text-muted) }
.post-card > .text-link { align-self:flex-start; margin-top:auto }
.callout { margin:24px 0; padding:24px 28px; border:1px solid var(--border); border-left:3px solid var(--accent); border-radius:var(--r-md); background:var(--accent-soft); color:var(--text) }
.callout p:last-child { margin-bottom:0 }
.callout-title { display:block; margin-bottom:8px; font-weight:var(--weight-medium) }
.table-scroll { max-width:100%; min-width:0; overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--border); border-radius:var(--r-lg); background:var(--bg-panel); color:var(--text) }
.data-table { width:100%; border-collapse:collapse; font-size:14px; text-align:left }
.data-table th,.data-table td,.prose table th,.prose table td,.article-body table th,.article-body table td {
  min-width:7em; padding:16px 20px; border-bottom:1px solid var(--border);
  overflow-wrap:normal; word-break:normal; vertical-align:top;
}
.data-table th,.prose table th,.article-body table th { background:var(--panel-tint); color:var(--text); font-weight:var(--weight-medium) }
.data-table tr:last-child td { border-bottom:0 }
.prose table,.article-body table {
  display:block; overflow-x:auto; -webkit-overflow-scrolling:touch;
  max-width:100%; min-width:0; width:100%; border-collapse:collapse;
}
.prose table code,.article-body table code { overflow-wrap:anywhere }
.dl-fab {
  position:fixed; z-index:20; right:24px; bottom:24px; max-width:calc(100% - 48px);
  display:inline-flex; align-items:center; justify-content:center; gap:14px;
  padding:16px 22px; border:1px solid var(--accent-dark); border-radius:var(--r-lg);
  background:var(--accent); color:var(--on-dark); box-shadow:var(--shadow-btn);
}
.dl-fab:hover { background:var(--accent-dark); color:var(--on-dark) }
.dl-fab svg { width:24px; height:24px }
.dl-fab strong { display:block; font-size:15px }
.dl-fab small { display:block; font-size:12px }
.article-download {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:24px;
  margin-top:56px; padding:32px; border:1px solid var(--border); border-radius:var(--r-xl);
  background:var(--bg-panel); color:var(--text); box-shadow:var(--shadow-soft);
}
.article-download h2 { font-size:24px; margin:0 0 8px }
.article-download p { margin:0; color:var(--text-muted) }
.preview-section { padding-top:80px; padding-bottom:80px; border-bottom:1px solid var(--border) }
.preview-section h2 { margin-top:0 }
.preview-samples { display:flex; flex-wrap:wrap; align-items:center; gap:16px; margin-block:24px }
.palette-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px }
.swatch { border:1px solid var(--border); border-radius:var(--r-md); overflow:hidden; background:var(--bg-panel); color:var(--text) }
.swatch-color { height:72px; border-bottom:1px solid var(--border); background:var(--swatch); color:var(--text) }
.swatch code { display:block; padding:12px; font-size:12px }
.sw-bg { --swatch:var(--bg) }
.sw-panel { --swatch:var(--bg-panel) }
.sw-panel2 { --swatch:var(--bg-panel-2) }
.sw-tint { --swatch:var(--panel-tint) }
.sw-border { --swatch:var(--border) }
.sw-border-strong { --swatch:var(--border-strong) }
.sw-accent { --swatch:var(--accent) }
.sw-accent-dark { --swatch:var(--accent-dark) }
.sw-accent-soft { --swatch:var(--accent-soft) }
.sw-text { --swatch:var(--text) }
.sw-muted { --swatch:var(--text-muted) }
.sw-faint { --swatch:var(--text-faint) }
.sw-success { --swatch:var(--success) }
.sw-warn { --swatch:var(--warn) }
.sw-error { --swatch:var(--error) }
.sw-coral { --swatch:var(--coral) }
.sw-coral-soft { --swatch:var(--coral-soft) }
.sw-stage { --swatch:var(--stage) }
.sw-stage-panel { --swatch:var(--stage-panel) }
.sw-stage-ink { --swatch:var(--stage-ink) }
.sw-stage-text { --swatch:var(--stage-text) }
.sw-stage-muted { --swatch:var(--stage-muted) }
.sw-stage-line { --swatch:var(--stage-line) }
.sw-on-dark { --swatch:var(--on-dark) }
.sw-glow { --swatch:var(--glow) }
.sw-glow-fade { --swatch:var(--glow-fade) }
.sw-veil { --swatch:var(--veil) }
.sw-clear { --swatch:var(--clear) }
.svg-defs { position:absolute; width:0; height:0; overflow:hidden }
@media (max-width:1360px) { .device { zoom:.9 } }
@media (max-width:1180px) { .device { zoom:.8 } }
@media (max-width:1080px) {
  .device { justify-self:center; zoom:.85 }
  .dl-row.two,.dl-row.three { grid-template-columns:minmax(0,1fr) }
}
@media (max-width:760px) {
  .device { zoom:.48 }
  .stage h2 { font-size:26px }
  .palette-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media (max-width:640px) {
  .client-card,.post-card,.term-card { padding:24px }
  .dl-card { grid-template-columns:76px minmax(0,1fr) }
  .dl-body { padding:20px }
  .dl-fab { right:16px; bottom:16px; max-width:calc(100% - 32px); padding:12px 16px }
  .dl-fab small { display:none }
  .article-download { padding:24px }
  .callout { padding:20px }
}
@media (max-width:360px) { .device { zoom:.41 } }