:root {
  color-scheme: light;
  --ink: #173238;
  --ink-soft: #456168;
  --muted: #63777a;
  --brand: #0d5555;
  --brand-dark: #0e3538;
  --accent: #ce6b43;
  --accent-soft: #fff0e9;
  --paper: #ffffff;
  --page: #f5f6f2;
  --line: #dce5e1;
  --line-strong: #c6d5ce;
  --shadow: 0 18px 46px rgba(23, 50, 56, .075);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--page); font: 16px/1.72 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible, .table-scroll:focus-visible { outline: 3px solid #67b8ac; outline-offset: 3px; }
::selection { background: #cae9dc; color: var(--ink); }

.reading-progress { position: fixed; inset: 0 auto auto 0; z-index: 50; height: 3px; width: 0; background: var(--accent); transition: width .15s linear; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand-dark); color: white; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 30; height: 72px; color: #fff; background: #0f2c32; border-bottom: 1px solid rgba(255,255,255,.12); }
.header-inner { max-width: 1600px; height: 100%; margin: auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.wordmark-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1.5px solid #c3e8df; border-radius: 10px; color: #d9f2e9; font-weight: 800; letter-spacing: -.08em; font-size: 15px; line-height: 1; }
.wordmark-text { display: flex; flex-direction: column; font-size: 15px; font-weight: 750; line-height: 1.25; letter-spacing: .03em; }
.wordmark-sub { color: #a9c8c5; font-size: 11px; font-weight: 500; margin-top: 2px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions button { min-height: 38px; border-radius: 8px; padding: 5px 13px; white-space: nowrap; font-size: 13px; font-weight: 650; }
.header-search-button { color: #d9eeeb; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.header-search-button:hover { background: rgba(255,255,255,.16); }
.header-search-button kbd { display: inline-block; margin-left: 14px; min-width: 17px; line-height: 17px; border: 1px solid rgba(255,255,255,.35); border-radius: 3px; font-size: 11px; }
.share-button { color: #113c3d; background: #d8eee7; border: 1px solid #d8eee7; }
.share-button:hover { background: #f1faf4; }

.page-layout { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: 280px minmax(0,1fr); align-items: stretch; }
.sidebar { min-height: calc(100vh - 72px); padding: 0 14px 30px 24px; border-right: 1px solid var(--line); }
.sidebar-inner { position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow: auto; scrollbar-width: thin; padding-right: 6px; }
.sidebar-kicker { padding: 3px 10px 12px; font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--muted); }
.chapter-nav { display: grid; gap: 2px; }
.chapter-nav a { display: flex; align-items: start; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink-soft); text-decoration: none; font-size: 13px; line-height: 1.4; transition: background .15s,color .15s; }
.chapter-nav a:hover { background: #e9f1eb; color: var(--brand-dark); }
.chapter-nav a.active { color: #fff; background: var(--brand); font-weight: 750; }
.nav-num { flex: 0 0 22px; opacity: .65; font-size: 11px; font-weight: 750; padding-top: 1px; }
.nav-title { flex: 1; }
.nav-count { align-self: center; min-width: 22px; border-radius: 5px; background: rgba(18,74,73,.08); color: inherit; font-size: 11px; line-height: 20px; text-align: center; }
.active .nav-count { background: rgba(255,255,255,.18); }
.sidebar-tip { margin: 24px 8px 0; padding: 14px; color: #31504b; background: #e8efe8; border-radius: 10px; font-size: 12px; line-height: 1.6; }
.sidebar-tip strong { display: block; font-size: 12px; }
.sidebar-tip p { margin: 5px 0 0; }

.main-content { min-width: 0; padding: 28px clamp(24px, 4.4vw, 78px) 80px; }
.content-shell { width: min(100%, 1000px); margin: 0 auto; }
.hero { position: relative; overflow: visible; padding: 42px clamp(26px,4.5vw,58px) 33px; color: #f8fffa; background: radial-gradient(circle at 87% 2%, rgba(100,165,138,.25), transparent 39%), linear-gradient(142deg,#0d3439,#124b4a 75%,#1b5e52); border-radius: 18px; box-shadow: var(--shadow); }
.hero-topline { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.eyebrow { color: #c8e6d4; text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.hero-edition { color: #b8d4cb; font-size: 12px; }
.hero h1 { max-width: 700px; margin: 15px 0 13px; font-size: clamp(35px,4.4vw,57px); line-height: 1.22; letter-spacing: -.045em; font-weight: 800; }
.hero h1 em { color: #e2eac7; font-style: normal; }
.hero-subtitle { margin: 0; color: #d8e8df; font-size: 15px; }
.hero-stats { display: flex; margin-top: 28px; padding-top: 21px; border-top: 1px solid rgba(255,255,255,.2); gap: 36px; }
.hero-stats div { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.hero-stats strong { font-family: Georgia,serif; font-size: 24px; line-height: 1; font-weight: 650; }
.hero-stats span { color: #c3dbd3; font-size: 12px; }
.hero-search { margin-top: 29px; }
.hero-search label { display: block; margin-bottom: 9px; color: #f3fbf6; font-size: 14px; font-weight: 750; }
.search-box { position: relative; }
.search-box input { display: block; width: 100%; height: 54px; border: 1px solid transparent; border-radius: 10px; padding: 0 78px 0 18px; color: var(--ink); background: #fff; font-size: 15px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.search-box input::placeholder { color: #81908c; opacity: 1; }
.search-box input:focus { outline: 3px solid #8acbb8; outline-offset: 2px; }
.search-box button { position: absolute; right: 7px; top: 7px; height: 40px; border: 0; border-radius: 6px; color: var(--brand); background: #edf5ef; padding: 0 12px; font-size: 12px; }
.search-results { position: absolute; z-index: 20; left: clamp(26px,4.5vw,58px); right: clamp(26px,4.5vw,58px); max-height: min(56vh,480px); overflow: auto; margin-top: 7px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 20px 45px rgba(8,34,36,.22); }
.result-header { padding: 10px 15px; color: var(--muted); background: #f7f9f6; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.result-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 47px; border: 0; border-bottom: 1px solid #edf1ec; padding: 9px 15px; text-align: left; color: var(--ink); background: #fff; font-size: 14px; line-height: 1.4; }
.result-item:hover, .result-item:focus-visible { background: #eef6f0; }
.result-code { color: var(--accent); font-weight: 800; font-size: 12px; min-width: 34px; }
.result-empty { margin: 0; padding: 20px; color: var(--muted); font-size: 14px; }
.hero-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 18px; color: #bad3ca; font-size: 11px; }
.mobile-toc { display: none; }
.source-info { margin: 15px 2px 0; color: var(--muted); font-size: 12px; }
.source-info > summary { width: fit-content; min-height: 32px; cursor: pointer; color: var(--brand); font-weight: 700; }
.source-info > div { padding: 9px 14px; border-left: 2px solid var(--line-strong); }
.source-info p { margin: 3px 0; }

.document { padding: 0 0 15px; }
.chapter { padding: 34px clamp(16px,2.9vw,33px) 37px; margin-top: 18px; background: var(--paper); border: 1px solid #e7ece7; border-radius: 14px; box-shadow: 0 6px 26px rgba(29,57,55,.035); scroll-margin-top: 94px; }
.chapter-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 19px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.chapter-index { width: 100%; color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.chapter h2 { margin: 0; font-size: clamp(23px,2.25vw,28px); line-height: 1.3; letter-spacing: -.035em; }
.chapter-scenario-count { color: var(--muted); font-size: 12px; }
.chapter p { overflow-wrap: anywhere; }
.body-text { margin: 12px 0; color: var(--ink-soft); }
.subheading { margin: 27px 0 13px; color: var(--brand-dark); font-size: 18px; line-height: 1.4; }
.minor-heading { margin: 19px 0 9px; font-size: 16px; }
.bullet-text { position: relative; margin: 7px 0; padding-left: 17px; color: var(--ink-soft); }
.bullet-text::before { content: ""; position: absolute; left: 2px; top: .82em; width: 5px; height: 5px; border-radius: 50%; background: #71a78c; }
.source-note { margin: 22px 0 0; padding: 10px 13px; border-left: 3px solid #a6c8b5; color: var(--muted); background: #f7faf7; font-size: 12px; }
.table-scroll { max-width: 100%; margin: 15px 0 25px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; scrollbar-width: thin; }
table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 13px; line-height: 1.55; }
th { position: sticky; top: 0; color: #194547; background: #eaf4ec; font-weight: 800; text-align: left; }
th,td { min-width: 112px; padding: 11px 13px; vertical-align: top; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
td:last-child, th:last-child { border-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fbfcfa; }

.scenario { margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; scroll-margin-top: 100px; transition: border-color .18s, box-shadow .18s; }
.scenario:hover { border-color: #acc9ba; }
.scenario[open] { border-color: #9dbeb0; box-shadow: 0 8px 26px rgba(24,65,60,.07); }
.scenario > summary { display: flex; align-items: center; gap: 14px; min-height: 57px; padding: 11px 16px; cursor: pointer; list-style: none; font-weight: 740; line-height: 1.4; }
.scenario > summary::-webkit-details-marker { display: none; }
.scenario-code { flex: 0 0 auto; color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .035em; }
.scenario-name { flex: 1; }
.scenario-chevron { flex: 0 0 auto; width: 9px; height: 9px; border-right: 2px solid #61817a; border-bottom: 2px solid #61817a; transform: rotate(45deg); transition: transform .16s; margin-top: -4px; }
.scenario[open] .scenario-chevron { transform: rotate(225deg); margin-top: 3px; }
.scenario-body { padding: 4px 17px 18px; border-top: 1px solid #e9efea; }
.scenario-meta { display: grid; grid-template-columns: 60px 1fr; gap: 10px; margin: 11px 0; color: var(--ink-soft); font-size: 14px; }
.scenario-meta strong { color: var(--brand); font-size: 13px; white-space: nowrap; }
.scenario-warning { display: grid; grid-template-columns: 76px 1fr; gap: 10px; margin: 13px 0 0; padding: 12px; color: #805545; background: #fff5f0; border-radius: 7px; font-size: 13px; }
.scenario-warning strong { color: #a24b34; white-space: nowrap; }
.script-card { margin: 10px 0; padding: 13px 15px 15px; border: 1px solid #d6e7dc; border-radius: 8px; background: #f5faf6; }
.script-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.script-label { color: #1f6b57; font-size: 12px; font-weight: 850; }
.copy-script { min-height: 36px; padding: 5px 12px; border: 1px solid #a8caba; border-radius: 6px; color: var(--brand); background: #fff; font-size: 12px; font-weight: 750; white-space: nowrap; }
.copy-script:hover { background: #e3f3e9; border-color: #719e88; }
.script-text { margin: 6px 0 0; color: #25494a; font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.document > .script-card { margin: 9px 0; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 25px 4px 0; color: var(--muted); font-size: 12px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--brand); font-weight: 700; text-underline-offset: 3px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100vw - 30px); padding: 11px 18px; border-radius: 9px; color: white; background: #153a3b; box-shadow: 0 12px 30px rgba(0,0,0,.2); font-size: 13px; text-align: center; }

@media (max-width: 1050px) {
  .page-layout { grid-template-columns: 238px minmax(0,1fr); }
  .sidebar { padding-left: 14px; }
  .main-content { padding-left: 27px; padding-right: 27px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  body { font-size: 15px; }
  .site-header { height: 60px; }
  .header-inner { padding: 0 16px; }
  .wordmark-mark { width: 32px; height: 32px; font-size: 13px; }
  .wordmark-text { font-size: 13px; }
  .wordmark-sub { font-size: 10px; }
  .header-search-button { display: none; }
  .header-actions button { min-height: 44px; padding: 5px 10px; font-size: 12px; }
  .page-layout { display: block; }
  .sidebar { display: none; }
  .main-content { padding: 12px 12px 56px; }
  .hero { padding: 29px 21px 25px; border-radius: 12px; }
  .hero h1 { font-size: clamp(32px,8.8vw,43px); margin-top: 13px; }
  .hero-subtitle { font-size: 14px; }
  .hero-stats { gap: 17px; margin-top: 24px; padding-top: 16px; }
  .hero-stats div { display: block; }
  .hero-stats strong { display: block; font-size: 20px; }
  .hero-stats span { font-size: 10px; }
  .hero-search { margin-top: 22px; }
  .search-box input { height: 51px; font-size: 14px; }
  .search-results { left: 21px; right: 21px; }
  .hero-caption { line-height: 1.5; }
  .mobile-toc { display: block; margin-top: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
  .mobile-toc > summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 8px 15px; font-size: 14px; font-weight: 750; cursor: pointer; list-style: none; }
  .mobile-toc > summary::-webkit-details-marker { display: none; }
  .mobile-toc summary span { color: var(--muted); font-size: 12px; font-weight: 500; }
  .mobile-toc nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; padding: 5px 11px 13px; border-top: 1px solid var(--line); }
  .mobile-toc nav a { display: flex; align-items: baseline; gap: 7px; min-height: 44px; padding: 7px 4px; text-decoration: none; color: var(--ink); font-size: 12px; line-height: 1.4; }
  .mobile-toc nav a span { color: var(--accent); font-size: 10px; font-weight: 800; }
  .chapter { margin-top: 12px; padding: 24px 17px 27px; border-radius: 11px; scroll-margin-top: 70px; }
  .chapter h2 { font-size: 23px; }
  .body-text, .bullet-text { font-size: 14px; line-height: 1.75; }
  .scenario > summary { min-height: 55px; padding: 10px 13px; gap: 11px; font-size: 14px; }
  .scenario-body { padding: 3px 11px 14px; }
  .scenario-meta { display: block; font-size: 13px; }
  .scenario-meta strong { margin-right: 9px; }
  .scenario-warning { display: block; font-size: 12px; }
  .scenario-warning strong { display: block; margin-bottom: 4px; }
  .script-card { padding: 10px 11px 12px; }
  .script-text { font-size: 13px; }
  .copy-script { min-height: 44px; }
  .table-scroll { margin-left: -3px; margin-right: -3px; }
  .site-footer { padding: 23px 6px 0; }
}
@media (max-width: 370px) {
  .wordmark-sub { display: none; }
  .mobile-toc nav { grid-template-columns: 1fr; }
  .hero-stats { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  body { background: white; color: black; font-size: 11pt; }
  .site-header, .sidebar, .hero-search, .mobile-toc, .reading-progress, .copy-script, .toast, .share-button { display: none !important; }
  .page-layout, .main-content, .content-shell { display: block; width: 100%; max-width: none; padding: 0; }
  .hero { color: black; background: white; box-shadow: none; padding: 0 0 12px; }
  .hero h1, .hero h1 em, .hero-subtitle, .hero-stats span, .hero-caption, .eyebrow, .hero-edition { color: black; }
  .chapter { box-shadow: none; break-inside: auto; border: 0; margin: 10px 0; padding: 0; }
  .chapter-heading { break-after: avoid; }
  .scenario { break-inside: avoid; }
  .scenario:not([open]) .scenario-body { display: block; }
  .table-scroll { overflow: visible; }
  table { min-width: 0; font-size: 9pt; }
  th,td { padding: 4px; }
}
