:root {
  --help-header-height: 60px;
  color-scheme: light;
  --text: #2e3033;
  --strong: #20242c;
  --muted: #667085;
  --subtle: #98a2b3;
  --surface: #fff;
  --surface-2: #fafbfc;
  --background: #fff;
  --tint: #f5f7fa;
  --row-hover: #f2f5f9;
  --border: #e6e8ec;
  --divider: #eceef1;
  --primary: #1890ff;
  --primary-strong: #096dd9;
  --primary-fill: #1890ff;
  --primary-fill-hover: #096dd9;
  --link: #0052d9;
  --link-strong: #003cab;
  --primary-soft: rgb(24 144 255 / 9%);
  --primary-softer: rgb(24 144 255 / 5%);
  --success: #06b178;
  --success-soft: rgb(6 177 120 / 10%);
  --warning: #e8801f;
  --warning-soft: rgb(232 128 31 / 11%);
  --danger: #d93636;
  --danger-soft: rgb(217 54 54 / 9%);
  --tip-soft: rgb(24 144 255 / 9%);
  --shadow-card: 0 4px 10px rgb(16 24 40 / 5%), 0 16px 40px rgb(16 24 40 / 9%);
  --shadow-pop: 0 14px 44px rgb(16 24 40 / 16%);
  --scrollbar-thumb: #c8cfd9;
  --scrollbar-thumb-hover: #aeb7c4;
  --header-bg: rgb(255 255 255 / 92%);
  --nav-width: 272px;
  --toc-width: 224px;
  --hero-gradient: #f7fbff;
  --hero-line: rgb(255 255 255 / 7%);
  --hero-glow-1: rgb(255 255 255 / 18%);
  --hero-glow-2: rgb(255 255 255 / 11%);
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --text: #c5c9d0;
  --strong: #f0f1f3;
  --muted: #9298a3;
  --subtle: #777d87;
  --surface: #1d1f24;
  --surface-2: #202125;
  --background: #17181b;
  --tint: #101a28;
  --row-hover: #272a30;
  --border: #34363a;
  --divider: #303236;
  --primary: #40a9ff;
  --primary-strong: #69c0ff;
  --primary-fill: #1668dc;
  --primary-fill-hover: #0e5bb8;
  --link: #69b1ff;
  --link-strong: #91caff;
  --primary-soft: rgb(64 169 255 / 17%);
  --primary-softer: rgb(64 169 255 / 8%);
  --success-soft: rgb(6 177 120 / 18%);
  --warning-soft: rgb(232 128 31 / 16%);
  --danger-soft: rgb(217 54 54 / 16%);
  --tip-soft: rgb(64 169 255 / 13%);
  --shadow-card: 0 12px 32px rgb(0 0 0 / 35%);
  --shadow-pop: 0 14px 44px rgb(0 0 0 / 55%);
  --scrollbar-thumb: #484c54;
  --scrollbar-thumb-hover: #5b6069;
  --header-bg: rgb(29 31 36 / 92%);
  --hero-gradient: #202125;
  --hero-line: rgb(255 255 255 / 5%);
  --hero-glow-1: rgb(96 165 250 / 22%);
  --hero-glow-2: rgb(64 169 255 / 12%);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background-color: var(--scrollbar-thumb);
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}
.nav-scroll {
  scrollbar-color: transparent transparent;
}
.nav-scroll::-webkit-scrollbar-thumb {
  background-color: transparent;
}
.doc-nav:hover .nav-scroll,
.doc-nav:focus-within .nav-scroll,
.page-toc:hover .nav-scroll,
.page-toc:focus-within .nav-scroll {
  scrollbar-color: var(--scrollbar-thumb) transparent;
}
.doc-nav:hover .nav-scroll::-webkit-scrollbar-thumb,
.doc-nav:focus-within .nav-scroll::-webkit-scrollbar-thumb,
.page-toc:hover .nav-scroll::-webkit-scrollbar-thumb,
.page-toc:focus-within .nav-scroll::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
}

[hidden] {
  display: none !important;
}
::selection {
  background: rgb(24 144 255 / 22%);
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  font:
    15px/1.8 Inter,
    'Noto Sans SC',
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  color: var(--link-strong);
}
.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--help-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--strong);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.brand::before {
  content: '';
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  background: url('../logo.svg') center / contain no-repeat;
}
.brand:hover {
  color: var(--strong);
}
.brand__mark {
  color: var(--primary);
}
.brand__divider {
  width: 1px;
  height: 15px;
  background: var(--border);
}
#theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
}
#theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}
#theme-toggle svg {
  width: 18px;
  height: 18px;
}
:root[data-theme='dark'] .theme-icon--light,
:root:not([data-theme='dark']) .theme-icon--dark {
  display: none;
}

/* ---------- Home ---------- */
.home {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

/* Full-bleed hero */
.hero {
  position: relative;
  padding: 48px 32px 52px;
  color: var(--strong);
  background: var(--hero-gradient);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 64px;
  pointer-events: none;
  display: none;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: block;
  background: url('./help-banner.svg') right center / min(560px, 48%) auto no-repeat;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  text-align: left;
}
.hero h1 {
  margin: 0 0 16px;
  color: var(--strong);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.hero__subtitle {
  max-width: 820px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.home-search {
  position: relative;
  max-width: 720px;
  margin: 0;
}
.home-search__icon {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 20px;
  height: 20px;
  color: var(--subtle);
  transform: translateY(-50%);
}
#help-search {
  width: 100%;
  height: 58px;
  padding: 0 22px 0 54px;
  color: var(--strong);
  font-size: 15px;
  background: var(--surface);
  border: none;
  border-radius: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: none;
  outline: none;
  transition: box-shadow 0.15s;
}
#help-search:focus {
  box-shadow: 0 0 0 3px rgb(24 144 255 / 16%);
}
#help-search::placeholder {
  color: var(--subtle);
}

/* Hero quick actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 28px;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  backdrop-filter: blur(4px);
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.15s;
}
.hero-btn .icon {
  font-size: 17px;
}
.hero-btn:hover {
  color: var(--primary-strong);
  background: var(--surface);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.hero-btn--primary {
  color: #fff;
  font-weight: 600;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
}
.hero-btn--primary:hover {
  color: #fff;
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

/* Hot keywords */
.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 4px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}
.hero-keywords__label {
  margin-right: 6px;
  font-weight: 500;
}
.hero-keywords__label::after {
  content: '·';
  margin-left: 12px;
  opacity: 0.6;
}
.hero-keywords button {
  padding: 2px 8px;
  color: var(--link);
  font-size: 14px;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s;
}
.hero-keywords button:hover {
  color: var(--link-strong);
  background: var(--primary-softer);
}
.hero-keywords__sep {
  opacity: 0.5;
}

/* Toolbar (category chips) */
.home-toolbar {
  position: relative;
  z-index: 2;
  margin-top: 28px;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.filter-chip {
  height: 36px;
  padding: 0 18px;
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgb(16 24 40 / 4%);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.filter-chip:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-softer);
}
.filter-chip.is-active {
  color: #fff;
  background: var(--primary-fill);
  border-color: var(--primary-fill);
  font-weight: 600;
}

.home-section {
  margin-top: 72px;
  scroll-margin-top: calc(var(--help-header-height) + 20px);
}
#home-browse > .home-section:first-child {
  margin-top: 48px;
}
.home-section__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}
.home-section__head h2 {
  margin: 0;
  padding-left: 13px;
  border-left: 5px solid var(--primary);
  color: var(--strong);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}
.home-section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Task entry points */
.task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.task-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 116px;
  padding: 18px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition:
    border-color 0.16s,
    background 0.16s;
}
.task-card:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--primary);
}
.task-card__icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--primary);
}
.task-card__body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}
.task-card__body strong {
  color: var(--strong);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.task-card__body span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.task-card__arrow {
  color: var(--subtle);
  font-size: 18px;
}

/* Quick steps */
.quicksteps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.quicksteps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-height: 168px;
  padding: 22px 18px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
.quicksteps__item:hover {
  color: var(--text);
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.quicksteps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  background: var(--primary-fill);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgb(24 144 255 / 32%);
}
.quicksteps__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quicksteps__name {
  color: var(--strong);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.quicksteps__desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.quicksteps__arrow {
  position: absolute;
  right: 14px;
  top: 18px;
  color: var(--subtle);
  font-size: 15px;
}

/* Examinee steps */
.examinee-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.examinee-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 30px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
.examinee-card:hover {
  color: var(--text);
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.examinee-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  background: var(--primary-fill);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgb(24 144 255 / 30%);
}
.examinee-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex: none;
  font-size: 25px;
  color: var(--success);
  background: var(--success-soft);
  border-radius: 13px;
}
.examinee-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.examinee-card__body strong {
  color: var(--strong);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.examinee-card__body span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.examinee-card__arrow {
  margin-left: auto;
  flex: none;
  color: var(--subtle);
  font-size: 18px;
  transition:
    color 0.15s,
    transform 0.15s;
}
.examinee-card:hover .examinee-card__arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* Guide cards */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.guide-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
.guide-card:hover {
  border-color: rgb(24 144 255 / 50%);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.guide-card__head {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}
.guide-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  font-size: 24px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 13px;
  transition: transform 0.18s;
}
.guide-card:hover .guide-card__icon {
  transform: scale(1.07);
}
.guide-card__head h3 {
  margin: 2px 0 5px;
  color: var(--strong);
  font-size: 17px;
  font-weight: 600;
}
.guide-card__head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.guide-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.guide-card__links a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 34px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.15s;
}
.guide-card__links a:hover {
  color: var(--primary-strong);
  background: var(--primary-soft);
  border-color: rgb(24 144 255 / 35%);
}

/* Scenario cards */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.scenario-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
.scenario-card:hover {
  color: var(--text);
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.scenario-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  font-size: 24px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 13px;
}
.scenario-card h3 {
  margin: 0 0 8px;
  color: var(--strong);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.scenario-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.scenario-card__more {
  margin-top: auto;
  padding-top: 16px;
  color: var(--link);
  font-size: 14px;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.faq-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.faq-item:hover {
  color: var(--text);
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
}
.faq-item__q {
  color: var(--strong);
  font-size: 14px;
  font-weight: 500;
}
.faq-item__group {
  flex: none;
  color: var(--muted);
  font-size: 14px;
}

/* CTA footer */
.home-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 72px;
  padding: 30px 34px;
  background: linear-gradient(120deg, var(--primary-soft), rgb(24 144 255 / 2%) 62%);
  border: 1px solid rgb(24 144 255 / 26%);
  border-radius: 16px;
}
.home-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex: none;
  font-size: 25px;
  color: var(--primary);
  background: var(--surface);
  border-radius: 13px;
  box-shadow: 0 6px 16px rgb(24 144 255 / 18%);
}
.home-cta__text strong {
  display: block;
  color: var(--strong);
  font-size: 16px;
  font-weight: 600;
}
.home-cta__text p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.home-cta__link {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: var(--primary-fill);
  border-radius: 10px;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.home-cta__link:hover {
  color: #fff;
  background: var(--primary-fill-hover);
  transform: translateY(-1px);
}

/* Search results */
.search-results {
  padding-top: 32px;
}
.result-count {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.search-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.search-item {
  display: block;
  padding: 20px 24px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.search-item:hover {
  color: var(--text);
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
}
.search-item__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--strong);
  font-size: 16px;
  font-weight: 600;
}
.search-item__group {
  flex: none;
  padding: 2px 11px;
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 400;
  background: var(--primary-soft);
  border-radius: 999px;
}
.search-item__summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.empty-results {
  padding: 60px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- Docs layout ---------- */
.docs {
  display: grid;
  grid-template-columns: var(--nav-width) minmax(0, 1fr);
  max-width: 1440px;
  min-height: calc(100vh - var(--help-header-height));
  margin: 0 auto;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.doc-nav {
  position: sticky;
  top: var(--help-header-height);
  height: calc(100vh - var(--help-header-height));
  padding: 22px 16px 28px;
  overflow: hidden;
  border-right: 1px solid var(--border);
}
.doc-nav__home {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: 9px;
}
.doc-nav__home:hover {
  background: var(--row-hover);
  color: var(--primary);
}
.doc-nav__home-icon {
  font-size: 18px;
}
.doc-nav__scroll {
  height: calc(100% - 54px);
  overflow-y: auto;
  padding-right: 2px;
}
.doc-nav__group {
  margin-bottom: 2px;
}
.doc-nav__group > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  color: var(--strong);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  border-radius: 9px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.doc-nav__group > summary::-webkit-details-marker {
  display: none;
}
.doc-nav__group > summary:hover {
  background: var(--row-hover);
}
.doc-nav__group-icon {
  font-size: 18px;
  color: var(--subtle);
  transition: color 0.15s;
}
.doc-nav__group-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doc-nav__chevron {
  font-size: 17px;
  color: var(--subtle);
  transform: rotate(0deg);
  transition: transform 0.22s ease;
}
.doc-nav__group[open] > summary .doc-nav__chevron {
  transform: rotate(90deg);
}
.doc-nav__group.is-current > summary {
  color: var(--primary);
  background: var(--primary-softer);
}
.doc-nav__group.is-current .doc-nav__group-icon {
  color: var(--primary);
}
.doc-nav__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}
.doc-nav__group[open] .doc-nav__panel {
  grid-template-rows: 1fr;
}
.doc-nav__items {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.doc-nav__link {
  position: relative;
  display: block;
  margin: 1px 0;
  padding: 8px 12px 8px 38px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    color 0.13s,
    background 0.13s;
}
.doc-nav__link:hover {
  color: var(--primary);
  background: var(--primary-softer);
}
.doc-nav__link.is-active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-soft);
}
.doc-nav__link.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--primary);
}

.doc-switcher {
  display: none;
  margin: 14px 20px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.doc-switcher > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: var(--strong);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.doc-switcher > summary::-webkit-details-marker {
  display: none;
}
.doc-switcher > summary .icon {
  font-size: 18px;
}
.doc-switcher__body {
  max-height: 60vh;
  padding: 0 10px 12px;
  overflow-y: auto;
  border-top: 1px solid var(--divider);
}
.doc-switcher__body .doc-nav__scroll {
  height: auto;
  overflow: visible;
}

.doc-error {
  padding: 56px;
  font-size: 15px;
  text-align: center;
}

.doc-content {
  min-width: 0;
  padding: 34px 48px 80px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:first-child {
  font-size: 0;
  font-weight: 500;
}
.breadcrumb a:first-child::after {
  content: '← 返回帮助首页';
  font-size: 14px;
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb span[aria-hidden] {
  color: var(--border);
}
.breadcrumb__current {
  color: var(--subtle);
}
.reader-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--toc-width);
  gap: 52px;
}
.reader-main {
  min-width: 0;
  max-width: 900px;
}

/* TOC */
.toc-details {
  display: none;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.toc-details > summary {
  color: var(--strong);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.toc-details[open] > summary {
  margin-bottom: 10px;
}
.page-toc {
  position: sticky;
  top: calc(var(--help-header-height) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--help-header-height) - 48px);
  padding-top: 6px;
  overflow: hidden;
}
.page-toc__title {
  padding: 0 12px 10px;
  color: var(--strong);
  font-size: 14px;
  font-weight: 600;
}
.page-toc__nav {
  max-height: calc(100vh - var(--help-header-height) - 100px);
  overflow-y: auto;
}
.toc-nav {
  display: flex;
  flex-direction: column;
}
.toc-nav a {
  position: relative;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  border-left: 2px solid var(--divider);
  transition:
    color 0.13s,
    border-color 0.13s;
}
.toc-nav a.toc-h3 {
  padding-left: 26px;
}
.toc-nav a:hover {
  color: var(--primary);
}
.toc-nav a.is-active {
  color: var(--primary);
  font-weight: 600;
  border-left-color: var(--primary);
}
.toc-details .toc-nav a {
  border-left: none;
}

/* ---------- Article typography ---------- */
article {
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
}
article > h1:first-child {
  margin: 0 0 24px;
  padding-bottom: 20px;
  color: var(--strong);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  border-bottom: 1px solid var(--divider);
}
article h2 {
  margin: 44px 0 16px;
  padding-top: 8px;
  color: var(--strong);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.5;
}
article h3 {
  margin: 30px 0 12px;
  color: var(--strong);
  font-size: 17px;
  font-weight: 600;
}
article h4 {
  margin: 22px 0 10px;
  color: var(--strong);
  font-size: 15px;
  font-weight: 600;
}
article p {
  margin: 12px 0;
}
article ul,
article ol {
  margin: 12px 0;
  padding-left: 24px;
}
article li {
  margin: 6px 0;
}
article li > ul,
article li > ol {
  margin: 5px 0;
}
article strong {
  color: var(--strong);
  font-weight: 600;
}
article hr {
  margin: 30px 0;
  border: none;
  border-top: 1px solid var(--divider);
}
article code {
  padding: 2px 7px;
  font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
  font-size: 14px;
  color: var(--link);
  background: var(--surface-2);
  border: 1px solid var(--divider);
  border-radius: 6px;
}
article pre {
  margin: 16px 0;
  padding: 18px 20px;
  overflow-x: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
article pre code {
  padding: 0;
  color: var(--text);
  background: none;
  border: none;
  font-size: 14px;
  line-height: 1.7;
}
article blockquote {
  margin: 16px 0;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 14px;
  background: var(--surface-2);
  border-left: 3px solid var(--subtle);
  border-radius: 0 10px 10px 0;
}
article blockquote p {
  margin: 7px 0;
}
article blockquote.callout {
  border-left-width: 4px;
}
.callout-tip {
  background: var(--tip-soft);
  border-left-color: var(--primary);
}
.callout-warning {
  background: var(--warning-soft);
  border-left-color: var(--warning);
}
.callout-danger {
  background: var(--danger-soft);
  border-left-color: var(--danger);
}
article table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 14px;
  display: block;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
article thead {
  background: var(--surface-2);
}
article th,
article td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}
article th {
  color: var(--strong);
  font-weight: 600;
  white-space: nowrap;
}
article tr:last-child td {
  border-bottom: none;
}
article tbody tr:hover {
  background: var(--row-hover);
}
article img {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
}
article a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}
.task-list-item {
  list-style: none;
  margin-left: -20px;
}
.task-list-item::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 9px;
  vertical-align: -2px;
  border: 1.5px solid var(--subtle);
  border-radius: 4px;
  background: var(--surface);
}
.task-list-item.is-checked::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-color: var(--primary-fill);
  background: var(--primary-fill);
}
.faq-question {
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}

/* Pager */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 52px 0 8px;
  padding-top: 28px;
  border-top: 1px solid var(--divider);
}
.pager__link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 20px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.pager__link:hover {
  color: var(--text);
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
}
.pager__link--next {
  text-align: right;
}
.pager__label {
  color: var(--muted);
  font-size: 14px;
}
.pager__title {
  color: var(--strong);
  font-size: 15px;
  font-weight: 600;
}
.pager__link--placeholder {
  visibility: hidden;
}

/* Related */
.related {
  margin-top: 40px;
}
.related > h2 {
  margin-bottom: 14px;
  font-size: 17px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.article-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 22px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.article-card:hover {
  color: var(--text);
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
}
.article-card .muted {
  color: var(--muted);
  font-size: 14px;
}
.article-card h3 {
  margin: 0;
  color: var(--strong);
  font-size: 15px;
  font-weight: 600;
}
.article-card__more {
  color: var(--link);
  font-size: 14px;
}

/* ---------- Embedded (iframe panel) ---------- */
html[data-embed='true'] {
  --help-header-height: 0px;
  height: 100%;
  overflow: hidden;
}
body.help-embedded {
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  background-image: none;
}
body.help-embedded .site-header,
body.help-embedded .doc-nav,
body.help-embedded .page-toc {
  display: none;
}
body.help-embedded .docs,
body.help-embedded .home-page {
  height: 100%;
  max-width: none;
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.help-embedded .docs {
  display: block;
  border: none;
}
body.help-embedded .doc-content {
  padding: 20px 24px 44px;
}
body.help-embedded .reader-layout {
  display: block;
}
body.help-embedded .toc-details {
  display: block;
  margin-bottom: 20px;
}
body.help-embedded .doc-switcher {
  display: block;
}
body.help-embedded .pager__link--placeholder {
  display: none;
}
body.help-embedded .home {
  height: 100%;
  max-width: none;
  padding: 16px 16px 40px;
}
body.help-embedded .hero {
  margin: -16px -16px 0;
  padding: 26px 20px 30px;
}
body.help-embedded .hero::after {
  display: none;
}
body.help-embedded .hero h1 {
  font-size: 23px;
}
body.help-embedded .hero__subtitle {
  margin-bottom: 20px;
  font-size: 14px;
}
body.help-embedded #help-search {
  height: 48px;
}
body.help-embedded .hero-actions {
  margin-top: 18px;
  gap: 10px;
}
body.help-embedded .hero-btn {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
body.help-embedded .hero-keywords {
  display: none;
}
body.help-embedded .home-toolbar {
  margin-top: 18px;
}
body.help-embedded .home-section {
  margin-top: 38px;
}
body.help-embedded #home-browse > .home-section:first-child {
  margin-top: 30px;
}
body.help-embedded .quicksteps,
body.help-embedded .examinee-steps,
body.help-embedded .guide-grid,
body.help-embedded .faq-grid,
body.help-embedded .cards {
  grid-template-columns: 1fr;
}
body.help-embedded .scenario-grid {
  grid-template-columns: 1fr;
}
body.help-embedded .pager {
  grid-template-columns: 1fr;
}
body.help-embedded .pager__link--next {
  text-align: left;
}
body.help-embedded .home-cta {
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}
body.help-embedded .home-cta__link {
  margin-left: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .hero h1 {
    font-size: 34px;
  }
  .quicksteps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-toc {
    display: none;
  }
  .reader-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .reader-main {
    max-width: none;
  }
  .toc-details {
    display: block;
  }
}
@media (max-width: 1024px) {
  .docs {
    display: block;
    border: none;
  }
  .doc-nav {
    display: none;
  }
  .doc-switcher {
    display: block;
  }
  .doc-content {
    padding: 24px 26px 60px;
  }
  .quicksteps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .examinee-steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .site-header {
    padding: 0 16px;
  }
  .hero {
    padding: 52px 18px 64px;
  }
  .hero h1 {
    font-size: 26px;
    letter-spacing: 0.5px;
  }
  .hero__subtitle {
    font-size: 14px;
  }
  .hero-keywords {
    display: none;
  }
  .home {
    padding: 0 14px 56px;
  }
  .home-section__head {
    flex-direction: column;
    gap: 4px;
  }
  .guide-grid,
  .faq-grid,
  .cards,
  .task-grid {
    grid-template-columns: 1fr;
  }
  .pager {
    grid-template-columns: 1fr;
  }
  .pager__link--next {
    text-align: left;
  }
  .home-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .home-cta__link {
    margin-left: 0;
  }
  .doc-content {
    padding: 18px 16px 48px;
  }
  article > h1:first-child {
    font-size: 24px;
  }
}
