/* 首屏以确认稿为准：居中排版、接入看板、下缘设置卡，全静态。 */
.hero { padding: 48px 24px 40px; text-align: center; overflow-x: clip; }
.hero-copy { position: relative; z-index: 2; }
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--size-h1);
  line-height: var(--leading-title);
  letter-spacing: var(--tracking-title);
  color: var(--text);
}
.hero-title .line { display: block; }
.hero-title em { font-style: normal; color: var(--violet); }
.hero-lede { max-width: 820px; margin: 18px auto 0; font-size: var(--size-lede); line-height: 1.6; color: var(--text-muted); }
.hero-lede strong { color: var(--text); font-weight: var(--weight-semibold); }
.hero-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.platforms { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 3px 14px 3px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.platform:hover { border-color: var(--accent); color: var(--accent); }
.platform svg { width: 14px; height: 14px; color: var(--text); }
.device { position: relative; max-width: 1120px; margin: 40px auto 0; padding-bottom: 50px; text-align: left; }
.device::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 10%;
  right: 10%;
  top: -230px;
  height: 290px;
  background-image: linear-gradient(to right, var(--grid-line) 1px, var(--clear) 1px), linear-gradient(to bottom, var(--grid-line) 1px, var(--clear) 1px);
  background-size: 60px 60px;
  background-position: center bottom;
  -webkit-mask-image: radial-gradient(58% 85% at 50% 100%, var(--mask-solid) 30%, var(--clear) 78%);
  mask-image: radial-gradient(58% 85% at 50% 100%, var(--mask-solid) 30%, var(--clear) 78%);
  pointer-events: none;
}
.board { position: relative; z-index: 1; height: 330px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-board); box-shadow: var(--shadow-board); overflow: hidden; }
.chrome { display: flex; align-items: center; gap: 18px; height: 46px; padding: 0 22px; border-bottom: 1px solid var(--border); }
.dots { display: flex; gap: 7px; flex-shrink: 0; }
.dots i { display: block; width: 11px; height: 11px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--dot); color: var(--text); }
.chrome-title { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); letter-spacing: 0.01em; }
.columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 18px 22px 0; }
.col-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border: 1px solid var(--border-strong); border-radius: var(--r-tag); background: var(--bg); color: var(--text-muted); font-size: var(--size-xs); font-weight: var(--weight-medium); }
.steps { display: flex; flex-direction: column; gap: 9px; margin: 12px 0 0; padding: 0; list-style: none; }
.step { padding: 11px 13px 10px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-step); box-shadow: var(--shadow-step); }
.step-title { display: block; font-size: 13.5px; font-weight: var(--weight-medium); line-height: 1.4; }
.step-meta { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; line-height: 1.3; color: var(--text-muted); }
.step-meta svg { flex: none; width: 14px; height: 14px; }
.ic-check { color: var(--accent); fill: var(--accent-tint); }
.ic-bolt { color: var(--violet); fill: var(--violet-tint); }
.floats { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.float { position: absolute; width: 27%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-card); }
.float-name { display: block; font-size: var(--size-nav); font-weight: var(--weight-semibold); line-height: 1.4; }
.float-hint { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }
.float-1 { left: -2%; top: 268px; transform: rotate(-2deg); box-shadow: var(--shadow-mid); z-index: 3; }
.float-2 { left: 23%; top: 288px; transform: rotate(1.5deg); box-shadow: var(--shadow-near); z-index: 5; }
.float-3 { left: 48%; top: 262px; transform: rotate(-1deg); box-shadow: var(--shadow-far); z-index: 2; }
.float-4 { left: 72%; top: 294px; transform: rotate(2deg); box-shadow: var(--shadow-mid); z-index: 4; }
.ctl-switch { position: relative; flex: none; width: 40px; height: 22px; border-radius: var(--r-pill); background: var(--bg-panel-2); color: var(--text); border: 1px solid var(--border-strong); }
.ctl-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: var(--r-circle); background: var(--bg); color: var(--text); box-shadow: var(--shadow-step); }
.ctl-select { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 3px 10px 3px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-ctl); font-size: 13px; font-weight: var(--weight-medium); color: var(--text); background: var(--bg); }
.ctl-select svg { width: 12px; height: 12px; color: var(--text-muted); }
.ctl-input { flex: none; display: inline-flex; align-items: center; justify-content: flex-end; width: 82px; height: 32px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--r-ctl); font-family: var(--font-mono); font-size: 13.5px; font-weight: var(--weight-medium); color: var(--text); background: var(--bg); }
.ctl-check { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: var(--r-check); background: var(--accent); color: var(--on-dark); }
.ctl-check svg { width: 12px; height: 12px; }
.note { position: absolute; z-index: 6; left: -136px; top: -14px; width: 180px; pointer-events: none; }
.note-text { display: inline-block; margin-left: 2px; font-size: 13px; font-weight: var(--weight-medium); color: var(--text); transform: rotate(-4deg); transform-origin: left bottom; }
.note svg { display: block; width: 180px; height: 96px; margin-top: 2px; }
.note .stroke, .annotation { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.dl-section { max-width: 1120px; margin-inline: auto; padding: 72px 24px 140px; }
.dl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 40px 0 0; padding: 0; list-style: none; }
.dl-card { display: block; height: 100%; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-tile); background: var(--bg); color: var(--text); text-decoration: none; transition: box-shadow 200ms, transform 200ms; }
.dl-card:hover { box-shadow: var(--shadow-mid); transform: translateY(-2px); color: var(--text); }
.dl-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-icon); background: var(--bg-panel); color: var(--text); }
.dl-ico svg { width: 22px; height: 22px; }
.dl-card h3 { margin: 18px 0 0; font-size: 18px; font-weight: var(--weight-bold); letter-spacing: var(--tracking-brand); }
.dl-client { margin: 4px 0 0; font-family: var(--font-mono); font-size: 13px; color: var(--text); }
.dl-note { margin: 8px 0 0; font-size: var(--size-sm); color: var(--text-muted); }
.dl-go { display: inline-block; margin-top: 16px; font-size: var(--size-sm); font-weight: var(--weight-semibold); color: var(--accent); }

.tabs { min-width: 0; }
.tab-scroll { max-width: 100%; overflow-x: auto; padding: 4px; }
.tab-list, [role="tablist"].tab-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: max-content;
  max-width: none;
  margin-inline: auto;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--bg-panel-2);
  color: var(--text);
}
.tab-list [role="tab"] {
  position: relative;
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--clear);
  color: var(--text-muted);
  font-size: var(--size-sm);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}
.tab-list [role="tab"][aria-selected="true"] { background: var(--text); color: var(--on-dark); }
.tab-list [role="tab"][aria-selected="true"]::after { content: ""; display: block; position: absolute; bottom: 5px; left: calc(50% - 8px); width: 16px; height: 2px; background: var(--violet); color: var(--on-dark); border-radius: var(--r-pill); }
.tab-panel { margin-top: 48px; min-width: 0; }
.feature-section { background: var(--bg-panel); color: var(--text); border-radius: var(--r-panel); overflow-x: clip; }
.feature-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-detail p { color: var(--text-muted); margin-top: 24px; }
.setting-label { font-family: var(--font-mono); font-size: var(--size-xs); letter-spacing: var(--tracking-label); text-transform: lowercase; color: var(--text-muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip, .badge { display: inline-block; max-width: 100%; padding: 5px 12px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: var(--size-xs); font-weight: var(--weight-medium); line-height: 1.5; overflow-wrap: anywhere; background: var(--bg); color: var(--text-muted); }
.badge-featured { background: var(--accent); color: var(--on-dark); border-color: var(--accent); }
.badge-recommended { background: var(--accent-tint); color: var(--accent-dark); border-color: var(--border); }
.badge-retired { background: var(--bg-panel-2); color: var(--text-muted); border-color: var(--border-strong); }
.feature-art { position: relative; padding: 28px 18px 64px; }
.feature-backing { position: absolute; inset: 10px 0 35px; transform: rotate(3deg); border-radius: var(--r-card); background: var(--accent-tint); color: var(--text); }
.settings-card { position: relative; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-mid); }
.settings-card h3 { margin: 0 0 20px; font-size: var(--size-lede); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; border-top: 1px solid var(--border); font-size: var(--size-sm); }
.feature-caption { position: absolute; left: 20px; bottom: 0; font-size: var(--size-xs); }
.feature-caption svg { width: 100px; height: 44px; margin-right: 8px; }

.toc {
  position: sticky;
  top: 16px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 14px 18px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-far);
}
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--r-pill); color: var(--text-muted); text-decoration: none; font-size: var(--size-sm); }
.toc a:hover, .toc a[aria-current="location"] { background: var(--bg-panel); color: var(--accent); }
.toc.is-static { position: static; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { position: relative; padding: 24px 38px 24px 0; cursor: pointer; list-style: none; font-size: var(--size-lede); font-weight: var(--weight-semibold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 22px; font-size: var(--size-card-title); color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 24px; max-width: 75ch; color: var(--text-muted); }
.faq-answer > :last-child { margin-bottom: 0; }
.term-card { padding: 28px; border-left: 3px solid var(--accent); border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.term-card h3 { margin: 0 0 12px; font-size: var(--size-card-title); }
.term-card p { color: var(--text-muted); margin-bottom: 0; }
.term-en { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: var(--size-xs); font-weight: var(--weight-normal); color: var(--text-muted); }
.client-card { padding: 32px; border: 1px solid var(--border); border-radius: var(--r-tile); background: var(--bg); color: var(--text); box-shadow: var(--shadow-far); }
.client-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.client-head h3 { margin: 0; font-size: var(--size-h3); }
.client-card p { color: var(--text-muted); }
.client-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.client-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: var(--size-sm); color: var(--text-muted); }
.article-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-tile); background: var(--bg); color: var(--text); transition: box-shadow var(--duration-fast); }
.article-card:hover { box-shadow: var(--shadow-mid); }
.article-card h3 { font-size: var(--size-card-title); margin: 18px 0 12px; }
.article-card h3 a { color: var(--text); text-decoration: none; }
.article-card h3 a:hover { color: var(--accent); }
.article-card p { color: var(--text-muted); font-size: var(--size-sm); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: var(--size-xs); color: var(--text-muted); }
.article-card .text-link { margin-top: auto; font-size: var(--size-sm); }
.callout { margin: 28px 0; padding: 22px 24px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-card); background: var(--accent-tint); color: var(--text); }
.callout strong { display: block; margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout-warning { background: var(--bg-panel); color: var(--text); border-left-color: var(--warn); }
.callout-error { background: var(--bg-panel); color: var(--text); border-left-color: var(--error); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-card); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: var(--size-sm); }
.data-table th, .data-table td, .prose table th, .prose table td, .doc-content table th, .doc-content table td {
  min-width: 7em;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose table th, .doc-content table th { background: var(--bg-panel); color: var(--text); font-weight: var(--weight-semibold); }
.data-table td, .prose table td, .doc-content table td { background: var(--bg); color: var(--text); }
.data-table tr:last-child td { border-bottom: 0; }
.prose table, .doc-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  border-collapse: collapse;
}
.download-guide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding: 32px; border-radius: var(--r-panel); background: var(--bg-panel); color: var(--text); }
.download-guide h2 { font-size: var(--size-h3); margin: 0 0 8px; }
.download-guide p { margin: 0; color: var(--text-muted); }
.dl-fab {
  position: fixed;
  right: 24px;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: var(--z-fab);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px 10px 16px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--on-dark);
  font-size: var(--size-sm);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  box-shadow: var(--shadow-fab);
  transition: background-color var(--duration-fast);
}
.dl-fab svg { width: 16px; height: 16px; }
.dl-fab:hover { background: var(--accent-dark); color: var(--on-dark); }

/* 静态预览家具；颜色仍只从令牌获取。 */
.sample-stack { display: grid; gap: 28px; }
.sample-label { font-family: var(--font-mono); font-size: var(--size-xs); color: var(--text-muted); margin-bottom: 12px; }
.palette-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.swatch { border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: var(--bg); color: var(--text); }
.swatch-color { height: 72px; border-bottom: 1px solid var(--border); }
.swatch code { display: block; padding: 12px; font-size: var(--size-xs); }
.sw-bg { background: var(--bg); color: var(--text); }
.sw-panel { background: var(--bg-panel); color: var(--text); }
.sw-panel-2 { background: var(--bg-panel-2); color: var(--text); }
.sw-border { background: var(--border); color: var(--text); }
.sw-border-strong { background: var(--border-strong); color: var(--text); }
.sw-accent { background: var(--accent); color: var(--on-dark); }
.sw-accent-dark { background: var(--accent-dark); color: var(--on-dark); }
.sw-accent-tint { background: var(--accent-tint); color: var(--text); }
.sw-violet { background: var(--violet); color: var(--on-dark); }
.sw-violet-tint { background: var(--violet-tint); color: var(--text); }
.sw-text { background: var(--text); color: var(--on-dark); }
.sw-muted { background: var(--text-muted); color: var(--on-dark); }
.sw-faint { background: var(--text-faint); color: var(--text); }
.sw-white { background: var(--on-dark); color: var(--text); }
.sw-dot { background: var(--dot); color: var(--text); }
.sw-grid { background: var(--grid-line); color: var(--text); }
.sw-mask { background: var(--mask-solid); color: var(--on-dark); }
.sw-clear { background: var(--clear); color: var(--text); }
.sw-success { background: var(--success); color: var(--on-dark); }
.sw-warn { background: var(--warn); color: var(--text); }
.sw-error { background: var(--error); color: var(--on-dark); }

@media (max-width: 1279px) { .note { display: none; } }
@media (max-width: 1080px) {
  .device { margin-left: 8px; margin-right: 8px; }
  .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .columns .col:nth-child(n+3) { display: none; }
  .float { width: 46%; }
  .float-1 { left: 1%; }
  .float-2 { left: 51%; }
  .float-3, .float-4 { display: none; }
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-detail { gap: 32px; }
}
@media (max-width: 768px) {
  .hero { padding: 32px 20px; }
  .hero-title { font-size: var(--size-h1-mobile); }
  .hero-lede { font-size: var(--size-nav); }
  .hero-actions { gap: 10px; margin-top: 22px; }
  .platforms { gap: 8px; }
  .device { margin: 32px 0 0; padding-bottom: 0; }
  .board { height: 300px; border-radius: var(--r-board-mobile); }
  .columns { gap: 12px; padding: 16px 14px 0; }
  .step:nth-child(3), .step-meta { display: none; }
  .floats { position: relative; inset: auto; display: grid; gap: 12px; margin: -64px 10px 0; }
  .float { position: relative; left: auto; top: auto; width: auto; }
  .float-1 { transform: rotate(-1.5deg); }
  .float-2 { transform: rotate(1deg); }
  .feature-detail { grid-template-columns: minmax(0, 1fr); }
  .tab-list { margin-left: 0; }
  .dl-fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .palette-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .dl-section { padding-inline: var(--gutter); padding-top: 64px; padding-bottom: 64px; }
  .client-card, .term-card, .article-card { padding: 24px 20px; }
  .download-guide { padding: 24px 20px; }
  .float { transform: none; }
  .feature-art { padding-inline: 0; }
  .settings-card { padding: 22px 18px; }
  .tab-panel { margin-top: 32px; }
  .toc { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-card:hover { transform: none; }
}