/* 指南沿用门户颜色和外观偏好，排版单独限定作用域。 */
.guide-page { min-height: 100vh; }
.guide-header { width: min(100% - 48px, 1040px); margin: auto; min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.guide-shell { width: min(100% - 40px, 780px); margin: 20px auto 40px; }
.guide-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; color: var(--muted); margin-bottom: 34px; }
.guide-breadcrumb [aria-current] { overflow-wrap: anywhere; }
.guide-breadcrumb a:hover { color: var(--accent); }
.guide-kicker { color: var(--accent); font-size: 12px; letter-spacing: 2px; margin: 0 0 14px; }
.guide-page h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.35; letter-spacing: -.7px; margin: 0 0 18px; font-weight: 650; text-wrap: balance; }
.guide-lead { font-size: 16px; color: var(--muted); line-height: 1.9; margin: 0 0 16px; }
.guide-meta { font-size: 12px; color: var(--muted); margin: 0 0 32px; }
.guide-card { margin: 20px 0; padding: 28px 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-bg); }
.guide-card h2 { margin: 0 0 16px; font-size: 21px; line-height: 1.5; }
.guide-card h3 { margin: 24px 0 10px; font-size: 16px; line-height: 1.65; font-weight: 600; }
.guide-card p, .guide-card li { font-size: 15px; line-height: 1.95; overflow-wrap: anywhere; }
.guide-card p { margin: 10px 0; }
/* 指南问答沿用 Q / A 角标，中文按正文语言选择简繁字形。 */
.guide-faq-item { padding: 22px 0; }
.guide-faq-item:first-of-type { padding-top: 4px; }
.guide-faq-item:last-child { padding-bottom: 0; }
.guide-faq-item + .guide-faq-item { border-top: 1px solid var(--line); }
.guide-faq-item h3 { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 14px; font-size: 18px; font-weight: 700; line-height: 1.65; }
.guide-faq-item h3::before { content: "Q"; flex: 0 0 28px; border-radius: 6px; background: var(--notice-bg); color: var(--accent); font-size: 13px; line-height: 28px; text-align: center; }
.guide-faq-item p { position: relative; margin: 0; padding-left: 40px; color: var(--text); }
.guide-faq-item p::before { content: "A"; position: absolute; left: 0; width: 28px; color: var(--muted); font-size: 13px; line-height: 29.25px; text-align: center; }
.guide-faq-item:lang(zh) h3::before { content: "问"; }
.guide-faq-item:lang(zh) p::before { content: "答"; }
.guide-faq-item:lang(zh-Hant) h3::before { content: "問"; }
.guide-card ul, .guide-card ol { padding-left: 22px; }
.guide-card li + li { margin-top: 10px; }
.guide-card a, .guide-related a, .guide-references a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.guide-note { border-left: 3px solid var(--accent); padding: 10px 16px; background: var(--notice-bg); color: var(--notice-text); border-radius: 0 8px 8px 0; }
.guide-cta { display: inline-flex; gap: 10px; align-items: center; padding: 12px 20px; border-radius: 10px; margin: 8px 0 16px; background: var(--accent); color: var(--accent-text); font-size: 15px; font-weight: 600; }
.guide-cta:hover { background: var(--accent-hover); }
.guide-related, .guide-references { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.guide-related h2, .guide-references h2 { margin-bottom: 12px; font-size: 16px; color: var(--text); }
.guide-related li, .guide-references li { margin: 8px 0; }
.guide-card .guide-list { list-style: none; padding: 0; margin: 0; }
.guide-list a { display: block; padding: 15px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); }
.guide-list a:hover { border-color: var(--accent); background: var(--notice-bg); }
.guide-list strong, .guide-list span { display: block; }
.guide-list strong { font-weight: 600; }
.guide-list span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.guide-table-wrap { overflow-x: auto; margin: 16px 0; }
.guide-page table { width: 100%; white-space: normal; font-size: 14px; line-height: 1.8; }
.guide-page th, .guide-page td { font-size: inherit; padding: 12px; vertical-align: top; }
.guide-page th { color: var(--text); font-weight: 600; }
.guide-page th[scope="row"] { width: 25%; min-width: 82px; background: transparent; }
.guide-page caption { text-align: left; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.guide-page .guide-shell-wide { width: min(1040px, calc(100% - 48px)); }
.support-directory { table-layout: fixed; }
.support-directory thead th:nth-child(1) { width: 48%; }
.support-directory thead th:nth-child(2) { width: 52%; }
.support-directory th[scope="row"], .support-directory td { min-width: 0; overflow-wrap: anywhere; }
.support-directory tbody tr:target { outline: 2px solid var(--accent); outline-offset: -2px; }
.support-status { color: var(--accent); font-weight: 650; }
.support-scope { display: inline-block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.65; }
.support-directory .support-scope { display: block; }
@media (max-width: 600px) {
  .guide-header { width: calc(100% - 32px); min-height: 76px; flex-wrap: wrap; padding: 16px 0; gap: 14px; }
  .guide-header .brand { font-size: 15px; white-space: normal; }
  .guide-header .header-actions { flex-basis: auto; margin-left: auto; gap: 8px; }
  .guide-shell { width: calc(100% - 32px); margin-top: 14px; }
  .guide-card { padding: 20px 18px; }
  .guide-breadcrumb { margin-bottom: 26px; }
  .guide-lead { font-size: 15px; }
.guide-page th, .guide-page td { padding: 10px 7px; }
.guide-page .guide-shell-wide { width: calc(100% - 24px); }
.support-directory { min-width: 0; }
}

/* 使用指南与首页共享内容宽度，标题、卡片和底部收口保持同一视觉基线。 */
.guide-page {
  --portal-gutter: 24px;
  --portal-width: min(720px, calc(100% - var(--portal-gutter) * 2));
}
.guide-page .guide-header,
.guide-page .guide-shell {
  width: var(--portal-width);
  max-width: none;
}
.guide-page .guide-shell.guide-shell-wide {
  width: min(1040px, calc(100% - var(--portal-gutter) * 2));
}
.guide-page .guide-header {
  min-height: 72px;
}
.guide-page .guide-shell {
  margin-top: 24px;
  margin-bottom: 32px;
}
.guide-page footer {
  padding-top: 24px;
}
@media (max-width: 600px) {
  .guide-page {
    --portal-gutter: 16px;
  }
  .guide-page .guide-header {
    min-height: 64px;
    padding: 14px 0;
  }
  .guide-page .guide-shell {
    margin-top: 16px;
  }
}

/* 顶栏控件复用 header-controls.css，本页仅保留阅读区域和顶栏排版。 */
.guide-page .guide-header { gap: 12px; padding: 18px 0; }
.guide-page .header-actions { width: auto; flex: 0 0 auto; flex-wrap: nowrap; }
@media (max-width: 640px) { .guide-page .guide-header { padding: 14px 0; } }
/* 公开目录只增强查找；无脚本时控件隐藏、既有静态正文完整保留。 */
.support-directory-filters:not([hidden]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; margin: 0 0 16px; }
.support-directory-filters label { display: block; margin-bottom: 6px; }
.support-directory-filters input, .support-directory-filters select { width: 100%; min-width: 0; padding: 10px; font: inherit; color: var(--text); background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 8px; }
.support-directory-filters button { padding: 10px 14px; font: inherit; }
.support-directory-filters p { grid-column: 1 / -1; margin: 0; }
@media (max-width: 640px) { .support-directory-filters:not([hidden]) { grid-template-columns: minmax(0, 1fr); } }

.support-location { display: block; margin-top: 6px; font-size: .9em; font-weight: normal; }
.support-location-evidence { margin-top: 6px; font-size: .85em; font-weight: normal; overflow-wrap: anywhere; }
.support-location-evidence summary { cursor: pointer; }

/* HU 对照以连续正文排版，主表和抽样细目使用同一套列宽。 */
body.hu-guide { background: var(--surface-bg); }
.hu-guide .guide-breadcrumb { margin-bottom: 28px; }
.hu-guide h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.3; }
.guide-term { white-space: nowrap; }
.hu-guide .guide-lead { color: var(--text); font-size: 17px; line-height: 1.9; }
.hu-guide .guide-meta { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.hu-guide .guide-card { margin: 36px 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.hu-guide .guide-card h2 { margin-bottom: 12px; font-size: 22px; }
.hu-guide .guide-card p { font-size: 16px; line-height: 1.85; }
.hu-guide .guide-table-wrap { margin: 18px 0; }
.hu-guide table { table-layout: fixed; font-variant-numeric: tabular-nums; }
.hu-guide caption { font-size: 13px; }
.hu-guide th, .hu-guide td { text-align: right; padding: 10px 8px; overflow-wrap: anywhere; }
.hu-guide thead th:first-child, .hu-guide th[scope="row"] { width: 40%; min-width: 0; text-align: left; }
.hu-evidence-details { padding: 12px 0; border-block: 1px solid var(--line); }
.hu-evidence-details summary { cursor: pointer; color: var(--accent); font-size: 15px; }
.hu-evidence-details summary:focus-visible { outline: 2px solid var(--focus-outline); outline-offset: 3px; }
.hu-guide .guide-faq-item { padding: 0; border: 0; }
.hu-guide .guide-faq-item h3 { margin: 18px 0 4px; font-size: 16px; }
.hu-guide .guide-faq-item p { margin: 0; padding: 0; }
.hu-guide .guide-faq-item h3::before, .hu-guide .guide-faq-item p::before { content: none; }
.hu-guide [id] { scroll-margin-top: 16px; }
@media (max-width: 600px) {
  .hu-guide .guide-card { margin: 28px 0; }
  .hu-guide .guide-lead, .hu-guide .guide-card p { font-size: 15px; }
  .hu-guide th, .hu-guide td { padding: 8px 4px; font-size: 13px; }
}
