/* ============================================================
   店小富 · 后台 / 账号页面共用样式（与下单页同一套视觉）
   ============================================================ */
:root {
  --bg: #f4f7fc;
  --surface: #ffffff;
  --ink: #0f1729;
  --ink-2: #3b4761;
  --muted: #6d7893;
  --line: #e7ecf5;
  --line-2: #d5ddec;
  --brand: #2f5cf6;
  --accent: #2f5cf6;
  --blue-line: #e0e8fb;
  --surface-2: #f7f9fc;
  --accent-dark: #1f43c8;
  --accent-soft: #eef2ff;
  --green: #10b981;
  --amber: #f59e0b;
  --amber-soft: #fff4e0;
  --amber-ink: #a35a00;
  --red: #e5484d;
  --red-soft: #fdecec;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 1px 2px rgba(16, 24, 40, 0.04), 0 16px 36px -28px rgba(16, 24, 40, 0.3);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

html {
  color-scheme: light !important;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

/* ---------- 顶栏 ---------- */




/* ---------- 通用容器 ---------- */
.wrap {
  padding: 28px 12px 56px;
}

.card {
  --card-pad-x: 24px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px var(--card-pad-x);
  border-bottom: 1px solid var(--line);
}

.card__head h1,
.card__head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card__head .spacer {
  margin-left: auto;
}

.card__body {
  padding: 24px var(--card-pad-x);
}

.page-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-sub {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- 表单 ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.field > span {
  font-size: 13px;
  color: var(--ink-2);
}

.input {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
  color: #a8b1c1;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44, 83, 245, 0.12);
}

/* 表单控件：基于 Bootstrap 原生 form-control，仅覆盖配色与尺寸 */
.input {
  --bs-control-bg: #fff;
  --bs-control-fg: var(--ink);
  --bs-control-padding-x: 14px;
  --bs-control-padding-y: 11px;
  --bs-control-font-size: 14px;
  --bs-control-border-color: var(--line-2);
  --bs-control-border-radius: 10px;
  --bs-control-box-shadow: none;
  box-shadow: none;
}

.input:hover:not(:disabled):not([readonly]) {
  border-color: #cbd6ea;
}

.input:disabled {
  color: var(--muted);
  background: var(--surface-2);
  cursor: not-allowed;
}

/* 下拉框：用 Bootstrap 原生 caret，右侧留足空间不贴边 */
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: var(--bs-control-select-bg, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236b7789' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"));
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
  text-overflow: ellipsis;
}

/* 表格工具条里的紧凑下拉，同样保留箭头间距 */
.status-form .input {
  padding-right: 38px;
}

textarea.input {
  min-height: 90px;
  resize: vertical;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-line {
  background: #fff;
  border-color: var(--line-2);
  color: var(--ink-2);
}

.btn-line:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 8px;
}

.btn-danger {
  background: var(--red-soft);
  color: var(--red);
  border-color: transparent;
}

/* ---------- 表格 ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  font-size: 12.5px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

/* 首列 / 末列跟卡片标题、卡片边缘对齐 */
.table th:first-child,
.table td:first-child {
  padding-left: var(--card-pad-x, 24px);
}

.table th:last-child,
.table td:last-child {
  padding-right: var(--card-pad-x, 24px);
}

.table tr:last-child td {
  border-bottom: 0;
}

/* 悬停底色要同时作用到单元格：Bootstrap 默认给 td 铺了白底 */
.table tbody tr:hover,
.table tbody tr:hover > td {
  background: var(--surface-2);
}

.table .mono {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
}

.table-wrap {
  overflow-x: auto;
}

/* 表格后面紧跟分页时，去掉表格自身下外边距，末行与统计区间距与行间距一致 */
.table-wrap:has(+ .pager) .table {
  margin-bottom: 0;
}

/* ---------- 徽标 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
  background: #f1f4fa;
  color: var(--muted);
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}

.badge--pending { background: var(--amber-soft); color: var(--amber-ink); }
.badge--confirmed { background: var(--accent-soft); color: var(--accent); }
.badge--building { background: #e8f5ee; color: #0f7a4f; }
.badge--delivered { background: #f1f4fa; color: #43536d; }
.badge--cancelled { background: var(--red-soft); color: var(--red); }
.badge--admin { background: var(--accent-soft); color: var(--accent); }

.badge--super { background: #fdf1e0; color: #a4600b; font-weight: 600; }

/* ---------- 提示 ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  margin-bottom: 18px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--blue-line);
}

.alert--error {
  background: var(--red-soft);
  color: var(--red);
  border-color: #fbe3e4;
}

.alert--ok {
  background: #e8f5ee;
  color: #0f7a4f;
  border-color: #d2ebdc;
}

/* 带操作按钮的提示条（如「数据库需要更新」） */
.alert > div { min-width: 0; }
.alert b {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.alert p {
  margin: 0;
  font-size: 13px;
  opacity: 0.82;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.alert .spacer { flex: 1 1 auto; }
.alert .btn { flex: 0 0 auto; }

/* ---------- 统计卡 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.stat span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

.stat b {
  display: block;
  margin-top: 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 空状态 ---------- */
.empty {
  padding: 48px var(--card-pad-x, 20px);
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.empty b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 6px;
}

/* ---------- 登录页 ---------- */
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background:
    radial-gradient(55% 45% at 80% 0%, #e9efff 0%, rgba(234, 241, 255, 0) 62%),
    var(--bg);
}

.auth__box {
  width: 100%;
  max-width: 420px;
}

.auth__brand {
  /* 点击区域只包住 logo 文字，避免整行空白也能点 */
  display: flex;
  width: fit-content;
  margin: 0 auto 24px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* 登录 / 支付页底部的版权信息 */
.auth__copy {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.auth__copy a {
  color: inherit;
  text-decoration: none;
}

.auth__copy a:hover {
  color: var(--accent);
}

.auth__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.auth__card h1 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth__card p.sub {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--muted);
}

.auth__foot {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.auth__foot a {
  color: var(--accent);
}

.auth__hint {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f9fd;
  border: 1px dashed var(--line-2);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 后台骨架 ---------- */
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 12px 56px;
  align-items: start;
}

.side {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.side__title {
  padding: 8px 12px 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.side a:hover {
  background: #f7f9fd;
}

.side a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.side__foot {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ---------- 详情 ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.kv {
  display: grid;
  gap: 10px;
  font-size: 13.5px;
}

.kv div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.kv span {
  color: var(--muted);
}

.kv b {
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.items {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.items th {
  text-align: left;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.items td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.items td:last-child,
.items th:last-child {
  text-align: right;
}

.items tr:last-child td {
  border-bottom: 0;
}

.items .sum {
  font-weight: 700;
}

/* ---------- 支付 ---------- */
.pay {
  text-align: center;
  padding: 6px 0 2px;
}

.pay__amount {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.pay__qr {
  width: 216px;
  height: 216px;
  margin: 0 auto;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.pay__qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pay__tip {
  margin: 14px 0 4px;
  font-size: 13px;
  color: var(--muted);
}

.pay__count {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.pay__count b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pay__expired {
  padding: 24px 0;
  color: var(--muted);
  font-size: 13.5px;
}

.pay__expired p {
  margin: 0 0 14px;
}

/* ---------- 草稿卡 ---------- */
.drafts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.draft {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fff;
}

.draft b {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.draft span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

.draft__act {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

/* ---------- 后台表单网格 ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
}

.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: 1 / -1; }

.form-grid .field { margin-bottom: 0; }

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  padding-top: 26px;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  justify-content: flex-start;
}

/* 常见问题表的操作列不换行（其它表保持原样） */
.table--faq .row-actions { flex-wrap: nowrap; }

/* 常见问题表：问题与答案较长，操作列固定单行，内容列自适应收窄 */
.table--faq th:last-child,
.table--faq td:last-child {
  white-space: nowrap;
}

.table--faq td:nth-child(2) {
  color: #6b7789;
  max-width: 420px;
}


.row-actions form { display: inline-flex; }

.is-off { opacity: 0.5; }

.tabs-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px var(--card-pad-x);
  border-bottom: 1px solid var(--line);
}

.tabs-line a {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--ink-2);
  background: #fff;
}

.tabs-line a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tabs-line a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}


.pwd-target {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f5f7fb;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.pwd-tip {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 响应式 ---------- */
/* ---------- 小屏：平板 ---------- */
@media (max-width: 991px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: none;
  }

  .side::-webkit-scrollbar { display: none; }

  .side__title,
  .side__foot {
    display: none;
  }

  .side a {
    white-space: nowrap;
    flex: none;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table th,
  .table td {
    white-space: nowrap;
  }

  /* 平板及以下隐藏次要列，避免表格超宽把操作列挤出去 */
  .hide-sm { display: none !important; }
}

/* ---------- 小屏：手机 ---------- */
@media (max-width: 640px) {
  .card { --card-pad-x: 16px; }

  /* 顶栏：第一行品牌 + 账号，第二行是可横向滑动的导航 */

  .page-title { font-size: 22px; }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stat { padding: 14px 16px; }

  .stat b { font-size: 22px; }



  /* 卡片标题与操作按钮可分两行，避免把标题挤成竖排 */
  .card__head {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 10px;
  }

  .card__head .spacer { display: none; }

  /* 按钮组（筛选器等）单独占一行 */
  .card__head > .d-flex { flex: 1 1 100%; }

  /* 表单：单列 */
  .form-grid,
  .dialog .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .span-2,
  .form-grid .span-3,
  .dialog .form-grid .span-2 {
    grid-column: auto;
  }

  .field,
  .input { min-width: 0; }


  .row-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .draft {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

/* ---------- 服务配置：封面图 ---------- */
.cover {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.cover__preview {
  width: 148px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f5f7fb;
}

.cover__preview[hidden] { display: none; }

.cover__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.cover__inputs {
  flex: 1 1 220px;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.cover__inputs .input { width: 100%; }

.cover__inputs input[type="file"] {
  padding: 8px 10px;
  font-size: 12.5px;
}

@media (max-width: 640px) {
  .cover { grid-template-columns: 1fr; }
}

.cell-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cell-thumb {
  width: 56px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
  background: #f1f4fa;
  flex: none;
}

.cell-thumb--empty {
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--muted);
}


.info-empty {
  font-weight: 400;
  color: var(--muted);
}

/* ---------- 表单小元素 ---------- */
.field-hint {
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}

.form-note {
  font-size: 12.5px;
  color: var(--muted);
}

/* 卡片内表单：与字段保持同样的 22px 间距，两个页面通用 */
.form-actions--plain {
  margin-top: 22px;
  padding-top: 0;
  border-top: 0;
}

.form-grid--narrow {
  grid-template-columns: 1fr;
  max-width: 460px;
}

/* ---------- 线性图标 ---------- */
.ico {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.14em;
}

.notfound__ico {
  margin: 0 0 12px;
  color: var(--accent);
}

.notfound__ico .ico {
  width: 46px;
  height: 46px;
  stroke-width: 1.3;
}
/* ---------- Logo 字体 ---------- */
@font-face {
  font-family: "Dianify Logo";
  src: url("/assets/images/Dianify-Logo.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.logo {
  font-family: "Dianify Logo", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 22px;
  font-weight: normal;
  letter-spacing: 0;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--brand);
  transition: color 0.2s var(--ease);
}

.logo:hover { color: var(--accent); }

/* ---------- 表格：平板及以下使用卡片式，避免挤压和逐字换行 ---------- */
@media (max-width: 1023px) {
  /* 表格：手机端改成卡片式，一行一个字段，避免挤压和横向裁切 */
  .table { display: block; }
  .table thead { display: none; }
  .table tbody { display: block; }

  .table tr {
    display: block;
    padding: 12px var(--card-pad-x);
    border-bottom: 1px solid var(--line);
  }

  .table tr:last-child { border-bottom: 0; }



  .table td {
    position: relative;
    display: block;
    padding: 3px 0 3px 76px;
    border: 0;
    white-space: normal;
    word-break: break-word;
  }

  /* 标签绝对定位，换行后的内容仍与首行对齐 */
  .table td::before {
    position: absolute;
    left: 0;
    top: 3px;
    width: 68px;
    font-size: 12px;
    color: var(--muted);
  }

  .table td:last-child {
    text-align: right;
    padding: 10px 0 0;
  }

  .table td:last-child::before { display: none; }

  .table--orders td:nth-child(1)::before { content: "订单号"; }
  .table--orders td:nth-child(2)::before { content: "客户"; }
  .table--orders td:nth-child(4)::before { content: "金额"; }
  .table--orders td:nth-child(5)::before { content: "状态"; }

  .table--mine td:nth-child(1)::before { content: "订单号"; }
  .table--mine td:nth-child(3)::before { content: "金额"; }
  .table--mine td:nth-child(4)::before { content: "状态"; }

  /* 服务配置的列会随分类变化，用 data-label 渲染标签 */
  .table--catalog td[data-label]::before { content: attr(data-label); }

  /* 首列作为卡片标题，不加标签 */
  .table--catalog td:nth-child(1),
  .table--faq td:nth-child(1) {
    padding-left: 0;
    padding-bottom: 6px;
    font-size: 15px;
  }

  .table--catalog td:nth-child(1)::before,
  .table--faq td:nth-child(1)::before { display: none; }

  .table--faq td:nth-child(2)::before { content: "答案"; }
  .table--faq td:nth-child(3)::before { content: "排序"; }
  .table--faq td:nth-child(4)::before { content: "状态"; }

  .table--users td:nth-child(2)::before { content: "称呼"; }
  .table--users td:nth-child(3)::before { content: "邮箱"; }
  .table--users td:nth-child(4)::before { content: "手机号"; }
  .table--users td:nth-child(5)::before { content: "角色"; }

  /* 补全卡片标签（隐藏列恢复显示后也需要） */
  .table--orders td:nth-child(3)::before { content: "配置"; }
  .table--orders td:nth-child(6)::before { content: "提交时间"; }
  .table--mine td:nth-child(2)::before { content: "配置项"; }
  .table--mine td:nth-child(5)::before { content: "提交时间"; }
  .table--users td:nth-child(1)::before { content: "ID"; }
  .table--users td:nth-child(6)::before { content: "订单数"; }
  .table--users td:nth-child(7)::before { content: "累计金额"; }
  .table--users td:nth-child(8)::before { content: "注册时间"; }
  /* 卡片模式：首列要有标签缩进，末列不留右内边距 */
  .table td:first-child { padding-left: 76px; }

  .table td:last-child { padding-right: 0; }

  .table--catalog td:first-child,
  .table--faq td:first-child { padding-left: 0; }
  /* 卡片式布局下空间充足，隐藏的次要列恢复显示 */
  .table td.hide-sm { display: block !important; }

}

/* 桌面端：文字列设定最小宽度，避免被压成竖排（中文 min-content 只有一个字宽） */
@media (min-width: 1024px) {
  .table {
    min-width: 720px;
  }

  .table .mono,
  .table .nowrap {
    white-space: nowrap;
  }

  .table td {
    word-break: break-word;
  }

  .table--catalog td:nth-child(1),
  .table--faq td:nth-child(1) {
    min-width: 160px;
  }

  .table--catalog td:nth-child(2),
  .table--faq td:nth-child(2) {
    min-width: 180px;
  }

  .table--users td:nth-child(2) { min-width: 96px; }

  .table--users td:nth-child(3) { min-width: 200px; }

  .table--orders td:nth-child(2),
  .table--mine td:nth-child(2) {
    min-width: 90px;
  }

  .table--orders td:nth-child(6),
  .table--mine td:nth-child(5) {
    min-width: 130px;
  }
}

/* 卡片模式（≤1023）下不要任何最小宽度，避免撑破页面 */
@media (max-width: 1023px) {
  .table {
    min-width: 0;
    width: 100%;
  }

  .table td { min-width: 0; }
}

/* 中等宽度：收紧单元格内边距，让密集表格尽量不用横向滚动 */
@media (min-width: 1024px) and (max-width: 1499px) {
  .table th,
  .table td {
    padding-left: 10px;
    padding-right: 10px;
  }

  .table th:first-child,
  .table td:first-child { padding-left: var(--card-pad-x, 24px); }

  .table th:last-child,
  .table td:last-child { padding-right: var(--card-pad-x, 24px); }

  .table { font-size: 13px; }
}

/* ---------- 订单详情 / 列表增强 ---------- */
.back-link {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.back-link:hover { color: var(--accent); }

.detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}


.detail-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.badge--lg {
  padding: 6px 14px;
  font-size: 13px;
}

.muted-sm {
  font-size: 12.5px;
  color: var(--muted);
}

.muted-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* 明细表 */
.table--items th.num,
.table--items td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table--items tfoot td {
  padding-top: 14px;
  padding-bottom: 14px;
  border-top: 1px dashed var(--line);
  border-bottom: 0;
  background: var(--surface-2);
}

.table--items .num-label {
  text-align: right;
  font-size: 12.5px;
  color: var(--muted);
}

.table--items .total {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

/* 状态更新表单：下拉与按钮等高 */
.form-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.form-inline .field {
  margin-bottom: 0;
  flex: 1 1 160px;
  min-width: 0;
}

.form-inline .input,
.form-inline .btn {
  height: 44px;
}

.form-inline .btn { padding-inline: 18px; }

/* 搜索框 */
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-form .input {
  width: 220px;
  height: 38px;
  font-size: 13px;
}

.search-form .btn {
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

/* 状态筛选工具条：独立一条，和上方标题、下方表格都有间距 */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px var(--card-pad-x);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* 草稿卡片 */
.drafts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.draft {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcff 0%, #ffffff 60%);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.draft:hover {
  border-color: #cfdcfa;
  box-shadow: 0 14px 28px -22px rgba(16, 24, 40, 0.45);
  transform: translateY(-1px);
}

.draft__top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.draft__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(44, 83, 245, 0.1);
  flex: none;
}

.draft b {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

.draft__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.draft__price {
  color: var(--ink-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.draft__act {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

/* 订单详情弹窗内容 */
.od__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.od__label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.od__head b {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.od__kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 18px;
  margin-bottom: 16px;
}

.od__kv span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.od__kv b {
  font-size: 13px;
  font-weight: 600;
}

.od__note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
}



/* 中等宽度：隐藏次要列，保证操作按钮不换行 */
@media (min-width: 1024px) and (max-width: 1399px) {
  .table th.hide-md,
  .table td.hide-md {
    display: none;
  }
}

/* 详情页：明细表不强制最小宽度，窄屏时上下堆叠 */
.table--items {
  min-width: 0;
}

@media (max-width: 1279px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.kv div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.kv span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12.5px;
}

.kv b {
  min-width: 0;
  text-align: right;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- 订单凭证（水单 · 票据式） ---------- */
.receipt-wrap {
  max-width: none;
  margin: 0;
}

.receipt-wrap .back-link { margin-bottom: 10px; }

.receipt {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.04),
    0 44px 80px -60px rgba(16, 24, 40, 0.55);
}

/* 票据两侧的缺口 */
.receipt__head::before,
.receipt__head::after {
  content: "";
  position: absolute;
  bottom: -11px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  z-index: 2;
}

.receipt__head::before { left: -12px; }
.receipt__head::after { right: -12px; }

/* ---------- 抬头 ---------- */
.receipt__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 34px 24px;
  border-bottom: 1px dashed #dfe7f7;
}

.receipt__brand-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.receipt__brand {
  font-family: "Dianify Logo", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 24px;
  line-height: 1.1;
  color: var(--brand);
}

.receipt__sub {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.receipt__stub {
  text-align: right;
  min-width: 0;
}

/* 小标签统一风格 */
.receipt__mk {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.receipt__no {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  word-break: break-all;
}

/* ---------- 金额区 ---------- */
.receipt__hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 34px 22px;
}

.receipt__sum {
  margin-top: 2px;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.receipt__stamp {
  transform: rotate(-7deg);
  padding: 7px 16px;
  border: 1.5px dashed #e2c089;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #a3670f;
  background: #fffaf0;
  white-space: nowrap;
}

/* ---------- 明细 ---------- */
.receipt__items {
  padding: 6px 34px 18px;
}

.receipt__items-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 10px;
  border-top: 1px dashed #dfe7f7;
}

.receipt__items-head b {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}

.receipt__items-head span {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.receipt__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--ink-2);
}

.receipt__row + .receipt__row { border-top: 1px solid #f2f5fb; }

.receipt__row .name {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--ink);
}

.receipt__row .cat {
  flex: none;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.receipt__row .dots {
  flex: 1 1 auto;
  min-width: 16px;
  border-bottom: 1px dotted #dbe3f2;
  transform: translateY(-3px);
}

.receipt__row .price {
  flex: none;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.receipt__row .price.is-zero {
  color: var(--muted);
  font-weight: 400;
}

/* ---------- 信息网格 ---------- */
.receipt__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px 28px;
  padding: 20px 34px 24px;
  border-top: 1px dashed #dfe7f7;
}

.receipt__meta b {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.receipt__meta .is-mono {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

/* ---------- 页脚 ---------- */
.receipt__foot {
  padding: 16px 34px 20px;
  border-top: 1px dashed #dfe7f7;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
}

.receipt__foot b {
  color: var(--ink-2);
  font-weight: 600;
}

.receipt__form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.receipt__form .field {
  flex: 1 1 180px;
  margin: 0;
}

.receipt__form .input,
.receipt__form .btn {
  height: 42px;
}

/* 详情页头部：左侧标题与状态，右侧返回按钮 */
.detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 22px;
}

.detail-head__main {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.detail-head__main .page-title { margin-bottom: 6px; }

/* 副标题不再自带下边距，和内容的间距统一由页头控制 */
.detail-head__main .page-sub { margin-bottom: 0; }

.detail-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

/* 返回按钮 */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.back-btn .ico {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

.back-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 10px 22px -16px rgba(44, 83, 245, 0.9);
}

.back-btn:hover .ico { transform: translateX(-2px); }

/* 状态切换表单（放在水单外面） */
.status-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-form .input {
  width: auto;
  min-width: 120px;
  height: 40px;
  padding: 0 12px;
  font-size: 13px;
}

.status-form .btn {
  height: 40px;
  padding: 0 16px;
  font-size: 13.5px;
}

@media (max-width: 640px) {
  .detail-head__row { width: 100%; }

  .status-form { flex: 1 1 auto; }

  .status-form .input { flex: 1 1 auto; }

  .back-btn { align-self: flex-start; }
}

/* 水单：小屏适配 */
@media (max-width: 640px) {
  .receipt__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px 22px 20px;
  }

  .receipt__brand-block { gap: 10px; }

  .receipt__stub { text-align: left; }

  .receipt__no { word-break: normal; }

  .receipt__mk { white-space: nowrap; }

  .receipt__hero,
  .receipt__items,
  .receipt__meta,
  .receipt__foot {
    padding-left: 22px;
    padding-right: 22px;
  }

  .receipt__sum { font-size: 38px; }

  .receipt__stamp { font-size: 12px; padding: 6px 12px; }

  .receipt__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
  }

  .receipt__row { font-size: 13.5px; }

  .receipt__row .cat { display: none; }
}
/* ---------- 分页 ---------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--card-pad-x);
  border-top: 1px solid var(--line);
}

.pager__info {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pager__btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

a.pager__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pager__btn.is-cur {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.pager__btn.is-off {
  color: #b6c0d2;
  background: var(--surface-2);
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .pager {
    flex-direction: column;
    align-items: stretch;
  }

  .pager__btns { justify-content: center; }
}

/* 只有统计文字、没有页码的页脚条 */
.pager--count { justify-content: flex-start; }

/* 水单：优惠码抵扣说明 */
.receipt__discount {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border: 1px dashed #d9e2f5;
  border-radius: 999px;
  background: #f7faff;
  font-size: 12px;
  color: var(--muted);
}

.receipt__discount b {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 600;
}

/* 分组管理对话框 */
.tab-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tab-row .input {
  flex: 1 1 auto;
  min-width: 0;
}

.tab-row .btn {
  flex: 0 0 auto;
  height: 40px;
}

.tab-rows + #addTabRow {
  margin-top: 14px;
}

/* ---------- 单栏内容页（隐私政策等） ---------- */
.shell--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 880px;
  margin: 0 auto;
}

.legal {
  min-width: 0;
}

.legal__card {
  padding: 22px 26px;
  margin-bottom: 16px;
}

.legal__card h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal__card p,
.legal__card li {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

.legal__card p {
  margin: 0 0 10px;
}

.legal__card p:last-child {
  margin-bottom: 0;
}

.legal__card ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.legal__card li {
  margin-bottom: 4px;
}

.legal__card b {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 640px) {
  .legal__card {
    padding: 18px 16px;
  }

  .shell--single {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* 卡片模式（≤1023）下，分页上留白与行内边距对齐 */
@media (max-width: 1023px) {
  .pager { padding-top: 12px; }
}

/* 后台页脚备案号链接 */
.footer__beian {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer__beian:hover { color: var(--accent); }

/* ---------- 凭证：手工开单版式 ---------- */
.receipt__flag {
  display: flex;
  gap: 10px;
  margin: 20px 34px 0;
  padding: 12px 16px;
  border: 1px solid #ffe0b0;
  border-radius: 12px;
  background: #fff9ee;
  font-size: 12.5px;
  line-height: 1.75;
  color: #8a5a12;
}

.receipt__flag .ico {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #c07a12;
}

.receipt__row .name em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.receipt__note {
  display: grid;
  gap: 10px;
  padding: 18px 34px 24px;
  border-top: 1px dashed #dfe7f7;
}

.receipt__note b {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/* ---------- 后台：手工开单 ---------- */
.req {
  color: #d92d20;
  font-weight: 600;
}

.manual-lines td {
  vertical-align: middle;
}

.manual-lines .input {
  min-width: 0;
}

.manual-lines .js-line {
  white-space: nowrap;
  font-weight: 600;
  color: var(--ink-2);
}

.manual-total {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}

.manual-total b {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* 订单列表：手工开单标记 */
.chip--manual {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid #ffe0b0;
  border-radius: 999px;
  background: #fff5e6;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  color: #a3670f;
  vertical-align: 1px;
}
.form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manual-lines .input {
  height: 38px;
  padding: 0 10px;
  font-size: 13px;
}

.manual-lines th {
  font-size: 12px;
  padding: 10px 8px;
}

.manual-lines td {
  padding: 8px;
}

@media (max-width: 900px) {
  .form-grid--2 { grid-template-columns: minmax(0, 1fr); }
}
/* 后台表单页：卡片之间统一 18px 节奏，与页面其它区块一致 */
.form-stack > .card + .card {
  margin-top: 18px;
}

.form-stack .manual-lines {
  margin-bottom: 0;
}

.form-stack .manual-total {
  margin-top: 0;
}
/* 小屏：明细行改成「标签在上、输入在下」的纵向排布 */
@media (max-width: 1023px) {
  .table.manual-lines td,
  .table.manual-lines td:first-child,
  .table.manual-lines td:last-child {
    display: block;
    padding: 6px 0;
    text-align: left;
  }

  .table.manual-lines td[data-label]::before {
    content: attr(data-label);
    position: static;
    display: block;
    width: auto;
    margin-bottom: 5px;
    font-size: 12px;
    color: var(--muted);
  }

  .table.manual-lines td[data-label="操作"] { padding-top: 2px; }

  .table.manual-lines td[data-label="操作"]::before { display: none; }

  .table.manual-lines td[data-label="操作"] .js-del {
    width: auto;
    margin-top: 4px;
  }

  .table.manual-lines .js-line { padding-bottom: 10px; }
}
/* 订单详情：收款信息摘要 */
.pay-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 20px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.pay-summary__mk {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.pay-summary b {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* 支付链接复制行 */
.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.copy-row .input {
  flex: 1 1 320px;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12.5px;
}
/* 订单详情：收款明细行 */
.pay-detail {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.pay-detail__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}

.pay-detail__row > span {
  flex: 0 0 68px;
  font-size: 12.5px;
  color: var(--muted);
}

.pay-detail__row > b {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* 后台信息列表（支付检测等）：标签列不换行、宽度自适应 */
.pay-detail--kv { margin-top: 0; padding-top: 0; border-top: 0; }
.pay-detail--kv .pay-detail__row > span {
  flex: 0 0 auto;
  min-width: 96px;
  white-space: nowrap;
}

/* 订单详情：在线支付只读说明 */
.pay-locked {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #d8e5ff;
  border-radius: 12px;
  background: #f6f9ff;
}

.pay-locked__ico {
  flex: none;
  margin-top: 1px;
  color: var(--accent);
}

.pay-locked__ico .ico {
  width: 16px;
  height: 16px;
}

.pay-locked b {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}

.pay-locked p {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
/* 卡片内说明文字：图标 + 文本，统一上下留白 */
.card-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

.card-note--lead { margin-top: 0; }

.card-note__ico {
  flex: none;
  margin-top: 2px;
  color: #8492a8;
}

.card-note__ico .ico {
  width: 15px;
  height: 15px;
  stroke-width: 1.5;
}

.card-note + .copy-row { margin-top: 12px; }

/* 按钮与说明之间留出呼吸感 */
.form-actions + .card-note { margin-top: 14px; }

/* 后台日志块（支付检测页） */
.log-box {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f7f9fd;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 260px;
  overflow: auto;
}
