/* Guides, FAQ, comparison and general public content. Generated by scripts/build_frontend_bundles.py. */

/* ============================== Trust Strip ==============================
 * Hub homepage section right below the hero capsule. The whole strip
 * exists because Veridrop's product premise is "hand us your API key" —
 * users won't do that without proof of trust. We give 3 cards of
 * concrete promises, each linking into the actual code that proves it.
 * Visual weight is intentionally heavy: subtle gradient bg + clear
 * heading anchor + GitHub CTA at the bottom. */
.trust-strip {
  margin: 32px 0 40px;
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}
.trust-strip-head {
  text-align: center;
  margin-bottom: 24px;
}
.trust-strip-head h2 {
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.trust-strip-head p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.trust-strip-head p strong { color: var(--text); }

.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.trust-card {
  padding: 18px 18px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.trust-icon {
  font-size: 24px;
  margin-bottom: 8px;
  line-height: 1;
}
.trust-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.trust-card h3 em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 13.5px;
}
.trust-card p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}
.trust-card code {
  font-size: 11.5px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
}
.trust-link {
  font-size: 12.5px;
  color: var(--green-dark, #0E756B);
  text-decoration: none;
  font-weight: 500;
  margin-top: auto;
}
.trust-link:hover { text-decoration: underline; }

.trust-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
/* GitHub-styled "primary" button — recognizable mono font + dark bg
 * matches what users expect on a GitHub-link CTA. Different from the
 * green primary CTA on detect pages so they don't compete visually. */
.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #1f2328;
  color: white;
  border: 1px solid #1f2328;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn-github:hover {
  background: #34383d;
  border-color: #34383d;
  text-decoration: none;
  transform: translateY(-1px);
}
.trust-license-pill {
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  color: var(--muted);
  padding: 6px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
@media (max-width: 760px) {
  .trust-cards { grid-template-columns: 1fr; }
  .trust-strip { padding: 22px 18px 18px; }
  .trust-strip-head h2 { font-size: 19px; }
}

/* hero */
.hero { text-align: center; margin-bottom: 32px; }
.hero h1 {
  font-size: 36px; line-height: 1.2; margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hero-sub { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* product update notice */
.product-update-notice {
  margin: 0 0 28px;
  padding: 20px 22px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  background: var(--bg-soft);
  box-shadow: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
}
.product-update-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.product-update-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: none;
}
.product-update-notice h2 {
  margin: 7px 0 6px;
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.product-update-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.product-update-side {
  display: flex;
  align-items: center;
  gap: 16px;
}
.product-update-stat {
  min-width: 116px;
  padding: 11px 12px;
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}
.product-update-stat strong {
  display: block;
  color: var(--green-dark);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.product-update-stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.product-update-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: stretch;
}
.product-update-actions .btn-primary {
  width: auto;
  white-space: nowrap;
  padding: 10px 15px;
  font-size: 14px;
}
.product-update-link {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
@media (max-width: 760px) {
  .product-update-notice {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .product-update-side {
    align-items: stretch;
    flex-direction: column;
  }
  .product-update-stat {
    min-width: 0;
    text-align: left;
  }
  .product-update-actions .btn-primary {
    width: 100%;
  }
}

/* hub */
.hub-hero {
  /* 不设 max-width — 让首屏文字、协议卡片、why/how 各 section 共用 .container
     的 960px 全宽,左右边缘视觉对齐。text-wrap: balance 会在 960px 内自动
     算出每行接近相等的宽度,所以不会出现"一行特别长"的问题。 */
  margin: 8px 0 28px;
}
.hub-hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.hub-hero p {
  color: var(--muted);
  margin: 0;
  font-size: 17px;
}
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.protocol-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--bg);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}
.protocol-card-primary { border-color: rgba(16, 185, 129, 0.45); }
.protocol-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.protocol-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.protocol-card h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.protocol-card p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 14px;
}
.protocol-action {
  margin-top: auto;
  width: 100%;
}
.tier-badge {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.tier-crypto {
  color: #0E756B;
  background: var(--green-soft);
}
.tier-behavioral {
  color: #92400e;
  background: #fef3c7;
}
.tier-protocol {
  color: #374151;
  background: #f3f4f6;
}
.hub-note {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 32px;
}
.hub-note h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.hub-note p {
  color: var(--muted);
  margin: 0 0 16px;
}

/* CJK + 英文混排:用 text-wrap: balance 让浏览器主动平衡每行宽度
   (Chrome 114+ / Firefox 121+ / Safari 17.5+),避免出现某行只到一半就换行
   的难看排版。仅对短文本(<= 6 行)生效,正好覆盖首页这些介绍段落。
   line-break: strict 防止 CJK 标点出现在错误位置;overflow-wrap 兜底防溢出。 */
/* balance 让短段落每行宽度均衡(适合三协议卡片、why 卡片这种多个并列、
   需要视觉对齐的场景,以及只有 1-2 行的页脚 / meta 文字)。
   .answer-capsule 之前也加了 balance,但它在不同页面长度差很多:首页 hero
   文字长 (>6 行) balance 自动失效→走贪心填满容器;排行榜 hero 只 2 行,
   balance 反而把两行都缩到一半宽。所以 capsule 一律用贪心换行,跟 hub-note /
   how-steps 一致 — 第一行填满容器,装不下才换行。 */
.hub-meta,
.protocol-card p,
.why-item p,
.site-footer p {
  overflow-wrap: break-word;
  text-wrap: balance;
  line-break: strict;
}
.answer-capsule,
.hub-note p,
.how-steps p {
  overflow-wrap: break-word;
  line-break: strict;
}

/* answer capsule + meta strip (SEO definition-first per SEO_AI_GEO_PLAN §3.2) */
.answer-capsule {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 14px;
}
.answer-capsule strong {
  color: var(--green-dark);
  font-weight: 600;
}
.hub-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.01em;
}
.hub-meta strong {
  color: var(--text);
  font-weight: 600;
}
/* 内联版 meta:跟在 .answer-capsule 末尾继续流动而不是另起一段。
   保持灰色 + 稍小字号的视觉差异,前面留一格空白做天然分隔。 */
.hub-meta-inline {
  color: var(--muted);
  font-size: 0.85em;
  letter-spacing: 0.01em;
  margin-left: 0.5em;
}
.hub-meta-inline strong { color: var(--text); font-weight: 600; }

/* "why veridrop" 5-card differentiator grid */
.why-veridrop { margin: 44px 0 8px; }
.why-veridrop h2 {
  font-size: 24px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.why-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--bg);
  box-shadow: none;
}
.why-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.why-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.why-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.why-item code {
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12.5px;
  color: var(--text);
}

/* "how it works" 3-step list */
.how-it-works { margin: 44px 0 8px; }
.how-it-works h2 {
  font-size: 24px;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.how-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--bg);
}
.how-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.how-steps h3 {
  font-size: 16px;
  margin: 2px 0 6px;
  line-height: 1.35;
}
.how-steps p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.how-steps a { color: var(--green-dark); text-decoration: underline; }
.how-steps a:hover { text-decoration: underline; }

/* ========== /compare/relay-detectors ========== */
.compare-page {
  max-width: 1040px;
  margin: 0 auto;
}
.compare-hero {
  padding: 26px 0 18px;
}
.compare-kicker {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
.compare-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.compare-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.compare-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 12px;
  background: var(--bg-soft);
}
.compare-section {
  margin: 34px 0;
}
.compare-section h2 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.compare-section p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.compare-section a {
  color: var(--green-dark);
  text-decoration: underline;
}
.compare-summary-grid,
.compare-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.compare-summary-grid > div,
.compare-feature-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--bg);
  box-shadow: none;
}
.compare-summary-grid h3,
.compare-feature-grid h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.compare-summary-grid p,
.compare-feature-grid p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}
.compare-keywords {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.compare-keywords li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--bg-soft);
}
.compare-keywords strong {
  display: block;
  font-size: 22px;
  color: var(--green-dark);
  line-height: 1.1;
}
.compare-keywords span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.compare-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th,
.compare-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.compare-table th {
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 700;
}
.compare-table tr:last-child td {
  border-bottom: 0;
}
.compare-table td {
  color: var(--muted);
}
.compare-table td strong {
  color: var(--text);
}
.compare-steps {
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.8;
}
.compare-steps li {
  margin: 8px 0;
}
.compare-steps strong {
  color: var(--text);
}
.compare-faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  background: var(--bg);
  margin: 10px 0;
}
.compare-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}
.compare-faq p {
  margin: 10px 0 0;
  font-size: 14px;
}
.compare-cta {
  margin: 40px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--green-soft);
}
.compare-cta h2 {
  margin: 0 0 10px;
  font-size: 24px;
}
.compare-cta p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 16px;
}
.compare-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 720px) {
  .compare-hero h1 {
    font-size: 34px;
  }
  .compare-summary-grid,
  .compare-feature-grid,
  .compare-keywords {
    grid-template-columns: 1fr;
  }
  .compare-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============ 1v1 对决页(/compare/veridrop-vs-hvoy)视觉升级 ============ */
/* VS 对决头部:两个品牌卡片 + 中间 VS 徽章 */
.vs-duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
  margin: 8px 0 28px;
}
.vs-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: var(--bg);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vs-card-a { border-color: var(--green); background: var(--bg-soft); }
.vs-logo {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: #fff;
}
.vs-logo-a { background: var(--green); }
.vs-logo-b { background: #64748b; }
.vs-card h2 { font-size: 20px; margin: 4px 0 0; letter-spacing: -0.01em; }
.vs-card .vs-role { font-size: 13px; font-weight: 700; color: var(--green-dark); margin: 0; }
.vs-card-b .vs-role { color: #475569; }
.vs-card p.vs-tagline { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 6px 0 0; }
.vs-badge {
  align-self: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--text); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; letter-spacing: 0.02em;
  box-shadow: none;
}

/* 一句话裁决条 */
.vs-verdict {
  border: 1px solid var(--green);
  border-left: 5px solid var(--green);
  border-radius: 10px;
  background: var(--green-soft);
  padding: 16px 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 8px;
}

/* 对比表:Veridrop 列高亮 + 图标行首 */
.compare-table th.vs-col-a,
.compare-table td.vs-col-a {
  background: rgba(16,185,129,.06);
  border-left: 1px solid rgba(16,185,129,.25);
  border-right: 1px solid rgba(16,185,129,.25);
}
.compare-table thead th.vs-col-a { background: var(--green-soft); color: var(--green-dark); }
.vs-dim { font-weight: 700; color: var(--text); white-space: nowrap; }
/* 横评表里高亮本站行的「本站」小标签 */
.vs-row-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  color: var(--green-dark); background: var(--green-soft);
  border-radius: 999px; padding: 1px 7px; vertical-align: middle;
}
.vs-yes { color: var(--green-dark); font-weight: 700; }
.vs-yes::before { content: "✓ "; }
.vs-na { color: var(--muted); }
.vs-na::before { content: "— "; }

/* 优势卡片加图标 */
.vs-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.vs-feature-grid > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  background: var(--bg);
  box-shadow: none;
}
.vs-feature-grid h3 { font-size: 16px; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.vs-feature-grid h3 .vs-ico { font-size: 20px; }
.vs-feature-grid p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; }
.vs-feature-grid.vs-feature-a > div { border-top: 3px solid var(--green); }
.vs-feature-grid.vs-feature-b > div { border-top: 3px solid #94a3b8; }

@media (max-width: 720px) {
  .vs-duel { grid-template-columns: 1fr; }
  .vs-badge { width: 44px; height: 44px; font-size: 15px; margin: -4px 0; }
  .vs-feature-grid { grid-template-columns: 1fr; }
}
/* Commercial/admin surfaces introduced by relay listing v2.
   Keep them on the same white, quiet SaaS visual system as the detector UI. */
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.page-actions a {
  font-size: 13px;
  font-weight: 600;
}
.notice {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: none;
}
.notice h2,
.notice h3,
.notice p {
  margin: 0;
}
.notice h2,
.notice h3 {
  font-size: 16px;
  line-height: 1.35;
  color: var(--text);
}
.notice p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.notice-success {
  border-left-color: var(--green);
  background: #f0fdf4;
}
.notice-warning {
  border-left-color: var(--amber);
  background: #fffbeb;
}
.notice-danger {
  border-left-color: var(--red);
  background: #fef2f2;
}
.notice-muted {
  border-left-color: #9ca3af;
  background: var(--bg-soft);
}
.notice-code {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  word-break: break-all;
}
.inline-emphasis {
  color: var(--green-dark);
  font-weight: 700;
}
.section-title {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.subtle-title {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.info-list {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 18px;
  margin: 0;
  font-size: 14px;
}
.info-list dt {
  color: var(--muted);
}
.info-list dd {
  margin: 0;
  min-width: 0;
}
.info-list a,
.info-list code {
  overflow-wrap: anywhere;
}
.steps-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.75;
}
.steps-list li + li {
  margin-top: 6px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.form-row label {
  font-size: 14px;
  font-weight: 600;
}
.form-row input,
.form-row select,
.form-row textarea,
.inline-form input,
.inline-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.form-row textarea {
  resize: vertical;
  min-height: 140px;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus,
.inline-form input:focus,
.inline-form select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: none;
}
.hint {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0;
}
.form-success {
  color: var(--green-dark);
  font-weight: 600;
}
.partner-login-submit:disabled {
  background: #DDE6E3;
  border-color: #d1d5db;
  color: #5C6B72;
  cursor: not-allowed;
}
.partner-login-submit:disabled:hover {
  background: #DDE6E3;
  border-color: #d1d5db;
}
.partner-auth-page .hub-hero {
  margin-bottom: 28px;
}
.partner-auth-page .partner-auth-card {
  max-width: 920px;
  margin-left: 0;
  margin-right: auto;
  padding: 36px;
}
.partner-register-page .partner-auth-card {
  max-width: 1040px;
}
.partner-auth-page .section-title {
  margin-bottom: 24px;
  font-size: 20px;
}
.partner-auth-form {
  display: grid;
  gap: 18px;
}
.partner-auth-page .partner-form-grid {
  gap: 18px;
}
.partner-auth-page .form-row {
  gap: 9px;
  margin-bottom: 0;
}
.partner-auth-page .form-row label {
  font-size: 15px;
}
.partner-auth-page .form-row input,
.partner-auth-page .readonly-box {
  min-height: 50px;
  padding: 13px 16px;
  font-size: 16px;
}
.partner-auth-page .hint {
  font-size: 13.5px;
}
.partner-auth-status {
  margin-top: -2px;
}
.partner-auth-actions {
  gap: 12px;
  margin-top: 2px;
}
.partner-auth-actions .btn {
  min-height: 48px;
  padding: 12px 22px;
}
.partner-auth-actions .btn-primary {
  min-width: 180px;
}
.partner-auth-note {
  max-width: 760px;
  margin-top: -2px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.06);
  color: #4b5563;
}
/* 提示文案做成链接:保持小字,但用主色 + hover 下划线,明确可点 */
a.hint-link { color: var(--green-dark); text-decoration: none; font-weight: 500; }
a.hint-link:hover { text-decoration: underline; }

/* 404 页 */
.notfound-code {
  font-size: 64px; font-weight: 800; line-height: 1;
  color: var(--green); margin: 0 0 6px; letter-spacing: .04em;
}

/* 判定被 verdict/critical 封顶时的说明小字(分数虚高但下调判定) */
.lb-cap-note {
  display: inline; color: #b45309; font-size: 13px; font-weight: 500;
}

/* /apply 运营方联系方式:类型下拉 + 值输入框并排 */
.contact-method-row { display: flex; gap: 8px; align-items: stretch; }
.contact-method-row select { flex: 0 0 auto; width: auto; min-width: 96px; }
.contact-method-row input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 480px) {
  .contact-method-row { flex-direction: column; }
  .contact-method-row select { width: 100%; }
}
.required {
  color: var(--red);
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.button-row .btn-primary {
  width: auto;
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.admin-nav a {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.admin-nav a:hover {
  border-color: var(--green);
  text-decoration: none;
}
.status-chip,
.tier-badge,
.slot-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 700;
  white-space: nowrap;
}
.status-pending,
.status-warn {
  color: #92400e;
  background: #fef3c7;
}
.status-approved,
.status-paid,
.status-active,
.status-success,
.tier-pro,
.slot-pick {
  color: #0E756B;
  background: var(--green-soft);
}
.tier-pro {
  color: #065f46;
  background: var(--bg-soft);
  border: 1px solid rgba(16, 185, 129, .45);
  box-shadow: none;
}
.tier-pro::before {
  content: "✓";
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 999px;
  color: #fff; background: #0E756B;
  font-size: 10px; line-height: 1; font-weight: 900;
  box-shadow: none;
}
.status-rejected,
.status-danger,
.status-failed,
.status-suspended {
  color: #991b1b;
  background: #fee2e2;
}
.status-muted,
.status-inactive {
  color: #4b5563;
  background: #f3f4f6;
}
.tier-basic {
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
}
.tier-featured,
.slot-featured {
  color: #92400e;
  background: #fef3c7;
}
.admin-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table thead {
  background: var(--bg-soft);
}

.apply-benefits {
  background: var(--bg);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: none;
}
.apply-benefits-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 22px;
}
.apply-benefits-head h2 {
  margin: 4px 0 8px;
  font-size: 24px;
}
.apply-benefits-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.apply-benefits-cta {
  width: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}
.apply-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.apply-benefit-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--bg-soft);
}
.apply-benefit-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 15px;
}
.apply-benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.apply-pricing-strip,
.operator-cta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 24px;
  background: #f0fdf4;
}
.apply-pricing-strip strong,
.operator-cta-strip strong {
  display: block;
  color: var(--green-dark);
  font-size: 16px;
}
.apply-pricing-strip span,
.operator-cta-strip span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}
.apply-pricing-strip a {
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
}
.apply-pricing-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.owner-contact-inline {
  font-weight: 700;
  color: var(--green-dark) !important;
}
.owner-contact-inline strong,
.operator-contact-line strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", Consolas, monospace;
}
.owner-contact-inline span {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 600;
}
.owner-qq-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid rgba(16, 185, 129, 0.24);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.operator-contact-line {
  margin-top: 6px !important;
  color: var(--green-dark) !important;
  font-weight: 700;
}
.operator-cta-strip {
  margin: 18px 0 0;
  box-shadow: none;
}
.operator-cta-btn {
  width: auto;
  white-space: nowrap;
  flex: 0 0 auto;
}
.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.admin-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-table tbody tr:last-child td {
  border-bottom: 0;
}
.admin-table tbody tr:hover {
  background: var(--bg-soft);
}
.admin-table .wrap {
  white-space: normal;
  min-width: 220px;
}
.admin-table .muted {
  color: var(--muted);
  font-size: 12px;
}
.admin-table .actions {
  min-width: 260px;
}
.inline-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.inline-form input {
  width: 140px;
  padding: 6px 8px;
  font-size: 12px;
}
.btn-small {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.2;
}
.btn-danger {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}
.btn-danger:hover {
  background: #fee2e2;
}
.btn-warning {
  border-color: #fde68a;
  color: #92400e;
  background: #fffbeb;
}
.btn-warning:hover {
  background: #fef3c7;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.admin-partner-access-page .hub-hero {
  margin-bottom: 28px;
}
.admin-partner-access-page .hub-hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: .95;
  margin-bottom: 18px;
}
.admin-partner-access-page .answer-capsule {
  max-width: none;
  font-size: 18px;
}
.admin-partner-access-page .admin-nav {
  gap: 12px;
  margin-top: 24px;
}
.admin-partner-access-page .admin-nav a {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  background: #fff;
  box-shadow: none;
}
.admin-partner-access-page .admin-panel-card {
  padding: 30px 34px;
  border-radius: 14px;
  box-shadow: none;
}
.admin-partner-access-page .admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}
.admin-partner-access-page .admin-panel-head .section-title {
  margin-bottom: 8px;
}
.admin-partner-access-page .admin-panel-head .muted {
  max-width: 880px;
  margin: 0;
  line-height: 1.65;
}
.admin-partner-access-page .admin-partner-form {
  display: grid;
  grid-template-columns: minmax(240px, .95fr) minmax(320px, 1.35fr) minmax(150px, .55fr);
  gap: 18px 22px;
  align-items: end;
}
.admin-partner-access-page .admin-plan-form {
  grid-template-columns: minmax(360px, 1.35fr) minmax(240px, .8fr) minmax(120px, .35fr);
}
.admin-partner-access-page .admin-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.admin-partner-access-page .admin-field span {
  color: #475569;
}
.admin-partner-access-page .admin-field input,
.admin-partner-access-page .admin-field select,
.admin-partner-access-page .admin-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none;
}
.admin-partner-access-page .admin-field textarea {
  min-height: 112px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.admin-partner-access-page .admin-field select[multiple] {
  min-height: 156px;
  padding: 8px;
}
.admin-partner-access-page .admin-field optgroup {
  color: #475569;
  font-style: normal;
  font-weight: 800;
}
.admin-partner-access-page .admin-field option {
  padding: 7px 8px;
  color: var(--text);
  font-weight: 700;
}
.admin-partner-access-page .admin-field em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
}
.admin-partner-access-page .admin-field input:focus,
.admin-partner-access-page .admin-field select:focus,
.admin-partner-access-page .admin-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: none;
}
.admin-partner-access-page .admin-field-days input {
  max-width: 150px;
}
.admin-partner-access-page .admin-field-binding {
  grid-column: 1 / 2;
}
.admin-partner-access-page .admin-partner-form .field-actions {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  min-width: 0;
}
.admin-partner-access-page .admin-partner-form .field-actions .btn {
  width: min(100%, 280px);
  min-height: 52px;
  border-radius: 8px;
  font-size: 16px;
}
.admin-partner-access-page .admin-plan-form .field-actions {
  grid-column: 2 / 3;
}
.admin-partner-access-page .admin-empty-hint {
  margin: 14px 0 0;
}
.admin-partner-access-page .admin-table-wrap {
  margin-top: 0;
}
.admin-partner-access-page .admin-table th,
.admin-partner-access-page .admin-table td {
  padding: 12px 14px;
}
.readonly-box {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}
.code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.affiliate-panel {
  padding: 16px;
  border: 1px solid rgba(16,185,129,0.25);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #f0fdf4;
}
.readonly-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}
.compact-panel {
  margin: 12px 0 18px;
}
.simple-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.simple-list li + li {
  margin-top: 4px;
}
.content-card {
  margin-top: 20px;
}
.content-card p,
.content-card li {
  color: var(--muted);
  line-height: 1.75;
}
.content-card p {
  margin: 0 0 12px;
}
.content-card p:last-child {
  margin-bottom: 0;
}
.content-card ul,
.content-card ol {
  margin: 0 0 12px;
  padding-left: 22px;
}
.content-card li + li {
  margin-top: 6px;
}
.commitment-card {
  border-left: 4px solid var(--green);
  background: #f0fdf4;
}
.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.partner-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 999px;
  background: #f0fdf4;
  color: #0E756B;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.partner-pill:hover {
  text-decoration: none;
  border-color: var(--green);
}
.faq-list details {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.faq-list details:last-child {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
}
.faq-list summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  padding: 6px 0;
}
.faq-list details p,
.faq-list details ul {
  margin-top: 8px;
}
.faq-list details p {
  padding-left: 12px;
}
.empty-state {
  margin: 24px 0;
  padding: 36px 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--muted);
  text-align: center;
}
.empty-state p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}
.empty-state p + p {
  margin-top: 10px;
}
.recommended-section {
  margin-top: 28px;
}
.section-hint {
  margin-bottom: 14px;
}
.recommended-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.featured-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.featured-card,
.recommend-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: none;
}
.featured-card {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-left: 4px solid var(--amber);
}
.featured-card-content {
  flex: 1 1 260px;
  min-width: 0;
}
.recommend-card {
  padding: 18px;
  border-left: 4px solid var(--green);
}
.commercial-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.commercial-card-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}
.recommend-card .commercial-card-head h3 {
  font-size: 16px;
}
.commercial-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.commercial-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.commercial-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.title-badge {
  margin-left: 10px;
  vertical-align: middle;
}
.title-pro-badge {
  margin-left: 8px;
  padding: 4px 9px 4px 5px;
  gap: 5px;
  font-size: 12px;
  line-height: 1;
  vertical-align: super;
  transform: translateY(-0.24em);
}
.title-pro-badge::before {
  content: none;
}
.pro-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  color: #fff;
  background: #0E756B;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  box-shadow: none;
}
.status-info {
  color: #1d4ed8;
  background: #dbeafe;
}
.official-zone {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: none;
}
.official-zone-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.official-zone-main {
  flex: 1 1 240px;
  min-width: 0;
}
.official-zone-label {
  margin-bottom: 6px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.official-zone h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.official-desc {
  color: var(--muted);
  max-width: 820px;
}
.official-desc p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}
.official-desc p + p {
  margin-top: 16px;
}
.official-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
}
.official-actions .btn {
  text-align: center;
}
.unlisted-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
}
.actions-col {
  width: 300px;
}
.table-empty {
  text-align: center;
  padding: 30px;
}

@media (max-width: 640px) {
  .info-list {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
  .featured-card,
  .commercial-actions,
  .official-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .featured-card .btn,
  .commercial-actions .btn,
  .official-actions .btn {
    width: 100%;
    text-align: center;
  }
}
/* =========== /faq page =========== */
.faq-hero {
  margin: 8px 0 24px;
}
.faq-hero h1 {
  font-size: 32px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.faq-hero-sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  /* 不设 max-width:与下方 .faq-layout(912px)齐右边,避免介绍段比内容区窄一截 */
}

/* Two-column: sticky TOC | main content */
.faq-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 16px;
}

.faq-toc {
  position: sticky;
  /* site-header is sticky at top: 0 with ~58px height; offset so TOC sits below */
  top: 78px;
  align-self: start;
  font-size: 14px;
}
.faq-toc-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.faq-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-toc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.faq-toc-list a {
  color: var(--text);
  padding: 7px 10px;
  border-radius: 6px;
  flex: 1;
  border-left: 2px solid transparent;
}
.faq-toc-list a:hover {
  background: var(--bg-soft);
  text-decoration: none;
  border-left-color: var(--green);
}
.faq-toc-count {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  padding-right: 6px;
}

/* Main column */
.faq-main { min-width: 0; }

.faq-category {
  scroll-margin-top: 76px;  /* offset for sticky header when jumping via TOC */
  margin-bottom: 48px;
}
.faq-category h2 {
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.faq-category-intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 18px;
}

.faq-entries {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-entry {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  scroll-margin-top: 76px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-entry[open] {
  border-color: var(--green);
  box-shadow: none;
}
.faq-entry summary.faq-q {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.faq-entry summary.faq-q::-webkit-details-marker { display: none; }
/* Custom triangle on the right */
.faq-entry summary.faq-q::before {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  margin-right: 4px;
  transition: transform 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.faq-entry[open] summary.faq-q::before {
  transform: rotate(45deg);
  border-color: var(--green);
}
.faq-entry summary.faq-q:hover { background: var(--bg-soft); }
.faq-entry[open] summary.faq-q:hover { background: var(--bg); }

.faq-permalink {
  margin-left: auto;
  color: var(--muted);
  font-weight: 400;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.faq-entry:hover .faq-permalink,
.faq-entry[open] .faq-permalink { opacity: 1; }

.faq-a {
  padding: 0 16px 16px 36px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.75;
}

.faq-no-answer {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.faq-no-answer h2 {
  font-size: 16px;
  margin: 0 0 8px;
}
.faq-no-answer p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.7;
}

/* "更多问题 → /faq#xxx" trailer on product pages — separates the picked
   highlight FAQ from the deep-link to the full /faq page. */
.faq-more {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}
.faq-more a { color: var(--green-dark); }

/* Tablet (≤960px): TOC narrows but still sticky */
@media (max-width: 960px) {
  .faq-layout { grid-template-columns: 180px 1fr; gap: 28px; }
  .faq-toc { font-size: 13px; }
}

/* Mobile (≤820px, 覆盖 iPhone 全系 + iPad 竖屏):TOC 改成多行换行的 chip 卡片
   (而不是隐性横滚,所有分类一次看全),所有正文允许任意位置断词防止溢出。 */
@media (max-width: 820px) {
  .faq-hero h1 { font-size: 26px; }
  .faq-hero-sub { font-size: 14px; }
  .faq-layout { grid-template-columns: 1fr; gap: 16px; }
  .faq-toc {
    position: static;
    top: auto;
    margin: 0 0 4px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-soft);
  }
  .faq-toc-title { display: none; }
  .faq-toc-list {
    flex-direction: row;
    flex-wrap: wrap;       /* 多行排版,所有分类一次看全 */
    gap: 8px;
  }
  .faq-toc-list li { flex-shrink: 0; }
  .faq-toc-list a {
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    white-space: nowrap;
    font-size: 13px;
  }
  .faq-toc-list a:hover { border-left-color: var(--line); }
  .faq-toc-count {
    background: var(--bg-soft);
    border-radius: 999px;
    padding: 1px 6px;
    margin-left: 4px;
  }
  .faq-category h2 { font-size: 20px; }
  .faq-category-intro,
  .faq-q,
  .faq-a {
    overflow-wrap: anywhere;  /* 长英文/code 可在任意位置断行,不撑宽容器 */
  }
  .faq-a { padding: 0 14px 14px 32px; font-size: 14px; }
  /* 收紧 container 横向 padding,把 16px 让给正文 */
  .container { padding-left: 16px; padding-right: 16px; }
}
/* Content, FAQ, search and directory */
body.v1-shell .article-shell { margin: 32px auto 48px; }
body.v1-shell .page-head { max-width: var(--v1-content); margin: 36px 0 24px; }
body.v1-shell .page-head > p:not(.section-kicker):not(.page-head-meta) { max-width: 760px; color: var(--v1-muted); font-size: 16px; line-height: 1.7; }
body.v1-shell .guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
body.v1-shell .guide-card { margin: 0; }
body.v1-shell .guide-card h2 { margin: 0 0 10px; font-size: 22px; }
body.v1-shell .collection-table-wrap { margin-bottom: 24px; }
body.v1-shell .collection-table { min-width: 720px; }
body.v1-shell .collection-table td p { margin: 8px 0 0; color: var(--v1-muted); }
body.v1-shell .collection-empty,
body.v1-shell .collection-accumulating { max-width: var(--v1-content); }
body.v1-shell .article-sources,
body.v1-shell .article-followup { border-color: var(--v1-line); }

body.v1-shell .faq-layout { display: grid; grid-template-columns: minmax(210px, 260px) minmax(0, 1fr); gap: 24px; align-items: start; }
body.v1-shell .faq-toc { position: sticky; top: 92px; padding: 18px; border: 1px solid var(--v1-line); border-radius: var(--v1-radius); background: var(--v1-surface); }
body.v1-shell .faq-entry { border-color: var(--v1-line); border-radius: var(--v1-radius-sm); background: var(--v1-surface); }
body.v1-shell .faq-q { min-height: 48px; color: var(--v1-text); }
body.v1-shell .faq-a { color: var(--v1-muted); font-size: 16px; line-height: 1.75; }

body.v1-shell .domain-search-form { display: flex; flex-wrap: wrap; gap: 10px; }
body.v1-shell .domain-search-field { flex: 1 1 320px; min-width: 0; }
body.v1-shell .domain-search-list { display: grid; gap: 10px; padding: 0; list-style: none; }
body.v1-shell .domain-search-row { border-color: var(--v1-line); border-radius: var(--v1-radius-sm); background: #f8fbfa; }

body.v1-shell .relays-controls { margin: 20px 0; padding: 16px; }
body.v1-shell .sparkline { width: 47px; height: 16px; overflow: visible; }
body.v1-shell .sparkline .spark-bar { fill: var(--v1-brand); opacity: .72; }
body.v1-shell .verdict-bar { display: block; width: 120px; height: 6px; border-radius: 999px; background: var(--v1-line); overflow: hidden; }
body.v1-shell .verdict-bar .v-pass { fill: var(--v1-brand); }
body.v1-shell .verdict-bar .v-marg { fill: #c98613; }
body.v1-shell .verdict-bar .v-fail { fill: #b8443f; }
body.v1-shell .sort-tabs,
body.v1-shell .window-picker,
body.v1-shell .filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.v1-shell .sort-tab,
body.v1-shell .chip { min-height: 40px; border-color: var(--v1-line); background: var(--v1-surface); color: var(--v1-muted); }
body.v1-shell .sort-tab.active,
body.v1-shell .chip.active { border-color: var(--v1-brand); background: var(--v1-brand-soft); color: var(--v1-brand); }

body.v1-shell .notfound-code { color: var(--v1-brand); font-size: clamp(56px, 10vw, 96px); font-weight: 800; line-height: 1; }
body.v1-shell .gone-page { display: grid; min-height: 48vh; place-items: center; text-align: center; }

@media (max-width: 800px) {
  body.v1-shell .lb-chooser-grid,
  body.v1-shell .auto-review-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.v1-shell .faq-layout { grid-template-columns: 1fr; }
  body.v1-shell .faq-toc { position: static; }
  body.v1-shell .guide-list { grid-template-columns: 1fr; }
  body.v1-shell .collection-table-wrap { border: 0; background: transparent; overflow: visible; }
  body.v1-shell .collection-table { display: block; min-width: 0; }
  body.v1-shell .collection-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  body.v1-shell .collection-table tbody,
  body.v1-shell .collection-table tr,
  body.v1-shell .collection-table td { display: block; width: 100%; }
  body.v1-shell .collection-table tbody { display: grid; gap: 12px; }
  body.v1-shell .collection-table tr { padding: 14px 16px; border: 1px solid var(--v1-line); border-radius: var(--v1-radius); background: var(--v1-surface); }
  body.v1-shell .collection-table td { display: grid; grid-template-columns: minmax(92px, .38fr) minmax(0, 1fr); gap: 12px; padding: 8px 0; border: 0; border-bottom: 1px solid #e8efed; overflow-wrap: anywhere; }
  body.v1-shell .collection-table td:last-child { border-bottom: 0; }
  body.v1-shell .collection-table td::before { content: attr(data-label); color: var(--v1-muted); font-size: 12px; font-weight: 700; }
}

@media (max-width: 600px) {
  body.v1-shell .hero,
  body.v1-shell .hub-hero,
  body.v1-shell .faq-hero,
  body.v1-shell .relays-header,
  body.v1-shell .domain-search-panel { margin-top: 24px; }
  body.v1-shell .card,
  body.v1-shell .notice,
  body.v1-shell .editorial-section,
  body.v1-shell .domain-search-results,
  body.v1-shell .relays-list,
  body.v1-shell .official-zone,
  body.v1-shell .unlisted-actions,
  body.v1-shell .auto-review,
  body.v1-shell .lb-detail-summary,
  body.v1-shell .lb-detail-issues,
  body.v1-shell .lb-detail-history { padding: 18px; }
  body.v1-shell .form-card { padding: 20px; }
  body.v1-shell .lb-tabs a { padding: 10px 12px; font-size: 13px; }
  body.v1-shell .lb-chooser-grid,
  body.v1-shell .auto-review-metrics,
  body.v1-shell .auto-review-case-grid,
  body.v1-shell .auto-review-detector-grid { grid-template-columns: 1fr; }
  body.v1-shell .cta-row > .btn,
  body.v1-shell .button-row > .btn { width: 100%; }
  body.v1-shell .lookup-path { display: block; margin: 4px 0 0; }
  body.v1-shell .auto-review-inline-warning { display: block; margin: 6px 0 0; }

  body.v1-shell .detect-page { max-width: none; }
  body.v1-shell .detect-hero { margin-top: 24px; margin-bottom: 24px; }
  body.v1-shell .detect-hero h1 { font-size: 30px; }
  body.v1-shell .detect-hero .hero-sub { font-size: 15px; line-height: 1.72; }
  body.v1-shell .detect-quick-facts { gap: 8px 14px; margin-top: 16px; font-size: 12px; }
  body.v1-shell .detect-form-card { padding: 20px 18px; }
  body.v1-shell .detect-form-head { margin-bottom: 22px; padding-bottom: 18px; }
  body.v1-shell .detect-form-head h2,
  body.v1-shell .detect-section-head h2 { font-size: 23px; }
  body.v1-shell .detect-form-card .field-row { grid-template-columns: 1fr; gap: 0; }
  body.v1-shell .detect-form-card input,
  body.v1-shell .detect-form-card select { min-height: 50px; }
  body.v1-shell .detect-update .product-update-notice { gap: 14px; padding: 16px; }
  body.v1-shell .detect-update .product-update-side { gap: 10px; }
  body.v1-shell .detect-update .product-update-actions { flex-direction: row; align-items: center; }
  body.v1-shell .detect-update .product-update-actions .btn-primary { width: auto; flex: 1 1 auto; }
  body.v1-shell .detect-update .product-update-link { flex: 0 0 auto; }
  body.v1-shell .detect-scope-note { padding: 16px; font-size: 13.5px; }
  body.v1-shell .detect-before { margin-top: 40px; }
  body.v1-shell .detect-before .features { grid-template-columns: 1fr; }
  body.v1-shell .detect-faq-link { text-align: left; }
  body.v1-shell .detect-faq { margin-top: 40px; }
  body.v1-shell .detect-faq .faq-item summary { min-height: 56px; padding: 16px; font-size: 15px; }
  body.v1-shell .detect-faq .faq-body { padding: 0 16px 18px; font-size: 14px; }
}
