:root {
  --ink: #15241f;
  --muted: #607069;
  --paper: #f5f1e9;
  --paper-2: #fcfaf5;
  --white: #fff;
  --pine: #0e5a46;
  --pine-dark: #083e31;
  --lime: #d8f06c;
  --sun: #ffca68;
  --coral: #ef765f;
  --line: #dcd8cd;
  --shadow: 0 22px 60px rgba(24, 51, 42, .10);
  --radius: 24px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-2);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pine); }
img, svg { max-width: 100%; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: white; padding: 10px 16px; border-radius: 12px; }
.skip-link:focus { top: 16px; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow { color: var(--pine); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }

.notice { background: var(--pine-dark); color: #d9eee6; font-size: .78rem; }
.notice .wrap { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.notice a { color: var(--lime); }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(252, 250, 245, .92); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(21, 36, 31, .09); }
.nav-shell { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 15px 15px 6px 15px; background: var(--pine); color: white; box-shadow: inset 0 -6px 14px rgba(0,0,0,.12); }
.brand-mark svg { width: 25px; height: 25px; }
.brand-copy strong { display: block; line-height: 1.05; letter-spacing: .05em; }
.brand-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: .66rem; letter-spacing: .12em; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 4px; margin-left: auto; }
.nav-links a { padding: 9px 12px; border-radius: 999px; font-size: .9rem; font-weight: 650; }
.nav-links a:hover { background: #e9eee7; }
.search-trigger { border: 1px solid var(--line); background: white; color: var(--ink); min-width: 142px; border-radius: 999px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; }
.search-trigger kbd { border: 0; background: var(--paper); color: var(--muted); padding: 2px 7px; border-radius: 6px; font-size: .7rem; }
.menu-button { display: none; border: 0; background: var(--pine); color: white; border-radius: 12px; padding: 9px 12px; }

.breadcrumbs { padding: 23px 0 0; color: var(--muted); font-size: .82rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 7px; color: #a6aaa2; }
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; }
.hero::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; right: -140px; top: -210px; background: radial-gradient(circle at 35% 35%, var(--lime), rgba(216,240,108,.08) 66%, transparent 67%); }
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(14,90,70,.16); border-radius: 50%; left: -120px; bottom: -150px; box-shadow: 0 0 0 42px rgba(14,90,70,.035), 0 0 0 84px rgba(14,90,70,.025); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 56px; align-items: end; z-index: 1; }
.hero h1 { max-width: 880px; margin: 12px 0 20px; font-family: "Noto Serif SC", "Songti SC", Georgia, serif; font-size: clamp(2.65rem, 6vw, 5.5rem); line-height: 1.03; letter-spacing: -.045em; font-weight: 760; }
.hero h1 em { color: var(--pine); font-style: normal; }
.hero-lede { max-width: 720px; margin: 0; color: #41514a; font-size: clamp(1.02rem, 1.6vw, 1.24rem); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 999px; padding: 12px 19px; font-weight: 760; border: 1px solid transparent; }
.button.primary { background: var(--pine); color: white; box-shadow: 0 12px 24px rgba(14,90,70,.19); }
.button.secondary { background: white; border-color: var(--line); }
.button:hover { transform: translateY(-1px); }
.hero-note { padding: 24px; border: 1px solid rgba(14,90,70,.18); border-radius: var(--radius); background: rgba(255,255,255,.72); box-shadow: var(--shadow); }
.hero-note strong { display: block; font-size: 1.02rem; margin-bottom: 8px; }
.hero-note p { margin: 0; color: var(--muted); font-size: .9rem; }
.mini-meta { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 18px; color: var(--muted); font-size: .76rem; }

.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 54px; padding: 0 0 100px; align-items: start; }
.content { min-width: 0; }
.content > section { margin: 0 0 68px; scroll-margin-top: 110px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head h2, .content h2 { margin: 0 0 20px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.2; letter-spacing: -.025em; }
.section-head h2 { margin-bottom: 0; }
.content h3 { margin: 30px 0 12px; font-size: 1.12rem; line-height: 1.45; }
.content p { margin: 0 0 18px; }
.content ul, .content ol { padding-left: 1.35em; }
.content li { margin-bottom: 9px; }
.aside { position: sticky; top: 112px; display: grid; gap: 16px; }
.aside-card { padding: 22px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.aside-card strong { display: block; margin-bottom: 10px; }
.aside-card p { margin: 0; color: var(--muted); font-size: .85rem; }
.toc { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; border-top: 1px solid var(--line); }
.toc li:first-child { border-top: 0; }
.toc a { display: block; padding: 9px 0; color: var(--muted); font-size: .84rem; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: -34px 0 72px; position: relative; z-index: 4; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; color: var(--pine); font-family: Georgia, serif; font-size: 1.75rem; }
.stat span { color: var(--muted); font-size: .8rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; min-height: 180px; padding: 24px; border: 1px solid var(--line); border-radius: 21px; background: white; transition: .2s ease; overflow: hidden; }
.card::after { content: "↗"; position: absolute; right: 18px; top: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--pine); background: var(--paper); opacity: .8; }
.card:hover { transform: translateY(-4px); border-color: rgba(14,90,70,.38); box-shadow: var(--shadow); }
.card h3 { margin: 20px 28px 8px 0; font-size: 1.12rem; }
.card p { color: var(--muted); font-size: .86rem; margin: 0; }
.card .tag { display: inline-block; color: var(--pine); background: #eaf3ed; padding: 4px 8px; border-radius: 99px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature { padding: 20px; background: var(--paper); border-radius: 18px; }
.feature .num { color: var(--coral); font-weight: 900; font-size: .78rem; }
.feature h3 { margin: 14px 0 8px; font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .82rem; }
.school-list { display: grid; gap: 11px; }
.school-row { display: grid; grid-template-columns: 50px minmax(170px, .85fr) 1.15fr 100px; gap: 16px; align-items: center; padding: 17px 18px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.school-row:hover { border-color: rgba(14,90,70,.5); }
.school-index { color: var(--coral); font: 800 1.1rem Georgia, serif; }
.school-name strong { display: block; }
.school-name small, .school-focus { color: var(--muted); font-size: .78rem; }
.school-city { font-size: .8rem; text-align: right; }

.decision-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: white; }
.decision-table th, .decision-table td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.decision-table tr:last-child td { border-bottom: 0; }
.decision-table th { background: var(--pine-dark); color: white; font-size: .78rem; letter-spacing: .04em; }
.decision-table td:first-child { width: 24%; font-weight: 750; }
.decision-table td { font-size: .88rem; }
.callout { position: relative; padding: 28px 28px 28px 76px; margin: 28px 0; background: #edf4e6; border-radius: 20px; border: 1px solid #d6e1cc; }
.callout::before { content: "!"; position: absolute; left: 25px; top: 26px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); font-weight: 900; }
.callout strong { display: block; margin-bottom: 4px; }
.callout p { margin: 0; font-size: .9rem; }
.quote { padding: 30px; background: var(--pine); color: white; border-radius: 4px 28px 28px 28px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 1.2rem; line-height: 1.7; }
.quote small { display: block; color: #bdd3ca; font-family: sans-serif; font-size: .74rem; margin-top: 12px; }
.steps { counter-reset: steps; display: grid; gap: 16px; }
.step { counter-increment: steps; display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.step::before { content: counter(steps, decimal-leading-zero); width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--lime); color: var(--pine-dark); font: 800 .9rem Georgia, serif; }
.step h3 { margin: 2px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: .88rem; }
.checklist { display: grid; gap: 10px; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 14px 16px 14px 48px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.checklist li::before { content: ""; position: absolute; left: 17px; top: 18px; width: 15px; height: 15px; border: 2px solid var(--pine); border-radius: 4px; }
.source-box { padding: 24px; border-radius: 20px; border: 1px solid rgba(14,90,70,.25); background: #f0f6f2; }
.source-box a { color: var(--pine); font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.source-box p { color: var(--muted); font-size: .86rem; margin: 8px 0 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 760; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: 5px; top: 17px; font-size: 1.4rem; color: var(--pine); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 22px; max-width: 820px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related a { display: block; padding: 18px; border-radius: 16px; background: var(--paper); border: 1px solid transparent; }
.related a:hover { border-color: var(--pine); }
.related small { display: block; color: var(--muted); margin-top: 5px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; }
.pill { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: var(--paper); color: var(--pine); font-size: .78rem; font-weight: 700; }

.worksheet { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: white; }
.worksheet-head { padding: 22px; background: var(--pine-dark); color: white; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.worksheet-head p { color: #bcd3ca; margin: 3px 0 0; font-size: .78rem; }
.worksheet-row { display: grid; grid-template-columns: 38px 1fr 160px; gap: 12px; align-items: center; padding: 15px 20px; border-top: 1px solid var(--line); }
.worksheet-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--pine); }
.worksheet-row input[type="text"] { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: var(--paper-2); }
.print-button { border: 1px solid rgba(255,255,255,.35); color: white; background: rgba(255,255,255,.08); border-radius: 999px; padding: 8px 14px; cursor: pointer; }

.site-footer { background: var(--ink); color: #dae2de; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, .75fr); gap: 44px; }
.footer-brand p { color: #9faea7; max-width: 360px; font-size: .87rem; }
.footer-col strong { display: block; color: white; margin-bottom: 13px; }
.footer-col a { display: block; color: #aebbb5; padding: 4px 0; font-size: .84rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; margin-top: 48px; color: #84928c; font-size: .75rem; }

.search-dialog { width: min(720px, calc(100% - 32px)); border: 0; border-radius: 24px; padding: 0; box-shadow: 0 40px 120px rgba(0,0,0,.3); }
.search-dialog::backdrop { background: rgba(8,24,19,.66); backdrop-filter: blur(4px); }
.search-panel { padding: 25px; }
.search-bar { display: flex; gap: 10px; }
.search-bar input { flex: 1; min-width: 0; border: 2px solid var(--pine); border-radius: 14px; padding: 13px 15px; }
.search-close { border: 0; width: 48px; border-radius: 14px; background: var(--paper); cursor: pointer; }
.search-results { max-height: 50vh; overflow: auto; margin-top: 16px; }
.search-result { display: block; padding: 14px; border-radius: 14px; border-top: 1px solid var(--line); }
.search-result:hover { background: var(--paper); }
.search-result strong { display: block; }
.search-result small { color: var(--muted); }
.search-empty { color: var(--muted); padding: 26px 12px; text-align: center; }

@media (max-width: 980px) {
  .nav-links { display: none; position: absolute; left: 20px; right: 20px; top: 82px; padding: 14px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .nav-links.open { display: grid; }
  .menu-button { display: block; }
  .search-trigger { margin-left: auto; min-width: 46px; width: 46px; padding: 10px; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-note { max-width: 600px; }
  .main-grid { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
  .toc-card { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .notice .wrap { justify-content: center; text-align: center; }
  .notice .notice-side { display: none; }
  .nav-shell { min-height: 68px; gap: 10px; }
  .brand-copy small { display: none; }
  .hero { padding: 54px 0 65px; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 4.1rem); }
  .hero-grid { gap: 32px; }
  .hero-actions .button { width: 100%; }
  .stat-strip { grid-template-columns: 1fr 1fr; margin-bottom: 54px; }
  .stat { padding: 17px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: 0; }
  .main-grid { padding-bottom: 64px; }
  .content > section { margin-bottom: 52px; }
  .card-grid, .card-grid.two, .feature-grid, .related, .aside { grid-template-columns: 1fr; }
  .school-row { grid-template-columns: 36px 1fr; }
  .school-focus, .school-city { grid-column: 2; text-align: left; }
  .decision-table { display: block; overflow-x: auto; }
  .decision-table th, .decision-table td { min-width: 150px; }
  .callout { padding-left: 25px; padding-top: 72px; }
  .worksheet-row { grid-template-columns: 30px 1fr; }
  .worksheet-row input[type="text"] { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { display: block; }
}

@media print {
  .notice, .site-header, .aside, .site-footer, .hero-actions, .print-button { display: none !important; }
  body { background: white; font-size: 12pt; }
  .hero { padding: 24px 0; }
  .hero::before, .hero::after { display: none; }
  .hero-grid, .main-grid { display: block; }
  .hero-note { box-shadow: none; margin-top: 20px; }
  .content > section { break-inside: avoid; }
  .card, .worksheet, .decision-table { box-shadow: none; }
}
