@charset "UTF-8";

:root {
  color-scheme: light;
  --canvas: #ffffff;
  --sidebar: #f7f8f5;
  --ink: #28322e;
  --muted: #68736b;
  --subtle: #65725e;
  --line: #e8ece6;
  --accent: #306d58;
  --accent-soft: #edf5ef;
  --accent-hover: #245440;
  --amber: #966825;
  --amber-soft: #fcf4e5;
  --sidebar-width: 240px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #8ab9a3;
  outline-offset: 4px;
}
::selection { color: #193c2e; background: #dcece2; }

.site-shell { min-height: 100vh; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 100; padding: 10px 16px; border-radius: 6px; background: var(--accent); color: white; }
.skip-link:focus { top: 12px; color: white; }
.brand { display: block; text-decoration: none; }
.brand-title, .brand-caption { display: block; }
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-version { color: var(--muted); font-size: 11px; }
.search-icon { display: none; }
.intro-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.intro-card { display: flex; align-items: flex-start; gap: 12px; text-decoration: none; }
.intro-card:hover { border-color: #bfd5c5; background: #fbfdf9; }
.intro-card .card-icon { flex: 0 0 25px; margin-top: 2px; }
.checklist-item > span { display: none; }
.step-body { font-size: 14px; }
.step-body h3 { font-size: 14px; }
.section-summary { font-size: 14px; }
.faq-question { font-size: 14px; }
.faq-answer { font-size: 13px; }
.hero-note .card-icon { flex: 0 0 25px; margin: 1px 0 0; }
.footer-separator { padding: 0 5px; }
dialog { width: min(420px, calc(100vw - 32px)); padding: 26px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; box-shadow: 0 20px 80px #17281d26; }
dialog::backdrop { background: #17281d55; }
dialog h2 { margin: 0 0 10px; font-size: 20px; }
dialog p { color: var(--muted); font-size: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 24px; }
.noscript-note { position: fixed; z-index: 100; inset: 20px 20px auto; padding: 20px; border: 1px solid var(--line); background: white; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  padding: 31px 20px 21px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 13px;
  border: 1px solid #cfded4;
  border-radius: 10px;
  background: #eaf0e9;
  color: var(--accent);
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 19px;
  font-weight: 700;
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-title { margin: 0; color: #263b2e; font-size: 16px; font-weight: 650; letter-spacing: .035em; }
.brand-caption { margin: 4px 0 0; color: var(--muted); font-size: 11px; letter-spacing: .035em; }
.sidebar-label { margin: 38px 10px 10px; color: var(--subtle); font-size: 10px; font-weight: 650; letter-spacing: .13em; }
.chapter-nav { display: grid; gap: 4px; }
.chapter-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 41px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #647169;
  font-size: 12px;
  line-height: 1.65;
  text-decoration: none;
  transition: color .15s, background .15s;
}
.chapter-link:hover { background: #edf0e9; color: #34483c; }
.chapter-index { flex: 0 0 21px; color: #65725e; font-size: 10px; font-variant-numeric: tabular-nums; }
.chapter-link.is-active { border-color: #dce8dd; background: #e9f0e7; color: #2e654b; font-weight: 650; }
.chapter-link.is-active .chapter-index { color: #598769; }
.chapter-link[aria-current="true"], .chapter-link[aria-current="location"] { color: var(--accent); }
.sidebar-footer { margin-top: auto; padding: 32px 10px 0; }
.sidebar-progress { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; color: var(--muted); font-size: 10px; }
.progress-track { height: 4px; overflow: hidden; border-radius: 99px; background: #e3e8df; }
.progress-fill { width: var(--progress, 0%); height: 100%; border-radius: inherit; background: #6a9276; transition: width .25s ease; }
.sidebar-footer p { margin: 14px 0 0; color: #68736b; font-size: 10px; line-height: 1.7; }
.sidebar-footer .link-button { margin-top: 10px; padding: 0; font-size: 10px; }

.main { margin-left: var(--sidebar-width); min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 65px;
  padding: 0 37px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}
.breadcrumb { display: flex; align-items: center; gap: 9px; overflow: hidden; color: #68736b; font-size: 11px; white-space: nowrap; }
.breadcrumb a { color: #68736b; text-decoration: none; }
.breadcrumb strong, .breadcrumb [aria-current] { overflow: hidden; color: #58655c; font-weight: 500; text-overflow: ellipsis; }
.topbar-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 33px;
  min-height: 33px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: #67736a;
  font-size: 11px;
  line-height: 1.3;
  text-decoration: none;
}
.icon-button:hover { border-color: #cad8cc; background: #f7f9f5; color: var(--accent); }
.icon-button svg { width: 15px; height: 15px; }
.mobile-menu-button { display: none; }

.page { width: calc(100% - 80px); max-width: 1000px; margin: 0 auto; padding: 48px 0 28px; }
.page-header { padding-bottom: 31px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 15px; color: #647458; font-size: 10px; font-weight: 550; letter-spacing: .13em; }
.status-dot { display: inline-block; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #77977a; }
.page-title { margin: 0 0 14px; color: #243e2d; font-family: Georgia, "Songti SC", "SimSun", serif; font-size: clamp(30px, 3vw, 42px); font-weight: 600; line-height: 1.38; letter-spacing: .015em; }
.page-subtitle { max-width: 650px; margin: 0 0 22px; color: #68736b; font-size: 13px; line-height: 1.9; }
.page-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #68736b; font-size: 10px; }
.meta-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fbfcf9; line-height: 1.5; }
.meta-pill svg { width: 11px; height: 11px; }
.draft-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid #f0e2c7; border-radius: 4px; background: var(--amber-soft); color: var(--amber); font-size: 10px; line-height: 1.5; }
.hero-note { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 26px; padding: 15px 18px; border: 1px solid #e6ede3; border-radius: 6px; background: #f7f9f4; color: #647458; font-size: 11px; line-height: 1.85; }
.hero-note svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 3px; color: #6e8a6d; }
.hero-note p { margin: 0; }
.hero-note strong { color: #51644e; font-weight: 600; }

.search-wrap { position: relative; margin-bottom: 32px; }
.search-wrap::before { position: absolute; top: 50%; left: 15px; color: #647458; content: "⌕"; font-size: 23px; line-height: 1; transform: translateY(-55%); pointer-events: none; }
.search-input { width: 100%; height: 44px; padding: 9px 72px 9px 42px; border: 1px solid #e2e8de; border-radius: 6px; background: #fcfdfb; color: #435744; font-size: 12px; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
.search-input::placeholder { color: #68736b; }
.search-input:focus { border-color: #83a58c; background: #fff; outline: none; box-shadow: 0 0 0 3px #edf3eb; }
.search-input:focus-visible { outline: 2px solid #8ab9a3; outline-offset: 2px; }
.search-shortcut { position: absolute; top: 50%; right: 12px; padding: 0 6px; border: 1px solid #e5e9e1; border-radius: 4px; color: #68736b; font-size: 9px; line-height: 20px; transform: translateY(-50%); pointer-events: none; }
.search-results-label { margin: -16px 0 24px; color: var(--muted); font-size: 11px; }

.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 232px; align-items: start; gap: 40px; }
.article { min-width: 0; }
.article p { margin: 0 0 14px; }
.article ul:not([class]), .article ol:not([class]) { padding-left: 21px; }
.article li:not([class]) { margin: 5px 0; }
.article strong { color: #455941; font-weight: 600; }
.article code { padding: 2px 5px; border-radius: 4px; background: #f0f3ed; color: #536c4e; font-size: .9em; overflow-wrap: anywhere; }
.article a { overflow-wrap: anywhere; }
.intro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 34px; }
.intro-card { min-width: 0; padding: 16px 17px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; margin-bottom: 8px; border-radius: 5px; background: #f1f5ed; color: #7c9370; font-size: 13px; }
.card-icon svg { width: 14px; height: 14px; }
.intro-card h2, .intro-card h3 { margin: 0 0 5px; color: #4b5d44; font-size: 12px; font-weight: 600; }
.intro-card p { margin: 0; color: #65725e; font-size: 11px; line-height: 1.8; }
.chapter-section { margin: 0 0 35px; padding: 31px 0 0; border-top: 1px solid var(--line); scroll-margin-top: 89px; }
.section-label { margin: 0 0 7px; color: #647458; font-size: 9px; font-weight: 600; line-height: 1.6; letter-spacing: .13em; }
.section-heading { margin: 0 0 9px; color: #364e32; font-size: 20px; font-weight: 600; line-height: 1.55; letter-spacing: .01em; }
.section-summary { margin-bottom: 21px !important; color: #65725e; font-size: 12px; line-height: 1.9; }
.step-list { display: grid; gap: 19px; margin: 0; padding: 0; list-style: none; }
.step-item { display: flex; align-items: flex-start; gap: 13px; }
.step-number { display: grid; flex: 0 0 23px; place-items: center; width: 23px; height: 23px; margin-top: 2px; border: 1px solid #dce7d8; border-radius: 50%; background: #f2f6ed; color: #5f764b; font-size: 10px; font-weight: 600; line-height: 1; }
.step-body { min-width: 0; color: #65725e; font-size: 12px; line-height: 1.95; }
.step-body h3, .step-body h4 { margin: 0 0 5px; color: #4c6341; font-size: 13px; font-weight: 600; line-height: 1.8; }
.step-body p:last-child { margin-bottom: 0; }
.callout { margin: 21px 0 0; padding: 14px 17px; border: 1px solid #e3ecdf; border-left: 3px solid #9bb48a; border-radius: 0 5px 5px 0; background: #f6f9f1; color: #647458; font-size: 11px; line-height: 1.9; }
.callout-title { margin: 0 0 4px; color: #668155; font-size: 11px; font-weight: 650; }
.callout p:last-child { margin-bottom: 0; }
.chapter-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding-top: 14px; border-top: 1px dashed #e5eadd; }
.completion-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 4px 0; border: 0; background: transparent; color: #647458; font-size: 10px; line-height: 1.6; text-align: left; }
.completion-toggle::before { display: inline-grid; flex: 0 0 13px; place-items: center; width: 13px; height: 13px; border: 1px solid #cad9be; border-radius: 3px; content: ""; font-size: 9px; line-height: 1; }
.completion-toggle[aria-pressed="true"] { color: #598342; }
.completion-toggle[aria-pressed="true"]::before { border-color: #799f5f; background: #799f5f; color: white; content: "✓"; }
.copy-link { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 4px 0; border: 0; background: transparent; color: #647458; font-size: 10px; text-decoration: none; }
.copy-link svg { width: 12px; height: 12px; }
.copy-link:hover { color: var(--accent); }
.link-button { border: 0; background: transparent; color: #5f764b; font-size: 11px; text-decoration: underline; text-decoration-color: #b7c9ac; text-underline-offset: 3px; }
.link-button:hover { color: #456737; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 14px; border: 1px solid #416c35; border-radius: 5px; background: #416c35; color: white; font-size: 11px; font-weight: 500; line-height: 1.65; text-decoration: none; transition: background .15s, border-color .15s; }
.primary-button:hover { border-color: #335729; background: #335729; color: white; }
.primary-button svg { width: 13px; height: 13px; }

.reading-aside { position: sticky; top: 88px; display: grid; gap: 18px; }
.aside-card { padding: 17px 17px 18px; border: 1px solid #e5ebdf; border-radius: 6px; background: #fcfdf9; }
.aside-title { display: flex; align-items: center; gap: 7px; margin: 0 0 11px; color: #647458; font-size: 11px; font-weight: 600; }
.aside-title svg { width: 13px; height: 13px; }
.aside-card p { margin: 0; color: #65725e; font-size: 10px; line-height: 1.95; }
.aside-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.aside-list li { color: #65725e; font-size: 10px; line-height: 1.9; }
.aside-list a { color: #647458; text-decoration: none; }
.aside-list a:hover { color: #536f40; }
.aside-list a.is-active { color: #536f40; font-weight: 600; }
.checklist { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.checklist-item { display: flex; align-items: flex-start; gap: 7px; color: #65725e; font-size: 10px; line-height: 1.8; }
.checklist-item::before { flex: 0 0 auto; margin-top: 1px; color: #7fa464; content: "✓"; font-size: 11px; }
.external-link-card { padding: 16px 17px 18px; border: 1px solid #e0e9d8; border-radius: 6px; background: #f5f8ed; }
.external-link-card h3 { margin: 0 0 8px; color: #5f7b48; font-size: 12px; font-weight: 600; }
.external-link-card p { margin: 0 0 13px; color: #647458; font-size: 10px; line-height: 1.9; }
.external-link-card .primary-button { width: 100%; }
.config-note { margin-top: 10px !important; color: #756b48 !important; font-size: 9px !important; overflow-wrap: anywhere; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { position: relative; padding: 15px 27px 15px 0; color: #617651; font-size: 12px; font-weight: 500; line-height: 1.85; list-style: none; cursor: pointer; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { position: absolute; right: 2px; top: 17px; color: #647458; content: "+"; font-size: 16px; line-height: 1; }
.faq-item[open] .faq-question::after { content: "−"; }
.faq-question:hover { color: #3b602a; }
.faq-answer { padding: 0 20px 17px 0; color: #65725e; font-size: 11px; line-height: 1.95; }
.faq-answer p:last-child { margin-bottom: 0; }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 21px; border-top: 1px solid var(--line); color: #68736b; font-size: 9px; line-height: 1.8; }
.footer p { margin: 0; }
.footer a { color: #647458; text-decoration: none; }
.empty-state { padding: 36px 22px; border: 1px dashed #dce7d3; border-radius: 6px; background: #fafcf7; color: #647458; text-align: center; }
.empty-state h2, .empty-state h3 { margin: 0 0 9px; color: #5d774b; font-size: 17px; font-weight: 600; }
.empty-state p { margin: 0; font-size: 12px; }
.empty-state .link-button { margin-top: 11px; }
.toast { position: fixed; z-index: 80; right: 28px; bottom: 27px; max-width: calc(100% - 40px); padding: 10px 16px; border: 1px solid #dce8d6; border-radius: 6px; background: #f4f9ef; color: #526e40; box-shadow: 0 5px 24px rgba(47, 63, 36, .08); font-size: 12px; line-height: 1.8; }
.mobile-scrim { display: none; }

.intro-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-body, .section-summary { font-size: 14px; }
.step-body h3, .faq-question { font-size: 14px; }
.faq-answer { font-size: 13px; }

@media (min-width: 1600px) {
  .page { padding-top: 59px; }
}

@media (max-width: 1100px) {
  .page { width: calc(100% - 64px); }
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .reading-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .external-link-card { grid-column: 1 / -1; }
  .external-link-card .primary-button { width: auto; }
  .topbar { padding-right: 30px; padding-left: 30px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  body.nav-open { overflow: hidden; }
  .sidebar { z-index: 60; width: min(280px, 85vw); padding-top: 29px; transform: translateX(-100%); transition: transform .22s ease; }
  body.nav-open .sidebar { transform: translateX(0); }
  .main { margin-left: 0; }
  .topbar { height: 57px; padding: 0 20px; gap: 12px; }
  .breadcrumb { flex: 1; font-size: 10px; gap: 7px; }
  .topbar-actions { gap: 7px; }
  .mobile-menu-button { display: inline-flex; flex: 0 0 auto; width: 32px; min-width: 32px; padding: 6px; border-color: transparent; }
  .mobile-menu-button svg { width: 18px; height: 18px; }
  .topbar-actions .icon-button { min-height: 31px; padding: 5px 7px; font-size: 10px; }
  .page { width: calc(100% - 40px); padding-top: 31px; }
  .page-header { padding-bottom: 25px; }
  .eyebrow { margin-bottom: 13px; font-size: 9px; }
  .page-title { margin-bottom: 13px; font-size: 31px; }
  .page-subtitle { margin-bottom: 18px; font-size: 12px; }
  .page-meta { font-size: 9px; gap: 6px; }
  .hero-note { padding: 13px 14px; margin-bottom: 20px; }
  .search-wrap { margin-bottom: 26px; }
  .search-input { height: 43px; }
  .intro-grid { gap: 10px; margin-bottom: 28px; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-card { padding: 14px; }
  .chapter-section { margin-bottom: 29px; padding-top: 26px; scroll-margin-top: 78px; }
  .section-heading { font-size: 19px; }
  .step-item { gap: 11px; }
  .chapter-footer { margin-top: 19px; }
  .reading-aside { gap: 12px; }
  .mobile-scrim { position: fixed; inset: 0; z-index: 50; border: 0; background: rgba(32, 43, 31, .28); }
  body.nav-open .mobile-scrim:not([hidden]) { display: block; }
  .toast { right: 20px; bottom: 20px; }
}

@media (max-width: 420px) {
  .page, .topbar { padding-left: 0; padding-right: 0; }
  .topbar { padding: 0 16px; }
  .page { width: calc(100% - 32px); }
  .page-title { font-size: 28px; }
  .print-label, .topbar-version, .topbar-actions .status-dot { display: none; }
  .intro-grid, .reading-aside { grid-template-columns: minmax(0, 1fr); }
  .external-link-card { grid-column: auto; }
  .intro-card { display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: start; gap: 0 11px; padding: 14px; }
  .intro-card .card-icon { grid-row: span 2; margin-top: 2px; margin-bottom: 0; }
  .intro-card p { grid-column: 2; }
  .search-shortcut { display: none; }
  .search-input { padding-right: 15px; }
  .footer { display: block; }
  .footer p + p { margin-top: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .sidebar, .topbar, .search-wrap, .reading-aside, .chapter-footer, .toast, .mobile-scrim { display: none !important; }
  .main { margin-left: 0; }
  .page { width: 100%; max-width: none; padding: 0; }
  .page-grid { display: block; }
  .page-title { color: #000; }
  .chapter-section { break-inside: avoid; }
  .faq-answer { display: block; }
  a { color: inherit; }
}
