/* 对象索引与通用平台切换。无脚本时保留所有正文。 */
.object-index { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.tab-list { display: flex; gap: 8px; min-width: 0; padding: 4px; }
.tab-list--vertical { flex-direction: column; }
.tab-button { display: inline-flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 48px; padding: 12px 18px; flex-shrink: 0; border: 1px solid var(--clear); border-radius: var(--r-pill); background: var(--clear); color: var(--text-muted); text-align: left; font-size: var(--fs-button); font-weight: var(--weight-medium); }
.tab-button:hover { background: var(--bg-panel-2); color: var(--text); }
.tab-button[aria-selected="true"] { border-color: var(--border); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); font-weight: var(--weight-semibold); }
.object-dot { width: 12px; height: 12px; border: 1px solid var(--edge-cream); border-radius: var(--r-dot); background: var(--tint-cream); flex-shrink: 0; }
.object-dot--mint { background: var(--tint-mint); border-color: var(--edge-mint); }
.object-dot--blue { background: var(--tint-blue); border-color: var(--edge-blue); }
.object-dot--lilac { background: var(--tint-lilac); border-color: var(--edge-lilac); }
.object-dot--neutral { background: var(--bg-panel-2); border-color: var(--border); }
.tab-panel { min-width: 0; }
.tab-panel + .tab-panel { margin-top: 24px; }
.tabs-ready .tab-panel + .tab-panel { margin-top: 0; }
.object-example { margin-top: 24px; padding: 24px; border-radius: var(--r-float); border: 1px solid var(--edge-cream); background: var(--tint-cream); color: var(--ink-cream); }
.object-example pre { margin: 0; padding: 0; border: 0; background: var(--clear); color: inherit; }
.object-example--mint { background: var(--tint-mint); color: var(--ink-mint); border-color: var(--edge-mint); }
.object-example--blue { background: var(--tint-blue); color: var(--ink-blue); border-color: var(--edge-blue); }
.object-example--lilac { background: var(--tint-lilac); color: var(--ink-lilac); border-color: var(--edge-lilac); }
.platform-tabs { overflow-x: auto; max-width: 100%; margin-bottom: 28px; }
.platform-tabs .tab-button { white-space: nowrap; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-float); background: var(--bg); color: var(--text); }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; color: var(--text-muted); border-radius: var(--r-pill); text-decoration: none; font-size: var(--fs-sm); }
.toc a:hover, .toc a[aria-current] { background: var(--accent-wash); color: var(--accent); }
.toc--sticky { position: sticky; top: 16px; z-index: 10; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r-float); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.faq-item + .faq-item { margin-top: 12px; }
.faq-item summary { position: relative; list-style: none; padding: 22px 56px 22px 24px; font-weight: var(--weight-semibold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 20px; font-size: var(--fs-lead); color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 24px; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { border-top: 4px solid var(--edge-blue); }
.term-card dt { font-family: var(--font-mono); font-size: var(--fs-lead); font-weight: var(--weight-bold); }
.term-card dd { margin: 12px 0 0; color: var(--text-muted); }
.term-category { display: block; margin-bottom: 14px; color: var(--accent); font-size: var(--fs-xs); }
.client-card { position: relative; }
.client-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.client-heading img { width: 56px; height: 56px; flex-shrink: 0; }
.client-heading h3 { margin: 0; }
.client-version { display: block; font: var(--fs-xs)/1.5 var(--font-mono); color: var(--text-muted); }
.client-card--primary { border-color: var(--accent-line); box-shadow: var(--shadow-float); }
.client-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.badge, .tag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text-muted); font-size: var(--fs-xs); font-weight: var(--weight-semibold); line-height: 1.5; overflow-wrap: anywhere; }
.badge--primary { background: var(--accent-wash); color: var(--accent-dark); border-color: var(--accent-line); }
.badge--recommended { background: var(--tint-mint); color: var(--ink-mint); border-color: var(--edge-mint); }
.badge--retired { background: var(--bg-panel-2); color: var(--text-muted); }
.tag--cream { background: var(--tint-cream); color: var(--ink-cream); border-color: var(--edge-cream); }
.tag--blue { background: var(--tint-blue); color: var(--ink-blue); border-color: var(--edge-blue); }
.tag--lilac { background: var(--tint-lilac); color: var(--ink-lilac); border-color: var(--edge-lilac); }
.article-card { display: flex; flex-direction: column; gap: 16px; }
.article-card h3 { margin: 0; font-size: var(--fs-lead); }
.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); margin: 0; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--fs-xs); color: var(--text-muted); }
.article-card .article-more { margin-top: auto; padding-top: 8px; font-size: var(--fs-sm); }
.callout { margin: 24px 0; padding: 22px 24px; border: 1px solid var(--edge-blue); border-left: 4px solid var(--accent); border-radius: var(--r-md); background: var(--tint-blue); color: var(--ink-blue); }
.callout p:last-child { margin-bottom: 0; }
.callout--warning { background: var(--tint-cream); color: var(--ink-cream); border-color: var(--edge-cream); border-left-color: var(--warn); }
.table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-md); }
.data-table { width: 100%; border-collapse: collapse; background: var(--bg); color: var(--text); font-size: var(--fs-sm); }
.data-table th, .data-table td, .prose table th, .prose table td, .article-body table th, .article-body table td {
  min-width: 7em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
.data-table th, .prose table th, .article-body table th { background: var(--bg-panel); color: var(--text); font-weight: var(--weight-semibold); }
.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(--bg);
  color: var(--text);
  font-size: var(--fs-sm);
}
.dl-fab { position: fixed; z-index: 25; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; max-width: calc(100% - var(--gutter) * 2); padding: 14px 22px; border: 1px solid var(--text); border-radius: var(--r-pill); background: var(--text); color: var(--bg); box-shadow: var(--shadow-float); text-decoration: none; }
.dl-fab svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl-fab b { display: block; font-size: var(--fs-sm); }
.dl-fab small { display: block; font-size: var(--fs-xs); }
.dl-fab:hover { background: var(--accent-dark); color: var(--bg); border-color: var(--accent-dark); }
.article-download { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-panel); color: var(--text); }
.article-download h2 { margin: 0 0 8px; font-size: var(--fs-h3); }
.article-download p { margin: 0; color: var(--text-muted); }
.article-download .btn { flex-shrink: 0; }

/* 已确认的静态配置对象工作台。 */
.hero { position: relative; overflow-x: clip; padding-top: 30px; padding-bottom: 28px; background: linear-gradient(to bottom, var(--bg) 0, var(--bg) calc(100% - 150px), var(--bg-panel) 100%); color: var(--text); }
.hero-core { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; }
.chips { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 5px 12px; border: 1px solid var(--edge-cream); border-radius: var(--r-pill); font-size: var(--fs-small); font-weight: var(--weight-semibold); line-height: 1; background: var(--tint-cream); color: var(--ink-cream); }
.chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chip--mint { background: var(--tint-mint); color: var(--ink-mint); border-color: var(--edge-mint); }
.chip--lilac { background: var(--tint-lilac); color: var(--ink-lilac); border-color: var(--edge-lilac); }
.hero-title { margin: 0; font-size: var(--fs-h1); line-height: 1.12; letter-spacing: -.02em; }
.hero-title .ln { display: block; }
.mark { position: relative; z-index: 0; display: inline-block; }
.mark::after { content: ""; position: absolute; z-index: -1; left: .05em; right: .05em; bottom: -.03em; height: 6px; border-radius: var(--r-pill); background: var(--accent); }
.lede { max-width: 540px; margin: 16px 0 0; font-size: var(--fs-body); line-height: 1.7; color: var(--text-muted); }
.lede strong { color: var(--text); font-weight: var(--weight-semibold); }
.cta { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.plats { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.plats-label { margin-right: 4px; font-size: var(--fs-small); color: var(--text-muted); }
.plat { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 4px 12px 4px 11px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text-muted); font-size: var(--fs-ui); font-weight: var(--weight-medium); text-decoration: none; }
.plat svg { width: 14px; height: 14px; }
.plat svg.tux { width: 13px; height: 15px; }
.plat:hover { color: var(--accent); border-color: var(--accent-line); }
.floats { position: absolute; z-index: 1; top: 0; left: 50%; width: min(1320px, 100%); height: 452px; transform: translateX(-50%); pointer-events: none; }
.fc { position: absolute; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-float); box-shadow: var(--shadow-float); overflow: hidden; }
.fc-head { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 14px; border-bottom: 1px solid var(--edge-cream); background: var(--tint-cream); color: var(--ink-cream); }
.fc-head svg, .wc svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fc-key { font-family: var(--font-mono); font-size: var(--fs-small); font-weight: var(--weight-bold); color: var(--text); letter-spacing: -.01em; }
.fc-type { margin-left: auto; padding: 2px 8px; border-radius: var(--r-pill); background: var(--bg); color: inherit; font-family: var(--font-mono); font-size: var(--fs-tiny); font-weight: var(--weight-medium); line-height: 1.4; }
.fc pre { margin: 0; padding: 12px 14px 14px; border: 0; border-radius: 0; background: var(--bg); color: var(--text-muted); font-size: var(--fs-code-small); line-height: 1.62; white-space: pre; }
.fc pre b { color: var(--text); font-weight: var(--weight-semibold); }
.fc-foot { display: flex; align-items: center; gap: 7px; padding: 0 14px 14px; margin-top: -4px; }
.fc-foot .tag { font-family: var(--font-mono); font-size: var(--fs-code-small); background: var(--tint-mint); color: var(--ink-mint); border-color: var(--edge-mint); }
.fc--mint .fc-head { background: var(--tint-mint); border-color: var(--edge-mint); color: var(--ink-mint); }
.fc--blue .fc-head { background: var(--tint-blue); border-color: var(--edge-blue); color: var(--ink-blue); }
.fc--lilac .fc-head { background: var(--tint-lilac); border-color: var(--edge-lilac); color: var(--ink-lilac); }
.fc-in { left: 36px; top: 58px; width: 256px; transform: rotate(-4deg); }
.fc-dns { left: 74px; top: 300px; width: 212px; transform: rotate(-2deg); }
.fc-route { right: 40px; top: 44px; width: 278px; transform: rotate(4deg); }
.fc-out { right: 54px; top: 294px; width: 256px; transform: rotate(2deg); }
.wc { position: absolute; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px 0 13px; border: 1px solid var(--edge-lilac); border-radius: var(--r-md); font-family: var(--font-mono); font-size: var(--fs-ui); font-weight: var(--weight-semibold); box-shadow: var(--shadow-soft); background: var(--tint-lilac); color: var(--ink-lilac); }
.wc-pol { right: 224px; top: 234px; transform: rotate(-3deg); background: var(--tint-cream); color: var(--ink-cream); border-color: var(--edge-cream); }
.wc-sub { left: 250px; top: 250px; transform: rotate(5deg); }
.stage { position: relative; z-index: 2; width: min(1040px, 100%); margin: 30px auto 0; }
.stage::before { content: ""; position: absolute; z-index: 0; left: 22px; right: 22px; bottom: -10px; height: 90px; background: var(--bg-panel-2); border: 1px solid var(--border); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.stage::after { content: ""; position: absolute; z-index: -1; left: 10%; right: 10%; bottom: -36px; height: 64px; border-radius: var(--r-circle); background: radial-gradient(closest-side, var(--shadow-ground), var(--clear)); }
.win { position: relative; z-index: 1; margin: 0; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg); color: var(--text); box-shadow: var(--shadow-win); overflow: hidden; text-align: left; }
.win-title { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 10px 0 18px; background: var(--bg-panel); color: var(--text); border-bottom: 1px solid var(--border); }
.win-name { display: flex; align-items: center; gap: 9px; font-size: var(--fs-ui); font-weight: var(--weight-bold); letter-spacing: -.005em; }
.win-glyph { width: 16px; height: 16px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.win-ctrl { display: flex; gap: 6px; }
.win-ctrl span { display: grid; place-items: center; width: 30px; height: 22px; border: 1px solid var(--border); border-radius: var(--r-xs); background: var(--bg); color: var(--text-muted); }
.win-ctrl svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.win-menu { display: flex; align-items: center; gap: 2px; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: var(--fs-ui); white-space: nowrap; }
.win-menu span { padding: 5px 12px; border-radius: var(--r-sm); }
.win-menu .on { background: var(--accent-wash); color: var(--accent); font-weight: var(--weight-semibold); }
.win-body { padding: 16px; background: var(--bg-panel); color: var(--text); }
.opt { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-float); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.opt-head { display: flex; align-items: center; justify-content: space-between; height: 32px; margin-bottom: 14px; }
.opt-title { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: var(--fs-button); font-weight: var(--weight-display); letter-spacing: -.01em; }
.opt-title svg { width: 17px; height: 17px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.window-tabs { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--bg-panel-2); color: var(--text-muted); }
.window-tabs span { display: flex; align-items: center; height: 26px; padding: 0 13px; border-radius: var(--r-pill); font-size: var(--fs-small); white-space: nowrap; }
.window-tabs .on { background: var(--bg); color: var(--text); font-weight: var(--weight-semibold); box-shadow: var(--shadow-hair); }
.opt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 54px; padding: 8px 14px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-md); }
.row-label { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.row-label b { font-size: var(--fs-ui); font-weight: var(--weight-semibold); }
.row-label code { font-size: var(--fs-tiny); color: var(--text-muted); }
.field { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 78px; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg); color: var(--text); font-family: var(--font-mono); font-size: var(--fs-small); font-weight: var(--weight-semibold); }
.field svg { width: 10px; height: 10px; fill: none; stroke: var(--text-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sw { position: relative; flex-shrink: 0; width: 36px; height: 20px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--bg-panel-2); }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: var(--r-circle); background: var(--bg); box-shadow: var(--shadow-hair); }
.sw.is-on { background: var(--text); border-color: var(--text); }
.sw.is-on::after { left: auto; right: 2px; }
.win-status { display: flex; align-items: center; gap: 14px; min-height: 30px; padding: 5px 18px; border-top: 1px solid var(--border); background: var(--bg); color: var(--text-muted); font-size: var(--fs-xs); }
.st { display: inline-flex; align-items: center; gap: 7px; }
.st::before { content: ""; width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--accent); }
.st--route::before { background: var(--text); }
.st b { color: var(--text); font-weight: var(--weight-semibold); }
.st-sep { width: 1px; height: 12px; background: var(--border); }
.download-intro { padding-top: 76px; }

/* 预览页色板使用语义类，不需要内联样式。 */
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg); color: var(--text); }
.swatch-color { display: block; height: 64px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--r-sm); }
.swatch code { font-size: var(--fs-xs); }
.sw-bg { background: var(--bg); }
.sw-panel { background: var(--bg-panel); }
.sw-panel2 { background: var(--bg-panel-2); }
.sw-border { background: var(--border); }
.sw-accent { background: var(--accent); }
.sw-accent-dark { background: var(--accent-dark); }
.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-cream { background: var(--tint-cream); }
.sw-mint { background: var(--tint-mint); }
.sw-blue { background: var(--tint-blue); }
.sw-lilac { background: var(--tint-lilac); }
.sw-edge-cream { background: var(--edge-cream); }
.sw-edge-mint { background: var(--edge-mint); }
.sw-edge-blue { background: var(--edge-blue); }
.sw-edge-lilac { background: var(--edge-lilac); }
.sw-ink-cream { background: var(--ink-cream); }
.sw-ink-mint { background: var(--ink-mint); }
.sw-ink-blue { background: var(--ink-blue); }
.sw-ink-lilac { background: var(--ink-lilac); }
.sw-accent-wash { background: var(--accent-wash); }
.sw-accent-line { background: var(--accent-line); }
.sw-veil { background: var(--veil); }
.sw-ground { background: var(--shadow-ground); }
.sw-clear { background: var(--clear); }
.preview-block + .preview-block { margin-top: 40px; }
.preview-mobile { display: none; }
@media (max-width: 1359px) { .wc { display: none; } }
@media (max-width: 1179px) { .floats { display: none; } }
@media (max-width: 1280px) {
  .preview-mobile { display: block; }
  .preview-mobile > summary { list-style: none; display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text); }
  .preview-mobile > summary::-webkit-details-marker { display: none; }
  .preview-mobile nav { position: absolute; top: 100%; inset-inline: 0; padding: 16px var(--gutter); max-height: calc(100dvh - var(--head-height)); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-float); }
  .preview-mobile nav a { display: flex; width: 100%; min-height: 44px; padding: 10px 14px; color: var(--text); text-decoration: none; }
}
@media (max-width: 900px) {
  .opt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .window-tabs span:not(.on) { display: none; }
  .object-index { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tab-list--vertical { flex-direction: row; overflow-x: auto; max-width: 100%; }
  .tab-list--vertical .tab-button { white-space: nowrap; }
}
@media (max-width: 768px) { .hero-title { font-size: var(--fs-h1-mobile); } }
@media (max-width: 640px) {
  .cta { flex-direction: column; align-self: stretch; }
  .cta .btn { width: 100%; }
  .plats-label { width: 100%; margin: 0 0 2px; text-align: center; }
  .opt-grid { grid-template-columns: minmax(0, 1fr); }
  .opt-head { flex-direction: column; align-items: flex-start; height: auto; gap: 10px; }
  .win-menu { overflow-x: auto; }
  .win-status { flex-wrap: wrap; padding: 8px 14px; row-gap: 4px; }
  .st-sep { display: none; }
  .fc, .wc { transform: none; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-download { flex-direction: column; align-items: flex-start; padding: 22px; }
  .dl-fab { right: var(--gutter); bottom: 16px; padding: 12px 18px; }
}