/* 暖光工作台与静态客户端窗 */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 680px;
  height: max(680px, calc(100vh - var(--nav-h) - var(--peek)));
  background: var(--scene-wall);
  color: var(--text);
}
.hero__visual { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero__visual > img { width: 100%; height: 100%; object-fit: cover; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--veil-55) 0%, var(--veil-64) 46%, var(--veil-78) 100%);
  color: var(--text);
}
.s-wall { fill: var(--scene-wall); }
.s-post, .s-book-a { fill: var(--scene-shelf); }
.s-board, .s-book-b { fill: var(--scene-shelf-hi); }
.s-cab { fill: var(--scene-cab); }
.s-book-c { fill: var(--scene-book-c); }
.s-beam { fill: var(--scene-beam); }
.s-beam-edge { fill: var(--scene-beam-edge); }
.s-desk { fill: var(--scene-desk); }
.s-desk-edge { fill: var(--scene-desk-edge); }
.s-desk-front { fill: var(--scene-desk-front); }
.s-shadow, .s-shadow-soft, .sw-shadow { fill: var(--scene-shadow); }
.s-shadow { opacity: .55; }
.s-shadow-soft { opacity: .35; }
.s-paper { fill: var(--scene-paper); }
.s-paper-rule { fill: var(--scene-paper-rule); }
.s-paper-head, .sw-paper-head { fill: var(--scene-paper-head); }
.s-paper-head { font: var(--size-print-head) var(--font-mono); letter-spacing: .06em; }
.s-code, .sw-paper-ink { fill: var(--scene-paper-ink); }
.s-code { font: var(--size-print-code) var(--font-mono); }
.s-k { fill: var(--scene-paper-key); font-weight: var(--weight-strong); }
.s-v { fill: var(--scene-paper-val); }
.s-laptop { fill: var(--scene-laptop); }
.s-laptop-shade { fill: var(--scene-laptop-shade); }
.s-laptop-base { fill: var(--scene-laptop-base); }
.s-screen-edge { fill: var(--scene-screen-edge); }
.s-mug { fill: var(--scene-mug); }
.s-mug-shade { fill: var(--scene-mug-shade); }
.s-mug-handle { fill: none; stroke: var(--scene-mug); stroke-width: 6; stroke-linecap: round; }
.s-coffee { fill: var(--scene-coffee); }
.s-lamp { fill: var(--scene-lamp); }
.s-lamp-hi { fill: var(--scene-lamp-hi); }
.s-lamp-arm { fill: none; stroke: var(--scene-lamp); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.s-bulb { fill: var(--scene-bulb); }
.gs-core { stop-color: var(--glow-core); stop-opacity: .74; }
.gs-a { stop-color: var(--glow); stop-opacity: .46; }
.gs-b { stop-color: var(--glow); stop-opacity: .15; }
.gs-c, .gp-b { stop-color: var(--glow); stop-opacity: 0; }
.gp-a { stop-color: var(--glow); stop-opacity: .36; }
.gsc-a { stop-color: var(--scene-screen-edge); stop-opacity: .38; }
.gsc-b { stop-color: var(--scene-screen-edge); stop-opacity: 0; }

.hero__copy {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(84px, 14vh, 132px) max(24px, var(--gutter)) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 7px 13px;
  border: 1px solid var(--label-line);
  border-radius: var(--r-ctl);
  background: var(--label-back);
  color: var(--text);
  font-size: var(--size-xs);
  font-weight: var(--weight-medium);
  line-height: 1;
  letter-spacing: .18em;
}
.eyebrow__dot { width: 6px; height: 6px; border-radius: var(--r-dot); background: var(--success); color: var(--ink); flex: none; }
.hero h1 { margin: 0 0 22px; font-size: var(--size-h1); line-height: 1.18; color: var(--text); }
.h1-line { display: block; }
.caret {
  display: inline-block;
  width: .3em;
  height: .3em;
  margin-left: .14em;
  vertical-align: .04em;
  border-radius: var(--r-mark);
  background: var(--accent);
  color: var(--ink);
}
.lede { max-width: 600px; margin: 0 0 36px; font-size: var(--size-lede); line-height: 1.72; color: var(--text-muted); }
.lede strong { color: var(--text); }
.platforms {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
}
.platforms a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--size-sm);
  letter-spacing: .01em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--ease-ui);
}
.platforms a:hover { color: var(--text); }
.platforms svg { width: 16px; height: 16px; flex: none; display: block; }

.mock {
  position: absolute;
  left: clamp(24px, 3.6vw, 56px);
  bottom: 44px;
  z-index: 1;
  width: 288px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow-float);
  font-size: var(--size-mock);
  line-height: 1.4;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--r-card) var(--r-card) 0 0;
  background: var(--bg-panel-2);
  color: var(--text);
}
.mock__dot { width: 8px; height: 8px; border-radius: var(--r-dot); background: var(--border); color: var(--ink); flex: none; }
.mock__title { flex: 1; margin-right: 28px; text-align: center; font-size: var(--size-xs); }
.mock__body { padding: 14px 16px 10px; }
.mock__label { margin: 0 0 9px; font-size: var(--size-2xs); letter-spacing: .14em; color: var(--text-muted); }
.radio-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.radio { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.radio::before { content: ""; width: 12px; height: 12px; border: 1.5px solid var(--border); border-radius: var(--r-dot); flex: none; }
.radio.is-on { color: var(--text); }
.radio.is-on::before { border-color: var(--accent); background: var(--accent); color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--bg-panel); }
.mock__sep { height: 1px; margin: 14px 0 2px; background: var(--border); color: var(--ink); opacity: .7; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.set-row:last-child { border-bottom: 0; }
.set-key { color: var(--text-muted); }
.set-val { padding: 3px 7px; border-radius: var(--r-ctl); background: var(--bg-panel-2); color: var(--text); font: var(--size-setting) var(--font-mono); }
.switch { position: relative; width: 28px; height: 16px; border-radius: var(--r-switch); background: var(--accent); color: var(--ink); flex: none; }
.switch::after { content: ""; position: absolute; inset: 2px 2px auto auto; width: 12px; height: 12px; border-radius: var(--r-dot); background: var(--text); color: var(--ink); }

.dl { padding-bottom: 96px; background: var(--paper); color: var(--ink); }
.dl__strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--peek); border-bottom: 1px solid var(--ink-line); font-size: var(--size-xs); letter-spacing: .16em; color: var(--ink-muted); }
.dl__head { padding-block: 64px 36px; max-width: 640px; }
.dl h2 { margin: 0 0 14px; color: var(--ink); }
.dl__head p { margin: 0; line-height: 1.75; color: var(--ink-muted); }
.dl__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 22px 22px 20px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-card);
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--ease-ui);
}
.dl-card:hover { border-color: var(--ink-faint); }
.dl-card svg { width: 20px; height: 20px; }
.dl-card__os { font-size: var(--size-brand); font-weight: var(--weight-strong); }
.dl-card__app { font: var(--size-mock)/1.6 var(--font-mono); color: var(--ink-muted); }
.dl-card__go { margin-top: auto; padding-top: 8px; font-size: var(--size-sm); font-weight: var(--weight-medium); color: var(--accent-ink); }

/* 下载平台 / 配置工序 */
.tablist { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.tablist [role="tab"] {
  position: relative;
  min-height: var(--touch);
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  background: var(--bg-panel);
  color: var(--text);
  font-size: var(--size-sm);
  overflow-wrap: anywhere;
}
.tablist [role="tab"]:hover { border-color: var(--text-muted); }
.tablist [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.tabs > [role="tabpanel"] { margin-top: 16px; }
.worksteps .tablist {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-items: center;
}
.worksteps .tablist::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid var(--border);
}
.worksteps [role="tab"] { width: min(100%, 9em); font-family: var(--font-mono); }
.tab-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(16px, 4vw, 48px); }
.tab-detail p:last-child { margin-bottom: 0; }

.toc { padding: 12px 16px; border-block: 1px solid var(--border); background: var(--bg-panel); color: var(--text); }
.toc ul { display: flex; flex-wrap: wrap; gap: 0 18px; list-style: none; margin: 0; padding: 0; }
.toc a { display: inline-flex; align-items: center; min-height: var(--touch); }
.faq { display: grid; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: var(--touch);
  padding: 12px 16px;
  cursor: pointer;
  font-weight: var(--weight-medium);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+" / ""; font-family: var(--font-mono); color: var(--accent-text); flex: none; }
.faq-item[open] summary::after { content: "−" / ""; }
.faq-item__answer { padding: 14px 16px 16px; border-top: 1px solid var(--border); }
.faq-item__answer > :last-child { margin-bottom: 0; }
.term-card { border-inline-start: 3px solid var(--ink-faint); }
.card-kicker { color: var(--text-muted); font: var(--size-xs)/1.5 var(--font-mono); letter-spacing: .07em; }
.client-card__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin-bottom: 12px; }
.client-card__head h3 { margin: 0; }
.client-card__links { display: flex; flex-wrap: wrap; gap: 12px; }
.blog-card { display: flex; flex-direction: column; align-items: start; gap: 10px; }
.blog-card :is(h3, p) { margin: 0; }
.blog-card h3 a { color: var(--text); }
.blog-card time { font: var(--size-sm)/1.5 var(--font-mono); color: var(--text-muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-ctl);
  background: var(--bg-panel);
  color: var(--text);
  font-size: var(--size-xs);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: var(--r-dot);
  background: var(--badge-dot, var(--text-muted));
  color: var(--ink);
}
.badge--first { --badge-dot: var(--success); }
.badge--recommended { --badge-dot: var(--warn); }
.badge--retired { --badge-dot: var(--error); }
.badge--tag::before { display: none; }
.callout {
  margin-inline: 0;
  padding: 16px 20px;
  border-inline-start: 3px solid var(--warn);
  border-radius: var(--r-ctl);
  background: var(--bg-panel);
  color: var(--text);
}
.callout > :last-child { margin-bottom: 0; }

.table-scroll, .prose table, .doc-content table {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}
.prose table, .doc-content table { display: block; }
:where(.data-table, .prose table, .doc-content table) { border-collapse: collapse; text-align: start; }
.data-table { width: 100%; }
:where(.data-table, .prose table, .doc-content table) caption { padding-bottom: 8px; text-align: start; }
:where(.data-table, .prose table, .doc-content table) :is(th, td) {
  min-width: 7em;
  padding: 10px 14px;
  text-align: start;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
  border: 1px solid var(--border);
}
:where(.data-table, .prose table, .doc-content table) th { background: var(--bg-panel); color: var(--text); }
:where(.data-table, .prose table, .doc-content table) td code { overflow-wrap: anywhere; }

.article-download { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.article-download p { margin-bottom: 0; }
.article-download__copy { flex: 1 1 16em; }
.dl-fab {
  position: fixed;
  inset: auto max(var(--gutter), env(safe-area-inset-right)) max(16px, calc(env(safe-area-inset-bottom) + 8px)) auto;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--touch);
  max-width: calc(100% - var(--gutter) * 2);
  padding: 10px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--r-ctl);
  background: var(--accent);
  color: var(--ink);
  box-shadow: var(--shadow-float);
  font-weight: var(--weight-strong);
  font-size: var(--size-sm);
  text-decoration: none;
}
.dl-fab:hover { background: var(--accent-text); color: var(--ink); }
.dl-fab svg { flex: none; width: 18px; height: 18px; }
.has-dl-fab .site-footer { padding-bottom: 92px; }

/* 设计预览专用 */
.icon-sheet { position: absolute; width: 0; height: 0; overflow: hidden; }
.sample-head { max-width: 640px; margin-bottom: 32px; }
.sample-section + .sample-section { margin-top: 48px; }
.sample-section .cta { justify-content: start; }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr)); gap: 16px; }
.swatches svg { display: block; width: 100%; height: 38px; border: 1px solid var(--border); border-radius: var(--r-ctl); margin-bottom: 5px; }
.swatches code { font-size: var(--size-xs); }
.sw-bg { fill: var(--bg); }
.sw-panel { fill: var(--bg-panel); }
.sw-panel2 { fill: var(--bg-panel-2); }
.sw-border { fill: var(--border); }
.sw-accent { fill: var(--accent); }
.sw-accent-dark { fill: var(--accent-dark); }
.sw-accent-ink { fill: var(--accent-ink); }
.sw-accent-text { fill: var(--accent-text); }
.sw-text { fill: var(--text); }
.sw-muted { fill: var(--text-muted); }
.sw-success { fill: var(--success); }
.sw-warn { fill: var(--warn); }
.sw-error { fill: var(--error); }
.sw-paper { fill: var(--paper); }
.sw-paper-warm { fill: var(--paper-warm); }
.sw-ink { fill: var(--ink); }
.sw-ink-muted { fill: var(--ink-muted); }
.sw-ink-faint { fill: var(--ink-faint); }
.sw-line { fill: var(--ink-line); }
.sw-paper-key { fill: var(--scene-paper-key); }
.sw-glow { fill: var(--glow); }
.sw-glow-core { fill: var(--glow-core); }
.sw-mock-edge { fill: var(--mock-edge); }
.sw-clear { fill: var(--clear); }
.sw-veil55 { fill: var(--veil-55); }
.sw-veil64 { fill: var(--veil-64); }
.sw-veil78 { fill: var(--veil-78); }
.sw-label-back { fill: var(--label-back); }
.sw-label-line { fill: var(--label-line); }
.sw-soft { fill: var(--line-soft); }
.sw-wide { fill: var(--shadow-wide); }
.sw-near { fill: var(--shadow-near); }
.sample-display { font: var(--weight-normal) var(--size-h1)/1.18 var(--font-display); }

@media (max-width: 1180px) {
  .hero { height: auto; padding-bottom: 56px; }
  .mock { position: relative; left: auto; bottom: auto; margin: 48px auto 0; }
  .dl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1181px) and (max-height: 860px) {
  .mock { bottom: 36px; }
}
@media (max-width: 768px) {
  .hero__copy { padding-top: 64px; }
  .hero h1, .sample-display { font-size: var(--size-h1-mobile); }
  .lede { font-size: var(--size-body); }
  .platforms { gap: 10px 20px; }
  .mock { width: calc(100% - 40px); max-width: 300px; }
  .dl { padding-bottom: 72px; }
  .dl__grid { grid-template-columns: 1fr; }
  .tab-detail { grid-template-columns: minmax(0, 1fr); }
  .worksteps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .worksteps .tablist { display: contents; }
  .worksteps .tablist::before { content: none; }
  .worksteps [role="tab"] { width: 100%; text-align: start; }
  .worksteps > [role="tabpanel"] { margin-top: 0; }
  .worksteps [role="tab"]:nth-child(1) { grid-row: 1; }
  .worksteps > [role="tabpanel"]:nth-child(2) { grid-row: 2; }
  .worksteps [role="tab"]:nth-child(2) { grid-row: 3; }
  .worksteps > [role="tabpanel"]:nth-child(3) { grid-row: 4; }
  .worksteps [role="tab"]:nth-child(3) { grid-row: 5; }
  .worksteps > [role="tabpanel"]:nth-child(4) { grid-row: 6; }
  .worksteps [role="tab"]:nth-child(4) { grid-row: 7; }
  .worksteps > [role="tabpanel"]:nth-child(5) { grid-row: 8; }
  .worksteps [role="tab"]:nth-child(5) { grid-row: 9; }
  .worksteps > [role="tabpanel"]:nth-child(6) { grid-row: 10; }
}