/* 设置窗口为静态说明，不模拟可操作控件。 */
.stage {
  position: relative; margin: 0; min-width: 0;
  padding: 92px 76px 40px 40px; border-radius: var(--r-xl);
  background: var(--c-panel-2); color: var(--c-text);
}
.win {
  position: relative; z-index: 1; background: var(--c-panel); color: var(--c-text);
  border: 1px solid var(--c-border); border-radius: var(--r-lg);
  box-shadow: var(--sh-window); overflow: hidden;
}
.win__bar {
  position: relative; height: 38px; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--c-border); background: var(--c-panel); color: var(--c-muted);
}
.win__dots { position: absolute; left: 16px; top: 50%; display: flex; gap: 7px; transform: translateY(-50%); }
.win__dots i {
  width: 10px; height: 10px; flex-shrink: 0; border-radius: var(--r-circle);
  background: var(--c-chrome-dot); color: var(--c-text);
}
.win__title { font-size: 12.5px; color: var(--c-muted); letter-spacing: .01em; }
.win__body { display: grid; grid-template-columns: 136px minmax(0,1fr); }
.win__body > * { min-width: 0; }
.side { padding: 14px 10px; background: var(--c-panel-soft); color: var(--c-muted); border-right: 1px solid var(--c-border); }
.side__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.side__item {
  height: 32px; display: flex; align-items: center; padding: 0 12px;
  border-radius: var(--r-pill); font-size: 13px; color: var(--c-muted);
}
.side__item.is-current { background: var(--c-accent-soft); color: var(--c-accent-dark); font-weight: var(--weight-medium); }
.pane { padding: 16px 22px 10px; }
.pane__head { margin: 0 0 4px; font-family: var(--f-display); font-size: 16px; font-weight: var(--weight-regular); letter-spacing: -.01em; }
.pane__group { margin: 14px 0 2px; font-size: 11.5px; letter-spacing: .06em; color: var(--c-muted); }
.rows { margin: 0; padding: 0; list-style: none; }
.row {
  min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--c-border); font-size: 13px; color: var(--c-text);
}
.row > :first-child { min-width: 0; }
.row > :last-child { flex-shrink: 0; }
.rows .row:last-child { border-bottom: 0; }
.sw {
  position: relative; width: 34px; height: 20px; flex-shrink: 0;
  border-radius: var(--r-pill); background: var(--c-switch-off); color: var(--c-text);
}
.sw::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: var(--r-circle); background: var(--c-panel); color: var(--c-text); box-shadow: var(--sh-knob);
}
.sw.is-on { background: var(--c-pine); color: var(--c-on-accent); }
.sw.is-on::after { transform: translateX(14px); }
.field {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px;
  min-width: 76px; height: 26px; padding: 0 10px;
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  background: var(--c-panel); color: var(--c-text); font-family: var(--f-mono); font-size: 12px;
}
.field--select { font-family: var(--f-body); font-size: 12.5px; }
.field svg { width: 10px; height: 10px; color: var(--c-muted); }
.seg {
  display: inline-flex; padding: 2px; border-radius: var(--r-sm);
  background: var(--c-panel-2); color: var(--c-muted); border: 1px solid var(--c-border);
}
.seg span {
  height: 22px; display: inline-flex; align-items: center; padding: 0 11px;
  border-radius: var(--r-xs); font-size: 12px; color: var(--c-muted);
}
.seg .is-selected {
  background: var(--c-panel); color: var(--c-text); font-weight: var(--weight-medium); box-shadow: var(--sh-seg);
}
.yaml {
  position: absolute; z-index: 2; top: 30px; right: 28px; width: 252px;
  background: var(--c-panel); color: var(--c-text); border: 1px solid var(--c-border);
  border-radius: var(--r-float); box-shadow: var(--sh-float); overflow: hidden;
}
.yaml__head {
  display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 14px;
  border-bottom: 1px solid var(--c-border); font-family: var(--f-mono); font-size: 12px; color: var(--c-text);
}
.yaml__tag { font-size: 10.5px; letter-spacing: .08em; color: var(--c-muted); }
.yaml__code {
  margin: 0; padding: 12px 14px 14px; list-style: none; counter-reset: ln;
  font-family: var(--f-mono); font-size: 12px; line-height: 1.95; overflow-x: auto;
}
.yaml__code li { counter-increment: ln; display: flex; gap: 12px; white-space: nowrap; }
.yaml__code li::before { content: counter(ln); width: 10px; flex-shrink: 0; text-align: right; color: var(--c-muted); }
.yaml__k { color: var(--c-muted); }
.yaml__v { color: var(--c-text); }

.features { padding-bottom: 96px; }
.tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; }
.tab {
  min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 26px 26px 28px; text-align: left; border: 0; border-radius: var(--r-lg);
  background: var(--c-clear); color: var(--c-text); cursor: pointer;
  transition: background-color var(--motion-fast) ease;
}
.tab:hover { background: var(--c-panel-2); color: var(--c-text); }
.tab svg { width: 26px; height: 26px; color: var(--c-accent); }
.tab__name { font-family: var(--f-display); font-size: 18px; font-weight: var(--weight-regular); letter-spacing: -.01em; color: var(--c-text); }
.tab__desc { font-size: 14px; line-height: 1.6; color: var(--c-muted); }
.tab--cobalt svg { color: var(--c-cobalt); }
.tab--pine svg { color: var(--c-pine); }
.tab--grape svg { color: var(--c-grape); }
.tab[aria-selected="true"] { background: var(--c-accent); color: var(--c-on-accent); }
.tab[aria-selected="true"] svg, .tab[aria-selected="true"] .tab__name { color: var(--c-on-accent); }
.tab[aria-selected="true"] .tab__desc { color: var(--c-on-accent-muted); }
.tab-panel { margin-top: 20px; scroll-margin-top: calc(var(--nav-h) + 24px); min-width: 0; }
.feature-detail {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
  gap: 64px; align-items: center; padding: 56px;
  background: var(--c-panel-2); color: var(--c-text); border-radius: var(--r-xl);
}
.feature-detail > * { min-width: 0; }
.chapter-label { margin: 0 0 20px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.feature-detail h2 { margin: 0 0 28px; font-size: clamp(28px,3vw,40px); }
.feature-points { margin: 0; padding: 0; list-style: none; }
.feature-points li { position: relative; padding-left: 24px; margin-top: 16px; }
.feature-points li::before {
  content: ""; position: absolute; top: .6em; left: 0; width: 8px; height: 8px;
  border-radius: var(--r-circle); background: var(--c-accent); color: var(--c-accent);
}
.feature-points li:nth-child(2)::before { border-radius: 0; background: var(--c-cobalt); color: var(--c-cobalt); }
.feature-points li:nth-child(3)::before { background: var(--c-pine); color: var(--c-pine); }
.feature-points li:nth-child(4)::before { border-radius: 0; background: var(--c-grape); color: var(--c-grape); }
.detail-mock {
  padding: 24px; border: 1px solid var(--c-border); border-radius: var(--r-lg);
  background: var(--c-panel); color: var(--c-text); box-shadow: var(--sh-window);
}
.tabs--compact { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs--compact .tab {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px; border-radius: var(--r-pill); font-size: 14px;
}
.toc {
  position: sticky; top: calc(var(--nav-h) + 12px); z-index: 10;
  display: flex; align-items: center; gap: 8px; overflow-x: auto; max-width: 100%;
  padding: 10px; border: 1px solid var(--c-border); border-radius: var(--r-float);
  background: var(--c-panel); color: var(--c-text); overscroll-behavior-x: contain;
}
.toc a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 16px; flex-shrink: 0;
  border-radius: var(--r-pill); color: var(--c-muted); font-size: 14px; white-space: nowrap;
}
.toc a:hover, .toc a[aria-current="location"] { background: var(--c-accent-soft); color: var(--c-accent-dark); }
.faq-item {
  border: 1px solid var(--c-border); border-radius: var(--r-lg);
  background: var(--c-panel); color: var(--c-text); margin-bottom: 12px;
}
.faq-item summary {
  position: relative; list-style: none; cursor: pointer; padding: 24px 58px 24px 24px;
  font-size: 17px; line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 24px; color: var(--c-muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-item__answer { padding: 0 24px 24px; color: var(--c-muted); }
.faq-item__answer p:last-child { margin-bottom: 0; }
.term-card { border-top: 3px solid var(--c-cobalt); }
.term-card__key { display: block; margin-bottom: 12px; font-family: var(--f-mono); font-size: 12px; color: var(--c-muted); }
.term-card h3 { margin-bottom: 16px; }
.term-card p { color: var(--c-muted); }
.client-card { position: relative; }
.client-card--first { border-color: var(--c-accent); }
.client-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.client-card__head > div { min-width: 0; }
.client-card__logo { width: 56px; height: 56px; flex-shrink: 0; }
.client-card h3 { margin: 0 0 8px; }
.client-card__meta { font-size: 13px; color: var(--c-muted); }
.client-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
[data-version]:empty { display: none; }
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge, .tag {
  display: inline-flex; align-items: center; justify-content: center;
  max-width: 100%; padding: 4px 10px; border: 1px solid var(--c-border);
  border-radius: var(--r-pill); font-size: 12px; line-height: 1.5;
  white-space: normal; overflow-wrap: anywhere;
  background: var(--c-panel-2); color: var(--c-muted);
}
.badge--first { background: var(--c-accent-soft); color: var(--c-accent-dark); border-color: var(--c-accent-soft); }
.badge--recommended { background: var(--c-panel); color: var(--c-pine); border-color: var(--c-pine); }
.badge--archived { background: var(--c-panel); color: var(--c-muted); border-style: dashed; }
.badge--warning { background: var(--c-panel); color: var(--c-warn); border-color: var(--c-warn); }
.badge--error { background: var(--c-panel); color: var(--c-error); border-color: var(--c-error); }
.post-card { display: flex; flex-direction: column; align-items: flex-start; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; color: var(--c-muted); font-size: 12px; }
.post-card h3 { font-size: 22px; line-height: 1.45; margin: 0 0 16px; }
.post-card h3 a:hover { color: var(--c-accent-dark); }
.post-card p { color: var(--c-muted); }
.post-card__more { margin-top: auto; padding-top: 12px; font-size: 14px; }
.callout {
  margin: 28px 0; padding: 22px 24px; border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-cobalt); border-radius: var(--r-md);
  background: var(--c-panel); color: var(--c-text);
}
.callout p:last-child { margin-bottom: 0; }
.callout__title { font-weight: var(--weight-medium); margin-bottom: 8px; }
.callout--warning { border-left-color: var(--c-warn); }
.callout--success { border-left-color: var(--c-pine); }
.table-wrap { overflow-x: auto; max-width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.data-table th, .data-table td, .prose table th, .prose table td, .document-body table th, .document-body table td {
  min-width: 7em; padding: 16px 20px; vertical-align: top;
  border-bottom: 1px solid var(--c-border);
  overflow-wrap: normal; word-break: normal;
}
.data-table th, .prose table th, .document-body table th {
  background: var(--c-panel-2); color: var(--c-text); font-weight: var(--weight-medium);
}
.data-table td, .prose table td, .document-body table td { background: var(--c-panel); color: var(--c-text); }
.prose table, .document-body table {
  display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
  max-width: 100%; min-width: 0; border-collapse: collapse;
}
.prose table code, .document-body table code, .data-table code { overflow-wrap: anywhere; }
.dl-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 25;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; max-width: calc(100% - 40px); padding: 12px 20px;
  border: 1px solid var(--c-border); border-radius: var(--r-float);
  background: var(--c-panel); color: var(--c-text); box-shadow: var(--sh-float);
}
.dl-fab svg { width: 22px; height: 22px; color: var(--c-accent); flex-shrink: 0; }
.dl-fab__copy { display: block; font-size: 14px; font-weight: var(--weight-medium); }
.dl-fab__note { display: block; font-size: 12px; color: var(--c-muted); }
.dl-fab:hover { border-color: var(--c-accent); }
.article-download {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  margin-top: 48px; padding: 28px; border: 1px solid var(--c-border); border-radius: var(--r-lg);
  background: var(--c-panel-2); color: var(--c-text);
}
.article-download__copy { flex: 1 1 260px; min-width: 0; }
.article-download h2 { margin: 0 0 12px; font-size: 24px; }
.article-download p { margin: 0; color: var(--c-muted); }

/* 预览页的色板也使用正式令牌，不写行内样式。 */
.palette-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.swatch { min-width: 0; padding: 12px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-panel); color: var(--c-text); }
.swatch__paint { display: block; height: 64px; margin-bottom: 10px; border: 1px solid var(--c-border); border-radius: var(--r-sm); }
.swatch code { font-size: 12px; }
.paint-bg { background: var(--c-bg); color: var(--c-text); }
.paint-panel { background: var(--c-panel); color: var(--c-text); }
.paint-panel-2 { background: var(--c-panel-2); color: var(--c-text); }
.paint-soft { background: var(--c-panel-soft); color: var(--c-text); }
.paint-border { background: var(--c-border); color: var(--c-text); }
.paint-border-strong { background: var(--c-border-strong); color: var(--c-text); }
.paint-accent { background: var(--c-accent); color: var(--c-on-accent); }
.paint-accent-dark { background: var(--c-accent-dark); color: var(--c-on-accent); }
.paint-accent-soft { background: var(--c-accent-soft); color: var(--c-accent-dark); }
.paint-text { background: var(--c-text); color: var(--c-panel); }
.paint-muted { background: var(--c-muted); color: var(--c-panel); }
.paint-faint { background: var(--c-faint); color: var(--c-text); }
.paint-cobalt { background: var(--c-cobalt); color: var(--c-on-accent); }
.paint-pine { background: var(--c-pine); color: var(--c-on-accent); }
.paint-grape { background: var(--c-grape); color: var(--c-on-accent); }
.paint-warn { background: var(--c-warn); color: var(--c-text); }
.paint-error { background: var(--c-error); color: var(--c-on-accent); }
.paint-switch { background: var(--c-switch-off); color: var(--c-text); }
.paint-dot { background: var(--c-chrome-dot); color: var(--c-text); }
.paint-on { background: var(--c-on-accent); color: var(--c-text); }
.paint-on-muted { background: var(--c-on-accent-muted); color: var(--c-text); }
.paint-halo { background: var(--c-cobalt-halo); color: var(--c-text); }
.paint-veil { background: var(--c-veil); color: var(--c-text); }
.paint-clear { background: var(--c-clear); color: var(--c-text); }
.specimen-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.type-display { font-family: var(--f-display); font-weight: var(--weight-regular); font-size: clamp(34px,3.4vw,48px); line-height: 1.16; margin-bottom: 24px; }

@media (max-width: 1180px) {
  .stage { padding: 88px 56px 32px 28px; }
  .win__body { grid-template-columns: 116px minmax(0,1fr); }
}
@media (max-width: 1024px) {
  .tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .feature-detail { gap: 32px; padding: 36px; }
}
@media (max-width: 768px) {
  .feature-detail { grid-template-columns: 1fr; }
  .palette-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .stage { padding: 20px; border-radius: var(--r-lg); }
  .yaml { position: relative; top: auto; right: auto; width: auto; margin-top: 16px; }
  .side { display: none; }
  .win__body { grid-template-columns: 1fr; }
  .pane { padding: 14px 16px 8px; }
  .row { gap: 8px; }
  .seg span { padding-inline: 7px; }
  .tabs {
    display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none;
    padding-block: 4px; overscroll-behavior-x: contain;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab {
    flex: 0 0 auto; flex-direction: row; align-items: center; justify-content: center;
    padding: 10px 16px; border-radius: var(--r-pill); border: 1px solid var(--c-border);
    background: var(--c-panel); color: var(--c-text);
  }
  .tab svg { width: 18px; height: 18px; }
  .tab__name { font-size: 14px; white-space: nowrap; }
  .tab__desc { display: none; }
  .tabs--compact { flex-wrap: nowrap; }
  .feature-detail { padding: 24px; gap: 24px; border-radius: var(--r-lg); }
  .detail-mock { padding: 18px; }
  .features { padding-bottom: 56px; }
  .palette-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dl-fab { right: 20px; bottom: 20px; }
  .article-download { padding: 24px; }
}