:root {
  color-scheme: light;
  --canvas: #f7f7f5;
  --paper: #fff;
  --ink: #242d2b;
  --muted: #7a827e;
  --line: #e5e8e3;
  --accent: #306a54;
  --sidebar-width: 222px;
  --header-height: 76px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
::selection { color: #183c32; background: #d8e9d8; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #6b9d7f; outline-offset: 4px; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-definitions { width: 0; height: 0; position: absolute; overflow: hidden; }
.skip-link { position: fixed; z-index: 100; top: -70px; left: 20px; background: #fff; padding: 13px 20px; border: 1px solid var(--line); border-radius: 7px; }
.skip-link:focus { top: 10px; }
.workspace { margin-left: var(--sidebar-width); padding-top: var(--header-height); min-width: 0; }
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--header-height); display: flex; align-items: center; gap: 28px; padding: 0 34px; background: #fffffff5; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 180px; }
.brand-mark { display: grid; place-items: center; background: #285a47; color: #e8f0d7; width: 35px; height: 35px; border-radius: 10px; }
.brand-mark svg { width: 29px; height: 29px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.brand strong { font-size: 23px; font-weight: 700; letter-spacing: -1px; }
.brand small { align-self: flex-end; font: 8px Consolas, monospace; letter-spacing: 1px; color: #9aa39c; padding-bottom: 7px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; color: #89908b; font-size: 12px; min-width: 0; line-height: 1.8; }
.breadcrumb > .icon { display: none; }
.breadcrumb-divider { color: #ccd2ca; }
.breadcrumb strong { color: #53615a; font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; flex-shrink: 0; }
.topbar-caption { font-size: 11px; letter-spacing: 2px; color: #9aa398; }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; background: #f5f7f2; border: 1px solid #e7ebe1; border-radius: 6px; min-height: 32px; padding: 0 10px; font-size: 10px; color: #809078; }
.motion-toggle > .icon { width: 15px; height: 15px; }
.toggle-indicator { position: relative; width: 23px; height: 13px; background: #cbd2c6; border-radius: 8px; }
.toggle-indicator::after { position: absolute; content: ""; width: 9px; height: 9px; top: 2px; left: 2px; background: white; border-radius: 50%; transition: transform .2s; }
.motion-toggle[aria-pressed="true"] .toggle-indicator { background: #679373; }
.motion-toggle[aria-pressed="true"] .toggle-indicator::after { transform: translateX(10px); }
.sidebar { position: fixed; inset: var(--header-height) auto 0 0; z-index: 20; width: var(--sidebar-width); background: #f0f2ec; border-right: 1px solid #e2e6dc; padding: 32px 15px 22px; display: flex; flex-direction: column; }
.sidebar-label { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 11px; color: #707d6a; letter-spacing: 1px; }
.sidebar-label > span { font: 8px Consolas, monospace; letter-spacing: 1.3px; color: #a8b09f; }
.overview-button, .subject-button { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; text-align: left; background: transparent; border: 0; color: #566451; border-radius: 7px; transition: background .2s, color .2s; }
.overview-button { margin-top: 19px; font-size: 13px; }
.overview-button > .icon, .subject-button > .icon { width: 17px; height: 17px; }
.overview-button > span, .subject-count { font: 10px Consolas, monospace; margin-left: auto; color: #93a087; }
.overview-button:hover, .subject-button:hover { background: #e6ecdf; color: #3b5f3f; }
.overview-button.active, .subject-button.active { background: #dfe9d4; color: #385a35; font-weight: 600; }
.subject-list { display: flex; flex-direction: column; gap: 4px; margin-top: 5px; }
.subject-button { font-size: 13px; }
.chapter-heading { display: flex; align-items: center; justify-content: space-between; margin: 31px 0 13px; padding-right: 11px; }
.chapter-heading .sidebar-label { font-size: 10px; }
.chapter-total { font: 9px Consolas, monospace; color: #a0aa93; }
.chapter-list { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: #cbd5c1 transparent; padding: 0 0 8px; }
.chapter-button { display: flex; align-items: flex-start; gap: 9px; padding: 10px 10px; border: 0; border-radius: 6px; background: transparent; color: #5c6956; font-size: 12px; text-align: left; line-height: 1.8; transition: background .2s, color .2s; }
.chapter-number { color: #a0ac93; font: 10px/2 Consolas, monospace; min-width: 16px; }
.chapter-label { min-width: 0; }
.chapter-count { margin-left: auto; color: #a6af9a; font: 9px/2.2 Consolas, monospace; }
.chapter-button:hover { background: #e7ecdf; color: #3c603a; }
.chapter-button.active { background: #e1ead6; color: #315a2e; box-shadow: inset 2px 0 #79965e; font-weight: 600; }
.sidebar-footer { display: flex; align-items: flex-start; gap: 9px; margin-top: auto; padding: 21px 11px 0; border-top: 1px solid #dde3d5; font-size: 10px; color: #919c85; line-height: 1.8; flex-shrink: 0; }
.sidebar-footer > .icon { width: 16px; height: 16px; }
.sidebar-footer small { display: block; margin-top: 5px; color: #aab29f; font-size: 9px; }
main { max-width: 1440px; margin: 0 auto; padding: 43px 50px 28px; outline: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-bottom: 25px; }
.page-heading > div:first-child { min-width: 0; }
.eyebrow { color: #9da797; font: 9px Consolas, "Microsoft YaHei", monospace; letter-spacing: 2.5px; margin-bottom: 11px; }
h1 { font-size: 36px; line-height: 1.5; font-weight: 700; letter-spacing: -1.2px; margin: 0; text-wrap: pretty; }
.edition { font: 11px Consolas, "Microsoft YaHei", monospace; color: #86947b; letter-spacing: 0; padding: 5px 8px; background: #edf1e6; border-radius: 4px; margin-left: 15px; vertical-align: 5px; white-space: nowrap; }
.page-description { font-size: 13px; color: #6d7867; line-height: 1.9; margin: 11px 0 0; }
.chapter-emblem { display: grid; place-items: center; width: 105px; height: 86px; flex-shrink: 0; background: #eff2e8; color: #a1b08c; border-radius: 50%; border: 1px solid #e8edde; }
.chapter-emblem > .icon { width: 46px; height: 46px; stroke-width: 1.2; }
.chapter-emblem > .chapter-art { width: 74px; height: 46px; }
.catalog-tools { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 23px; margin-bottom: 3px; }
.search-form { display: flex; gap: 8px; flex: 1; max-width: 650px; min-width: 0; }
.search-box { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; background: white; border: 1px solid #e1e7d9; border-radius: 7px; padding: 0 15px; height: 45px; transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: #8fa47e; box-shadow: 0 0 0 3px #90a87c12; }
.search-box > .icon { width: 17px; height: 17px; color: #98a98a; }
.search-box input { width: 100%; flex: 1; min-width: 0; border: 0; outline: none; background: transparent; height: 100%; font-size: 12px; }
.search-box input::placeholder { color: #7d8975; }
kbd { color: #b1b8a6; border: 1px solid #e8ecdf; border-radius: 3px; padding: 2px 4px; font: 8px Consolas, monospace; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 39px; padding: 0 16px; border: 1px solid #dfe5d7; background: white; border-radius: 6px; font-size: 12px; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s; }
.primary-button { background: #3c654c; color: #f2f6ec; border-color: #3c654c; min-width: 90px; }
.primary-button:hover { background: #254b35; }
.secondary-button:not(:disabled):hover { background: #eef3e6; border-color: #bfcfaf; }
.primary-button:active, .secondary-button:active { transform: translateY(1px); }
.primary-button > .icon { width: 16px; height: 16px; }
.text-button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 0; background: transparent; border: 0; color: #59754b; font-size: 12px; white-space: nowrap; }
.text-button > .icon { width: 16px; height: 16px; }
.text-button:hover { color: #37602c; }
.tools-caption { color: #a1aa95; font-size: 10px; margin-left: auto; }
.results-heading { display: flex; align-items: baseline; justify-content: flex-start; gap: 12px; padding: 25px 0 18px; }
.results-heading h2 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -.2px; }
.results-heading > span { color: #728069; font-size: 11px; }
.results-heading > .text-button { margin-left: auto; }
.section-kicker { display: block; font: 8px Consolas, monospace; letter-spacing: 1.8px; color: #a4ad97; margin-bottom: 8px; }
.subject-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.subject-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 345px; position: relative; overflow: hidden; isolation: isolate; border-radius: 12px; background: #223f32; color: #edf0d9; animation: enter-card .6s both; }
.subject-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at var(--glow-x, 80%) var(--glow-y, 20%), #64805a3b, transparent 67%); pointer-events: none; }
.subject-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(#d4dfb81c .7px, transparent .8px); background-size: 19px 19px; mask-image: linear-gradient(90deg, transparent 20%, black 100%); pointer-events: none; }
.subject-copy { position: relative; z-index: 2; padding: 30px 0 30px 36px; display: flex; flex-direction: column; align-items: flex-start; }
.subject-card-heading { display: flex; gap: 20px; font: 8px Consolas, monospace; color: #a4b594; letter-spacing: 1.7px; }
.subject-card-heading > span + span { color: #71896d; }
.subject-card h3 { font-size: 45px; font-weight: 650; letter-spacing: -2px; margin: 28px 0 12px; line-height: 1.4; }
.subject-description { max-width: 330px; color: #b6c6ab; font-size: 13px; line-height: 1.9; margin: 0 0 18px; }
.subject-card-count { display: flex; gap: 21px; font-size: 10px; color: #becaa7; }
.subject-card-count > span + span { border-left: 1px solid #70866769; padding-left: 21px; }
.subject-card-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; width: 100%; margin-top: auto; padding-top: 29px; }
.subject-action { display: inline-flex; align-items: center; gap: 15px; border-radius: 5px; padding: 11px 16px; background: #dce8bd; color: #365132; font-size: 12px; font-weight: 600; transition: background .2s; }
.subject-action > .icon { width: 17px; height: 17px; transition: transform .25s; }
.subject-card:hover .subject-action { background: #edf6d6; }
.subject-card:hover .subject-action > .icon { transform: translateX(4px); }
.subject-footer-note { color: #78926e; font-size: 8px; white-space: nowrap; }
.subject-art { position: absolute; width: 64%; right: -7%; top: 48%; pointer-events: none; transform: translate(var(--art-x, 0px), calc(-50% + var(--art-y, 0px))); transition: transform .4s ease-out; }
.subject-art img { width: 100%; display: block; height: auto; animation: float-board 8s ease-in-out infinite; }
.subject-art-label { position: absolute; bottom: 10%; right: 19%; color: #8fa780; font: 7px Consolas, monospace; letter-spacing: 1.6px; }
.chapter-shortcuts { margin-top: 8px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: white; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.chapter-shortcut { display: flex; position: relative; flex-direction: column; padding: 22px 22px 20px; min-height: 167px; border-right: 1px solid var(--line); transition: background .2s; }
.chapter-shortcut:last-child { border-right: 0; }
.chapter-shortcut:hover { background: #f0f5e8; }
.shortcut-art { width: 56px; height: 33px; fill: none; stroke: #8ba071; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 15px; }
.shortcut-number { position: absolute; top: 27px; right: 21px; color: #b1baa3; font-size: 8px; }
.chapter-shortcut strong { font-size: 13px; font-weight: 600; line-height: 1.8; max-width: 170px; }
.shortcut-count { margin-top: auto; padding-top: 12px; color: #75836b; font-size: 11px; }
.chapter-shortcut > .icon { position: absolute; bottom: 20px; right: 20px; width: 15px; height: 15px; color: #8fa179; }
.chapter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.chapter-card { display: grid; grid-template-columns: 126px minmax(0, 1fr); min-height: 168px; overflow: hidden; background: white; border-radius: 9px; border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; animation: enter-card .45s var(--entry-delay, 0ms) both; }
.chapter-card-art { position: relative; display: flex; align-items: center; justify-content: center; align-self: stretch; background-color: #eaf0de; background-image: radial-gradient(#aab99a44 .7px, transparent .8px); background-size: 12px 12px; color: #879c6a; overflow: hidden; }
.chapter-card:nth-child(4n+2) .chapter-card-art { background-color: #eee7dd; color: #b0a183; }
.chapter-card:nth-child(4n+3) .chapter-card-art { background-color: #e6ece9; color: #8baba0; }
.chapter-card:nth-child(4n+4) .chapter-card-art { background-color: #e9e9e1; color: #a6a58c; }
.chapter-card-number { position: absolute; bottom: -3px; right: 6px; color: #7a8b5d20; font: 59px/1 Consolas, monospace; font-weight: 700; }
.chapter-art { width: 90px; height: 65px; flex: 0 0 auto; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; transform: translate(var(--art-x, 0px), var(--art-y, 0px)); transition: transform .35s ease-out; }
.chapter-card-body { display: flex; flex-direction: column; padding: 21px 22px 18px; min-width: 0; }
.chapter-card-kicker { font-size: 11px; color: #738566; letter-spacing: 1px; }
.chapter-card h3 { font-size: 17px; line-height: 1.65; letter-spacing: -.3px; font-weight: 600; margin: 9px 0 19px; text-wrap: pretty; }
.chapter-card-footer { display: flex; align-items: center; gap: 12px; margin-top: auto; color: #718361; font-size: 11px; }
.chapter-code-range { font: 9px Consolas, monospace; color: #87917c; }
.chapter-card-footer > .icon { margin-left: auto; width: 17px; height: 17px; color: #9caf86; transition: transform .25s; }
.chapter-card:hover { border-color: #a8be8f; box-shadow: 0 7px 22px #364e2b08; }
.chapter-card:hover .chapter-card-footer > .icon { transform: translateX(4px); }
.question-table { min-width: 0; }
#question-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.question-row { display: grid; position: relative; grid-template-columns: 29px minmax(0, 1fr); background: white; border: 1px solid var(--line); border-radius: 9px; padding: 18px 20px 17px; min-width: 0; transition: border-color .2s, box-shadow .2s; animation: enter-card .4s var(--entry-delay, 0ms) both; }
.question-sequence { grid-column: 1; grid-row: 1; font: 10px Consolas, monospace; color: #b2bda3; padding-top: 3px; }
.question-preview { grid-column: 2; grid-row: 1; position: relative; border: 1px solid #eef0e9; border-radius: 4px; height: 142px; background: white; overflow: hidden; }
.question-thumbnail { display: block; width: 100%; height: 100%; padding: 13px; object-fit: contain; }
.question-preview > span { position: absolute; right: 8px; bottom: 7px; padding: 3px 5px; color: #a2af90; background: #f5f7efeb; border-radius: 3px; font-size: 8px; opacity: 0; transition: opacity .2s; }
.question-title { grid-column: 2; min-width: 0; padding: 16px 0 0; }
.question-context { display: flex; gap: 12px; align-items: center; color: #8a9480; font-size: 10px; }
.question-code { font: 11px Consolas, monospace; color: #657d53; }
.question-name { font-size: 16px; letter-spacing: -.2px; line-height: 1.8; font-weight: 600; margin: 7px 0 3px; overflow-wrap: anywhere; }
.question-topic { color: #7b876e; font-size: 11px; line-height: 1.8; }
.question-action { grid-column: 2; display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding-top: 13px; border-top: 1px solid #eff1e8; color: #536f3d; font-size: 11px; }
.question-action > .icon { width: 17px; height: 17px; transition: transform .2s; }
.question-row:hover { border-color: #adc596; box-shadow: 0 8px 22px #34552508; }
.question-row:hover .question-action > .icon { transform: translateX(4px); }
.question-row:hover .question-preview > span { opacity: 1; }
.question-row:focus-visible .question-name { text-decoration: underline; text-underline-offset: 4px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; font-size: 11px; color: #9ba78e; }
.pagination > div { display: flex; gap: 15px; align-items: center; }
.pagination .secondary-button { min-height: 35px; font-size: 11px; }
#page-label { font: 10px Consolas, monospace; color: #758a61; }
.library-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--line); color: #a8b09b; font-size: 10px; }
.library-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.library-meta strong { font: 12px Consolas, monospace; color: #859674; }
.library-meta .icon { width: 13px; height: 13px; color: #9cad8a; }
.library-meta > span:last-child { margin-left: auto; font-size: 9px; color: #bac1ae; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 34px; padding-top: 19px; border-top: 1px solid var(--line); color: #aeb6a0; font-size: 9px; line-height: 1.8; }
.page-footer > a { display: inline-flex; align-items: center; gap: 7px; }
.page-footer .icon { width: 16px; height: 16px; }
.footer-divider { color: #c8cfbd; padding: 0 5px; }
.loading-state, .empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 15px; min-height: 240px; padding: 35px; grid-column: 1 / -1; text-align: center; color: #97a78a; font-size: 12px; line-height: 1.9; }
.empty-state strong { font-size: 17px; font-weight: 500; color: #587446; }
.empty-state > .icon { width: 31px; height: 31px; color: #b6c5a3; }
.empty-state p { margin: 0; max-width: 350px; }
.loading-state::before { content: ""; height: 90px; width: min(500px, 100%); border-radius: 5px; background: linear-gradient(100deg, #ebefE3 20%, #f8faf3 50%, #ebefe3 80%); background-size: 200% 100%; animation: skeleton-shimmer 1.6s linear infinite; }
.spinner { display: none; }
.detail-navigation { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.back-button { color: #8a9a77; }
.neighbor-buttons { display: flex; gap: 8px; }
.detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.detail-heading > div { min-width: 0; }
.detail-meta { color: #75816a; font-size: 12px; margin: 0 0 12px; line-height: 1.9; }
.detail-heading h1 { font-size: 29px; letter-spacing: -.5px; line-height: 1.65; overflow-wrap: anywhere; }
.detail-label { display: flex; align-items: center; gap: 7px; padding: 8px 10px; background: #eaf1e2; border-radius: 5px; color: #86a06d; font-size: 10px; white-space: nowrap; margin-top: 32px; }
.detail-label .icon { width: 14px; height: 14px; }
.detail-grid { display: grid; grid-template-columns: minmax(300px, .92fr) minmax(0, 1.08fr); gap: 25px; align-items: start; }
.problem-panel, .answer-panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.problem-panel { position: sticky; top: 100px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 64px; border-bottom: 1px solid var(--line); padding: 0 23px; }
.panel-heading h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; font-weight: 600; }
.panel-index { font: 10px Consolas, monospace; color: #a8b69a; }
.answer-heading { background: #f9fbf5; }
.answer-heading .text-button { font-size: 11px; color: #657d53; }
.answer-heading .text-button .icon { width: 13px; height: 13px; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; background: transparent; color: #9aab87; border-radius: 5px; }
.icon-button:hover { background: #edf4e4; color: #668748; }
.icon-button > .icon { width: 17px; height: 17px; }
.problem-image-wrap { padding: 29px 22px; background: white; }
.problem-image-wrap img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 270px); object-fit: contain; }
.image-footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 23px; gap: 20px; border-top: 1px solid var(--line); font-size: 10px; color: #abb69c; }
.image-footer > span { font-family: Consolas, monospace; }
.image-footer > a { color: #8fa675; }
#answer-content { padding: 28px 28px 34px; outline: none; min-height: 320px; }
.markdown { font-size: 14px; line-height: 2.05; color: #394336; overflow-wrap: anywhere; }
.markdown > :first-child { margin-top: 0; }
.markdown > :last-child { margin-bottom: 0; }
.markdown p { margin: 17px 0; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4 { color: #3b5730; font-size: 16px; font-weight: 600; line-height: 1.8; letter-spacing: 0; margin: 29px 0 14px; }
.markdown h1 { font-size: 19px; }
.markdown strong { font-weight: 650; color: #445f36; }
.markdown ul, .markdown ol { padding-left: 23px; }
.markdown li { margin: 8px 0; }
.markdown pre, .solution-diagram { overflow-x: auto; border: 1px solid #e7eddf; border-radius: 5px; padding: 16px; background: #f8faf4; font-size: 12px; line-height: 1.8; white-space: pre; overflow-wrap: normal; }
.markdown code { background: #f0f4e8; padding: 2px 4px; border-radius: 3px; font-size: 12px; }
.markdown pre code { padding: 0; background: transparent; }
.markdown table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; margin: 22px 0; font-size: 12px; }
.markdown th, .markdown td { border: 1px solid #e0e8d5; padding: 10px 12px; min-width: 50px; text-align: left; vertical-align: top; }
.markdown th { background: #f0f5e6; font-weight: 500; color: #64804d; }
.markdown blockquote { border-left: 3px solid #c6d7af; padding-left: 16px; margin: 22px 0; color: #6a7c59; }
.markdown a { color: #6e934b; text-decoration: underline; text-underline-offset: 3px; }
.markdown hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.math-display { overflow-x: auto; overflow-y: hidden; padding: 6px 0; margin: 17px 0; }
.katex { font-size: 1.06em; }
.katex-display { margin: .4em 0; }
.katex-display > .katex { text-align: left; }
.solution-notes { padding: 14px 17px; background: #f8f5e9; border-left: 2px solid #d1bd85; margin-bottom: 24px; color: #7d6b35; font-size: 12px; line-height: 1.9; }
.solution-notes strong { display: block; font-size: 10px; letter-spacing: 1px; font-weight: 600; }
.solution-notes p { margin: 5px 0 0; }
.solution-steps { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 23px; }
.solution-steps > h2 { margin: 0 0 24px; font-size: 15px; font-weight: 600; color: #5d7b43; }
.solution-step { margin: 24px 0; }
.solution-step > h3 { font-size: 13px; font-weight: 600; line-height: 1.8; color: #5a7646; margin: 0 0 10px; }
.solution-step .markdown { font-size: 13px; }
.solution-formula { padding: 13px 15px; margin: 12px 0; background: #f5f7f1; border-left: 2px solid #b8c5a8; font-size: 13px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; color: #42523e; }
.solution-figure { margin: 25px 0; border: 1px solid #e4ebd9; border-radius: 6px; padding: 16px 11px 12px; background: #fdfefa; overflow-x: auto; }
.solution-figure figcaption { margin: 0 10px 9px; font-size: 12px; color: #5c7647; font-weight: 500; }
.solution-plot { display: block; width: 100%; min-width: 480px; height: auto; }
.solution-plot text { font-family: "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 14px; fill: #647952; }
.plot-grid { stroke: #e8eee0; stroke-dasharray: 3 4; fill: none; }
.plot-axis { stroke: #bbcaaa; fill: none; }
.plot-legend { display: flex; flex-wrap: wrap; gap: 10px 17px; justify-content: center; padding: 2px 9px; font-size: 11px; color: #647952; }
.plot-legend > span::before { content: ""; display: inline-block; width: 13px; height: 2px; background: var(--curve-color); vertical-align: middle; margin-right: 5px; }
.image-dialog { width: fit-content; max-width: min(1200px, 94vw); max-height: 92dvh; border: 1px solid #d5e1c7; border-radius: 9px; padding: 0; background: white; color: var(--ink); box-shadow: 0 25px 95px #1634222e; }
.image-dialog::backdrop { background: #203c2880; backdrop-filter: blur(6px); }
.dialog-heading { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 13px 20px; background: #fafcf6; border-bottom: 1px solid var(--line); font-size: 12px; }
.dialog-heading strong { font-weight: 500; line-height: 1.8; }
.dialog-heading .icon-button { flex-shrink: 0; }
.dialog-image-wrap { padding: 24px; overflow: auto; }
.dialog-image-wrap img { display: block; max-width: 100%; height: auto; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translateX(-50%); z-index: 100; padding: 13px 22px; border-radius: 7px; background: #42652d; color: #f6faec; box-shadow: 0 8px 30px #2c482017; font-size: 12px; max-width: calc(100vw - 32px); line-height: 1.8; }
.mobile-menu { display: none; }
body[data-view="library"] #list-view { display: flex; flex-direction: column; }
body[data-view="library"] .page-heading { order: 0; margin-bottom: 16px; }
body[data-view="library"] .page-heading h1 { font-size: 42px; letter-spacing: -2px; }
body[data-view="library"] .page-description { font-size: 14px; margin-top: 7px; }
body[data-view="library"] #subject-overview { order: 1; }
body[data-view="library"] #subject-overview > .results-heading { padding-top: 9px; padding-bottom: 15px; }
body[data-view="library"] #subject-overview > .results-heading h2 { font-size: 11px; color: #9ca991; font-weight: 400; }
body[data-view="library"] .catalog-tools { order: 2; margin-top: 26px; padding: 0; border: 0; }
body[data-view="library"] .chapter-shortcuts { order: 3; }
body[data-view="library"] .library-meta { order: 4; }
body[data-view="library"] .chapter-emblem { width: 65px; height: 65px; background: transparent; border-color: #e4ebdc; }
body[data-view="library"] .chapter-emblem > .icon { width: 29px; height: 29px; }
body[data-view="subject"] .page-heading { padding-bottom: 25px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
body[data-view="detail"] .page-footer { margin-top: 45px; }
@keyframes enter-card { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float-board { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes skeleton-shimmer { to { background-position: -200% 0; } }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (min-width: 1700px) { main { padding-top: 55px; } .subject-card { min-height: 380px; } .subject-copy { padding: 38px 0 38px 45px; } .subject-card h3 { font-size: 51px; margin-top: 34px; } .chapter-card { min-height: 183px; } .question-preview { height: 180px; } }
@media (max-width: 1250px) {
  :root { --sidebar-width: 205px; }
  .topbar { padding: 0 25px; gap: 22px; }
  .brand { min-width: 157px; }
  .brand small { display: none; }
  .topbar-caption { display: none; }
  main { padding: 35px 32px 25px; }
  .subject-copy { padding-left: 29px; }
  .subject-card h3 { font-size: 38px; }
  .subject-description { max-width: 275px; }
  .subject-footer-note { display: none; }
  .chapter-card { grid-template-columns: 100px minmax(0, 1fr); }
  .chapter-card-body { padding: 19px 18px 17px; }
  .chapter-art { width: 76px; height: 57px; }
  .chapter-card h3 { font-size: 16px; }
  .chapter-code-range { display: none; }
  .tools-caption { display: none; }
  .chapter-shortcut { padding-left: 17px; padding-right: 17px; }
  .shortcut-number { right: 15px; }
  .chapter-shortcut strong { font-size: 11px; }
  .shortcut-art { width: 45px; }
  .detail-grid { grid-template-columns: minmax(250px, .9fr) minmax(0, 1.1fr); gap: 20px; }
  #answer-content { padding: 24px 22px 28px; }
  .detail-heading h1 { font-size: 26px; }
}
@media (max-width: 1030px) {
  :root { --sidebar-width: 190px; }
  main { padding-left: 26px; padding-right: 26px; }
  .breadcrumb { font-size: 11px; gap: 4px 9px; }
  .brand { min-width: 146px; }
  .sidebar { padding-left: 11px; padding-right: 11px; }
  .subject-card { min-height: 330px; }
  .subject-card h3 { font-size: 34px; }
  .subject-art { width: 66%; right: -10%; top: 49%; }
  .subject-description { max-width: 245px; font-size: 11px; }
  .chapter-card { grid-template-columns: 82px minmax(0, 1fr); }
  .chapter-art { width: 65px; height: 48px; }
  .chapter-card h3 { font-size: 15px; }
  .chapter-card-body { padding: 18px 15px; }
  .chapter-card-number { font-size: 46px; }
  .shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-shortcut { min-height: 145px; }
  .chapter-shortcut:nth-child(2) { border-right: 0; }
  .chapter-shortcut:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .chapter-shortcut strong { font-size: 12px; }
  .shortcut-art { width: 57px; }
  .detail-grid { grid-template-columns: 1fr; }
  .problem-panel { position: static; }
  .problem-image-wrap img { max-height: 450px; }
  .question-row { padding-left: 14px; padding-right: 17px; grid-template-columns: 24px minmax(0, 1fr); }
  .question-preview { height: 120px; }
  .question-name { font-size: 14px; }
  .library-meta > span:last-child { display: none; }
}
@media (max-width: 800px) {
  :root { --sidebar-width: 248px; --header-height: 65px; }
  .workspace { margin-left: 0; }
  .sidebar { transform: translateX(-100%); transition: transform .25s; background: #f2f5eb; box-shadow: 5px 0 30px #263b2310; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: var(--header-height) 0 0; z-index: 19; background: #29432466; backdrop-filter: blur(3px); }
  .sidebar-label { font-size: 12px; }
  .chapter-button { font-size: 12px; padding-top: 11px; padding-bottom: 11px; }
  .chapter-count { font-size: 10px; }
  .topbar { padding: 0 20px; gap: 15px; }
  .brand { min-width: auto; gap: 9px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 8px; }
  .brand-mark svg { width: 26px; height: 26px; }
  .brand strong { font-size: 20px; }
  .mobile-menu { display: grid; width: 30px; height: 34px; order: -1; }
  .breadcrumb { font-size: 10px; margin-left: 6px; }
  .breadcrumb > #breadcrumb-home, .breadcrumb > #breadcrumb-subject-divider { display: none; }
  .topbar-actions { gap: 0; }
  .motion-toggle { border: 0; background: transparent; padding: 0 3px; }
  .motion-toggle > .icon, #motion-label { display: none; }
  main { padding: 31px 29px 24px; }
  .subject-card { min-height: 325px; }
  .subject-card h3 { font-size: 39px; }
  .chapter-card { grid-template-columns: 98px minmax(0, 1fr); }
  .chapter-card h3 { font-size: 16px; }
  .chapter-art { width: 72px; }
  .question-name { font-size: 15px; }
  .question-preview { height: 145px; }
  .question-row { grid-template-columns: 27px minmax(0, 1fr); padding: 18px 19px; }
  .page-heading h1 { font-size: 31px; }
  .detail-heading h1 { font-size: 27px; }
}
@media (max-width: 600px) {
  .topbar { gap: 10px; padding: 0 15px; }
  .brand { flex-shrink: 0; }
  .brand-mark { width: 29px; height: 29px; }
  .brand strong { font-size: 19px; }
  .breadcrumb { display: none; }
  .motion-toggle { width: 29px; min-height: 34px; }
  .toggle-indicator { width: 25px; height: 15px; }
  .toggle-indicator::after { width: 11px; height: 11px; }
  main { padding: 29px 20px 22px; }
  .page-heading { gap: 16px; margin-bottom: 22px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.8px; margin-bottom: 10px; }
  .page-heading h1 { font-size: 28px; letter-spacing: -.9px; }
  .edition { font-size: 9px; margin-left: 9px; padding: 4px 6px; vertical-align: 4px; }
  .page-description { font-size: 11px; margin-top: 10px; max-width: 270px; }
  .chapter-emblem { display: none; }
  body[data-view="library"] .page-heading h1 { font-size: 36px; }
  body[data-view="library"] .page-description { font-size: 12px; }
  body[data-view="library"] .page-heading { margin-bottom: 13px; }
  body[data-view="library"] .chapter-emblem { display: grid; width: 50px; height: 50px; }
  body[data-view="library"] .chapter-emblem > .icon { width: 24px; height: 24px; }
  body[data-view="subject"] .page-heading { padding-bottom: 20px; margin-bottom: 20px; }
  .catalog-tools { padding-bottom: 19px; gap: 12px; }
  .search-form { gap: 7px; }
  .search-box { height: 44px; padding: 0 11px; gap: 8px; }
  .search-box input { font-size: 11px; }
  .search-box > .icon { width: 16px; height: 16px; }
  .search-box kbd { display: none; }
  .primary-button { min-width: 64px; padding: 0 12px; font-size: 11px; }
  .primary-button > .icon { display: none; }
  .reset-button { font-size: 0; gap: 0; width: 19px; }
  .reset-button > .icon { width: 16px; height: 16px; }
  .results-heading { gap: 9px; padding: 23px 0 16px; }
  .results-heading h2 { font-size: 14px; }
  .results-heading > span { font-size: 9px; }
  .results-heading > .text-button { font-size: 10px; gap: 5px; }
  .results-heading > .text-button .icon { width: 14px; height: 14px; }
  .section-kicker { font-size: 7px; letter-spacing: 1.4px; margin-bottom: 7px; }
  .subject-card { grid-template-columns: 1fr; min-height: 419px; border-radius: 9px; }
  .subject-copy { padding: 25px 24px 24px; }
  .subject-card-heading { gap: 16px; font-size: 7px; letter-spacing: 1.3px; }
  .subject-card h3 { font-size: 34px; letter-spacing: -1.4px; margin: 18px 0 8px; }
  .subject-description { max-width: 240px; font-size: 12px; margin-bottom: 12px; line-height: 1.9; }
  .subject-card-count { font-size: 9px; gap: 14px; }
  .subject-card-count > span + span { padding-left: 14px; }
  .subject-card-footer { padding-top: 25px; }
  .subject-action { padding: 9px 12px; gap: 12px; font-size: 10px; }
  .subject-action > .icon { width: 15px; height: 15px; }
  .subject-art { width: 114%; right: -23%; top: 65%; }
  .subject-art-label { display: none; }
  .chapter-shortcuts { margin-top: 5px; }
  .shortcut-grid { border-radius: 7px; }
  .chapter-shortcut { padding: 17px 15px; min-height: 157px; }
  .shortcut-art { width: 49px; height: 31px; margin-bottom: 11px; }
  .shortcut-number { font-size: 7px; right: 14px; top: 25px; }
  .chapter-shortcut strong { font-size: 12px; line-height: 1.8; max-width: 128px; }
  .shortcut-count { font-size: 10px; padding-top: 12px; }
  .chapter-shortcut > .icon { bottom: 17px; right: 14px; width: 13px; height: 13px; }
  .chapter-grid { grid-template-columns: 1fr; gap: 13px; }
  .chapter-card { grid-template-columns: 91px minmax(0, 1fr); min-height: 139px; border-radius: 7px; }
  .chapter-card-body { padding: 17px 18px 15px; }
  .chapter-card-kicker { font-size: 10px; }
  .chapter-card h3 { font-size: 16px; margin: 8px 0 13px; line-height: 1.7; }
  .chapter-card-footer { font-size: 11px; }
  .chapter-card-footer > .icon { width: 15px; height: 15px; }
  .chapter-card-number { font-size: 46px; right: 5px; }
  .chapter-art { width: 67px; height: 48px; }
  #question-list { grid-template-columns: 1fr; gap: 15px; }
  .question-row { padding: 17px 19px 16px; border-radius: 7px; grid-template-columns: 25px minmax(0, 1fr); }
  .question-preview { height: 130px; }
  .question-thumbnail { padding: 11px; }
  .question-title { padding-top: 14px; }
  .question-name { font-size: 15px; margin-top: 7px; margin-bottom: 3px; }
  .question-context { font-size: 10px; }
  .question-code { font-size: 11px; }
  .question-topic { font-size: 11px; }
  .question-action { font-size: 11px; padding-top: 12px; margin-top: 14px; }
  .pagination { gap: 10px; font-size: 9px; }
  .pagination > div { gap: 10px; }
  .pagination .secondary-button { min-height: 33px; padding: 0 10px; font-size: 10px; }
  .library-meta { margin-top: 23px; padding-top: 19px; gap: 9px 20px; font-size: 8px; }
  .library-meta strong { font-size: 10px; }
  .library-meta .icon { width: 11px; height: 11px; }
  .page-footer { margin-top: 27px; padding-top: 17px; font-size: 8px; gap: 16px; }
  .page-footer > a { gap: 5px; }
  .page-footer .icon { width: 14px; height: 14px; }
  .page-footer > span { max-width: 93px; text-align: right; }
  .footer-divider { padding: 0 1px; }
  .detail-navigation { margin-bottom: 26px; gap: 10px; }
  .back-button { font-size: 11px; gap: 6px; }
  .back-button > .icon { width: 15px; height: 15px; }
  .neighbor-buttons { gap: 6px; }
  .neighbor-buttons .secondary-button { font-size: 11px; padding: 0 11px; min-height: 40px; }
  .detail-heading { margin-bottom: 22px; }
  .detail-heading h1 { font-size: 24px; line-height: 1.7; }
  .detail-label { display: none; }
  .detail-meta { font-size: 11px; margin-bottom: 10px; line-height: 1.9; }
  .detail-grid { gap: 21px; }
  .panel-heading { padding: 0 18px; min-height: 55px; }
  .panel-heading h2 { font-size: 12px; gap: 10px; }
  .panel-index { font-size: 9px; }
  .problem-image-wrap { padding: 25px 17px; }
  .image-footer { padding: 13px 18px; font-size: 9px; }
  #answer-content { padding: 23px 19px 28px; }
  .markdown { font-size: 13px; line-height: 2; }
  .markdown h1 { font-size: 17px; }
  .markdown h2, .markdown h3, .markdown h4 { font-size: 15px; }
  .markdown table { font-size: 11px; }
  .markdown th, .markdown td { padding: 9px 10px; }
  .solution-step .markdown { font-size: 12px; }
  .solution-notes { padding: 12px 14px; font-size: 12px; }
  .solution-figure { padding: 14px 4px 10px; }
  .solution-figure figcaption { font-size: 12px; }
  .solution-steps > h2 { font-size: 14px; }
  .solution-step > h3 { font-size: 12px; }
  .plot-legend { font-size: 11px; }
  .dialog-heading { padding: 10px 14px; font-size: 11px; gap: 15px; }
  .dialog-image-wrap { padding: 12px; }
}
@media (max-width: 360px) {
  main { padding-left: 16px; padding-right: 16px; }
  .subject-copy { padding-left: 21px; padding-right: 21px; }
  .subject-card h3 { font-size: 30px; }
  .subject-description { max-width: 205px; }
  .subject-art { width: 126%; right: -27%; }
  .chapter-card { grid-template-columns: 78px minmax(0, 1fr); }
  .chapter-card h3 { font-size: 15px; }
  .chapter-card-body { padding-left: 15px; padding-right: 15px; }
  .chapter-art { width: 60px; }
  .library-meta { column-gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
