/* 使用手册（2026-11-05）
 *
 * 为什么单独一份样式，不塞进 style.css：
 *   style.css 管官网首页（.hero/.pill）和更新记录页（.rel），都是"一屏一屏"
 *   的排版；手册是长文，字号、行宽、段落间距的要求完全不同，混在一起改哪边
 *   都可能碰坏另一边。这里只管这一页。
 *
 * 三条约束跟首页一样：不引第三方库/字体 CDN、宽度不写死、手机上必须能读。
 */

/* ============ 顶栏 ============ */
.mh {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.mh-in {
  max-width: 1240px; margin: 0 auto; padding: 12px 32px;
  display: flex; align-items: center; gap: 16px;
}
.mh-logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none;
  flex: 0 0 auto;
}
.mh-logo svg { width: 21px; height: 21px; color: var(--brand); }
.mh-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.mh-q {
  margin-left: auto;
  width: 260px; height: 38px; padding: 0 14px;
  border: 1px solid #dbe4ef; border-radius: 999px;
  font-size: 13.5px; color: var(--ink); background: #f7f9fc;
  outline: none; transition: border-color .15s, background .15s;
}
.mh-q:focus { border-color: #a8c4ea; background: #fff; }
.mh-q::placeholder { color: #9aa8b8; }

.mh-a {
  font-size: 13.5px; color: var(--mute); text-decoration: none; padding: 0 4px;
  flex: 0 0 auto;
}
.mh-a:hover { color: var(--brand); }
.mh-btn {
  height: 38px; padding: 0 18px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center;
  flex: 0 0 auto;
}
.mh-btn:hover { background: var(--brand-dk); }

/* ============ 两栏 ============ */
.wrap {
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 56px;
  align-items: start;
}

/* ============ 目录 ============ */
.toc {
  position: sticky; top: 74px; padding: 34px 0 40px;
  font-size: 13.5px;
}
.toc-t {
  margin: 0 0 12px; font-size: 11.5px; font-weight: 600; letter-spacing: 1.6px;
  color: #9aa8b8;
}
.toc nav { display: flex; flex-direction: column; gap: 2px; }
.toc nav a {
  display: block; padding: 7px 10px; border-radius: 8px;
  color: var(--mute); text-decoration: none; line-height: 1.5;
  border-left: 2px solid transparent;
}
.toc nav a:hover { background: #f4f7fb; color: var(--ink); }
.toc nav a.on { color: var(--brand); font-weight: 600; background: #eff5fe; border-left-color: var(--brand); }
.toc-note {
  margin: 18px 0 0; padding: 12px 12px; border-radius: 9px;
  background: #f6f9fd; color: #8296ac; font-size: 12.5px; line-height: 1.7;
}

/* ============ 正文 ============ */
.doc { padding: 34px 0 90px; max-width: 800px; }

.doc-hd { padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.kick {
  margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 3px;
  color: var(--brand);
}
.doc-hd h1 {
  margin: 0 0 14px; font-size: 36px; line-height: 1.3; letter-spacing: -.6px;
  font-weight: 600; color: var(--ink);
}
.doc-hd .lead { margin: 0; font-size: 16px; line-height: 1.9; color: var(--mute); }
.doc-hd .lead b { color: var(--ink); font-weight: 600; }
.doc-hd .meta { margin: 16px 0 0; font-size: 12.5px; color: #9aa8b8; }

.doc section { margin-bottom: 54px; scroll-margin-top: 78px; }

.doc h2 {
  margin: 0 0 16px; font-size: 24px; font-weight: 600; letter-spacing: -.3px;
  color: var(--ink); display: flex; align-items: baseline; gap: 12px;
}
.doc h2 .n {
  font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--brand);
  background: #eff5fe; border-radius: 6px; padding: 3px 8px;
  font-variant-numeric: tabular-nums;
}
.doc h3 {
  margin: 30px 0 10px; font-size: 17px; font-weight: 600; color: var(--ink);
  scroll-margin-top: 78px;
}
.doc p { margin: 0 0 12px; font-size: 15px; line-height: 1.95; color: #35485c; }
.doc p b, .doc li b { color: var(--ink); font-weight: 600; }
.doc a { color: var(--brand); text-decoration: none; border-bottom: 1px solid #cfe0f7; }
.doc a:hover { border-bottom-color: var(--brand); }

.doc ul.plain, .doc ol.steps { margin: 0 0 14px; padding: 0; list-style: none; }
.doc ul.plain li {
  position: relative; padding: 0 0 0 18px; margin: 0 0 9px;
  font-size: 15px; line-height: 1.9; color: #35485c;
}
.doc ul.plain li::before {
  content: ""; position: absolute; left: 2px; top: 13px;
  width: 5px; height: 5px; border-radius: 50%; background: #b7c8dc;
}

/* 步骤：数字圆圈。**用 CSS 计数，不在 HTML 里手写序号** ——
   中间插一条不用回头改后面所有号。 */
.doc ol.steps { counter-reset: st; }
.doc ol.steps li {
  position: relative; counter-increment: st;
  padding: 0 0 0 34px; margin: 0 0 12px;
  font-size: 15px; line-height: 1.9; color: #35485c;
}
.doc ol.steps li::before {
  content: counter(st);
  position: absolute; left: 0; top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #eff5fe; color: var(--brand);
  font-size: 12.5px; font-weight: 700; line-height: 22px; text-align: center;
  font-variant-numeric: tabular-nums;
}

.note {
  margin: 14px 0 18px; padding: 12px 15px;
  border-left: 3px solid #cfe0f7; background: #f8fbff; border-radius: 0 8px 8px 0;
  font-size: 13.8px !important; line-height: 1.85 !important; color: #4a5f76 !important;
}
.key {
  margin: 20px 0 22px; padding: 14px 18px;
  background: #0b1a2e; color: #dbe8f8; border-radius: 11px;
  font-size: 14.5px !important; line-height: 1.9 !important;
}
.key b { color: #fff; }

.tag-erp {
  display: inline-block; vertical-align: 2px; margin-right: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  color: #8a5a00; background: #fff3d6; border-radius: 4px; padding: 2px 6px;
}

/* ============ 表格 ============ */
.tbl-wrap { margin: 6px 0 20px; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font-weight: 600; color: #6d8095; font-size: 12.5px;
  padding: 0 12px 9px 0; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td {
  padding: 11px 12px 11px 0; border-bottom: 1px solid #eef3f9;
  color: #35485c; line-height: 1.75; vertical-align: top;
}
.tbl td b { color: var(--ink); }

/* ============ 流程条 ============ */
.flow2 {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 18px 0 4px;
}
.flow2 span {
  padding: 8px 13px; border-radius: 8px; background: #f4f8fe;
  border: 1px solid #dde9f8; color: #2d4664; font-size: 13.5px; font-weight: 500;
  white-space: nowrap;
}
.flow2 i {
  width: 14px; height: 1px; background: #c7d8ee; position: relative; flex: 0 0 auto;
}
.flow2 i::after {
  content: ""; position: absolute; right: 0; top: -2.5px; width: 5px; height: 5px;
  border-top: 1.4px solid #c7d8ee; border-right: 1.4px solid #c7d8ee;
  transform: rotate(45deg);
}

/* ============ 问答 ============ */
.qa { margin: 0; }
.qa dt {
  margin: 20px 0 5px; font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.qa dd {
  margin: 0; font-size: 14.5px; line-height: 1.9; color: #35485c;
}

/* ============ 结尾 ============ */
.doc-end {
  margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14px; line-height: 1.9; color: #35485c;
}
.doc-end .muted { color: #8a9aab; font-size: 13px; }

/* 搜索：被过滤掉的块 */
.hit-off { display: none !important; }
mark.hit { background: #fff1a8; color: inherit; padding: 0 1px; border-radius: 2px; }

/* ============ 窄屏 ============ */
@media (max-width: 1080px) {
  .wrap { grid-template-columns: 200px minmax(0, 1fr); gap: 34px; padding: 0 24px; }
  .mh-q { width: 190px; }
}

@media (max-width: 860px) {
  .mh-in { padding: 10px 18px; gap: 10px; flex-wrap: wrap; row-gap: 7px; }
  /* 第一行：logo + 右侧两个链接；第二行：搜索框占满 */
  .mh-logo { order: 1; }
  .mh-right { order: 2; margin-left: auto; }
  .mh-q { order: 3; flex: 1 1 100%; width: auto; margin-left: 0; }
  /* 目录收成顶部一条横向滚：手机上留一条 236 的侧栏，正文只剩 130 宽 */
  .wrap { display: block; padding: 0 18px; }
  .toc {
    position: static; padding: 16px 0 4px;
    border-bottom: 1px solid var(--line); margin-bottom: 20px;
  }
  .toc-t, .toc-note { display: none; }
  .toc nav { flex-direction: row; gap: 8px; overflow-x: auto; padding-bottom: 12px; }
  .toc nav a {
    white-space: nowrap; border-left: 0; border: 1px solid var(--line);
    border-radius: 999px; padding: 7px 13px; font-size: 13px;
  }
  .toc nav a.on { border-color: #b9cdf0; }
  .doc { padding: 8px 0 60px; max-width: none; }
  .doc-hd h1 { font-size: 27px; }
  .doc-hd .lead { font-size: 15px; }
  .doc h2 { font-size: 21px; }
  .doc h3 { font-size: 16px; margin-top: 26px; }
  .doc p, .doc ul.plain li, .doc ol.steps li { font-size: 14.6px; }
}

@media (max-width: 560px) {
  .mh-a { display: none; }
  .mh-logo { font-size: 15px; }
  .doc-hd h1 { font-size: 24px; }
  .flow2 { gap: 6px; }
  .flow2 span { padding: 6px 10px; font-size: 12.5px; }
}
