/* 展台与通用标签页；每组以 data-tabs 独立作用域。 */
.panel-kicker { margin: 0 0 24px; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--weight-regular); color: var(--muted); }
.tabs { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tab {
  position: relative;
  background: var(--clear);
  color: var(--muted);
  border: 0;
  padding: 6px 0 6px 20px;
  min-height: 44px;
  cursor: pointer;
  font-size: 22px;
  font-weight: var(--weight-regular);
  letter-spacing: -.01em;
  text-align: left;
}
.tab[aria-selected="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.tab[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: var(--r-round);
  background: var(--accent);
}
.tabs-horizontal { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }
.tabs-horizontal .tab { font-size: 18px; }
[role="tabpanel"] { min-width: 0; }
.frag { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px 28px 28px; min-height: 280px; }
.frag-tag { display: inline-block; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); margin-bottom: 18px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; gap: 4px; max-width: 100%; }
.seg span { padding: 8px 18px; border-radius: var(--r-pill); font-size: var(--text-sm); color: var(--muted); }
.seg .on { background: var(--ink); color: var(--paper); }
.frag-note { margin: 18px 0 0; font-size: var(--text-sm); color: var(--muted); }
.frag pre { margin: 0; padding: 0; background: var(--paper); color: var(--ink); font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1.8; white-space: pre; border-radius: 0; }
.frag-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; padding-block: 10px; border-top: 1px solid var(--line); font-size: var(--text-sm); }
.frag-row .mono { font-size: 13px; color: var(--muted); }
.feature-notes { padding-top: 56px; padding-bottom: 96px; }
.feature-symbol { display: block; margin-bottom: 24px; font-size: 24px; line-height: 1; }
.feature-notes h3 { margin: 0 0 18px; }
.feature-notes p { color: var(--muted); line-height: 1.85; }
.download-stage { background: var(--panel-lav); color: var(--ink); padding: 64px; border-radius: var(--r-xl); }
.download-stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 80px; }
.download-stage-grid > :nth-child(even) { margin-top: 52px; }
.platform-entry { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; padding-block: 24px; border-bottom: 1px solid var(--line-strong); text-decoration: none; }
.platform-entry span:last-child { flex-shrink: 0; }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 18px 24px;
  margin-block: 28px 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
}
.toc a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: var(--text-sm); text-decoration-color: var(--line-strong); }
.toc a:hover, .toc a[aria-current] { text-decoration-color: var(--accent); }
.toc-sticky { position: sticky; top: 16px; z-index: 5; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; list-style: none; padding: 24px 40px 24px 0; cursor: pointer; font-size: 18px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 24px; font-family: var(--font-mono); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { color: var(--muted); padding-bottom: 24px; max-width: 65em; }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { border-top: 1px solid var(--line); padding: 28px 0; }
.term-card h3 { margin: 0 0 8px; }
.term-card .term-key { display: block; margin-bottom: 16px; font-family: var(--font-mono); color: var(--muted); font-size: var(--text-sm); overflow-wrap: anywhere; }
.term-card p { margin-bottom: 16px; color: var(--muted); }
.badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.badge, .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--text-xs);
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  background: var(--paper);
  color: var(--muted);
}
.badge-first, .badge-recommended { background: var(--panel-lime); color: var(--ink); border-color: var(--clear); }
.badge-first::before { content: "●"; flex-shrink: 0; color: var(--ink); font-size: 8px; }
.badge-archived { background: var(--surface); color: var(--muted); }
.client-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px; background: var(--paper); color: var(--ink); }
.client-card + .client-card { margin-top: 24px; }
.client-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.client-head > div { min-width: 0; }
.client-logo { width: 56px; height: 56px; flex-shrink: 0; }
.client-title { margin: 0 0 10px; font-size: 24px; }
.client-card p { color: var(--muted); }
.client-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--text-sm); margin-block: 20px; color: var(--muted); }
[data-rev]:empty { display: none; }
.client-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.article-card { display: flex; flex-direction: column; min-width: 0; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--line); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-family: var(--font-mono); font-size: var(--text-xs); margin-bottom: 20px; }
.article-card h3 { font-size: 24px; margin: 0 0 18px; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.article-card p { color: var(--muted); margin-bottom: 24px; }
.article-card > .text-link { margin-top: auto; align-self: flex-start; }
.callout { margin: 28px 0; padding: 24px 28px; border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: var(--r-md); background: var(--panel-lime); color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 8px; font-weight: var(--weight-medium); }
.callout-note { background: var(--panel-lav); color: var(--ink); }
.callout-warning { background: var(--paper); color: var(--ink); border-left-color: var(--warn); }
.callout-error { background: var(--paper); color: var(--ink); border-left-color: var(--error); }
.table-wrap { overflow-x: auto; max-width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--text-sm); }
.data-table th, .data-table td, .prose table th, .prose table td {
  min-width: 7em;
  padding: 16px 20px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose table th { background: var(--surface); color: var(--ink); font-weight: var(--weight-medium); }
.data-table td, .prose table td { background: var(--paper); color: var(--ink); }
.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;
  border-collapse: collapse;
}
.article-body table th, .article-body table td { min-width: 7em; padding: 16px 20px; border-bottom: 1px solid var(--line); overflow-wrap: normal; word-break: normal; }
.article-body table th { background: var(--surface); color: var(--ink); }
.data-table code, .prose table code, .article-body table code { overflow-wrap: anywhere; white-space: normal; }
.article-download { margin-top: 64px; padding: 32px; border-radius: var(--r-card); background: var(--panel-lav); color: var(--ink); }
.article-download h2 { margin: 0 0 16px; font-size: 26px; }
.article-download p { color: var(--muted); }
.dl-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: calc(100% - 40px);
  min-height: 56px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: var(--text-sm);
}
.dl-fab svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; }
.dl-fab:hover { border-color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.has-dl-fab .site-footer { padding-bottom: 100px; }

/* 已确认首屏：平面错落，不旋转、不投影、不运动。 */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  position: relative;
  min-height: max(660px, calc(100vh - var(--nav-h) - var(--peek)));
  min-height: max(660px, calc(100svh - var(--nav-h) - var(--peek)));
  display: grid;
  align-content: center;
}
.hero-copy { position: relative; z-index: 2; width: 480px; max-width: 100%; padding: 40px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; }
.chips li { font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 12px; max-width: 100%; overflow-wrap: anywhere; }
.hero-title { margin: 0 0 22px; font-family: var(--font-display); font-weight: var(--weight-regular); font-size: clamp(30px, 3.3vw, 48px); line-height: 1.14; letter-spacing: -.025em; color: var(--ink); }
.hero-title .line { display: block; }
.hero-title mark { background: var(--lime); color: var(--ink); padding: 0 .14em; margin: 0 .02em; border-radius: var(--r-highlight); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { margin: 0 0 34px; font-size: var(--text-lede); line-height: 1.68; color: var(--muted); max-width: 30em; }
.lede strong { color: var(--ink); font-weight: var(--weight-medium); }
.platforms { border-top: 1px solid var(--line); padding-top: 18px; }
.platforms-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.platforms ul { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin: 0; padding: 0; }
.platforms a { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); color: var(--ink); text-decoration: none; padding-bottom: 2px; background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size var(--motion-fast) var(--ease); }
.platforms a:hover { background-size: 100% 1px; }
.platforms svg { width: 16px; height: 16px; flex-shrink: 0; }
.stage { position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) + 520px); right: var(--gutter); }
.collage { position: absolute; left: 50%; top: max(28px, calc(50% - 368px)); width: 780px; height: 1220px; transform: translateX(-50%); transform-origin: 50% 0; }
.board { position: absolute; }
.board-blue { left: 28px; top: 64px; width: 296px; height: 1100px; background: var(--cobalt); color: var(--paper); border-radius: var(--r-board); z-index: 1; }
.board-blue::before { content: ""; position: absolute; left: 100px; top: 296px; width: 130px; height: 182px; background-image: radial-gradient(circle, var(--lime) 0 7.5px, var(--clear) 8px); background-size: 26px 26px; }
.board-mint { left: 0; top: 520px; width: 110px; height: 900px; background: var(--mint); color: var(--ink); border-radius: var(--r-mint); z-index: 2; }
.ui { position: absolute; border-radius: var(--r-card); overflow: hidden; }
.ui-status { height: 26px; display: flex; align-items: center; justify-content: flex-end; padding: 0 6px; }
.sb { width: 38px; height: 10px; display: block; fill: currentColor; }
.ui-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 6px; font-size: 15px; letter-spacing: -.01em; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: block; }
.ui-row { position: relative; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-radius: var(--r-sm); font-size: 13.5px; }
.row-ic { width: 26px; height: 26px; border-radius: var(--r-highlight); display: grid; place-items: center; flex-shrink: 0; }
.row-val { margin-left: auto; display: flex; align-items: center; gap: 4px; color: var(--muted); }
.row-val .ic { width: 14px; height: 14px; }
.is-picked { outline: 1.5px solid var(--pick); outline-offset: -1px; }
.is-picked::before, .is-picked::after { content: ""; position: absolute; width: 7px; height: 7px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--pick); }
.is-picked::before { left: -3px; top: -3px; }
.is-picked::after { right: -3px; bottom: -3px; }
.pick-blue { --pick: var(--cobalt); }
.pick-red { --pick: var(--accent); }
.ui-home { left: 170px; top: 24px; width: 300px; height: 306px; background: var(--paper); border: 1px solid var(--line); padding: 0 12px; z-index: 3; color: var(--ink); }
.ui-home .row-ic { background: var(--surface); color: var(--ink); }
.home-tile { margin-top: 6px; height: 66px; border-radius: var(--r-md); background: var(--surface); color: var(--ink); display: flex; align-items: center; gap: 12px; padding: 0 14px; }
.tile-ic { width: 36px; height: 36px; border-radius: var(--r-round); background: var(--ink); color: var(--paper); display: grid; place-items: center; flex-shrink: 0; }
.tile-ic svg { width: 14px; height: 14px; fill: currentColor; display: block; }
.tile-main { display: block; font-size: 15px; line-height: 1.3; }
.tile-sub { display: block; font-size: var(--text-xs); line-height: 1.4; color: var(--muted); }
.tile-dot { margin-left: auto; width: 8px; height: 8px; border-radius: var(--r-round); background: var(--line-strong); flex-shrink: 0; }
.home-tile + .ui-row { margin-top: 8px; }
.ui-home .row-val.is-mode { color: var(--ink); }
.ui-prof { left: 412px; top: 220px; width: 286px; height: 268px; background: var(--lime); padding: 0 12px; z-index: 4; color: var(--ink); }
.ui-prof .ui-bar { height: 44px; }
.ui-prof .row-ic { background: var(--white-wash); color: var(--ink); }
.prof-sep { height: 1px; margin: 8px 10px; background: var(--ink-wash); }
.ui-prof .bar-end { margin-left: auto; }
.ui-net { left: 260px; top: 476px; width: 340px; height: 720px; background: var(--ink); color: var(--paper); padding: 0 16px; z-index: 5; }
.ui-net .ui-status { padding: 0 2px; }
.ui-net .ui-bar { height: 46px; padding: 0 2px; gap: 10px; }
.net-row { height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; border-top: 1px solid var(--line-ink); }
.net-val { color: var(--muted-ink); font-size: 12.5px; }
.sw { --sw-on: var(--ink); --sw-off: var(--switch-off); --sw-knob: var(--paper); --sw-knob-on: var(--paper); position: relative; width: 34px; height: 20px; border-radius: var(--r-pill); background: var(--sw-off); color: var(--ink); flex-shrink: 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: var(--r-round); background: var(--sw-knob); }
.sw.on { background: var(--sw-on); }
.sw.on::after { left: 17px; background: var(--sw-knob-on); }
.ui-net .sw { --sw-on: var(--mint); --sw-off: var(--switch-dark-off); --sw-knob: var(--paper); --sw-knob-on: var(--ink); }
.cursor { position: absolute; z-index: 7; width: 0; height: 0; }
.cursor svg { position: absolute; left: -2px; top: -2px; width: 22px; height: 24px; display: block; }
.cursor path { fill: var(--c); stroke: var(--paper); stroke-width: 1.5; stroke-linejoin: round; }
.cursor-tag { position: absolute; left: 18px; top: 10px; white-space: nowrap; background: var(--c); color: var(--paper); font-size: 13px; line-height: 1; padding: 7px 11px; border-radius: var(--r-pill); }
.cursor-blue { --c: var(--cobalt); left: 462px; top: 176px; }
.cursor-red { --c: var(--accent); left: 684px; top: 384px; }
.showcase { padding-bottom: 120px; }

/* 预览家具也复用令牌，不给正式页面引入独立皮肤。 */
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.swatch { margin: 0; min-width: 0; }
.swatch-color { height: 96px; border: 1px solid var(--line); border-radius: var(--r-md); }
.swatch figcaption { margin-top: 10px; font-family: var(--font-mono); font-size: var(--text-xs); overflow-wrap: anywhere; }
.swatch-bg { background: var(--bg); color: var(--ink); }
.swatch-paper { background: var(--paper); color: var(--ink); }
.swatch-panel-lime { background: var(--panel-lime); color: var(--ink); }
.swatch-panel-lav { background: var(--panel-lav); color: var(--ink); }
.swatch-line { background: var(--line); color: var(--ink); }
.swatch-line-strong { background: var(--line-strong); color: var(--ink); }
.swatch-surface { background: var(--surface); color: var(--ink); }
.swatch-accent { background: var(--accent); color: var(--ink); }
.swatch-accent-dark { background: var(--accent-dark); color: var(--paper); }
.swatch-ink { background: var(--ink); color: var(--paper); }
.swatch-muted { background: var(--muted); color: var(--paper); }
.swatch-muted-ink { background: var(--muted-ink); color: var(--ink); }
.swatch-line-ink { background: var(--line-ink); color: var(--paper); }
.swatch-success { background: var(--success); color: var(--ink); }
.swatch-warn { background: var(--warn); color: var(--ink); }
.swatch-error { background: var(--error); color: var(--paper); }
.swatch-lime { background: var(--lime); color: var(--ink); }
.swatch-cobalt { background: var(--cobalt); color: var(--paper); }
.swatch-mint { background: var(--mint); color: var(--ink); }
.swatch-clear { background: var(--clear); color: var(--ink); }
.swatch-white-wash { background: var(--white-wash); color: var(--ink); }
.swatch-ink-wash { background: var(--ink-wash); color: var(--ink); }
.swatch-switch-off { background: var(--switch-off); color: var(--ink); }
.swatch-switch-dark-off { background: var(--switch-dark-off); color: var(--ink); }
.type-sample { margin-block: 24px; }
.type-display { font-family: var(--font-display); font-size: var(--h1-size); line-height: 1.14; font-weight: var(--weight-regular); }
.preview-states { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.preview-block { margin-top: 48px; }
.preview-static-tabs .tab { cursor: default; }

@media (max-width: 1320px) {
  .hero-copy { width: 440px; }
  .stage { left: calc(var(--gutter) + 470px); }
  .collage { transform: translateX(-50%) scale(.84); }
}
@media (max-width: 1100px) {
  .hero-copy { width: 400px; }
  .stage { left: calc(var(--gutter) + 420px); }
  .collage { transform: translateX(-50%) scale(.68); }
  .download-stage { padding: 48px 40px; }
}
@media (max-width: 860px) {
  .hero-inner { display: block; min-height: 0; padding-top: 36px; }
  .hero-copy { width: 100%; padding: 0; }
  .stage { position: relative; left: auto; right: auto; top: auto; bottom: auto; height: 440px; margin-top: 40px; }
  .collage { top: 0; transform: translateX(-50%) scale(.52); }
  .tab { font-size: 18px; }
  .download-stage { padding: 40px 24px; }
  .download-stage-grid { gap: 0 32px; }
  .swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .hero-title { font-size: clamp(24px, 5.8vw, 30px); letter-spacing: -.02em; }
}
@media (max-width: 640px) {
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .download-stage-grid { grid-template-columns: minmax(0, 1fr); }
  .download-stage-grid > :nth-child(even) { margin-top: 0; }
  .client-card { padding: 24px; }
  .client-head { flex-wrap: wrap; }
  .frag { padding: 24px 20px; }
  .seg span { padding-inline: 12px; }
  .chips { flex-direction: row; flex-wrap: wrap; }
  .platforms ul { gap: 10px 20px; }
  .article-download { padding: 24px; }
  .type-display { font-size: 30px; }
}