/* 深维陪练用户手册 v1.28 —— 官网 KoachOS 视觉标准（离线自足） */
:root{
  --navy:#14243A;
  --blue:#3678F6;
  --blue-deep:#255ECB;
  --blue-soft:#A9C5FB;
  --blue-tint:#EAF1FF;
  --blue-wash:#F3F7FF;
  --lime:#B8F36B;
  --paper:#F4F6FA;
  --paper-warm:#EDF2F8;
  --bone:#FFFFFF;
  --ink:#14243A;
  --ink-soft:#263449;
  --ink-mute:#56657A;
  --ink-faint:#738196;
  --rust:#E2674A;
  --rust-deep:#C2462B;
  --rust-tint:#FDEEE9;
  --mustard:#F5B423;
  --mustard-deep:#8A6116;
  --mustard-tint:#FDF6E4;
  --line:#DCE4EF;
  --line-soft:#E8EDF4;
  --shadow-card:0 14px 36px -26px rgba(20,36,58,.22);
  --shadow-card-hover:0 22px 44px -24px rgba(54,120,246,.28);
  --shadow-soft:0 30px 60px -34px rgba(20,36,58,.18);
  --shadow:var(--shadow-card);
  --shadow-sm:0 8px 22px -18px rgba(20,36,58,.28);
  --r-sm:8px;
  --r-md:12px;
  --r-lg:18px;
  --gutter:64px;
  --fs-body:15.5px;
  --fs-lead:17.5px;
  --fs-small:13px;
  --lh-body:1.8;
  --lh-compact:1.68;
  --ls-cjk:.012em;
  --ease:cubic-bezier(.23,1,.32,1);
  --font-sans:"Inter","Noto Sans SC","Source Han Sans SC","PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-mono:"JetBrains Mono","Inter",ui-monospace,"SF Mono","Cascadia Code",Consolas,Menlo,monospace;
}

*{box-sizing:border-box}
html{scroll-behavior:auto}
body{
  margin:0;
  background:
    radial-gradient(900px 520px at 14% -10%,rgba(54,120,246,.12),transparent 66%),
    radial-gradient(720px 420px at 92% 4%,rgba(184,243,107,.12),transparent 60%),
    var(--paper);
  color:var(--ink);
  font-family:var(--font-sans);
  font-size:var(--fs-body);
  line-height:var(--lh-body);
  letter-spacing:var(--ls-cjk);
  -webkit-font-smoothing:antialiased;
  font-feature-settings:"kern" 1,"liga" 1,"calt" 1;
  overflow-wrap:break-word;
}
::selection{background:var(--blue);color:#fff}
mark{
  color:inherit;
  padding:0 .08em;
  border-radius:4px;
  background:linear-gradient(transparent 58%,rgba(184,243,107,.76));
}
a{color:var(--blue-deep)}
a:hover{color:var(--blue)}
a:focus-visible,button:focus-visible,input:focus-visible,[tabindex]:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:2px;
}

/* ---------- 阅读进度 ---------- */
#progress{
  position:fixed;
  inset:0 0 auto;
  height:3px;
  z-index:2100;
  background:linear-gradient(90deg,var(--blue-deep),var(--blue) 58%,var(--lime));
  transform-origin:0 50%;
  transform:scaleX(0);
}

/* ---------- 文档布局 ---------- */
.layout{
  display:flex;
  align-items:stretch;
  max-width:1440px;
  min-height:100vh;
  margin:0 auto;
}
main{
  position:relative;
  flex:1;
  min-width:0;
  padding:0 var(--gutter) 110px;
  background:rgba(255,255,255,.92);
  border-right:1px solid var(--line-soft);
  border-left:1px solid var(--line-soft);
  box-shadow:0 0 80px rgba(20,36,58,.04);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}

/* ---------- 侧栏目录 ---------- */
.toc{
  position:sticky;
  top:0;
  flex:0 0 286px;
  width:286px;
  height:100vh;
  overflow-y:auto;
  padding:28px 0 44px;
  background:rgba(244,246,250,.84);
  border-right:1px solid var(--line-soft);
  -webkit-backdrop-filter:blur(14px) saturate(1.25);
  backdrop-filter:blur(14px) saturate(1.25);
  scrollbar-color:#c6d3e6 transparent;
}
.toc-title{
  margin:0 16px 12px;
  padding:9px 14px;
  border:1px solid rgba(169,197,251,.5);
  border-radius:999px;
  background:linear-gradient(145deg,#fff,var(--blue-tint));
  color:var(--blue-deep);
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:700;
  letter-spacing:.13em;
  text-align:center;
  box-shadow:0 10px 24px -20px rgba(37,94,203,.55);
}
.toc-search{
  display:block;
  width:calc(100% - 32px);
  margin:0 16px 12px;
  padding:9px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.9);
  color:var(--ink);
  font:inherit;
  font-size:13px;
  box-shadow:0 8px 20px -18px rgba(20,36,58,.5);
}
.toc-search::placeholder{color:var(--ink-faint)}
.toc-search:focus{
  outline:none;
  border-color:var(--blue-soft);
  box-shadow:0 0 0 3px rgba(54,120,246,.13);
}
.toc-empty{
  display:none;
  margin:-5px 18px 12px;
  color:var(--ink-faint);
  font-size:11.5px;
}
.toc-empty.show{display:block}
.toc a{
  display:block;
  min-height:34px;
  margin:2px 14px;
  padding:7px 13px 7px 16px;
  border-left:3px solid transparent;
  border-radius:0 10px 10px 0;
  color:var(--ink-soft);
  font-size:13px;
  line-height:1.6;
  letter-spacing:.014em;
  text-decoration:none;
  transition:background .18s var(--ease),color .18s var(--ease),transform .18s var(--ease);
}
.toc a:hover{
  background:rgba(234,241,255,.88);
  color:var(--blue-deep);
  transform:translateX(2px);
}
.toc a.lv2{
  padding-left:32px;
  color:var(--ink-mute);
  font-size:12.5px;
}
.toc a.active{
  background:linear-gradient(90deg,var(--blue-tint),rgba(234,241,255,.25));
  color:var(--blue-deep);
  font-weight:700;
  border-left-color:var(--blue);
}
.toc .grp{
  margin:17px 22px 5px;
  padding-top:10px;
  border-top:1px solid var(--line-soft);
  color:var(--ink-faint);
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:.15em;
  line-height:1.5;
}
.toc .grp:first-of-type{border-top:0}

/* ---------- 手册封面 ---------- */
.cover{
  position:relative;
  overflow:hidden;
  margin:0 calc(var(--gutter) * -1) 16px;
  padding:96px 24px 54px;
  border-bottom:1px solid var(--line-soft);
  background:
    radial-gradient(760px 430px at 8% 0%,rgba(54,120,246,.17),transparent 64%),
    radial-gradient(560px 360px at 94% 8%,rgba(184,243,107,.20),transparent 60%),
    linear-gradient(150deg,#fff 8%,var(--blue-wash) 62%,#fff);
}
.cover::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(20,36,58,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(20,36,58,.035) 1px,transparent 1px);
  background-size:34px 34px;
  pointer-events:none;
}
.cover::after{
  content:"";
  position:absolute;
  right:-52px;
  bottom:-80px;
  width:230px;
  height:230px;
  border:1px solid rgba(169,197,251,.36);
  border-radius:50%;
  box-shadow:0 30px 70px -48px rgba(37,94,203,.55);
  pointer-events:none;
}
.cover>*{position:relative;z-index:1}
.cover .kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--blue-deep);
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:700;
  letter-spacing:.18em;
}
.cover .kicker::before{
  content:"";
  width:26px;
  height:2px;
  background:linear-gradient(90deg,var(--blue),var(--lime));
}
.cover h1{
  max-width:850px;
  margin:18px 0 12px;
  color:var(--navy);
  font-size:clamp(43px,4.8vw,64px);
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.035em;
  text-wrap:balance;
}
.cover .sub{
  max-width:760px;
  margin:0 0 32px;
  color:var(--ink-soft);
  font-size:clamp(16px,1.3vw,18.5px);
  line-height:1.75;
  text-wrap:pretty;
}
.meta{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.meta div{
  min-height:100%;
  padding:14px 16px;
  border:1px solid rgba(220,228,239,.92);
  border-radius:var(--r-md);
  background:rgba(255,255,255,.78);
  box-shadow:0 16px 36px -30px rgba(20,36,58,.42);
  -webkit-backdrop-filter:blur(9px);
  backdrop-filter:blur(9px);
}
.meta dt{
  margin:0 0 5px;
  color:var(--ink-faint);
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:.1em;
}
.meta dd{
  margin:0;
  color:var(--ink);
  font-size:13.5px;
  font-weight:700;
  line-height:1.55;
}
.cover-note{
  max-width:850px;
  margin:22px 0 0;
  color:var(--ink-mute);
  font-size:13px;
}

/* ---------- 章节与正文 ---------- */
h2{
  margin:84px 0 10px;
  padding-top:34px;
  border-top:1px solid var(--line-soft);
  color:var(--navy);
  font-size:clamp(28px,2.6vw,39px);
  line-height:1.18;
  font-weight:800;
  letter-spacing:-.026em;
  scroll-margin-top:24px;
  text-wrap:balance;
}
h2:first-of-type{margin-top:46px;padding-top:0;border-top:0}
h2 .num{
  display:inline-flex;
  align-items:center;
  margin-bottom:12px;
  padding:4px 10px;
  border:1px solid rgba(169,197,251,.55);
  border-radius:999px;
  background:var(--blue-tint);
  color:var(--blue-deep);
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
}
h3{
  margin:44px 0 8px;
  color:var(--navy);
  font-size:20px;
  line-height:1.42;
  font-weight:800;
  letter-spacing:-.012em;
  scroll-margin-top:24px;
}
h3::before{
  content:"";
  display:block;
  width:22px;
  height:3px;
  margin-bottom:8px;
  border-radius:99px;
  background:linear-gradient(90deg,var(--blue),var(--lime));
}
h4{
  margin:28px 0 6px;
  color:var(--navy);
  font-size:16.5px;
  line-height:1.5;
  font-weight:800;
  letter-spacing:-.008em;
}
h5{font-size:15px}
p{
  max-width:920px;
  margin:10px 0 16px;
}
.lead{
  max-width:900px;
  color:var(--ink-soft);
  font-size:var(--fs-lead);
  line-height:1.82;
  letter-spacing:.01em;
}
.ch-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 24px;
  margin:0 0 22px;
  padding:14px 18px;
  border:1px solid rgba(169,197,251,.36);
  border-radius:var(--r-md);
  background:linear-gradient(120deg,rgba(243,247,255,.94),rgba(255,255,255,.78));
  box-shadow:0 16px 36px -32px rgba(20,36,58,.5);
}
.ch-meta span{
  min-width:220px;
  color:var(--ink-mute);
  font-size:13px;
  line-height:1.68;
}
.ch-meta b{
  margin-right:7px;
  color:var(--ink);
  font-size:12px;
  letter-spacing:.015em;
}
ul,ol{margin:12px 0 20px;padding-left:25px}
li{margin:6px 0;line-height:1.78}
li::marker{color:var(--blue);font-weight:700}
small.note{
  display:block;
  max-width:900px;
  color:var(--ink-mute);
  font-size:var(--fs-small);
  line-height:1.75;
}
b,strong{color:var(--navy);font-weight:750}

ol.steps{counter-reset:s;margin:16px 0 22px;padding-left:0;list-style:none}
ol.steps>li{
  position:relative;
  margin:14px 0;
  padding:2px 0 2px 40px;
}
ol.steps>li::before{
  content:counter(s);
  position:absolute;
  left:0;
  top:2px;
  display:grid;
  place-items:center;
  width:27px;
  height:27px;
  border-radius:10px;
  background:linear-gradient(145deg,var(--blue),var(--blue-deep));
  color:#fff;
  font-family:var(--font-mono);
  font-size:11.5px;
  font-weight:700;
  box-shadow:0 10px 22px -15px rgba(37,94,203,.85);
}

/* ---------- 截图 ---------- */
figure{
  margin:24px 0 30px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  background:linear-gradient(160deg,#fff,var(--blue-wash));
  box-shadow:var(--shadow-card);
}
figure img{
  display:block;
  width:100%;
  border:1px solid var(--line-soft);
  border-radius:14px;
  background:#fff;
  cursor:zoom-in;
  transition:transform .2s var(--ease),box-shadow .2s var(--ease);
}
figure img:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 38px -28px rgba(20,36,58,.42);
}
figure img.zoom{
  position:fixed;
  top:24px;
  left:24px;
  right:24px;
  bottom:24px;
  width:auto;
  height:auto;
  max-width:calc(100vw - 48px);
  max-height:calc(100vh - 48px);
  margin:auto;
  z-index:2002;
  object-fit:contain;
  cursor:zoom-out;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 40px 100px rgba(20,36,58,.5);
  transform:none;
}
#zoomMask{
  position:fixed;
  inset:0;
  z-index:2001;
  display:none;
  background:rgba(20,36,58,.62);
  -webkit-backdrop-filter:blur(4px);
  backdrop-filter:blur(4px);
}
body.zooming #zoomMask{display:block}
figcaption{
  margin:10px 4px 0;
  color:var(--ink-mute);
  font-size:12.5px;
  line-height:1.72;
}
figcaption b{
  margin-right:4px;
  color:var(--blue-deep);
  font-family:var(--font-mono);
  font-weight:700;
  letter-spacing:.03em;
}

/* ---------- 表格 ---------- */
.tbl{
  margin:18px 0;
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  background:#fff;
  box-shadow:var(--shadow-card);
  -webkit-overflow-scrolling:touch;
}
table{
  width:100%;
  min-width:520px;
  border-collapse:separate;
  border-spacing:0;
  font-size:13.5px;
  line-height:var(--lh-compact);
}
th,td{
  padding:13px 16px;
  text-align:left;
  vertical-align:top;
}
th{
  background:var(--blue-wash);
  border-bottom:1px solid var(--line);
  color:var(--blue-deep);
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:700;
  letter-spacing:.07em;
  line-height:1.55;
  white-space:nowrap;
}
td{
  border-bottom:1px dashed var(--line-soft);
  color:var(--ink-soft);
  line-height:1.72;
}
tbody tr:last-child td{border-bottom:0}
tbody tr:nth-child(even) td{background:rgba(243,247,255,.58)}
tbody tr:hover td{background:var(--blue-tint)}
td:first-child{
  color:var(--ink);
  font-weight:650;
}
td code,p code,li code{
  padding:2px 6px;
  border-radius:7px;
  background:var(--paper-warm);
  color:#22334F;
  font-family:var(--font-mono);
  font-size:12.4px;
}

/* ---------- 标签、提示与卡片 ---------- */
.tag{
  display:inline-block;
  padding:2px 9px;
  border-radius:999px;
  font-size:11.5px;
  font-weight:650;
  letter-spacing:.02em;
  white-space:nowrap;
}
.tag.a{background:#E4F2EE;color:#0C6E5C}
.tag.b{background:var(--blue-tint);color:var(--blue-deep)}
.tag.c{background:var(--mustard-tint);color:var(--mustard-deep)}
.callout{
  margin:20px 0;
  padding:17px 21px;
  border:1px solid rgba(169,197,251,.38);
  border-radius:var(--r-md);
  background:linear-gradient(120deg,var(--blue-wash),rgba(255,255,255,.86));
  box-shadow:0 14px 32px -28px rgba(20,36,58,.42);
  font-size:13.8px;
  line-height:1.76;
}
.callout .t{
  display:block;
  margin-bottom:7px;
  color:var(--blue-deep);
  font-family:var(--font-mono);
  font-size:12px;
  font-weight:700;
  letter-spacing:.07em;
}
.callout.warn{
  border-color:rgba(226,103,74,.28);
  background:linear-gradient(120deg,var(--rust-tint),#fff 76%);
}
.callout.warn .t{color:var(--rust-deep)}
.callout.old{
  border-color:rgba(245,180,35,.3);
  background:linear-gradient(120deg,var(--mustard-tint),#fff 76%);
}
.callout.old .t{color:var(--mustard-deep)}
.callout.limit{
  border-color:var(--line);
  background:linear-gradient(120deg,var(--paper-warm),#fff 76%);
}
.callout.limit .t{color:var(--ink)}
.cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin:20px 0;
}
.card{
  padding:22px 24px;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  background:#fff;
  box-shadow:var(--shadow-card);
  transition:transform .2s var(--ease),border-color .2s,box-shadow .2s;
}
.card:hover{
  transform:translateY(-3px);
  border-color:var(--blue-soft);
  box-shadow:var(--shadow-card-hover);
}
.card h5{
  margin:0 0 8px;
  color:var(--navy);
  font-size:15px;
  font-weight:800;
}
.card p{
  margin:0;
  color:var(--ink-mute);
  font-size:13.5px;
  line-height:1.75;
}

/* ---------- 手机截图与图组 ---------- */
.phones{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(232px,302px));
  gap:18px 20px;
  align-items:start;
  justify-content:start;
  max-width:920px;
  margin:20px 0 8px;
}
.phones.one{grid-template-columns:minmax(232px,320px);max-width:320px}
.phones figure{margin:0}
.phones img{height:auto;border-radius:16px}
.phones figcaption{
  margin-top:8px;
  font-size:11.5px;
  line-height:1.65;
}
img.phone-solo{
  width:min(100%,320px);
  height:auto;
  margin:0 auto;
  border-radius:16px;
}
img.phone-slim{
  width:min(100%,280px);
  height:auto;
  margin:0 auto;
  border-radius:16px;
}
.media-side{
  --shot-width:320px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(236px,var(--shot-width));
  align-items:start;
  column-gap:34px;
  margin:24px 0 30px;
}
.media-side.wide-shot{--shot-width:410px}
.media-side.tall-shot{--shot-width:300px}
.media-side.reverse{
  grid-template-columns:minmax(236px,var(--shot-width)) minmax(0,1fr);
}
.media-side.reverse figure{order:-1}
.media-side > div > :last-child{margin-bottom:0}
.media-side > div > :first-child{margin-top:0}
.media-side figure{margin:0}
.media-side.tall-shot img{
  width:auto;
  max-width:100%;
  max-height:min(74vh,780px);
  margin:0 auto;
}
.figrow{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  align-items:start;
  margin:20px 0 24px;
}
.figrow figure{margin:0}
.figrow figure img{
  width:auto;
  max-width:100%;
  max-height:300px;
  margin:0 auto;
}
.figrow figcaption{
  margin-top:8px;
  font-size:12px;
  line-height:1.6;
}

.foot{
  margin-top:88px;
  padding-top:24px;
  border-top:1px solid var(--line);
  color:var(--ink-mute);
  font-size:12.5px;
  line-height:1.82;
}

/* ---------- 章节导航 ---------- */
.chapter-nav{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:stretch;
  gap:10px;
  margin:48px 0 8px;
  padding-top:20px;
  border-top:1px solid var(--line-soft);
}
.chapter-nav a{
  display:flex;
  min-width:0;
  align-items:center;
  gap:8px;
  padding:12px 15px;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  background:#fff;
  color:var(--ink-soft);
  text-decoration:none;
  transition:transform .18s var(--ease),border-color .18s,box-shadow .18s,color .18s;
}
.chapter-nav a:hover{
  transform:translateY(-2px);
  border-color:var(--blue-soft);
  color:var(--blue-deep);
  box-shadow:var(--shadow-card-hover);
}
.chapter-nav a span{
  flex:0 0 auto;
  color:var(--ink-faint);
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:.08em;
}
.chapter-nav a b{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12.5px;
  font-weight:700;
}
.chapter-nav .cn-home{justify-content:center}
.chapter-nav .cn-next{justify-content:flex-end}

#toTop{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:1150;
  width:42px;
  height:42px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.88);
  color:var(--ink);
  font-family:var(--font-mono);
  font-size:15px;
  font-weight:700;
  box-shadow:0 16px 34px -20px rgba(20,36,58,.45);
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transform:translateY(7px);
  transition:opacity .2s,transform .2s,background .2s,color .2s;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
#toTop.show{opacity:1;pointer-events:auto;transform:none}
#toTop:hover{background:var(--blue);border-color:var(--blue);color:#fff}

/* ---------- 窄屏 ---------- */
#nowbar{
  position:fixed;
  inset:0 0 auto;
  z-index:1140;
  display:none;
  align-items:center;
  gap:10px;
  height:48px;
  padding:0 14px;
  background:rgba(255,255,255,.82);
  border-bottom:1px solid var(--line-soft);
  -webkit-backdrop-filter:blur(12px) saturate(1.25);
  backdrop-filter:blur(12px) saturate(1.25);
}
#nowbar .nb-btn{
  flex:0 0 auto;
  width:33px;
  height:33px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  font-family:inherit;
  font-size:15px;
  line-height:1;
  cursor:pointer;
}
#nowbar .nb-title{
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--ink);
  font-size:13.5px;
  font-weight:700;
}
.toc-mask{display:none}
.toc-btn{display:none}
.toc-close{display:none}

@media (max-width:1080px){
  :root{--gutter:26px}
  .toc{
    position:fixed;
    top:0;
    left:0;
    z-index:1310;
    display:block;
    width:min(294px,86vw);
    height:100vh;
    padding-top:20px;
    background:var(--bone);
    transform:translateX(-103%);
    transition:transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow:20px 0 56px rgba(20,36,58,.2);
  }
  body.toc-open .toc{transform:none}
  body.toc-open{overflow:hidden}
  .toc-title{padding-right:52px}
  .toc-mask{
    position:fixed;
    inset:0;
    z-index:1210;
    display:block;
    background:rgba(20,36,58,.38);
    opacity:0;
    pointer-events:none;
    transition:opacity .28s;
    -webkit-backdrop-filter:blur(2px);
    backdrop-filter:blur(2px);
  }
  body.toc-open .toc-mask{opacity:1;pointer-events:auto}
  .toc-close{
    position:absolute;
    top:14px;
    right:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    width:30px;
    height:30px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#fff;
    color:var(--ink-mute);
    font-size:18px;
    line-height:1;
    cursor:pointer;
    font-family:inherit;
  }
  .toc-close:hover{background:var(--paper-warm);color:var(--ink)}
  main{padding:0 var(--gutter) 100px}
  .cover{padding:74px 16px 44px}
  .meta{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cards{grid-template-columns:1fr}
  .media-side{
    grid-template-columns:minmax(0,1fr) minmax(240px,300px);
    gap:22px;
  }
  .media-side.wide-shot{--shot-width:350px}
}
@media (max-width:900px){
  .figrow{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:768px){
  :root{--gutter:18px}
  #nowbar{display:flex}
  main{padding:64px var(--gutter) 100px}
  h2,h3{scroll-margin-top:66px}
  .cover h1{font-size:37px}
  .phones{grid-template-columns:1fr;max-width:430px}
  .media-side,.media-side.reverse{
    grid-template-columns:minmax(0,1fr);
    gap:0;
  }
  .media-side.reverse figure{order:0}
  .media-side figure{margin:20px 0 26px}
  .media-side > div > .callout{margin:0}
  .media-side.tall-shot img{max-height:none}
  .media-side.wide-shot{--shot-width:320px}
  .chapter-nav{grid-template-columns:1fr;gap:8px}
  .chapter-nav a,.chapter-nav .cn-next{justify-content:flex-start}
  figure{padding:8px}
}
@media (max-width:560px){
  .meta{grid-template-columns:1fr}
  .figrow{grid-template-columns:1fr}
  .toc-search{border-radius:10px}
  .toc a{border-radius:9px}
}

@media print{
  @page{size:A4;margin:14mm}
  .toc,.toc-btn,.toc-mask,.toc-close,.toc-search,#toTop,#nowbar,#progress,#zoomMask,.chapter-nav{display:none!important}
  body{background:#fff}
  main{
    padding:0;
    border:0;
    box-shadow:none;
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
  .cover{
    margin:0;
    padding:0 0 20px;
    background:none;
  }
  .cover::before,.cover::after{display:none}
  .meta div,.card,.callout,.ch-meta{box-shadow:none}
  h2{page-break-after:avoid}
  figure{page-break-inside:avoid;box-shadow:none}
  figure img{max-width:100%;height:auto}
  table,.tbl{min-width:0;overflow:visible;box-shadow:none}
  th,td{border-bottom:1px solid #D9DEE8}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}
