/* 首屏：整幅颗粒场，不在标题后另叠光晕。 */
.hero {
  position: relative;
  overflow: hidden;
  overflow-x: clip;
  padding-block: 44px 96px;
  background:
    radial-gradient(58% 60% at 6% 8%,var(--sky) 0%,var(--clear) 72%),
    radial-gradient(46% 42% at 70% 26%,var(--lavender) 0%,var(--clear) 70%),
    radial-gradient(60% 62% at 96% 96%,var(--blush) 0%,var(--clear) 72%),
    radial-gradient(36% 30% at 30% 88%,var(--pink-wash) 0%,var(--clear) 70%),
    linear-gradient(135deg,var(--sky) 0%,var(--lavender) 48%,var(--blush) 100%);
  color: var(--text);
}
.hero-grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; pointer-events: none; }
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  pointer-events: none;
  background: linear-gradient(to bottom,var(--clear),var(--veil) 55%,var(--bg));
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,46fr) minmax(0,54fr);
  align-items: center;
  gap: 24px;
}
.hero-copy { padding-block-end: 8px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .02em;
}
.kicker-dot, .badge-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-line);
}
.hero h1 { margin: 0 0 22px; font-weight: 400; line-height: 1.14; }
.h1-line { display: block; }
.hero-lede { margin: 0 0 30px; max-width: 33em; font-size: var(--lede-size); line-height: 1.72; color: var(--text-muted); }
.hero-lede strong { color: var(--text); font-weight: 600; }
.cta-row, .get-actions, .plat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; }
.get-note { margin: 14px 0 0; font-size: var(--note-size); color: var(--text-muted); }
.get-note [data-pkg-ver] { font-family: var(--font-mono); font-size: var(--micro-size); color: var(--text); }
.platform-row {
  margin-block-start: 28px;
  padding-block-start: 20px;
  border-top: 1px solid var(--accent-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.platforms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.platforms a { display: inline-flex; align-items: center; gap: 7px; font-size: var(--note-size); color: var(--text-muted); }
.platforms a:hover { color: var(--accent-dark); text-decoration: underline; }
.platforms svg { width: 15px; height: 15px; flex: none; color: var(--text); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.price-pill, .fact-pill, .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--veil);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-pill);
  font-size: var(--micro-size);
}
.price-pill b, .fact-pill b { font-weight: 600; color: var(--accent-dark); }
.badge { background: var(--bg-panel2); color: var(--accent-dark); }
.badge-dot { width: 6px; height: 6px; box-shadow: none; }

/* 信箱柜图稿：图层色由令牌控制；没有客户端屏幕或持续动效。 */
.hero-art { margin-inline-end: -16px; }
.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.ink { stroke: var(--text); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.sketch { fill: none; stroke: var(--text); stroke-width: 1; opacity: .38; stroke-linecap: round; stroke-linejoin: round; }
.cab-front { fill: url(#sr-g-front); }
.cab-side, .tag-policy { fill: var(--accent-dark); }
.cab-top, .shape-lilac { fill: var(--accent-lilac); }
.dev-body, .eye-white, .glint { fill: var(--paper); }
.pupil, .foot, .slot-hole, .dev-pill { fill: var(--text); }
.cloud, .floor-shadow { fill: var(--accent-shade); opacity: .24; }
.bird, .mouth { fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; }
.bird { stroke: var(--accent-dark); opacity: .65; }
.hatch, .slot-lip { fill: none; stroke: var(--accent-shade); stroke-width: 1.6; stroke-linecap: round; opacity: .78; }
.slot-lip { stroke-width: 3.2; }
.slot-hood { fill: none; stroke: var(--accent-dark); stroke-width: 2.2; stroke-linecap: round; }
.rib, .rib-hi { fill: none; stroke-linecap: round; }
.rib { stroke-width: 10; opacity: .92; }
.rib-hi { stroke: var(--paper); stroke-width: 2.2; opacity: .55; }
.rib-mint { stroke: var(--mint); }
.rib-pink { stroke: var(--pink); }
.rib-azure { stroke: var(--azure); }
.rib-sun { stroke: var(--sun); }
.tag-paper, .plate { fill: var(--paper); stroke: var(--text); stroke-width: 1.3; }
.tag-shadow { fill: var(--accent-lilac); opacity: .5; }
.tag-text, .plate-text { font-family: var(--font-mono); font-size: 10.5px; fill: var(--text); }
.tag-policy, .plate-text { font-weight: 700; }
.plate { stroke-width: 1.6; }
.plate-text { font-size: 12px; letter-spacing: .08em; }
.pin-mint, .shape-mint { fill: var(--mint); }
.pin-pink, .shape-pink, .cheek { fill: var(--pink); }
.pin-azure { fill: var(--azure); }
.pin-sun, .shape-sun { fill: var(--sun); }
.st-accent { stop-color: var(--accent); }
.st-shade { stop-color: var(--accent-shade); }
.st-mint { stop-color: var(--mint-wash); }
.st-sky { stop-color: var(--sky); }
.st-lav { stop-color: var(--lavender); }
.st-pink { stop-color: var(--pink-wash); }
.ipad-screen { fill: url(#sr-g-ipad); }
.iphone-screen { fill: url(#sr-g-iphone); }

/* 横幅与拼接格。每格在桌面占视窗的 2/7。 */
.features { padding-block: 56px var(--section-space); background: var(--bg); color: var(--text); }
.feature-frame { border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.banner {
  position: relative;
  overflow-x: clip;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 72px 96px 64px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background:
    radial-gradient(circle at 1px 1px,var(--dot) 1.1px,var(--clear) 1.5px) 0 0/12px 12px,
    radial-gradient(45% 80% at 42% 10%,var(--pink-wash) 0%,var(--clear) 70%),
    linear-gradient(100deg,var(--mint-wash) 0%,var(--lavender) 38%,var(--pink-wash) 56%,var(--sky-wash) 100%);
  color: var(--text);
}
.banner h2 { margin: 0 0 14px; }
.banner p { margin: 0 0 28px; max-width: 40em; font-size: var(--lede-size); color: var(--text-muted); }
.banner-nav { display: flex; gap: 14px; flex: none; }
.round-btn {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.round-btn svg { width: 18px; height: 18px; }
.round-btn:hover { background: var(--accent-dark); color: var(--on-accent); }
.round-btn:disabled { opacity: .58; cursor: default; }
.feature-strip {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}
.feature-strip .feature-cell {
  display: flex;
  flex-direction: column;
  align-items: start;
  flex: 0 0 calc(200% / 7);
  min-width: 0;
  min-height: 305px;
  margin: 0;
  padding: clamp(18px,2.6vw,34px);
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
  border: 0;
  border-inline-end: 1px solid var(--border);
  border-radius: 0;
  background: var(--paper);
  color: var(--text);
  scroll-snap-align: start;
}
.feature-cell:last-child { border-inline-end: 0; }
.feature-title { display: block; font-size: var(--subheading-size); font-weight: 600; margin-block-end: 8px; }
.feature-desc { display: block; margin-block-end: 14px; color: var(--text-muted); }
.feature-doodle { display: block; width: 112px; height: 76px; margin: auto auto 0; }
.feature-strip [aria-selected="true"] { box-shadow: inset 0 3px var(--accent); }
.feature-strip [role="tab"]:focus-visible { outline-offset: -4px; }

.tabs [role="tablist"]:not(.feature-strip) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  background: var(--bg-panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
[role="tab"] { cursor: pointer; }
.tabs [role="tablist"]:not(.feature-strip) [role="tab"] {
  border: 1px solid var(--clear);
  border-radius: var(--radius-btn);
  padding: 8px 14px;
  min-height: var(--tap);
  max-width: 100%;
  overflow-wrap: anywhere;
  background: var(--clear);
  color: var(--text-muted);
}
.tabs [role="tablist"]:not(.feature-strip) [aria-selected="true"] {
  background: var(--paper);
  color: var(--accent-dark);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-pill);
}
.tab-pane { margin-block-start: 12px; }
.toc { padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--paper); color: var(--text); }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.toc a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 6px 10px; overflow-wrap: anywhere; }
.toc a:hover, .toc a[aria-current="location"] { background: var(--bg-panel2); color: var(--accent-dark); border-radius: var(--radius-btn); }

.faq-list { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--paper); color: var(--text); box-shadow: var(--shadow-card); }
.faq-item + .faq-item { border-block-start: 1px solid var(--border); }
.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  min-height: var(--tap);
  padding: 14px 54px 14px 18px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; inset-inline-end: 18px; color: var(--accent-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible { outline-offset: -3px; }
.faq-answer { padding: 0 18px 16px; color: var(--text-muted); }
.faq-answer > :last-child { margin-block-end: 0; }
.term-card dfn { font: normal 600 var(--body-size)/1.5 var(--font-mono); overflow-wrap: anywhere; }
.term-card p, .article-card p, .device-card p, .plat-card p { color: var(--text-muted); }
.article-card .badge { margin-block-end: 12px; }
.article-card h3 a { color: var(--accent-dark); }
.article-card a:hover { text-decoration: underline; text-underline-offset: .2em; }
.callout {
  margin: 1em 0;
  padding: 16px 20px;
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--radius-btn);
  background: var(--bg-panel2);
  color: var(--text);
}
.callout > :last-child { margin-block-end: 0; }
.store-button { min-height: 48px; padding: 10px 18px; text-align: start; }
.store-button svg { width: 22px; height: 22px; }
.store-lines { display: grid; gap: 3px; }
.store-lines small { font-size: var(--micro-size); }
.store-guide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.store-guide > div { flex: 1 1 18em; min-width: 0; }
.store-guide p { margin: 0; color: var(--text-muted); }
.device-card { display: block; }
.device-card svg { width: 34px; height: 34px; flex-shrink: 0; color: var(--accent-dark); }
.device-card:hover { border-color: var(--accent-line); color: var(--text); }
.device-card:hover h3 { color: var(--accent-dark); }
.plat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,264px),1fr)); gap: 18px; }
.plat-card { display: flex; flex-direction: column; align-items: start; }
.plat-card .plat-actions { margin-block-start: auto; padding-block-start: 4px; }
html[data-visitor-os="ios"] .plat-card[data-plat="ios"] { order: -1; }
html[data-visitor-os="mac"] .plat-card[data-plat="mac"] { order: -1; }
html[data-visitor-os="windows"] .plat-card[data-plat="windows"] { order: -1; }
html[data-visitor-os="android"] .plat-card[data-plat="android"] { order: -1; }
html[data-visitor-os="linux"] .plat-card[data-plat="linux"] { order: -1; }
html[data-visitor-os="ios"] .plat-card[data-plat="ios"]::before,
html[data-visitor-os="mac"] .plat-card[data-plat="mac"]::before,
html[data-visitor-os="windows"] .plat-card[data-plat="windows"]::before,
html[data-visitor-os="android"] .plat-card[data-plat="android"]::before,
html[data-visitor-os="linux"] .plat-card[data-plat="linux"]::before {
  content: attr(data-mine);
  margin-block-end: 10px;
  padding: 4px 10px;
  background: var(--bg-panel2);
  color: var(--accent-dark);
  border-radius: var(--radius-pill);
  font-size: var(--micro-size);
}
.wx-open-tip {
  position: fixed;
  z-index: var(--layer-tip);
  inset-inline: var(--gutter);
  bottom: max(16px,env(safe-area-inset-bottom));
  width: fit-content;
  max-width: min(36rem,calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding: 14px 18px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-card);
  background: var(--paper);
  color: var(--text);
  box-shadow: var(--shadow-card);
  overflow-wrap: anywhere;
}
.shot-row { display: flex; flex-wrap: wrap; align-items: start; justify-content: center; gap: 22px; }
.official-shot { width: min(100%,280px); flex-shrink: 0; margin: 0 auto; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-shot); }
.official-shot :is(img,.shot-placeholder) { outline: 1px solid var(--border); outline-offset: -1px; }
.official-shot figcaption { margin-block-start: 8px; font-size: var(--small-size); color: var(--text-muted); text-align: center; }
.shot-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 750 / 1334;
  border-radius: var(--radius-shot);
  background: var(--bg-panel2);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; }
.data-table, .prose table, .reading-wrap table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-collapse: collapse;
  text-align: start;
}
.data-table, .prose table, .reading-wrap table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll :is(.data-table,.prose table,.reading-wrap table) { display: table; }
:is(.data-table,.prose table,.reading-wrap table) :is(th,td) {
  min-width: 7em;
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
:is(.data-table,.prose table,.reading-wrap table) th { background: var(--bg-panel); color: var(--text); }
.dl-fab {
  position: fixed;
  z-index: var(--layer-fab);
  inset-inline-end: max(var(--fab-edge),env(safe-area-inset-right));
  bottom: max(16px,env(safe-area-inset-bottom));
  border-radius: var(--radius-pill);
}

@media (max-width: 960px) {
  .hero { padding-block: 32px 88px; }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .hero-lede { font-size: var(--body-size); }
  .hero-art { width: 80%; margin: 28px auto 0; }
  .banner { flex-direction: column; align-items: flex-start; padding: 44px 28px; }
  .feature-strip .feature-cell { flex-basis: 44%; }
}
@media (max-width: 640px) {
  .facts { justify-content: center; }
  .feature-strip .feature-cell { flex-basis: 86%; }
  .shot-row { flex-direction: column; align-items: center; }
  #install table, #install tbody, #install tr, #install td, #install th[scope="row"] { display: block; width: 100%; min-width: 0; }
  #install thead { display: none; }
  #install tr + tr { margin-block-start: 12px; }
  #install td code {
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
    overflow-wrap: normal;
    word-break: normal;
    white-space: pre;
    vertical-align: middle;
  }
  .dl-fab {
    width: var(--fab-size);
    height: var(--fab-size);
    min-height: var(--fab-size);
    padding: 0;
  }
  .dl-fab .fab-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  /* 文章专用右侧通道：让悬浮按钮从几何上避开正文。 */
  .has-dl-fab :is(main,.site-foot) {
    padding-inline-end: calc(var(--fab-size) + max(var(--fab-edge),env(safe-area-inset-right)) - var(--gutter) + 8px);
  }
}

@media (forced-colors: active) {
  .btn, [role="tab"], .round-btn { border: 1px solid; }
}

/* 根目录预览页专用，不随正文组件产生额外装饰。 */
.preview-mark {
  background: linear-gradient(140deg,var(--bg-panel2),var(--accent-lilac));
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-mark-preview);
  box-shadow: var(--shadow-pill);
}
.preview-mobile summary { list-style: none; }
.preview-mobile summary::-webkit-details-marker { display: none; }
.preview-mobile[open] .nav-drawer { display: block; }
.preview-stack { display: grid; gap: 26px; }
.preview-swatches { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,140px),1fr)); gap: 12px; }
.swatch {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--paper);
  color: var(--text);
}
.swatch::before {
  content: "";
  display: block;
  height: 52px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  border-bottom: 1px solid var(--border);
  background: var(--sample);
}
.swatch figcaption { padding: 8px 10px; font: var(--micro-size)/1.55 var(--font-mono); }
.sw-bg { --sample: var(--bg); }
.sw-panel { --sample: var(--bg-panel); }
.sw-panel2 { --sample: var(--bg-panel2); }
.sw-border { --sample: var(--border); }
.sw-accent { --sample: var(--accent); }
.sw-dark { --sample: var(--accent-dark); }
.sw-shade { --sample: var(--accent-shade); }
.sw-lilac { --sample: var(--accent-lilac); }
.sw-line { --sample: var(--accent-line); }
.sw-text { --sample: var(--text); }
.sw-muted { --sample: var(--text-muted); }
.sw-sep { --sample: var(--sep); }
.sw-success { --sample: var(--success); }
.sw-warn { --sample: var(--warn); }
.sw-error { --sample: var(--error); }
.sw-paper { --sample: var(--paper); }
.sw-on { --sample: var(--on-accent); }
.sw-sky { --sample: var(--sky); }
.sw-lav { --sample: var(--lavender); }
.sw-blush { --sample: var(--blush); }
.sw-mint { --sample: var(--mint); }
.sw-pink { --sample: var(--pink); }
.sw-azure { --sample: var(--azure); }
.sw-sun { --sample: var(--sun); }
.sw-mintwash { --sample: var(--mint-wash); }
.sw-pinkwash { --sample: var(--pink-wash); }
.sw-skywash { --sample: var(--sky-wash); }
.sw-veil { --sample: var(--veil); }
.sw-dot { --sample: var(--dot); }
.sw-scrim { --sample: var(--scrim); }
.sw-clear { --sample: var(--clear); }
:is(.sw-veil,.sw-dot,.sw-scrim,.sw-clear)::before {
  background: linear-gradient(var(--sample),var(--sample)),linear-gradient(90deg,var(--accent-lilac) 50%,var(--sky) 50%);
}
.preview-type-sample { font: 400 var(--display-size)/1.14 var(--font-display); letter-spacing: -.02em; margin-block-end: 14px; }
.preview-svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }