/* 已确认的首屏构图。装置保持静态，窗口、事实胶囊、分层柔影构成工艺层次。 */
.hero {
  min-height: calc(100vh - var(--head-h) - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 540px minmax(0, 0.8fr);
  gap: 32px;
  align-items: center;
  align-content: center;
}
.hero-copy { max-width: 440px; }
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-normal);
  font-size: clamp(32px, 3.35vw, 48px);
  line-height: 1.1;
  letter-spacing: var(--tracking-heading);
  color: var(--text);
}
.hero-title span { display: block; }
.hero-lede { margin: 22px 0 0; max-width: 26em; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.hero-lede strong { color: var(--text); font-weight: var(--weight-medium); }
.hero-meta { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); max-width: 420px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.platforms a { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.platforms a:hover { color: var(--text); }
.platforms svg { width: 15px; height: 15px; flex-shrink: 0; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.facts li {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
  background: var(--panel-2);
  padding: 7px 11px;
  border-radius: var(--r-pill);
}
.facts .facts-key { background: var(--bg); color: var(--muted); padding-left: 0; }
.device { position: relative; width: 540px; height: 540px; justify-self: center; }
.device-floor {
  position: absolute;
  left: 50%;
  top: calc(50% + 196px);
  width: 340px;
  height: 34px;
  margin-left: -170px;
  margin-top: -17px;
  border-radius: var(--r-round);
  background: var(--shade-floor);
  color: var(--text);
  filter: blur(22px);
}
.device-floor::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 540px;
  height: 70px;
  margin-left: -270px;
  margin-top: -35px;
  border-radius: var(--r-round);
  background: var(--shade-floor-wide);
  color: var(--text);
  filter: blur(26px);
}
.device-track { position: absolute; left: 50%; top: 50%; width: 380px; height: 380px; margin-left: -190px; margin-top: -190px; border-radius: var(--r-round); border: 1px dashed var(--border); }
.device-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--core-size);
  height: var(--core-size);
  margin-left: calc(var(--core-size) / -2);
  margin-top: calc(var(--core-size) / -2);
  color: var(--core-lo);
  filter: drop-shadow(0 22px 26px var(--shade-core-near)) drop-shadow(0 56px 56px var(--shade-core-far));
}
.device-core svg { display: block; width: 100%; height: 100%; }
.core-ring { fill: var(--core-hi); }
.core-wedge { fill: var(--core-lo); }
.orbit { position: absolute; left: 50%; top: 50%; width: calc(var(--orbit-r) * 2); height: calc(var(--orbit-r) * 2); margin-left: calc(var(--orbit-r) * -1); margin-top: calc(var(--orbit-r) * -1); border-radius: var(--r-round); border: 1px solid var(--line-orbit); }
.orbit-node { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.orbit-node--1 { transform: translateY(calc(var(--orbit-r) * -1)); }
.orbit-node--2 { transform: rotate(72deg) translateY(calc(var(--orbit-r) * -1)) rotate(-72deg); }
.orbit-node--3 { transform: rotate(144deg) translateY(calc(var(--orbit-r) * -1)) rotate(-144deg); }
.orbit-node--4 { transform: rotate(216deg) translateY(calc(var(--orbit-r) * -1)) rotate(-216deg); }
.orbit-node--5 { transform: rotate(288deg) translateY(calc(var(--orbit-r) * -1)) rotate(-288deg); }
.seg {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 12px 7px 10px;
  box-shadow: var(--shadow-chip);
}
.seg::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: var(--r-round); background: var(--accent); }
.clients { justify-self: end; width: 100%; max-width: 332px; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: clip; }
.chrome { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.chrome-dot { width: 9px; height: 9px; border-radius: var(--r-round); background: var(--dot); }
.chrome-title { margin-left: 10px; min-width: 0; font-family: var(--font-mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.clients-list { margin: 0; padding: 0; list-style: none; }
.clients-list li { padding: 18px 20px; border-bottom: 1px solid var(--border); }
.clients-list li:last-child { border-bottom: 0; }
.client-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.client-name { font-family: var(--font-mono); font-size: 12.5px; font-weight: var(--weight-medium); color: var(--text); }
.client-tag { font-family: var(--font-mono); font-size: 11px; line-height: 1.3; color: var(--muted); background: var(--panel-2); padding: 5px 8px; border-radius: var(--r-pill); }
.client-line { margin: 8px 0 0; font-size: 15px; line-height: 1.5; font-weight: var(--weight-normal); color: var(--text); }
.clients-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; background: var(--panel-2); color: var(--text); font-size: 13px; }
.clients-foot svg { width: 14px; height: 14px; }
.statusbar { display: flex; justify-content: center; padding-top: 4px; }
.statusbar-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; min-height: 48px; padding: 8px; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-pill); box-shadow: var(--shadow-chip); font-family: var(--font-mono); font-size: 12px; }
.statusbar-strip span { display: inline-flex; align-items: center; gap: 10px; padding: 4px 18px; border-left: 1px solid var(--border); }
.statusbar-strip span:first-child { border-left: 0; color: var(--muted); }
.statusbar-strip span:first-child::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--r-round); background: var(--accent); }
.statusbar-strip b { font-weight: var(--weight-normal); color: var(--muted); }
.dl-zone { padding-top: 140px; padding-bottom: 160px; }
.dl-zone-head { max-width: 560px; }
.dl-zone-head h2 { margin: 0; font-weight: var(--weight-normal); font-size: 32px; line-height: 1.2; letter-spacing: var(--tracking-heading); }
.dl-zone-head p { margin: 14px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.dl-grid > * { min-width: 0; }
.dl-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-chip); transition: transform var(--duration-fast) var(--ease); }
.dl-card:hover { transform: translateY(-2px); }
.dl-card-name { font-family: var(--font-mono); font-size: 14px; font-weight: var(--weight-medium); }
.dl-card-os { font-size: 13px; color: var(--muted); }
.dl-card-text { margin: 6px 0 0; font-size: 15px; line-height: 1.65; }
.dl-card-link { margin-top: 14px; font-size: 14px; font-weight: var(--weight-medium); }

.tabs { min-width: 0; }
[role="tablist"] { display: flex; align-items: center; gap: 8px; max-width: 100%; overflow-x: auto; padding: 6px 4px 12px; }
[role="tab"] { flex-shrink: 0; min-height: 44px; padding: 10px 20px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--panel); color: var(--muted); font-size: var(--size-small); }
[role="tab"][aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
[role="tabpanel"] { min-width: 0; margin-top: 24px; }
.feature-tabs { display: grid; grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1.5fr); gap: 64px; align-items: start; }
.feature-tabs [role="tablist"] { display: flex; flex-direction: column; align-items: stretch; gap: 16px; overflow: visible; padding: 0; }
.feature-tabs [role="tab"] { text-align: left; border: 0; border-left: 2px solid var(--border); border-radius: 0; padding: 12px 0 12px 24px; background: var(--bg); color: var(--muted); font-size: 25px; font-weight: var(--weight-normal); white-space: normal; }
.feature-tabs [role="tab"][aria-selected="true"] { border-left-color: var(--accent); background: var(--bg); color: var(--text); }
.feature-tabs [role="tabpanel"] { margin-top: 0; }
.config-window { min-width: 0; overflow: clip; }
.config-window .panel-body p { line-height: 1.9; color: var(--muted); }
.config-window pre { margin: 24px 0 0; }
.code-key { font-weight: var(--weight-strong); }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 24px; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.toc-title { font-size: var(--size-small); margin: 0 0 12px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; min-height: 44px; padding: 10px 8px; color: var(--muted); font-size: var(--size-small); }
.toc a:hover, .toc a[aria-current] { color: var(--text); }
.toc-inline { display: flex; gap: 8px; flex-wrap: wrap; position: static; max-height: none; }
.toc-inline a { padding-inline: 14px; }
.faq-item { background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-card); margin-bottom: 12px; }
.faq-item summary { position: relative; cursor: pointer; list-style: none; padding: 24px 56px 24px 24px; min-height: 64px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 24px; font-family: var(--font-mono); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 24px; color: var(--muted); line-height: 1.85; }
.faq-answer > :last-child { margin-bottom: 0; }
.term-card { scroll-margin-top: 32px; }
.term-card h3 { font-family: var(--font-mono); font-size: 20px; margin-bottom: 10px; }
.term-card p { color: var(--muted); margin-bottom: 16px; }
.term-category { display: block; color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.download-card { display: flex; flex-direction: column; gap: 20px; }
.download-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.download-card h3 { margin: 0; font-family: var(--font-mono); }
.download-card p { margin: 0; color: var(--muted); }
.download-card .button-row { margin-top: auto; }
.download-version { font-family: var(--font-mono); color: var(--muted); font-size: var(--size-small); overflow-wrap: anywhere; }
.badge, .tag { display: inline-flex; align-items: center; max-width: 100%; padding: 6px 10px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.badge-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.badge-recommended { background: var(--panel); color: var(--text); border-color: var(--border-strong); }
.badge-retired { background: var(--panel-2); color: var(--muted); text-decoration: line-through; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.article-card h3 { font-size: 22px; margin: 0; line-height: 1.5; }
.article-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-card p { color: var(--muted); margin: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.article-card .article-link { margin-top: auto; padding-top: 8px; font-size: var(--size-small); }
.callout { margin: 28px 0; padding: 24px 28px; border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: var(--r-card); background: var(--panel); color: var(--text); }
.callout-title { display: block; margin-bottom: 10px; font-weight: var(--weight-medium); }
.callout p:last-child { margin-bottom: 0; }
.table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-card); -webkit-overflow-scrolling: touch; }
.data-table { border-collapse: collapse; width: 100%; background: var(--panel); color: var(--text); font-size: var(--size-small); }
.data-table caption { text-align: left; padding: 16px; color: var(--muted); }
.data-table th, .data-table td, .prose th, .prose td, .article-body th, .article-body td {
  min-width: 7em;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose th, .article-body th { background: var(--panel-2); 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;
  border-collapse: collapse;
  margin-block: 28px;
  background: var(--panel);
  color: var(--text);
}
.article-download { margin-top: 48px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--panel); color: var(--text); }
.article-download-copy { min-width: 0; flex: 1 1 240px; }
.article-download h2 { font-size: 22px; margin: 0 0 10px; }
.article-download p { color: var(--muted); margin: 0; }
.dl-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: var(--z-fab);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: var(--weight-medium);
  box-shadow: var(--shadow-fab);
  transition: transform var(--duration-fast) var(--ease);
}
.dl-fab:hover { transform: translateY(-2px); }
.dl-fab svg { width: 16px; height: 16px; }

/* 预览页家具；所有色值仍来自 base.css 的令牌。 */
.sample-block { margin-top: 48px; }
.sample-block h3 { margin-bottom: 24px; }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.swatch { margin: 0; min-width: 0; }
.swatch-tone { height: 76px; border: 1px solid var(--border-strong); border-radius: var(--r-card); }
.swatch figcaption { font-family: var(--font-mono); font-size: 12px; padding-top: 10px; overflow-wrap: anywhere; }
.tone-bg { background: var(--bg); color: var(--text); }
.tone-panel { background: var(--panel); color: var(--text); }
.tone-panel-2 { background: var(--panel-2); color: var(--text); }
.tone-border { background: var(--border); color: var(--text); }
.tone-border-strong { background: var(--border-strong); color: var(--text); }
.tone-orbit { background: var(--line-orbit); color: var(--text); }
.tone-dot { background: var(--dot); color: var(--text); }
.tone-accent { background: var(--accent); color: var(--on-accent); }
.tone-black { background: var(--accent-dark); color: var(--on-accent); }
.tone-muted { background: var(--muted); color: var(--on-accent); }
.tone-faint { background: var(--faint); color: var(--text); }
.tone-hi { background: var(--core-hi); color: var(--on-accent); }
.tone-success { background: var(--success); color: var(--on-accent); }
.tone-warn { background: var(--warn); color: var(--on-accent); }
.tone-error { background: var(--error); color: var(--on-accent); }
.tone-shade { background: var(--shade-floor); color: var(--text); }
.tone-shade-wide { background: var(--shade-floor-wide); color: var(--text); }
.tone-shade-near { background: var(--shade-core-near); color: var(--text); }
.tone-shade-far { background: var(--shade-core-far); color: var(--text); }
.type-display { font-size: var(--size-h1); font-weight: var(--weight-normal); line-height: 1.1; margin: 0; }
.preview-footer { margin-top: 80px; }

@media (max-width: 1240px) {
  .hero { grid-template-columns: minmax(0, 1fr) 460px; padding-top: 40px; padding-bottom: 40px; }
  .device { transform: scale(0.85); }
  .clients { grid-column: 1 / -1; justify-self: start; max-width: 100%; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .device { width: 340px; height: 340px; transform: scale(0.63); transform-origin: center; margin: 24px auto 8px; justify-self: center; }
  .clients { max-width: 420px; margin-bottom: 24px; }
  .dl-grid { grid-template-columns: 1fr; }
  .feature-tabs { grid-template-columns: 1fr; gap: 24px; }
  .feature-tabs [role="tablist"] { flex-direction: row; overflow-x: auto; padding: 6px 4px 12px; gap: 8px; }
  .feature-tabs [role="tab"] { padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: var(--size-small); white-space: nowrap; }
  .feature-tabs [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
  .doc-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; max-height: none; }
}
@media (max-width: 768px) {
  .hero-title { font-size: clamp(24px, 5vw, 30px); }
  .hero-copy { max-width: 100%; }
  .hero-lede { font-size: 15px; }
  .dl-zone-head h2 { font-size: 24px; }
  .dl-zone { padding-top: 80px; padding-bottom: 80px; }
  .dl-fab { right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .device { width: 280px; height: 310px; transform: scale(0.56); margin-block: 8px; }
  .hero-meta { margin-top: 28px; }
  .platforms { gap: 10px 20px; }
  .facts { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .facts li { font-size: 10px; padding-inline: 8px; }
  .statusbar-strip { border-radius: var(--r-card); gap: 4px; }
  .statusbar-strip span { border-left: 0; padding-inline: 10px; }
  .callout { padding: 20px; }
  .article-download { padding: 24px; }
  .article-download .btn { width: 100%; }
  .dl-fab { right: 16px; font-size: 13px; }
}