/* 信箱墙：保留定稿的场景尺度、静态光源与蒙层。 */
.wall-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  color: var(--text);
  min-height: calc(100svh - var(--strip-h) - var(--bar-h) - 36px);
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 236px var(--gutter) 20px;
}
.wall-visual, .wall-scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.wall-visual > img { width: 100%; height: 100%; object-fit: cover; }
.wall-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--shade-top) 0%, var(--shade-top) 18%, var(--shade-bottom) 100%);
  color: var(--text);
}
.sc-plaster { fill: var(--plaster); }
.sc-frame { fill: var(--frame); }
.sc-cornice { fill: var(--cornice); }
.sc-cornice-line { fill: var(--brass-edge); opacity: .55; }
.sc-base { fill: var(--slot); }
.dr-a { fill: var(--door-a); }
.dr-b { fill: var(--door-b); }
.mb-bevel { fill: none; stroke: var(--frame); stroke-opacity: .5; stroke-width: 1.5; }
.mb-hi { fill: var(--text); opacity: .06; }
.mb-plate { fill: var(--brass); }
.mb-plate-edge, .mb-screw, .mb-knob { fill: var(--brass-edge); }
.mb-slot, .mb-key { fill: var(--slot); }
.mb-slot-lip { fill: var(--brass-edge); opacity: .7; }
.mb-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; fill: var(--ink); font-weight: 500; }
.env { fill: var(--envelope); }
.env-fold { fill: none; stroke: var(--ink-muted); stroke-opacity: .45; stroke-width: 1; }
.lamp-plate { fill: var(--brass-edge); }
.lamp-arm { fill: none; stroke: var(--brass-edge); stroke-width: 3; stroke-linecap: round; }
.lamp-shade { fill: var(--lamp); }
.lamp-rim { fill: var(--brass); }
.glow-0 { stop-color: var(--lamp); stop-opacity: .58; }
.glow-1 { stop-color: var(--lamp); stop-opacity: .3; }
.glow-2 { stop-color: var(--lamp); stop-opacity: .08; }
.glow-3 { stop-color: var(--lamp); stop-opacity: 0; }
.dusk-0 { stop-color: var(--slot); stop-opacity: 0; }
.dusk-1 { stop-color: var(--slot); stop-opacity: .12; }
.dusk-2 { stop-color: var(--slot); stop-opacity: .58; }
.cat-line { fill: none; stroke: var(--cat-line); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wall-copy { position: relative; z-index: 2; min-width: 0; width: 100%; max-width: 820px; text-align: center; }
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 22px;
}
.wall-copy h1 { font-size: var(--size-hero); line-height: 1.2; letter-spacing: .015em; color: var(--text); margin-bottom: 22px; }
.wall-copy .ln { display: block; }
.wall-copy .dot { color: var(--accent); }
.lede { max-width: 600px; margin: 0 auto 32px; font-size: 17px; line-height: 1.75; color: var(--text-muted); }
.lede strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; justify-content: center; gap: 16px; margin-bottom: 30px; }
.wall-hero .btn-line-light:hover { background: var(--veil-strong); color: var(--text); }
.os-row { display: flex; justify-content: center; flex-wrap: wrap; margin: 0 0 18px; padding: 0; list-style: none; }
.os-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 18px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--quick);
}
.os-row li + li a { border-inline-start: 1px solid var(--hairline-dark); }
.os-row a:hover { color: var(--text); }
.os-row svg { width: 15px; height: 15px; flex-shrink: 0; }
.fact-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.fact {
  max-width: 100%;
  overflow-wrap: anywhere;
  font: 400 12px/1 var(--font-mono);
  padding: 7px 11px;
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-sm);
  background: var(--veil);
  color: var(--text);
}
.fact b { font-weight: 400; color: var(--text-muted); margin-inline-end: 7px; }
.slip-card {
  position: absolute;
  right: 48px;
  bottom: 46px;
  z-index: 3;
  width: 252px;
  background: var(--bg-panel-2);
  color: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-note);
  transform: rotate(-1.4deg);
  overflow: hidden;
  pointer-events: none;
}
.slip-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--rule-light);
  font: 400 12px/1.6 var(--font-mono);
  color: var(--ink-muted);
}
.slip-bar svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; flex-shrink: 0; }
.slip-bar span { color: var(--ink); font-weight: 600; }
.slip-body { margin: 0; padding: 12px 14px 14px; font: 400 13px/1.85 var(--font-mono); }
.slip-body div { display: flex; gap: 12px; }
.slip-body i { font-style: normal; color: var(--ink-muted); opacity: .6; width: 8px; text-align: right; }
.slip-body .k { color: var(--accent-ink); }
.slip-body .v { color: var(--ink); }
.mail-desk { background: var(--bg-panel-2); color: var(--ink); padding-block: 20px 80px; }
.mail-desk .tag { margin-bottom: 10px; }
.mail-desk h2 { font-size: 32px; line-height: 1.3; }
.mail-desk p:not(.tag) { margin-top: 10px; max-width: 620px; color: var(--ink-muted); }

@media (max-width: 1240px) { .slip-card { display: none; } }
@media (max-width: 980px) { .wall-hero { padding-block: 150px 40px; } }
@media (max-width: 600px) {
  .wall-hero { padding-block: min(110px, 14svh) 40px; }
  .kicker { font-size: 11.5px; letter-spacing: .2em; }
  .lede { font-size: 15.5px; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .os-row { row-gap: 10px; }
  .os-row a { padding: 2px 12px; font-size: 13px; }
  .mail-desk h2 { font-size: 26px; }
}

/* 横排铭牌索引：同一 tabset 可用于特性和平台。 */
.tabset { min-width: 0; }
[role="tablist"].mail-tabs {
  display: flex;
  align-items: stretch;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px;
  margin-block: 0 14px;
}
.mail-tabs [role="tab"] {
  flex: 1 0 8.25rem;
  min-height: var(--touch);
  padding: 9px 12px;
  text-align: start;
  font-weight: 600;
  border: 1px solid var(--rule-light);
  border-bottom: 2px solid var(--rule-light);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.mail-tabs [role="tab"]:focus-visible { outline-offset: 0; }
.mail-tabs [role="tab"]:hover, .mail-tabs [aria-selected="true"] {
  background: var(--rule-soft);
  color: var(--ink);
}
.mail-tabs [aria-selected="true"] { border-bottom-color: var(--accent); }
.mail-tabs code { display: block; font-size: 12px; font-weight: 400; color: var(--ink-muted); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--card-pad); align-items: start; }
.feature-grid ul { margin: 0; padding-inline-start: 1.25em; }

.toc-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 8px;
  background: var(--bg-panel-2);
  color: var(--ink);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-md);
}
.toc-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding-inline: 10px;
  overflow-wrap: anywhere;
}
.toc-tabs a:hover { text-decoration: underline; text-underline-offset: .2em; }

.faq-item {
  border-block-end: 1px solid var(--rule-light);
  background: var(--surface);
  color: var(--ink);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: var(--touch);
  padding: 13px 16px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent-ink); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 16px 16px; color: var(--ink-muted); overflow-wrap: anywhere; }

.term-card { border-block-start: 3px solid var(--brass); }
.client-card { border-inline-start: 3px solid var(--brass); }
.post-card { border-block-start: 3px solid var(--door-a); }
.card-meta, .client-head, .badge-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.card-meta, .app-rev { font-size: 13px; color: var(--ink-muted); }
.client-head > div { min-width: 0; }
.client-icon { width: 56px; height: 56px; flex-shrink: 0; }
.download-card { background: var(--rule-soft); color: var(--ink); border-inline-start: 3px solid var(--accent); }
.callout {
  margin-inline: 0;
  padding: 14px 18px;
  background: var(--rule-soft);
  color: var(--ink);
  border-inline-start: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 4px 8px;
  background: var(--rule-soft);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: var(--radius-dot);
  background: var(--badge-dot, var(--brass-edge));
  color: var(--ink);
}
.badge-first { --badge-dot: var(--accent); font-weight: 600; }
.badge-recommended { --badge-dot: var(--success); }
.badge-archived { --badge-dot: var(--warn); }

.table-wrap, .prose table, .article-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
  overscroll-behavior-inline: contain;
}
.table-wrap { border: 1px solid var(--rule-light); border-radius: var(--radius-md); }
.table-wrap table { display: table; width: 100%; overflow: visible; }
.data-table, .prose table, .article-body table { border-collapse: collapse; text-align: start; }
:is(.data-table, .prose table, .article-body table) :is(th,td) {
  min-width: 7em;
  padding: 12px 14px;
  text-align: start;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
  border-block-end: 1px solid var(--rule-light);
}
:is(.data-table, .prose table, .article-body table) th { background: var(--rule-soft); color: var(--ink); }
:is(.data-table, .prose table, .article-body table) td { background: var(--surface); color: var(--ink); }
:is(.data-table, .prose table, .article-body table) td code { overflow-wrap: anywhere; }
.data-table caption { text-align: start; padding: 9px 14px; background: var(--bg-panel-2); color: var(--ink); }

.dl-fab {
  position: fixed;
  z-index: 10;
  inset-inline-end: var(--gutter);
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  max-inline-size: calc(100% - 2 * var(--gutter));
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  color: var(--text);
  font-weight: 600;
}
.dl-fab:hover { background: var(--bg-panel); color: var(--text); }
.dl-fab-icon { flex-shrink: 0; }
.has-dl-fab .hall-foot { padding-block-end: 86px; }

.palette-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 12px; }
.swatch {
  display: block;
  height: 32px;
  border: 1px solid var(--rule-light);
  border-radius: var(--radius-sm);
  background: var(--sample);
  color: var(--ink);
}
.sample-bg { --sample: var(--bg); }
.sample-panel { --sample: var(--bg-panel); }
.sample-paper { --sample: var(--bg-panel-2); }
.sample-deep { --sample: var(--bg-deep); }
.sample-border { --sample: var(--border); }
.sample-accent { --sample: var(--accent); }
.sample-accent-dark { --sample: var(--accent-dark); }
.sample-accent-ink { --sample: var(--accent-ink); }
.sample-text { --sample: var(--text); }
.sample-text-muted { --sample: var(--text-muted); }
.sample-success { --sample: var(--success); }
.sample-warn { --sample: var(--warn); }
.sample-error { --sample: var(--error); }
.sample-ink { --sample: var(--ink); }
.sample-ink-muted { --sample: var(--ink-muted); }
.sample-surface { --sample: var(--surface); }
.sample-light { --sample: var(--rule-light); }
.sample-soft { --sample: var(--rule-soft); }
.sample-door-a { --sample: var(--door-a); }
.sample-door-b { --sample: var(--door-b); }
.sample-frame { --sample: var(--frame); }
.sample-cornice { --sample: var(--cornice); }
.sample-plaster { --sample: var(--plaster); }
.sample-brass { --sample: var(--brass); }
.sample-brass-edge { --sample: var(--brass-edge); }
.sample-slot { --sample: var(--slot); }
.sample-envelope { --sample: var(--envelope); }
.sample-lamp { --sample: var(--lamp); }
.sample-cat { --sample: var(--cat-line); }
.sample-top { --sample: var(--shade-top); }
.sample-bottom { --sample: var(--shade-bottom); }
.sample-veil { --sample: var(--veil); }
.sample-veil-strong { --sample: var(--veil-strong); }
.sample-hairline { --sample: var(--hairline-dark); }
.sample-menu { --sample: var(--menu-shade); }
.sample-clear { --sample: var(--clear); }

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
}