:root {
  color-scheme: light;
  --paper: #f7f7f1;
  --white: #fffefa;
  --ink: #202921;
  --muted: #566055;
  --green: #284637;
  --dark: #20392e;
  --line: #dcdfd3;
  --mint: #e7efdf;
  --gold: #f4eddf;
  --gold-ink: #75431d;
  --sans: 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
  --serif: 'Noto Serif CJK SC', 'Songti SC', SimSun, Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.65 var(--sans); }
a { color: inherit; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
:focus-visible { outline: 2px solid #91692f; outline-offset: 4px; }
.skip { position: fixed; z-index: 20; left: 1rem; top: 1rem; transform: translateY(-180%); background: var(--white); padding: 10px 15px; }
.skip:focus { transform: translateY(0); }
.site-header { min-height: 76px; display: flex; align-items: center; gap: 32px; padding: 12px clamp(18px, 4vw, 64px); background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; background: var(--dark); color: #e5ebd4; font: italic 700 22px Georgia, serif; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .1em; }
.top-nav { display: flex; gap: 26px; margin-left: auto; white-space: nowrap; align-items: center; }
.top-nav a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 6px 0; border-bottom: 2px solid transparent; }
.top-nav a:hover, .top-nav a[aria-current] { color: var(--green); border-color: var(--green); }
.directory-button { display: none !important; }
.shell { width: min(1510px, 100%); margin: 0 auto; display: grid; grid-template-columns: 246px minmax(0, 1fr); padding: 0 clamp(18px, 4vw, 64px); }
.sidebar { align-self: start; position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow-y: auto; padding: 30px 18px 24px 0; scrollbar-width: thin; }
.directory-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.directory-head a { color: var(--muted); font-size: 12px; text-decoration: none; font-weight: 400; }
.directory-head a:hover { text-decoration: underline; }
.side-link, .side-group a { display: flex; align-items: center; gap: 9px; text-decoration: none; border-radius: 6px; padding: 9px 10px; font-size: 13px; line-height: 1.5; }
.side-link { margin-top: 6px; }
.side-group { border-bottom: 1px solid var(--line); padding: 2px 0; }
.side-group summary { list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 650; padding: 10px 3px; font-size: 13px; }
.side-group summary::-webkit-details-marker { display: none; }
.side-group summary::after { content: '›'; font-size: 19px; margin-left: auto; color: #667066; line-height: 1; }
.side-group[open] summary::after { transform: rotate(90deg); }
.side-group a { margin: 1px 0 3px; align-items: flex-start; color: var(--muted); }
.side-group a span:first-child { flex: 0 0 17px; font-size: 12px; font-variant-numeric: tabular-nums; }
.side-link:hover, .side-group a:hover, .side-link[aria-current], .side-group a[aria-current] { background: var(--mint); color: var(--green); }
.progress-box { margin-top: 20px; padding: 12px; background: #eeefe7; border: 1px solid var(--line); border-radius: 8px; }
.progress-label { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
progress { width: 100%; height: 7px; accent-color: var(--green); }
main { min-width: 0; margin: 0; padding: 30px 0 55px 28px; border-left: 1px solid var(--line); min-height: 78vh; }
main:focus { outline: none; }
.site-footer { border-top: 1px solid var(--line); width: min(1380px, calc(100% - 36px)); margin: 0 auto; padding: 20px 0; color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 10px; }
h1, h2, h3, p { margin: 0; }
h1 { font-family: var(--serif); font-size: clamp(32px, 4vw, 58px); line-height: 1.2; letter-spacing: -.04em; }
h2 { font-size: clamp(21px, 2.3vw, 29px); line-height: 1.35; }
h3 { font-size: 16px; line-height: 1.4; }
.muted { color: var(--muted); }
.micro { font-size: 12px; color: var(--muted); }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 335px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); }
.hero-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(26px, 4vw, 50px); }
.hero-text .kicker { margin-bottom: 14px; }
.hero-text p { margin: 14px 0 22px; max-width: 30em; color: var(--muted); }
.kicker { font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: .12em; }
.hero-visual { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; gap: 18px; color: #edf0e3; background: var(--dark); padding: clamp(23px, 4vw, 44px); text-decoration: none; }
.hero-visual::before { content: ''; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 32px, #ffffff07 32px 33px); }
.hero-visual:hover .preview { transform: translateY(-3px); }
.preview { position: relative; transition: transform .15s ease; overflow: hidden; display: grid; place-items: center; min-height: 168px; border: 1px solid #d4dfc768; border-radius: 10px; box-shadow: 0 15px 36px #0b160f61; background: #eaf0e1; }
.preview img { display: block; width: 100%; aspect-ratio: 1.72; object-fit: contain; }
.preview-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--dark); color: white; border: 2px solid #f6f8ef; font: 16px/1 var(--sans); padding-left: 2px; }
.hero-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.hero-caption small { color: #d3dfce; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button, .quiet-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--green); border-radius: 7px; font-weight: 650; line-height: 1.45; text-decoration: none; }
.button { background: var(--green); color: white; }
.button:hover { background: #354f40; }
.quiet-button { background: var(--white); color: var(--green); border-color: var(--line); }
.quiet-button:hover { border-color: var(--green); }
.quiet-button[aria-pressed="true"] { background: var(--mint); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 19px 0 30px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.metric { padding: 12px clamp(12px, 3vw, 26px); }
.metric + .metric { border-left: 1px solid var(--line); }
.metric strong { display: block; font-size: clamp(15px, 2vw, 24px); line-height: 1.3; }
.metric span { color: var(--muted); font-size: 12px; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 13px; }
.section-head a, .text-link { color: var(--green); font-size: 13px; text-underline-offset: .22em; }
.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.path-card { display: flex; align-items: flex-start; gap: 13px; padding: 15px; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 9px; }
.path-card:hover { border-color: var(--green); }
.path-card p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.path-number { flex: 0 0 36px; font: bold 16px/36px Georgia, serif; text-align: center; color: var(--green); background: var(--mint); border-radius: 7px; }
.path-arrow { flex-shrink: 0; margin-left: auto; color: var(--green); }
.page-head h1 { font-size: clamp(30px, 3.5vw, 45px); margin: 6px 0 9px; }
.page-head p { color: var(--muted); max-width: 65em; }
.breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.breadcrumb a { text-underline-offset: .2em; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(235px, 1fr); gap: 14px; align-items: start; margin-top: 20px; }
.video-shell { background: #181c19; border-radius: 10px; aspect-ratio: 16 / 9.5; overflow: hidden; }
video { display: block; width: 100%; height: 100%; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(14px, 2.6vw, 23px); }
.panel h2 { margin-bottom: 9px; }
.panel h3 { margin-bottom: 8px; }
.panel p + p { margin-top: 9px; }
.panel ul, .panel ol { margin: 8px 0 0; padding-left: 1.4em; }
.panel li + li { margin-top: 5px; }
.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.good { background: #edf3e7; border-color: #d4e2ce; }
.risk { background: var(--gold); border-color: #e7dbc7; }
.good h3 { color: var(--green); }
.risk h3 { color: var(--gold-ink); }
.marks { display: grid; gap: 4px; margin: 12px 0; }
.mark { display: flex; align-items: baseline; text-align: left; gap: 9px; width: 100%; padding: 7px 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.mark:hover { border-color: var(--green); }
.mark time, .row-time, .numeric { font-variant-numeric: tabular-nums; }
.mark time { color: var(--green); font-weight: 650; }
.lesson-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.lesson-nav > div { display: flex; flex-wrap: wrap; gap: 8px; }
.lesson-ref { margin-top: 8px; }
.video-status:empty { display: none; }
.video-status { padding: 10px 12px; background: var(--gold); color: var(--gold-ink); border-radius: 6px; margin-top: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 16px 0 11px; }
.filters input[type="search"] { width: min(390px, 100%); min-height: 41px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.filter-btn { font-size: 13px; }
.source-block { margin-top: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.source-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 15px; background: #edefe5; }
.source-heading h2 { font-size: 17px; }
.source-heading small { color: var(--muted); }
.video-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; padding: 11px 15px; text-decoration: none; align-items: center; }
.video-row + .video-row { border-top: 1px solid var(--line); }
.video-row:hover { background: var(--mint); }
.video-row p { line-height: 1.5; font-size: 12px; margin-top: 3px; color: var(--muted); }
.row-time { color: var(--green); font-size: 12px; line-height: 1.45; text-align: right; }
.case-card { display: flex; flex-direction: column; gap: 9px; }
.case-card .text-link { align-self: flex-start; margin-top: auto; }
.case-card p { font-size: 14px; }
.case-card .takeaway { border-left: 3px solid #a2b998; padding-left: 9px; }
.case-card .caution { border-left-color: #d1ad76; }
.manual-stack { display: grid; gap: 10px; }
.source-note { margin-top: 13px; color: var(--muted); font-size: 12px; }
.source-note a { color: var(--green); }
.rubric label, .quiz-option { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; }
.rubric label + label { margin-top: 8px; }
input[type="checkbox"], input[type="radio"] { margin: 5px 0 0; flex: 0 0 auto; accent-color: var(--green); }
.quiz { display: grid; gap: 10px; }
.quiz fieldset { min-width: 0; margin: 0; }
.quiz legend { max-width: 100%; padding: 0 4px; font-weight: 700; }
.quiz-option { padding: 5px 6px; border-radius: 5px; }
.quiz-option:has(input:checked) { background: var(--mint); }
.feedback { margin-top: 8px; color: var(--green); font-size: 14px; }
.feedback.incorrect { color: var(--gold-ink); }
.result:empty { display: none; }
.result { background: var(--mint); }
.empty { padding: 18px 0; color: var(--muted); }
@media (max-width: 1080px) {
  .shell { grid-template-columns: 200px minmax(0, 1fr); }
  main { padding-left: 18px; }
  .lesson-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; }
  .top-nav { grid-row: 2; grid-column: 1 / -1; margin: 0; gap: 16px; overflow-x: auto; }
  .top-nav a { font-size: 13px; }
  .directory-button { display: inline-flex !important; grid-column: 2; grid-row: 1; font-size: 12px; padding: 7px 9px; }
  .shell { display: block; }
  .sidebar { display: none; position: static; max-height: none; overflow: visible; padding: 16px 0; }
  .sidebar.is-open { display: block; }
  main { padding: 17px 0 38px; border-left: 0; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { padding: 18px; }
  .preview { min-height: 110px; }
  .hero-text { padding: 24px 18px; }
}
@media (max-width: 460px) {
  .path-grid, .two-up { grid-template-columns: 1fr; }
  .metric { padding: 10px 8px; }
  .source-heading, .video-row { padding-left: 9px; padding-right: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
