:root {
  --bg: #f7f7f8;
  --card: #ffffff;
  --ink: #16181d;
  --ink-2: #4a5060;
  --ink-3: #8a90a0;
  --line: #e6e8ee;
  --line-2: #f0f2f6;
  --brand: #1a56db;
  --brand-dark: #1544ae;
  --brand-soft: #eef3ff;
  --ok: #0a7d3f;
  --ok-soft: #e8f6ee;
  --warn: #9a5b00;
  --warn-soft: #fff4e0;
  --err: #c0271c;
  --err-soft: #fdeceb;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 24px; height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; }
.logo:hover { text-decoration: none; }
.logo-mark { font-size: 21px; }
.logo-text { font-size: 16px; letter-spacing: -.2px; display: flex; align-items: baseline; gap: 6px; }
.logo-text em { font-style: normal; font-size: 11px; color: var(--ink-3); font-weight: 600; letter-spacing: .4px; }
.nav { display: flex; gap: 4px; margin-left: 4px; }
.nav a {
  color: var(--ink-2); padding: 7px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500;
}
.nav a:hover { background: var(--line-2); color: var(--ink); text-decoration: none; }
.nav a.on { color: var(--brand); background: var(--brand-soft); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who { font-size: 13px; color: var(--ink-3); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 9px; border: 1px solid transparent;
  background: var(--brand); color: #fff; font-size: 14.5px; font-weight: 600;
  cursor: pointer; transition: .15s; font-family: inherit; white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-ok { background: var(--ok); }
.btn-ok:hover { background: #076634; }
.btn-lg { padding: 12px 26px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 5px 11px; font-size: 13px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--err); }
.btn-danger:hover { background: #a01f16; }

/* ---------- 通用块 ---------- */
.main { padding: 30px 20px 64px; min-height: 62vh; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 22px 24px; }
.flash { margin-top: 16px; }
.alert {
  padding: 11px 15px; border-radius: var(--radius-sm); font-size: 14px;
  border: 1px solid transparent;
}
.alert-ok { background: var(--ok-soft); color: var(--ok); border-color: #bfe5cf; }
.alert-err { background: var(--err-soft); color: var(--err); border-color: #f6c9c5; }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: #f5dcb0; }
.alert-info { background: var(--brand-soft); color: var(--brand-dark); border-color: #c9dafc; }

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 20px;
  font-size: 12.5px; font-weight: 600; line-height: 1.7;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-info { background: var(--brand-soft); color: var(--brand); }
.badge-muted { background: var(--line-2); color: var(--ink-3); }
.badge-live { background: var(--ok-soft); color: var(--ok); }
.badge-draft { background: var(--line-2); color: var(--ink-3); }

.page-title { font-size: 25px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.4px; }
.page-sub { color: var(--ink-3); font-size: 14px; margin: 0 0 24px; }
.sec-title { font-size: 18px; font-weight: 700; margin: 0 0 14px; letter-spacing: -.2px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }

/* ---------- 首页 Hero ---------- */
.hero {
  background: linear-gradient(135deg, #16337a 0%, #1a56db 58%, #3f7ae8 100%);
  color: #fff; border-radius: 18px; padding: 44px 40px; margin-bottom: 34px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -70px; top: -70px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.hero h1 { margin: 0 0 12px; font-size: 31px; font-weight: 750; letter-spacing: -.6px; position: relative; }
.hero p { margin: 0 0 22px; font-size: 15.5px; opacity: .93; max-width: 620px; position: relative; }
.hero-feats { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.hero-feat {
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .22);
  padding: 7px 14px; border-radius: 20px; font-size: 13.5px; font-weight: 500;
  backdrop-filter: blur(4px);
}

/* ---------- 分类 ---------- */
.cats { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 26px; }
.cat {
  padding: 7px 15px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-2); font-size: 14px; font-weight: 500;
}
.cat:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.cat.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 商品卡 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 18px; }
.pcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: .16s; box-shadow: var(--shadow);
}
.pcard:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16,24,40,.05), 0 14px 34px rgba(16,24,40,.1); }
.pcard-top {
  height: 108px; display: flex; align-items: center; justify-content: center;
  font-size: 42px; position: relative;
  background: linear-gradient(135deg, #eef3ff, #e3ecff);
}
.pcard-top.t1 { background: linear-gradient(135deg, #eaf7f0, #d8f0e5); }
.pcard-top.t2 { background: linear-gradient(135deg, #fff4e6, #ffe8cc); }
.pcard-top.t3 { background: linear-gradient(135deg, #f4efff, #e8ddfb); }
.pcard-tag {
  position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .93);
  color: var(--brand); font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 5px;
}
.pcard-body { padding: 15px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.pcard-title {
  font-size: 15.5px; font-weight: 650; margin: 0 0 6px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-sum {
  font-size: 13px; color: var(--ink-3); margin: 0 0 13px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.price { font-size: 20px; font-weight: 750; color: var(--brand); letter-spacing: -.5px; }
.price.free { color: var(--ok); font-size: 18px; }
.price-was { font-size: 12.5px; color: var(--ink-3); text-decoration: line-through; margin-left: 6px; }

/* ---------- 商品详情 ---------- */
.pd { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.pd-main { min-width: 0; }
.pd-side { position: sticky; top: 84px; }
.pd-title { font-size: 26px; font-weight: 700; margin: 0 0 10px; letter-spacing: -.4px; line-height: 1.35; }
.pd-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pd-desc { white-space: pre-wrap; color: var(--ink-2); font-size: 14.5px; line-height: 1.85; }
.pd-list { margin: 16px 0 0; padding: 0; list-style: none; }
.pd-list li { padding: 7px 0 7px 24px; position: relative; color: var(--ink-2); font-size: 14px; }
.pd-list li::before {
  content: '✓'; position: absolute; left: 0; top: 7px;
  color: var(--ok); font-weight: 700;
}
.buybox { padding: 22px; }
.buybox-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.buybox-price .price { font-size: 30px; }
.buybox-note { font-size: 13px; color: var(--ink-3); margin: 0 0 16px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 17px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field label .req { color: var(--err); margin-left: 3px; }
.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.5; }
.input, .textarea, .select {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 14.5px; font-family: inherit;
  background: #fff; color: var(--ink); transition: .15s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 86, 219, .1);
}
.textarea { min-height: 92px; resize: vertical; line-height: 1.7; }
.field-err { color: var(--err); font-size: 12.5px; margin-top: 5px; font-weight: 500; }
.input.bad { border-color: var(--err); }

/* ---------- 明细表（line 型字段）---------- */
.line-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 14px; }
.line-table th {
  text-align: left; font-size: 12.5px; color: var(--ink-3); font-weight: 600;
  padding: 7px 8px; border-bottom: 1px solid var(--line);
  white-space: nowrap;   /* 列名不换行，否则「设施设备名称」会竖成一列 */
}
.line-table td { padding: 5px 4px; border-bottom: 1px solid var(--line-2); }
.line-table .input { padding: 7px 10px; font-size: 14px; }

/* 明细表常有 5~10 列（设施设备 5 列、人员名册 7 列、印刷设备 10 列…）。
   表头必须不换行 —— 否则「设施设备名称」会被压成竖排一个字一行。
   表格占满可用宽度；列多时给一个最小宽度，窄屏可横向滚动。 */
.line-table-wrap {
  width: 100%;
  margin-bottom: 10px;
  overflow-x: auto;
}
.line-table-wrap .line-table { width: 100%; margin-bottom: 0; }
/* 每列至少 ~96px（够放 4 个中文字 + 输入框内边距），
   5 列 ≈ 480px、7 列 ≈ 672px、10 列 ≈ 960px */
.line-table-wrap[data-cols="2"] .line-table { min-width: 260px; }
.line-table-wrap[data-cols="3"] .line-table { min-width: 340px; }
.line-table-wrap[data-cols="4"] .line-table { min-width: 420px; }
.line-table-wrap[data-cols="5"] .line-table { min-width: 520px; }
.line-table-wrap[data-cols="6"] .line-table { min-width: 600px; }
.line-table-wrap[data-cols="7"] .line-table { min-width: 680px; }
.line-table-wrap[data-cols="8"] .line-table { min-width: 780px; }
.line-table-wrap[data-cols="9"] .line-table { min-width: 870px; }
.line-table-wrap[data-cols="10"] .line-table { min-width: 960px; }

/* 定制表单在主区域整页宽，字段按两列排（长文本类占满一行） */
.pd-form .field { max-width: 100%; }
.pd-form .field:has(textarea) { grid-column: 1 / -1; }
@media (min-width: 1100px) {
  .pd-form .card-pad > .field { display: inline-block; width: calc(50% - 8px); margin-right: 12px; vertical-align: top; }
  .pd-form .card-pad > .field:nth-child(2n) { margin-right: 0; }
  .pd-form .card-pad > .field:has(textarea) { display: block; width: 100%; margin-right: 0; }
}

/* ---------- 订单 ---------- */
.order-box { max-width: 720px; margin: 0 auto; }
.order-head { text-align: center; padding: 34px 24px 26px; }
.order-no { font-size: 13px; color: var(--ink-3); margin: 0 0 18px; letter-spacing: .3px; }
.order-no b { color: var(--ink); font-size: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.order-total { font-size: 15px; color: var(--ink-2); }
.order-total b { font-size: 27px; color: var(--brand); font-weight: 750; letter-spacing: -.5px; }
.pay-cnt { display: grid; gap: 9px; margin: 22px 0; }
.pay-opt {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  transition: .15s; background: #fff;
}
.pay-opt:hover { border-color: var(--brand); background: var(--brand-soft); }
.pay-opt input { accent-color: var(--brand); width: 17px; height: 17px; margin: 0; flex-shrink: 0; }
.pay-opt.off { opacity: .5; cursor: not-allowed; }
.pay-opt-ic { font-size: 20px; width: 26px; text-align: center; flex-shrink: 0; }
.pay-opt-t { flex: 1; min-width: 0; }
.pay-opt-n { font-weight: 600; font-size: 14.5px; }
.pay-opt-d { font-size: 12.5px; color: var(--ink-3); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li {
  counter-increment: s; padding: 8px 0 8px 32px; position: relative;
  color: var(--ink-2); font-size: 14px;
}
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 8px;
  width: 21px; height: 21px; border-radius: 50%; background: var(--brand-soft);
  color: var(--brand); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.dl-list { margin: 0; padding: 0; list-style: none; }
.dl-item {
  display: flex; align-items: center; gap: 13px; padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}
.dl-item:last-child { border-bottom: 0; }
.dl-ic {
  width: 38px; height: 38px; border-radius: 9px; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0;
}
.dl-t { flex: 1; min-width: 0; }
.dl-n { font-weight: 600; font-size: 14.5px; margin-bottom: 2px; }
.dl-m { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 表格（后台） ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font-size: 12.5px; color: var(--ink-3); font-weight: 600;
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fafbfc; }
.tbl a { font-weight: 500; }
.admin-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 14px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
.admin-bar .spacer { margin-left: auto; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 19px; }
.stat-n { font-size: 25px; font-weight: 750; letter-spacing: -.6px; line-height: 1.2; }
.stat-l { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

/* ---------- 页脚 ---------- */
.foot { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; }
.foot-in { display: flex; gap: 30px; justify-content: space-between; padding: 28px 20px; flex-wrap: wrap; }
.foot-t { font-weight: 700; margin-bottom: 5px; }
.foot-s { margin: 0; font-size: 13px; color: var(--ink-3); max-width: 460px; }
/* 版权署名 + ICP 备案号：江苏管局要求，版权方须与备案主体一致 */
.foot-c { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); }
.foot-c a { color: var(--ink-3); }
.foot-c a:hover { color: var(--brand); }
.foot-l { display: flex; gap: 18px; align-items: flex-start; }
.foot-l a { color: var(--ink-3); font-size: 13.5px; }
.foot-l a:hover { color: var(--brand); }

/* ---------- 证件上传 ---------- */
.doc-upload {
  background: linear-gradient(180deg, #f0f6ff, #e8f0fe);
  border: 1px solid #c9dafc;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.doc-upload .sec-title { color: var(--brand-dark); }
.up-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; margin-bottom: 10px; }
.up-btn {
  flex: 1 1 190px; min-width: 170px;
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; background: #fff;
  border: 1px dashed var(--brand); border-radius: var(--radius-sm);
  cursor: pointer; transition: .15s;
}
.up-btn:hover { background: var(--brand-soft); border-style: solid; }
.up-ic {
  font-size: 20px; color: var(--brand); width: 26px; text-align: center; flex-shrink: 0;
}
.up-t { display: flex; flex-direction: column; min-width: 0; }
.up-t b { font-size: 14px; font-weight: 600; }
.up-t i {
  font-style: normal; font-size: 12px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.up-status {
  flex-basis: 100%; font-size: 12.5px; color: var(--ink-3);
  min-height: 18px; padding-left: 2px;
}
.up-status.ok { color: var(--ok); }
.up-status.err { color: var(--err); }
.up-status.warn { color: var(--warn); }
.up-status.busy { color: var(--brand); }
.up-privacy {
  font-size: 12px; color: var(--ink-3); line-height: 1.6;
  background: rgba(255, 255, 255, .7); border-radius: 8px;
  padding: 8px 12px; margin-top: 4px;
}

/* ---------- 证件上传：OCR 未开启时的关闭态 ----------
   之前 .doc-upload.off 没有任何样式规则，导致未开启时上传区
   看起来跟正常状态一模一样 —— 客户会以为能上传，点了却只得到
   一句「未开启自动识别」。这里把整块压暗并禁用交互。 */
.doc-upload.off {
  background: #f7f7f8;
  border-color: #dfe0e3;
}
.doc-upload.off .sec-title { color: var(--ink-3); }
.doc-upload.off .up-btn {
  opacity: .5; cursor: not-allowed; pointer-events: none;
  background: #fbfbfc; border-color: #dfe0e3;
}
.doc-upload.off .up-btn:hover { background: #fbfbfc; border-style: dashed; }
.doc-upload.off .up-ic { color: var(--ink-3); }

/* 自动填充标记 */
.auto-tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-size: 10.5px; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); border-radius: 4px; vertical-align: middle;
}
/* 「已预填」角标：告诉客户这段文字是按模板给好的，按实际情况改一下即可 */
.prefill-tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-size: 10.5px; font-weight: 600; color: #8a6d1f;
  background: #fdf6e3; border-radius: 4px; vertical-align: middle;
}
/* 岗位专属的身份证上传按钮（企业负责人/质量负责人…）
   放在输入框右边，带文字「上传身份证」——
   只用一个 📷 emoji 客户看不出那是能点的（2026-10-25 用户反馈「识别标识不太明显」）。 */
.input-row { display: flex; gap: 8px; align-items: stretch; }
.input-row .input { flex: 1; min-width: 0; }
.role-pick {
  display: inline-flex; align-items: center; gap: 4px;
  flex: 0 0 auto; white-space: nowrap;
  padding: 0 12px; height: 38px;          /* 与 input 同高 */
  font-size: 13px; font-weight: 600; line-height: 1;
  color: var(--brand); background: var(--brand-soft);
  border: 1px solid #b9d0f7; border-radius: 8px;
  cursor: pointer; user-select: none;
  transition: background .15s, border-color .15s;
}
.role-pick:hover { background: #e6efff; border-color: var(--brand); }
.role-pick:active { background: #dbe8ff; }
.role-pick-ic { font-size: 14px; }
.input.auto-filled, .textarea.auto-filled {
  border-color: #7fa8f5; background: #f7faff;
}
.check-msg { font-size: 12px; margin-top: 4px; font-weight: 500; }
/* 校验提示可能较长（指出第几位错、给出正确写法），必须能换行且不撑破右侧栏 */
.check-msg { line-height: 1.6; word-break: break-word; max-width: 100%; }
.check-msg.ok { color: var(--ok); }
.check-msg.err { color: var(--err); }

/* ---------- 密码提示框 ---------- */
.pw-box {
  margin: -4px 0 14px 51px;
  padding: 12px 15px;
  background: linear-gradient(180deg, #fff8e8, #fff3d6);
  border: 1px solid #f0d49a;
  border-radius: var(--radius-sm);
}
.pw-box-t { font-size: 12.5px; color: var(--warn); font-weight: 500; }
.pw-box-v {
  font-size: 25px; font-weight: 700; letter-spacing: 4px;
  color: #8a5a00; margin: 3px 0 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.pw-box-d { font-size: 12px; color: var(--ink-3); line-height: 1.55; }

/* ---------- 弹层 ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(16, 24, 40, .5);
  display: none; align-items: center; justify-content: center; padding: 20px; z-index: 100;
  backdrop-filter: blur(3px);
}
.modal.on { display: flex; }
.modal-box {
  background: #fff; border-radius: 16px; padding: 26px; max-width: 430px; width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2); text-align: center;
}
.qr-box { margin: 16px 0; }
.qr-box img { width: 210px; height: 210px; border: 1px solid var(--line); border-radius: 10px; padding: 7px; }

/* ---------- 提示气泡 ---------- */
.tip { position: relative; display: inline-flex; }
.tip > i {
  font-style: normal; width: 15px; height: 15px; border-radius: 50%;
  background: var(--line); color: var(--ink-3); font-size: 10.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; cursor: help;
}
.tip:hover > i { background: var(--brand); color: #fff; }
.tip > b {
  display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 400;
  padding: 7px 11px; border-radius: 7px; width: 230px; text-align: left;
  font-weight: 400; line-height: 1.55; z-index: 30; pointer-events: none;
}
.tip:hover > b { display: block; }

/* ---------- 移动端 ---------- */
@media (max-width: 860px) {
  .pd { grid-template-columns: 1fr; }
  .pd-side { position: static; }
  .nav { display: none; }
  .hero { padding: 32px 24px; border-radius: 14px; }
  .hero h1 { font-size: 24px; }
  .main { padding: 22px 16px 50px; }
  .wrap { padding: 0 16px; }
  .foot-in { padding: 22px 16px; }
  .pd-title { font-size: 21px; }
  .who { display: none; }
  .card-pad { padding: 18px 17px; }
  .line-table { font-size: 13px; }
  .stat-n { font-size: 22px; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
  .topbar-in { gap: 10px; }
}

/* ---------- 收款码（订单页） ---------- */
.pay-qr-wrap {
  margin: 16px 0 4px;
  padding: 18px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2, #fbfbfd);
}
.pay-qr-title {
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  margin-bottom: 14px;
}
.pay-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pay-qr-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 12px 10px;
  text-align: center;
}
.pay-qr-tag {
  display: inline-block;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.pay-qr-img {
  width: 100%;
  max-width: 190px;
  height: auto;
  display: block;
  margin: 0 auto;
  image-rendering: auto;
}
.pay-qr-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
}
.pay-qr-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.7;
}
.pay-qr-foot b { color: var(--ink-1); }

/* ---------- 收款码（后台） ---------- */
.qr-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.qr-admin-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}
.qr-admin-prev {
  text-align: center;
  margin-bottom: 12px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-admin-prev img {
  max-width: 150px;
  max-height: 180px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.qr-admin-empty {
  color: var(--ink-3);
  font-size: 13px;
  padding: 40px 0;
}

@media (max-width: 640px) {
  .pay-qr-grid { grid-template-columns: 1fr; }
  .qr-admin-grid { grid-template-columns: 1fr; }
}

/* ---------- 获客页视觉增强（2026-10-29） ---------- */
/* 首页企业微信咨询卡片：柔和的品牌渐变描边，突出二维码入口 */
.wecom-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--brand-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.wecom-card img {
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.wecom-card img:hover { transform: scale(1.03); }

/* 商品卡片脚部：让「获取模板」链接更有指向性 */
.pcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.pcard-foot .small:last-child { color: var(--brand); font-weight: 600; }

/* 详情页侧栏二维码卡片：居中、留白更舒适 */
.pd-side .card-pad { text-align: center; }
.pd-side .card-pad img { border: 1px solid var(--line-2); box-shadow: var(--shadow); }

