/* 已确认的首页构图 */
.hero { padding-top: 36px; text-align: center; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--text-muted);
  font: var(--regular) 12px/16px var(--font-mono);
  letter-spacing: .14em;
}
.hero-title {
  margin: 0 0 16px;
  font-size: var(--h1-size);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.hero-title .w { display: inline-block; white-space: nowrap; animation: word-rise .62s cubic-bezier(.2,.7,.2,1) both; }
.hero-title .w2 { animation-delay: .12s; }
.hero-title .w3 { animation-delay: .24s; letter-spacing: -.02em; }
.hero-title .hl { position: relative; isolation: isolate; color: var(--accent); }
.hl-bar {
  position: absolute;
  inset: auto -.06em .06em;
  height: .34em;
  background: var(--accent-tint);
  color: var(--text);
  border-radius: var(--r-mark);
  z-index: -1;
  transform-origin: left center;
  animation: bar-sweep .4s cubic-bezier(.3,.7,.2,1) .62s both;
}
@keyframes word-rise {
  from { opacity: 0; transform: translateY(.45em); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bar-sweep {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.lead { max-width: 640px; margin: 0 auto 26px; font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.lead strong { font-weight: var(--medium); color: var(--text); }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hero .btn-primary:hover, .hero .btn-primary:active { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }
.facts, .platforms { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; padding: 0; }
.facts { gap: 72px; margin: 0 0 22px; }
.facts li { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.fact-num { color: var(--accent); font: var(--regular) 28px/32px var(--font-display); letter-spacing: -.02em; }
.fact-label { margin-top: 4px; font-size: 13.5px; line-height: 20px; color: var(--text-muted); }
.fact-label .mono { font-size: 12.5px; color: var(--text); }
.platforms { gap: 8px; margin: 0 0 28px; }
.platforms a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding-inline: 12px;
  border: var(--line) solid var(--border);
  border-radius: var(--r);
  font-size: 13.5px;
  color: var(--text-muted);
  transition: border-color var(--swift), color var(--swift);
}
.platforms a:hover { border-color: var(--border-strong); color: var(--text); }
.platforms svg { width: 14px; height: 14px; color: var(--text); }

.device-panel { background: var(--bg-panel); color: var(--text); border-radius: var(--r); padding: 20px; }
.field {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 30px;
  border-radius: var(--r);
  overflow: hidden;
  background:
    radial-gradient(55% 60% at 46% 34%, var(--field-glow), var(--clear) 72%),
    linear-gradient(180deg, var(--clear) 58%, var(--field-c)),
    linear-gradient(135deg, var(--field-a), var(--field-b));
  color: var(--text);
}
.stage { position: relative; width: 692px; height: 344px; text-align: left; }
.win {
  position: absolute;
  inset: 0 auto auto 0;
  width: 640px;
  border: var(--line) solid var(--border);
  border-radius: var(--r);
  background: var(--win-bg);
  color: var(--text);
  overflow: hidden;
}
.win-chrome {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding-inline: 13px;
  background: var(--win-chrome);
  color: var(--text);
  border-bottom: var(--line) solid var(--border);
}
.tl { width: 11px; height: 11px; flex-shrink: 0; border-radius: var(--r-round); box-shadow: inset 0 0 0 .5px var(--tl-ring); }
.tl-r { background: var(--tl-red); color: var(--text); }
.tl-y { background: var(--tl-yellow); color: var(--text); }
.tl-g { background: var(--tl-green); color: var(--text); }
.win-title { position: absolute; inset-inline: 0; text-align: center; color: var(--text-muted); font-size: 12px; font-weight: var(--medium); letter-spacing: .01em; }
.win-body { display: grid; grid-template-columns: 128px minmax(0, 1fr); }
.win-side {
  list-style: none;
  margin: 0;
  padding: 10px 8px;
  background: var(--win-side);
  color: var(--text-muted);
  border-right: var(--line) solid var(--border);
}
.win-side li { min-height: 26px; padding-inline: 10px; border-radius: var(--r-sm); font-size: 12.5px; line-height: 26px; }
.win-side li.is-on { background: var(--bg-panel-2); color: var(--text); font-weight: var(--medium); }
.win-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 14px 16px 16px; }
.set-head { margin: 0; min-height: 22px; font-size: 11px; line-height: 22px; letter-spacing: .04em; color: var(--text-faint); }
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 32px;
  padding-block: 2px;
  border-bottom: var(--line) solid var(--border);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.set-row:last-child { border-bottom: 0; }
.sw {
  position: relative;
  width: 26px;
  height: 15px;
  flex-shrink: 0;
  border-radius: var(--r-switch);
  background: var(--bg-panel-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.sw::after {
  content: "";
  position: absolute;
  inset: 2px auto auto 2px;
  width: 11px;
  height: 11px;
  border-radius: var(--r-round);
  background: var(--knob);
  color: var(--text);
  box-shadow: var(--shadow-knob);
}
.sw.is-on { background: var(--text); color: var(--on-accent); box-shadow: none; }
.sw.is-on::after { left: 13px; }
.mini-btn, .val-box {
  flex-shrink: 0;
  min-height: 20px;
  padding-inline: 9px;
  border: var(--line) solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--input-bg);
  color: var(--text);
  font-size: 11px;
  line-height: 18px;
}
.val { font-size: 12px; color: var(--text-muted); }
.val-box { min-width: 48px; padding-inline: 7px; border-color: var(--border); font-family: var(--font-mono); font-size: 11.5px; text-align: right; }
.val .chev { margin-inline-start: 4px; color: var(--text-faint); }

.auth {
  position: absolute;
  left: 392px;
  top: 136px;
  width: 300px;
  padding: 16px;
  background: var(--dialog-bg);
  color: var(--text);
  border: var(--line) solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-dialog);
  transform: rotate(-1.5deg);
}
.auth-head { display: flex; gap: 12px; align-items: flex-start; }
.auth-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--r-icon);
  background: var(--text);
  color: var(--on-accent);
}
.auth-icon > svg { width: 24px; height: 24px; }
.auth-icon .cat-eye { fill: var(--text); }
.auth-lock {
  position: absolute;
  inset: auto -5px -5px auto;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: var(--line) solid var(--border);
  border-radius: var(--r-round);
  background: var(--dialog-bg);
  color: var(--text-muted);
}
.auth-lock svg { width: 10px; height: 10px; }
.auth-title { margin: 0; font-size: 12.5px; font-weight: var(--semibold); line-height: 18px; }
.auth-sub { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 18px; }
.auth-fields { display: grid; gap: 8px; margin-top: 12px; }
.auth-field { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 8px; }
.auth-label { font-size: 11.5px; text-align: right; color: var(--text-muted); }
.auth-input {
  height: 26px;
  padding-inline: 8px;
  border: var(--line) solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--input-bg);
  color: var(--text-faint);
  font-size: 12px;
  line-height: 24px;
  letter-spacing: .12em;
}
.auth-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.a-btn {
  min-width: 64px;
  min-height: 26px;
  padding-inline: 12px;
  border: var(--line) solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--dialog-bg);
  color: var(--text);
  font-size: 12px;
  line-height: 24px;
  text-align: center;
}
.a-btn-ok { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: var(--medium); }
.menubar {
  display: flex;
  align-items: center;
  min-height: 36px;
  margin-top: 20px;
  padding-inline: 14px;
  border: var(--line) solid var(--border);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--text-muted);
  font: var(--regular) 12px/1.5 var(--font-mono);
  text-align: left;
}
.mb-app { display: inline-flex; align-items: center; gap: 8px; padding-right: 18px; color: var(--text); font-weight: var(--medium); }
.mb-app svg { width: 13px; height: 13px; }
.mb-app .cat-eye { fill: var(--bg); }
.mb-seg { padding-inline: 18px; border-left: var(--line) solid var(--border); }
.mb-seg b { font-weight: var(--regular); color: var(--text); }
.mb-end { margin-inline-start: auto; }
.peek { padding-block: 96px 88px; text-align: center; }
.sec-title { margin: 0 0 14px; font-size: var(--h2-size); }
.sec-title .accent { color: var(--accent); }
.sec-lead { max-width: 620px; margin: 0 auto; color: var(--text-muted); }

/* 错位面板与小型设置示意 */
.feature-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); text-align: left; margin-top: 40px; }
.feature-card { grid-column: span 5; display: flex; flex-direction: column; }
.feature-card:nth-child(4n + 1), .feature-card:nth-child(4n) { grid-column: span 7; }
.feature-card h3 { font-family: var(--font-editorial); }
.feature-card h3::before, .footer-label::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin-block-end: 12px;
  border-radius: var(--r-mark);
  background: var(--accent);
  color: var(--text);
}
.feature-card p { color: var(--text-muted); }
.feature-card > .field { flex: 1; align-items: center; min-height: 164px; padding: 18px; }
.field-sand { background: linear-gradient(145deg, var(--field-b), var(--field-c)), var(--bg-panel-2); color: var(--text); }
.field-dove { background: linear-gradient(150deg, var(--field-c), var(--field-a)), var(--bg-panel); color: var(--text); }
.setting-slip { width: min(100%, 300px); min-width: 0; padding: 12px; border: var(--line) solid var(--border); border-radius: var(--r); background: var(--win-bg); color: var(--text); font-size: var(--small-size); }
.setting-slip pre { margin: 0; background: var(--win-bg); color: var(--text); border: 0; padding: 0; }
.setting-slip .auth-input { flex: 1; min-width: 0; }
.setting-slip .action-row { gap: 6px; }
.segment { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.segment span { padding: 4px 8px; }
.segment .is-on { border-radius: var(--r-sm); background: var(--bg-panel-2); color: var(--text); }

/* 导航、文档和下载组件 */
.switch-tabs, .toc-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 5px; border: var(--line) solid var(--border); border-radius: var(--r); background: var(--bg-panel); color: var(--text); }
.switch-tabs [role="tab"], .toc-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  max-width: 100%;
  padding: 6px 14px;
  border: 0;
  border-bottom: 2px solid var(--clear);
  border-radius: var(--r-sm);
  background: var(--clear);
  color: var(--text-muted);
  text-align: center;
  overflow-wrap: anywhere;
}
.switch-tabs [role="tab"]:hover, .toc-tabs a:hover { background: var(--bg-panel-2); color: var(--text); }
.switch-tabs [role="tab"][aria-selected="true"], .toc-tabs a[aria-current] { background: var(--bg); color: var(--text); border-bottom-color: var(--accent); }
[role="tabpanel"] { min-width: 0; margin-top: 14px; }
.faq-item { border-bottom: var(--line) solid var(--border); }
.faq-item summary {
  position: relative;
  list-style: none;
  min-height: var(--tap);
  padding: 11px 32px 11px 0;
  overflow-wrap: anywhere;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  position: absolute;
  inset: 10px 8px auto auto;
  content: "+";
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer { max-width: var(--reading); padding-block-end: 12px; color: var(--text-muted); }
.faq-answer > :last-child { margin-bottom: 0; }
.term-card { border-top: 2px solid var(--border-strong); }
.term-card code { font-size: .95em; }
.client-card { display: grid; gap: 12px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.client-card h3, .client-card p { margin: 0; }
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card h3, .post-card p { margin: 0; }
.post-card h3 a:hover { text-decoration: underline; text-underline-offset: .18em; }
.post-card time, .client-card [data-rev] { color: var(--text-muted); font: var(--regular) 12px/1.5 var(--font-mono); }
.post-card .text-link { align-self: flex-start; margin-top: auto; }
[data-rev]:empty { display: none; }
.badge-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.badge, .tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 8px;
  border: var(--line) solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.badge-first { background: var(--accent-tint); color: var(--text); border-color: var(--accent-dark); }
.badge-recommended { background: var(--bg); color: var(--text); border-color: var(--success); }
.badge-archived { background: var(--bg-panel-2); color: var(--text-muted); border-style: dashed; }
.callout {
  margin: 18px 0;
  padding: 14px 16px;
  border: var(--line) solid var(--border);
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--r);
  background: var(--bg-panel);
  color: var(--text);
}
.callout > :last-child { margin-bottom: 0; }
.table-wrap, .prose table, .reading table {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.table-wrap { border: var(--line) solid var(--border); border-radius: var(--r); }
.prose table, .reading table { display: block; }
.data-table, .prose table, .reading table { width: 100%; border-collapse: collapse; text-align: start; font-size: var(--small-size); }
.table-wrap > table { display: table; overflow: visible; }
:where(.data-table, .prose table, .reading table) :is(th, td) {
  min-width: 7em;
  padding: 10px 12px;
  border-bottom: var(--line) solid var(--border);
  text-align: start;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
:where(.data-table, .prose table, .reading table) th { background: var(--bg-panel-2); color: var(--text); font-weight: var(--medium); }
.data-table caption { padding: 9px 12px; text-align: start; color: var(--text-muted); }
.article-download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-block: 32px; }
.article-download > div { min-width: 0; flex: 1 1 230px; }
.article-download p { margin-bottom: 0; }
.dl-fab {
  position: fixed;
  z-index: 10;
  inset: auto max(var(--gutter), env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  max-width: calc(100vw - 2 * var(--gutter));
  padding: 8px 14px;
  border: var(--line) solid var(--accent-dark);
  border-radius: var(--r);
  background: var(--accent-dark);
  color: var(--on-accent);
  font-size: var(--small-size);
  overflow-wrap: anywhere;
}
.dl-fab:hover { background: var(--text); color: var(--on-accent); border-color: var(--text); }
.dl-fab svg { width: 16px; height: 16px; }
.has-dl-fab .site-footer { padding-bottom: 88px; }

/* 预览页样本架 */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr)); gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.swatch-grid li { min-width: 0; padding: 8px; border: var(--line) solid var(--border); border-radius: var(--r); background: var(--bg); color: var(--text); font-size: 12px; }
.swatch-grid li::before { display: block; height: 32px; margin-bottom: 6px; border: var(--line) solid var(--border); border-radius: var(--r-sm); background: var(--sample); color: var(--text); content: ""; }
.swatch-grid li:nth-child(1) { --sample: var(--bg); }
.swatch-grid li:nth-child(2) { --sample: var(--bg-panel); }
.swatch-grid li:nth-child(3) { --sample: var(--bg-panel-2); }
.swatch-grid li:nth-child(4) { --sample: var(--border); }
.swatch-grid li:nth-child(5) { --sample: var(--border-strong); }
.swatch-grid li:nth-child(6) { --sample: var(--accent); }
.swatch-grid li:nth-child(7) { --sample: var(--accent-dark); }
.swatch-grid li:nth-child(8) { --sample: var(--accent-tint); }
.swatch-grid li:nth-child(9) { --sample: var(--text); }
.swatch-grid li:nth-child(10) { --sample: var(--text-muted); }
.swatch-grid li:nth-child(11) { --sample: var(--text-faint); }
.swatch-grid li:nth-child(12) { --sample: var(--on-accent); }
.swatch-grid li:nth-child(13) { --sample: var(--success); }
.swatch-grid li:nth-child(14) { --sample: var(--warn); }
.swatch-grid li:nth-child(15) { --sample: var(--error); }
.swatch-grid li:nth-child(16) { --sample: var(--clear); }
.swatch-grid li:nth-child(17) { --sample: var(--veil); }
.swatch-grid li:nth-child(18) { --sample: var(--field-a); }
.swatch-grid li:nth-child(19) { --sample: var(--field-b); }
.swatch-grid li:nth-child(20) { --sample: var(--field-c); }
.swatch-grid li:nth-child(21) { --sample: var(--field-glow); }
.swatch-grid li:nth-child(22) { --sample: var(--win-bg); }
.swatch-grid li:nth-child(23) { --sample: var(--win-side); }
.swatch-grid li:nth-child(24) { --sample: var(--win-chrome); }
.swatch-grid li:nth-child(25) { --sample: var(--dialog-bg); }
.swatch-grid li:nth-child(26) { --sample: var(--input-bg); }
.swatch-grid li:nth-child(27) { --sample: var(--knob); }
.swatch-grid li:nth-child(28) { --sample: var(--tl-red); }
.swatch-grid li:nth-child(29) { --sample: var(--tl-yellow); }
.swatch-grid li:nth-child(30) { --sample: var(--tl-green); }
.swatch-grid li:nth-child(31) { --sample: var(--tl-ring); }
.preview-stack > * + * { margin-block-start: 24px; }
.preview-type { font-family: var(--font-display); font-size: var(--h1-size); font-weight: var(--regular); line-height: 1.12; letter-spacing: -.02em; }

@media (max-width: 960px) {
  .menubar { flex-wrap: wrap; padding-block: 6px; row-gap: 4px; }
  .mb-end { margin-inline-start: 0; }
}
@media (max-width: 860px) {
  .facts { gap: 28px; }
  .stage { width: 100%; height: auto; }
  .win { position: relative; width: 100%; }
  .win-body { grid-template-columns: minmax(0, 1fr); }
  .win-side { display: none; }
  .auth { position: relative; inset: auto; margin: -56px 8px 0 auto; width: min(300px, 88%); }
  .field { padding: 24px 16px; }
  .menubar .mb-hide { display: none; }
}
@media (max-width: 640px) {
  .hero-title { letter-spacing: -.02em; }
  .auth { transform: none; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-grid > .feature-card { grid-column: auto; }
  .peek { padding-block: 64px; }
}
@media (max-width: 560px) {
  .device-panel { padding: 10px; }
  .device-panel .field { padding-inline: 10px; }
  .win-main { grid-template-columns: minmax(0, 1fr); }
  .auth { margin-top: -16px; width: min(300px, 95%); }
  .cta { flex-direction: column; align-items: stretch; }
  .facts { gap: 10px 20px; }
  .lead { font-size: var(--body-size); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title .w, .hl-bar { animation: none; }
  .platforms a { transition: none; }
}