.status-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  min-height: 30px;
  max-width: 100%;
  padding: 4px 14px 4px 12px;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  color: var(--text-soft);
  font-size: 12.5px;
}
.status-badge__dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-circle);
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.fact-chips, .tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.fact-chips { margin-top: 24px; }
.fact-chip, .badge, .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  max-width: 100%;
  padding: 4px 12px;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.fact-chip code { font-size: 12px; color: var(--text); }
.badge--accent { border-color: var(--accent-line); background: var(--accent-band); color: var(--accent); }
.badge--success { color: var(--success); }
.badge--warn { color: var(--warn); }
.badge--error { color: var(--error); }

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  max-width: 100%;
  padding: 10px 22px;
  border: var(--stroke) solid var(--accent);
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--bg);
}
.store-button:hover, .store-button.is-hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.store-button svg { width: 24px; height: 28px; }
.store-button__copy { display: block; text-align: left; }
.store-button__overline { display: block; font-size: 11px; line-height: 1.3; }
.store-button__title { display: block; font-size: 16px; font-weight: var(--weight-medium); line-height: 1.5; }
.store-button--large { min-height: 64px; padding-inline: 28px; }
.store-guide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-panel);
  color: var(--text);
}
.store-guide__copy { flex: 1 1 300px; min-width: 0; }
.store-guide__copy p { margin-top: 10px; color: var(--text-muted); }

.conf-tray {
  position: relative;
  height: 560px;
  min-width: 0;
  padding: 28px;
  overflow: hidden;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-tray);
  background: var(--bg-panel);
  color: var(--text);
}
.conf-glow {
  position: absolute;
  inset: 28px;
  border-radius: var(--radius-frame);
  box-shadow: 0 0 24px 2px var(--accent-glow);
  opacity: .72;
  pointer-events: none;
}
.conf-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: var(--stroke) solid var(--accent);
  border-radius: var(--radius-frame);
  background: linear-gradient(180deg, var(--canvas-top), var(--bg));
  color: var(--text);
  box-shadow: inset 0 0 36px var(--accent-soft);
}
.conf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 8px;
  height: 44px;
  padding: 0 12px 0 14px;
  border-bottom: var(--stroke) solid var(--accent-line);
  background: linear-gradient(180deg, var(--accent-band), var(--clear));
  color: var(--text);
}
.conf-bar__left { display: flex; align-items: center; gap: 12px; min-width: 0; font-family: var(--font-mono); font-size: 12.5px; }
.conf-bar__grip { width: 14px; height: 14px; color: var(--accent); }
.conf-bar__file { color: var(--accent); }
.conf-bar__sec { color: var(--text-muted); }
.conf-bar__add {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: var(--stroke) solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-band);
  color: var(--accent);
}
.conf-bar__add svg { width: 12px; height: 12px; }
.conf-body { display: grid; flex: 1; min-height: 0; min-width: 0; grid-template-columns: minmax(0, 68fr) minmax(0, 32fr); }
.conf-code { position: relative; min-width: 0; padding-top: 22px; overflow-x: auto; overscroll-behavior-inline: contain; }
.conf-lines { position: relative; z-index: 1; width: max-content; min-width: 100%; padding-bottom: 76px; font-family: var(--font-mono); font-size: 13px; list-style: none; }
.conf-line { display: flex; align-items: center; height: var(--row-h); padding-right: 16px; white-space: pre; }
.conf-ln { flex-shrink: 0; width: 48px; padding-right: 18px; text-align: right; color: var(--text-muted); font-size: 12px; }
.conf-src { color: var(--text-soft); }
.t-sec { color: var(--accent); }
.t-key { color: var(--text); }
.t-op, .t-pol { color: var(--text-muted); }
.t-val { color: var(--text-soft); }
.t-pol--proxy { color: var(--text); }
.t-pol--proxy::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 6px 1px 2px;
  border-radius: var(--radius-circle);
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 6px var(--accent-glow);
  vertical-align: middle;
}
.conf-scan {
  position: absolute;
  inset-inline: 0;
  top: calc(22px + var(--row-h) * 11);
  height: var(--row-h);
  border-left: 2px solid var(--accent-line);
  background: var(--accent-band);
  color: var(--text);
  pointer-events: none;
}
.conf-legend { min-width: 0; padding: 22px 22px 0; border-left: var(--stroke) solid var(--accent-hair); }
.legend-title { margin-bottom: 12px; color: var(--text-muted); font-size: 12px; }
.legend-keys { display: flex; flex-wrap: wrap; gap: 6px; }
.legend-key {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 3px 9px;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.legend-group + .legend-group { margin-top: 28px; }
.legend-pols { list-style: none; }
.legend-pols li { display: grid; grid-template-columns: 12px 60px 1fr; align-items: center; min-height: 28px; font-size: 12.5px; color: var(--text-muted); }
.pol-word { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-soft); }
.pol-dot { width: 6px; height: 6px; border: var(--stroke) solid var(--text-muted); border-radius: var(--radius-circle); }
.pol-dot--proxy { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.pol-word--proxy { color: var(--text); }
.legend-note { margin-top: 24px; padding-top: 14px; border-top: var(--stroke) solid var(--accent-hair); color: var(--text-muted); font-size: 12px; line-height: 1.65; }
.legend-note code { color: var(--text-soft); font-size: 11px; }
.conf-sections {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 2;
  display: flex;
  gap: 4px;
  max-width: calc(100% - 16px);
  padding: 5px;
  transform: translateX(-50%);
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-panel-2);
  color: var(--text-muted);
  list-style: none;
}
.conf-sections li {
  display: flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}
.conf-sections li[aria-current="true"] { background: var(--accent); color: var(--bg); }

.capabilities { padding-top: 160px; }
.cap-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.cap-eyebrow { color: var(--accent); font-size: 13px; }
.cap-title { font-size: 22px; line-height: 1.3; }
.mega-card {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 28px;
  padding: 24px;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-panel);
  color: var(--text);
}
.mega-card > * { min-width: 0; }
.mega-card__content { grid-column: 1; grid-row: 1; }
.mega-card__panel { min-height: 240px; padding: 28px; border-radius: var(--radius-inner); background: var(--bg-panel-2); color: var(--text); }
.mega-card__panel pre { padding: 0; border: 0; border-radius: var(--radius-sm); }
.mega-card__title { margin-top: 22px; font-size: 22px; }
.mega-card__description { margin-top: 12px; color: var(--text-muted); line-height: 1.85; }
.tab-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}
.tab-list [role="tab"] {
  position: relative;
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  color: var(--text-muted);
  text-align: left;
  line-height: 1.5;
}
.tab-list [role="tab"]:hover { color: var(--text); }
.tab-list [role="tab"][aria-selected="true"] { color: var(--text); }
.tab-list [role="tab"][aria-selected="true"]::before {
  content: "";
  position: absolute;
  inset-block: 14px;
  left: 0;
  width: 2px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--bg);
}
[role="tabpanel"] { min-width: 0; }
.tab-list--horizontal { flex-direction: row; grid-column: auto; grid-row: auto; overflow-x: auto; }
.tab-list--horizontal [role="tab"] { width: auto; flex-shrink: 0; }
.tab-list--horizontal [role="tab"][aria-selected="true"]::before { inset: auto 20px 0; width: auto; height: 2px; }
.field-list { list-style: none; border: var(--stroke) solid var(--border); border-radius: var(--radius-menu); overflow: hidden; }
.field-list li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 18px; }
.field-list li + li { border-top: var(--stroke) solid var(--border); }
.field-list li::after { content: "›"; flex-shrink: 0; color: var(--text-muted); }
.field-list span { min-width: 0; overflow-wrap: anywhere; }

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 12px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 10px;
  flex-wrap: wrap;
  overflow-x: visible;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-menu);
  background: var(--bg-panel);
  color: var(--text-muted);
}
.toc a { display: block; flex-shrink: 0; min-height: 44px; padding: 10px 16px; border-radius: var(--radius-btn); font-size: 13px; }
.toc a:hover, .toc a[aria-current="location"] { background: var(--bg-panel-2); color: var(--text); }
.toc--static { position: static; }

.faq-item { border-bottom: var(--stroke) solid var(--border); }
.faq-item summary {
  position: relative;
  min-height: 64px;
  padding: 20px 40px 20px 0;
  list-style: none;
  cursor: pointer;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; top: 18px; right: 4px; color: var(--text-muted); font-family: var(--font-mono); font-size: 20px; }
.faq-item[open] summary::after { content: "−"; color: var(--accent); }
.faq-item__answer { padding-bottom: 24px; color: var(--text-muted); line-height: 1.85; }
.faq-item__answer p + p { margin-top: 14px; }
.term-card { min-width: 0; padding: 28px; border: var(--stroke) solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); }
.term-card__category { margin-bottom: 18px; color: var(--accent); font-size: 12px; }
.term-card h3 { font-family: var(--font-mono); font-size: 20px; overflow-wrap: anywhere; }
.term-card p:last-child { margin-top: 14px; color: var(--text-muted); }
.article-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: var(--stroke) solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); }
.article-card:hover { border-color: var(--accent-line); }
.article-card__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; color: var(--text-muted); font-size: 12px; }
.article-card h3 { font-size: 22px; }
.article-card p { margin-top: 16px; color: var(--text-muted); }
.article-card__link { align-self: start; margin-top: 24px; color: var(--accent); font-size: 13px; }
.device-card { display: flex; align-items: flex-start; gap: 24px; padding: 28px; border: var(--stroke) solid var(--border); border-radius: var(--radius-card); background: var(--bg-panel); color: var(--text); }
.device-card__icon { flex-shrink: 0; width: 44px; height: 52px; color: var(--text-soft); }
.device-card__copy { min-width: 0; }
.device-card p { margin-top: 10px; color: var(--text-muted); }
.device-card .text-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 12px; font-size: 13px; }

.official-shot {
  width: 100%;
  max-width: 280px;
  flex-shrink: 0;
  margin-inline: auto;
  padding: 0;
}
.official-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.official-shot figcaption { margin-top: 12px; color: var(--text-muted); font-size: 12px; line-height: 1.7; }
.official-shot__image-border { border: var(--stroke) solid var(--border); border-radius: var(--radius-shot); }
.shot-and-copy { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 48px; }
.shot-and-copy > * { min-width: 0; }
.shot-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 750 / 1334;
  padding: 20px;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-shot);
  background: var(--bg-panel-2);
  color: var(--text-muted);
  text-align: center;
}
.callout {
  min-width: 0;
  padding: 22px 24px;
  border: var(--stroke) solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-btn);
  background: var(--bg-panel);
  color: var(--text-soft);
}
.callout__title { display: block; margin-bottom: 8px; color: var(--text); font-weight: var(--weight-medium); }
.callout--warn { border-left-color: var(--warn); }

.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.data-table th, .data-table td,
.prose table th, .prose table td,
.article-body table th, .article-body table td {
  min-width: 7em;
  padding: 16px 20px;
  border-bottom: var(--stroke) solid var(--border);
  overflow-wrap: normal;
  word-break: normal;
  vertical-align: top;
}
.data-table th, .prose table th, .article-body table th { background: var(--bg-panel-2); color: var(--text); font-weight: var(--weight-medium); }
.data-table td, .prose table td, .article-body table td { background: var(--bg-panel); color: var(--text-soft); }
.data-table td code, .prose table td code, .article-body table td code { overflow-wrap: anywhere; }
.prose table, .article-body table {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  border-collapse: collapse;
}
.prose div, .article-body div { min-width: 0; }

.dl-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: var(--z-fab);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: calc(100% - 32px);
  padding: 8px 18px 8px 14px;
  border: var(--stroke) solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-panel-2);
  color: var(--text);
  font-size: 13.5px;
  transition: transform var(--time-fast) var(--ease);
}
.dl-fab:hover { transform: translateY(-2px); border-color: var(--accent-line); }
.dl-fab__icon { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: var(--radius-circle); background: var(--text); color: var(--bg); }
.dl-fab__icon svg { width: 13px; height: 13px; }

.palette-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.palette-card { min-width: 0; border: var(--stroke) solid var(--border); border-radius: var(--radius-btn); overflow: hidden; }
.palette-card code { display: block; padding: 12px; color: var(--text-soft); font-size: 12px; }
.swatch { height: 72px; color: var(--text); }
.swatch--bg { background: var(--bg); }
.swatch--panel { background: var(--bg-panel); }
.swatch--panel-2 { background: var(--bg-panel-2); }
.swatch--border { background: var(--border); }
.swatch--accent { background: var(--accent); }
.swatch--accent-dark { background: var(--accent-dark); }
.swatch--text { background: var(--text); }
.swatch--muted { background: var(--text-muted); }
.swatch--soft { background: var(--text-soft); }
.swatch--faint { background: var(--text-faint); }
.swatch--hover { background: var(--text-hover); }
.swatch--success { background: var(--success); }
.swatch--warn { background: var(--warn); }
.swatch--error { background: var(--error); }
.swatch--canvas { background: var(--canvas-top); }
.swatch--glow { background: var(--accent-glow); }
.swatch--accent-soft { background: var(--accent-soft); }
.swatch--band { background: var(--accent-band); }
.swatch--line { background: var(--accent-line); }
.swatch--hair { background: var(--accent-hair); }
.swatch--veil { background: var(--veil); }
.swatch--clear { background: var(--clear); }
.type-sample { padding-block: 24px; border-bottom: var(--stroke) solid var(--border); }
.type-sample__label { margin-bottom: 12px; color: var(--text-muted); font-family: var(--font-mono); font-size: 12px; }
.type-display { font-family: var(--font-display); font-size: var(--h1-size); line-height: 1.14; letter-spacing: var(--tracking-tight); }
.preview-label { margin-bottom: 20px; color: var(--text-muted); font-family: var(--font-mono); font-size: 12px; }

@media (max-width: 900px) {
  .mega-card { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mega-card > .tab-list { grid-column: 1; grid-row: 1; flex-direction: row; overflow-x: auto; }
  .mega-card__content { grid-column: 1; grid-row: 2; }
  .mega-card > .tab-list [role="tab"] { width: auto; flex-shrink: 0; white-space: nowrap; }
  .mega-card > .tab-list [role="tab"][aria-selected="true"]::before { inset: auto 20px 0; width: auto; height: 2px; }
  .shot-and-copy { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 720px) {
  .conf-tray { height: auto; padding: 16px; }
  .conf-glow { inset: 16px; }
  .conf-frame { min-height: 470px; }
  .conf-body { grid-template-columns: minmax(0, 1fr); }
  .conf-legend { display: none; }
  .conf-lines { font-size: 11.5px; }
  .conf-ln { width: 36px; padding-right: 12px; }
  .conf-sections li { padding-inline: 8px; font-size: 11px; }
  .palette-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mega-card { padding: 16px; }
  .mega-card__panel { min-height: 210px; padding: 20px; }
  .cap-head { flex-direction: column; gap: 6px; }
  .fact-chips, .tag-row { flex-direction: row; flex-wrap: wrap; }
  .hero .fact-chip { padding-inline: 10px; font-size: 12px; }
  .device-card { gap: 18px; padding: 22px; }
  .device-card__icon { width: 36px; height: 46px; }
  .article-card, .term-card { padding: 22px; }
  .store-guide { padding: 22px; }
  .official-shot { width: 100%; max-width: 280px; }
  .dl-fab { right: 16px; bottom: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .conf-tray { padding: 12px; }
  .conf-glow { inset: 12px; }
  .conf-sections { gap: 0; padding: 4px; }
  .conf-sections li { padding-inline: 6px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-fab { transition: none; }
}

/* 多平台下载 */
.get-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.get-row .get-note { flex-basis: 100%; margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.get-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.plat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 8px; }
.plat-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 18px 18px; background: var(--bg-panel); border: var(--stroke) solid var(--border); border-radius: var(--radius-btn); min-width: 0; }
.plat-card h3 { margin: 0; font-size: 18px; }
.plat-card p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.plat-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.plat-actions .btn, .get-row .btn, .get-actions .btn, .plat-actions .store-button { white-space: normal; max-width: 100%; height: auto; text-align: center; }
.plat-actions .store-button { min-height: 48px; padding: 10px 16px; }
.install-table td { min-width: 7em; }
[data-visitor-os="ios"] .plat-card[data-plat="ios"],
[data-visitor-os="mac"] .plat-card[data-plat="mac"],
[data-visitor-os="windows"] .plat-card[data-plat="windows"],
[data-visitor-os="android"] .plat-card[data-plat="android"],
[data-visitor-os="linux"] .plat-card[data-plat="linux"] { order: -1; border-color: var(--accent); background: var(--bg-panel-2); }
[data-visitor-os="ios"] .plat-card[data-plat="ios"]::before,
[data-visitor-os="mac"] .plat-card[data-plat="mac"]::before,
[data-visitor-os="windows"] .plat-card[data-plat="windows"]::before,
[data-visitor-os="android"] .plat-card[data-plat="android"]::before,
[data-visitor-os="linux"] .plat-card[data-plat="linux"]::before {
  content: attr(data-mine); position: absolute; top: -11px; left: 16px; padding: 1px 10px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px;
}
.wx-open-tip { position: fixed; top: 12px; right: 12px; left: 12px; z-index: 1000; padding: 16px 18px; border-radius: var(--radius-btn); background: var(--text); color: var(--bg); font-size: 15px; font-weight: 700; line-height: 1.6; }

@media (max-width: 640px) {
  .dl-fab { width: 52px; height: 52px; min-width: 0; min-height: 0; max-width: none; padding: 0; gap: 0; border-radius: 50%; justify-content: center; align-items: center; font-size: 0; line-height: 1; }
  .dl-fab > :not(svg):not([aria-hidden="true"]):not(.dl-fab-icon) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .dl-fab > [aria-hidden="true"]:not(svg) { font-size: 20px; }
  .dl-fab svg { margin: 0; }
  .dl-fab:not(:has(svg)):not(:has([aria-hidden="true"]:not(:empty)))::after { content: "\2193"; font-size: 22px; }
}
