:root{
  --guide-navy:#0d2138;
  --guide-blue:#1b4fa8;
  --guide-blue-dark:#123a80;
  --guide-cyan:#0e93ae;
  --guide-green:#16704f;
  --guide-red:#b9382f;
  --guide-amber:#96620e;
  --guide-paper:#fff;
  --guide-tint:#f3f6fa;
  --guide-line:#d7e0ea;
  --guide-muted:#5c6e82;
}

html{scroll-padding-top:96px}
body.guide-page{background:#f5f7fb;color:var(--guide-navy);font-size:16px;line-height:1.8}
.guide-page .site-header{box-shadow:0 1px 0 rgba(13,33,56,.04)}
.guide-page .nav-links a[aria-current="page"]{color:var(--primary-dark);font-weight:800}

.guide-hero{
  border-bottom:1px solid var(--guide-line);
  background:
    linear-gradient(115deg,rgba(13,33,56,.98),rgba(18,58,128,.95) 62%,rgba(14,147,174,.9)),
    #0d2138;
  color:#fff;
  overflow:hidden;
  position:relative;
}
.guide-hero::before{
  background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
  background-size:36px 36px;
  content:"";
  inset:0;
  mask-image:linear-gradient(90deg,#000,transparent 85%);
  pointer-events:none;
  position:absolute;
}
.guide-hero::after{
  background:rgba(102,224,239,.2);
  border-radius:50%;
  content:"";
  filter:blur(2px);
  height:420px;
  position:absolute;
  right:-150px;
  top:-220px;
  width:420px;
}
.guide-hero-inner{margin:auto;max-width:1320px;padding:54px 32px 52px;position:relative;z-index:1}
.breadcrumbs{align-items:center;color:#c8d6e5;display:flex;flex-wrap:wrap;font-size:14px;gap:9px;margin-bottom:22px}
.breadcrumbs a{color:#fff;text-decoration:none}
.breadcrumbs a:hover{text-decoration:underline}
.guide-hero .eyebrow{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.26);color:#a9eff6}
.guide-hero h1{color:#fff;font-size:clamp(34px,4.7vw,56px);letter-spacing:-.035em;margin:20px 0 14px;max-width:920px}
.guide-hero .lead{color:#d9e5f0;font-size:18px;line-height:1.8;max-width:900px}
.guide-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.guide-meta span{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:9px;color:#edf6ff;font-size:14px;padding:7px 11px}
.guide-switcher{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.guide-switch-card{align-items:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:12px;color:#e9f3fb;display:flex;gap:14px;min-height:48px;padding:10px 15px;text-decoration:none}
.guide-switch-card:hover{background:rgba(255,255,255,.15);text-decoration:none}
.guide-switch-card[aria-current="page"]{background:#fff;border-color:#fff;color:var(--guide-blue-dark);box-shadow:0 12px 28px rgba(0,0,0,.15)}
.guide-switch-card span{font-size:15px;font-weight:750}
.guide-switch-card strong{background:rgba(86,150,255,.2);border-radius:999px;font-size:14px;padding:2px 8px}

.guide-shell{align-items:start;display:grid;gap:34px;grid-template-columns:minmax(264px,300px) minmax(0,920px);justify-content:center;margin:auto;max-width:1320px;padding:42px 28px 86px}
.guide-sidebar{min-width:0;position:sticky;top:94px}
.toc-toggle{display:none}
.toc-panel{background:#fff;border:1px solid var(--guide-line);border-radius:18px;box-shadow:0 14px 38px rgba(13,33,56,.07);max-height:calc(100vh - 118px);overflow:hidden;padding:20px 10px 12px}
.toc-panel-head{align-items:center;display:flex;justify-content:space-between;padding:0 10px 14px}
.toc-panel-head>div{display:flex;flex-direction:column;gap:1px}
.toc-panel-head strong{color:var(--guide-navy);font-size:18px}
.toc-kicker{color:var(--guide-cyan);font-size:14px;font-weight:800;letter-spacing:.16em}
.toc-count{background:#edf3fa;border-radius:999px;color:var(--guide-muted);font-size:14px;padding:3px 9px}
.toc-search-label{color:var(--guide-navy);display:block;font-size:14px;font-weight:700;padding:0 10px 5px}
.toc-search-wrap{align-items:center;background:#f5f8fb;border:1px solid #d6e0ea;border-radius:10px;display:flex;margin:0 10px;padding:0 10px;transition:border-color .2s,box-shadow .2s}
.toc-search-wrap:focus-within{border-color:#7798ee;box-shadow:0 0 0 3px rgba(55,97,255,.12)}
.toc-search-wrap>span{color:#687a8f;font-size:20px;line-height:1}
.toc-search-wrap input{background:transparent;border:0;color:var(--guide-navy);font:inherit;font-size:15px;min-height:42px;min-width:0;outline:0;padding:8px;width:100%}
.toc-search-wrap input::placeholder{color:#7f8fa1}
.toc-search-wrap kbd{background:#fff;border:1px solid #d2dbe5;border-bottom-width:2px;border-radius:5px;color:#6b7b8d;font-family:inherit;font-size:14px;padding:1px 6px;white-space:nowrap}
.toc-search-status{color:#6b7b8d;font-size:14px;margin:8px 10px 4px}
.guide-toc{max-height:calc(100vh - 296px);overflow:auto;overscroll-behavior:contain;padding:5px 6px 10px 4px;scrollbar-color:#bbc8d6 transparent;scrollbar-width:thin}
.toc-group{border-top:1px solid #edf1f5;padding:10px 0 4px}
.toc-group:first-child{border-top:0}
.toc-part,.toc-chapter{border-left:3px solid transparent;border-radius:0 8px 8px 0;color:#42556b;display:block;font-size:14px;line-height:1.55;padding:7px 9px;text-decoration:none;transition:background .16s,color .16s,border-color .16s}
.toc-part{color:var(--guide-navy);font-size:15px;font-weight:800}
.toc-group ul{list-style:none;margin:2px 0 0;padding:0}
.toc-group li{margin:0}
.toc-chapter{padding-left:17px}
.toc-part:hover,.toc-chapter:hover{background:#eff4fc;color:var(--guide-blue-dark);text-decoration:none}
.toc-part.is-active,.toc-chapter.is-active{background:#e8efff;border-left-color:#3761ff;color:#173e98;font-weight:800}
.toc-group[hidden],.toc-group li[hidden]{display:none}

.guide-content{background:var(--guide-paper);border:1px solid var(--guide-line);border-radius:22px;box-shadow:0 16px 48px rgba(13,33,56,.07);min-width:0;padding:42px 50px 62px}
.guide-download{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:20px 0 0;font-size:15px}
.guide-download a{display:inline-block;border-radius:10px;background:#1b4fa8;color:#fff;padding:12px 18px;font-size:16px;font-weight:700;text-decoration:none}
.guide-download a:hover{background:#123a80}
.guide-download span{color:#c9dcf5;font-size:15px}
.guide-reading-note{align-items:flex-start;background:#eff5ff;border:1px solid #d5e2ff;border-radius:13px;color:#334b68;display:flex;font-size:15px;gap:12px;margin-bottom:44px;padding:14px 16px}
.guide-reading-note strong{color:#173e98;white-space:nowrap}
.guide-part{border-bottom:1px solid #e4eaf0;margin-bottom:58px;padding-bottom:58px;scroll-margin-top:100px}
.guide-part:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.guide-content .part__no{color:var(--guide-cyan);font-size:14px;font-weight:800;letter-spacing:.22em;margin-bottom:5px}
.guide-content .part__title{color:var(--guide-navy);font-size:34px;letter-spacing:-.02em;line-height:1.3;margin:0}
.guide-content .part__lede{color:var(--guide-muted);font-size:16px;line-height:1.85;margin:13px 0 0}
.guide-content .part__rule{background:linear-gradient(90deg,var(--guide-blue),var(--guide-cyan));height:3px;margin:22px 0 34px;width:70px}
.guide-content h2,.guide-content h3,.guide-content h4,.guide-content h5,.guide-content h6{color:var(--guide-navy);font-weight:800;position:relative;scroll-margin-top:100px;text-wrap:balance}
.guide-content .guide-heading-level-2{border-bottom:1px solid var(--guide-line);font-size:24px;line-height:1.45;margin:48px 0 18px;padding-bottom:11px}
.guide-content .part__rule+.guide-heading-level-2{margin-top:0}
.guide-content .guide-heading-level-3{color:var(--guide-blue-dark);font-size:19px;line-height:1.5;margin:34px 0 13px}
.guide-content .guide-heading-level-4{font-size:17px;line-height:1.55;margin:28px 0 11px}
.heading-anchor{color:#91a1b3;font-size:17px;font-weight:600;margin-left:8px;opacity:0;text-decoration:none;transition:opacity .15s,color .15s}
.guide-content h2:hover .heading-anchor,.guide-content h3:hover .heading-anchor,.guide-content h4:hover .heading-anchor,.guide-content h5:hover .heading-anchor,.guide-content h6:hover .heading-anchor,.heading-anchor:focus{color:var(--guide-blue);opacity:1;text-decoration:none}
.guide-content p{font-size:16px;margin:0 0 16px}
.guide-content ol,.guide-content ul{font-size:16px;margin:0 0 18px;padding-left:26px}
.guide-content li{margin:7px 0}
.guide-content strong,.guide-content b{font-weight:800}
.guide-content a:not(.heading-anchor):not(.guide-image-link){text-decoration:underline;text-decoration-color:#adbee0;text-underline-offset:3px}

.guide-table-wrap{border:1px solid #ccd7e2;border-radius:13px;margin:20px 0 24px;max-width:100%;overflow:auto;overscroll-behavior-x:contain}
.guide-table-wrap:focus{box-shadow:0 0 0 3px rgba(55,97,255,.12);outline:1px solid #7798ee}
.guide-content table{background:#fff;border-collapse:collapse;font-size:15px;margin:0;min-width:680px;width:100%}
.guide-content th,.guide-content td{border:0;border-bottom:1px solid #dbe3eb;border-right:1px solid #e2e8ef;line-height:1.7;padding:13px 15px;text-align:left;vertical-align:top}
.guide-content th:last-child,.guide-content td:last-child{border-right:0}
.guide-content tr:last-child td{border-bottom:0}
.guide-content th{background:#edf2f7;color:#243b55;font-size:14px;font-weight:800}
.guide-content tbody tr:nth-child(even){background:#f9fbfd}
.guide-content td.eg{color:var(--guide-blue-dark);font-size:14px}

.guide-content .box,.guide-content .say{background:#f1f5f9;border-left:4px solid var(--guide-blue);border-radius:0 10px 10px 0;color:#263c55;font-size:15px;line-height:1.8;margin:20px 0 24px;padding:15px 18px}
.guide-content .box--warn{background:#fff2f0;border-left-color:var(--guide-red)}
.guide-content .box--bound{background:#edf7f2;border-left-color:var(--guide-green)}
.guide-content .box--tip,.guide-content .say{background:#edf8fa;border-left-color:var(--guide-cyan)}
.guide-content .box b.lbl{color:var(--guide-blue);display:block;font-size:14px;letter-spacing:.13em;margin-bottom:5px}
.guide-content .box--warn b.lbl{color:var(--guide-red)}
.guide-content .box--bound b.lbl{color:var(--guide-green)}
.guide-content .box--tip b.lbl{color:#087f95}
.guide-content .ui,.guide-content .key{background:#fff;border:1px solid #b9c8d8;border-radius:5px;color:var(--guide-blue-dark);display:inline-block;font-size:14px;font-weight:750;line-height:1.5;padding:1px 6px;white-space:nowrap}
.guide-content .key{border-bottom-width:2px}
.guide-content .path{color:#52677e;font-family:Consolas,"Microsoft YaHei",sans-serif;font-size:14px;overflow-wrap:anywhere}

.guide-content ol.steps{counter-reset:guide-step;display:block;gap:0;list-style:none;margin-top:0;min-width:0;padding-left:0}
.guide-content ol.steps>li{counter-increment:guide-step;min-height:34px;padding-left:46px;position:relative}
.guide-content ol.steps>li::before{align-items:center;background:var(--guide-blue);border-radius:50%;color:#fff;content:counter(guide-step);display:flex;font-size:14px;font-weight:800;height:30px;justify-content:center;left:0;position:absolute;top:0;width:30px}
.guide-content .expect,.guide-content .ifnot{background:#eff8f3;border-left:3px solid var(--guide-green);color:#2c4739;display:block;font-size:15px;line-height:1.75;margin-top:10px;padding:10px 13px}
.guide-content .ifnot{background:#fff8eb;border-left-color:var(--guide-amber);color:#584523}
.guide-content .expect>b:first-child,.guide-content .ifnot>b:first-child{color:var(--guide-green);display:block;font-size:14px;letter-spacing:.1em;margin-bottom:2px}
.guide-content .ifnot>b:first-child{color:var(--guide-amber)}

.guide-content figure{margin:26px 0 30px}
.guide-image-link{background:#eaf0f6;border:1px solid #c7d3df;border-radius:13px;display:block;overflow:hidden;text-decoration:none}
.guide-image-link:hover{box-shadow:0 12px 30px rgba(13,33,56,.12)}
.guide-content .shot{display:block;height:auto;width:100%}
.guide-content figcaption{color:var(--guide-muted);font-size:14px;line-height:1.7;margin-top:9px}
.guide-content .slot{align-items:center;background:repeating-linear-gradient(135deg,#f7fafc,#f7fafc 12px,#f1f5f9 12px,#f1f5f9 24px);border:1px dashed #aebdcb;display:flex;flex-direction:column;justify-content:center;min-height:180px;padding:24px;text-align:center}
.guide-content .slot__id,.guide-content .slot__what,.guide-content .slot__how{font-size:14px}

.guide-content .chain{align-items:center;display:flex;flex-wrap:wrap;font-size:14px;gap:7px;margin:19px 0 24px}
.guide-content .chain span.n,.guide-content .chain span.t,.guide-content .chain span.x{border:1px solid var(--guide-blue);background:#eef4fc;color:var(--guide-blue-dark);font-size:14px;font-weight:750;padding:6px 9px}
.guide-content .chain span.t{background:#edf7f2;border-color:var(--guide-green);color:var(--guide-green)}
.guide-content .chain span.x{background:#fff2f0;border-color:var(--guide-red);color:var(--guide-red)}
.guide-content .chain span.a{color:#8393a5}
.guide-content .qr{border:1px solid #cbd6e1;border-radius:12px;margin:18px 0 22px;padding:18px}
.guide-content .qr h4{color:var(--guide-blue-dark);font-size:17px;margin:0 0 12px}
.guide-content .qr p,.guide-content .qr li{font-size:15px}

.back-to-top{background:var(--guide-navy);border:0;border-radius:50%;bottom:24px;box-shadow:0 9px 24px rgba(13,33,56,.24);color:#fff;cursor:pointer;font-size:22px;height:48px;opacity:0;pointer-events:none;position:fixed;right:24px;transform:translateY(8px);transition:opacity .2s,transform .2s;visibility:hidden;width:48px;z-index:45}
.back-to-top.is-visible{opacity:1;pointer-events:auto;transform:translateY(0);visibility:visible}
.back-to-top:focus-visible{outline:3px solid #8fcff0;outline-offset:3px}

@media(max-width:1020px){
  html{scroll-padding-top:24px}
  .guide-page .site-header{position:relative}
  .guide-part,.guide-content h2,.guide-content h3,.guide-content h4,.guide-content h5,.guide-content h6{scroll-margin-top:24px}
  .guide-shell{display:block;max-width:940px;padding-top:28px}
  .guide-sidebar{margin-bottom:22px;position:relative;top:auto}
  .toc-toggle{align-items:center;background:#fff;border:1px solid var(--guide-line);border-radius:12px;color:var(--guide-navy);cursor:pointer;display:flex;font-size:16px;font-weight:800;justify-content:space-between;min-height:50px;padding:10px 15px;width:100%}
  .toc-toggle[aria-expanded="true"]{border-radius:12px 12px 0 0}
  .toc-toggle[aria-expanded="true"] span:last-child{transform:rotate(180deg)}
  .toc-panel{border-radius:0 0 14px 14px;display:none;max-height:62vh}
  .toc-panel.is-open{display:block}
  .guide-toc{max-height:calc(62vh - 180px)}
  .guide-content{padding-left:42px;padding-right:42px}
}

@media(max-width:820px){
  .guide-hero-inner{padding:44px 22px}
  .guide-hero h1{font-size:36px}
  .guide-shell{padding-left:18px;padding-right:18px}
  .guide-content{border-radius:16px;padding:30px 26px 48px}
  .guide-content .part__title{font-size:29px}
  .guide-content .guide-heading-level-2{font-size:22px}
  .guide-content .guide-heading-level-3{font-size:18px}
}

@media(max-width:520px){
  .guide-hero-inner{padding-left:16px;padding-right:16px}
  .guide-hero h1{font-size:31px}
  .guide-hero .lead{font-size:17px}
  .guide-switcher{display:grid;grid-template-columns:1fr 1fr}
  .guide-switch-card{justify-content:space-between;min-width:0;padding:10px 11px}
  .guide-shell{padding-left:10px;padding-right:10px}
  .guide-content{border-left:0;border-radius:12px;border-right:0;padding:25px 18px 42px}
  .guide-reading-note{display:block}
  .guide-reading-note strong{display:block;margin-bottom:4px}
  .guide-content .part__title{font-size:27px}
  .guide-content .guide-heading-level-2{font-size:21px;margin-top:42px}
  .guide-content .guide-heading-level-3{font-size:18px}
  .guide-content p,.guide-content ol,.guide-content ul{font-size:15px}
  .heading-anchor{opacity:.58}
  .guide-content .box,.guide-content .say{padding:13px 14px}
  .back-to-top{bottom:16px;right:14px}
}

@media(min-width:1021px){.toc-panel{display:block!important}}
@media(prefers-reduced-motion:reduce){.guide-switch-card,.toc-part,.toc-chapter,.back-to-top{transition:none}}
@media print{
  .site-header,.guide-hero,.guide-sidebar,.back-to-top,.site-footer,.guide-reading-note{display:none!important}
  body.guide-page{background:#fff}
  .guide-shell{display:block;max-width:none;padding:0}
  .guide-content{border:0;box-shadow:none;padding:0}
  .guide-part{break-before:page}
  .guide-part:first-child{break-before:auto}
}
