.tabs { min-width: 0; }
[role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); color: var(--text); }
[role="tab"] { min-height: 44px; padding: 10px 18px; border: 0; border-radius: var(--radius-btn); background: var(--bg); color: var(--text-muted); font-weight: var(--weight-semibold); }
[role="tab"]:hover { background: var(--bg-panel); color: var(--text); }
[role="tab"][aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
[role="tabpanel"] { min-width: 0; scroll-margin-top: 32px; }
[role="tabpanel"]:focus-visible { outline-offset: 6px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 9px 16px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg); color: var(--text-muted); font-size: var(--text-small); }
.toc a:hover, .toc a[aria-current] { border-color: var(--accent); color: var(--accent-dark); }
.toc-sticky { position: sticky; top: 16px; z-index: 4; background: var(--bg); color: var(--text); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { position: relative; padding: 24px 40px 24px 0; list-style: none; cursor: pointer; font-weight: var(--weight-semibold); line-height: 1.6; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 24px; color: var(--accent); font-family: var(--font-mono); font-size: 22px; line-height: 1.3; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 24px; color: var(--text-muted); max-width: 760px; }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); color: var(--text); }
.term-card dt { font-family: var(--font-mono); font-size: 19px; font-weight: var(--weight-semibold); color: var(--accent-dark); overflow-wrap: anywhere; }
.term-card dd { margin: 16px 0 0; color: var(--text-muted); }
.term-category, .badge, .tag { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 11px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg); color: var(--text-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.badge-accent, .tag-accent { background: var(--bg-panel-2); color: var(--accent-dark); border-color: var(--bg-panel-2); }
.store-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; max-width: 100%; padding: 11px 24px; border: 1px solid var(--accent); border-radius: var(--radius-btn); background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-btn); line-height: 1.2; transition: background-color var(--duration) ease, transform var(--duration) ease; }
.store-button:hover { background: var(--accent-dark); color: var(--on-accent); border-color: var(--accent-dark); transform: translateY(-1px); }
.store-button svg { width: 25px; height: 29px; flex-shrink: 0; fill: currentColor; }
.store-button-copy { display: block; }
.store-button small { display: block; font-size: 11px; font-weight: var(--weight-medium); margin-bottom: 3px; }
.store-button strong { display: block; font-size: 17px; font-weight: var(--weight-bold); }
.store-button[aria-disabled="true"] { background: var(--bg-panel); color: var(--text-muted); border-color: var(--border); box-shadow: none; cursor: not-allowed; }
.fact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0; margin: 24px 0 0; list-style: none; }
.fact-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 100%; padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg); color: var(--text-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.fact-pill strong { color: var(--text); }
.fact-pill svg { width: 16px; height: 16px; flex-shrink: 0; }
.shot-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.official-shot { width: 100%; max-width: 280px; flex-shrink: 0; margin: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-shot); }
.official-shot img, .shot-placeholder { outline: 1px solid var(--border); outline-offset: -1px; }
.official-shot figcaption { margin-top: 16px; font-size: 13px; line-height: 1.6; }
.device-card { display: flex; align-items: flex-start; gap: 28px; padding: 40px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-float); }
.device-card > div { min-width: 0; }
.device-card .device-ico { width: 54px; height: 72px; stroke-width: 1.25; }
.device-card h3 { margin: 0 0 14px; }
.device-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }
.article-card { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); color: var(--text); min-width: 0; }
.article-card h3 { margin: 22px 0 16px; font-size: 22px; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--accent); }
.article-card p { color: var(--text-muted); font-size: 15px; }
.article-card .text-link { margin-top: auto; padding-top: 12px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); }
.callout { margin: 32px 0; padding: 24px 28px; background: var(--bg-panel-2); color: var(--text); border-left: 3px solid var(--accent); border-radius: var(--radius-btn); }
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 10px; font-weight: var(--weight-bold); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--border); border-radius: var(--radius-card); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.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(--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 td, .prose table td, .article-body table td { background: var(--bg); color: var(--text); }
.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; }
.data-table code, .prose table code, .article-body table code { overflow-wrap: anywhere; }
.dl-fab { position: fixed; right: 24px; bottom: 24px; z-index: 20; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 40px); min-height: 56px; padding: 14px 20px; border: 1px solid var(--accent); border-radius: var(--radius-btn); background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-btn); font-size: 14px; line-height: 1.4; font-weight: var(--weight-semibold); }
.dl-fab:hover { background: var(--accent-dark); color: var(--on-accent); }
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; }
.article-store-card { margin-top: 64px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); }
.article-store-card h2 { font-size: 24px; margin-top: 0; }
.article-store-card p { color: var(--text-muted); }
.feature-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 96px; }
.feature-band + .feature-band { margin-top: 144px; }
.feature-band:nth-child(even) .feature-art { order: 2; }
.feature-band h3 { margin: 18px 0 22px; font-size: 30px; }
.feature-band p:not(.eyebrow) { color: var(--text-muted); }
.feature-art svg { display: block; width: 100%; max-width: 440px; margin-inline: auto; }
.art-blob { fill: var(--bg-panel-2); }
.art-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art-detail { fill: none; stroke: var(--dot); stroke-width: 1.5; stroke-dasharray: 3 6; }
.group-list { padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg); color: var(--text); }
.group-list li + li { border-top: 1px solid var(--border); }
.group-list a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; color: var(--text); min-height: 56px; }
.group-list a::after { content: "›"; color: var(--accent); }
.group-list a:hover { color: var(--accent-dark); }

/* 仅供无脚本设计预览使用。 */
.preview-section-title { margin-top: 0; }
.preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.preview-grid > * { min-width: 0; }
.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.swatch { margin: 0; }
.swatch-surface { display: block; height: 76px; border: 1px solid var(--border); border-radius: var(--radius-btn); }
.swatch figcaption { margin-top: 8px; font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; }
.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-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-faint { background: var(--text-faint); }
.sw-line { background: var(--line-no); }
.sw-dot { background: var(--dot); }
.sw-arc { background: var(--arc-deep); }
.sw-white { background: var(--on-accent); }
.sw-a06 { background: var(--accent-a06); }
.sw-a10 { background: var(--accent-a10); }
.sw-a14 { background: var(--accent-a14); }
.sw-a30 { background: var(--accent-a30); }
.sw-green { background: var(--success-a22); }
.sw-veil { background: var(--veil); }
.sw-clear { background: var(--clear); }
.shot-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 750 / 1334; border-radius: var(--radius-shot); background: var(--bg-panel-2); color: var(--text-muted); font-family: var(--font-mono); font-size: 14px; }
.preview-language > summary { list-style: none; cursor: pointer; }
.preview-language > summary::-webkit-details-marker, .preview-mobile > summary::-webkit-details-marker { display: none; }
.preview-mobile { display: none; }
.preview-fact-note { margin-top: 28px; }
.preview-type-display { font-size: 36px; font-weight: var(--weight-display); line-height: 1.3; letter-spacing: -.02em; }
.preview-type-body { font-size: 17px; }
.preview-type-mono { font-family: var(--font-mono); font-size: 14px; }

@media (max-width: 1280px) {
  .preview-mobile { display: block; }
  .preview-mobile > summary { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--bg); color: var(--text); cursor: pointer; }
}
@media (max-width: 1040px) {
  .feature-band { gap: 48px; }
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .fact-row { flex-direction: row; flex-wrap: wrap; }
  .shot-row { flex-direction: column; align-items: center; }
  .device-card { padding: 28px 24px; gap: 20px; }
  .device-card .device-ico { width: 38px; height: 54px; }
  .feature-band { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature-band:nth-child(even) .feature-art { order: 0; }
  .feature-band + .feature-band { margin-top: 96px; }
  .feature-band h3 { font-size: 26px; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-grid { grid-template-columns: minmax(0, 1fr); }
  .callout { padding: 20px; }
  .article-card { padding: 24px; }
  .dl-fab { right: 20px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  body.has-article-fab .site-footer { padding-bottom: 104px; }
  .article-store-card { padding: 24px; }
  .preview-type-display { font-size: 28px; }
}