/* 智己人 · 产品电子说明书 通用样式
   移动端优先 / 品牌主色 #0c5a52
*/

:root {
  --brand: #0c5a52;
  --brand-dark: #08453f;
  --brand-light: #e6f2f0;
  --brand-tint: #f2f8f7;
  --accent: #c8a45c;
  --text: #1d2321;
  --text-2: #4a5451;
  --text-3: #7b8582;
  --line: #e3e9e7;
  --bg: #ffffff;
  --bg-soft: #f6f9f8;
  --warn: #b3451b;
  --warn-bg: #fdf1ec;
  --radius: 12px;
  --header-h: 52px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-soft);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  padding-bottom: calc(72px + var(--safe-b));
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }

/* ---------- 顶部固定栏 ---------- */
.appbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 60;
}
.appbar .bar-title {
  flex: 1; min-width: 0;
  font-size: 16px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.appbar .bar-title small {
  display: block; font-size: 11px; font-weight: 400; color: var(--text-3);
  line-height: 1.2;
}
.icon-btn {
  flex: none; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--brand);
  font-size: 20px; cursor: pointer; border-radius: 10px;
}
.icon-btn:active { background: var(--brand-light); }
.progress-bar {
  position: fixed; top: var(--header-h); left: 0; height: 2px; width: 0;
  background: var(--brand); z-index: 61; transition: width .1s linear;
}

/* ---------- 页面容器 ---------- */
.page { max-width: 720px; margin: 0 auto; padding: 0 14px; }

/* ---------- 头部 Hero ---------- */
.hero {
  margin: calc(var(--header-h) + 12px) 0 12px;
  padding: 18px 16px;
  background: linear-gradient(135deg, var(--brand) 0%, #0e6b60 100%);
  color: #fff; border-radius: var(--radius);
}
.hero h1 { margin: 0 0 4px; font-size: 22px; line-height: 1.35; font-weight: 700; }
.hero .sub { font-size: 14px; opacity: .92; }
.hero .tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.hero .tags span {
  font-size: 12px; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
}
.hero .meta { margin-top: 10px; font-size: 12px; opacity: .8; }

/* ---------- 面包屑 ---------- */
.crumbs {
  font-size: 12px; color: var(--text-3); margin: 10px 0 0;
  padding: 8px 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px;
}
.crumbs a { color: var(--brand); }
.crumbs .sep { margin: 0 5px; color: var(--text-3); }

/* ---------- 章节卡片 ---------- */
section.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 4px 16px 16px;
  margin-top: 12px;
}
section.card > h2 {
  position: relative;
  margin: 18px -16px 10px; padding: 0 16px 0 14px;
  font-size: 18px; font-weight: 700; color: var(--brand);
  border-left: 4px solid var(--brand);
  line-height: 1.4;
}
section.card > h2 .num {
  display: inline-block; min-width: 22px;
  font-size: 13px; color: var(--brand); opacity: .65; margin-right: 4px;
}
h3 {
  margin: 20px 0 8px; font-size: 16px; font-weight: 650; color: var(--text);
  padding-left: 10px; border-left: 3px solid var(--brand-light);
}
h4 { margin: 16px 0 6px; font-size: 15px; color: var(--text-2); }
p { margin: 8px 0; color: var(--text-2); }
ul, ol { margin: 8px 0; padding-left: 22px; color: var(--text-2); }
li { margin: 5px 0; }
strong { color: var(--text); }

/* ---------- 规格参数表 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 320px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--brand-tint); color: var(--brand); font-weight: 600; white-space: nowrap; }
tbody th {
  width: 34%; font-weight: 500; color: var(--text-3); background: #fcfdfd;
  white-space: nowrap;
}
tbody td { color: var(--text); }
caption { caption-side: top; font-size: 13px; color: var(--text-3); padding: 6px 0; text-align: left; }

/* ---------- 提示块 ---------- */
.note {
  margin: 12px 0; padding: 12px 14px; border-radius: 10px;
  font-size: 14px; line-height: 1.7;
}
.note p { margin: 4px 0; }
.note.info { background: var(--brand-tint); border-left: 4px solid var(--brand); color: var(--text-2); }
.note.warn { background: var(--warn-bg); border-left: 4px solid var(--warn); color: #7d3413; }
.note.warn strong { color: var(--warn); }
.note .t { font-weight: 700; display: block; margin-bottom: 2px; }

/* ---------- 步骤 ---------- */
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 10px 0; }
ol.steps > li {
  counter-increment: s; position: relative;
  padding: 0 0 16px 40px; margin: 0;
  border-left: 2px solid var(--brand-light);
}
ol.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.steps > li::before {
  content: counter(s); position: absolute; left: -13px; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 700; line-height: 24px; text-align: center;
}
ol.steps > li .st { display: block; font-weight: 650; color: var(--text); margin-bottom: 2px; }
ol.steps > li .sd { display: block; font-size: 14px; color: var(--text-2); }

/* ---------- 功能卡片 ---------- */
.grid { display: grid; gap: 10px; margin: 12px 0; }
.grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 360px) { .grid.g2 { grid-template-columns: 1fr; } }
.feat {
  background: var(--brand-tint); border: 1px solid #dcece9;
  border-radius: 10px; padding: 12px;
}
.feat .fi { display: flex; align-items: center; height: 24px; }
.feat .fi svg {
  width: 22px; height: 22px; fill: none;
  stroke: var(--brand); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.feat .ft { display: block; font-weight: 650; color: var(--brand-dark); margin: 6px 0 3px; font-size: 15px; }
.feat .fd { display: block; font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* ---------- 配色/规格 chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; font-size: 14px;
  background: #fff; border: 1px solid var(--line); color: var(--text-2);
  min-height: 36px;
}
.chip i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.12); }

/* ---------- FAQ 折叠 ---------- */
details.faq {
  border: 1px solid var(--line); border-radius: 10px;
  margin: 8px 0; background: #fff; overflow: hidden;
}
details.faq > summary {
  list-style: none; cursor: pointer;
  padding: 13px 40px 13px 14px; min-height: 44px;
  font-size: 15px; font-weight: 600; color: var(--text);
  position: relative; display: flex; align-items: center;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after {
  content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--brand); font-size: 20px; font-weight: 600; transition: transform .2s;
}
details.faq[open] > summary::after { content: "−"; }
details.faq[open] > summary { color: var(--brand); background: var(--brand-tint); }
details.faq .faq-body {
  padding: 0 14px 14px; font-size: 14.5px; color: var(--text-2);
  border-top: 1px dashed var(--line);
}
details.faq .faq-body p:first-child { margin-top: 10px; }
details.faq.hide { display: none; }

/* ---------- 目录浮层 ---------- */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(12, 30, 28, .45);
  opacity: 0; pointer-events: none; transition: opacity .22s; z-index: 70;
}
.sheet-mask.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 71;
  background: #fff; border-radius: 16px 16px 0 0;
  transform: translateY(100%); transition: transform .26s cubic-bezier(.32,.72,0,1);
  max-height: 78vh; display: flex; flex-direction: column;
  padding-bottom: var(--safe-b);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .16);
}
.sheet.on { transform: translateY(0); }
.sheet .sh {
  padding: 12px 16px 8px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.sheet .sh .tt { font-weight: 700; font-size: 16px; flex: 1; }
.sheet .search {
  margin: 10px 16px; padding: 9px 12px; min-height: 42px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-soft); font-size: 15px; width: calc(100% - 32px);
  color: var(--text);
}
.sheet .toc { overflow-y: auto; padding: 4px 12px 16px; -webkit-overflow-scrolling: touch; }
.sheet .toc a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 12px 10px; min-height: 46px; border-radius: 8px;
  color: var(--text); font-size: 15px;
}
.sheet .toc a .n { color: var(--brand); font-size: 13px; min-width: 20px; font-weight: 700; }
.sheet .toc a:active { background: var(--brand-light); }
.sheet .toc a.cur { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.sheet .toc .empty { padding: 20px; text-align: center; color: var(--text-3); font-size: 14px; }

/* ---------- 底部章节快捷条 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.tabbar .scroller {
  display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tabbar .scroller::-webkit-scrollbar { display: none; }
.tabbar .scroller a {
  flex: none; padding: 7px 13px; min-height: 36px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--text-2); white-space: nowrap;
  display: inline-flex; align-items: center;
}
.tabbar .scroller a.cur { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

/* ---------- 返回顶部 ---------- */
#toTop {
  position: fixed; right: 14px; bottom: calc(76px + var(--safe-b)); z-index: 56;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--brand); font-size: 18px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  display: none; align-items: center; justify-content: center;
}
#toTop.on { display: flex; }

/* ---------- 首页：分类 / 型号 ---------- */
.brand-bar {
  margin-top: calc(var(--header-h) + 14px);
  padding: 18px 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand) 0%, #0e6b60 100%); color: #fff;
}
.brand-bar h1 { margin: 0; font-size: 21px; font-weight: 700; }
.brand-bar p { margin: 6px 0 0; font-size: 14px; opacity: .9; color: #fff; }

.cat { margin-top: 16px; }
.cat > h2 {
  font-size: 15px; color: var(--text-3); font-weight: 600;
  margin: 0 0 8px; padding-left: 2px;
}
.cat .models { display: grid; gap: 10px; }
.model {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; min-height: 72px; color: var(--text);
}
.model:active { background: var(--brand-tint); }
.model .thumb {
  flex: none; width: 46px; height: 46px; border-radius: 10px;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; letter-spacing: .5px;
}
.model .info { flex: 1; min-width: 0; display: block; }
.model .info .nm { display: block; font-size: 16px; font-weight: 650; line-height: 1.4; }
.model .info .ds { display: block; font-size: 13px; color: var(--text-3); line-height: 1.55; }
.model .info .tg { display: block; margin-top: 4px; }
.model .arrow { flex: none; color: var(--text-3); font-size: 18px; }
.model .arrow.off { font-size: 12px; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }

/* ---------- 页脚 ---------- */
footer {
  margin: 18px 0 8px; padding: 16px 14px calc(20px + var(--safe-b));
  text-align: center; font-size: 12.5px; color: var(--text-3); line-height: 1.8;
}
footer .links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
footer a { color: var(--brand); }

/* ---------- 快速上手 ---------- */
.quick { display: grid; gap: 10px; margin: 12px 0; }
.qstep {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--brand-tint); border: 1px solid #dcece9;
  border-radius: 10px; padding: 12px 14px;
}
.qstep .qn {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 700; line-height: 26px; text-align: center;
}
.qstep .qb { flex: 1; min-width: 0; }
.quick h3 {
  margin: 0 0 2px; padding: 0; border: 0;
  font-size: 15.5px; font-weight: 650; color: var(--brand-dark);
}
.qstep p { margin: 0 0 6px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.qstep .qlink {
  display: inline-block; min-height: 24px;
  font-size: 13.5px; font-weight: 600; color: var(--brand);
}
.qstep .qlink::after { content: " \203A"; }

/* ---------- FAQ 分组 ---------- */
.faq-group + .faq-group { margin-top: 20px; }
.faq-group > h3 { margin-top: 16px; }

/* ---------- 目录：三级缩进 ---------- */
.sheet .toc a.lvl1 { font-size: 14px; }
.sheet .toc a.lvl2 { font-size: 13.5px; color: var(--text-2); min-height: 42px; }
.sheet .toc a.lvl2 > span:last-child::before { content: "\00B7 "; color: var(--text-3); }

/* ---------- 快速上手：视频入口 ---------- */
.quick-more { margin: 14px 0 0; text-align: center; }
.quick-more a { font-size: 14px; font-weight: 600; color: var(--brand); }
.quick-more a::after { content: " \203A"; }

/* 「完整说明书」入口 —— 裸文字链太不起眼，加一个明确的按钮框：
   浅底 + 品牌描边 + 加粗深色字，鼠标悬停/手机点按变实心反白。 */
.quick-more a.manual-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 26px;
  font-size: 15px; font-weight: 700; color: var(--brand-dark);
  background: var(--brand-light);
  border: 2px solid var(--brand);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(12, 90, 82, .12);
  transition: background .15s, color .15s, box-shadow .15s;
}
/* flex 会把 ::after 前的空格吞掉，箭头得自己拉开距离 */
.quick-more a.manual-cta::after { content: "\203A"; margin-left: 7px; }
.quick-more a.manual-cta:active { background: var(--brand); color: #fff; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .quick-more a.manual-cta:hover {
    background: var(--brand); color: #fff;
    box-shadow: 0 4px 14px rgba(12, 90, 82, .22);
  }
}
/* 窄屏：直接通栏铺满，比一个小按钮更好点 */
@media (max-width: 420px) {
  .quick-more a.manual-cta { display: flex; width: 100%; padding: 10px 14px; }
}
/* ---------- 规格书下载卡 ---------- */
.doc-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin: 10px 0 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.doc-ico {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #fbeaea; color: #a32d2d;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
}
.doc-meta { flex: 1; min-width: 0; }
.doc-name { display: block; font-size: 15px; font-weight: 650; line-height: 1.4; }
.doc-sub { display: block; font-size: 13px; color: var(--text-3); line-height: 1.5; }
.doc-btn {
  flex: none; padding: 9px 18px; border-radius: 9px;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 600;
  min-height: 40px; display: inline-flex; align-items: center;
}
.doc-btn:active { background: var(--brand-dark); }

/* ---------- 视频教程列表 ---------- */
.vlist { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 4px; }
.vcard {
  display: flex; align-items: stretch; gap: 12px; width: 100%;
  padding: 8px; margin: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.vcard:active { background: var(--brand-tint); border-color: var(--brand); }
.vthumb {
  position: relative; flex: none; width: 124px;
  aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--brand);
}
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vplay {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px;
  margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(255, 255, 255, .92);
}
.vplay::after {
  content: ""; position: absolute; left: 11px; top: 8px;
  border-left: 9px solid var(--brand);
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.vdur {
  position: absolute; right: 4px; bottom: 4px; padding: 1px 5px; border-radius: 4px;
  font-size: 11px; line-height: 1.5; color: #fff; background: rgba(0, 0, 0, .62);
}
.vmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.vt { display: block; font-size: 15px; font-weight: 650; line-height: 1.4; }
.vd { display: block; font-size: 13px; color: var(--text-3); line-height: 1.5; }
@media (min-width: 640px) {
  .vlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .vthumb { width: 112px; }
  .vcard { height: 100%; }
}

/* ---------- 视频播放弹层 ---------- */
.vmodal {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.vmodal[hidden] { display: none; }
.vmask { position: absolute; inset: 0; background: rgba(0, 0, 0, .74); }
.vbox {
  position: relative; width: 100%; max-width: 560px;
  background: var(--bg); border-radius: 14px; overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .32);
}
.vhead { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.vname { flex: 1; min-width: 0; font-size: 15px; font-weight: 650; }
.vbox video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.vhint {
  padding: 12px 14px; font-size: 13px; line-height: 1.7;
  color: #633806; background: #faeeda;
}
.vhint code {
  padding: 1px 6px; border-radius: 4px; font-size: 12px;
  background: rgba(0, 0, 0, .07); word-break: break-all;
}

/* ---------- 打印 ---------- */
@media print {
  .appbar, .tabbar, #toTop, .sheet, .sheet-mask, .progress-bar, .sidetoc { display: none !important; }
  body { background: #fff; padding-bottom: 0; }
  section.card { break-inside: avoid; border-color: #ccc; }
  details.faq { break-inside: avoid; }
  details.faq .faq-body { display: block !important; }
}

/* ==========================================================
   三级说明书：首页搜索框 / 系列卡片 / 型号标签 / 视频占位态
   （数据来自 assets/catalog.js，渲染在 assets/site.js）
   ========================================================== */

/* 首页搜索框（浮层里的 .sheet .search 另有定义，互不影响） */
.page > .search,
#mount > .search {
  margin: 12px 0 4px; padding: 11px 14px; min-height: 46px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; width: 100%; font-size: 15px; color: var(--text);
}

/* ---------- L1 系列卡片 ---------- */
.series-list { display: grid; gap: 12px; }
.series-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 14px; min-height: 96px;
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius); color: var(--text);
  transition: background .15s, border-color .15s;
}
.series-card:active { background: var(--brand-tint); }
.series-card .sc-ico {
  flex: none; width: 54px; height: 54px; border-radius: 12px;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; letter-spacing: .5px;
}
.series-card .sc-body { flex: 1; min-width: 0; display: block; }
.series-card .sc-name {
  display: block; font-size: 18px; font-weight: 700;
  color: var(--brand-dark); line-height: 1.4;
}
.series-card .sc-desc {
  display: block; margin-top: 3px;
  font-size: 13.5px; color: var(--text-2); line-height: 1.6;
}
.series-card .sc-meta {
  display: block; margin-top: 6px;
  font-size: 12px; color: var(--text-3);
}
.series-card .sc-arrow { flex: none; color: var(--text-3); font-size: 20px; }

/* ---------- 型号列表里的小标签 ---------- */
.model .info .tg .pill,
.pill {
  display: inline-block; font-size: 11px; color: var(--text-3);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 1px 7px; margin: 0 4px 0 0; white-space: nowrap;
}

/* ---------- 其他在售产品：分组小标题 ---------- */
.models .group-h {
  margin: 14px 0 2px; padding: 0; border: 0;
  font-size: 14px; font-weight: 600; color: var(--brand);
}
.models .group-h:first-child { margin-top: 4px; }

/* ---------- 视频卡片：未就绪态 ----------
   整张卡不加 opacity —— 半透明会把标题和封面一起「洗白」，看着像坏了。
   只做两件事：换掉缩略图底色与播放键的颜色，并明确不可点。 */
.vcard.pending { cursor: default; pointer-events: none; }
.vcard.pending .vthumb { background: #cbd7d4; }
.vcard.pending .vplay { background: rgba(255, 255, 255, .85); }
.vcard.pending .vplay::after { border-left-color: #8d9b98; }
.vcard.pending .vdur { background: rgba(28, 58, 54, .72); }
.vcard.pending .vt { color: var(--text-2); }

/* ---------- 产品页：同系列型号切换做成单行横滑 ----------
   8 个型号换行会占两行、把正文推下去，横滑一行更省高度。 */
#modelSwitch {
  flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
#modelSwitch::-webkit-scrollbar { display: none; }
#modelSwitch .chip { flex: none; }

/* ---------- chips 选中态 ---------- */
.chip.on {
  background: var(--brand); border-color: var(--brand);
  color: #fff; font-weight: 600;
}

/* ---------- 桌面：系列卡片仍是单列（上中下三行） ----------
   并排三列时每张只有约 210px 宽，标题一行放不下、描述被挤成 5~6 行，
   右箭头也只得藏掉，反而比纵向堆叠更难扫读。
   统一保持「一行一张」的横向卡片：图标在左、文字居中、箭头在右。
   正文列本身有 720px 上限，单列不会拉得过宽。 */
@media (min-width: 720px) {
  .series-list { grid-template-columns: minmax(0, 1fr); }
  /* 图标顶对齐标题（默认居中时，54px 图标配三行文字会显得图标「往下掉」） */
  .series-card { min-height: 104px; padding: 18px 18px; align-items: flex-start; }
  .series-card .sc-ico { margin-top: 1px; }
  .series-card .sc-arrow { align-self: center; }
  .series-card .sc-name { font-size: 19px; }
  .series-card .sc-desc { font-size: 14px; }
}

/* ==========================================================
   桌面端双栏（只作用于 <body class="has-side-toc"> 的详情页）
   窄屏/无 JS 时完全不生效：左栏 display:none，页面还是原来的单栏居中。
   两栏 = 240px 侧栏 + 40px 间距 + 至多 720px 正文，共 1000px 居中。
   顶栏也用同一套网格，标题因此正好落在正文列左边缘，不再与内容错位。
   ========================================================== */
.sidetoc { display: none; }

@media (min-width: 1100px) {
  body.has-side-toc {
    display: grid;
    grid-template-columns: 240px minmax(0, 720px);
    column-gap: 40px;
    justify-content: center;
    align-items: start;
    padding-top: calc(var(--header-h) + 12px);
    padding-bottom: 30px;
  }

  /* 正文列：由网格给宽度，不再自己居中 */
  body.has-side-toc .page { grid-column: 2; max-width: none; margin: 0; padding: 0; }
  body.has-side-toc .hero { margin-top: 0; }   /* 顶部留白改由 body 的 padding 承担 */

  /* 顶栏：同一套网格，让标题与正文列左边缘对齐 */
  body.has-side-toc .appbar {
    display: grid;
    grid-template-columns: 240px minmax(0, 720px);
    column-gap: 40px;
    justify-content: center;
    padding: 0;
  }
  body.has-side-toc .appbar .icon-btn:first-of-type { grid-area: 1 / 1; justify-self: start; }
  body.has-side-toc .appbar .bar-title { grid-area: 1 / 2; justify-self: stretch; }
  /* 左栏已经把目录常显了，右上角的「目录」按钮在桌面是冗余的 */
  body.has-side-toc .appbar #btnToc { display: none; }

  /* 左栏 */
  body.has-side-toc .sidetoc {
    grid-column: 1;
    display: block;
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 12px);
    max-height: calc(100vh - var(--header-h) - 36px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 8px 12px;
    box-shadow: 0 1px 2px rgba(12, 30, 28, .04);
  }
  body.has-side-toc .sidetoc .sd-h {
    padding: 2px 10px 8px;
    font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .04em;
  }
  body.has-side-toc .sidetoc .toc {
    overflow-y: auto;
    /* 比外框再矮 12px，这样溢出的那一行被切在框内，不会贴着圆角边框 */
    max-height: calc(100vh - var(--header-h) - 104px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  body.has-side-toc .sidetoc .toc a {
    display: flex; gap: 8px; align-items: baseline;
    padding: 6px 10px; border-radius: 8px;
    color: var(--text-2); font-size: 13.5px; line-height: 1.45;
  }
  body.has-side-toc .sidetoc .toc a .n { color: var(--brand); font-size: 12px; min-width: 17px; font-weight: 700; }
  body.has-side-toc .sidetoc .toc a:hover { background: var(--brand-light); }
  body.has-side-toc .sidetoc .toc a.cur { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
  body.has-side-toc .sidetoc .toc a.lvl1 { font-size: 13px; }
  body.has-side-toc .sidetoc .toc a.lvl2 { font-size: 12.5px; color: var(--text-3); }
  body.has-side-toc .sidetoc .toc .empty { padding: 16px 10px; text-align: center; color: var(--text-3); font-size: 13px; }

  /* 底部章节条让位给左栏；返回顶部贴到正文列右侧，不再飘在视口角落 */
  body.has-side-toc .tabbar { display: none; }
  body.has-side-toc #toTop { right: auto; left: calc(50% + 514px); bottom: 24px; }
}

