/* ===========================================================
   B 结构层 · 文档式排版
   只补结构类，不改左侧既有 class 的行为。
   设计取向：少卡片、多表格与细线；标题左对齐带小标；数字变细字。
   =========================================================== */

/* ---------- 区块标题：小标在上，标题在下，细线收尾 ---------- */
.doc-h { margin-bottom: 38px; }
.doc-h .eb {
  display: block;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.doc-h h2 {
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: -.01em;
  font-weight: 700;
}
.doc-h p {
  margin: 14px 0 0;
  max-width: 660px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.9;
}
.doc-h::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--accent);
  margin-top: 22px;
}

/* ---------- 导语段落 ---------- */
.lede { font-size: 17px; line-height: 1.95; color: var(--ink-2); max-width: 660px; }
.lede + .lede { margin-top: 14px; }

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th {
  text-align: left;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--ink-3);
  padding: 0 16px 12px;
  border-bottom: 1.5px solid var(--ink);
  white-space: nowrap;
}
.tbl td {
  padding: 17px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.75;
}
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td b { font-weight: 600; }
.tbl caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--ink-3);
  padding-bottom: 12px;
}

/* ---------- 编号条带：一类一行，不用卡片 ---------- */
.strip { border-top: 1.5px solid var(--ink); }
.strip-row {
  display: grid;
  grid-template-columns: 56px minmax(150px, 220px) 1fr auto;
  gap: 26px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.strip-row:hover { background: var(--bg-soft); }
.strip-row .no {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--accent);
  font-weight: 600;
  padding-top: 6px;
}
.strip-row h3 { font-size: 20px; line-height: 1.5; }
.strip-row .fam {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.7;
}
.strip-row .say { font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.strip-row .go {
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 6px;
  border-bottom: 1px solid rgba(200, 161, 90, .45);
}
@media (max-width: 860px) {
  .strip-row { grid-template-columns: 40px 1fr; gap: 14px; }
  .strip-row .say, .strip-row .go { grid-column: 2; }
}

/* ---------- 细线家底：数字不再是深色大块 ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--ink);
}
.facts > div {
  padding: 24px 26px 22px 0;
  border-right: 1px solid var(--line);
}
.facts > div:last-child { border-right: 0; }
.facts b {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.facts b i {
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 3px;
}
.facts span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- 两栏并排（做的件 / 怎么检） ---------- */
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 34px;
}
.twocol h3 {
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--ink-3);
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 4px;
}
.twocol ul { margin: 0; }
.twocol li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.7;
}
.twocol li em {
  font-style: normal;
  color: var(--ink-3);
  font-size: 13px;
  margin-left: 8px;
}

/* ---------- 竖排节奏条 ---------- */
.rhythm { margin-top: 8px; }
.rhythm .r {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.rhythm .r:first-child { border-top: 1.5px solid var(--ink); }
.rhythm .r b { font-size: 15px; font-weight: 600; }
.rhythm .r p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--ink-2); }

/* ---------- 一句一问（客户常问） ---------- */
.qline {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.qline:first-of-type { border-top: 1.5px solid var(--ink); }
.qline h3 { font-size: 18px; line-height: 1.6; }
.qline p { margin: 10px 0 0; font-size: 15px; line-height: 1.9; color: var(--ink-2); }

/* ---------- 图左文右的车间纪实 ---------- */
.docu {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 56px;
  align-items: stretch;
}
.docu img { border-radius: 2px; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
@media (max-width: 860px) {
  .docu { grid-template-columns: 1fr; gap: 30px; }
  .twocol { grid-template-columns: 1fr; gap: 30px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts > div:nth-child(2) { border-right: 0; }
}

/* ---------- 一行细字（数字带）：桌面横排，手机竖排 ---------- */
.fi { display: inline; }
.fi + .fi::before { content: "\3000\00b7\3000"; color: rgba(255, 255, 255, .45); }
.fi b { font-weight: 700; }
.fi em {
  font-style: normal;
  margin-left: 5px;
  color: rgba(255, 255, 255, .55);
  font-size: .86em;
}

/* ---------- 细字注脚 ---------- */
.note-line {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.8;
}

/* ---------- 案例表：一行一条 ---------- */
.case-tbl td:first-child { color: var(--accent); font-size: 13px; letter-spacing: .06em; white-space: nowrap; }
.case-tbl { table-layout: fixed; }
.case-tbl th:nth-child(1) { width: 74px; }
.case-tbl th:nth-child(2) { width: 11%; }
.case-tbl th:nth-child(3) { width: 9%; }
.case-tbl th:nth-child(4) { width: 22%; }
.case-tbl th:nth-child(5) { width: 11%; }
.case-tbl th:nth-child(6) { width: 15%; }
.case-tbl th:nth-child(7) { width: 11%; }
.case-tbl th:nth-child(8) { width: 15%; }
.case-tbl .ph { font-size: 13px; }

/* ---------- 表格横向滚动（窄屏不撑破版面） ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-wrap .tbl { min-width: 0; }
@media (max-width: 860px) {
  .tbl-wrap .tbl { min-width: 560px; }
  .case-tbl { min-width: 680px; }
}

/* ===========================================================
   手机（≤640）：B 结构的重排
   —— 条带改两行、节奏条改上下堆叠、表格改卡片、留白收紧
   =========================================================== */
@media (max-width: 640px) {
  .doc-h { margin-bottom: 24px; }
  .doc-h h2 { font-size: 21px; line-height: 1.45; text-wrap: balance; }
  .doc-h p { font-size: 14.5px; line-height: 1.8; margin-top: 10px; }
  .doc-h::after { margin-top: 16px; width: 34px; }
  .lede { font-size: 15.5px; line-height: 1.85; }

  .docu { gap: 20px; }
  .docu img { height: 200px; min-height: 0; }

  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { padding: 16px 12px 14px 0; }
  .facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .facts > div:nth-child(even) { border-right: 0; padding-left: 14px; }
  .facts b { font-size: 24px; }
  .facts b i { font-size: 12px; }
  .facts span { font-size: 12px; margin-top: 6px; }

  .twocol { gap: 20px; margin-top: 22px; }
  .twocol h3 { font-size: 12.5px; padding-bottom: 9px; }
  .twocol li { font-size: 14.5px; padding: 10px 0; }
  .twocol li em { display: block; margin: 2px 0 0; }

  .rhythm .r { grid-template-columns: 1fr; gap: 3px; padding: 14px 0; }
  .rhythm .r b { font-size: 13.5px; color: var(--accent); letter-spacing: .04em; }
  .rhythm .r p { font-size: 14.5px; }

  .qline { padding: 18px 0; }
  .qline h3 { font-size: 16px; line-height: 1.55; }
  .qline p { font-size: 14.5px; margin-top: 8px; }

  .strip-row { grid-template-columns: 28px 1fr; gap: 2px 12px; padding: 18px 0; }
  .strip-row .no { padding-top: 2px; font-size: 11px; }
  .strip-row h3, .strip-row span b { font-size: 17px !important; }
  .strip-row .fam { font-size: 12.5px; margin-top: 3px; }
  .strip-row .say { grid-column: 2; font-size: 14.5px; line-height: 1.75; margin-top: 6px; }
  .strip-row .go { grid-column: 2; padding-top: 0; margin-top: 6px; }

  .note-line { margin-top: 16px; padding-top: 11px; font-size: 12.5px; }
  .fi { display: block; line-height: 1.5; }
  .fi + .fi { margin-top: 7px; }
  .fi + .fi::before { content: none; }
  .fi b { font-size: 19px; }


  /* 表格：四列以上改卡片式（.tbl--cards），两列表格保持表格但去掉最小宽 */
  .tbl-wrap .tbl { min-width: 0; }
  .tbl { font-size: 14px; }
  .tbl thead th { padding-bottom: 9px; }
  .tbl td { padding: 13px 12px; }

  .tbl--cards { table-layout: auto !important; }
  .tbl--cards thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .tbl--cards,
  .tbl--cards tbody,
  .tbl--cards tr,
  .tbl--cards td { display: block; width: auto; min-width: 0; }
  .tbl--cards tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tbl--cards tr:first-child { padding-top: 0; }
  .tbl--cards tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .tbl--cards td { border: 0; padding: 3px 0; line-height: 1.7; }
  .tbl--cards td::before {
    content: attr(data-th);
    display: block;
    font-size: 11.5px;
    letter-spacing: .06em;
    color: var(--ink-3);
    margin-bottom: 1px;
  }
  .tbl--cards td:empty { display: none; }
  .tbl--cards td:first-child::before { content: none; }
  .tbl--cards td:first-child { font-weight: 600; font-size: 15.5px; padding-bottom: 5px; }
  .tbl--cards td[data-th=""] { padding-top: 0; }

  /* 案例表：第一列当小标题，不显示「#」标签 */
  .case-tbl td:first-child { padding-bottom: 6px; }
  .case-tbl td:first-child::before { content: none; }
  .case-tbl tr { padding: 18px 0; }
}
