:root {
  --brand: #1668dc;
  --brand-dark: #0f4ba4;
  --brand-soft: #eaf2ff;
  --success: #18a058;
  --success-soft: #e8f7ee;
  --warn: #f5a623;
  --text: #1f2733;
  --text-sub: #6b7787;
  --line: #e6e9f0;
  --bg: #f4f6fa;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(23, 43, 77, 0.07);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--brand); text-decoration: none; }

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 14px 40px;
}

/* ---------- 管理端：电脑宽屏布局（前台仍保持窄屏移动优先） ---------- */
body.admin .page { max-width: 1480px; padding: 0 26px 56px; }
body.admin .brand-bar-inner { max-width: 1480px; }
body.admin .card { padding: 16px 18px; margin-bottom: 14px; }
body.admin .card-title { font-size: 16px; margin-bottom: 14px; }
body.admin .tabs .tab { padding: 9px 18px; font-size: 14.5px; }

/* 电脑版：左侧竖排菜单 + 右侧内容 */
.admin-layout { display: block; }
.admin-side { display: none; }
.admin-main { min-width: 0; }

@media (min-width: 1000px) {
  .admin-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 20px; align-items: start; }
  .admin-side {
    display: block;
    position: sticky;
    top: 16px;
    background: var(--card);
    border-radius: 14px;
    padding: 12px 10px 10px;
    box-shadow: var(--shadow);
  }
  .admin-side .side-head {
    font-size: 12px;
    color: var(--text-sub);
    letter-spacing: 2px;
    padding: 4px 12px 10px;
  }
  .side-nav { display: flex; flex-direction: column; gap: 4px; }
  .side-nav .tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14.5px;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    transition: background .15s, color .15s;
  }
  .side-nav .tab .ico { width: 16px; text-align: center; opacity: .55; font-size: 13px; }
  .side-nav .tab:hover { background: #f2f6fd; }
  .side-nav .tab.active { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(22,104,220,.24); }
  .side-nav .tab.active .ico { opacity: .9; }
  .side-foot {
    margin-top: 12px;
    padding: 10px 12px 2px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 12.5px;
  }
  .side-foot a { color: var(--text-sub); }
  .side-foot a:hover { color: var(--brand); }
  /* 宽屏下隐藏顶部横排标签，用左侧菜单替代 */
  .admin-main > .tabs { display: none; }
}

.form-grid { display: block; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

/* 表单分区标题 */
.form-sec {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 1.5px;
  user-select: none;
}
.form-sec::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--brand);
  border-radius: 2px;
}
.form-grid .form-sec:first-child { margin-top: 0; }
/* 成对字段：内层 field 去掉默认下边距，间距统一由外层控制 */
body.admin .form-grid .grid-2 .field { margin-bottom: 0; }
body.admin .form-grid .grid-2 { row-gap: 12px; }
body.admin .form-grid .grid-q .field { margin-bottom: 0; }

@media (min-width: 900px) {
  body.admin .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0 18px;
  }
  body.admin .form-grid .span-2 { grid-column: span 2; }
  body.admin .form-grid .span-all { grid-column: 1 / -1; }
  body.admin .form-grid textarea { min-height: 64px; }
  body.admin #kw { flex: 1 1 340px; }
  body.admin .toolbar { gap: 10px; }
  body.admin table.data th, body.admin table.data td { padding-top: 9px; padding-bottom: 9px; }
}

/* 顶部品牌栏 */
.brand-bar {
  background:
    radial-gradient(130% 170% at 88% -30%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #1668dc 0%, #0f4ba4 100%);
  color: #fff;
  padding: 14px 0 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(15, 75, 164, .22);
}
.brand-bar-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-bar img.logo {
  height: 34px;
  width: auto;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18));
}
.brand-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.3;
}
.brand-sub {
  font-size: 12px;
  opacity: .85;
  margin-top: 3px;
}
@media (max-width: 480px) {
  .brand-bar { padding: 12px 0 14px; }
  .brand-bar-inner { flex-direction: column; text-align: center; gap: 7px; }
  .brand-bar img.logo { height: 26px; }
  .brand-title { font-size: 16px; }
  .brand-sub { font-size: 11.5px; opacity: .8; margin-top: 0; }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-title .bar {
  width: 3px;
  height: 15px;
  background: var(--brand);
  border-radius: 2px;
  margin-right: 8px;
}
.card-title-left { display: flex; align-items: center; }

/* 表单 */
.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 6px;
}
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=tel], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,104,220,.1); }
textarea { resize: vertical; min-height: 70px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.grid-q { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 120px; gap: 0 10px; }
@media (max-width: 720px) {
  .grid-q { grid-template-columns: 1fr 1fr; }
  .grid-q .field:nth-child(3) { grid-column: 1 / -1; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  transition: opacity .15s;
}
.btn:active { opacity: .8; }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn.gray { background: #f0f2f6; color: var(--text-sub); }
.btn.green { background: var(--success); }
.btn.danger { background: #e5484d; }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.import-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.import-actions input[type="file"] { flex: 1 1 240px; min-width: 200px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* 搜索区 */
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; }

/* 提示 */
.msg {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}
.msg.show { display: block; }
.msg.error { background: #fdecec; color: #c62c30; }
.msg.ok { background: var(--success-soft); color: #0e7a45; }
.msg.info { background: var(--brand-soft); color: var(--brand-dark); }

/* 订单信息表 */
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  word-break: break-all;
}
.info-table th {
  width: 88px;
  background: #f7f9fc;
  color: var(--text-sub);
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}

.order-no {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .5px;
  font-family: "SF Mono", Consolas, Menlo, monospace;
}

/* 状态标签 */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  line-height: 20px;
  background: #f0f2f6;
  color: var(--text-sub);
}
.badge.departed { background: #e8f0ff; color: #1668dc; }
.badge.transport { background: #fff3e0; color: #d97706; }
.badge.delivering { background: #f3e8ff; color: #7c3aed; }
.badge.signed { background: var(--success-soft); color: #0e7a45; }
.badge.invalid { background: #f0f2f6; color: #98a2b3; text-decoration: line-through; }

/* 账号状态提示条 */
.acct-banner {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.acct-banner.ok { background: var(--success-soft); color: #0e7a45; }
.acct-banner.warn { background: #fff7e6; color: #b26a00; border: 1px solid #ffe0a3; }

/* 时间轴 */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li.timeline-empty {
  position: relative;
  padding: 4px 0 4px 30px;
  color: var(--text-sub);
  font-size: 13px;
}
.timeline li.timeline-empty::before { display: none; }
.timeline li {
  position: relative;
  padding: 0 0 20px 30px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 16px;
  bottom: -6px;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline li .dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
}
.timeline li.done .dot {
  background: var(--brand);
  border-color: var(--brand);
}
.timeline li.done::before { background: var(--brand); }
.timeline li.signed-step.done .dot { background: var(--success); border-color: var(--success); }
.timeline li.signed-step.done::before { background: var(--success); }
.timeline .node-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 8px;
}
.timeline li.done .node-label { color: var(--text); }
.timeline li.signed-step.done .node-label { color: var(--success); }
.timeline .node-desc { font-size: 13px; color: var(--text-sub); margin-top: 2px; word-break: break-all; }
.timeline .node-time { font-size: 12px; color: #9aa4b2; margin-top: 3px; }

/* 图片列表 */
.img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.img-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: #f5f6f8;
}
.img-empty { color: var(--text-sub); font-size: 13px; }

/* 图片预览 */
.viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.viewer.show { display: flex; }
.viewer img { max-width: 96%; max-height: 90%; border-radius: 8px; }

/* 后台：节点操作按钮 */
.node-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.node-actions .btn { padding: 8px 4px; font-size: 13px; }
.node-actions .btn.active { background: var(--brand); color: #fff; }
.node-actions .btn.signed-step.active { background: var(--success); }

/* 表格 */
.table-wrap { overflow: visible; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  table-layout: fixed;
}
table.data th, table.data td {
  border-bottom: 1px solid var(--line);
  padding: 6px 8px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.data th { color: var(--text-sub); font-weight: 500; background: #fafbfd; }
/* 表头吸顶：纵向滚动时列名始终可见 */
table.data thead th { position: sticky; top: 0; z-index: 2; }
table.data tr:hover td { background: #f6f9ff; }
/* 状态色条：一眼看出订单进度 */
table.data tbody tr[data-st] td:first-child { box-shadow: inset 3px 0 0 #c3cbd8; }
table.data tbody tr[data-st="已发车"] td:first-child { box-shadow: inset 3px 0 0 #1668dc; }
table.data tbody tr[data-st="运输中"] td:first-child { box-shadow: inset 3px 0 0 #d97706; }
table.data tbody tr[data-st="派送中"] td:first-child { box-shadow: inset 3px 0 0 #7c3aed; }
table.data tbody tr[data-st="已签收"] td:first-child { box-shadow: inset 3px 0 0 #18a058; }
table.data tbody tr[data-st="已失效"] td:first-child { box-shadow: inset 3px 0 0 #98a2b3; }
.cell-sub { color: var(--text-sub); font-size: 11.5px; margin-left: 6px; }

/* 单号规则预览 */
.recent-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.recent-row:last-child { border-bottom: 0; }
.recent-no { font-family: "SF Mono", Consolas, Menlo, monospace; font-weight: 700; color: var(--brand); }
.recent-sub { color: var(--text-sub); font-size: 12.5px; }

/* 财务管理金额列（红涨绿跌习惯：应收/盈利红、应付/亏损绿） */
.money { font-family: "SF Mono", Consolas, Menlo, monospace; font-weight: 600; white-space: nowrap; }
.money.rec { color: #c53030; }
.money.pay { color: #0e7a45; }
table.data tfoot th, table.data tfoot td {
  background: #f4f6fa;
  border-top: 2px solid #d9dee7;
  font-weight: 700;
}
table.data tfoot .money { font-weight: 700; }

/* ---------- 手机版下单页页头 ---------- */
body.mmobile .brand-bar { padding: 8px 0 0; margin-bottom: 8px; }
body.mmobile .brand-bar-inner {
  max-width: 720px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
}
body.mmobile .brand-bar img.logo { height: 22px; flex: 0 0 auto; }
body.mmobile .brand-title { font-size: 15px; line-height: 1.2; }
body.mmobile .brand-sub { display: none; }
body.mmobile .user-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 720px;
  margin: 8px auto 0;
  padding: 5px 16px;
  background: rgba(255, 255, 255, .14);
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 11.5px;
  color: #fff;
}
body.mmobile .user-strip #userEmail {
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: .95;
}
body.mmobile .user-strip a { color: #fff; opacity: .85; text-decoration: none; }
body.mmobile .user-strip a:active { opacity: 1; }

.rule-preview {
  font-family: "SF Mono", Consolas, Menlo, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--brand);
  background: #f4f9ff;
  border: 1px dashed #bcd8f7;
  border-radius: 8px;
  padding: 9px 12px;
}

/* 后台标签栏 */
.tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tabs .tab {
  padding: 7px 13px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  cursor: pointer;
}
.tabs .tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { flex: 1 1 120px; }

.batch-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.batch-left { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.batch-bar .hint { flex: 1 1 200px; text-align: right; }

/* 开关（后台控制前台签收图片显示） */
.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  flex: 0 0 auto;
}
.switch-label input { display: none; }
.switch-ui {
  width: 34px;
  height: 19px;
  border-radius: 10px;
  background: #c3cbd8;
  position: relative;
  transition: background .15s;
  flex: 0 0 auto;
}
.switch-ui::after {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: left .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.switch-label input:checked + .switch-ui { background: var(--success); }
.switch-label input:checked + .switch-ui::after { left: 17px; }
.switch-label input:disabled + .switch-ui { opacity: .5; }
.col-check { width: 38px; text-align: center; }
.col-check input, .rowCheck { width: 16px; height: 16px; cursor: pointer; vertical-align: middle; }
.table-wrap table.data td.col-check { text-align: center; }

.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; font-size: 13px; color: var(--text-sub); }

.hidden { display: none !important; }

.foot {
  text-align: center;
  color: var(--text-sub);
  font-size: 12px;
  padding: 10px 0;
}
.foot a { color: var(--brand); }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: inline-block;
  vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty {
  text-align: center;
  color: var(--text-sub);
  font-size: 14px;
  padding: 26px 0;
}

.file-list { display: flex; flex-wrap: wrap; gap: 8px; }
.file-item { position: relative; }
.file-item img {
  width: 78px; height: 78px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block;
}
.file-item .del {
  position: absolute; right: -4px; top: -4px;
  width: 20px; height: 20px; line-height: 18px; text-align: center;
  background: rgba(0,0,0,.6); color: #fff; border-radius: 50%;
  font-size: 13px; cursor: pointer;
}
.preview-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.preview-files img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }

.login-box { max-width: 420px; margin: 40px auto; }
.login-tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.login-tabs div {
  flex: 1; text-align: center; padding: 8px 0; border-radius: 8px;
  background: #fff; border: 1px solid var(--line); cursor: pointer; font-size: 14px;
}
.login-tabs div.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.hint { font-size: 12px; color: var(--text-sub); margin-top: 6px; }

/* ---------- 打印（A4 托单） ---------- */
#printArea { display: none; }

.print-page {
  background: #fff;
  color: #1f2733;
  font-size: 13px;
  line-height: 1.6;
  page-break-after: always;
  break-after: page;
  /* 撑满 A4（扣除 12mm 页边距），避免底部大片留白 */
  min-height: 271mm;
  display: flex;
  flex-direction: column;
}
.print-page:last-child { page-break-after: auto; break-after: auto; }
.pp-main { flex: 1 1 auto; display: flex; flex-direction: column; }

/* 页头：LOGO + 标题 + 单号区 */
.pp-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 0 14px;
  margin-bottom: 18px;
  border-bottom: 3px solid #1668dc;
}
.pp-logo { height: 46px; width: auto; display: block; flex: 0 0 auto; }
.pp-head-title { flex: 1; }
.pp-company { font-size: 23px; font-weight: 700; letter-spacing: 2px; color: #0f4ba4; line-height: 1.25; }
.pp-company-sub { font-size: 10px; letter-spacing: 3px; color: #9aa4b2; font-family: Arial, Helvetica, sans-serif; }
.pp-head-right { text-align: right; flex: 0 0 auto; }
.pp-no-label { font-size: 10px; color: #9aa4b2; letter-spacing: 2px; }
.pp-no { font-size: 17px; font-weight: 700; font-family: "SF Mono", Consolas, Menlo, monospace; color: #1f2733; letter-spacing: .5px; }
.pp-printat { font-size: 10px; color: #9aa4b2; margin-top: 3px; }
.pp-status {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 10px;
  border-radius: 10px;
  background: #eaf2ff;
  color: #1668dc;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #cddffa;
}

/* 分区标题：色块 + 竖条 */
.pp-section-title { margin: 0 0 10px; border-left: 4px solid #1668dc; padding-left: 9px; }
.pp-section-title span { font-size: 14.5px; font-weight: 700; color: #1f2733; letter-spacing: 1px; }
.pp-main > .pp-section-title + * { margin-bottom: 18px; }

/* 订单信息：四列表格（标签 + 值 成对） */
.pp-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.pp-table th, .pp-table td {
  border: 1px solid #d9dee7;
  padding: 10px 11px;
  text-align: left;
  vertical-align: middle;
  word-break: break-all;
  height: 30px;
}
.pp-table th {
  width: 78px;
  background: #f4f6fa;
  color: #6b7787;
  font-weight: 500;
  white-space: nowrap;
}
.pp-table td { color: #1f2733; font-weight: 600; }
.pp-table td.pp-remark { font-weight: 400; height: 52px; color: #4b5563; vertical-align: top; }

/* 配送路由节点：四宫格进度卡（自动撑开，版面更饱满） */
.pp-steps {
  display: flex;
  gap: 12px;
  flex: 1 1 auto;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  padding: 16px 14px;
  background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
  min-height: 150px;
}
.pp-step {
  position: relative;
  flex: 1 1 0;
  border: 1px solid #e6e9f0;
  border-radius: 6px;
  padding: 12px 12px 14px;
  background: #fff;
}
.pp-step::after {
  content: '';
  position: absolute;
  right: -12px; top: 50%;
  width: 12px; height: 2px;
  background: #d9dee7;
}
.pp-step:last-child::after { display: none; }
.pp-step.done { border-color: #bcd8f7; background: #f4f9ff; box-shadow: inset 0 0 0 1px #dbeafe; }
.pp-step.done::after { background: #1668dc; }
.pp-step-hd { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: #9aa4b2; }
.pp-step.done .pp-step-hd { color: #0f4ba4; }
.pp-step-idx {
  width: 20px; height: 20px; border-radius: 50%;
  background: #eef1f6; color: #9aa4b2;
  font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.pp-step.done .pp-step-idx { background: #1668dc; color: #fff; }
.pp-step-time { margin-top: 8px; font-size: 11px; color: #1668dc; font-weight: 600; }
.pp-step:not(.done) .pp-step-time { color: #c3cbd8; font-weight: 400; }
.pp-step-desc { margin-top: 6px; font-size: 11.5px; color: #6b7787; line-height: 1.7; }

/* 底部：温馨提示 + 客服热线 */
.pp-bottom { display: flex; gap: 14px; margin-top: auto; padding-top: 16px; }
.pp-note {
  flex: 1 1 auto;
  border: 1px dashed #c9d3e2;
  border-radius: 6px;
  padding: 12px 14px;
  background: #fafbfd;
}
.pp-note-t, .pp-contact-t { font-size: 12.5px; font-weight: 700; color: #1f2733; margin-bottom: 6px; letter-spacing: 1px; }
.pp-note-c { font-size: 11px; color: #6b7787; line-height: 1.85; }
.pp-contact {
  flex: 0 0 210px;
  border: 1px solid #cfe0f8;
  border-radius: 6px;
  padding: 12px 14px;
  background: #f4f9ff;
  text-align: right;
}
.pp-contact-tel { font-size: 15px; font-weight: 700; color: #0f4ba4; letter-spacing: .5px; line-height: 1.5; }
.pp-contact-sub { margin-top: 6px; font-size: 10.5px; color: #9aa4b2; }

.pp-foot {
  margin-top: 14px;
  padding-top: 9px;
  border-top: 2px solid #1668dc;
  font-size: 10.5px;
  color: #9aa4b2;
  text-align: center;
  letter-spacing: .5px;
}

@media print {
  /* 页边距置 0：去掉浏览器打印时自动加在页脚的网址/日期行 */
  @page { size: A4; margin: 0; }
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; }
  /* 模板自身留出 12mm 白边，内容区仍为整页 */
  .print-page { box-sizing: border-box; padding: 12mm; min-height: 296mm; }
}
