:root {
  --bg: #f3efe7;
  --ink: #1e1a17;
  --muted: #6e655d;
  --line: #e4dcd0;
  --accent: #8f2d22;
  --card: #fffdf8;
  --code: #efeae2;
  --max: 44rem;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.site-header,
.site-footer,
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.wrap.narrow { width: min(48rem, calc(100% - 2rem)); }
.wrap.doc-wrap {
  width: min(68rem, calc(100% - 2.5rem));
  min-width: 0;
  max-width: 100%;
}

#doc {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 961px) {
  body:has(.doc-wrap) .site-header,
  body:has(.doc-wrap) .site-footer {
    width: min(68rem, calc(100% - 2.5rem));
  }
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0 0.9rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
}

nav a { font-size: 0.95rem; }
nav a[aria-current="page"] { color: var(--ink); text-decoration: none; font-weight: 650; }

.wrap { padding: 2.2rem 0 3.5rem; }

.kicker {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

h1 { margin: 0 0 0.7rem; font-size: 2rem; line-height: 1.25; font-weight: 650; letter-spacing: -0.02em; }
h2 { margin: 1.8rem 0 0.6rem; font-size: 1.35rem; line-height: 1.3; }
h3 { margin: 1.4rem 0 0.4rem; font-size: 1.1rem; }

.lede { margin: 0; max-width: 36rem; color: var(--muted); font-size: 1.05rem; }

.cards { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.cards a {
  display: block;
  padding: 1rem 1.1rem 1.05rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: inherit;
  text-decoration: none;
}
.cards a:hover { border-color: #c9b8a4; }
.card-title { display: block; font-weight: 650; }
.card-body { display: block; margin-top: 0.25rem; color: var(--muted); }

.site-footer {
  padding: 0 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Document Reading Header */
.doc-header {
  margin-bottom: 1.2rem;
  padding-bottom: 0.2rem;
}
.doc-title {
  margin: 0 0 0.35rem;
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.doc-meta {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Notes Collapsible Accordion (Methodology & Changelog) */
.doc-notes-accordion {
  margin: 0.9rem 0 1.4rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--card);
}
.doc-notes-summary {
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.doc-notes-summary::-webkit-details-marker {
  display: none;
}
.doc-notes-summary:hover {
  background: #faf6ef;
  color: var(--ink);
}
.notes-icon {
  margin-right: 0.35rem;
}
.accordion-arrow {
  color: var(--muted);
  font-size: 0.85rem;
  transition: transform 0.15s ease;
}
.doc-notes-accordion[open] > .doc-notes-summary {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.doc-notes-accordion[open] .accordion-arrow {
  transform: rotate(180deg);
}
.doc-notes-body {
  padding: 0.9rem 1.15rem 1.2rem;
  font-size: 0.88rem;
  line-height: 1.6;
}
.doc-notes-body h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1rem;
}
.doc-notes-body h3:first-child {
  margin-top: 0;
}

/* Leaderboard: Category Tabs Bar */
.cat-tabs-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 1.2rem 0 1.4rem;
}
.cat-tabs-wrap::before,
.cat-tabs-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0.45rem;
  width: 2.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}
.cat-tabs-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), rgba(243, 239, 231, 0));
}
.cat-tabs-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), rgba(243, 239, 231, 0));
}
.cat-tabs-wrap.has-overflow-left::before {
  opacity: 1;
}
.cat-tabs-wrap.has-overflow-right::after {
  opacity: 1;
}

.cat-tabs-bar {
  display: flex;
  gap: 0.45rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbbfb0 transparent;
  margin: 1.2rem 0 1.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.cat-tabs-wrap .cat-tabs-bar {
  margin: 0;
}
.cat-tabs-bar::-webkit-scrollbar {
  height: 6px;
}
.cat-tabs-bar::-webkit-scrollbar-track {
  background: transparent;
}
.cat-tabs-bar::-webkit-scrollbar-thumb {
  background: #cbbfb0;
  border-radius: 999px;
}
.cat-tabs-bar::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}
.cat-tab {
  flex-shrink: 0;
  appearance: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-size: 0.92rem;
  font-family: inherit;
  font-weight: 550;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.cat-tab:hover {
  border-color: #cbbfb0;
  background: #faf6ef;
}
.cat-tab.is-active {
  background: var(--ink);
  color: #fffdf8;
  border-color: var(--ink);
  font-weight: 650;
}
.cat-tab-badge {
  font-size: 0.85em;
}

/* Category Panels */
.cat-panels-container {
  width: 100%;
}
.cat-panel {
  display: none;
}
.cat-panel.is-active {
  display: block;
}
.cat-panel:target {
  display: block;
}
#doc:not(.has-js) .cat-panel {
  display: block;
  margin-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}

.cat-panel-header {
  margin-bottom: 1rem;
}
.cat-panel-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.cat-status-badge {
  font-size: 0.85em;
}

/* Subcategory Tabs (TTS / ASR) */
.subcat-tabs-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0.8rem 0 1.1rem;
}
.subcat-tabs-wrap::before,
.subcat-tabs-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0.35rem;
  width: 2rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}
.subcat-tabs-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), rgba(243, 239, 231, 0));
}
.subcat-tabs-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), rgba(243, 239, 231, 0));
}
.subcat-tabs-wrap.has-overflow-left::before {
  opacity: 1;
}
.subcat-tabs-wrap.has-overflow-right::after {
  opacity: 1;
}

.subcat-tabs-bar {
  display: flex;
  gap: 0.45rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbbfb0 transparent;
  margin: 0.8rem 0 1.1rem;
  padding-bottom: 0.35rem;
}
.subcat-tabs-wrap .subcat-tabs-bar {
  margin: 0;
}
.subcat-tabs-bar::-webkit-scrollbar {
  height: 5px;
}
.subcat-tabs-bar::-webkit-scrollbar-track {
  background: transparent;
}
.subcat-tabs-bar::-webkit-scrollbar-thumb {
  background: #cbbfb0;
  border-radius: 999px;
}
.subcat-tabs-bar::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}
.subcat-tab {
  flex-shrink: 0;
  white-space: nowrap;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.32rem 0.75rem;
  font-size: 0.86rem;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.subcat-tab:hover {
  color: var(--ink);
  border-color: #cbbfb0;
}
.subcat-tab.is-active {
  background: #eae4d9;
  color: var(--ink);
  border-color: #cbbfb0;
  font-weight: 600;
}
.subcat-panel {
  display: none;
}
.subcat-panel.is-active {
  display: block;
}
#doc:not(.has-js) .subcat-panel {
  display: block;
  margin-bottom: 1.5rem;
}

/* Ranking Cards */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0.8rem 0 1.6rem;
}
.rank-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.75rem 0.95rem;
  transition: border-color 0.15s;
}
.rank-card:hover {
  border-color: #cbbfb0;
}
.rank-card-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.rank-badge {
  font-size: 1.25rem;
  font-weight: 700;
  min-width: 1.8rem;
  max-width: 5.5rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.rank-badge.rank-top1 { color: #8f2d22; font-size: 1.45rem; }
.rank-badge.rank-top2 { color: #b24826; font-size: 1.35rem; }
.rank-badge.rank-top3 { color: #805b2a; font-size: 1.3rem; }
/* Non-numeric or long ranks such as "1=" "2–3" "并列4" */
.rank-badge.rank-badge-wide { font-size: 0.95rem; }

.rank-info {
  flex: 1;
  min-width: 0;
}
.rank-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.rank-model-name {
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--ink);
}
.rank-vendor-name {
  font-size: 0.78rem;
  color: var(--muted);
  background: #eae4d9;
  padding: 0.08rem 0.4rem;
  border-radius: 0.25rem;
  white-space: nowrap;
}
.rank-reason-short {
  font-size: 0.88rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
  max-width: 100%;
}
.rank-price-tag {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--ink);
  background: #f1ebd0;
  border: 1px solid #e2dac6;
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
  white-space: nowrap;
  max-width: 13rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Rank Evidence Dropdown */
.rank-evidence-details {
  margin-top: 0.4rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.35rem;
}
.rank-evidence-summary {
  cursor: pointer;
  user-select: none;
  font-size: 0.8rem;
  color: var(--accent);
  list-style: none;
  display: inline-block;
  font-weight: 550;
}
.rank-evidence-summary::-webkit-details-marker {
  display: none;
}
.rank-evidence-content {
  margin-top: 0.45rem;
  font-size: 0.86rem;
  color: var(--ink);
  background: #faf6ef;
  padding: 0.6rem 0.85rem;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
  line-height: 1.55;
}
.rank-full-reason {
  margin-bottom: 0.3rem;
}
.rank-source-line {
  color: var(--muted);
}
.evidence-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 0.35rem;
}

/* Watchlist and Meta Notes below Ranking */
.cat-meta-list {
  margin: 1.2rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cat-meta-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 0.45rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.45rem;
}
.cat-meta-badge {
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 650;
  padding: 0.12rem 0.45rem;
  border-radius: 0.25rem;
  color: var(--ink);
  background: #eae4d9;
}
.cat-meta-badge.cat-meta-watch {
  background: #e9e2d3;
  color: #4a4237;
}
.cat-meta-badge.cat-meta-price {
  background: #e4ecdf;
  color: #274d25;
}
.cat-meta-badge.cat-meta-warning {
  background: #f7e6e3;
  color: #8f2d22;
}
.cat-meta-badge.cat-meta-basis {
  background: #e2e8ee;
  color: #2c4356;
}
.cat-meta-text {
  flex: 1;
  color: var(--muted);
}
.cat-meta-text strong {
  color: var(--ink);
}
.cat-meta-details {
  margin-top: 0.25rem;
}
.cat-meta-summary {
  cursor: pointer;
  user-select: none;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 550;
  list-style: none;
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: #faf6ef;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  margin-bottom: 0.4rem;
}
.cat-meta-summary:hover {
  background: #f3ede2;
}
.cat-meta-summary::-webkit-details-marker {
  display: none;
}
.cat-meta-details-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.cat-meta-row.cat-meta-secondary {
  background: rgba(255, 255, 255, 0.45);
  border-color: #eee8dc;
  opacity: 0.9;
}
.cat-meta-row.cat-meta-secondary .cat-meta-text {
  font-size: 0.84rem;
}
.cat-meta-sublist {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
}
.cat-meta-sublist li { margin: 0.15rem 0; }
.cat-pre > :first-child { margin-top: 0; }
.cat-pre .cat-meta-list { margin: 0.6rem 0 0.8rem; }
.doc-preamble {
  color: var(--muted);
  font-size: 0.86rem;
}
.doc-preamble p, .doc-preamble blockquote { margin: 0.2rem 0; }
#doc .doc-preamble blockquote { border: 0; padding: 0; margin: 0.2rem 0; background: none; color: inherit; font-style: normal; }

/* Model usage guide */
.cat-tab-icon { font-size: 0.95em; }
.guide-intro {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  margin: 0 0 1rem;
}
#doc .guide-intro p { margin: 0.25rem 0; }
/* Two-level picker: 厂商 → 模型 */
.guide-picker {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 1rem;
  min-width: 0;
}
.guide-picker-level {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.guide-picker-label {
  flex-shrink: 0;
  width: 2.2rem;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--muted);
}
.guide-model-rows { flex: 1; min-width: 0; }
.guide-chip-row {
  position: relative;
  flex: 1;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbbfb0 transparent;
  padding: 0.15rem 0.1rem 0.3rem;
}
.guide-chip-row::-webkit-scrollbar { height: 4px; }
.guide-chip-row::-webkit-scrollbar-thumb { background: #cbbfb0; border-radius: 999px; }
.guide-model-row { display: none; }
.guide-model-row.is-active { display: flex; }
.guide-chip {
  flex-shrink: 0;
  appearance: none;
  font-family: inherit;
  font-size: 0.84rem;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.guide-chip:hover { border-color: #cbbfb0; background: #f6f1e8; }
.guide-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.guide-chip-count {
  display: inline-block;
  min-width: 1.15rem;
  margin-left: 0.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  text-align: center;
  color: var(--muted);
  background: #eae4d9;
}
.guide-vendor-chip.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  font-weight: 650;
}
.guide-vendor-chip.is-active .guide-chip-count { color: var(--ink); background: #f3efe7; }
.guide-model-chip.is-active {
  color: var(--accent);
  background: #f7e9e4;
  border-color: var(--accent);
  font-weight: 650;
  box-shadow: inset 0 0 0 1px var(--accent);
}
#doc:not(.has-js) .guide-picker { display: none; }

/* Selected model card */
.guide-stage { margin-bottom: 1.6rem; min-width: 0; }
/* 完整依据: collapsed evidence block at the bottom of a guide card */
.guide-evidence {
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #faf6ef;
  min-width: 0;
}
.guide-evidence-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 0.55rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink);
  border-radius: 0.5rem;
}
.guide-evidence-summary::-webkit-details-marker { display: none; }
.guide-evidence-summary::marker { content: ""; }
.guide-evidence-summary:hover { background: #f3ede2; }
.guide-evidence-summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.guide-evidence-chevron {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.2rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-0.12rem) rotate(45deg);
  transition: transform 0.15s ease;
}
.guide-evidence[open] .guide-evidence-chevron { transform: translateY(0.1rem) rotate(-135deg); }
.guide-evidence[open] .guide-evidence-summary { border-bottom: 1px solid var(--line); border-radius: 0.5rem 0.5rem 0 0; }
.guide-evidence-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem 0.8rem;
  font-size: 0.85rem;
  line-height: 1.65;
  min-width: 0;
}
#doc .guide-evidence-intro { margin: 0; color: var(--muted); }
.guide-evidence-entry {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid #b9a98f;
  border-radius: 0.4rem;
  padding: 0.5rem 0.7rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.guide-evidence-source {
  font-weight: 650;
  font-size: 0.82rem;
  color: var(--ink);
  margin-bottom: 0.15rem;
}
.guide-evidence-text { color: #3d3630; }

.guide-card { display: none; }
#doc.has-js .guide-stage .guide-card.is-active { display: block; }
#doc:not(.has-js) .guide-stage .guide-card + .guide-card { margin-top: 1rem; }
.guide-card-vendor {
  font-size: 0.76rem;
  color: var(--muted);
  background: #eae4d9;
  border-radius: 0.25rem;
  padding: 0.05rem 0.4rem;
  margin-right: auto;
}
.guide-card-vendor-key { opacity: 0.75; margin-right: 0.1rem; }
.guide-card-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.guide-card-body .guide-row {
  border: 1px solid var(--line);
  border-top: 3px solid var(--g-color, var(--line));
  border-radius: 0.5rem;
  background: #fffaf2;
  padding: 0.6rem 0.8rem;
  min-width: 0;
}
.guide-card-body .guide-row:last-child { border-bottom: 1px solid var(--line); }
.guide-card-body .guide-extra { grid-column: 1 / -1; }
.guide-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.9rem 1rem 0.6rem;
  min-width: 0;
  scroll-margin-top: 1rem;
}
.guide-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
  margin-bottom: 0.4rem;
}
.guide-model {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
}
.guide-effort {
  font-size: 0.76rem;
  font-weight: 600;
  color: #2c4356;
  background: #e2e8ee;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  white-space: nowrap;
}
.guide-row {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.87rem;
  line-height: 1.6;
}
.guide-row:last-child { border-bottom: 0; }
.guide-row-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--g-color, var(--muted));
}
.guide-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  font-size: 0.68rem;
  line-height: 1;
  color: #fff;
  background: var(--g-color, var(--muted));
  flex-shrink: 0;
}
.guide-row-strength { --g-color: #2f6b2c; }
.guide-row-caution { --g-color: #a2372a; }
.guide-row-usage { --g-color: #2c5a80; }
.guide-row-pairing { --g-color: #6b4a8a; }
.guide-row-switch { --g-color: #b0661a; }
.guide-row-other { --g-color: #7a7062; }
.guide-row-neutral { --g-color: #7a7062; }
.guide-row-body { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.guide-text { margin: 0; }
.guide-points {
  margin: 0;
  padding-left: 1.05rem;
}
.guide-points li { margin: 0.12rem 0; }
.guide-points li::marker { color: var(--g-color, var(--muted)); }
.guide-subkey {
  font-weight: 650;
  color: var(--ink);
  margin-right: 0.3rem;
}
.guide-subkey::after { content: "："; }
.guide-subkey-effort {
  color: #2c4356;
  background: #e2e8ee;
  border-radius: 0.25rem;
  padding: 0 0.3rem;
}
.guide-extra { font-size: 0.86rem; color: var(--muted); }
#doc .guide-extra p { margin: 0.4rem 0; }
#doc .guide-points li + li { margin-top: 0.12rem; }
.cat-meta-badge.cat-meta-badge-secondary {
  background: #f0ebe2;
  color: #7a7062;
  font-weight: 500;
}

/* Report First Fold: 3 Groups of Cards */
.report-overview-section {
  margin: 1.2rem 0 2rem;
}
.report-groups-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
@media (max-width: 900px) {
  .report-groups-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}
.report-group-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.group-col-header {
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--line);
}
.group-col-count {
  font-size: 0.82rem;
  font-weight: normal;
  color: var(--muted);
}
.group-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Model Quick Card */
.model-quick-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  transition: border-color 0.15s;
}
.model-quick-card:hover {
  border-color: #cbbfb0;
}
.model-quick-card.group-rec {
  border-left: 4px solid #3c763d;
}
.model-quick-card.group-consider {
  border-left: 4px solid #a3721e;
}
.model-quick-card.group-wait {
  border-left: 4px solid #7c6858;
}

.model-quick-summary {
  cursor: pointer;
  user-select: none;
  list-style: none;
  padding: 0.75rem 0.85rem;
}
.model-quick-summary::-webkit-details-marker {
  display: none;
}
.model-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.model-card-name {
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
}
.model-card-vendor {
  font-size: 0.78rem;
  color: var(--muted);
  flex-shrink: 0;
}
.model-card-conclusion {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0.35rem;
}
.model-card-toggle {
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 550;
  display: inline-block;
}
.model-quick-card[open] > .model-quick-summary {
  border-bottom: 1px solid var(--line);
  background: #faf6ef;
}
.model-quick-card[open] .model-card-toggle {
  display: none;
}
.model-quick-detail-body {
  padding: 0.85rem 0.95rem;
  font-size: 0.88rem;
  line-height: 1.6;
}
.model-quick-detail-body p {
  margin: 0.55rem 0;
}
.model-quick-detail-body ul {
  margin: 0.4rem 0 0.6rem;
  padding-left: 1.15rem;
}

.report-context-banner {
  margin-top: 1.2rem;
  padding: 0.75rem 0.95rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}
.report-context-banner p {
  margin: 0;
}

/* Comparison Section (Horizontal Bars) */
.report-comp-section {
  margin: 2.2rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.section-title {
  font-size: 1.35rem;
  font-weight: 650;
  margin: 0 0 1rem;
  color: var(--ink);
}
.comp-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.comp-row-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.7rem 0.95rem;
}
.comp-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.comp-model-name {
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--ink);
}
.comp-conclusion-badge {
  font-size: 0.82rem;
  color: var(--muted);
}
.comp-bar-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.35rem 0;
}
.comp-bar-track {
  flex: 1;
  height: 0.65rem;
  background: #eae4d9;
  border-radius: 999px;
  overflow: hidden;
}
.comp-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.comp-score-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 3.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.comp-score-none {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}
.comp-row-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.meta-sublabel {
  font-weight: 600;
  color: var(--ink);
}

/* Scenario Cards Section */
.report-scenarios-section {
  margin: 2.2rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 768px) {
  .scenarios-grid {
    grid-template-columns: 1fr;
  }
}
.scenario-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
}
.scenario-title {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0 0 0.55rem;
  color: var(--ink);
}
.scenario-top-box {
  background: #faf6ef;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.scenario-top-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fffdf8;
  background: var(--accent);
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  flex-shrink: 0;
}
.scenario-top-text {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.5;
}
.scenario-alt-details {
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--line);
}
.scenario-alt-summary {
  cursor: pointer;
  user-select: none;
  font-size: 0.8rem;
  color: var(--muted);
  list-style: none;
  font-weight: 550;
}
.scenario-alt-summary:hover {
  color: var(--accent);
}
.scenario-alt-summary::-webkit-details-marker {
  display: none;
}
.scenario-alt-content {
  margin-top: 0.4rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
  background: #faf6ef;
  padding: 0.5rem 0.7rem;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
}

/* Footer Notes Accordion */
.report-footer-notes {
  margin-top: 2.5rem;
}

/* General Typography & Elements */
#doc > :first-child { margin-top: 0; }
#doc p,
.doc-content p {
  margin: 0.85rem 0;
  line-height: 1.65;
}
#doc ul, #doc ol,
.doc-content ul, .doc-content ol {
  margin: 0.75rem 0 1rem;
  line-height: 1.65;
  padding-left: 1.25rem;
}
#doc li + li,
.doc-content li + li {
  margin-top: 0.35rem;
}
#doc hr { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }
#doc blockquote {
  margin: 1rem 0;
  padding: 0.2rem 0 0.2rem 0.9rem;
  border-left: 3px solid #c9b8a4;
  color: var(--muted);
}
#doc code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--code);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}
#doc pre {
  overflow-x: auto;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  background: #241f1c;
  color: #f6f1ea;
  border-radius: 0.6rem;
}
#doc pre code { background: transparent; color: inherit; padding: 0; }

/* Table Styling */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.1rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--card);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 38rem;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
th, td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.65rem 0.9rem;
  vertical-align: top;
}
th {
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  background: #faf6ef;
  border-bottom: 2px solid var(--line);
}
td {
  line-height: 1.55;
}
tr:last-child td { border-bottom: 0; }
/* Wide tables scroll inside .table-wrap; the first column stays put while scrolling.
   Backgrounds match the wrapper, so unscrolled tables look unchanged. */
.table-wrap th:first-child, .table-wrap td:first-child { position: sticky; left: 0; z-index: 1; }
.table-wrap td:first-child { background: var(--card); }

.status, .error { color: var(--muted); }
.meta { margin-top: 2rem; color: var(--muted); font-size: 0.85rem; }

/* Mobile Adjustments */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header, .site-footer, .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  .wrap.doc-wrap { width: calc(100% - 1.5rem); }
  .wrap { padding-top: 1.5rem; }
  .doc-title { font-size: 1.65rem; }
  
  /* Badge | info; price tag drops under the info column and wraps fully. */
  .rank-card-main {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.35rem 0.6rem;
  }
  .rank-badge { padding-top: 0.1rem; }
  .rank-price-tag {
    grid-column: 2;
    justify-self: start;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }
  .rank-reason-short {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .guide-card { padding: 0.8rem 0.85rem 0.5rem; }
  .cat-meta-row {
    flex-direction: column;
    gap: 0.25rem;
  }
  table { min-width: 32rem; }
}

/* Task workflows (## 任务工作流) */
.workflow-panel .cat-panel-header { margin-bottom: 0.6rem; }
/* Workflow names as tabs at the top of the panel; sticky inside the scrolling body. */
.wf-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 0.45rem 0 0.55rem;
  margin-bottom: 0.4rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.wf-tabs .wf-chip { font-size: 0.92rem; padding: 0.38rem 0.95rem; }
.wf-chip.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  font-weight: 650;
}
.wf-intro { margin: 0.2rem 0 0.6rem; font-size: 0.86rem; color: var(--muted); }
.wf-intro-summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--accent);
  padding: 0.12rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.wf-intro-summary::-webkit-details-marker { display: none; }
.wf-intro-body {
  margin-top: 0.4rem;
  padding: 0.55rem 0.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0.45rem;
  line-height: 1.65;
}
#doc .wf-intro p { margin: 0.2rem 0; }

#doc.has-js .wf-stage .wf-card { display: none; }
#doc.has-js .wf-stage .wf-card.is-active { display: block; }
#doc:not(.has-js) .wf-card + .wf-card { margin-top: 1rem; }
/* The tab already shows the name; keep the heading for no-JS and the DOM. */
#doc.has-js .wf-tabs ~ .wf-stage .wf-title { display: none; }
.wf-stage { margin-bottom: 1.2rem; min-width: 0; }
.wf-card { min-width: 0; }
#doc .wf-title { margin: 0 0 0.6rem; font-size: 1.1rem; font-weight: 700; }

/* Notes (适用场景 / 简化方案 / 路线 / 注意): compact multi-column grid */
.wf-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.5rem;
  margin: 0.6rem 0;
}
.wf-note {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--card);
  font-size: 0.83rem;
  line-height: 1.55;
  min-width: 0;
  overflow-wrap: anywhere;
}
.wf-note-key { font-size: 0.74rem; font-weight: 700; color: var(--muted); margin-bottom: 0.1rem; }
.wf-note-scene { background: #eef2f5; border-color: #d9e1e8; }
.wf-note-scene .wf-note-key { color: #2c4356; }
.wf-note-warn { background: #fbf0ed; border-color: #efd6d0; }
.wf-note-warn .wf-note-key { color: #8f2d22; }
.wf-note-single .wf-note-key { color: #274d25; }
.wf-route { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.25rem; }
.wf-route-node {
  background: #faf6ef;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  padding: 0 0.35rem;
}
.wf-route-arrow { color: var(--accent); font-weight: 700; font-size: 0.8rem; }

/* Routes: one full-width row each, grouped in one block */
.wf-routes {
  margin: 0.6rem 0;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--card);
  overflow: hidden;
}
.wf-route-row {
  display: grid;
  grid-template-columns: 8em minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.5rem 0.7rem;
  font-size: 0.83rem;
  line-height: 1.45;
}
.wf-route-row + .wf-route-row { border-top: 1px solid var(--line); }
.wf-route-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.wf-route-main { min-width: 0; }
.wf-routes .wf-route {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.35rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.wf-routes .wf-route-node {
  flex: 1 1 0;
  min-width: 7.5rem;
  display: flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  overflow-wrap: anywhere;
}
.wf-routes .wf-route-arrow { flex: 0 0 auto; align-self: center; }
@media (max-width: 640px) {
  .wf-route-row { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
  .wf-routes .wf-route-node { flex: 0 0 auto; min-width: 0; max-width: 15rem; }
}

/* Steps: one column per step, side by side, connected by arrows. */
#doc .wf-steps {
  list-style: none;
  margin: 0.6rem 0;
  padding: 0 0 0.3rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(14rem, 1fr);
  gap: 1.1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  align-items: start;
}
#doc .wf-steps > li + li { margin-top: 0; }
.wf-step {
  position: relative;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 0.55rem;
  padding: 0.6rem 0.7rem 0.65rem;
}
.wf-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -0.95rem;
  top: 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}
.wf-step-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.4rem; }
.wf-step-no {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.02rem 0.45rem;
  white-space: nowrap;
}
.wf-step-title { font-weight: 700; font-size: 0.93rem; color: var(--ink); line-height: 1.35; }
.wf-step-pick { margin-top: 0.4rem; font-size: 0.86rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.wf-pick-key {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #274d25;
  background: #e4ecdf;
  border-radius: 0.25rem;
  padding: 0 0.3rem;
  margin-right: 0.3rem;
}
/* Sub-items: label above text, all left-aligned to the column edge. */
.wf-sub { margin-top: 0.45rem; display: flex; flex-direction: column; gap: 0.35rem; }
.wf-sub-row {
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--line);
}
.wf-sub-key { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.wf-sub-alt .wf-sub-key { color: #2c5a80; }
.wf-sub-handoff .wf-sub-key { color: #274d25; }
.wf-sub-handoff .wf-sub-text { background: #f1f5ee; border-radius: 0.3rem; padding: 0.15rem 0.35rem; margin-top: 0.1rem; }
.wf-why-summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  user-select: none;
}
.wf-why-summary::-webkit-details-marker { display: none; }
.wf-why[open] .wf-why-arrow { display: inline-block; transform: rotate(180deg); }
.wf-why .wf-sub-text { color: #4a423a; margin-top: 0.15rem; }
.wf-extra { font-size: 0.88rem; }

/* Mobile: steps become a swipe carousel, one step per view with the next peeking. */
@media (max-width: 640px) {
  #doc .wf-steps {
    grid-auto-columns: 86%;
    gap: 0.7rem;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 0.1rem;
  }
  .wf-step { scroll-snap-align: start; }
  .wf-step:not(:last-child)::after { right: -0.65rem; }
  .wf-tabs .wf-chip { font-size: 0.85rem; padding: 0.32rem 0.8rem; }
}

/* 个人智能体 (## 个人智能体) */
.agents-intro { font-size: 0.9rem; color: #4a423a; margin-bottom: 0.6rem; }
#doc .agents-intro p { margin: 0.2rem 0 0.5rem; }
.agents-tabs-wrap { margin-bottom: 0.9rem; }
#doc .agents-sub-title { font-size: 1.1rem; margin: 0 0 0.6rem; }
#doc.has-js .agents-sub-title { display: none; }
.agents-panel .table-wrap { margin: 0.6rem 0 1rem; }
.agents-panel table { min-width: 52rem; font-size: 0.84rem; }
.agents-panel th, .agents-panel td { padding: 0.5rem 0.65rem; }
.agents-panel td:first-child { font-weight: 650; white-space: nowrap; }
.agents-panel th:first-child, .agents-panel td:first-child { box-shadow: inset -1px 0 0 var(--line); }
@media (min-width: 900px) { .agents-panel table { min-width: 0; } }

/* ---------- Home (index.html, body.home only) ---------- */
body.home { --max: 68rem; }
.home-main { padding-bottom: 2.5rem; }
.home-hero {
  position: relative;
  margin: 0.4rem 0 2.2rem;
  padding: 2.2rem 2.2rem 2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(143, 45, 34, 0.08) 0%, rgba(143, 45, 34, 0) 55%),
    var(--card);
  overflow: hidden;
}
.home-hero h1 { margin: 0.25rem 0 0.6rem; font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -0.01em; line-height: 1.1; }
.home-purpose { margin: 0; max-width: 42rem; color: #4a423a; font-size: 1.08rem; line-height: 1.7; }
.home-stamp { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.1rem 0 0; }
.home-stamp span {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  font-variant-numeric: tabular-nums;
}
.home-section { margin: 0 0 2.1rem; }
.home-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.8rem; margin-bottom: 0.85rem; }
.home-section-head h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.home-section-head p { margin: 0; font-size: 0.86rem; color: var(--muted); }
.home-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: 0.9rem;
}
.home-grid > li { display: flex; min-width: 0; }
.home-card {
  flex: 1;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.35rem;
  min-width: 0;
  padding: 1.1rem 1.15rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.home-card:hover { border-color: #c9b8a4; box-shadow: 0 6px 18px rgba(30, 26, 23, 0.07); transform: translateY(-1px); }
.home-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.home-card-primary { border-top: 3px solid var(--accent); }
.home-card-icon {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.6rem;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}
.home-card-title { font-weight: 700; font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.home-card-desc { color: #4a423a; font-size: 0.9rem; line-height: 1.6; }
.home-card-meta {
  margin-top: 0.45rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.home-card:hover .home-card-meta { color: var(--accent); }
.home-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.5;
  padding: 0 0.45rem;
  border-radius: 999px;
  color: #8a5a00;
  background: #f7ead0;
}
.home-tag[hidden] { display: none; }
.home-tag-new { color: #fff; background: var(--accent); }
.home-reports { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.home-report {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.home-report:hover { border-color: #c9b8a4; box-shadow: 0 4px 14px rgba(30, 26, 23, 0.06); }
.home-report:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.home-report.is-latest { border-left: 4px solid var(--accent); padding-left: 1rem; }
.home-report-main { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; min-width: 0; }
.home-report-title { font-weight: 650; overflow-wrap: anywhere; }
.home-report-range { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.home-report-side { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.home-report-go { color: var(--accent); font-weight: 700; transition: transform 0.15s ease; }
.home-report:hover .home-report-go { transform: translateX(2px); }
@media (min-width: 900px) {
  .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 899px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .home-hero { padding: 1.4rem 1.2rem 1.3rem; margin-bottom: 1.6rem; border-radius: 0.8rem; }
  .home-purpose { font-size: 1rem; }
  .home-grid { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
  .home-report { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .home-report-side { width: 100%; justify-content: space-between; }
}
/* Single-card sections: one wide horizontal card, no empty columns. */
#doc .home-grid-wide, .home-grid.home-grid-wide { grid-template-columns: minmax(0, 1fr); }
.home-card-wide {
  grid-template-rows: none;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem 1.1rem;
}
.home-card-wide .home-card-icon { margin: 0; width: 2.8rem; height: 2.8rem; font-size: 1.35rem; }
.home-card-text { display: grid; gap: 0.25rem; min-width: 0; }
.home-card-wide .home-card-meta { margin: 0; padding: 0 0 0 1.1rem; border-top: 0; border-left: 1px dashed var(--line); white-space: nowrap; }
@media (max-width: 639px) {
  .home-card-wide { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .home-card-wide .home-card-meta { grid-column: 1 / -1; white-space: normal; padding: 0.55rem 0 0; border-left: 0; border-top: 1px dashed var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .home-card, .home-report, .home-report-go { transition: none; }
  .home-card:hover { transform: none; }
}

/* New-report bubble in the hero */
.home-bubble {
  position: relative; display: flex; align-items: center; gap: 0.9rem;
  margin-top: 1rem; padding: 0.8rem 2.6rem 0.8rem 0.9rem; max-width: 46rem;
  background: #fff7ef; border: 1px solid #ecd2bd; border-radius: 12px;
  box-shadow: 0 6px 18px rgba(143, 45, 34, 0.08);
  animation: bubble-in 0.42s cubic-bezier(.2,.8,.3,1) both;
}
.home-bubble[hidden] { display: none; }
.home-bubble::before {
  content: ""; position: absolute; top: -7px; left: 1.6rem; width: 12px; height: 12px;
  background: #fff7ef; border-left: 1px solid #ecd2bd; border-top: 1px solid #ecd2bd; transform: rotate(45deg);
}
.home-bubble.is-leaving { animation: bubble-out 0.22s ease forwards; }
.home-bubble-label {
  flex: none; font-size: 0.75rem; font-weight: 600; color: #fff; background: var(--accent);
  padding: 0.18rem 0.55rem; border-radius: 999px; letter-spacing: 0.04em;
}
.home-bubble-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.home-bubble-title { font-weight: 600; color: inherit; text-decoration: none; }
.home-bubble-title:hover { color: var(--accent); }
.home-bubble-meta { display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; font-size: 0.82rem; opacity: 0.72; }
.home-bubble-go {
  flex: none; font-size: 0.9rem; font-weight: 600; text-decoration: none;
  padding: 0.35rem 0.8rem; border: 1px solid #e3bfa6; border-radius: 999px; background: #fff;
}
.home-bubble-go:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.home-bubble-close {
  position: absolute; top: 0.35rem; right: 0.45rem; width: 1.8rem; height: 1.8rem;
  border: 0; background: none; font-size: 1.2rem; line-height: 1; color: inherit; opacity: 0.5; cursor: pointer; border-radius: 6px;
}
.home-bubble-close:hover { opacity: 1; background: rgba(143,45,34,0.08); }
@keyframes bubble-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes bubble-out { to { opacity: 0; transform: translateY(-4px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .home-bubble, .home-bubble.is-leaving { animation: none; } }
@media (max-width: 600px) {
  .home-bubble { flex-wrap: wrap; gap: 0.5rem 0.7rem; padding-right: 2.4rem; }
  .home-bubble-body { flex-basis: 100%; order: 2; }
  .home-bubble-go { order: 3; }
}

/* Five-item top nav */
.site-header { gap: 0.8rem; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.15rem 0.9rem; min-width: 0; }
.site-header nav a { white-space: nowrap; }
@media (max-width: 480px) {
  .site-header nav { gap: 0.1rem 0.6rem; }
  .site-header nav a { font-size: 0.86rem; }
  .brand { font-size: 0.95rem; white-space: nowrap; }
}

/* ---- /ask/ (v2: hero search → docked chat composer) ---- */
.ask-page, .home-ask { --amber: #e0973a; --terra: #b4472f; --glass: rgba(255, 253, 248, 0.72); }
.ask-page .site-header { position: relative; z-index: 2; }
.ask2-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ask2-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: ask2-drift 22s ease-in-out infinite alternate; }
.ask2-blob.b1 { width: 42vw; height: 42vw; left: -8vw; top: -6vw; background: radial-gradient(circle, #f2c9a9 0%, transparent 70%); }
.ask2-blob.b2 { width: 36vw; height: 36vw; right: -6vw; top: 18vh; background: radial-gradient(circle, #f6d79f 0%, transparent 70%); animation-duration: 28s; animation-delay: -6s; }
.ask2-blob.b3 { width: 46vw; height: 46vw; left: 28vw; bottom: -22vw; background: radial-gradient(circle, #e9b3a2 0%, transparent 70%); animation-duration: 34s; animation-delay: -12s; }
.ask2-grain { position: absolute; inset: -50%; opacity: 0.07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes ask2-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4vw, 3vh) scale(1.08); } 100% { transform: translate(-3vw, 5vh) scale(0.95); } }

.ask2 { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(50rem, calc(100% - 2rem)); padding-bottom: 1.5rem; min-height: calc(100vh - 4.5rem); }
.ask2-hero { order: 0; text-align: center; padding: 9vh 0 1.6rem; transition: opacity .35s, transform .35s; }
.ask2-eyebrow { display: inline-flex; gap: 0.4rem; align-items: center; margin: 0 0 1rem; padding: 0.3rem 0.85rem; font-size: 0.82rem; color: var(--accent); background: rgba(255,255,255,.6); border: 1px solid #ecd2bd; border-radius: 999px; backdrop-filter: blur(6px); }
.ask2-spark { animation: ask2-twinkle 2.4s ease-in-out infinite; display: inline-block; }
@keyframes ask2-twinkle { 50% { transform: rotate(90deg) scale(1.25); opacity: .6; } }
.ask2-title { margin: 0; font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.1; letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--ink) 20%, var(--terra) 55%, var(--amber) 80%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ask2-sheen 7s linear infinite; }
@keyframes ask2-sheen { to { background-position: -200% center; } }
.ask2-sub { max-width: 34rem; margin: 0.9rem auto 0; color: var(--muted); font-size: 0.98rem; }

.ask2-thread { order: 1; display: flex; flex-direction: column; gap: 1.6rem; }
.ask2-composer { order: 2; position: relative; z-index: 3; }
.ask2-chips { order: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; margin-top: 1.1rem; }
.ask2-foot-note { order: 4; text-align: center; margin: 1.2rem 0 0; }
.ask2-link { font: inherit; font-size: 0.82rem; background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }

/* composer with glowing animated gradient border */
@property --ask2-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
/* no backdrop-filter/z-index on .ask2-field: its ::before/::after (z-index:-1) must paint behind it */
.ask2-field { position: relative; border-radius: 22px; padding: 0.85rem 0.9rem 0.6rem 1.15rem; background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 10px 40px rgba(143, 45, 34, 0.12), inset 0 1px 0 rgba(255,255,255,.8); }
.ask2-field::before, .ask2-field::after { content: ""; position: absolute; inset: -1.5px; border-radius: 23.5px; z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--ask2-angle), var(--terra), var(--amber), #f3d2a2, var(--terra), #d0674a, var(--amber), var(--terra)); animation: ask2-spin 6s linear infinite; }
.ask2-field::before { -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1.5px; }
.ask2-field::after { filter: blur(18px); opacity: 0.35; transition: opacity .3s; }
.ask2-composer:focus-within .ask2-field::after { opacity: 0.6; }
@keyframes ask2-spin { to { --ask2-angle: 360deg; } }
.ask2-field textarea { display: block; width: 100%; resize: none; border: 0; outline: none; background: transparent; font: inherit; font-size: 1.08rem; line-height: 1.6; color: var(--ink); min-height: 1.7em; max-height: 220px; }
.ask2-field textarea::placeholder { color: #a39789; }
.ask2-field-foot { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.45rem; }
.ask2-hint { margin-right: auto; font-size: 0.74rem; color: var(--muted); }
.ask2-hint kbd { font: inherit; font-size: 0.7rem; padding: 0.05rem 0.35rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: #fff; }
.ask2-count { font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ask2-send { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #d9b8a6, #cfb3a2); transition: transform .2s, box-shadow .2s, background .3s; }
.ask2-send.is-ready { background: linear-gradient(135deg, var(--terra), var(--amber)); box-shadow: 0 6px 18px rgba(180, 71, 47, .35); }
.ask2-send.is-ready:hover { transform: translateY(-1px) scale(1.06); }
.ask2-send:disabled { cursor: progress; }
@keyframes ask2-pulse { 50% { box-shadow: 0 0 0 8px rgba(224, 151, 58, .18); } }

.ask2-chip { font: inherit; font-size: 0.88rem; color: var(--ink); cursor: pointer; padding: 0.45rem 0.95rem; border-radius: 999px; border: 1px solid #ecd2bd;
  background: rgba(255, 253, 248, .75); backdrop-filter: blur(6px); transition: transform .2s, border-color .2s, box-shadow .2s, color .2s;
  animation: ask2-rise .5s cubic-bezier(.2,.8,.2,1) both; }
.ask2-chip:nth-child(2) { animation-delay: .06s; } .ask2-chip:nth-child(3) { animation-delay: .12s; } .ask2-chip:nth-child(4) { animation-delay: .18s; }
.ask2-chip:hover { transform: translateY(-2px); border-color: var(--terra); color: var(--accent); box-shadow: 0 6px 16px rgba(143,45,34,.12); }
@keyframes ask2-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* chat state */
.ask2.is-chat .ask2-hero, .ask2.is-chat .ask2-chips { display: none; }
.ask2.is-chat { padding-top: 1.6rem; }
.ask2.is-chat .ask2-composer { position: sticky; bottom: 0; margin-top: 1.6rem; padding: 0.9rem 0 1rem;
  background: linear-gradient(to bottom, rgba(243,239,231,0), var(--bg) 38%); }
.ask2.is-chat .ask2-foot-note { margin-top: 0.2rem; }
.ask2-turn { display: flex; flex-direction: column; gap: 0.9rem; animation: ask2-rise .45s cubic-bezier(.2,.8,.2,1) both; }
.ask2-q { align-self: flex-end; max-width: 85%; }
.ask2-q p { margin: 0; padding: 0.65rem 1rem; border-radius: 18px 18px 4px 18px; color: #fff; font-weight: 550; background: linear-gradient(135deg, var(--terra), #c4683a); box-shadow: 0 6px 18px rgba(143,45,34,.18); overflow-wrap: anywhere; }
.ask2-a { display: flex; gap: 0.8rem; align-items: flex-start; }
.ask2-avatar { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 0.95rem; background: conic-gradient(from 180deg, var(--terra), var(--amber), var(--terra)); box-shadow: 0 4px 12px rgba(180,71,47,.25); }
.is-busy .ask2-turn:last-child .ask2-avatar { animation: ask2-twinkle 2s ease-in-out infinite; }
.ask2-a-body { flex: 1; min-width: 0; padding: 0.9rem 1.1rem 0.8rem; border-radius: 4px 18px 18px 18px; background: var(--glass); border: 1px solid rgba(228, 220, 208, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(30,26,23,.05); }

/* staged status steps */
.ask2-steps { list-style: none; margin: 0 0 0.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: 0.84rem; color: var(--muted); max-height: 3rem; transition: max-height .4s, opacity .3s, margin .4s; }
.ask2-steps.is-collapsed { max-height: 0; opacity: 0; margin: 0; overflow: hidden; }
.ask2-steps li { display: flex; align-items: center; gap: 0.4rem; opacity: 0.45; transition: opacity .3s; }
.ask2-steps li.is-active, .ask2-steps li.is-done { opacity: 1; }
.ask2-step-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid currentColor; box-sizing: border-box; }
.ask2-steps li.is-active { color: var(--accent); }
.ask2-steps li.is-active .ask2-step-dot { border-color: var(--amber); border-top-color: var(--terra); animation: ask2-rot .8s linear infinite; }
.ask2-steps li.is-done .ask2-step-dot { background: #6c9a6a; border-color: #6c9a6a; }
.ask2-steps li.is-active .ask2-step-label { background: linear-gradient(90deg, var(--accent) 30%, #e8b48a 50%, var(--accent) 70%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ask2-sheen 1.6s linear infinite; }
@keyframes ask2-rot { to { transform: rotate(360deg); } }

/* sources strip */
.ask2-sources-head { font-size: 0.78rem; font-weight: 650; color: var(--muted); letter-spacing: .06em; margin-bottom: 0.4rem; }
.ask2-src-strip { display: flex; gap: 0.6rem; overflow-x: auto; scroll-snap-type: x proximity; padding: 0.15rem 0.1rem 0.6rem; margin: 0 -0.1rem; scrollbar-width: thin; }
.ask2-src { flex: none; width: 12.5rem; scroll-snap-align: start; display: flex; flex-direction: column; gap: 0.3rem; padding: 0.6rem 0.7rem; border-radius: 12px; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; animation: ask2-rise .4s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 50ms); }
.ask2-src:hover, .ask2-src.is-hl { transform: translateY(-2px); border-color: var(--terra); box-shadow: 0 6px 16px rgba(143,45,34,.14); }
.ask2-src.is-hl { background: #fff4ea; }
.ask2-src-top { display: flex; align-items: center; gap: 0.4rem; }
.ask2-src-ico { width: 1.25rem; height: 1.25rem; border-radius: 6px; display: grid; place-items: center; overflow: hidden; background: #eef0f3; font-size: 0.7rem; font-weight: 700; color: #2d4f73; }
.ask2-src-ico img { width: 100%; height: 100%; object-fit: contain; }
.ask2-src-ico-site { background: #f6e6dc; }
.ask2-src-badge { font-size: 0.68rem; font-weight: 650; padding: 0.08rem 0.45rem; border-radius: 999px; }
.ask2-src-site .ask2-src-badge { background: #f6e6dc; color: var(--accent); }
.ask2-src-web .ask2-src-badge { background: #e5ecf3; color: #2d4f73; }
.ask2-src-title { font-size: 0.82rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ask2-src-host { font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask2-src-empty, .ask2-note { font-size: 0.82rem; color: var(--muted); margin: 0 0 .4rem; }

/* answer */
.ask2-answer { line-height: 1.78; overflow-wrap: anywhere; }
.ask2-answer > :first-child { margin-top: 0.2rem; }
.ask2-answer h1, .ask2-answer h2, .ask2-answer h3 { font-size: 1.05rem; margin: 1.1rem 0 0.4rem; }
.ask2-answer table { display: block; overflow-x: auto; max-width: 100%; }
.ask2-caret { display: inline-block; width: 0.5em; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; border-radius: 2px; background: linear-gradient(var(--terra), var(--amber)); animation: ask2-blink 1s steps(1) infinite; }
@keyframes ask2-blink { 50% { opacity: 0; } }
.ask2-shimmer { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.3rem 0; }
.ask2-shimmer span { height: 0.8rem; border-radius: 6px; background: linear-gradient(90deg, #efe6da 25%, #f8efe4 50%, #efe6da 75%); background-size: 200% 100%; animation: ask2-shine 1.3s linear infinite; }
.ask2-shimmer span:nth-child(1) { width: 92%; } .ask2-shimmer span:nth-child(2) { width: 78%; } .ask2-shimmer span:nth-child(3) { width: 55%; }
@keyframes ask2-shine { to { background-position: -200% 0; } }
.ask2-cite { display: inline-block; font-size: 0.7rem; line-height: 1; padding: 0.2rem 0.4rem; margin: 0 0.12rem; border-radius: 999px; text-decoration: none; vertical-align: 0.15em; font-weight: 650; transition: transform .15s, box-shadow .15s; }
.ask2-cite:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.ask2-cite-site { background: #f6e6dc; color: var(--accent); }
.ask2-cite-web { background: #e5ecf3; color: #2d4f73; }
.ask2-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.8rem; padding-top: 0.6rem; border-top: 1px dashed var(--line); }
.ask2-act { font: inherit; font-size: 0.8rem; cursor: pointer; padding: 0.3rem 0.75rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: border-color .2s, color .2s; }
.ask2-act:hover { border-color: var(--terra); color: var(--accent); }
.ask2-act.is-ok { border-color: #6c9a6a; color: #4c7a4a; }
.ask2-act-meta { margin-left: auto; font-size: 0.74rem; color: var(--muted); }
.ask2-notice { display: flex; gap: 0.7rem; align-items: flex-start; border-radius: 12px; padding: 0.8rem 1rem; }
.ask2-notice p { margin: 0.2rem 0 0; font-size: 0.92rem; }
.ask2-notice-info { background: #fff7ef; border: 1px solid #ecd2bd; }
.ask2-notice-warn { background: #fbecea; border: 1px solid #efc6c0; }

/* passcode gate */
.ask2-gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; background: rgba(60, 40, 30, 0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s; }
.ask2-gate.is-open { opacity: 1; }
.ask2-gate[hidden] { display: none; }
.ask2-gate-card { width: min(24rem, 100%); text-align: center; padding: 1.8rem 1.6rem 1.5rem; border-radius: 22px; background: rgba(255, 253, 248, .82); border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 24px 60px rgba(60, 30, 20, .22), inset 0 1px 0 #fff; backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); transform: translateY(10px) scale(.98); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.ask2-gate.is-open .ask2-gate-card { transform: none; }
.ask2-gate-card.is-shake { animation: ask2-shake .4s; }
@keyframes ask2-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.ask2-gate-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.4rem; background: linear-gradient(135deg, #f6e1d0, #f8e6c4); box-shadow: 0 6px 16px rgba(180,71,47,.18); }
.ask2-gate-card h2 { margin: 0.8rem 0 0.3rem; font-size: 1.2rem; }
.ask2-gate-card > p { margin: 0 0 1rem; color: var(--muted); font-size: 0.88rem; }
.ask2-gate-card input { width: 100%; font: inherit; text-align: center; letter-spacing: .15em; padding: 0.7rem 0.9rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.ask2-gate-card input:focus { border-color: var(--terra); box-shadow: 0 0 0 4px rgba(180,71,47,.12); }
.ask2-gate-error { color: var(--accent); font-size: 0.86rem; margin: 0.6rem 0 0; }
.ask2-gate-btn { margin-top: 1rem; width: 100%; font: inherit; font-weight: 650; color: #fff; border: 0; border-radius: 12px; padding: 0.7rem; cursor: pointer; background: linear-gradient(135deg, var(--terra), var(--amber)); box-shadow: 0 8px 20px rgba(180,71,47,.28); transition: transform .2s; }
.ask2-gate-btn:hover { transform: translateY(-1px); }

@media (max-width: 640px) {
  .ask2 { width: calc(100% - 1.5rem); min-height: calc(100vh - 4rem); }
  .ask2-hero { padding-top: 6vh; }
  .ask2-hint { display: none; }
  .ask2-count { margin-right: auto; }
  .ask2-q { max-width: 92%; }
  .ask2-a { gap: 0.5rem; }
  .ask2-avatar { width: 1.6rem; height: 1.6rem; font-size: 0.8rem; }
  .ask2-a-body { padding: 0.8rem 0.85rem 0.7rem; }
  .ask2-src { width: 10.5rem; }
  .ask2-blob { filter: blur(40px); }
}
@media (prefers-reduced-motion: reduce) {
  .ask-page *, .ask-page *::before, .ask-page *::after, .home-ask *, .home-ask *::before, .home-ask *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .ask2-caret { animation: none !important; }
}
.ask2-actions[hidden], .ask2-sources[hidden] { display: none; }

/* ---- Homepage: compact intro strip + search hero ---- */
.home-intro { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; margin: -0.6rem 0 1.1rem; padding: 0.55rem 0 0.7rem; border-bottom: 1px dashed var(--line); }
.home-intro h1 { margin: 0; font-size: 1.05rem; line-height: 1.3; letter-spacing: 0.01em; }
.home-intro .home-purpose { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.4; flex: 1 1 18rem; min-width: 0; }
.home-intro .home-stamp { margin: 0; gap: 0.35rem; }
.home-intro .home-stamp span { font-size: 0.74rem; padding: 0.1rem 0.6rem; background: var(--card); }
.home-hero.home-ask { padding: 2.4rem 2rem 1.8rem; background: linear-gradient(160deg, #fbf4ea, #f6ebdf); isolation: isolate; }
.home-ask-bg { position: absolute; z-index: -1; }
.home-ask-bg .ask2-blob.b1 { width: 26rem; height: 26rem; left: -6rem; top: -8rem; }
.home-ask-bg .ask2-blob.b2 { width: 22rem; height: 22rem; right: -5rem; top: -3rem; }
.home-ask-bg .ask2-blob.b3 { width: 28rem; height: 28rem; left: 35%; bottom: -18rem; }
.home-ask-inner { position: relative; max-width: 46rem; margin: 0 auto; }
.home-ask-title { margin: 0 0 1rem; text-align: center; font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.2;
  background: linear-gradient(100deg, var(--ink) 20%, var(--terra) 55%, var(--amber) 80%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ask2-sheen 7s linear infinite; }
.home-ask-title .ask2-spark { color: var(--terra); -webkit-text-fill-color: var(--terra); font-size: 0.7em; vertical-align: 0.2em; }
.home-ask .ask2-chips { margin-top: 0.95rem; }
.home-ask .home-bubble { margin: 1.1rem auto 0; }
@media (max-width: 640px) {
  .home-intro { margin-top: -0.4rem; }
  .home-intro .home-purpose { flex-basis: 100%; order: 3; font-size: 0.85rem; }
  .home-hero.home-ask { padding: 1.5rem 0.9rem 1.2rem; }
  .home-ask .ask2-hint { display: inline; font-size: 0.7rem; }
  .home-ask .home-ask-enter { display: none; }
  .home-ask .ask2-chip { font-size: 0.8rem; padding: 0.35rem 0.75rem; }
}

/* /ask/ chat state: calm composer; hidden while a question is loading/streaming */
.ask2.is-chat .ask2-composer { transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s linear 0s; }
.ask2.is-chat .ask2-field::before { animation: none; background: linear-gradient(135deg, #e8c9b3, #efd9c2); }
.ask2.is-chat .ask2-field::after { animation: none; opacity: 0; background: linear-gradient(135deg, var(--terra), var(--amber)); }
.ask2.is-chat .ask2-composer:focus-within .ask2-field::before { background: linear-gradient(135deg, var(--terra), var(--amber)); }
.ask2.is-chat .ask2-composer:focus-within .ask2-field::after { opacity: 0.28; }
.ask2.is-chat .ask2-field { box-shadow: 0 6px 20px rgba(143, 45, 34, 0.07), inset 0 1px 0 rgba(255,255,255,.8); }
.ask2.is-busy .ask2-composer { opacity: 0; transform: translateY(28px); pointer-events: none; visibility: hidden;
  transition: opacity .25s ease, transform .3s ease, visibility 0s linear .3s; }
.ask2.is-busy .ask2-composer *, .ask2.is-busy .ask2-composer *::before, .ask2.is-busy .ask2-composer *::after { animation: none !important; }
.ask2.is-busy .ask2-foot-note { visibility: hidden; }

/* ---- AI 工具情报 (/ai-intel/) ---- */
.intel-cats { display: flex; gap: 0.45rem; overflow-x: auto; padding: 0.2rem 0 0.7rem; margin: 0.4rem 0 0.6rem; scrollbar-width: thin; }
.intel-cat { flex: none; display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.42rem 0.9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-size: 0.9rem; white-space: nowrap; transition: border-color .2s, box-shadow .2s; }
.intel-cat span:last-child { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.intel-cat:hover { border-color: #d8b7a2; }
.intel-cat.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.intel-cat.is-active span:last-child { color: rgba(255,255,255,.7); }
.intel-filters { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1rem; }
.intel-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.intel-filter-label { font-size: 0.78rem; color: var(--muted); font-weight: 650; min-width: 3.2em; }
.intel-chip { font: inherit; font-size: 0.8rem; cursor: pointer; padding: 0.22rem 0.65rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.intel-chip span { color: var(--muted); font-size: 0.72rem; }
.intel-chip.is-active { border-color: var(--accent); background: #fbeee6; color: var(--accent); }
.intel-filter-empty { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.9rem; }
.intel-link { font: inherit; background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }
.intel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.intel-item[hidden] { display: none; }
.intel-card { display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem 1.15rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.intel-card:hover { transform: translateY(-2px); border-color: #d8b7a2; box-shadow: 0 8px 22px rgba(143,45,34,.08); }
.intel-card-top, .intel-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; font-size: 0.78rem; color: var(--muted); margin: 0; }
.intel-card-cat { font-weight: 650; color: var(--accent); }
.intel-card-title { font-size: 1.08rem; font-weight: 700; line-height: 1.45; }
.intel-card-sum { color: #4a423a; font-size: 0.93rem; line-height: 1.65; }
.intel-card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0; }
.intel-card-tags span, .intel-card-tags a { font-size: 0.74rem; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 0.08rem 0.45rem; text-decoration: none; }
.intel-card-tags a:hover { color: var(--accent); }
.intel-status { padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.72rem; background: #eee8df; color: #5b5148; }
.intel-status-released { background: #e4efe2; color: #3f6a3c; }
.intel-status-beta { background: #fbf0d9; color: #8a5a10; }
.intel-status-internal { background: #e8e6f3; color: #4c4680; }
.intel-status-open-source { background: #e0eef0; color: #2f6168; }
.intel-status-rumor { background: #f6e1de; color: #8f2d22; }
.intel-cred { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.74rem; }
.intel-stars { color: #d39a2c; letter-spacing: 0.02em; }
.intel-cred-low .intel-stars { color: #b9a99a; }
.intel-empty { text-align: center; padding: 3rem 1.5rem; border: 1px dashed #dccbbb; border-radius: 16px; background: linear-gradient(160deg, #fbf4ea, #f6ebdf); }
.intel-empty-ico { font-size: 2.4rem; animation: ask2-twinkle 3s ease-in-out infinite; display: inline-block; }
.intel-empty h2 { margin: 0.6rem 0 0.3rem; font-size: 1.2rem; }
.intel-empty p { margin: 0 auto 1.1rem; max-width: 30rem; color: var(--muted); }
.intel-btn { display: inline-block; padding: 0.5rem 1.1rem; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; }
.intel-detail { max-width: 46rem; }
.intel-detail .doc-title { line-height: 1.35; margin-top: 0.4rem; }
.intel-detail h2 { font-size: 1.15rem; margin: 1.8rem 0 0.6rem; }
.intel-sum { position: relative; margin: 1rem 0 0.4rem; padding: 1rem 1.15rem 1rem; border-radius: 14px; background: #fff7ef; border: 1px solid #ecd2bd; }
.intel-sum p { margin: 0.3rem 0 0; font-size: 1.02rem; line-height: 1.75; }
.intel-sec-tag { font-size: 0.74rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.intel-toc { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.85rem; margin: 0.8rem 0 0; }
.intel-md-raw { white-space: normal; }
.intel-insights { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.intel-insights li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.8rem 1rem; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.intel-insight-no { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.82rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #b4472f, #e0973a); }
.intel-cred-box { padding: 0.2rem 1.15rem 0.6rem; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.intel-cred-box h2 { margin-top: 0.9rem; }
.intel-cred-box-high { border-color: #cfe0cc; background: #f5faf3; }
.intel-cred-box-low { border-color: #efc6c0; background: #fdf3f1; }
.intel-cred-big { font-weight: 650; }
.intel-cred-big .intel-stars { font-size: 1.1rem; }
.intel-sources { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; }
.intel-sources li { overflow-wrap: anywhere; }
.intel-sources li > * { margin-right: 0.45rem; }
.intel-src-type { font-size: 0.72rem; font-weight: 650; padding: 0.05rem 0.45rem; border-radius: 999px; background: #e5ecf3; color: #2d4f73; }
.intel-src-official { background: #f6e6dc; color: var(--accent); }
.intel-src-host { color: var(--muted); font-size: 0.8rem; }
.intel-src-ok { color: #4c7a4a; font-size: 0.78rem; }
.intel-src-no { color: var(--muted); font-size: 0.78rem; }
.intel-back { margin-top: 2rem; }
@media (max-width: 640px) {
  .intel-card { padding: 0.85rem 0.9rem; }
  .intel-card-title { font-size: 1rem; }
}
/* 7-item nav: keep one line on phones */
@media (max-width: 480px) {
  .site-header { gap: 0.5rem; }
  .site-header nav { flex-wrap: nowrap; gap: 0 0.5rem; }
  .site-header nav a { font-size: 0.8rem; }
  .brand { font-size: 0.88rem; }
}
@media (max-width: 380px) {
  .site-header nav { gap: 0 0.4rem; }
  .site-header nav a { font-size: 0.76rem; }
  .brand { font-size: 0.82rem; }
}

/* 使用指南 › 换用价值 verdict pills */
.guide-verdict { display: inline-block; font-size: 0.74rem; font-weight: 700; line-height: 1.2; padding: 0.12rem 0.5rem; margin-right: 0.35rem; border-radius: 999px; vertical-align: 0.06em; white-space: nowrap; }
.guide-verdict-now { background: #e1f0dd; color: #2f6b2c; box-shadow: inset 0 0 0 1px #c3dfbd; }
.guide-verdict-partial { background: #fbefd6; color: #93590c; box-shadow: inset 0 0 0 1px #f0d7a4; }
.guide-verdict-no { background: #ece8e2; color: #6e655d; box-shadow: inset 0 0 0 1px #dcd5cb; }

/* ===== Homepage layout concepts (?layout=a|b|c) ===== */
.home-alt { margin: 1.6rem 0 2rem; min-width: 0; }
.alt-loading { color: var(--muted); }
.home-alt a { color: inherit; text-decoration: none; }
.alt-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease var(--d, 0ms), transform .5s ease var(--d, 0ms), box-shadow .2s, border-color .2s; }
.alt-reveal.is-in { opacity: 1; transform: none; }
.alt-top3 { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .45rem; }
.alt-top3 li { display: flex; align-items: baseline; gap: .55rem; min-width: 0; }
.alt-rank { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--code); color: var(--muted); }
.alt-rank-1 { background: #8f2d22; color: #fff; } .alt-rank-2 { background: #c0663a; color: #fff; } .alt-rank-3 { background: #e0a463; color: #3b2412; }
.alt-model { font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alt-vendor { color: var(--muted); font-size: .82rem; flex: none; margin-left: auto; }


/* ===== Concept D: dark command center ===== */
body.home-layout-d { background: #12100f; color: #ece4da; --line: #2c2522; --muted: #9c8f84; }
body.home-layout-d::before { content: ""; position: fixed; inset: -40px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,180,140,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,180,140,.05) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 80%); animation: dx-grid 18s linear infinite; }
body.home-layout-d::after { content: ""; position: fixed; left: 50%; top: -20vh; width: 90vw; height: 60vh; transform: translateX(-50%); z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(201,92,54,.28), transparent); filter: blur(20px); }
@keyframes dx-grid { to { transform: translate(40px, 40px); } }
body.home-layout-d .site-header { border-color: #2c2522; }
body.home-layout-d .brand, body.home-layout-d .home-purpose { color: #f4ece2; }
body.home-layout-d .site-header nav a { color: #e9a07a; }
body.home-layout-d .home-intro { border-color: #2c2522; }
body.home-layout-d .home-stamp, body.home-layout-d .home-intro [class*="chip"] { background: #1d1917; border-color: #3a302b; color: #c9b8a9; }
body.home-layout-d .home-ask { background: rgba(28,24,22,.7); border: 1px solid #33291f; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 30px 80px -40px rgba(201,92,54,.5); backdrop-filter: blur(10px); }
body.home-layout-d .home-ask-bg { opacity: .35; }
body.home-layout-d .home-ask-title { background: linear-gradient(90deg, #ffd2b0, #e9774a); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.home-layout-d .ask2-composer { background: transparent; }
body.home-layout-d .ask2-field { color: #f4ece2; background: #1a1614; } body.home-layout-d .ask2-field textarea { color: #f4ece2; background: transparent; }
body.home-layout-d .ask2-hint { color: #8d8076; }
body.home-layout-d .ask2-chip { background: #1d1917; border-color: #3a302b; color: #e2d3c4; }
body.home-layout-d .ask2-chip:hover { border-color: #c95c36; }
body.home-layout-d .home-bubble { background: #1d1917; border-color: #3a302b; color: #ece4da; }
body.home-layout-d .home-bubble * { color: inherit; }
body.home-layout-d .home-bubble::before { background: #1d1917; border-color: #3a302b; }
body.home-layout-d .home-bubble-go { background: rgba(233,119,74,.14); border-color: rgba(233,119,74,.45); color: #ffb48e !important; }
body.home-layout-d .home-bubble-meta { color: #9c8f84 !important; }
body.home-layout-d footer, body.home-layout-d .site-footer { color: #786c63; }
.dx { display: grid; gap: 1rem; }
.dx-card { position: relative; border-radius: 16px; padding: 1.1rem 1.2rem; background: linear-gradient(180deg, rgba(36,30,27,.85), rgba(22,19,17,.85)); border: 1px solid transparent; background-clip: padding-box; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: .4rem; min-width: 0; color: #ece4da; transition: transform .25s, box-shadow .25s; }
.dx-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(233,119,74,.55), rgba(255,255,255,.06) 40%, rgba(233,119,74,.2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.dx-card::after, body.home-layout-d .home-ask::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(233,119,74,.18), transparent 60%); }
.dx-card:hover::after, body.home-layout-d .home-ask:hover::after { opacity: 1; }
a.dx-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(233,119,74,.6); }
.dx-ticker { display: flex; align-items: center; gap: .8rem; border: 1px solid #2c2522; border-radius: 999px; padding: .45rem .5rem .45rem .8rem; background: rgba(26,22,20,.8); overflow: hidden; min-width: 0; }
.dx-live { flex: none; font: 700 .7rem ui-monospace, SFMono-Regular, Menlo, monospace; color: #ff8a5c; letter-spacing: .12em; display: inline-flex; align-items: center; gap: .35rem; }
.dx-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff6a3d; box-shadow: 0 0 0 0 rgba(255,106,61,.6); animation: dx-pulse 1.6s infinite; }
@keyframes dx-pulse { 70% { box-shadow: 0 0 0 8px rgba(255,106,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,106,61,0); } }
.dx-ticker-vp { overflow: hidden; min-width: 0; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.dx-ticker-track { display: inline-flex; white-space: nowrap; animation: dx-marquee 60s linear infinite; }
.dx-ticker:hover .dx-ticker-track { animation-play-state: paused; }
.dx-dup { display: inline-flex; }
@keyframes dx-marquee { to { transform: translateX(-50%); } }
.dx-tick { font-size: .82rem; color: #cdbfb2 !important; padding: 0 1.4rem 0 0; }
.dx-tick:hover { color: #fff !important; }
.dx-tick em { font-style: normal; font-size: .68rem; font-weight: 700; padding: .05rem .4rem; border-radius: 4px; margin-right: .45rem; }
.dx-t-lb { background: rgba(233,119,74,.18); color: #ff9e78; } .dx-t-intel { background: rgba(130,190,110,.15); color: #a5d48f; } .dx-t-rep { background: rgba(240,180,90,.16); color: #f5c47c; } .dx-t-res { background: rgba(140,150,230,.16); color: #aab3f0; }
.dx-mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 1rem; }
.dx-mod { gap: .55rem; padding: 1.15rem 1.2rem 1rem; }
.dx-mod-wide { grid-column: span 2; }
.dx-mod-head { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.dx-mod-ico { font-size: 1.15rem; width: 2rem; height: 2rem; border-radius: 10px; display: grid; place-items: center; background: rgba(233,119,74,.12); flex: none; }
.dx-mod-head b { font-size: 1rem; color: #f6eee5; }
.dx-mod-head em { margin-left: auto; font: 600 .68rem ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; color: #e9774a; border: 1px solid rgba(233,119,74,.35); border-radius: 999px; padding: .08rem .5rem; white-space: nowrap; }
.dx-mod-desc { font-size: .86rem; color: #b3a597; line-height: 1.6; flex: 1; }
.dx-mod-stat { display: flex; align-items: baseline; gap: .45rem; margin-top: .15rem; }
.dx-mod-stat b { font: 800 2.3rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, #e9a07a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dx-mod-stat small { font-size: .8rem; color: #c9b8a9; }
.dx-mod-foot { display: flex; justify-content: space-between; align-items: center; font-size: .74rem; color: #8d8076; padding-top: .2rem; }
.dx-mod-go { color: #e9a07a; font-weight: 700; transition: transform .2s; }
.dx-mod:hover .dx-mod-go { transform: translateX(3px); }
@media (max-width: 1000px) { .dx-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dx-mods { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; } .dx-mod-wide { grid-column: auto; } .dx-mod-stat b { font-size: 2rem; } }
@media (prefers-reduced-motion: reduce) {
  body.home-layout-d::before, .dx-ticker-track, .dx-live i, .dx-bar i { animation: none !important; }
  .dx-ticker-vp { overflow-x: auto; }
  a.dx-card:hover { transform: none; } .dx-mod-bar i { animation: none !important; }
}
/* ===== Concept D: light paper palette (matches secondary-page theme.css) ===== */
body.home-layout-d { background: #f7f4ee; color: #1b1815; --line: #e3dcd1; --muted: #5f574f; --accent: #c4532f; }
body.home-layout-d::before { background-image: linear-gradient(rgba(196,83,47,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(196,83,47,.07) 1px, transparent 1px); }
body.home-layout-d::after { background: radial-gradient(closest-side, rgba(240,138,93,.20), transparent); }
body.home-layout-d .site-header { border-color: #e3dcd1; }
body.home-layout-d .brand, body.home-layout-d .home-purpose { color: #1b1815; }
body.home-layout-d .brand::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .45rem; background: linear-gradient(135deg, #f08a5d, #c4532f); vertical-align: .08em; }
body.home-layout-d .site-header nav a { color: #4a423b; text-decoration: none; }
body.home-layout-d .site-header nav a:hover { color: #c4532f; }
body.home-layout-d .home-intro { border-color: #e3dcd1; }
body.home-layout-d .home-stamp, body.home-layout-d .home-intro [class*="chip"] { background: #fffdf9; border-color: #e3dcd1; color: #5f574f; }
body.home-layout-d .home-ask { background: linear-gradient(160deg, rgba(255,250,243,.95), rgba(253,236,222,.9)); border: 1px solid #efd9c8; box-shadow: inset 0 1px 0 #fff, 0 30px 70px -40px rgba(196,83,47,.45); }
body.home-layout-d .home-ask-bg { opacity: .55; }
body.home-layout-d .home-ask-title { background: linear-gradient(90deg, #d0602f, #a8401f); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.home-layout-d .ask2-field { color: #1b1815; background: #fffdf9; } body.home-layout-d .ask2-field textarea { color: #1b1815; }
body.home-layout-d .ask2-hint { color: #7a7067; }
body.home-layout-d .ask2-chip { background: #fffdf9; border-color: #e6d6c8; color: #2c2622; }
body.home-layout-d .ask2-chip:hover { border-color: #c4532f; color: #c4532f; }
body.home-layout-d .home-bubble, body.home-layout-d .home-bubble::before { background: #fffdf9; border-color: #ecd6c4; color: #1b1815; }
body.home-layout-d .home-bubble-go { background: #c4532f; border-color: #c4532f; color: #fff !important; }
body.home-layout-d .home-bubble-meta { color: #6e655d !important; }
body.home-layout-d footer, body.home-layout-d .site-footer { color: #8a8076; }
body.home-layout-d .dx-card { background: #fffdf9; color: #1b1815; box-shadow: 0 1px 2px rgba(60,40,25,.05), 0 10px 24px -16px rgba(60,40,25,.25); }
body.home-layout-d .dx-card::before { background: linear-gradient(140deg, rgba(196,83,47,.45), #e9e1d6 40%, rgba(196,83,47,.18)); }
body.home-layout-d .dx-card::after, body.home-layout-d .home-ask::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(240,138,93,.14), transparent 60%); }
body.home-layout-d a.dx-card:hover { box-shadow: 0 2px 4px rgba(60,40,25,.05), 0 20px 36px -22px rgba(196,83,47,.5); }
body.home-layout-d .dx-ticker { background: #fffdf9; border-color: #e3dcd1; box-shadow: 0 6px 16px -12px rgba(60,40,25,.25); }
body.home-layout-d .dx-live { color: #c4532f; }
body.home-layout-d .dx-tick { color: #3a332d !important; } body.home-layout-d .dx-tick:hover { color: #c4532f !important; }
body.home-layout-d .dx-t-lb { background: #fbe3d7; color: #a8401f; } body.home-layout-d .dx-t-intel { background: #e1f0dd; color: #2f6b2c; } body.home-layout-d .dx-t-rep { background: #fbefd6; color: #8a5a10; } body.home-layout-d .dx-t-res { background: #e6e8f8; color: #3d478f; }
body.home-layout-d .dx-mod-ico { background: #fbe9df; }
body.home-layout-d .dx-mod-head b { color: #1b1815; }
body.home-layout-d .dx-mod-head em { color: #b84c2a; border-color: rgba(196,83,47,.35); }
body.home-layout-d .dx-mod-desc { color: #4a423b; }
body.home-layout-d .dx-mod-stat b { background: linear-gradient(180deg, #e9774a, #a8401f); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.home-layout-d .dx-mod-stat small { color: #5f574f; }
body.home-layout-d .dx-mod-foot { color: #8a8076; }
body.home-layout-d .dx-mod-go { color: #c4532f; }
body.home-layout-d .home-stamp { background: transparent; }

/* ---- 每日播报 (homepage) ---- */
.home-bc { position: relative; margin: 0.4rem 0 1.4rem; padding: 1.1rem; border-radius: 1.1rem; background: #fffdf9; border: 1px solid #e9e1d6; box-shadow: 0 1px 2px rgba(60,40,25,.05), 0 18px 40px -26px rgba(60,40,25,.35); color: #1b1815; }
.home-bc[hidden] { display: none; }
.bc-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin: 0 0 0.85rem; }
.bc-pill { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.22rem 0.75rem 0.22rem 0.6rem; border-radius: 999px; background: #c4532f; color: #fff; font-weight: 700; font-size: 0.86rem; letter-spacing: .04em; }
.bc-live { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: bc-pulse 1.8s ease-out infinite; }
@keyframes bc-pulse { 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.bc-date { font-size: 0.9rem; color: #5f574f; font-variant-numeric: tabular-nums; }
.bc-note { font-size: 0.8rem; padding: 0.16rem 0.6rem; border-radius: 999px; background: #fbefd6; color: #8a5a10; }
.bc-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.bc-player { position: relative; border-radius: 0.8rem; overflow: hidden; background: #f7f4ee; aspect-ratio: 16 / 9; box-shadow: inset 0 0 0 1px #e9e1d6; }
.bc-player video { display: block; width: 100%; height: 100%; object-fit: cover; background: #f7f4ee; }
.bc-sound { position: absolute; left: 4%; top: 14.5%; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.42rem 0.85rem; border: 0; border-radius: 999px; font: inherit; font-size: 0.84rem; font-weight: 600; color: #fff; background: rgba(27,24,21,.78); backdrop-filter: blur(6px); cursor: pointer; box-shadow: 0 6px 18px -8px rgba(0,0,0,.5); transition: transform .15s, background .15s; }
.bc-sound:hover { background: #c4532f; transform: translateY(-1px); }
.bc-sound[hidden] { display: none; }
.bc-sound .lti svg { width: 15px; height: 15px; }
.bc-side { min-width: 0; display: flex; flex-direction: column; }
.bc-title { margin: 0.1rem 0 0.2rem; font-size: 1.22rem; line-height: 1.35; }
.bc-sub { margin: 0 0 0.6rem; font-size: 0.8rem; color: #8a8076; }
.bc-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.bc-item { display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.45rem 0.5rem; border-radius: 0.6rem; transition: background .2s; }
.bc-item:hover { background: #f8f2ea; }
.bc-item.is-on { background: #fbe9df; box-shadow: inset 3px 0 0 #c4532f; }
.bc-jump { flex: none; display: inline-flex; align-items: center; gap: 0.2rem; margin-top: 0.1rem; padding: 0.14rem 0.45rem; border: 1px solid #e3dcd1; border-radius: 999px; background: #fff; font: inherit; font-size: 0.74rem; font-variant-numeric: tabular-nums; color: #a8401f; cursor: pointer; }
.bc-jump:hover { border-color: #c4532f; background: #c4532f; color: #fff; }
.bc-jump .lti svg { width: 11px; height: 11px; }
.bc-link { min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; color: inherit; text-decoration: none; }
.bc-chip { display: inline-flex; align-items: center; gap: 0.25rem; align-self: flex-start; font-size: 0.7rem; color: #8a5a10; }
.bc-chip .lti svg { width: 12px; height: 12px; }
.bc-h { font-weight: 650; font-size: 0.95rem; line-height: 1.4; }
.bc-link:hover .bc-h { color: #c4532f; }
.bc-s { font-size: 0.78rem; color: #6e655d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-more { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px dashed #e3dcd1; font-size: 0.84rem; }
.bc-more details { min-width: 0; flex: 1 1 100%; }
.bc-more summary { cursor: pointer; color: #6e655d; font-weight: 600; width: max-content; }
.bc-more summary:hover { color: #c4532f; }
#bc-lines { max-height: 13rem; overflow: auto; margin-top: 0.4rem; color: #3a332d; }
#bc-lines p { margin: 0.25rem 0; display: flex; gap: 0.45rem; align-items: baseline; }
.bc-jump-sm { padding: 0 0.35rem; }
.bc-past ul { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.bc-past-btn { width: 100%; display: flex; gap: 0.55rem; text-align: left; padding: 0.3rem 0.45rem; border: 0; border-radius: 0.45rem; background: none; font: inherit; color: #3a332d; cursor: pointer; }
.bc-past-btn:hover { background: #f8f2ea; } .bc-past-btn.is-current { color: #c4532f; font-weight: 600; }
.bc-past-btn time { flex: none; color: #8a8076; font-variant-numeric: tabular-nums; }
.bc-past-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-media { min-width: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.home-bc .home-bubble {
  margin: 0; max-width: none; width: 100%;
  padding: 0.55rem 2.2rem 0.55rem 0.7rem; gap: 0.65rem;
  border-radius: 10px; box-shadow: 0 3px 12px rgba(143, 45, 34, 0.07);
}
.home-bc .home-bubble::before { top: -6px; left: 1.1rem; }
.home-bc .home-bubble-label { font-size: 0.7rem; padding: 0.12rem 0.45rem; }
.home-bc .home-bubble-title { font-size: 0.9rem; }
.home-bc .home-bubble-meta { font-size: 0.74rem; }
.home-bc .home-bubble-go { padding: 0.28rem 0.65rem; font-size: 0.82rem; }
@media (max-width: 860px) {
  .bc-grid { grid-template-columns: 1fr; }
  .home-bc { padding: 0.75rem; border-radius: 0.9rem; }
  .bc-title { font-size: 1.08rem; }
  .bc-sound { top: auto; bottom: 30%; left: 3%; padding: 0.3rem 0.65rem; font-size: 0.74rem; }
}
@media (prefers-reduced-motion: reduce) { .bc-live { animation: none; } }

/* —— GEO SSR / FAQ / broadcast archive (v=20261023b) —— */
.ssr-bc-summary {
  margin: 0 0 1.2rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: #fffdf9;
  border: 1px solid #e9e1d6;
}
.ssr-bc-summary h2 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.ssr-bc-summary p { margin: 0 0 0.55rem; color: var(--muted); font-size: 0.88rem; }
.ssr-bc-summary ol { margin: 0; padding-left: 1.2rem; }
.ssr-bc-summary li { margin: 0.35rem 0; }
.ssr-bc-summary strong { font-weight: 650; }
.bc-ssr-more { margin: 0.2rem 0 0.4rem; font-size: 0.86rem; }
.bc-note[href] { text-decoration: none; }

.ssr-tldr { margin: 0 0 1.4rem; }
.ssr-tldr-title { margin: 0 0 0.25rem; font-size: 1.65rem; line-height: 1.25; }
.ssr-tldr-meta { margin: 0 0 0.85rem; color: var(--muted); font-size: 0.9rem; }
.ssr-tldr-box {
  padding: 0.95rem 1.05rem;
  border-radius: 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(60,40,25,.04);
}
.ssr-tldr-box h2 { margin: 0 0 0.55rem; font-size: 1rem; letter-spacing: 0.02em; }
.ssr-tldr-list { margin: 0; padding-left: 1.15rem; }
.ssr-tldr-list li { margin: 0.4rem 0; }
.ssr-tldr-list li::marker { color: var(--muted); }

.faq-list { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 0.6rem; }
.faq-item {
  padding: 0.95rem 1.05rem;
  border-radius: 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
}
.faq-item h2 { margin: 0 0 0.45rem; font-size: 1.05rem; line-height: 1.4; }
.faq-item p { margin: 0.25rem 0; color: #3a332d; }
.faq-more { margin-top: 0.55rem !important; font-size: 0.9rem; }

.bc-arch-page .bc-arch { max-width: 44rem; }
.bc-pill-inline {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin: 0 0 0.45rem; padding: 0.18rem 0.7rem;
  border-radius: 999px; background: #c4532f; color: #fff;
  font-size: 0.8rem; font-weight: 700; letter-spacing: .04em;
}
.bc-arch-player {
  margin: 0.6rem 0 1.2rem; border-radius: 0.8rem; overflow: hidden;
  background: #f7f4ee; border: 1px solid #e9e1d6; aspect-ratio: 16 / 9;
}
.bc-arch-player video { display: block; width: 100%; height: 100%; object-fit: cover; }
.bc-arch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.bc-arch-item {
  padding: 0.85rem 0.95rem; border-radius: 0.8rem;
  background: var(--card); border: 1px solid var(--line);
}
.bc-arch-item h2 { margin: 0.2rem 0 0.35rem; font-size: 1.05rem; }
.bc-arch-meta { margin: 0; color: var(--muted); font-size: 0.8rem; }
.bc-arch-lines { max-height: 22rem; overflow: auto; padding-right: 0.4rem; }
.bc-arch-lines p { margin: 0.3rem 0; display: flex; gap: 0.5rem; }
.bc-arch-lines time { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.82rem; }
.bc-arch-past { list-style: none; margin: 0; padding: 0; }
.bc-arch-past li { margin: 0.25rem 0; }
.bc-arch-past .is-current a { font-weight: 650; color: var(--ink); text-decoration: none; }

@media (max-width: 720px) {
  .ssr-bc-summary { padding: 0.75rem 0.8rem; }
  .ssr-tldr-title { font-size: 1.4rem; }
}
