@charset "UTF-8";
/*
  文件：site/assets/pages.css
  最后编辑：2026-11-14 13:40:00
  开发人员：mandy lu
  公司：四川缤果互娱网络科技有限责任公司
  作用：产品介绍站子页面（购买前准备 / 打印机选型 / 软件下载 / 隐私政策）的共用样式。
        复用 assets/styles.css 的设计令牌与顶栏页脚，这里只补页面级组件：
        页头、目录、正文排版、表格、流程图、清单、提示块、下载卡、法律条款。
*/

/* ============ 1. 页头 ============ */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 64px;
  background: radial-gradient(110% 90% at 82% 0%, #16352a 0%, #0b1a15 48%, #08110e 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(90% 80% at 50% 0%, #000 0%, transparent 82%);
  -webkit-mask-image: radial-gradient(90% 80% at 50% 0%, #000 0%, transparent 82%);
  z-index: -1;
}
.page-hero h1 {
  max-width: 20em;
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.22;
}
.page-hero__lead {
  max-width: 44em;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .64);
}
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 26px;
}
.page-hero__meta span {
  padding: 5px 13px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .62);
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .42);
}
.crumb a { color: rgba(255, 255, 255, .62); }
.crumb a:hover { color: var(--brand); }
.crumb i { font-style: normal; color: rgba(255, 255, 255, .24); }

/* ============ 2. 正文两栏（目录 + 内容） ============ */
.doc {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 56px;
  padding: clamp(48px, 5vw, 72px) 0 clamp(56px, 6vw, 88px);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  font-size: 13.5px;
}
.toc h2 {
  margin-bottom: 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: block;
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  line-height: 1.5;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.toc a:hover { color: var(--brand-deep); border-left-color: var(--brand-ring); }
.toc a.is-active { color: var(--ink); border-left-color: var(--brand); font-weight: 600; }

/* ============ 3. 章节排版 ============ */
.doc-body { max-width: 780px; }
.doc-body > section + section { margin-top: clamp(44px, 5vw, 64px); }
.doc-body > section { scroll-margin-top: calc(var(--nav-h) + 24px); }

.doc-body h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(1.3rem, 2.1vw, 1.6rem);
  letter-spacing: -.02em;
  line-height: 1.3;
}
.doc-body h2 .num {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: .06em;
}
.doc-body h3 {
  margin-top: 32px;
  font-size: 16px;
  letter-spacing: -.01em;
}
.doc-body h4 {
  margin-top: 24px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.doc-body p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}
.doc-body p strong { color: var(--ink); }
.doc-body ul, .doc-body ol {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}
.doc-body ul li { position: relative; padding-left: 20px; }
.doc-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.doc-body ol { counter-reset: item; }
.doc-body ol li { position: relative; padding-left: 26px; counter-increment: item; }
.doc-body ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: .1em;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
}
.doc-body li b, .doc-body li strong { color: var(--ink-2); }
.doc-body code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--cream-2);
  font-family: var(--font-num);
  font-size: .88em;
  color: var(--ink-2);
}

/* ============ 4. 表格 ============ */
.tbl {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  overflow-x: auto;
}
.tbl table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.65;
}
.tbl thead th {
  padding: 11px 14px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.tbl tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fbfdf9; }
.tbl td b { color: var(--ink-2); font-weight: 600; }
.tbl .col-key { color: var(--ink); font-weight: 600; white-space: nowrap; }
.tbl .tbl-note {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted-2);
}

/* ============ 5. 提示块 ============ */
.note {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  border-left: 3px solid var(--info);
  background: #f3f8ff;
  font-size: 14px;
  line-height: 1.8;
  color: #1f4f8a;
}
.note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  stroke: currentColor;
}
.note b { color: #143a68; }
.note--warn { border-left-color: var(--amber); background: var(--amber-soft); color: #7a5a00; }
.note--warn b { color: #5c4200; }
.note--ok { border-left-color: var(--brand); background: var(--brand-soft); color: #14512f; }
.note--ok b { color: #0b3d22; }

/* ============ 6. 清单 ============ */
.checklist {
  display: grid;
  gap: 1px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--line);
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 16px;
  background: var(--paper);
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
}
.checklist li b { color: var(--ink); font-weight: 600; }

/* ============ 7. 网络拓扑图 ============ */
.topo {
  margin-top: 24px;
  padding: 26px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #fbfdfb 0%, #f6f9f5 100%);
}
.topo svg { width: 100%; height: auto; display: block; }
.topo figcaption {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted-2);
  text-align: center;
}
.topo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  font-size: 12.5px;
  color: var(--muted);
}
.topo-legend span { display: inline-flex; align-items: center; gap: 7px; }
.topo-legend i {
  width: 18px;
  height: 0;
  border-top: 2px solid var(--brand);
  font-style: normal;
}
.topo-legend i.dash { border-top-style: dashed; border-top-color: var(--muted-2); }
.topo-legend i.wifi { border: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* ============ 8. 下载卡 ============ */
.dl {
  margin-top: 26px;
  padding: 26px 26px 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.dl__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.dl__head h3 { margin: 0; font-size: 19px; }
.dl__badge {
  padding: 2px 9px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 11.5px;
  font-weight: 600;
}
.dl__badge--warn { background: var(--amber-soft); color: #7a5a00; }
.dl__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin: 18px 0 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dl__meta div { font-size: 12px; color: var(--muted-2); }
.dl__meta b {
  display: block;
  margin-top: 3px;
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}
.dl__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dl__hint { font-size: 12.5px; color: var(--muted-2); }
.hash {
  margin-top: 16px;
  font-family: var(--font-num);
  font-size: 11.5px;
  color: var(--muted);
  word-break: break-all;
}
.hash details summary {
  cursor: pointer;
  color: var(--brand-deep);
  font-family: var(--font);
  font-size: 12.5px;
}
.hash code { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 6px; background: var(--cream); }

/* ============ 9. 版本记录 ============ */
.versions {
  margin-top: 22px;
  border-left: 2px solid var(--line-strong);
  padding-left: 20px;
}
.versions li + li { margin-top: 20px; }
.versions b { font-size: 14.5px; color: var(--ink); }
.versions span {
  margin-left: 8px;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--muted-2);
}
.versions p { margin-top: 6px; font-size: 13.5px; }

/* ============ 10. 法律条款 ============ */
.legal { max-width: 760px; }
.legal h2 { font-size: 17px; }
.legal p, .legal li { font-size: 14.5px; line-height: 1.95; }
.legal .legal__updated {
  display: inline-block;
  margin-bottom: 22px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--cream);
  font-size: 12.5px;
  color: var(--muted);
}
.legal__lead {
  padding: 20px 22px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: #14512f;
  font-size: 15px;
  line-height: 1.85;
}

/* ============ 11. 页尾相关链接 ============ */
.page-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(48px, 5vw, 72px);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.page-next a {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .22s var(--ease), transform .22s var(--ease), background-color .22s var(--ease);
}
.page-next a:hover {
  border-color: var(--brand-ring);
  background: #fbfdf9;
  transform: translateY(-2px);
}
.page-next em {
  display: block;
  font-size: 12px;
  font-style: normal;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.page-next b { font-size: 15.5px; color: var(--ink); }

/* ============ 12. 响应式 ============ */
@media (max-width: 1024px) {
  .doc { grid-template-columns: 1fr; gap: 32px; }
  .toc {
    position: static;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .toc ol {
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    gap: 0 18px;
  }
}
@media (max-width: 760px) {
  /* 拓扑图在窄屏不缩成一团：保持最小宽度并允许横向滑动 */
  .topo { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .topo svg { min-width: 620px; }
  .topo figcaption { text-align: left; }
}

@media (max-width: 640px) {
  .page-hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 48px; }
  .doc-body h2 { flex-direction: column; gap: 6px; }
  .toc ol { grid-auto-flow: row; grid-template-rows: none; }
  .tbl table { min-width: 480px; font-size: 13px; }
  .dl { padding: 20px 18px; }
  .page-next { grid-template-columns: 1fr; }
  .topo { padding: 18px 12px 14px; }
}
