/* 首屏采用确认稿中的配置窗口；窗口与通知均为静态装饰。 */
.hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg,var(--hero-top) 0%,var(--hero-bottom) 100%); color: var(--on-dark); }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: var(--radius-round); pointer-events: none; }
.hero::before { width: 780px; height: 780px; top: -380px; right: -180px; background: radial-gradient(closest-side,var(--glow-a),var(--clear)); }
.hero::after { width: 920px; height: 920px; bottom: -500px; left: -340px; background: radial-gradient(closest-side,var(--glow-b),var(--clear)); }
.hero :focus-visible { outline-color: var(--on-dark); }
.hero-in { padding-top: 44px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; min-height: 30px; max-width: 100%; margin: 0 0 22px; padding: 4px 14px 4px 12px; border: 1px solid var(--on-dark-line); border-radius: var(--radius-pill); background: var(--on-dark-fill); color: var(--on-dark-muted); font-size: 13px; line-height: 1.5; letter-spacing: .01em; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: var(--radius-round); background: var(--coral); flex-shrink: 0; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: var(--radius-round); background: var(--coral); opacity: .4; animation: breathe 2.8s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(.6); opacity: .45; } 50% { transform: scale(1.3); opacity: 0; } }
.hero h1 { margin: 0 0 16px; max-width: 1100px; font-size: clamp(26px,2.2vw + 16px,48px); font-weight: var(--weight-normal); }
.hero .cta { justify-content: center; margin-bottom: 26px; }
.lede { margin: 0 0 28px; max-width: 780px; font-size: 17px; line-height: 1.6; color: var(--on-dark-muted); }
.lede strong { color: var(--on-dark); }
.os-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-bottom: 44px; }
.os-label { margin-right: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--on-dark-faint); }
.os-chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 6px 14px; border: 1px solid var(--on-dark-line); border-radius: var(--radius); font-size: 14px; color: var(--on-dark-muted); background: var(--clear); transition: background-color var(--time-fast) var(--ease); }
.os-chip svg { width: 16px; height: 16px; color: var(--on-dark); flex-shrink: 0; }
.os-chip:hover { background: var(--on-dark-fill-hover); color: var(--on-dark); text-decoration: none; }
.device { position: relative; width: min(880px,100%); margin: 0 auto -20px; text-align: left; }
.device::before, .device::after { content: ""; position: absolute; z-index: 0; border: 1px solid var(--on-dark-line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.device::before { left: 34px; right: 34px; top: -13px; height: 60px; background: var(--on-dark-fill); }
.device::after { left: 74px; right: 74px; top: -25px; height: 60px; background: var(--on-dark-fill-2); }
.win { position: relative; z-index: 1; overflow: hidden; background: var(--bg); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-window); }
.win-bar { height: 40px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 14px; background: var(--chrome); color: var(--text-muted); border-bottom: 1px solid var(--border); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: var(--radius-round); background: var(--chrome-dot); flex-shrink: 0; }
.win-title { font-size: 13px; font-weight: var(--weight-medium); }
.win-body { display: grid; grid-template-columns: 164px minmax(0,1fr); }
.side { padding: 16px 10px; background: var(--side-bg); color: var(--text-muted); border-right: 1px solid var(--border); }
.side ul { margin: 0; padding: 0; list-style: none; }
.side li { padding: 8px 12px; border-radius: var(--radius); font-size: 13.5px; }
.side li + li { margin-top: 2px; }
.side .on { background: var(--bg-panel); color: var(--accent); font-weight: var(--weight-strong); }
.device-main { padding: 22px 28px 28px; min-width: 0; }
.lbl { margin: 0 0 8px; font-size: 12px; font-weight: var(--weight-strong); letter-spacing: .04em; color: var(--text-muted); }
.import { display: flex; height: 44px; }
.field { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--border); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--bg); color: var(--text-muted); box-shadow: var(--shadow-field); font-size: 14px; }
.field svg { width: 16px; height: 16px; flex-shrink: 0; }
.go { display: flex; align-items: center; padding: 0 26px; border-radius: 0 var(--radius) var(--radius) 0; background: var(--text); color: var(--on-dark); font-size: 14px; font-weight: var(--weight-strong); }
.cols { display: grid; grid-template-columns: minmax(0,1fr) 256px; gap: 24px; margin-top: 22px; }
.rows { border-top: 1px solid var(--border); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.row b { display: block; font-size: 14px; font-weight: var(--weight-medium); line-height: 1.5; }
.row small { display: block; font-size: 12px; line-height: 1.45; color: var(--text-muted); }
.sw { position: relative; flex-shrink: 0; width: 36px; height: 20px; border-radius: var(--radius-pill); background: var(--toggle-off); }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: var(--radius-round); background: var(--knob); box-shadow: var(--shadow-knob); }
.sw.on { background: var(--accent); }
.sw.on::after { left: 18px; }
.mode { margin-top: 18px; }
.seg { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 3px; border-radius: var(--radius); background: var(--bg-panel); color: var(--text-muted); }
.seg span { padding: 7px 0; border-radius: var(--radius-inner); text-align: center; font-size: 13px; }
.seg .on { background: var(--bg); color: var(--accent); font-weight: var(--weight-strong); box-shadow: var(--shadow-seg); }
.yaml { align-self: start; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--code-bg); color: var(--text); }
.yaml-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }
.yaml-head span:first-child { color: var(--text); font-weight: var(--weight-medium); }
.yaml pre { margin: 0; padding: 12px 14px; border: 0; font-size: 12px; line-height: 1.75; }
pre .k { color: var(--accent); }
pre .v { color: var(--accent-dark); }
.toast { position: absolute; z-index: 2; top: -24px; right: -72px; display: flex; align-items: center; gap: 12px; padding: 12px 22px 12px 16px; border-radius: var(--radius-pill); background: var(--bg); color: var(--text); box-shadow: var(--shadow-float); font-size: 14px; white-space: nowrap; }
.toast .dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: var(--radius-round); background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.toast b { font-weight: var(--weight-strong); }
.toast .sep { color: var(--chrome-dot); }
.facts { background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); }
.facts-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; padding-top: 18px; padding-bottom: 18px; margin-block: 0; list-style: none; font-family: var(--font-mono); font-size: 13px; }
.facts-in li { display: flex; align-items: center; gap: 10px; }
.facts-in li::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: var(--radius-inner); background: var(--accent); }
.fk { color: var(--text-muted); }
.dl-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.dl-card { display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--bg-panel); color: var(--text); transition: transform .25s var(--ease),box-shadow .25s var(--ease); }
.dl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.dl-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: var(--radius); background: var(--bg); color: var(--accent); box-shadow: var(--shadow-chip); }
.dl-ico svg { width: 22px; height: 22px; }
.dl-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: var(--weight-strong); }
.dl-card p { flex: 1; margin: 0 0 16px; font-size: 14px; color: var(--text-muted); }
.fmt { align-self: flex-start; margin-bottom: 18px; padding: 3px 8px; border-radius: var(--radius-inner); background: var(--bg-panel-2); color: var(--accent-dark); font-family: var(--font-mono); font-size: 12px; }
.tabs { min-width: 0; }
.tab-list, [role="tablist"] { display: flex; align-items: center; gap: 10px; max-width: 100%; overflow-x: auto; padding: 4px 3px 16px; margin-bottom: 16px; scrollbar-width: thin; }
.tab-list [role="tab"] { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 44px; padding: 10px 20px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg); color: var(--text-muted); white-space: nowrap; font-size: 15px; }
.tab-list [role="tab"]:hover { color: var(--accent); border-color: var(--accent); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--bg-panel); color: var(--accent); border-color: var(--bg-panel); font-weight: var(--weight-strong); }
[role="tabpanel"] { min-width: 0; scroll-margin-top: 24px; }
.feature-card { position: relative; overflow: hidden; padding: 40px 40px 190px; border-radius: var(--radius); background: var(--bg-panel); color: var(--text); }
.feature-card p { color: var(--text-muted); }
.feature-fragment { position: absolute; bottom: -22px; right: -22px; width: min(310px,85%); padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); pointer-events: none; }
.feature-fragment .lbl { margin-bottom: 12px; }
.mock-select { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--code-bg); color: var(--text); font-size: 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; margin-bottom: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.toc a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: var(--radius); color: var(--text-muted); }
.toc a:hover { background: var(--bg-panel); color: var(--accent); text-decoration: none; }
.toc-sticky { position: sticky; top: 12px; z-index: 10; }
.faq-item { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq-item summary { position: relative; padding: 18px 36px 18px 0; cursor: pointer; list-style: none; font-weight: var(--weight-medium); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 17px; font-size: 22px; color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 18px; color: var(--text-muted); }
.faq-answer p:last-child { margin-bottom: 0; }
.term-card { padding: 28px; border-radius: var(--radius); background: var(--bg-panel); color: var(--text); border-top: 2px solid var(--accent); }
.term-card h3 { margin-bottom: 8px; }
.term-en { display: block; margin-bottom: 16px; color: var(--accent-dark); font-family: var(--font-mono); font-size: 13px; }
.term-card p { color: var(--text-muted); }
.client-card { padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.client-card.is-featured { border-color: var(--bg-panel-2); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-soft); }
.client-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.client-head h3 { margin: 0; }
.client-card p { color: var(--text-muted); }
.client-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-block: 16px; font-size: 13px; color: var(--text-muted); }
[data-ver]:empty { display: none; }
.badge-row, .tag-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tag, .status-badge { display: inline-flex; align-items: center; max-width: 100%; padding: 4px 9px; border-radius: var(--radius-inner); background: var(--bg-panel-2); color: var(--accent-dark); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.status-badge.first { background: var(--accent); color: var(--on-dark); }
.status-badge.recommended { background: var(--bg-panel-2); color: var(--accent-dark); }
.status-badge.archived { background: var(--chrome); color: var(--text-muted); border: 1px solid var(--border); }
.tag-success { background: var(--bg); color: var(--success-ink); border: 1px solid var(--success); }
.tag-warn { background: var(--bg); color: var(--warn-ink); border: 1px solid var(--warn); }
.tag-error { background: var(--bg); color: var(--error-ink); border: 1px solid var(--error); }
.post-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); transition: box-shadow var(--time-fast) var(--ease); }
.post-card:hover { box-shadow: var(--shadow-soft); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--text-muted); font-family: var(--font-mono); font-size: 12px; }
.post-card h3 { font-size: 21px; line-height: 1.5; }
.post-card h3 a { color: var(--text); }
.post-card p { color: var(--text-muted); flex: 1; font-size: 14px; }
.callout { margin: 24px 0; padding: 24px; border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--bg-panel); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout-warning { border-left-color: var(--warn); }
.callout-error { border-left-color: var(--error); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); overscroll-behavior-inline: contain; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; background: var(--bg); color: var(--text); font-size: 14px; }
.data-table caption { text-align: left; padding: 16px; color: var(--text-muted); }
.data-table th, .data-table td, .prose table th, .prose table td { min-width: 7em; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: normal; word-break: normal; }
.data-table th, .prose table th { background: var(--bg-panel); color: var(--text); font-weight: var(--weight-strong); }
.prose 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); }
.prose table code { overflow-wrap: anywhere; white-space: normal; }
.article-download { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 32px; margin-block: 40px; border-radius: var(--radius); 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: max(20px,env(safe-area-inset-right)); bottom: max(20px,env(safe-area-inset-bottom)); z-index: 25; display: inline-flex; align-items: center; justify-content: center; gap: 12px; max-width: calc(100% - 40px); min-height: 52px; padding: 12px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--accent); box-shadow: var(--shadow-soft); font-weight: var(--weight-strong); }
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.dl-fab:hover { background: var(--bg-panel); color: var(--accent-dark); text-decoration: none; }
.preview-fab { position: static; margin-top: 24px; }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 16px; }
.swatch { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); color: var(--text); }
.swatch-color { height: 72px; background: var(--sample,var(--bg)); color: var(--text); border-bottom: 1px solid var(--border); }
.swatch code { display: block; padding: 12px; color: var(--text-muted); }
.sw-bg { --sample: var(--bg); }
.sw-panel { --sample: var(--bg-panel); }
.sw-panel2 { --sample: var(--bg-panel-2); }
.sw-border { --sample: var(--border); }
.sw-accent { --sample: var(--accent); }
.sw-dark { --sample: var(--accent-dark); }
.sw-text { --sample: var(--text); }
.sw-muted { --sample: var(--text-muted); }
.sw-success { --sample: var(--success); }
.sw-warn { --sample: var(--warn); }
.sw-error { --sample: var(--error); }
.sw-coral { --sample: var(--coral); }
.sw-hero-top { --sample: var(--hero-top); }
.sw-hero-bottom { --sample: var(--hero-bottom); }
.sw-chrome { --sample: var(--chrome); }
.sw-dot { --sample: var(--chrome-dot); }
.sw-side { --sample: var(--side-bg); }
.sw-code { --sample: var(--code-bg); }
.sw-placeholder { --sample: var(--placeholder); }
.sw-toggle { --sample: var(--toggle-off); }
.sw-knob { --sample: var(--knob); }
.sw-mid { --sample: var(--gradient-mid); }
.sw-success-ink { --sample: var(--success-ink); }
.sw-warn-ink { --sample: var(--warn-ink); }
.sw-error-ink { --sample: var(--error-ink); }
.sw-gradient { --sample: var(--grad-text); }
.sw-glow-a { --sample: radial-gradient(closest-side,var(--glow-a),var(--hero-bottom)); }
.sw-glow-b { --sample: radial-gradient(closest-side,var(--glow-b),var(--hero-bottom)); }
.sw-coral-soft { --sample: var(--coral-soft); }
.sw-on-dark { --sample: var(--on-dark); }
.sw-on-muted { --sample: linear-gradient(var(--on-dark-muted),var(--on-dark-muted)),linear-gradient(var(--hero-bottom),var(--hero-bottom)); }
.sw-on-faint { --sample: linear-gradient(var(--on-dark-faint),var(--on-dark-faint)),linear-gradient(var(--hero-bottom),var(--hero-bottom)); }
.sw-line { --sample: linear-gradient(var(--on-dark-line),var(--on-dark-line)),linear-gradient(var(--hero-bottom),var(--hero-bottom)); }
.sw-line-strong { --sample: linear-gradient(var(--on-dark-line-strong),var(--on-dark-line-strong)),linear-gradient(var(--hero-bottom),var(--hero-bottom)); }
.sw-fill { --sample: linear-gradient(var(--on-dark-fill),var(--on-dark-fill)),linear-gradient(var(--hero-bottom),var(--hero-bottom)); }
.sw-fill2 { --sample: linear-gradient(var(--on-dark-fill-2),var(--on-dark-fill-2)),linear-gradient(var(--hero-bottom),var(--hero-bottom)); }
.sw-hover { --sample: linear-gradient(var(--on-dark-fill-hover),var(--on-dark-fill-hover)),linear-gradient(var(--hero-bottom),var(--hero-bottom)); }
.sw-veil { --sample: var(--veil); }
.sw-clear { --sample: var(--clear); }
.preview-dark { padding: 24px; border-radius: var(--radius); background: var(--hero-bottom); color: var(--on-dark); }
.preview-mobile { display: none; margin-left: auto; }
.preview-mobile summary { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; list-style: none; cursor: pointer; }
.preview-mobile summary::-webkit-details-marker { display: none; }
.preview-mobile nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; padding: 16px var(--gutter); background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); }
.preview-mobile nav a { display: flex; align-items: center; min-height: 44px; padding: 12px; color: var(--text); }
@media (max-width: 1280px) {
  .preview-mobile { display: block; }
}
@media (max-width: 1100px) {
  .toast { right: -12px; }
  .dl-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .hero h1 { font-size: clamp(24px,4vw,30px); }
}
@media (max-width: 760px) {
  .cols { grid-template-columns: minmax(0,1fr); }
  .yaml { display: none; }
  .lede { font-size: 15px; }
  .toast { top: -20px; right: 8px; padding: 10px 16px 10px 12px; font-size: 13px; }
  .dl-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .feature-card { padding: 28px 24px 170px; }
  .client-card { padding: 24px; }
  .toast .muted, .toast .sep { display: none; }
  .os-row { gap: 8px; }
  .os-label { display: none; }
  .os-chip { padding-inline: 10px; }
}
@media (max-width: 600px) {
  .win-body { grid-template-columns: minmax(0,1fr); }
  .side { display: none; }
  .device-main { padding: 18px 18px 24px; }
  .device::before { left: 18px; right: 18px; }
  .device::after { left: 40px; right: 40px; }
}
@media (max-width: 560px) {
  .dl-grid { grid-template-columns: minmax(0,1fr); }
  .btn { min-height: 46px; padding-inline: 20px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse::after { animation: none; }
}