/* 发布页首屏：静态同心曲面与跨界窗口。 */
.hero { position: relative; height: 838px; background: var(--bg); color: var(--text); overflow-x: clip; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 24px;
  width: 980px;
  height: 520px;
  margin-left: -490px;
  background: radial-gradient(closest-side, rgb(var(--accent-rgb) / .10), var(--clear));
  color: var(--text);
}
.hero-bg svg { position: absolute; top: 0; left: calc(50% - 1200px); width: 2400px; height: 838px; }
.arc { stroke: rgb(var(--white-rgb) / .07); stroke-width: 1; }
.arc-deep { fill: var(--bg-panel); }
.arc-mid { fill: var(--bg-panel-2); }
.arc-bright { fill: var(--arc-bright); }
.frag-sun { fill: var(--sun); }
.frag-ice { fill: var(--accent); }
.frag-blossom { fill: var(--blossom); }
.frag-blossom-soft { fill: var(--blossom); opacity: .55; }
.hero-copy { position: relative; z-index: 2; max-width: 960px; margin: 0 auto; padding: 42px 24px 0; text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  max-width: 100%;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgb(var(--white-rgb) / .16);
  background: rgb(var(--white-rgb) / .07);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.chips b { color: var(--text); font-family: var(--font-mono); font-weight: 600; font-size: 12px; }
.hero h1 {
  margin: 22px 0 0;
  color: var(--text);
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.16;
  letter-spacing: -.02em;
  font-weight: 800;
}
.hero h1 .kw { color: var(--accent); }
.lede { max-width: 660px; margin: 18px auto 0; font-size: 17px; line-height: 1.65; color: var(--text-muted); }
.lede strong { color: var(--text); font-weight: 700; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 20px 0 0; padding: 0; list-style: none; }
.platforms a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.7;
  text-decoration: none;
}
.platforms svg { width: 15px; height: 15px; color: var(--text); }
.platforms a:hover { color: var(--text); background: rgb(var(--white-rgb) / .08); }
.stage { position: absolute; z-index: 2; top: 0; left: calc(50% - 720px); width: 1440px; height: 0; pointer-events: none; }
.orb-pink { position: absolute; z-index: 1; left: 1068px; top: 438px; width: 140px; height: 140px; border-radius: var(--r-circle); background: var(--blossom); color: var(--ink); }
.win-wrap {
  position: absolute;
  z-index: 2;
  left: 540px;
  top: 512px;
  width: 600px;
  padding: 8px;
  border-radius: var(--r-plate);
  border: 1px solid rgb(var(--white-rgb) / .30);
  background: rgb(var(--white-rgb) / .16);
  color: var(--ink);
  box-shadow: var(--shadow-window);
  transform: rotate(-2deg);
}
.win { overflow: hidden; border-radius: var(--r-card); background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px rgb(var(--shadow-rgb) / .06); }
.win-bar { display: flex; align-items: center; height: 38px; padding: 0 16px 0 40px; background: var(--surface-soft); color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.win-title { font-size: 12.5px; font-weight: 600; color: var(--ink-muted); letter-spacing: .01em; }
.win-title b { color: var(--ink); font-weight: 700; }
.win-dots { display: flex; gap: 7px; margin-left: auto; }
.win-dots i { flex-shrink: 0; width: 10px; height: 10px; border-radius: var(--r-circle); background: var(--control-off); color: var(--ink); }
.seg-row { padding: 12px 18px 8px 40px; }
.seg { display: flex; gap: 4px; width: max-content; padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--line-soft); background: var(--surface-soft); color: var(--ink); }
.seg span { padding: 6px 14px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; color: var(--ink-muted); line-height: 16px; }
.seg .on { color: var(--ink); background: rgb(var(--accent-rgb) / .16); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .45); }
.rows { padding: 2px 22px 2px 40px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 34px; border-bottom: 1px solid var(--line-soft); font-size: 13px; font-weight: 500; }
.row:last-child { border-bottom: 0; }
.row em { font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-muted); margin-left: 4px; }
.field { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 96px; padding: 4px 10px; border: 1px solid var(--line-soft); border-radius: var(--r-input); background: var(--surface-soft); color: var(--ink); font-family: var(--font-mono); font-size: 12px; line-height: 1.4; }
.field svg { width: 10px; height: 10px; color: var(--ink-muted); }
.tg { position: relative; flex-shrink: 0; width: 32px; height: 18px; border-radius: var(--r-pill); background: var(--control-off); color: var(--ink); }
.tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: var(--r-circle); background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / .25); }
.tg.on { background: var(--accent); color: var(--ink); }
.tg.on::after { left: 16px; }
.win-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 22px 12px; border-top: 1px solid var(--line-soft); }
.wbtn { padding: 6px 18px; border: 1px solid var(--line-soft); border-radius: var(--r-input); color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 16px; }
.wbtn.primary { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--surface); }
.phone { position: absolute; z-index: 3; left: 372px; top: 528px; width: 216px; padding: 7px; border: 1px solid rgb(var(--white-rgb) / .16); border-radius: var(--r-phone); background: var(--ink); color: var(--surface); box-shadow: var(--shadow-phone); }
.phone-screen { position: relative; height: 346px; overflow: hidden; border-radius: var(--r-screen); background: var(--surface); color: var(--ink); }
.p-status { display: flex; justify-content: center; align-items: center; height: 22px; background: var(--accent-dark); color: var(--surface); }
.p-status i { width: 8px; height: 8px; border-radius: var(--r-circle); background: var(--ink); color: var(--surface); }
.p-bar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; background: var(--accent-dark); color: var(--surface); font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.p-bar svg { width: 18px; height: 18px; }
.p-label { padding: 12px 16px 6px; font-size: 11px; font-weight: 700; color: var(--ink-muted); letter-spacing: .04em; line-height: 1.7; }
.prow { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 48px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--line-soft); }
.prow strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.prow small { display: block; font-size: 10.5px; color: var(--ink-muted); line-height: 1.4; }
.prow > svg { width: 12px; height: 12px; color: var(--ink-muted); }
.p-chip { flex-shrink: 0; padding: 2px 8px; border-radius: var(--r-pill); background: rgb(var(--accent-rgb) / .16); color: var(--ink); font-size: 10.5px; font-weight: 700; }
.prow .tg { transform: scale(.88); }
.fab { position: absolute; right: 14px; bottom: 18px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-circle); background: var(--accent-dark); color: var(--surface); box-shadow: var(--shadow-fab); }
.fab svg { width: 16px; height: 16px; }
.home-bar { position: absolute; left: 50%; bottom: 7px; width: 64px; height: 4px; margin-left: -32px; border-radius: var(--r-pill); background: var(--control-off); color: var(--ink); }
.intro { position: relative; z-index: 1; margin-top: calc(var(--r-section) * -1); padding: 170px var(--gutter) 120px; border-radius: var(--r-section) var(--r-section) 0 0; background: var(--surface); color: var(--ink); text-align: center; }
.intro h2 { margin: 0; font-size: 32px; }
.intro p { max-width: 620px; margin: 16px auto 0; color: var(--ink-muted); font-size: 16.5px; line-height: 1.7; }

/* 可访问的发布条目与平台标签。 */
.tabs { min-width: 0; }
.tab-list, [role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border-radius: var(--r-plate); background: var(--surface-soft); color: var(--ink); }
[role="tab"] { position: relative; flex-shrink: 0; min-height: 44px; padding: 12px 20px; border: 0; border-radius: var(--r-pill); background: var(--clear); color: var(--ink-muted); font-weight: 700; text-align: left; }
[role="tab"][aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
[role="tab"]:hover { color: var(--ink); }
[role="tabpanel"] { min-width: 0; margin-top: 24px; }
.feature-plate { position: relative; display: grid; grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); gap: 28px; padding: 32px; border-radius: var(--r-plate); background: var(--surface-soft); color: var(--ink); overflow-x: clip; }
.feature-plate > * { min-width: 0; }
.feature-plate [role="tablist"] { flex-direction: column; align-self: start; padding: 0; gap: 8px; }
.feature-plate [role="tab"] { width: 100%; padding: 18px 24px; border-radius: var(--r-card); }
.feature-plate [role="tab"] small { display: block; margin-top: 4px; color: var(--ink-muted); font-weight: 400; font-family: var(--font-mono); font-size: 12px; }
.feature-plate [aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 4px; border-radius: var(--r-pill); background: var(--accent); color: var(--ink); }
.feature-plate [role="tabpanel"] { position: relative; margin-top: 0; }
.feature-window { position: relative; z-index: 1; border: 1px solid rgb(var(--white-rgb) / .8); border-radius: var(--r-card); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-window); }
.feature-window .win-bar { padding-left: 24px; border-radius: var(--r-card) var(--r-card) 0 0; }
.feature-body { padding: 28px; }
.feature-body p { color: var(--ink-muted); }
.feature-body pre { margin-bottom: 0; }
.feature-plate [role="tabpanel"]::before { content: ""; position: absolute; z-index: 2; top: -18px; right: -12px; width: 40px; height: 40px; background: var(--sun); color: var(--ink); clip-path: polygon(0 100%, 70% 0, 100% 100%); transform: rotate(16deg); pointer-events: none; }
.feature-plate [role="tabpanel"]::after { content: ""; position: absolute; bottom: -18px; left: 40px; width: 54px; height: 54px; border-radius: var(--r-circle); background: var(--blossom); color: var(--ink); pointer-events: none; }

/* 长页导航须直接放在覆盖全部章节的容器内。 */
.toc { position: sticky; top: 16px; z-index: 10; display: flex; gap: 8px; max-width: 100%; padding: 10px; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--line-soft); border-radius: var(--r-plate); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.toc a { display: block; flex-shrink: 0; min-height: 44px; padding: 10px 16px; border-radius: var(--r-pill); color: var(--ink-muted); text-decoration: none; white-space: nowrap; }
.toc a:hover, .toc a[aria-current="location"] { background: var(--surface-soft); color: var(--ink); }
.faq-item { margin-bottom: 12px; padding: 0 24px; border: 1px solid var(--line-soft); border-radius: var(--r-card); background: var(--surface); color: var(--ink); }
.faq-item summary { position: relative; padding: 22px 32px 22px 0; cursor: pointer; list-style: none; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 21px; color: var(--ink-muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 24px; color: var(--ink-muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { border-left: 4px solid var(--accent); }
.term-card dt { font-size: 22px; font-weight: 800; }
.term-card dd { margin: 14px 0 0; color: var(--ink-muted); }
.term-field { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.client-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.client-head h3 { margin: 0; }
.app-logo { width: 56px; height: 56px; flex-shrink: 0; }
.client-card .client-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.client-meta { color: var(--ink-muted); font-size: 14px; }
.badge, .tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-soft);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.badge-top { background: var(--accent); color: var(--ink); }
.badge-recommended { background: var(--bg-panel); color: var(--text); }
.badge-retired { background: var(--surface-soft); color: var(--ink-muted); border: 1px solid var(--line-soft); }
.status-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--success); color: var(--ink); }
.article-card { display: flex; flex-direction: column; gap: 18px; }
.article-card h3 { margin: 0; font-size: 21px; }
.article-card h3 a { color: var(--ink); text-decoration: none; }
.article-card h3 a:hover { text-decoration: underline; }
.article-card p { color: var(--ink-muted); }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--ink-muted); font-size: 13px; }
.article-card .article-link { margin-top: auto; font-weight: 700; }
.callout { margin: 28px 0; padding: 24px 28px; border-left: 4px solid var(--accent); border-radius: var(--r-card); background: var(--surface-soft); color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 8px; font-weight: 700; }
.table-scroll { overflow-x: auto; max-width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-soft); border-radius: var(--r-card); }
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); color: var(--ink); }
.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(--line-soft);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose table th, .article-body table th { background: var(--surface-soft); color: var(--ink); font-weight: 700; }
.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; background: var(--surface); color: var(--ink); }
.prose table code, .article-body table code, .data-table code { overflow-wrap: anywhere; }
.dl-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border: 1px solid rgb(var(--white-rgb) / .45);
  border-radius: var(--r-card);
  background: var(--accent);
  color: var(--ink);
  box-shadow: var(--shadow-fab);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.dl-fab svg { width: 22px; height: 22px; }
.dl-fab small { display: block; font-size: 12px; font-weight: 400; }
.article-download { margin-block: 48px; border: 1px solid var(--line-soft); border-radius: var(--r-plate); padding: 28px; background: var(--surface-soft); color: var(--ink); }
.article-download h2 { margin-top: 0; font-size: 24px; }
.article-download p { color: var(--ink-muted); }
.has-article-fab { padding-bottom: 100px; }

/* 设计预览专用展架，色值仍只取令牌。 */
.preview-section { padding-top: 72px; padding-bottom: 72px; }
.preview-section h2 { margin-top: 0; }
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { min-width: 0; padding: 10px; border: 1px solid var(--line-soft); border-radius: var(--r-card); background: var(--surface); color: var(--ink); }
.swatch-sample { display: block; height: 76px; margin-bottom: 10px; border: 1px solid var(--line-soft); border-radius: var(--r-btn); color: var(--ink); }
.swatch code { font-size: 12px; }
.sw-bg { background: var(--bg); }
.sw-panel { background: var(--bg-panel); }
.sw-panel2 { background: var(--bg-panel-2); }
.sw-arc { background: var(--arc-bright); }
.sw-border { background: var(--border); }
.sw-accent { background: var(--accent); }
.sw-accent-dark { background: var(--accent-dark); }
.sw-sun { background: var(--sun); }
.sw-blossom { background: var(--blossom); }
.sw-text { background: var(--text); }
.sw-muted { background: var(--text-muted); }
.sw-success { background: var(--success); }
.sw-warn { background: var(--warn); }
.sw-error { background: var(--error); }
.sw-surface { background: var(--surface); }
.sw-soft { background: var(--surface-soft); }
.sw-ink { background: var(--ink); }
.sw-ink-muted { background: var(--ink-muted); }
.sw-line { background: var(--line-soft); }
.sw-off { background: var(--control-off); }
.button-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.preview-dark { padding: 28px; border-radius: var(--r-plate); background: var(--bg); color: var(--text); }
.preview-type-display { font-size: clamp(34px, 3.4vw, 48px); font-weight: 800; line-height: 1.2; }
.preview-static-nav { margin-left: auto; }
@media (max-width: 1100px) {
  .nav a { padding-inline: 11px; font-size: 14px; }
}
@media (max-width: 960px) {
  .hero { height: auto; }
  .hero-bg svg { top: auto; bottom: 0; left: calc(100% - 1500px); }
  .hero-copy { padding: 26px 20px 0; }
  .lede { font-size: 15.5px; }
  .stage { position: relative; left: auto; width: auto; height: auto; max-width: 640px; margin: 40px auto -76px; padding: 0 16px 0 56px; }
  .orb-pink { display: none; }
  .win-wrap { position: relative; left: auto; top: auto; width: auto; }
  .phone { left: 4px; top: auto; bottom: -14px; transform: scale(.68); transform-origin: left bottom; }
  .intro { padding-top: 150px; }
  .feature-plate { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .feature-plate [role="tablist"] { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding: 4px; }
  .feature-plate [role="tab"] { width: auto; }
  .feature-plate [aria-selected="true"]::before { display: none; }
  .preview-static-nav { display: none; }
  .preview-header-tools { margin-left: auto; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: clamp(24px, 4.5vw, 30px); }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .win-wrap { transform: none; }
  .feature-plate { padding: 18px; gap: 20px; }
  .feature-body { padding: 20px; }
  .feature-window .win-bar { padding-left: 20px; }
  .dl-fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .seg-row { padding-left: 12px; padding-right: 8px; }
  .seg { gap: 0; max-width: 100%; }
  .seg span { padding: 6px 7px; font-size: 10px; }
  .rows { padding-left: 16px; padding-right: 12px; }
  .row { font-size: 11px; }
  .row em { display: none; }
  .field { min-width: 64px; font-size: 10px; padding-inline: 6px; }
  .intro h2 { font-size: 24px; }
  .win-bar { padding-left: 16px; }
  .win-title { font-size: 11px; }
  .win-dots { gap: 4px; }
  .win-dots i { width: 7px; height: 7px; }
}