*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-height:100vh;font-family:"Microsoft YaHei UI","PingFang SC","Noto Sans CJK SC",sans-serif}
a,button{font:inherit}
.reading-progress{position:fixed;z-index:30;left:0;top:0;width:0;height:3px}
.page{width:min(1160px,calc(100% - 32px));margin:auto;padding:24px 0 72px}
.sitebar{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-radius:13px}
.brand{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:750;letter-spacing:.08em}
.brand-mark{position:relative;width:28px;height:28px;border-radius:50%;background:radial-gradient(circle at 34% 28%,#efffff 0 4%,#49e5f1 11%,#3047ae 38%,#611e75 64%,#050711 72%);box-shadow:0 0 14px rgba(58,220,242,.36)}
.brand-mark::after{content:"";position:absolute;inset:4px -4px;border:1px solid rgba(93,228,246,.36);border-radius:50%;transform:rotate(-22deg)}
.scheme-name{font:650 8px Consolas,monospace;letter-spacing:.15em;opacity:.48}
.layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:32px;align-items:start;margin-top:22px}
.toc{position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto;padding:17px 12px;border-radius:14px}
.toc-title{margin:0 8px 12px;font:700 9px Consolas,monospace;letter-spacing:.16em;opacity:.5}
.toc a{display:block;padding:7px 9px;border-radius:7px;text-decoration:none;font-size:12px;line-height:1.45;opacity:.58;transition:.18s}
.toc a:hover{opacity:1;transform:translateX(2px)}
.reading-card{min-width:0;overflow:hidden;border-radius:18px}
.document-hero{position:relative;isolation:isolate;min-height:158px;padding:32px 46px;display:flex;align-items:flex-end;border-radius:17px 17px 0 0;overflow:hidden}
.document-hero-content{position:relative;z-index:9;width:100%}
.document-kicker{display:block;margin-bottom:9px;font:700 8px Consolas,monospace;letter-spacing:.2em;opacity:.46}
.document-title{margin:0;font-size:30px;line-height:1.3;letter-spacing:-.025em}
.document-meta{display:flex;gap:18px;margin-top:13px;font-size:11px;line-height:1.5;opacity:.55}
.document{padding:42px 58px 78px}
.document h2{margin:49px 0 18px;font-size:21px;line-height:1.5;letter-spacing:-.012em}
.document h3{margin:31px 0 13px;font-size:17px;line-height:1.55}
.document p,.document li{font-size:15px;line-height:1.95;letter-spacing:.008em}
.document p{margin:15px 0}
.document ol,.document ul{margin:13px 0;padding-left:1.5em}
.document li{margin:7px 0;padding-left:.2em}
.document strong{font-weight:750}
.document a{text-underline-offset:3px}
.document code{padding:2px 5px;border-radius:5px;font:500 .88em Consolas,monospace}
.document table{width:100%;margin:24px 0;border-collapse:separate;border-spacing:0;font-size:13px;line-height:1.7;border-radius:10px;overflow:hidden}
.document th,.document td{padding:11px 13px;text-align:left;vertical-align:top;border-right:1px solid;border-bottom:1px solid}
.document th{font-size:13px;font-weight:750}.document td{font-size:13px}.document th:last-child,.document td:last-child{border-right:0}.document tr:last-child td{border-bottom:0}
.inner-flow-canvas{position:absolute;z-index:8;inset:0;width:100%;height:100%;pointer-events:none}

/* 01 简洁阅读：克制、清晰、接近成熟产品协议页 */
.theme-clean{color:#25262a;background:#f5f6f8}
.theme-clean .reading-progress{background:#4b72dd}
.theme-clean .sitebar{background:#fff;border:1px solid #e7e9ec;box-shadow:0 10px 30px rgba(30,36,45,.05)}
.theme-clean .toc{background:rgba(255,255,255,.72);border:1px solid #e6e9ec}
.theme-clean .toc a{color:#4b4f56}
.theme-clean .reading-card{background:#fff;border:1px solid #e6e8eb;box-shadow:0 18px 50px rgba(29,35,44,.06)}
.theme-clean .document-hero{background:linear-gradient(135deg,#fff,#f8f9fb);border-bottom:1px solid #eaecf0}
.theme-clean .document-title{color:#17181b;font-size:32px}
.theme-clean .document{max-width:850px;margin:auto;padding-top:48px}
.theme-clean .document h2{color:#1c1e22;padding-top:31px;border-top:1px solid #eceef1}
.theme-clean .document h3{color:#292c31}
.theme-clean .document p,.theme-clean .document li{color:#42454b}
.theme-clean .document strong{color:#202226}
.theme-clean .document a{color:#3767d6}
.theme-clean .document code{color:#31343a;background:#f1f3f5}
.theme-clean .document table{border:1px solid #e3e6e9;background:#fff}
.theme-clean .document th{background:#f4f6f8}.theme-clean .document th,.theme-clean .document td{border-color:#e5e8eb}

/* 01B 简洁纯阅读：无顶部栏、无目录、无额外界面结构 */
.theme-clean.clean-minimal{background:#fff}
.clean-minimal .sitebar,.clean-minimal .toc{display:none}
.clean-minimal .page{width:min(860px,calc(100% - 32px));padding:56px 0 90px}
.clean-minimal .layout{display:block;margin:0}
.clean-minimal .reading-card{border:0;border-radius:0;box-shadow:none}
.clean-minimal .document-hero{min-height:auto;padding:0 28px 34px;background:#fff;border:0;border-bottom:1px solid #eceef1;border-radius:0}
.clean-minimal .document-kicker{color:#7b7f87}
.clean-minimal .document{max-width:800px;padding:38px 28px 60px}
.clean-minimal .document h2{margin-top:45px;padding-top:29px}

/* 02 黑底双流光：加强可见度，标题框和章节线共同形成视觉标准 */
.theme-cosmic{color:#edfcff;background:radial-gradient(circle at 15% 15%,rgba(42,219,248,.1),transparent 28%),radial-gradient(circle at 86% 24%,rgba(169,71,245,.085),transparent 27%),linear-gradient(rgba(66,221,245,.022) 1px,transparent 1px),linear-gradient(90deg,rgba(66,221,245,.022) 1px,transparent 1px),#010406;background-size:auto,auto,28px 28px,28px 28px,auto}
.theme-cosmic .reading-progress{background:linear-gradient(90deg,#4cecff,#a957ff,#ffbe4d);box-shadow:0 0 10px #55eaff}
.theme-cosmic .page{width:min(1540px,calc(100% - 28px));padding-top:14px}
.theme-cosmic .sitebar{display:none}
.theme-cosmic .layout{display:block;margin-top:0}
.theme-cosmic .toc{position:fixed;z-index:6;left:max(14px,calc(50vw - 890px));top:14px;width:225px;padding:20px 13px 22px 5px;overflow-x:hidden;border-radius:0;background:transparent;border:0;border-right:1px solid rgba(94,220,241,.13);box-shadow:none}
.theme-cosmic .toc-title{margin-left:10px;color:#79e9f8;opacity:.55}
.theme-cosmic .toc a{position:relative;width:100%;max-width:100%;padding:6px 10px;color:#acd3da;font-size:11.5px;line-height:1.5;overflow-wrap:anywhere;word-break:break-word;border-radius:4px}
.theme-cosmic .toc a::before{content:"";position:absolute;left:0;top:10px;width:2px;height:10px;background:#59eaff;box-shadow:0 0 7px rgba(83,232,251,.48);opacity:0;transition:.18s}
.theme-cosmic .toc a:hover,.theme-cosmic .toc a.active{color:#effdff;background:linear-gradient(90deg,rgba(57,219,245,.075),transparent);transform:none;opacity:1}
.theme-cosmic .toc a:hover::before,.theme-cosmic .toc a.active::before{opacity:1}
.theme-cosmic .toc a.toc-sub{padding-left:22px;font-size:10.5px;color:#789ea6}
.theme-cosmic .toc::-webkit-scrollbar{width:3px}.theme-cosmic .toc::-webkit-scrollbar-thumb{background:rgba(89,229,248,.2);border-radius:3px}
.theme-cosmic .reading-card{background:rgba(3,8,12,.92);border:1px solid rgba(94,224,245,.2);box-shadow:0 25px 68px #000,inset 0 0 80px rgba(47,218,245,.03)}
.theme-cosmic .document-hero{margin:11px;border-radius:14px;background:radial-gradient(circle at 12% 50%,rgba(47,221,246,.13),transparent 30%),radial-gradient(circle at 88% 35%,rgba(161,75,245,.12),transparent 34%),#02070a;border:1px solid rgba(93,227,248,.16);box-shadow:0 0 22px rgba(50,219,245,.11),inset 0 0 32px rgba(65,222,247,.05)}
.theme-cosmic .document-kicker{color:#7eebfa;opacity:.65}.theme-cosmic .document-title{color:#f3feff;text-shadow:0 0 18px rgba(83,230,250,.22)}
.theme-cosmic .document-meta{color:#a8dce5;opacity:.65}
.theme-cosmic .document{max-width:880px;margin:auto}
.theme-cosmic .document h2{position:relative;color:#e9fbfe;padding:0 0 15px 20px;border:0;border-bottom:1px solid rgba(99,215,235,.13);background:transparent;font-size:20px;text-shadow:0 0 9px rgba(78,225,247,.12)}
.theme-cosmic .document h2::before{content:"";position:absolute;left:1px;top:.62em;width:6px;height:6px;border-radius:50%;background:#62edff;box-shadow:0 0 7px rgba(86,234,253,.75),0 0 16px rgba(157,79,245,.23)}
.theme-cosmic .document h2::after{content:"";position:absolute;left:0;bottom:-1px;width:110px;height:1px;background:linear-gradient(90deg,rgba(91,235,255,.72),rgba(157,81,246,.28),transparent);box-shadow:none}
.theme-cosmic .document h3{color:#c7f2f8}
.theme-cosmic .document p,.theme-cosmic .document li{color:rgba(210,232,237,.82)}
.theme-cosmic .document strong{color:#f3feff;text-shadow:0 0 6px rgba(87,229,249,.14)}
.theme-cosmic .document a{color:#70ebff}
.theme-cosmic .document code{color:#9ef4ff;background:rgba(64,221,246,.09)}
.theme-cosmic .document table{border:1px solid rgba(97,222,243,.19);background:rgba(1,6,9,.72)}
.theme-cosmic .document th{color:#eafdff;background:rgba(43,202,230,.09)}.theme-cosmic .document td{color:rgba(205,228,233,.78)}.theme-cosmic .document th,.theme-cosmic .document td{border-color:rgba(95,215,236,.14)}

/* 03 星图目录：紧凑科技感，适合功能型页面 */
.theme-starmap{color:#e9f8fb;background:linear-gradient(rgba(71,222,246,.028) 1px,transparent 1px),linear-gradient(90deg,rgba(71,222,246,.028) 1px,transparent 1px),#03070a;background-size:28px 28px}
.theme-starmap .reading-progress{background:#63edff;box-shadow:0 0 7px #63edff}
.theme-starmap .sitebar{background:#050b10;border:1px solid rgba(96,215,236,.16);border-radius:6px}
.theme-starmap .layout{grid-template-columns:250px minmax(0,1fr)}
.theme-starmap .toc{border-radius:0;background:#050b0f;border-left:1px solid rgba(92,231,250,.42)}
.theme-starmap .toc a{color:#b8e3ea;border-left:1px solid transparent;border-radius:0}.theme-starmap .toc a:hover{border-left-color:#62edff;background:linear-gradient(90deg,rgba(58,220,245,.09),transparent)}
.theme-starmap .reading-card{border-radius:6px;background:rgba(4,10,14,.94);border:1px solid rgba(94,211,231,.12)}
.theme-starmap .document-hero{border-radius:5px 5px 0 0;background:linear-gradient(115deg,rgba(42,202,229,.1),transparent 58%);border-bottom:1px solid rgba(95,219,240,.14)}
.theme-starmap .document-title{font-size:29px;color:#effdff;letter-spacing:.015em}.theme-starmap .document-meta{color:#9bdce7}
.theme-starmap .document{padding:45px 58px 78px}
.theme-starmap .document h2{color:#dffaff;padding:13px 15px;border:1px solid rgba(92,216,237,.14);background:linear-gradient(90deg,rgba(45,204,231,.075),transparent 72%);font-size:19px}
.theme-starmap .document h3{color:#afeaf4;font-size:16px}
.theme-starmap .document p,.theme-starmap .document li{color:rgba(199,223,228,.74);font-size:14px;line-height:2}
.theme-starmap .document strong{color:#effdff}.theme-starmap .document a{color:#6aeaff}.theme-starmap .document code{color:#9ef3ff;background:rgba(58,216,241,.08)}
.theme-starmap .document table{border:1px solid rgba(94,213,233,.15)}.theme-starmap .document th{color:#dcf9fd;background:rgba(43,202,229,.07)}.theme-starmap .document td{color:rgba(198,222,227,.73)}.theme-starmap .document th,.theme-starmap .document td{border-color:rgba(94,211,232,.12)}

/* 04 黑曜沉浸：最大字号、暖灰正文、弱装饰 */
.theme-obsidian{color:#f0eee9;background:#050505}
.theme-obsidian .reading-progress{background:#c8b273}
.theme-obsidian .sitebar{background:#090909;border:1px solid #242424}.theme-obsidian .brand-mark{filter:saturate(.55)}
.theme-obsidian .layout{grid-template-columns:190px minmax(0,1fr);gap:48px}
.theme-obsidian .toc{border-radius:0;background:transparent;border-right:1px solid #202020}.theme-obsidian .toc a{color:#aaa49c}
.theme-obsidian .reading-card{background:#080808;border:1px solid #202020;border-radius:12px}
.theme-obsidian .document-hero{background:linear-gradient(135deg,#0c0c0c,#080808);border-bottom:1px solid #222;border-radius:11px 11px 0 0}
.theme-obsidian .document-title{font-family:Georgia,"Songti SC","SimSun",serif;font-size:34px;font-weight:600;color:#f2efe8;letter-spacing:.01em}.theme-obsidian .document-meta{color:#aaa398}
.theme-obsidian .document{max-width:800px;margin:auto;padding:58px 54px 90px}
.theme-obsidian .document h2{font-family:Georgia,"Songti SC","SimSun",serif;color:#ebe7df;font-size:22px;font-weight:600;padding-bottom:14px;border-bottom:1px solid #262626}
.theme-obsidian .document h3{color:#d6d0c8;font-size:18px}
.theme-obsidian .document p,.theme-obsidian .document li{color:#bab6af;font-size:17px;line-height:2.05;letter-spacing:.018em}
.theme-obsidian .document strong{color:#eeeae3}.theme-obsidian .document a{color:#cbbb8c}.theme-obsidian .document code{color:#d8cda9;background:#151515}
.theme-obsidian .document table{border:1px solid #292929;background:#0a0a0a}.theme-obsidian .document th{color:#e7e1d8;background:#131313}.theme-obsidian .document td{color:#b7b2aa}.theme-obsidian .document th,.theme-obsidian .document td{border-color:#292929}

@media(max-width:1100px){.theme-cosmic .layout{display:grid;grid-template-columns:1fr;gap:18px}.theme-cosmic .toc{position:relative;left:auto;top:auto;width:100%;max-height:230px}.theme-cosmic .reading-card{grid-column:auto}}
@media(max-width:880px){.layout{grid-template-columns:1fr!important;gap:18px}.toc{position:relative;top:auto;max-height:230px}.theme-cosmic .toc{border-right:0;border-bottom:1px solid rgba(94,220,241,.13)}.document{padding:38px 28px 62px!important}.document-hero{padding:28px 26px}.document-title{font-size:27px!important}}
@media(max-width:560px){.page{width:calc(100% - 18px);padding-top:9px}.sitebar{height:50px}.scheme-name{display:none}.document-hero{min-height:145px}.document-meta{display:grid;gap:3px}.document h2{font-size:19px!important}.document h3{font-size:16px!important}.document p,.document li{font-size:15px!important}.document table{display:block;overflow:auto}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.inner-flow-canvas{display:none}}

/* 所有保留方案统一为纯黑底 */
body.theme-clean,body.theme-cosmic,.theme-clean.clean-minimal{color:#edf5f7;background:#000}
.theme-clean .sitebar{background:#000;border-color:#20272b;box-shadow:none}
.theme-clean .toc{background:#000;border-color:#1e272b}
.theme-clean .toc-title{color:#91a7ad}
.theme-clean .toc a{color:#98a8ad}
.theme-clean .toc a:hover{color:#f0f7f8;background:#080b0d}
.theme-clean .reading-card{background:#000;border-color:#1e262a;box-shadow:none}
.theme-clean .document-hero,.clean-minimal .document-hero{background:#000;border-color:#20272b}
.theme-clean .document-title{color:#f3f7f8}
.theme-clean .document-kicker{color:#89a2a9}
.theme-clean .document-meta{color:#9eacb0}
.theme-clean .document h2{color:#f0f5f6;border-color:#20272a}
.theme-clean .document h3{color:#d7e0e2}
.theme-clean .document p,.theme-clean .document li{color:#b9c3c6}
.theme-clean .document strong{color:#f0f5f6}
.theme-clean .document a{color:#6edff2}
.theme-clean .document code{color:#c5e9ef;background:#0b1114}
.theme-clean .document table{color:#bec9cc;background:#000;border-color:#252d31}
.theme-clean .document th{color:#edf5f7;background:#080c0e}
.theme-clean .document th,.theme-clean .document td{border-color:#252d31}
.theme-cosmic{background:#000}
.theme-cosmic .reading-card{background:#000}
.theme-cosmic .document-hero{background:#000}

/* 简洁阅读目录：左侧章节轨道 */
.theme-clean:not(.clean-minimal) .sitebar{display:none}
.theme-clean:not(.clean-minimal) .page{width:min(1500px,calc(100% - 32px))}
.theme-clean:not(.clean-minimal) .layout{display:block;margin-top:0}
.theme-clean:not(.clean-minimal) .reading-card{width:clamp(680px,46.5vw,1200px);max-width:100%;margin:0 auto}
.theme-clean:not(.clean-minimal) .toc{position:fixed;z-index:6;left:max(16px,calc(50vw - 890px));top:24px;width:250px;padding:26px 10px 26px 0;overflow-x:hidden;border:0;border-radius:0;background:transparent}
.theme-clean:not(.clean-minimal) .toc-title{margin:0 0 18px 54px;color:#718087;font-size:8px;letter-spacing:.2em;opacity:.72}
.theme-clean:not(.clean-minimal) .toc nav{position:relative;padding:2px 0 10px}
.theme-clean:not(.clean-minimal) .toc nav::before{content:"";position:absolute;left:20px;top:4px;bottom:8px;width:1px;background:linear-gradient(180deg,transparent,rgba(102,222,241,.3) 8%,rgba(115,132,139,.18) 88%,transparent)}
.theme-clean:not(.clean-minimal) .toc a.toc-main{position:relative;display:block;width:100%;max-width:100%;min-height:42px;margin:0 0 3px;padding:7px 8px 7px 54px;overflow-wrap:anywhere;word-break:break-word;border-radius:0;color:#849399;font-size:11.5px;line-height:1.55;opacity:.72;transform:none}
.theme-clean:not(.clean-minimal) .toc a.toc-main::before{content:attr(data-index);position:absolute;z-index:2;left:7px;top:7px;width:27px;height:27px;display:grid;place-items:center;border:1px solid #283337;border-radius:50%;color:#718188;background:#000;font:600 7px Consolas,monospace;letter-spacing:.04em;transition:.22s}
.theme-clean:not(.clean-minimal) .toc a.toc-main::after{content:"";position:absolute;left:34px;top:20px;width:12px;height:1px;background:#273337;transition:.22s}
.theme-clean:not(.clean-minimal) .toc a.toc-main:hover,.theme-clean:not(.clean-minimal) .toc a.toc-main.active{color:#eff9fb;opacity:1;background:linear-gradient(90deg,transparent 12%,rgba(62,206,230,.07),transparent 92%)}
.theme-clean:not(.clean-minimal) .toc a.toc-main:hover::before,.theme-clean:not(.clean-minimal) .toc a.toc-main.active::before{color:#eefdff;border-color:#68e9fb;box-shadow:0 0 8px rgba(86,231,250,.36),inset 0 0 9px rgba(65,217,242,.1)}
.theme-clean:not(.clean-minimal) .toc a.toc-main:hover::after,.theme-clean:not(.clean-minimal) .toc a.toc-main.active::after{background:#67e9fb;box-shadow:0 0 6px rgba(84,231,250,.45)}
.theme-clean:not(.clean-minimal) .toc a.toc-sub{display:none}
@media(max-width:1360px){.theme-clean:not(.clean-minimal) .layout{display:grid;grid-template-columns:1fr;gap:18px}.theme-clean:not(.clean-minimal) .toc{position:relative;left:auto;top:auto;width:100%;max-height:230px;border-bottom:1px solid #20272a}.theme-clean:not(.clean-minimal) .reading-card{width:clamp(680px,46.5vw,1200px);max-width:100%}}

/* 所有版本统一采用参考图正文比例 */
.theme-cosmic .reading-card,.clean-minimal .reading-card{width:clamp(680px,46.5vw,1200px);max-width:100%;justify-self:center;margin-left:auto;margin-right:auto}
.reading-card .document{width:100%;max-width:none;margin-left:0;margin-right:0;padding-left:32px;padding-right:32px}
.reading-card .document-hero{padding-left:32px;padding-right:32px}
@media(max-width:880px){.theme-clean:not(.clean-minimal) .reading-card,.theme-cosmic .reading-card,.clean-minimal .reading-card{width:100%}}

/* 站内接入：顶部品牌作为返回首页的链接 */
.sitebar .brand{color:inherit;text-decoration:none}
.sitebar a.brand:hover{opacity:.78}
