/* ==========================================================================
   VPNDQ — deepdoc.css
   深度指南页（reference.html · 流媒体解锁全攻略）专属样式。
   仅补充 base.css / components.css 未覆盖的组件：文档头、章节节奏与
   编号、报错分类卡、编号步骤清单。颜色与圆角一律引用 :root 设计令牌。
   ========================================================================== */

/* ---------- 文档头 ------------------------------------------------------ */
.doc-hero{
  position:relative;overflow-x:clip;max-width:100%;
  background:linear-gradient(180deg,var(--bg-hero-top) 0%,var(--bg-hero-bot) 100%);
  padding-top:42px;padding-bottom:36px;
}
.doc-hero::after{
  content:"";position:absolute;right:-8%;top:-34%;width:54%;height:180%;
  pointer-events:none;
  background:radial-gradient(ellipse at center,var(--gold-16) 0%,transparent 70%);
  filter:blur(34px);
}
.doc-hero__in{position:relative;z-index:2}
.doc-hero__in .h1{margin-top:12px}
.doc-hero__meta{
  margin-top:20px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;
  font-size:13px;color:var(--muted);
}
.doc-hero__meta span{display:inline-flex;align-items:center;gap:7px;min-width:0}
.doc-hero__meta svg{width:14px;height:14px;color:var(--gold-deep);flex:none}
.doc-spark-a{right:6%;top:16%;width:16px;height:16px}
.doc-spark-b{right:14%;bottom:18%;width:9px;height:9px}

/* ---------- 阅读版心与章节节奏 ------------------------------------------ */
.doc{max-width:940px}
.doc .toc-tabs{margin-bottom:22px}
.doc > .lead{margin-bottom:24px}
.doc > .lead + .lead{margin-top:-12px}
.doc .prose{counter-reset:docsec}
.doc .prose > section{counter-increment:docsec}
.doc .prose > section + section{margin-top:64px}
.doc .prose section > * + *{margin-top:16px}
.doc .prose section > h2:first-child{margin-top:0}
.doc .prose section > h2 + *{margin-top:18px}
.doc .prose section > h3{margin-top:30px}
.doc .prose section > h3 + *{margin-top:12px}
.doc .prose section > h2::before{
  content:counter(docsec,decimal-leading-zero);
  display:block;margin-bottom:8px;
  font-family:var(--font-mono);font-size:13px;font-weight:700;
  letter-spacing:.14em;color:var(--gold-deep);
}

/* ---------- 报错分类卡 -------------------------------------------------- */
.err-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.err-card{
  min-width:0;padding:16px 18px;
  background:var(--panel);border:1px solid var(--line);border-radius:var(--r-md);
  box-shadow:0 14px 30px -20px var(--accent-18);
}
.err-card__tag{
  display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:var(--r-pill);
  background:var(--rose);color:var(--accent);
  font-size:11.5px;font-weight:700;letter-spacing:.02em;
  max-width:100%;overflow:hidden;white-space:nowrap;
}
.err-card__name{margin-top:10px;font-size:15px;font-weight:800;color:var(--ink);line-height:1.45}
.err-card__text{margin-top:6px;font-size:13.5px;line-height:1.7;color:var(--muted)}

/* ---------- 编号步骤清单 ------------------------------------------------ */
.prose .doc-steps{
  list-style:none;padding-left:0;
  counter-reset:docstep;
  display:flex;flex-direction:column;gap:10px;
}
.prose .doc-steps > li{
  position:relative;min-width:0;margin-top:0;
  counter-increment:docstep;
  padding:14px 16px 14px 52px;
  background:var(--panel);border:1px solid var(--line);border-radius:var(--r-md);
  font-size:14.5px;line-height:1.7;color:var(--ink);
  box-shadow:0 10px 24px -20px var(--accent-18);
}
.prose .doc-steps > li::before{
  content:counter(docstep);
  position:absolute;left:14px;top:14px;
  width:24px;height:24px;border-radius:50%;
  display:grid;place-items:center;
  background:linear-gradient(150deg,var(--accent) 0%,var(--accent-dark) 100%);
  color:var(--white);font-family:var(--font-mono);font-size:12px;font-weight:700;
  box-shadow:inset 0 1px 0 var(--chrome-hi);
}

/* ---------- 响应式 ------------------------------------------------------ */
@media (max-width:900px){
  .doc{max-width:100%}
}
@media (max-width:640px){
  .err-grid{grid-template-columns:minmax(0,1fr)}
  .doc .prose > section + section{margin-top:48px}
}