
:root{--bg:#f5f6f2;--paper:#fff;--ink:#233c38;--muted:#78847f;--accent:#267467;--line:#dfe6df}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.9 'Microsoft YaHei',system-ui,sans-serif}button,a{font:inherit}button{cursor:pointer}a{color:var(--accent);text-decoration:none}header{background:#fffefbeF;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5;backdrop-filter:blur(14px)}.bar{max-width:1280px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:15px 32px;gap:16px}.brand{font-weight:700;letter-spacing:2px}.brand b{display:inline-grid;place-items:center;width:32px;height:32px;background:var(--accent);color:white;border-radius:50%;margin-right:12px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}button{border:1px solid var(--line);border-radius:7px;background:white;padding:7px 14px;color:var(--ink);font-size:13px}button.primary{background:var(--accent);color:white;border-color:var(--accent)}#status{font-size:12px;color:var(--muted);margin-right:8px}.layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:50px;max-width:1200px;margin:50px auto;padding:0 28px}aside{position:sticky;top:110px;height:fit-content;font-size:13px}aside .label{font-size:11px;color:var(--muted);letter-spacing:3px;margin-bottom:16px}nav a{display:block;padding:9px 12px;border-left:2px solid var(--line);color:#64716a}nav a.main{font-weight:700;color:var(--ink)}nav a:hover{border-color:var(--accent);background:#e8efe8}aside .note{margin-top:32px;color:var(--muted);line-height:1.8;font-size:12px}.hero{margin-bottom:32px}.eyebrow{color:var(--accent);font-size:12px;letter-spacing:3px}.hero h1{font-size:38px;line-height:1.4;margin:14px 0}.hero p{font-size:14px;color:var(--muted);margin:8px 0}.chips{display:flex;gap:10px;margin-top:22px}.chips span{font-size:11px;border:1px solid var(--line);padding:3px 12px;border-radius:20px;color:#68756d}.sheet{padding:36px 44px;background:var(--paper);border:1px solid var(--line);border-radius:12px;margin-bottom:32px;box-shadow:0 8px 24px #20383004}.sheet>.chapter{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding-bottom:22px;margin-bottom:26px}.chapter .num{font-size:12px;background:#e9f1ea;padding:4px 11px;border-radius:5px;color:var(--accent)}h2{font-size:24px;line-height:1.6;margin:34px 0 20px}.chapter h2{margin:0;font-size:28px}h3{font-size:18px;margin:28px 0 12px;color:var(--accent)}h4{font-size:16px;line-height:1.9;margin:16px 0 12px}p{margin:14px 0}ul,ol{padding-left:24px;margin:12px 0}li{padding-left:4px;margin:10px 0}li::marker{color:#82a397}.text{white-space:pre-wrap;overflow-wrap:anywhere}.tier{border-top:1px solid var(--line);padding-top:20px}.figure{margin:24px 0;max-width:100%;display:block;height:auto;border-radius:5px}.image-tools{display:none}body.editing .image-tools{display:block}.image-tools input{width:100%;padding:10px;border:1px solid var(--line)}[data-edit]{border-radius:3px}body.editing [data-edit]{outline:1px dashed #bad4c5;outline-offset:5px;cursor:text}body.editing [data-edit]:focus{outline:2px solid var(--accent);background:#f7fcf7}footer{color:var(--muted);font-size:12px;padding:5px 0 40px}dialog{border:1px solid var(--line);border-radius:12px;padding:28px;max-width:430px}dialog::backdrop{background:#172a2460}.dialog-actions{display:flex;justify-content:flex-end;gap:8px}#importFile{display:none}@media(max-width:800px){.bar{padding:12px 18px;align-items:flex-start}.brand{font-size:13px;white-space:nowrap}.brand b{display:none}.actions{justify-content:flex-end}.layout{display:block;margin:25px auto;padding:0 16px}aside{position:static;margin-bottom:28px}nav{display:flex;overflow-x:auto;gap:8px}nav a{white-space:nowrap;border-left:0;border-bottom:2px solid var(--line)}nav a.sub{display:none}aside .note,aside .label{display:none}.hero h1{font-size:29px}.sheet{padding:23px 22px}.chapter h2{font-size:24px}#status{width:100%;text-align:right}button{padding:6px 10px}}@media print{header,aside,.hero,.image-tools,footer{display:none}.layout{display:block;margin:0;padding:0}.sheet{border:0;box-shadow:none;padding:0;page-break-after:always}body{background:white}}

.table-scroll{width:100%;overflow-x:auto;margin:24px 0;border-radius:5px}
.hp-table{width:100%;min-width:640px;border-collapse:collapse;table-layout:fixed;background:white;color:#252525;font-size:14px;line-height:1.6}
.hp-table caption{caption-side:top;border:1px solid #555;border-bottom:0;padding:8px 12px;font-weight:700;background:#fff;font-size:16px;color:#252525}
.hp-table col:nth-child(1){width:24%}.hp-table col:nth-child(2),.hp-table col:nth-child(3){width:14%}.hp-table col:nth-child(4){width:48%}
.hp-table th,.hp-table td{border:1px solid #555;padding:7px 9px;vertical-align:middle;font-weight:400}
.hp-table thead th{text-align:center;background:#f5f5f5}.hp-table tbody th{text-align:left}.hp-table tbody td:nth-of-type(1),.hp-table tbody td:nth-of-type(2){text-align:center}
.hp-table td:last-child{text-align:left}.hp-table [data-edit]{min-height:1.6em}
body.editing .hp-table [data-edit]{outline-offset:2px}body.editing .hp-table caption{outline-offset:-4px}
@media print{.table-scroll{overflow:visible}.hp-table{min-width:0;font-size:10px}.hp-table tr{break-inside:avoid}}

[hidden]{display:none!important}.button{display:inline-block;border:1px solid var(--line);border-radius:7px;background:white;padding:7px 14px;color:var(--ink);font-size:13px;line-height:1.9;white-space:nowrap}.button:hover{border-color:var(--accent);color:var(--accent)}.reader-loading{padding:25px 0;color:var(--muted)}.reader-page [data-edit]{cursor:inherit}.reader-page .actions{flex-wrap:nowrap}@media(max-width:800px){.reader-page #status{width:auto;max-width:120px}.reader-page .actions{min-width:0;flex-wrap:wrap;gap:10px}.reader-page .button{padding:6px 10px}}
header.topbar{background:#142136;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px max(24px,calc((100vw - 1100px)/2));border-bottom:3px solid #db8931;position:sticky;top:0;backdrop-filter:none}
header.topbar .brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#fff;line-height:1.35;font-weight:700;letter-spacing:1px}
header.topbar .brand small{display:block;font-size:12px;color:#b8c5d8;letter-spacing:2px;margin-top:4px;font-weight:400}
header.topbar .brand-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid #9ca9bb;border-radius:3px;font-size:24px;color:#efad57;background:none}
header.topbar nav{display:flex;gap:18px;flex-wrap:wrap}
header.topbar nav a{color:#d5deea;text-decoration:none;font-size:14px}
header.topbar nav a:hover{color:#fff}
.voice-line{display:flex;align-items:center;gap:12px;margin:34px 0 20px}
.voice-line h2{margin:0}
button.ship-voice{width:34px;height:34px;padding:0;border-radius:50%;border:1px solid #c9d7d1;background:#f4f8f6;display:inline-grid;place-items:center;flex:none}
button.ship-voice::before{content:"";width:0;height:0;border-style:solid;border-width:6px 0 6px 10px;border-color:transparent transparent transparent #267467;margin-left:2px}
button.ship-voice.playing::before{width:11px;height:12px;margin:0;border:0;background:linear-gradient(#db8931,#db8931) left center/3px 12px no-repeat,linear-gradient(#db8931,#db8931) right center/3px 12px no-repeat}
body.reader-page{--bg:#f4f6fa;--paper:#fff;--ink:#1c2b40;--muted:#5d6b7e;--accent:#db8931;--line:#dde3eb;--navy:#142136;--blue:#245ca8;background:var(--bg);color:var(--ink);font:16px/1.7 system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif}
body.reader-page a{color:var(--blue);text-underline-offset:4px}
body.reader-page header.topbar{z-index:30;padding:18px max(24px,calc((100vw - 1480px)/2))}
body.reader-page header.topbar .brand{position:relative;z-index:1;color:#fff}
body.reader-page .layout{max-width:1480px;margin:0 auto;display:grid;grid-template-columns:280px minmax(0,1fr);gap:42px;padding:32px 24px 64px}
body.reader-page aside{position:sticky;top:24px;align-self:start;height:auto;font-size:14px}
body.reader-page .side-head{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:16px;font-size:14px;font-weight:600}
body.reader-page .side-head span+span{font-size:12px;color:var(--muted);font-weight:400}
body.reader-page #nav{display:grid;gap:4px;padding:18px 0}
body.reader-page #nav a{display:block;padding:10px 12px;border-left:3px solid transparent;border-bottom:0;color:var(--muted);text-decoration:none;font-size:14px;background:none}
body.reader-page #nav a.main{font-weight:700;color:var(--navy)}
body.reader-page #nav a.sub{padding-left:22px;font-size:13px}
body.reader-page #nav a:hover{color:var(--navy);background:#e6edf6;border-left-color:var(--accent)}
body.reader-page .side-note{margin-top:24px;border-top:1px solid var(--line);padding:20px 10px;font-size:14px;color:var(--muted);line-height:1.7}
body.reader-page .breadcrumb{color:var(--muted);font-size:14px;margin-bottom:24px}
body.reader-page .breadcrumb span{margin:0 10px;color:#9aa4b1}
body.reader-page .intro{margin-bottom:28px}
body.reader-page .eyebrow{letter-spacing:2px;font-size:12px;font-weight:700;color:var(--blue)}
body.reader-page .intro h1{font-family:"Noto Serif SC","Source Han Serif SC","Songti SC",SimSun,serif;font-size:43px;line-height:1.25;letter-spacing:.02em;font-weight:700;margin:10px 0 14px;color:#203044}
body.reader-page .intro p{color:var(--muted);font-size:16px;margin:8px 0}
body.reader-page .sheet{border-radius:6px;box-shadow:none;border:1px solid var(--line)}
body.reader-page h2,body.reader-page h3,body.reader-page h4{color:var(--ink)}
body.reader-page h3{color:var(--navy)}
body.reader-page .chapter .num{background:#fff5e6;color:#a55d12}
body.reader-page li::marker{color:#c9842f}
button.ship-voice::before{border-color:transparent transparent transparent #db8931}
@media(max-width:800px){
  body.reader-page .layout{display:block;margin:0 auto;padding:20px 16px 48px}
  body.reader-page aside{position:static;margin-bottom:24px}
  body.reader-page .side-note{display:none}
  body.reader-page #nav{display:flex;overflow-x:auto;gap:6px;padding:12px 0}
  body.reader-page #nav a{flex:none;white-space:nowrap;border:1px solid var(--line);border-left:1px solid var(--line);border-radius:4px;padding:8px 12px}
  body.reader-page #nav a.sub{display:none}
  body.reader-page .intro h1{font-size:32px}
}
