/* 已确认的首页首屏 */
.hero { padding-top: 36px; line-height: normal; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 26px;
  max-width: 100%;
  padding: 0 12px 0 10px;
  font-size: 12.5px;
  color: var(--c-muted);
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
}
.pulse { position: relative; width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--c-accent); color: var(--c-text); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: var(--r-pill); background: var(--pulse-ring); color: var(--c-text); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(.55); opacity: 0; }
  50% { transform: scale(1); opacity: 1; }
}
.hero h1 { margin: 16px 0 0; font-weight: 900; font-size: var(--type-h1); line-height: 1.13; letter-spacing: -.03em; isolation: isolate; text-wrap: wrap; }
.hero-line { display: block; }
.hl { position: relative; z-index: 0; white-space: nowrap; padding: 0 .02em; }
.hl::before { content: ""; position: absolute; inset: .14em -.12em .02em; background: var(--c-mint); color: var(--c-text); border-radius: var(--r-mark); z-index: -1; }
.lede { margin: 14px 0 0; max-width: 640px; font-size: 17px; line-height: 1.6; color: var(--c-muted); }
.lede strong { color: var(--c-text); font-weight: 650; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.hero .btn-primary { border: 0; color: var(--c-on-dark); background: var(--c-accent); }
.hero .btn-primary:hover { color: var(--c-on-dark); background: var(--c-accent-dark); }

.os-row { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 18px; font-size: 13.5px; }
.row-label { font-size: 12px; color: var(--c-muted); letter-spacing: .04em; min-width: 30px; }
.os { display: inline-flex; align-items: center; gap: 7px; color: var(--c-text); font-weight: 600; transition: color var(--motion-fast); }
.os svg { width: 16px; height: 16px; }
.os:hover { color: var(--c-accent-dark); }
.proto { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.proto ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.proto li { min-height: 24px; display: inline-flex; align-items: center; padding: 0 10px; font-family: var(--f-mono); font-size: 12px; color: var(--c-muted); background: var(--c-panel); border: 1px solid var(--c-border); border-radius: var(--r-pill); }
.proto .row-label { margin-right: 14px; }

.stage {
  position: relative;
  width: min(var(--stage-w), calc(100% - 48px));
  height: 408px;
  margin: 36px auto 0;
  border-radius: var(--r-stage);
  background:
    linear-gradient(180deg, var(--stage-glow) 0%, var(--stage-glow-0) 55%),
    linear-gradient(100deg, var(--stage-leaf) 0%, var(--stage-sage) 20%, var(--stage-mist) 42%, var(--stage-moss) 60%, var(--stage-ink) 75%, var(--stage-night) 100%);
  color: var(--c-text);
}
.stage > * { position: absolute; }
.cap { z-index: 3; line-height: 1.45; }
.cap b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.005em; color: var(--c-text); }
.cap span { display: block; margin-top: 2px; font-size: 13px; color: var(--c-text); opacity: .72; }
.cap--dark b { color: var(--c-on-dark); }
.cap--dark span { color: var(--c-on-dark-muted); opacity: 1; }
.stage-line { z-index: 1; pointer-events: none; }
.stage-line--a, .stage-line--b { border-top: 1px dashed var(--line-light); }
.stage-line--b { border-color: var(--line-dark); }
.stage-line--c { border-left: 1px dashed var(--line-dark); }
.node {
  z-index: 4;
  width: 22px;
  height: 22px;
  border-radius: var(--r-control);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  background: var(--c-bg);
  color: var(--c-accent-dark);
  box-shadow: var(--shadow-btn);
  pointer-events: none;
}
.node svg { width: 11px; height: 11px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.node--dark { background: var(--stage-ink); color: var(--c-on-dark); border: 1px solid var(--node-dark-border); box-shadow: none; }

.c-sub { left: 2.7%; top: 34px; width: 23.2%; }
.w-sub { left: 2.7%; top: 96px; width: 23.2%; }
.c-core { left: 30.5%; top: 30px; width: 35.7%; }
.w-core { left: 30.5%; top: 92px; width: 35.7%; transform: translateY(-10px); }
.c-route { left: 70.83%; top: -100px; width: 25.3%; }
.w-route { left: 70.83%; top: -40px; width: 25.3%; }
.c-proxy { left: calc(70.83% + 50px); top: 121px; width: calc(25.3% - 50px); }
.w-proxy { left: 70.83%; top: 210px; width: 25.3%; }
.stage-line--a { left: 24%; right: 68%; top: 220px; }
.node-a { left: 28.2%; top: 220px; }
.stage-line--b { left: 62%; right: calc(29.17% - 24px); top: 143px; }
.stage-line--c { left: calc(70.83% + 24px); top: 60px; height: 160px; }
.node-b { left: calc(70.83% + 24px); top: 143px; }

.win { z-index: 2; background: var(--c-bg); color: var(--c-text); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; font-size: 12.5px; }
.win.w-core { box-shadow: var(--shadow-lift); }
.win-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; padding: 0 10px 0 12px; background: var(--c-panel); color: var(--c-text); border-bottom: 1px solid var(--c-border); font-weight: 650; }
.win-bar--sm { min-height: 32px; }
.win-title { display: inline-flex; align-items: center; gap: 8px; }
.app-mark { flex: none; width: 14px; height: 14px; border-radius: var(--r-mark); border: 1.5px solid var(--c-accent); position: relative; }
.app-mark::after { content: ""; position: absolute; left: 3px; top: 3px; width: 5px; height: 5px; border-radius: var(--r-pill); background: var(--c-accent); color: var(--c-text); }
.wctl, .wclose { width: 44px; height: 10px; color: var(--c-muted); fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.wclose { width: 10px; stroke-width: 1.3; }
.mock-form { padding: 14px 14px 4px; display: grid; gap: 10px; }
.mock-field { display: grid; grid-template-columns: minmax(0, 112px) minmax(0, 1fr); align-items: center; gap: 8px; }
.mock-field .lab { color: var(--c-muted); font-size: 12px; }
.mock-input { min-height: 28px; display: flex; align-items: center; padding: 3px 8px; border: 1px solid var(--c-border); border-radius: var(--r-control); background: var(--c-bg); color: var(--c-text); overflow-wrap: anywhere; }
.mono { font-family: var(--f-mono); font-size: 11.5px; }
.mock-input--short { width: 64px; max-width: 100%; }
.win-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 14px 14px; }
.mini-btn { min-height: 28px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--r-control); font-size: 12px; font-weight: 600; border: 1px solid var(--c-border-strong); color: var(--c-text); background: var(--c-bg); }
.mini-btn--go { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-dark); }
.tgl { position: relative; display: inline-block; flex: none; width: 30px; height: 17px; border-radius: var(--r-pill); background: var(--c-panel-2); color: var(--c-text); border: 1px solid var(--c-border); }
.tgl::after { content: ""; position: absolute; top: 1px; left: 1px; width: 13px; height: 13px; border-radius: var(--r-pill); background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-knob); }
.tgl.is-on { background: var(--c-accent); color: var(--c-text); border-color: var(--c-accent); }
.tgl.is-on::after { transform: translateX(13px); }

.menubar { display: flex; flex-wrap: wrap; gap: 4px; min-height: 30px; align-items: center; padding: 0 8px; border-bottom: 1px solid var(--c-border); }
.menubar span { padding: 3px 9px; border-radius: var(--r-mark); color: var(--c-text); }
.menubar .is-open { background: var(--c-panel-2); color: var(--c-text); font-weight: 600; }
.panel-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: flex-end; justify-content: space-between; min-height: 38px; padding: 4px 18px 0; border-bottom: 1px solid var(--c-border); }
.panel-head b { font-size: 13.5px; font-weight: 750; padding-bottom: 10px; }
.mock-tabs { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: var(--c-muted); }
.mock-tabs span { padding-bottom: 10px; border-bottom: 2px solid var(--c-clear); }
.mock-tabs .is-sel { color: var(--c-text); font-weight: 650; border-bottom-color: var(--c-text); }
.mock-rows { padding: 0 18px 8px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding-block: 4px; border-bottom: 1px solid var(--c-panel-2); }
.mock-row:last-child { border-bottom: 0; }
.mock-select { display: inline-flex; align-items: center; gap: 22px; min-height: 28px; padding: 3px 8px 3px 10px; border: 1px solid var(--c-border); border-radius: var(--r-control); font-weight: 600; }
.mock-select svg { width: 10px; height: 10px; stroke: var(--c-muted); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ctl { display: inline-flex; align-items: center; gap: 10px; }
.hint { font-size: 11.5px; color: var(--c-muted); }

.route-body { padding: 12px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; background: var(--c-panel-2); color: var(--c-text); border-radius: var(--r-control); }
.seg span { min-height: 28px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--r-mark); font-size: 12px; color: var(--c-muted); }
.seg .is-sel { background: var(--c-bg); color: var(--c-text); font-weight: 700; box-shadow: var(--shadow-btn); }
.seg .is-sel::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--c-accent); color: var(--c-text); }
.rule { margin-top: 9px; font: 11px var(--f-mono); color: var(--c-muted); overflow-wrap: anywhere; }
.tray { padding: 6px; }
.tray li { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 10px; border-radius: var(--r-mark); }
.tray li::before { content: ""; flex: 0 0 13px; }
.tray .is-cur { background: var(--c-panel); color: var(--c-text); font-weight: 650; }
.tray .is-cur::before { content: "✓"; color: var(--c-accent-dark); }

/* Tab、产品展示带与章节跳转 */
.tab-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 0 20px; }
[role="tab"] { min-height: 44px; padding: 8px 14px; border: 1px solid var(--c-border); border-radius: var(--r-control); background: var(--c-bg); color: var(--c-muted); font-weight: 650; }
[role="tab"]:hover { border-color: var(--c-border-strong); color: var(--c-text); }
[role="tab"][aria-selected="true"] { background: var(--c-panel-2); color: var(--c-text); border-color: var(--c-border-strong); }
[role="tabpanel"] { min-width: 0; }
.feature-band {
  padding-block: var(--section-space);
  background: linear-gradient(103deg, var(--stage-leaf), var(--stage-mist) 30%, var(--stage-moss) 65%, var(--stage-night));
  color: var(--c-text);
}
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: clamp(20px, 5vw, 68px); align-items: center; }
.feature-tabs {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: var(--r-card);
  background: var(--stage-ink);
  color: var(--c-on-dark);
}
.feature-tabs [role="tab"] {
  width: 100%;
  text-align: start;
  border: 0;
  border-inline-start: 3px solid var(--c-clear);
  border-radius: 0;
  background: var(--stage-ink);
  color: var(--c-on-dark-muted);
}
.feature-tabs [role="tab"][aria-selected="true"] {
  background: var(--stage-ink);
  color: var(--c-on-dark);
  border-inline-start-color: var(--c-accent);
}
.feature-tabs [role="tab"]:focus-visible { outline-color: var(--stage-mist); outline-offset: 0; }
.feature-tabs small { display: block; color: var(--c-on-dark-muted); font-weight: 400; }
.feature-sheet { background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-card); border-radius: var(--r-card); }
.feature-sheet > p { margin: 0; padding: 16px 20px 20px; }
.guide-rule { display: flex; align-items: center; gap: 16px; margin-block: 36px 28px; text-align: center; font-weight: 650; }
.guide-rule::before, .guide-rule::after { content: ""; flex: 1; border-top: 1px solid var(--c-border-strong); }
.guide-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.guide-links a, .link-arrow { font-weight: 750; }
.guide-links a:hover, .link-arrow:hover { text-decoration: underline; text-underline-offset: .2em; }
.guide-links p { margin: 5px 0 0; color: var(--c-muted); }

.toc {
  position: sticky;
  z-index: 6;
  top: 0;
  display: flex;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  padding: 6px;
  background: var(--c-bg);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: var(--r-control);
}
.toc.toc-static { position: static; }
.toc a { display: inline-flex; align-items: center; flex: none; min-height: 44px; padding-inline: 12px; white-space: nowrap; }
.toc a:hover { text-decoration: underline; text-underline-offset: .2em; }
.toc a:focus-visible { outline-offset: -2px; }

/* 资料卡、正文与下载入口 */
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-item:first-of-type { border-top: 1px solid var(--c-border); }
.faq-item summary { position: relative; display: block; min-height: 44px; padding: 12px 34px 12px 0; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; inset-inline-end: 10px; color: var(--c-accent-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-block: 0 12px; color: var(--c-muted); }
.faq-answer > :last-child { margin-bottom: 0; }

.term-card { border-inline-start: 3px solid var(--c-border-strong); }
.term-card dd { margin: 6px 0 0; color: var(--c-muted); }
.download-card { background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-card); }
.client-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.client-head h2, .client-head h3 { margin: 0; }
.client-icon { width: 54px; height: 54px; flex-shrink: 0; }
.client-actions, .badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.client-actions { margin-block-start: 16px; }
.article-card { border-top: 3px solid var(--c-border-strong); }
.article-card:hover { border-top-color: var(--stage-moss); }
.article-card h3 { margin-block: 10px 6px; }
.badge {
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-pill);
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 650;
  color: var(--c-muted);
  background: var(--c-panel-2);
}
.badge--primary { color: var(--c-accent-dark); background: var(--c-mint); }
.badge--recommended { color: var(--c-text); background: var(--c-panel); border: 1px solid var(--c-border); }
.badge--retired { color: var(--c-text); background: var(--c-panel-2); }
.status-dot { width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--c-accent); color: var(--c-text); }
.badge--retired .status-dot { background: var(--c-error); color: var(--c-text); }

.callout {
  margin: 1.25em 0;
  padding: 14px 18px;
  border-inline-start: 3px solid var(--stage-moss);
  border-radius: var(--r-control);
  background: var(--c-panel);
  color: var(--c-text);
}
.callout > :last-child { margin-bottom: 0; }
.article-download { display: grid; gap: 10px; justify-items: start; margin-block: 32px; }
.article-download :is(h2, p) { margin: 0; }

.dl-fab {
  position: fixed;
  z-index: 10;
  inset-inline-end: max(16px, env(safe-area-inset-right));
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-control);
  box-shadow: var(--shadow-card);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 14px;
  font-weight: 700;
}
.dl-fab:hover { border-color: var(--c-accent-dark); color: var(--c-accent-dark); }
.dl-fab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.article-with-fab .tail-end { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }

.table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
}
.data-table, :is(.prose, .document-body) table { width: 100%; border-collapse: collapse; font-size: 14px; }
:is(.prose, .document-body) table, .data-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
}
.table-scroll > table { display: table; min-width: max-content; max-width: none; }
:is(.data-table, .prose table, .document-body table) :is(th, td) {
  min-width: 7em;
  padding: 10px 14px;
  text-align: start;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
  border-bottom: 1px solid var(--c-border);
}
:is(.data-table, .prose table, .document-body table) th { background: var(--c-panel); color: var(--c-text); }
:is(.data-table, .prose table, .document-body table) caption { text-align: start; padding: 10px 14px; font-weight: 650; }

.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 12px; }
.swatch { margin: 0; min-width: 0; }
.swatch::before {
  content: "";
  display: block;
  height: 38px;
  background: var(--sample);
  color: var(--c-text);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-control);
}
.swatch figcaption { margin-block-start: 4px; }
.sw-bg { --sample: var(--c-bg); }
.sw-panel { --sample: var(--c-panel); }
.sw-panel2 { --sample: var(--c-panel-2); }
.sw-border { --sample: var(--c-border); }
.sw-strong { --sample: var(--c-border-strong); }
.sw-accent { --sample: var(--c-accent); }
.sw-accent-dark { --sample: var(--c-accent-dark); }
.sw-mint { --sample: var(--c-mint); }
.sw-text { --sample: var(--c-text); }
.sw-muted { --sample: var(--c-muted); }
.sw-success { --sample: var(--c-success); }
.sw-warn { --sample: var(--c-warn); }
.sw-error { --sample: var(--c-error); }
.sw-white { --sample: var(--c-on-dark); }
.sw-white-muted { --sample: var(--c-on-dark-muted); }
.sw-clear { --sample: var(--c-clear); }
.sw-veil { --sample: var(--c-veil); }
.sw-leaf { --sample: var(--stage-leaf); }
.sw-sage { --sample: var(--stage-sage); }
.sw-mist { --sample: var(--stage-mist); }
.sw-moss { --sample: var(--stage-moss); }
.sw-ink { --sample: var(--stage-ink); }
.sw-night { --sample: var(--stage-night); }
.sw-glow { --sample: var(--stage-glow); }
.sw-glow0 { --sample: var(--stage-glow-0); }
.sw-lightline { --sample: var(--line-light); }
.sw-darkline { --sample: var(--line-dark); }
.sw-node { --sample: var(--node-dark-border); }
.sw-pulse { --sample: var(--pulse-ring); }
:is(.sw-white-muted, .sw-glow, .sw-glow0, .sw-darkline, .sw-node)::before { background: linear-gradient(var(--sample), var(--sample)), var(--stage-night); color: var(--c-on-dark); }

@media (max-width: 1180px) {
  .stage {
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 24px var(--gutter);
    background: linear-gradient(180deg, var(--stage-leaf), var(--stage-mist) 42%, var(--stage-moss) 53%, var(--stage-ink) 71%, var(--stage-night));
    color: var(--c-text);
  }
  .stage > * { position: static; width: auto; transform: none; }
  .stage > .stage-line, .stage > .node { display: none; }
  .stage > .win:not(:last-child) { margin-bottom: 12px; }
  .stage .c-route b { color: var(--c-on-dark); }
  .stage .c-route span { color: var(--c-on-dark-muted); opacity: 1; }
}
@media (max-width: 768px) {
  .hero h1 { letter-spacing: -.02em; }
  .feature-grid, .guide-links { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .lede { font-size: 15.5px; }
  .os-row { gap: 12px 18px; }
  .stage { width: calc(100% - 32px); padding-inline: 14px; }
  .mock-select { gap: 8px; }
  .menubar span { padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse::after { animation: none; opacity: .6; }
  .os { transition: none; }
}