/* 首屏按已确认的自然高度构图，不使用视口高度撑空场。 */
.hero {
  position: relative; overflow: hidden; overflow-x: clip;
  padding-top: 44px;
  background: linear-gradient(180deg,var(--hero-a) 0%,var(--hero-mid) 50%,var(--hero-b) 100%);
  color: var(--on-dark);
}
.hero-copy { position: relative; z-index: 2; max-width: 920px; margin-inline: auto; padding-inline: 32px; text-align: center; }
.facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; }
.facts li {
  display: inline-flex; align-items: center; justify-content: center; min-height: 27px; padding: 2px 13px;
  border: 1px solid var(--on-dark-line); border-radius: var(--radius-pill);
  background: var(--on-dark-fill); color: var(--on-dark-muted);
  font-size: 12.5px; letter-spacing: .01em;
}
.facts .mono { font-size: 12px; }
.hero h1 { margin-top: 20px; font-size: clamp(30px,3.4vw,48px); color: var(--on-dark); }
.hero-sub { max-width: 720px; margin: 14px auto 0; font-size: 18px; line-height: 1.6; color: var(--on-dark-muted); }
.hero-sub strong {
  font-weight: var(--weight-medium); color: var(--on-dark);
  background-image: linear-gradient(var(--sun),var(--sun));
  background-repeat: no-repeat; background-size: 100% 2px; background-position: 0 100%; padding-bottom: 3px;
}
.cta { margin-top: 28px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.platforms { margin-top: 22px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; list-style: none; }
.platforms li { display: flex; align-items: center; }
.platforms li + li::before { content: ""; width: 1px; height: 12px; background: var(--on-dark-line); }
.platforms a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding-inline: 16px; min-height: 20px; font-size: 13px; color: var(--on-dark-soft); transition: color var(--duration) var(--ease); }
.platforms a:hover { color: var(--on-dark); }
.platforms svg { width: 15px; height: 15px; }
.device { position: relative; height: 470px; margin-top: 14px; }
.device-stage { position: absolute; left: 50%; bottom: 0; width: 1440px; height: 470px; transform: translateX(-50%); transform-origin: 50% 100%; }
.sun-halo, .sun-disc { position: absolute; border-radius: var(--radius-round); }
.sun-halo { left: -48px; top: 50px; width: 1536px; height: 1536px; background: radial-gradient(circle closest-side,var(--sun-glow) 0%,var(--sun-glow) 72%,var(--sun-0) 100%); color: var(--on-dark); opacity: .7; }
.sun-disc { left: 72px; top: 170px; width: 1296px; height: 1296px; background: radial-gradient(circle closest-side,var(--sun) 0%,var(--sun) 58%,var(--sun-80) 80%,var(--sun-40) 93%,var(--sun-0) 100%); color: var(--text); }
.corona { position: absolute; left: 0; top: 0; width: 1440px; height: 470px; overflow: visible; }
.ray { stroke: var(--ray); stroke-width: 1; stroke-linecap: round; }
.ray--key { stroke: var(--ray-key); }
.ray-tip { fill: var(--on-dark); }
.ray-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; fill: var(--on-dark-muted); }
.card {
  position: absolute; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.card--settings { left: 160px; top: 214px; width: 300px; }
.card--yaml { left: 560px; top: 64px; width: 320px; box-shadow: var(--shadow-card-lift); z-index: 1; }
.card--notice { left: 980px; top: 272px; width: 300px; }
.chrome { position: relative; display: flex; align-items: center; height: 34px; padding-inline: 12px; background: var(--bg-panel); color: var(--text); border-bottom: 1px solid var(--border); }
.dots { display: flex; gap: 6px; flex-shrink: 0; }
.dot { display: inline-block; width: 9px; height: 9px; flex-shrink: 0; border-radius: var(--radius-round); }
.dot--r { background: var(--error); }
.dot--y { background: var(--warn); }
.dot--g { background: var(--success); }
.chrome-title { position: absolute; left: 0; right: 0; text-align: center; font-size: 12.5px; color: var(--text-muted); }
.chrome-file { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text); }
.chrome-file svg { width: 12px; height: 12px; color: var(--accent); }
.chrome-tag { margin-left: auto; padding: 2px 7px; border-radius: var(--radius-xs); background: var(--bg-panel-2); color: var(--accent-dark); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; }
.set-list { padding: 4px 16px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--border); }
.set-row:last-child { border-bottom: 0; }
.set-name { display: block; font-size: 14px; line-height: 1.4; color: var(--text); }
.set-sub { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 11px; line-height: 1.4; color: var(--text-muted); }
.toggle { position: relative; flex-shrink: 0; width: 34px; height: 20px; border-radius: var(--radius-pill); background: var(--toggle-off); }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: var(--radius-round); background: var(--bg); box-shadow: var(--shadow-knob); }
.toggle.is-on { background: var(--accent); }
.toggle.is-on::after { left: 16px; }
.yaml { padding-block: 12px; counter-reset: ln; list-style: none; }
.yaml li { counter-increment: ln; padding-inline: 14px; font-family: var(--font-mono); font-size: 12.5px; line-height: 21px; white-space: pre; color: var(--text); }
.yaml li::before { content: counter(ln); display: inline-block; width: 16px; margin-right: 14px; text-align: right; color: var(--text-faint); }
.yaml li.is-hl { background: var(--bg-panel); color: var(--text); }
.yaml .k { color: var(--accent); }
.yaml .p { color: var(--text-muted); }
.yaml .t { color: var(--accent-dark); }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 16px; }
.notice-dot { flex-shrink: 0; width: 10px; height: 10px; margin-top: 5px; border-radius: var(--radius-round); background: var(--sun); box-shadow: 0 0 0 4px var(--sun-ring); }
.notice-body { flex: 1; min-width: 0; }
.notice-title { font-size: 14px; line-height: 1.45; font-weight: var(--weight-medium); color: var(--text); }
.notice-sub { margin-top: 4px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.4; color: var(--text-muted); }
.notice-time { flex-shrink: 0; font-size: 11.5px; line-height: 1.7; color: var(--text-muted); }
.dl-entry { background: var(--bg); color: var(--text); padding-top: 96px; padding-bottom: 112px; }
.dl-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; }
.dl-card { display: flex; flex-direction: column; height: 100%; padding: 22px 20px; background: var(--bg-panel); color: var(--text); border: 1px solid var(--bg-panel); border-radius: var(--radius-sm); transition: background-color var(--duration) var(--ease),box-shadow var(--duration) var(--ease),border-color var(--duration) var(--ease); }
.dl-card:hover { background: var(--bg-panel-2); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-soft); }
.dl-card svg { width: 22px; height: 22px; color: var(--accent); }
.dl-name { margin-top: 18px; font-size: 17px; }
.dl-sub { margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--text-muted); flex: 1; }
.dl-link { margin-top: 16px; font-size: 14px; color: var(--accent); }
.tabs { min-width: 0; }
.tab-list, [role="tablist"] { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
[role="tab"] {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  max-width: 100%; padding: 9px 20px; border: 1px solid var(--border);
  border-radius: var(--radius-pill); background: var(--bg); color: var(--text-muted);
  font-size: 15px; line-height: 1.5;
}
[role="tab"]:hover { background: var(--bg-panel); color: var(--accent-dark); }
[role="tab"][aria-selected="true"] { background: var(--bg-panel-2); color: var(--accent-dark); border-color: var(--bg-panel-2); }
[role="tabpanel"] { min-width: 0; scroll-margin-top: 24px; }
[role="tabpanel"].tab-enter { animation: panel-in .25s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.feature-pair { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 24px; }
.feature-card { position: relative; min-width: 0; min-height: 500px; padding: 38px 36px 210px; border: 1px solid var(--bg-panel); border-radius: var(--radius-sm); background: var(--bg-panel); color: var(--text); overflow: hidden; }
.feature-card:nth-child(2) { background: var(--bg-panel-2); color: var(--text); border-color: var(--bg-panel-2); }
.feature-card h3 { font-size: 25px; }
.feature-card p { margin-top: 18px; color: var(--text-muted); line-height: 1.85; }
.feature-card .text-link { display: inline-block; margin-top: 22px; }
.feature-window { position: absolute; right: -22px; bottom: -24px; width: min(85%,400px); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.feature-window pre { margin: 0; border: 0; background: var(--bg); color: var(--text); padding: 18px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 16px; background: var(--bg); color: var(--text); border-block: 1px solid var(--border); }
.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(--accent-dark); }
.toc--sticky { position: sticky; top: 0; z-index: 8; }
.faq-item { background: var(--bg); color: var(--text); border-bottom: 1px solid var(--border); }
.faq-item summary { position: relative; cursor: pointer; padding: 22px 40px 22px 0; font-size: 17px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 8px; top: 20px; font-size: 24px; line-height: 1.4; color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 24px; color: var(--text-muted); }
.faq-answer > * + * { margin-top: 12px; }
.term-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-panel); color: var(--text); }
.term-card h3 { font-size: 22px; }
.term-en { display: block; margin-top: 5px; font-family: var(--font-mono); font-size: 12px; color: var(--accent-dark); overflow-wrap: anywhere; }
.term-card p { margin-top: 18px; color: var(--text-muted); }
.client-card { min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.client-card--first { border-color: var(--accent); }
.client-head { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.client-icon { width: 56px; height: 56px; flex-shrink: 0; }
.client-info { flex: 1; min-width: 0; }
.client-info h3 { font-size: 22px; }
.client-description { margin-top: 18px; color: var(--text-muted); }
.client-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.client-meta { margin-top: 12px; color: var(--text-muted); font-size: 13px; }
[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; gap: 6px;
  max-width: 100%; min-height: 26px; padding: 3px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--bg-panel); color: var(--accent-dark);
  font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; white-space: normal;
}
.badge--first { background: var(--accent); color: var(--on-dark); border-color: var(--accent); }
.badge--recommended { background: var(--bg-panel-2); color: var(--accent-dark); border-color: var(--bg-panel-2); }
.badge--archived { background: var(--bg); color: var(--text-muted); border-color: var(--border); }
.badge--status::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-round); background: var(--success); flex-shrink: 0; }
.post-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-muted); }
.post-card h3 { margin-top: 20px; font-size: 23px; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { margin-top: 14px; color: var(--text-muted); flex: 1; }
.post-card .text-link { align-self: flex-start; margin-top: 24px; }
.callout { margin-block: 24px; padding: 22px 24px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); background: var(--bg-panel); color: var(--text); }
.callout h3 { font-size: 17px; margin-bottom: 8px; }
.callout p + p { margin-top: 10px; }
.callout--warn { border-left-color: var(--warn); }
.callout--error { border-left-color: var(--error); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.data-table { width: 100%; border-collapse: collapse; background: var(--bg); color: var(--text); font-size: 14px; text-align: left; }
.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);
  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-medium); }
.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; width: 100%; border-collapse: collapse;
  background: var(--bg); color: var(--text);
}
.table-scroll code, .prose table code, .article-body table code { overflow-wrap: anywhere; white-space: normal; }
.dl-fab {
  position: fixed; z-index: 30; right: 24px; bottom: 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  max-width: calc(100% - 32px); min-height: 56px; padding: 12px 20px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--accent-dark); box-shadow: var(--shadow-soft);
}
.dl-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.dl-fab strong { display: block; font-size: 14px; }
.dl-fab small { display: block; color: var(--text-muted); font-size: 12px; }
.dl-fab:hover { background: var(--bg-panel); color: var(--accent-dark); }
.article-download { margin-top: 48px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-soft); }
.article-download p { margin-top: 12px; color: var(--text-muted); }
.article-download .btn { margin-top: 20px; }
.has-article-fab .site-footer { padding-bottom: 110px; }
/* 预览页专用展示，不影响正式页面的组件排版。 */
.preview-block + .preview-block { margin-top: 64px; }
.preview-block > h2 { margin-bottom: 24px; }
.preview-block > h3 { margin-bottom: 16px; }
.preview-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.preview-dark { padding: 28px; border-radius: var(--radius-sm); background: var(--hero-b); color: var(--on-dark); }
.palette-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.swatch { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); min-width: 0; overflow: hidden; }
.swatch::before { content: ""; display: block; height: 64px; background: var(--swatch); }
.swatch code { display: block; padding: 12px; font-size: 11px; color: var(--text-muted); }
.sw-bg { --swatch: var(--bg); }
.sw-panel { --swatch: var(--bg-panel); }
.sw-panel2 { --swatch: var(--bg-panel-2); }
.sw-border { --swatch: var(--border); }
.sw-accent { --swatch: var(--accent); }
.sw-accent-dark { --swatch: var(--accent-dark); }
.sw-text { --swatch: var(--text); }
.sw-muted { --swatch: var(--text-muted); }
.sw-faint { --swatch: var(--text-faint); }
.sw-success { --swatch: var(--success); }
.sw-warn { --swatch: var(--warn); }
.sw-error { --swatch: var(--error); }
.sw-hero-a { --swatch: var(--hero-a); }
.sw-hero-mid { --swatch: var(--hero-mid); }
.sw-hero-b { --swatch: var(--hero-b); }
.sw-sun { --swatch: var(--sun); }
.sw-sun80 { --swatch: var(--sun-80); }
.sw-sun40 { --swatch: var(--sun-40); }
.sw-glow { --swatch: var(--sun-glow); }
.sw-ring { --swatch: var(--sun-ring); }
.sw-sun0 { --swatch: var(--sun-0); }
.sw-on { --swatch: var(--on-dark); }
.sw-on-muted { --swatch: var(--on-dark-muted); }
.sw-on-soft { --swatch: var(--on-dark-soft); }
.sw-on-line { --swatch: var(--on-dark-line); }
.sw-on-fill { --swatch: var(--on-dark-fill); }
.sw-on-hover { --swatch: var(--on-dark-hover); }
.sw-ray { --swatch: var(--ray); }
.sw-ray-key { --swatch: var(--ray-key); }
.sw-toggle { --swatch: var(--toggle-off); }
.sw-clear { --swatch: var(--clear); }
.sw-veil { --swatch: var(--veil); }
.swatch--dark::before { background: linear-gradient(var(--swatch),var(--swatch)),var(--hero-b); }
@media (max-width: 1240px) {
  .device { height: 395px; }
  .device-stage { transform: translateX(-50%) scale(.84); }
}
@media (max-width: 900px) {
  .feature-pair { grid-template-columns: minmax(0,1fr); }
  .feature-card { min-height: 460px; }
}
@media (max-width: 768px) {
  .hero { padding-top: 36px; }
  .hero-copy { padding-inline: var(--gutter); }
  .hero h1 { font-size: clamp(24px,4vw,30px); }
  .hero-sub { font-size: 16px; }
  .cta { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .platforms { row-gap: 10px; }
  .device { height: 255px; }
  .device-stage { transform: translateX(-50%) scale(.54); }
  .dl-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .palette-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .platforms a { padding-inline: 11px; min-height: 28px; }
  .feature-card { padding: 26px 24px 210px; }
  .feature-card h3 { font-size: 23px; }
  [role="tab"] { padding-inline: 14px; font-size: 14px; }
  .client-card, .term-card, .post-card, .article-download { padding: 22px; }
  .client-actions .btn { width: 100%; }
  .dl-fab { right: 16px; bottom: 16px; }
  .dl-entry { padding-top: 64px; padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  [role="tabpanel"].tab-enter { animation: none; }
}