.tabs { min-width: 0; }
.tab-list, [role="tablist"] {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 0 0 24px; padding: 0; list-style: none;
}
[role="tab"] {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg-panel); color: var(--text-muted);
  font-size: 14px; font-weight: 650; text-align: left;
}
[role="tab"]:hover { border-color: var(--accent); color: var(--accent); }
[role="tab"][aria-selected="true"] { background: var(--accent); color: var(--on-dark); border-color: var(--accent); }
[role="tabpanel"] { min-width: 0; }
.feature-browser { display: grid; grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); gap: 42px; align-items: start; }
.feature-browser [role="tablist"] { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 0; }
.feature-browser [role="tab"] {
  justify-content: flex-start; width: 100%; min-height: 54px; padding: 14px 20px;
  background: var(--on-dark-fill); color: var(--on-dark); border-color: var(--on-dark-line);
}
.feature-browser [role="tab"][aria-selected="true"] { background: var(--bg); color: var(--accent); border-color: var(--bg); }
.feature-panel {
  min-width: 0; padding: 30px; background: var(--bg); color: var(--text);
  border-radius: var(--radius-sm); box-shadow: 0 30px 70px -20px var(--shadow-violet-2);
}
.feature-panel.tilt { transform: rotate(-1.5deg); }
.feature-panel h3 { margin-top: 0; }
.feature-panel p { color: var(--text-muted); }
.feature-panel pre { margin-bottom: 0; }
.tab-progress { position: absolute; inset: auto 0 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.tabs.is-playing [aria-selected="true"] .tab-progress { animation: tab-clock 6s linear forwards; }
@keyframes tab-clock { to { transform: scaleX(1); } }
.toc {
  position: sticky; top: 0; z-index: 12; display: flex; flex-wrap: wrap; gap: 8px;
  margin-block: 24px; padding: 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--text-muted);
}
.toc a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-pill); color: var(--text-muted); font-size: 14px; }
.toc a:hover, .toc a[aria-current] { background: var(--bg-panel-2); color: var(--text); text-decoration: none; }
.faq-item { border-bottom: 1px solid var(--border); background: var(--bg); color: var(--text); }
.faq-item summary { position: relative; padding: 20px 40px 20px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 6px; top: 17px; color: var(--accent); font: 24px/1.4 var(--font-mono); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 20px 0; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { padding: 24px; border-top: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--bg-panel); color: var(--text); min-width: 0; }
.term-card h3 { margin: 0 0 6px; }
.term-alias { display: block; font: 12px/1.7 var(--font-mono); color: var(--text-muted); margin-bottom: 16px; overflow-wrap: anywhere; }
.term-card p { font-size: 14px; color: var(--text-muted); }
.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%; min-height: 24px; padding: 3px 9px;
  border-radius: var(--radius-xs); background: var(--bg-panel-2); color: var(--text-muted);
  font-size: 12px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere;
}
.badge-first { background: var(--accent); color: var(--on-dark); }
.badge-recommended { background: var(--bg); color: var(--accent); border: 1px solid var(--accent); }
.badge-archived { background: var(--bg-panel-2); color: var(--text-muted); border: 1px solid var(--border-strong); }
.status-dot { width: 7px; height: 7px; border-radius: var(--radius-round); background: var(--accent); flex-shrink: 0; }
.client-card {
  min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
}
.client-card.is-featured { border-top: 3px solid var(--accent); box-shadow: var(--shadow-panel); }
.client-head { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.client-head > div { min-width: 0; flex: 1; }
.client-icon { width: 56px; height: 56px; flex-shrink: 0; }
.client-head h3 { margin: 0 0 8px; }
.client-card p { color: var(--text-muted); }
.client-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-block: 20px; color: var(--text-muted); font-size: 13px; }
[data-ver]:empty { display: none; }
.client-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.client-actions .btn { min-width: 0; }
.post-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); transition: border-color var(--speed), box-shadow var(--speed); }
.post-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-panel); }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--text-muted); font-size: 12px; }
.post-card h3 { margin: 0; font-size: 21px; line-height: 1.45; }
.post-card h3 a { color: var(--text); }
.post-card p { margin: 0; color: var(--text-muted); font-size: 14px; }
.post-link { margin-top: auto; font-size: 14px; font-weight: 700; }
.callout {
  margin: 24px 0; padding: 20px 24px; border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius-xs);
  background: var(--bg-panel); color: var(--text);
}
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 8px; font-weight: 800; }
.callout-warning { border-left-color: var(--warn); }
.callout-error { border-left-color: var(--error); }
.callout-success { border-left-color: var(--success); }
.table-scroll { overflow-x: auto; max-width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; background: var(--bg); color: var(--text); font-size: 14px; }
.data-table th, .data-table td, .prose table th, .prose 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 { background: var(--bg-panel); color: var(--text); 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;
  width: 100%; max-width: 100%; min-width: 0; border-collapse: collapse;
  background: var(--bg); color: var(--text);
}
.article-body table th, .article-body table td { min-width: 7em; padding: 14px 18px; overflow-wrap: normal; word-break: normal; border-bottom: 1px solid var(--border); }
.data-table code, .prose table code, .article-body table code { overflow-wrap: anywhere; }
.article-body { min-width: 0; }
.article-body > *, .prose > * { max-width: 100%; min-width: 0; }
.article-download {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  margin-top: 40px; padding: 28px; border: 1px solid var(--border); border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm); background: var(--bg-panel); color: var(--text);
}
.article-download > div { min-width: 0; flex: 1 1 240px; }
.article-download h2 { margin: 0 0 8px; font-size: 24px; }
.article-download p { margin: 0; color: var(--text-muted); }
.dl-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 24;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  max-width: calc(100% - 40px); min-height: 52px; padding: 12px 20px;
  border-radius: var(--radius-sm); background: var(--accent); color: var(--on-dark);
  box-shadow: 0 12px 30px -10px var(--shadow-violet-2); font-size: 14px; font-weight: 700;
}
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.dl-fab:hover { background: var(--accent-dark); color: var(--on-dark); text-decoration: none; }
.has-dl-fab .site-footer { padding-bottom: 100px; }
/* 预览页辅助类不承载正式页面内容逻辑。 */
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); color: var(--text); }
.swatch-sample { display: block; height: 66px; border-bottom: 1px solid var(--border); }
.swatch code { display: block; padding: 12px; }
.sw-bg { background: var(--bg); }
.sw-panel { background: var(--bg-panel); }
.sw-panel2 { background: var(--bg-panel-2); }
.sw-border { background: var(--border); }
.sw-border-strong { background: var(--border-strong); }
.sw-accent { background: var(--accent); }
.sw-accent-dark { background: var(--accent-dark); }
.sw-gradient { background: var(--grad-band); }
.sw-deep { background: var(--deep); }
.sw-text { background: var(--text); }
.sw-muted { background: var(--text-muted); }
.sw-faint { background: var(--text-faint); }
.sw-success { background: var(--success); }
.sw-warn { background: var(--warn); }
.sw-error { background: var(--error); }
.sw-white { background: var(--on-dark); }
.sw-dark-muted { background: linear-gradient(var(--on-dark-muted), var(--on-dark-muted)), var(--deep); }
.sw-dark-faint { background: linear-gradient(var(--on-dark-faint), var(--on-dark-faint)), var(--deep); }
.sw-dark-line { background: linear-gradient(var(--on-dark-line), var(--on-dark-line)), var(--deep); }
.sw-dark-fill { background: linear-gradient(var(--on-dark-fill), var(--on-dark-fill)), var(--deep); }
.sw-clear { background: linear-gradient(var(--bg-0), var(--bg-0)), var(--bg-panel-2); }
.sw-bg60 { background: linear-gradient(var(--bg-60), var(--bg-60)), var(--text); }
.sw-ink { background: linear-gradient(var(--shadow-ink), var(--shadow-ink)), var(--bg); }
.sw-ink2 { background: linear-gradient(var(--shadow-ink-2), var(--shadow-ink-2)), var(--bg); }
.sw-violet1 { background: linear-gradient(var(--shadow-violet-1), var(--shadow-violet-1)), var(--bg); }
.sw-violet2 { background: linear-gradient(var(--shadow-violet-2), var(--shadow-violet-2)), var(--bg); }
.sw-blue { background: linear-gradient(var(--shadow-blue), var(--shadow-blue)), var(--bg); }
.sw-button { background: linear-gradient(var(--shadow-btn), var(--shadow-btn)), var(--bg); }
.preview-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.type-display { font: 900 clamp(30px, 3.3vw, 46px)/1.16 var(--font-display); }
.type-mono { font-family: var(--font-mono); }
@media (max-width: 900px) { .feature-browser { gap: 24px; } }
@media (max-width: 640px) {
  .feature-browser { grid-template-columns: minmax(0, 1fr); }
  .feature-browser [role="tablist"] { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .feature-browser [role="tab"] { width: auto; flex: 1 1 42%; padding: 10px 12px; min-height: 46px; font-size: 13px; }
  .feature-panel { padding: 22px; }
  .feature-panel.tilt { transform: none; }
  .client-card { padding: 20px; }
  .client-actions { align-items: stretch; }
  .client-actions .btn { flex: 1 1 180px; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { position: static; padding: 8px; }
  .dl-fab { right: 20px; bottom: 16px; }
  .article-download { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tabs.is-playing [aria-selected="true"] .tab-progress { animation: none; }
}