:root{--navy:#142d4f;--deep:#0b1e38;--blue:#244c74;--gold:#e2bd72;--ink:#182c43;--muted:#50637a;--line:#dae3ed;--panel:#fff;--surface:#f0f4f8;--focus:#1363a0;font:16px/1.58 "Inter","PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--surface)}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
a{color:var(--blue);text-underline-offset:.2em}
button,input{font:inherit}
button{cursor:pointer;border-radius:7px;min-height:40px;background:var(--navy);color:white;border:1px solid var(--navy);padding:.45rem .8rem;font-size:.9rem;font-weight:650}
button:disabled{cursor:wait;opacity:.6}
button.outline{color:var(--navy);background:white;border-color:#bacbdd}
button.outline:hover{background:#edf4fb}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.skip{position:absolute;left:1rem;top:-5rem;z-index:5;background:white;padding:.7rem}
.skip:focus{top:1rem}
.masthead{background:var(--deep);color:white;border-bottom:3px solid var(--gold)}
.mast-inner{max-width:1470px;margin:auto;min-height:74px;display:flex;align-items:center;justify-content:space-between;padding:.6rem clamp(1rem,3vw,2.75rem);gap:1rem}
.identity{display:flex;gap:.85rem;align-items:center;text-decoration:none;color:white;font-weight:700;font-size:1rem;line-height:1.25}
.identity img{object-fit:contain}
.identity small{display:block;letter-spacing:.13em;font-size:.69rem;color:#c4d3e7;margin-top:.3rem}
.year{padding:.28rem .65rem;border:1px solid #657892;border-radius:6px;font-size:.88rem;white-space:nowrap;color:#f1f5fb}
.layout{max-width:1470px;margin:0 auto;padding:1.75rem clamp(1rem,3vw,2.75rem) 2rem;display:grid;grid-template-columns:minmax(220px,265px) minmax(0,1fr);gap:1.5rem;align-items:start}
.sidebar{position:sticky;top:1rem;max-height:calc(100dvh - 2rem);overflow:auto;border:1px solid var(--line);background:var(--panel);border-radius:12px;scrollbar-width:thin}
.navigator{padding:1rem .85rem}
.navigator label{display:block;font-size:.98rem;font-weight:750;margin:.05rem .18rem .75rem}
.navigator label span{display:inline-block;margin-left:.35rem;font-size:.72rem;color:var(--muted);letter-spacing:.08em}
.navigator input{width:100%;padding:.55rem .65rem;border:1px solid #bfcede;border-radius:7px;background:#f9fbfd;color:var(--ink);font-size:.9rem}
.nav-group{list-style:none;padding:0;margin:.7rem 0}
.nav-group-title{font-size:.82rem;font-weight:700;color:var(--muted);padding:.45rem .6rem .25rem}
.nav-link{display:block;text-decoration:none;color:var(--ink);padding:.48rem .62rem;border-radius:6px;line-height:1.2;font-size:.94rem;font-weight:650;border-left:3px solid transparent}
.nav-link span{display:block;color:var(--muted);font-size:.83rem;margin-top:.22rem;font-weight:450}
.nav-link:hover{background:#f1f5fa}
.nav-link[aria-current]{background:#e7eef8;border-left-color:#436d99;color:var(--navy)}
#no-results{font-size:.86rem}
.hero{display:grid;place-items:center;min-height:340px;background:#f7f3ec url("./campus.jpg") center / cover no-repeat;color:var(--deep);border-radius:12px;overflow:hidden;margin:0 0 1.25rem}
.hero-copy{width:100%;padding:clamp(2.5rem,6vw,5.5rem) clamp(1.25rem,5vw,4rem);text-align:center;background:linear-gradient(180deg,transparent 6%,rgba(255,255,255,.8) 28%,rgba(255,255,255,.83) 73%,transparent 95%)}
.hero h1{font-size:clamp(2rem,4.7vw,4.35rem);letter-spacing:-.035em;line-height:1.13;margin:0 auto}
.hero-en{font-size:clamp(1.05rem,1.9vw,1.5rem);font-weight:700;letter-spacing:.08em;margin:.55rem 0 0}
.hero-year{color:#24486e;font-weight:650;font-size:.94rem;margin:1.05rem 0 .3rem}
.hero-summary{font-size:.94rem;color:var(--ink);margin:.4rem auto 0;max-width:56ch}
.chapter{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.chapter-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.4rem clamp(1rem,3vw,2.2rem);border-bottom:1px solid var(--line);background:#f9fbfe}
.category{font-size:.82rem;color:var(--blue);font-weight:650}
.chapter h2{margin:.2rem 0 0;font-size:clamp(1.42rem,2.4vw,2.2rem);line-height:1.2}
.english-title{font-size:1rem;color:var(--muted);margin:.3rem 0 0}
.chapter-body{padding:clamp(1rem,3vw,2.2rem);min-height:10rem;overflow-wrap:anywhere}
.chapter-body > :first-child{margin-top:0}
.chapter-body > :last-child{margin-bottom:0}
.chapter-body p{margin:.7rem 0 1rem}
.chapter-body h3{line-height:1.35;margin:1.65rem 0 .6rem;color:var(--navy);font-size:1.18rem}
.chapter-body h3:empty{display:none}
.chapter-body ul,.chapter-body ol{padding-inline-start:1.5rem}
.chapter-body li{margin:.45rem 0}
.table-scroll{overflow-x:auto;margin:1.15rem 0;border:1px solid var(--line);border-radius:8px}
.table-scroll .table-scroll{margin:.65rem 0}
table{border-collapse:collapse;width:100%;font-size:.94rem;line-height:1.55}
table:has(tr > :nth-child(3)){min-width:580px}
th,td{padding:.65rem .75rem;vertical-align:top;text-align:left;border-bottom:1px solid var(--line);border-right:1px solid var(--line)}
th:last-child,td:last-child{border-right:0}
tbody:last-child tr:last-child > *{border-bottom:0}
th{background:#e9f0f8;color:#17365b;font-weight:700}
tbody tr:nth-child(even) td{background:#f7f9fc}
td p:last-child,th p:last-child{margin-bottom:0}
td p:first-child,th p:first-child{margin-top:0}
.updated-field,[contenteditable]{white-space:pre-wrap}
[contenteditable]{box-shadow:inset 0 0 0 1px #a0b8d3;cursor:text;background:#f8fbff!important;border-radius:3px;min-height:1.2em}
[contenteditable]:focus{outline:2px solid var(--focus);outline-offset:-2px}
.editbar{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:.85rem;flex-wrap:wrap;background:#e9f1fc;padding:.65rem clamp(1rem,3vw,2.2rem);border-bottom:1px solid #c9d9eb}
.editbar p{margin:0;color:#284463;font-size:.89rem}
.actions,#pagination{display:flex;gap:.45rem;flex-wrap:wrap}
.status{margin:0;padding:.65rem clamp(1rem,3vw,2.2rem);color:#254d71;background:#edf4fc}
.status:empty{display:none}
.status.error{background:#fff0ed;color:#8a211a}
.chapter-footer{border-top:1px solid var(--line);padding:1rem clamp(1rem,3vw,2.2rem);display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap;color:var(--muted);font-size:.86rem}
#pagination a{border:1px solid var(--line);border-radius:6px;padding:.32rem .58rem;text-decoration:none}
#pagination a:hover{background:#edf4fb}
.foot{display:flex;align-items:center;justify-content:space-between;gap:.7rem;font-size:.85rem;color:var(--muted);padding:.9rem .1rem}
.foot img{height:auto}
@media(max-width:820px){.layout{grid-template-columns:minmax(0,1fr);gap:1rem}.sidebar{position:static;max-height:235px}.navigator input{max-width:420px}.nav-group{display:flex;flex-wrap:wrap;gap:.32rem}.nav-group-title{width:100%}.nav-link{border-left-width:2px;padding:.42rem .48rem;background:#f7f9fc}}
@media(max-width:545px){.hero{min-height:290px;background-size:auto 100%}.chapter-bar{align-items:flex-start;flex-wrap:wrap}.editbar{position:static}.mast-inner{gap:.5rem}.identity{font-size:.86rem}.identity small{font-size:.65rem}.year{font-size:.75rem}}
@media print{.masthead,.sidebar,.foot,.editbar,#edit,#pagination,.hero{display:none!important}.layout{display:block;padding:0}.chapter{border:0}.chapter-body,.chapter-bar{padding:.5rem}.table-scroll{overflow:visible}table{min-width:0!important}}
.grade-band{background:#fff;border-bottom:1px solid var(--line)}
.grade-inner{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;max-width:1470px;margin:auto;padding:.7rem clamp(1rem,3vw,2.75rem)}
.grade-inner a{display:flex;align-items:baseline;justify-content:center;gap:.55rem;padding:.5rem .4rem;border:1px solid var(--line);border-radius:7px;text-decoration:none;color:var(--navy);background:#f9fbfe}
.grade-inner a:hover{background:#e7eef8}
.grade-inner a[aria-current]{background:var(--navy);color:#fff;border-color:var(--navy)}
.grade-inner a span{color:inherit;font-size:.85rem}
@media(max-width:570px){.grade-inner{gap:.35rem}.grade-inner a{flex-direction:column;align-items:center;gap:0}.year{white-space:normal;text-align:right}.hero h1{max-width:18ch}}
@media print{.grade-band{display:none}}

.appendix-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:8px;overflow:hidden;gap:1px;background:var(--line)}
.appendix-grid a{display:block;padding:.8rem;background:#f7f9fc;text-decoration:none;color:var(--navy);font-weight:600}
.appendix-grid a:hover{background:#e9f0f8}
@media(max-width:690px){.appendix-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){.appendix-grid{grid-template-columns:1fr}}

.full-syllabus{margin-top:2.4rem;padding-top:1.3rem;border-top:1px solid var(--line)}
.chapter-body .full-syllabus-title{font-size:clamp(1.3rem,2.8vw,1.8rem);margin-top:0}
.full-syllabus-title [lang="zh-CN"],.summary-heading [lang="zh-CN"],.syllabus-heading-zh{font-size:.83em;color:var(--muted);font-weight:600}
.syllabus-document h4{color:var(--navy);font-size:1.06rem;margin:1.4rem 0 .55rem}
.syllabus-document > p:first-child{margin-top:0}
.syllabus-version{border:1px solid var(--line);border-radius:8px;margin:1rem 0;overflow:hidden}
.syllabus-version summary{cursor:pointer;background:#e9f0f8;color:var(--navy);padding:.65rem .9rem;font-weight:700}
.syllabus-version summary [lang="zh-CN"]{margin-left:1.15rem;font-weight:500;color:var(--muted)}
.syllabus-version[open] summary{border-bottom:1px solid var(--line)}
.syllabus-version .syllabus-document{padding:.9rem clamp(.75rem,2.8vw,1.25rem)}
