/* ===========================================================
   纸 · 表单本体样式
   唯一来源：docs/样板-全套表单（100人·AI进厂）.html
   改动这里，19 份表单同时变。
   =========================================================== */
:root{
  --bg:#e9e6e0; --paper:#fff; --ink:#141414; --ink2:#3a3a3a;
  --muted:#7a766e; --line:#c9c4ba; --line2:#e6e2d9;
  --red:#a02c1e; --gold:#b08b3a;
}

.sheet{
  background:var(--paper);width:100%;max-width:800px;margin:0 auto;
  padding:34px 42px 26px;box-shadow:0 1px 3px rgba(0,0,0,.12);
  position:relative;
  color:var(--ink);
  font:13px/1.75 "Songti SC",-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;
  font-variant-numeric:tabular-nums;
  box-sizing:border-box;
}
.sheet *{box-sizing:border-box;margin:0;padding:0}

.rh{display:flex;justify-content:space-between;align-items:baseline;
    font-size:10.5px;color:var(--muted);letter-spacing:.06em;
    border-bottom:1.5px solid var(--ink);padding-bottom:6px;margin-bottom:16px}

.sheet h2{font-size:21px;font-weight:700;letter-spacing:.12em;text-align:center;margin:6px 0 4px;font-family:"Songti SC","PingFang SC",serif}
.h2sub{text-align:center;font-size:11.5px;color:var(--muted);letter-spacing:.08em;margin-bottom:18px}

.sheet h3{font-size:13px;font-weight:700;letter-spacing:.06em;margin:20px 0 8px;padding-left:9px;border-left:3px solid var(--ink)}

/* ---- 表格 ---- */
.sheet table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}
.sheet table.b{border:1px solid var(--ink)}
.sheet table.b th,.sheet table.b td{border:1px solid #b8b2a7;padding:6px 8px;vertical-align:middle;line-height:1.6}
.sheet table.b th{background:#f0ede6;font-weight:600;font-size:11.5px;letter-spacing:.04em;text-align:left;white-space:nowrap}
.sheet table.b th.c,.sheet table.b td.c{text-align:center}
.sheet table.b th.r,.sheet table.b td.r{text-align:right}
.sheet table.b td.k{background:#faf9f5;font-weight:600;white-space:nowrap}
.sheet table.b tr.sum td{background:#f4f1e9;font-weight:700;border-top:1.5px solid var(--ink)}
.sheet table.b tr.gap td{background:#fdf3f2;font-weight:600;font-size:11.5px;text-align:center;color:#8a2b22}
.sheet table.b td.src{font-size:10.5px;color:#6b665e;line-height:1.45}
.sheet table.b th.src{background:#f6f4ef}
.sheet table.b tr.dim td{color:#9a958c}
/* 拟选方案列整体加金框（由渲染器打 pk 标记，选哪档就框哪档） */
.sheet table.pick3 th.pk{background:#f6eed6;color:#6f5210;box-shadow:inset 2px 0 0 var(--gold),inset -2px 0 0 var(--gold)}
.sheet table.pick3 td.pk{background:#fdfaf0;box-shadow:inset 2px 0 0 var(--gold),inset -2px 0 0 var(--gold)}
.sheet table.pick3 tr.sum td.pk{background:#f6eed6;font-size:15px}
.sheet table.pick3 tr:last-child td.pk{box-shadow:inset 2px 0 0 var(--gold),inset -2px 0 0 var(--gold),inset 0 -2px 0 var(--gold)}
.sb{font-size:10.5px;color:var(--muted);font-weight:400;display:block;line-height:1.45;white-space:normal}

/* ---- 正文 ---- */
.body-txt{font-size:12.5px;line-height:2.05;padding:12px 15px;background:#faf8f3;border:1px solid var(--line2)}
.body-txt .h{color:#8a6d42}
.body-txt .x{color:#6a7060}
.body-txt p{margin:0 0 9px}
.body-txt p:last-child{margin-bottom:0}

.quote-b{font-size:12.5px;line-height:1.95;border-left:2.5px solid var(--ink);padding:8px 0 8px 14px;background:#fbfaf6}

/* ---- 一句话定稿 ---- */
.final .tx:empty{min-height:1.7em;border-bottom:1px dashed #c8c2b4;display:block}
.final{border:1.5px solid var(--ink);padding:22px 24px;margin:12px 0;text-align:center}
.final .lb{font-size:10.5px;letter-spacing:.2em;color:var(--muted);margin-bottom:10px}
.final .tx{font-size:19px;font-weight:700;line-height:2;letter-spacing:.03em}
.final .tx em{font-style:normal;color:var(--red)}

/* ---- 签字栏 ---- */
.sign{margin-top:24px;border-top:1px solid var(--line);padding-top:14px;
      display:flex;gap:26px;font-size:11.5px;color:var(--ink2)}
.sign div{flex:1}
.sign span{color:var(--muted);display:inline-block;min-width:44px}
.sign u{text-decoration:none;border-bottom:1px solid #b8b2a7;display:inline-block;min-width:76px}

.rf{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);
    border-top:1px solid var(--line2);margin-top:20px;padding-top:8px}

.note{font-size:11px;color:var(--muted);line-height:1.85;margin-top:8px}
.note b{color:var(--red);font-weight:600}

.sheet tr{page-break-inside:avoid}

/* 空格子：打印出来是一道可填的虚线，不是一片白 */
.nil{display:inline-block;min-width:34px;height:11px;border-bottom:1px dotted #c9c2b3;vertical-align:-1px}

/* ===========================================================
   来源标记 · 只给屏幕看，纸上一点不留
   -----------------------------------------------------------
   s-man   人填（默认，不标）
   s-tool  工具算／带出的（不可改）
   s-gen   工具出候选、人挑一版（可改）
   body.nosrc 时全部关掉
   =========================================================== */
.sheet td.s-tool{box-shadow:inset 3px 0 0 #b9b1a0}
.sheet td.s-gen{box-shadow:inset 3px 0 0 var(--gold)}
.sheet tr.s-tool>td{background:#f6f3ea}
.sheet tr.s-gen>td{background:#fdf8e8}
.sheet th.s-tool{background:#e8e3d6}
.sheet th.s-gen{background:#f5ebd0}
/* 整张表都是工具／生成的：表头写一行小字 + 极淡底 */
.sheet table.src-tool td{background:#f7f4ea}
.sheet table.src-gen td{background:#fdf8e6}
.sheet table.src-tool th,.sheet table.src-gen th{background:#eae5d8}
.sheet table.src-tool th:first-child::before,
.sheet table.src-gen th:first-child::before{
  font-weight:400;font-size:9.5px;letter-spacing:.05em;margin-right:7px}
.sheet table.src-tool th:first-child::before{content:"工具出";color:#9b9384}
.sheet table.src-gen th:first-child::before{content:"生成";color:#a8853a}
/* 表头右侧那个小字：这一列是谁填的 */
.sheet th.s-tool::after,.sheet th.s-gen::after{
  font-weight:400;font-size:9px;letter-spacing:.04em;margin-left:6px;vertical-align:1px}
.sheet th.s-tool::after{content:"工具";color:#9b9384}
.sheet th.s-gen::after{content:"生成";color:#a8853a}

body.nosrc .sheet td.s-tool,body.nosrc .sheet td.s-gen,
body.nosrc .sheet tr.s-tool>td,body.nosrc .sheet tr.s-gen>td,
body.nosrc .sheet th.s-tool,body.nosrc .sheet th.s-gen,
body.nosrc .sheet table.src-tool td,body.nosrc .sheet table.src-gen td,
body.nosrc .sheet table.src-tool th,body.nosrc .sheet table.src-gen th{box-shadow:none;background:inherit}
body.nosrc .sheet th.s-tool::after,body.nosrc .sheet th.s-gen::after,
body.nosrc .sheet table.src-tool th:first-child::before,
body.nosrc .sheet table.src-gen th:first-child::before{content:""}

@media print{
  body{background:#fff}
  .sheet{box-shadow:none;max-width:none;padding:0}
  .nil{border-bottom:1px dotted #b8b0a0}
  .sheet td.s-tool,.sheet td.s-gen{box-shadow:none}
  .sheet tr.s-tool>td,.sheet tr.s-gen>td{background:transparent}
  .sheet table.src-tool td,.sheet table.src-gen td{background:transparent}
  .sheet th.s-tool,.sheet th.s-gen,
  .sheet table.src-tool th,.sheet table.src-gen th{background:#f0ede6}
  .sheet th.s-tool::after,.sheet th.s-gen::after,
  .sheet table.src-tool th:first-child::before,
  .sheet table.src-gen th:first-child::before{content:""}
  @page{margin:16mm 14mm}
}
