:root{--ink:#0d1734;--muted:#65708a;--line:#e2e7f0;--blue:#2767f5;--violet:#7139ee;--rose:#e13e59;--shadow:0 18px 55px rgba(21,38,78,.12)}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:96px}
body{margin:0;color:var(--ink);background:#fff;font:15px/1.75 Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
.shell{width:min(1240px,calc(100% - 40px));margin:auto}
.site-header{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.92);border-bottom:1px solid rgba(226,231,240,.85);backdrop-filter:blur(18px)}
.nav-wrap{height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:inline-flex;align-items:center;gap:11px;font-size:18px;font-weight:800;letter-spacing:-.02em}
.brand small{display:block;margin-top:-3px;color:#7b859b;font-size:10px;font-weight:500}
.brand-mark{position:relative;width:34px;height:34px;display:inline-block}
.brand-mark i{position:absolute;width:18px;height:27px;border:3px solid currentColor;border-radius:10px 5px 10px 5px;transform:rotate(8deg)}
.brand-mark i:first-child{left:2px;top:1px}
.brand-mark i:last-child{right:2px;bottom:1px;transform:rotate(-8deg)}
nav.top-nav{display:flex;gap:30px;color:#48546e;font-size:14px;font-weight:600}
nav.top-nav a:hover{color:var(--blue)}
nav.top-nav a.active{color:var(--blue)}
nav.top-nav a.active:after{display:block;height:2px;margin-top:5px;border-radius:2px;background:linear-gradient(90deg,var(--blue),var(--violet));content:""}
.nav-actions{display:flex;align-items:center;gap:12px}
.button{border:0;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-weight:700;transition:.2s ease}
.button:hover{transform:translateY(-2px)}
.button.small{padding:9px 16px;font-size:13px}
.button.large{min-height:52px;padding:0 25px}
.button.primary{color:#fff;background:linear-gradient(135deg,var(--blue),var(--violet));box-shadow:0 12px 28px rgba(64,79,231,.24)}
.button.ghost{color:var(--ink);background:#fff;border:1px solid var(--line)}
.button.full{width:100%}
.kicker{color:var(--blue);font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.progress{position:fixed;top:76px;left:0;right:0;height:3px;z-index:39}
.progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--blue),var(--violet))}
.guide-hero{position:relative;overflow:hidden;padding:78px 0 62px;background:radial-gradient(circle at 55% 0,#eef1ff 0,transparent 40%),linear-gradient(180deg,#fff,#f7f9fe)}
.glow{position:absolute;border-radius:50%;filter:blur(3px);opacity:.5}
.glow-one{width:480px;height:480px;background:radial-gradient(circle,rgba(94,56,237,.2),transparent 68%);right:-140px;top:-190px}
.hero-inner{position:relative;text-align:center;max-width:760px;margin:auto}
.hero-inner h1{margin:20px 0 16px;font-size:clamp(38px,4.6vw,60px);line-height:1.12;letter-spacing:-.05em}
.hero-inner h1 em{font-style:normal;background:linear-gradient(105deg,#2369f5,#8238f2 75%);-webkit-background-clip:text;color:transparent}
.hero-sub{margin:0 auto;color:#5e6b85;font-size:16px;max-width:620px}
.hero-meta{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:26px}
.hero-meta span{padding:7px 14px;border:1px solid #dce4f2;border-radius:999px;background:#fff;color:#5d6b86;font-size:12px;font-weight:600;box-shadow:0 5px 14px rgba(21,38,78,.05)}
.layout{display:grid;grid-template-columns:268px minmax(0,1fr);gap:54px;align-items:start;padding:64px 0 110px}
.toc{position:sticky;top:104px;max-height:calc(100vh - 130px);overflow:auto;padding:22px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(21,38,78,.05)}
.toc h4{margin:0 0 14px;font-size:12px;letter-spacing:.12em;color:#8a94a8;text-transform:uppercase}
.toc-search{width:100%;height:38px;margin-bottom:14px;padding:0 12px;border:1px solid #dde3ee;border-radius:10px;outline:0;font-size:13px}
.toc-search:focus{border-color:#8f9ff5;box-shadow:0 0 0 3px rgba(92,88,235,.1)}
.toc ol{margin:0;padding:0;list-style:none}
.toc li{margin:2px 0}
.toc a{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border-radius:10px;color:#4d5a75;font-size:13px;line-height:1.45;transition:.15s}
.toc a:hover{background:#f3f6fd;color:var(--ink)}
.toc a.active{background:linear-gradient(135deg,#eef3ff,#f3ecff);color:var(--blue);font-weight:700}
.toc-num{flex:none;width:22px;color:#aab3c6;font-size:11px;font-weight:800;font-variant-numeric:tabular-nums}
.toc a.active .toc-num{color:var(--blue)}
.toc-foot{margin-top:16px;padding-top:14px;border-top:1px dashed #e3e8f1;color:#98a1b3;font-size:11px;line-height:1.7}
.content{min-width:0}
.notice{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:44px;padding:20px;border:1px solid #dbe4f5;border-radius:18px;background:linear-gradient(135deg,#f9fbff,#f3f1ff)}
.notice b{display:block;margin-bottom:4px;font-size:12px;letter-spacing:.05em;color:#7c86a0;text-transform:uppercase}
.notice span{display:block;color:var(--ink);font-size:14px;font-weight:700;overflow-wrap:break-word}
.notice a{color:var(--blue)}
.chapter{margin:0 0 76px;padding-bottom:8px;scroll-margin-top:96px}
.ch-head{display:flex;gap:18px;align-items:flex-start;padding-bottom:22px;border-bottom:1px solid var(--line);margin-bottom:30px}
.ch-badge{flex:none;display:grid;place-items:center;width:54px;height:54px;border-radius:15px;color:#fff;font-size:19px;font-weight:800;background:linear-gradient(135deg,var(--blue),var(--violet));box-shadow:0 10px 22px rgba(64,79,231,.26)}
.ch-head .kicker{display:block;margin-bottom:6px}
.ch-h{margin:0;font-size:clamp(25px,2.6vw,34px);line-height:1.25;letter-spacing:-.035em}
.ch-body h2.sec-title{position:relative;margin:44px 0 16px;padding-left:15px;font-size:23px;letter-spacing:-.02em}
.ch-body h2.sec-title:before{position:absolute;left:0;top:.22em;bottom:.22em;width:4px;border-radius:4px;background:linear-gradient(180deg,var(--blue),var(--violet));content:""}
.ch-body h3.sub-title{margin:32px 0 12px;font-size:18px;color:#22304f}
.ch-body p{margin:0 0 15px;color:#3f4c66}
.ch-body strong{color:var(--ink)}
.ch-body ul,.ch-body ol{margin:0 0 18px;padding-left:0;list-style:none}
.ch-body ul>li{position:relative;margin:8px 0;padding-left:22px;color:#46536e;font-size:14.5px}
.ch-body ul>li:before{position:absolute;left:2px;top:.62em;width:7px;height:7px;border-radius:50%;background:linear-gradient(135deg,var(--blue),var(--violet));content:""}
.ch-body ol{counter-reset:n}
.ch-body ol>li{position:relative;margin:8px 0;padding-left:30px;color:#46536e;font-size:14.5px;counter-increment:n}
.ch-body ol>li:before{position:absolute;left:0;top:.1em;display:grid;place-items:center;width:21px;height:21px;border-radius:7px;background:#eef2ff;color:#3f5fd0;font-size:11px;font-weight:800;content:counter(n)}
.ch-body a{color:var(--blue);font-weight:600;border-bottom:1px solid rgba(39,103,245,.28)}
.ch-body a:hover{border-bottom-color:var(--blue)}
.ch-body hr{margin:34px 0;border:0;border-top:1px dashed #e3e8f1}
.callout{margin:0 0 22px;padding:16px 18px;border-radius:14px;background:#f4f7ff;border-left:4px solid var(--blue);color:#3f4c66;font-size:14px}
.callout p{margin:0}
.callout-key{border-left:0;padding:20px 22px;color:#eef1ff;background:radial-gradient(circle at 92% 8%,rgba(123,72,244,.5),transparent 40%),linear-gradient(135deg,#111c43,#2c3d86)}
.callout-key strong{color:#fff}
code{padding:2px 6px;border-radius:6px;background:#eef1f8;color:#2f4bb5;font-size:.92em;font-family:"JetBrains Mono",Consolas,monospace}
pre.code{margin:0 0 20px;padding:16px 18px;border-radius:14px;background:#101a35;color:#dbe4ff;overflow:auto;font-size:13px;line-height:1.7}
pre.code code{padding:0;background:none;color:inherit}
.table-wrap{margin:0 0 24px;overflow:auto;border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 24px rgba(21,38,78,.05)}
table{width:100%;border-collapse:collapse;font-size:14px;min-width:520px}
thead th{background:#f3f6fc;color:#33405e;font-weight:700;text-align:left;padding:13px 16px;border-bottom:1px solid var(--line);white-space:nowrap}
tbody td{padding:13px 16px;border-bottom:1px solid #eef1f7;color:#46536e;vertical-align:top}
tbody tr:last-child td{border-bottom:0}
tbody tr:nth-child(even){background:#fafbfe}
figure.shot{margin:8px 0 28px;border:1px solid #dce2ed;border-radius:16px;background:#fff;box-shadow:0 12px 34px rgba(25,42,81,.08);overflow:hidden;cursor:zoom-in;transition:.2s}
figure.shot:hover{transform:translateY(-4px);box-shadow:0 18px 42px rgba(25,42,81,.14)}
figure.shot img{display:block;width:100%}
figure.shot figcaption{padding:12px 16px;border-top:1px solid #edf0f5;color:#7c8699;font-size:12px}
.ch-nav{display:flex;justify-content:space-between;gap:16px;margin-top:34px;padding-top:22px;border-top:1px dashed #e3e8f1}
.ch-nav-link{flex:1;max-width:48%;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:#fff;transition:.2s}
.ch-nav-link:hover{border-color:#b9c8f6;box-shadow:0 10px 24px rgba(21,38,78,.08)}
.ch-nav-link.next{text-align:right}
.ch-nav-link small{display:block;color:#93a0b8;font-size:11px;font-weight:700;letter-spacing:.06em}
.ch-nav-link span{display:block;margin-top:5px;font-size:14px;font-weight:700;color:var(--ink);line-height:1.4}
.lock-screen{display:none;padding:70px 0 120px}
.lock-card{max-width:620px;margin:auto;padding:48px 44px;text-align:center;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:var(--shadow)}
.lock-symbol{display:grid;width:64px;height:64px;margin:0 auto 22px;place-items:center;color:#fff;border-radius:19px;background:linear-gradient(135deg,var(--blue),var(--violet));font-size:28px}
.lock-card h2{margin:0 0 10px;font-size:28px}
.lock-card p{margin:0 0 8px;color:var(--muted);font-size:14px}
.lock-card .lock-note{color:#98a1b3;font-size:12px}
.lock-card .button{margin-top:22px}
body.locked .layout{display:none}
body.locked .hero-meta{display:none}
body.locked .lock-screen{display:block}
body:not(.locked) .lock-screen{display:none}
.modal{position:fixed;inset:0;z-index:60;display:none;align-items:center;justify-content:center;padding:20px}
.modal.open{display:flex}
.modal-backdrop{position:absolute;inset:0;background:rgba(7,14,36,.7);backdrop-filter:blur(8px)}
.modal-card{position:relative;width:min(460px,100%);padding:38px;border-radius:23px;background:#fff;box-shadow:0 30px 100px rgba(6,13,34,.38)}
.modal-close{position:absolute;right:17px;top:14px;border:0;background:transparent;color:#8892a7;font-size:28px;cursor:pointer}
.modal-symbol{display:grid;width:52px;height:52px;margin-bottom:21px;place-items:center;color:#fff;border-radius:15px;background:linear-gradient(135deg,var(--blue),var(--violet));font-size:22px}
.modal-card h2{margin:8px 0 8px;font-size:27px}
.modal-card>p{color:var(--muted);font-size:13px}
.modal-card form{margin-top:24px}
.modal-card label{display:block;margin-bottom:7px;font-size:12px;font-weight:700}
.password-row{display:flex;border:1px solid #d8deea;border-radius:12px;overflow:hidden}
.password-row:focus-within{border-color:#6a67ef;box-shadow:0 0 0 3px rgba(92,88,235,.1)}
.password-row input{width:100%;height:49px;padding:0 14px;border:0;outline:0}
.password-row button{border:0;border-left:1px solid #e3e8f1;background:#f3f5f9;color:#59657d;padding:0 16px;cursor:pointer;white-space:nowrap;font-size:13px;font-weight:600}
.form-error{min-height:27px;padding-top:6px;color:var(--rose);font-size:11px}
.modal-card>small{display:block;margin-top:15px;color:#a0a8b8;text-align:center;font-size:11px}
.lightbox{position:fixed;inset:0;z-index:70;display:none;align-items:center;justify-content:center;flex-direction:column;padding:55px;background:rgba(6,11,28,.92)}
.lightbox.open{display:flex}
.lightbox img{max-width:95vw;max-height:82vh;border-radius:12px;box-shadow:0 25px 80px rgba(0,0,0,.45)}
.lightbox p{margin:14px 0 0;color:#fff}
.lightbox button{position:absolute;right:25px;top:16px;border:0;background:transparent;color:#fff;font-size:34px;cursor:pointer}
footer{padding:43px 0;border-top:1px solid var(--line)}
.footer-wrap{display:flex;align-items:center;justify-content:space-between;gap:20px}
.footer-wrap>div{display:flex;gap:24px;color:#6e7890;font-size:12px}
.footer-wrap p{margin:0;color:#a0a8b8;font-size:11px}
@media(max-width:1080px){.layout{grid-template-columns:1fr;gap:28px}.toc{position:static;max-height:none}}
@media(max-width:980px){nav.top-nav{display:none}.notice{grid-template-columns:1fr}}
@media(max-width:680px){.shell{width:min(100% - 26px,1240px)}.guide-hero{padding-top:48px}.hero-inner h1{font-size:34px}.layout{padding:40px 0 80px}.ch-head{gap:12px}.ch-badge{width:44px;height:44px;font-size:16px}.modal-card{padding:30px 22px}.ch-nav{flex-direction:column}.ch-nav-link{max-width:100%}.ch-nav-link.next{text-align:left}}
@media print{.site-header,.toc,.progress,footer,.lock-screen,.ch-nav{display:none!important}body{font-size:11.5pt}.chapter{break-inside:avoid-page}figure.shot{cursor:default;box-shadow:none}}
