:root {
  color-scheme: light;
  --ink: #243134; --muted: #667577; --paper: #fff; --ground: #f4f7f8;
  --green: #176b58; --sidebar: #243e3b; --term: #226c91; --hover: #a56a13;
  --line: #dce5e6; --soft: #eaf3ef;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--ground); }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid #e0ac44; outline-offset: 4px; }
[hidden] { display: none !important; }
.app-shell { height: 100vh; display: grid; grid-template-columns: 228px minmax(0, 1fr); }
.sidebar { background: var(--sidebar); color: #edf5ef; padding: 32px 18px 18px; display: flex; flex-direction: column; z-index: 30; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 11px; padding: 0 9px; font-size: 18px; font-weight: 600; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand svg path { fill: #c8dfd1; opacity: .86; }
.brand svg path:nth-child(2) { fill: #70af95; }
.brand svg .brand-stroke { stroke: #243e3b; stroke-width: 2; fill: none; }
.brand small { display: block; font-size: 11px; font-weight: 400; color: #b6cfbf; margin-top: 6px; }
.sidebar-label { color: #9db8b0; font-size: 12px; margin: 46px 13px 15px; }
nav#navigation { display: grid; gap: 7px; }
.nav-item { width: 100%; text-align: left; border: 0; background: transparent; color: #d2e2da; display: flex; align-items: center; gap: 12px; padding: 12px 13px; border-radius: 8px; font-size: 14px; }
.nav-item svg { width: 19px; height: 19px; opacity: .8; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { background: #35514b; }
.nav-item[aria-current="page"] { color: #fff; background: #3c6153; box-shadow: inset 3px 0 #bcdab0; }
.nav-item[aria-current="page"] svg { opacity: 1; }
.sidebar-note { margin-top: auto; padding: 26px 10px 24px; display: flex; gap: 10px; align-items: flex-start; color: #d4e4da; font-size: 12px; line-height: 1.5; }
.sidebar-note small { display: block; color: #a6c1b5; font-size: 10px; margin-top: 5px; }
.offline-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #9dd2af; margin-top: 6px; flex: none; }
.sidebar-bottom { border-top: 1px solid #456057; padding: 15px 8px 0; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #a4bcb3; }
.sidebar-bottom button { font-size: 11px; padding: 0; border: 0; background: transparent; color: #cce0d1; }
.workspace { min-width: 0; height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 65px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); flex: none; background: #fff; gap: 16px; }
.breadcrumb { color: var(--muted); display: flex; align-items: center; gap: 12px; font-size: 12px; }
.breadcrumb span:last-child { color: var(--ink); }
.crumb-divider { color: #b4c1c2; }
.quick-search { padding: 8px 11px; border: 1px solid #dce5e6; background: #f7f9fa; color: #647174; border-radius: 6px; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.quick-search>span { font-size: 19px; }
kbd { font-family: inherit; font-size: 10px; padding: 1px 5px; color: #7a8588; background: #fff; border: 1px solid #dce3e5; border-radius: 3px; }
.menu-toggle { display: none; border: 0; color: var(--green); background: transparent; font-size: 13px; }
#reader { overflow: auto; flex: 1; outline: none; scroll-behavior: smooth; }
.reading-layout { width: min(1120px, 100%); padding: 48px 44px 64px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 750px) 148px; gap: 48px; }
#article { min-width: 0; }
.page-kicker { color: var(--green); font-size: 13px; margin-bottom: 15px; display: flex; align-items: center; gap: 9px; }
.page-kicker::before { content: ''; width: 21px; height: 2px; background: #74a592; }
h1 { font-size: clamp(28px, 3.1vw, 40px); font-weight: 650; line-height: 1.45; letter-spacing: -.8px; margin: 0 0 18px; }
.page-lead { font-size: 15px; line-height: 1.9; color: #647576; margin: 0 0 33px; max-width: 650px; }
.reading-body { padding-top: 10px; border-top: 1px solid var(--line); }
.reading-body>p { font-size: 15px; line-height: 2; margin: 14px 0 22px; }
h2 { font-size: 21px; font-weight: 600; line-height: 1.65; margin: 32px 0 13px; scroll-margin-top: 25px; }
.reading-body>h2:first-child { margin-top: 18px; }
.term { padding: 0 1px; border: 0; background: none; color: var(--term); text-decoration: underline; text-decoration-color: #87afc3; text-decoration-thickness: 1px; text-underline-offset: 4px; line-height: inherit; font-size: inherit; border-radius: 2px; }
.term:hover, .term.is-hovered { color: var(--hover); text-decoration-color: var(--hover); }
.example { background: #fff; padding: 20px 24px; border-left: 3px solid #83b69b; margin: 21px 0 28px; border-radius: 0 6px 6px 0; box-shadow: 0 2px 6px #203e3910; }
.example-label { color: var(--green); font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.example p { font-size: 15px; line-height: 1.95; margin: 0; }
.note { display: flex; flex-direction: column; gap: 7px; background: #eaf2ee; padding: 16px 20px; border-radius: 6px; margin: 24px 0; }
.note strong { font-size: 12px; color: #386752; font-weight: 600; }
.note p { margin: 0; font-size: 13px; line-height: 1.9; color: #556c60; }
.scene { background: #fff; border: 1px solid #c7dcd2; border-radius: 9px; padding: 22px 24px; margin: 25px 0; }
.scene-label { font-size: 11px; color: #607c70; margin-bottom: 7px; }
.scene h3 { font-size: 19px; line-height: 1.7; margin: 0 0 17px; font-weight: 600; }
.scene-prompt { background: #edf3f8; color: #395366; border-radius: 0 14px 14px 14px; margin: 0 0 20px; padding: 15px 18px; font-size: 14px; line-height: 1.9; }
.scene-speaker { display: block; font-size: 11px; color: #617c70; margin-bottom: 6px; }
.scene-instruction { font-size: 13px; color: #556f62; margin: 0 0 11px; }
.scene-choices { display: grid; gap: 8px; }
.scene-choice { display: flex; gap: 12px; align-items: center; width: 100%; padding: 11px 14px; min-height: 46px; text-align: left; border: 2px solid #e0e9e4; border-radius: 6px; background: #fafcfb; color: #3f5850; font-size: 13px; line-height: 1.75; }
.scene-choice:hover { border-color: #abc7b8; background: #f0f7f2; }
.scene-choice[aria-pressed="true"] { border-color: #458969; background: #e9f4ec; }
.scene-letter { flex: 0 0 19px; color: #4e7965; font-weight: 600; font-family: "Segoe UI", sans-serif; }
.scene-feedback { background: #eaf4ed; border-left: 3px solid #549774; margin-top: 17px; padding: 15px 18px; border-radius: 0 7px 7px 0; }
.scene-feedback.is-correction { background: #fcf5e8; border-color: #bd8d43; }
.scene-feedback strong { color: #37664d; font-size: 13px; }
.scene-feedback.is-correction strong { color: #835e2f; }
.scene-feedback p { font-size: 13px; line-height: 1.9; margin: 8px 0 12px; }
.scene-feedback .scene-action { margin-bottom: 0; }
.scene-caption { color: #7b8c85; font-size: 11px; line-height: 1.8; margin: 14px 0 0; }
.comparison { border-collapse: collapse; width: 100%; background: #fff; margin: 15px 0 25px; font-size: 14px; }
.comparison td { border-bottom: 1px solid #e5ecec; padding: 14px 17px; line-height: 1.8; vertical-align: top; }
.comparison td:first-child { color: var(--green); width: 133px; white-space: nowrap; font-weight: 600; }
.steps { padding-left: 24px; margin: 10px 0 26px; font-size: 14px; line-height: 2; }
.steps li { padding-left: 8px; margin-bottom: 10px; }
.steps li::marker { color: var(--green); font-weight: 600; }
.flow { background: #fff; padding: 20px 17px; border-radius: 6px; display: flex; align-items: stretch; gap: 10px; margin: 22px 0 10px; }
.flow-part { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 12px; line-height: 1.7; text-align: center; padding: 12px 8px; background: #f1f6f4; border: 1px solid #cbded4; border-radius: 4px; }
.flow-arrow { color: #749c88; align-self: center; font-size: 15px; }
.caption { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 8px 0 20px; }
.next-link { border: 1px solid #bdd7c8; background: #edf6f0; color: var(--green); padding: 13px 19px; border-radius: 7px; font-size: 13px; margin-top: 22px; }
.next-link:hover { background: #dfefe5; }
.sources { border-top: 1px solid var(--line); margin-top: 43px; padding-top: 19px; color: #748082; font-size: 11px; line-height: 1.9; }
.sources strong { font-weight: 500; }
.source-links { display: flex; flex-wrap: wrap; gap: 3px 15px; margin-top: 7px; }
.official-link { color: var(--term); text-decoration: none; }
.official-link:hover { text-decoration: underline; }
.popover-source .official-link { display: block; overflow-wrap: anywhere; }
.link-group { display: flex; flex-wrap: wrap; gap: 11px 19px; font-size: 12px; margin: 14px 0 25px; }
.page-outline { font-size: 11px; color: #728284; align-self: start; position: sticky; top: 40px; border-left: 1px solid var(--line); padding-left: 18px; margin-top: 5px; }
.page-outline>strong { display: block; color: #748381; font-weight: 500; margin-bottom: 17px; }
.page-outline button { display: block; background: transparent; border: 0; color: #768384; text-align: left; line-height: 1.8; font-size: 11px; margin: 0 0 13px; padding: 0; }
.page-outline button:hover { color: var(--green); }
.page-outline p { line-height: 1.9; color: #899692; margin-top: 23px; }
.product-list { margin-top: 10px; }
.product { display: grid; grid-template-columns: 43px 1fr; gap: 16px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.product-mark { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: #e5eeea; color: #25614d; font-family: "Segoe UI", sans-serif; font-weight: 600; font-size: 23px; }
.product:nth-child(2) .product-mark { background: #eee8e2; color: #9b7450; }
.product:nth-child(3) .product-mark { background: #e7ecfa; color: #466baf; }
.product:nth-child(4) .product-mark { background: #e5effa; color: #3d6fad; }
.product:nth-child(5) .product-mark { background: #eee9f9; color: #6d56a1; }
.product h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.product-provider { font-size: 10px; color: #889392; margin: 0 0 10px; }
.product p { font-size: 13px; line-height: 1.9; margin: 9px 0; color: #647173; }
.product .product-modes { font-size: 11px; color: #44705c; }
.product .link-group { margin: 12px 0 0; }
.glossary-search { width: 100%; margin: 13px 0 20px; border: 1px solid #cfdcda; background: #fff; padding: 12px 15px; border-radius: 7px; font-size: 14px; }
.glossary-count { color: var(--muted); font-size: 12px; margin: 5px 0 17px; }
.glossary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; }
.glossary-entry { padding: 17px 0; border-bottom: 1px solid var(--line); }
.glossary-entry>.term { font-size: 15px; text-align: left; }
.glossary-entry small { display: block; color: #919f9e; font-size: 10px; margin: 7px 0; }
.glossary-entry p { font-size: 12px; line-height: 1.85; color: #70807b; margin: 7px 0 0; }
.empty-result { color: var(--muted); font-size: 14px; line-height: 2; padding: 25px 0; }
.lab-form { background: #fff; border: 1px solid #d4e2dd; border-radius: 10px; padding: 27px 28px; margin: 8px 0 25px; }
.field { margin-bottom: 21px; }
.field label { display: block; font-size: 13px; margin-bottom: 10px; font-weight: 600; }
.field select, .field input { width: 100%; border: 1px solid #c8d7d3; background: #fafcfa; padding: 12px 13px; border-radius: 6px; font-size: 14px; color: var(--ink); }
.field input::placeholder { color: #a0acab; }
.field-help { color: #7e8c89; font-size: 11px; line-height: 1.8; margin: 8px 0 0; overflow-wrap: anywhere; }
.test-policy { display: flex; flex-wrap: wrap; gap: 7px 14px; color: #5c7768; font-size: 11px; background: #f0f6f2; padding: 12px; border-radius: 5px; margin-bottom: 18px; }
.consent-copy { font-size: 12px; color: #77867e; line-height: 1.9; margin: 0 0 18px; }
.form-actions { display: flex; gap: 17px; align-items: center; flex-wrap: wrap; }
.primary-button { border: 0; border-radius: 6px; background: var(--green); color: white; font-size: 13px; padding: 12px 23px; }
.primary-button:hover:not(:disabled) { background: #0d5948; }
.secondary-button { border: 0; background: none; color: #668275; padding: 10px 0; font-size: 12px; }
.result { background: #e8f2ec; padding: 24px; border: 1px solid #cadfd0; border-radius: 8px; margin-bottom: 25px; }
.result.is-error { background: #fff6e7; border-color: #ecddbd; }
.result-label { font-size: 12px; font-weight: 600; color: #2c7353; margin: 0 0 13px; }
.result.is-error .result-label { color: #8b6724; }
.result-text { font-size: 15px; line-height: 2; margin: 0 0 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.result-meta { font-size: 10px; line-height: 1.9; color: #697b6d; border-top: 1px solid #caddce; padding-top: 12px; }
.antifraud-list { padding-left: 19px; font-size: 13px; line-height: 2; }
.antifraud-list li { margin-bottom: 8px; }
.spinner { width: 16px; height: 16px; display: inline-block; border: 2px solid #c2dacb; border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: middle; margin-right: 7px; }
@keyframes spin { to { transform: rotate(360deg); } }
#popover-layer { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.term-popover { position: absolute; width: 360px; max-height: min(530px, calc(100vh - 100px)); background: #fff; border: 1px solid #b6cdc0; border-top: 3px solid #287353; border-radius: 7px; box-shadow: 0 14px 40px #18362c24, 0 3px 9px #18362c15; pointer-events: auto; overflow: auto; scrollbar-width: thin; }
.popover-heading { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 18px 19px 12px; border-bottom: 1px solid #e2ebe5; background: #f6faf7; position: sticky; top: 0; z-index: 1; }
.popover-heading h3 { margin: 0; font-size: 18px; font-weight: 600; color: #315b43; }
.popover-heading small { display: block; font-size: 10px; color: #7f9285; margin-top: 7px; line-height: 1.6; }
.popover-close { width: 24px; height: 24px; border: 0; background: transparent; color: #7d9282; font-size: 19px; line-height: 1; padding: 0; flex: none; border-radius: 4px; }
.popover-close:hover { color: #294f37; background: #e2eee5; }
.popover-body { padding: 17px 20px 18px; font-size: 13px; line-height: 1.95; }
.popover-body>p { margin: 0 0 13px; }
.popover-example { background: #edf4ef; padding: 12px; color: #59735e; font-size: 12px; border-radius: 4px; margin: 13px 0; }
.popover-example strong { color: #547758; font-size: 10px; font-weight: 500; display: block; margin-bottom: 4px; }
.related-label { color: #8a978c; font-size: 10px; margin-top: 16px; }
.related-terms { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-top: 8px; font-size: 12px; }
.popover-source { color: #92a094; border-top: 1px solid #e6eee7; margin-top: 16px; padding-top: 10px; font-size: 10px; line-height: 1.6; }
.popover-source a { color: #738f7b; }
.term-trail { position: fixed; left: 245px; right: 18px; bottom: 18px; z-index: 100; background: #263f36f5; box-shadow: 0 5px 20px #213a3028; border: 1px solid #658672; border-radius: 7px; padding: 10px 12px; display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: auto; scrollbar-width: thin; color: #a7c5b1; }
.term-trail>span { font-size: 10px; flex: none; }
.trail-term { border: 0; background: transparent; color: #d4e5d8; padding: 4px 5px; font-size: 11px; flex: none; border-radius: 3px; }
.trail-term:hover, .trail-term:last-of-type { background: #4c6957; color: #fff; }
.trail-close { margin-left: auto; border: 0; background: transparent; color: #c5daca; padding: 4px 7px; font-size: 11px; flex: none; }
.hover-ring { position: fixed; width: 29px; height: 29px; z-index: 120; pointer-events: none; }
.hover-ring svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 1px 2px #fff); }
.hover-ring circle { fill: #fff9; stroke-width: 2.7; }
.ring-track { stroke: #d6dfda; }
.ring-progress { fill: none !important; stroke: #a56a13; stroke-dasharray: 75.4; stroke-dashoffset: 75.4; transform: rotate(-90deg); transform-origin: 16px 16px; }
@keyframes dwell { to { stroke-dashoffset: 0; } }
.toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 150; width: min(520px, calc(100vw - 36px)); padding: 15px 20px; border-radius: 8px; background: #294d40; color: #fff; font-size: 12px; line-height: 1.9; box-shadow: 0 6px 24px #1f382d24; }
@media (max-width: 1120px) {
  .reading-layout { grid-template-columns: minmax(0, 1fr); padding: 38px 38px 60px; max-width: 825px; }
  .page-outline { display: none; }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 228px; transform: translateX(-100%); transition: transform .16s ease; box-shadow: 15px 0 30px #102c2a1a; }
  .sidebar.is-open { transform: translateX(0); }
  .topbar { height: 59px; padding: 0 20px; gap: 8px; }
  .menu-toggle { display: block; }
  .breadcrumb { margin-right: auto; }
  .breadcrumb>span:first-child, .crumb-divider { display: none; }
  .quick-search kbd { display: none; }
  .quick-search { padding: 7px 8px; }
  .reading-layout { padding: 29px 25px 60px; }
  h1 { font-size: 29px; }
  .term-trail { left: 14px; right: 14px; bottom: 12px; }
  .lab-form { padding: 22px 20px; }
  .glossary-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .reading-layout { padding: 25px 18px 60px; }
  .topbar { padding: 0 13px; }
  h1 { font-size: 26px; }
  .comparison td { padding: 12px 10px; font-size: 12px; }
  .comparison td:first-child { width: 100px; white-space: normal; }
  .flow { gap: 5px; padding: 14px 10px; flex-wrap: wrap; }
  .flow-part { flex-basis: 35%; }
  .flow-arrow { font-size: 12px; }
  .example { padding: 17px; }
  .scene { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #reader { scroll-behavior: auto; }
  .sidebar { transition: none; }
  .spinner { animation-duration: 2s; }
}
