:root {
  --red-900: #6d0f07;
  --red-800: #8a1509;
  --red-700: #a81c0c;
  --red-600: #c0281a;
  --gold-300: #ffe6b8;
  --gold-400: #f7d18c;
  --gold-500: #e8b45c;
  --gold-700: #b8801f;
  --ink: #2b1a12;
  --ink-2: #6b5545;
  --ink-3: #9a8574;
  --line: #efe3d5;
  --paper: #fffdf8;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #7a1208;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

body.bg-soft { background: #f4efe8; }

.wrap { max-width: 480px; margin: 0 auto; position: relative; overflow-x: hidden; }

/* ---------- 顶部 ---------- */
.hero {
  position: relative;
  padding: 30px 22px 96px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 214, 148, 0.28), transparent 62%),
    linear-gradient(160deg, #a81c0c 0%, #8a1509 48%, #6d0f07 100%);
  color: #fff5e2;
  text-align: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: 0.7;
}

.hero-badge {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid rgba(255, 226, 173, 0.5);
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold-300);
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 27px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, #fff2cf, #f0bd63);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 2px;
}

.hero-sub {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 238, 214, 0.78);
  letter-spacing: 0.3px;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: rgba(255, 220, 160, 0.55);
  font-size: 11px;
  letter-spacing: 4px;
}

.hero-divider::before,
.hero-divider::after {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 160, 0.7));
}

.hero-divider::after { transform: scaleX(-1); }

/* ---------- 卡片 ---------- */.card {
  position: relative;
  margin: -64px 20px 0;
  background: var(--paper);
  border-radius: 14px;
  padding: 11px 12px 11px;
  box-shadow: 0 12px 28px rgba(63, 14, 6, 0.28);
  border-top: 2px solid var(--gold-400);
}

.card-title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: var(--red-800);
  letter-spacing: 0.5px;
}

.card-sub {
  margin: 0 0 9px;
  font-size: 10px;
  color: var(--ink-3);
  text-align: center;
}

.field { margin-bottom: 8px; }

/* 行内布局：标签在左，组件在右（仅落地页表单使用） */
.field.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field.row > label {
  width: 44px;
  flex: none;
  margin-bottom: 0;
}

.field.row input,
.field.row .sex-group,
.field.row .birth-group,
.field.row .phone-group { flex: 1; min-width: 0; }

.field label {
  display: block;
  font-size: 11px;
  color: var(--ink-2);
  margin-bottom: 3px;
  font-weight: 500;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="date"],
.field select {
  width: 100%;
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='5.5' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239a8574' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  padding-right: 24px;
}

.field select:invalid,
.field select option[value=""] { color: var(--ink-3); }

.field select:focus { border-color: var(--gold-500); background-color: #fffdf6; }

.field input:focus { border-color: var(--gold-500); background: #fffdf6; }

.phone-group { display: flex; gap: 6px; }

.phone-prefix {
  height: 32px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #faf6ef;
  color: var(--ink-2);
  font-size: 11.5px;
  white-space: nowrap;
}

.phone-group input { flex: 1; }

.birth-group { display: flex; gap: 6px; }

.birth-group select { flex: 1; min-width: 0; }

/* 生辰：历法切换 + 日期 + 时辰（选填） */
.birth-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.birth-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-tabs {
  display: flex;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: #faf6ef;
}

.cal-opt {
  padding: 0 8px;
  height: 30px;
  display: flex;
  align-items: center;
  font-size: 11.5px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.cal-opt + .cal-opt { border-left: 1px solid var(--line); }

.cal-opt.active {
  background: var(--red-800);
  color: #fff;
  font-weight: 600;
}

.hour-sel { width: 100%; }

.sex-group { display: flex; gap: 7px; }

.sex-opt {
  flex: 1;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-2);
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.sex-opt.active {
  border-color: var(--red-700);
  background: #fff5ef;
  color: var(--red-800);
  font-weight: 600;
}

.agree {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 10.5px;
  color: var(--ink-3);
  margin: 8px 0 7px;
  line-height: 1.5;
}

.agree input { margin: 2px 0 0; width: 12px; height: 12px; accent-color: var(--red-700); flex: none; }

.agree a { color: var(--red-700); text-decoration: none; }

.cta {
  width: 100%;
  height: 38px;
  border: none;
  border-radius: 19px;
  background: linear-gradient(180deg, #ffe1a6 0%, #f2bd5f 52%, #e2a23c 100%);
  color: #7a1208;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 5px 13px rgba(200, 130, 30, 0.35);
  transition: transform 0.1s, opacity 0.15s;
  font-family: inherit;
}

.cta:active { transform: scale(0.985); }
.cta:disabled { opacity: 0.65; cursor: not-allowed; }

.cta-pulse { animation: pulse 2.2s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 5px 13px rgba(200, 130, 30, 0.35); }
  50% { box-shadow: 0 5px 20px rgba(232, 180, 92, 0.75); }
}

.form-tip {
  margin: 6px 0 0;
  text-align: center;
  font-size: 10.5px;
  color: var(--ink-3);
}

.form-tip b { color: var(--red-700); font-weight: 600; }

/* ---------- 预览区 ---------- */
.section { margin: 18px 14px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #ffe6b8;
  margin: 0 0 10px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 220, 160, 0.45), transparent);
}

.preview-card {
  background: rgba(255, 250, 240, 0.94);
  border-radius: 14px;
  padding: 16px;
}

/* ---------- 烦扰 / 平台保障列表 ---------- */
.pain-card {
  background: rgba(255, 250, 240, 0.94);
  border-radius: 14px;
  padding: 6px 14px;
}

.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
}

.pain-item + .pain-item { border-top: 1px dashed #efe0cf; }

.pain-ico {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: #fdeede;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.pain-t {
  font-size: 14px;
  font-weight: 700;
  color: var(--red-800);
  margin-bottom: 2px;
}

.pain-body p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ---------- 服务保障条 ---------- */
.trust-strip {
  display: flex;
  gap: 10px;
}

.trust-strip > div {
  flex: 1;
  background: rgba(255, 250, 240, 0.12);
  border: 1px solid rgba(255, 220, 160, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-strip b {
  font-size: 12.5px;
  color: #ffe6b8;
  font-weight: 600;
}

.trust-strip span {
  font-size: 10.5px;
  color: rgba(255, 238, 214, 0.75);
}

/* ---------- 更多测算 ---------- */
.more-links { display: flex; gap: 9px; }

.more-links a {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.94);
  color: var(--red-800);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(63, 14, 6, 0.2);
}

.more-links a:active { transform: scale(0.97); }

.preview-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--red-800);
}

.preview-card p { margin: 0 0 10px; font-size: 13px; color: var(--ink-2); }

.blur-lines { margin-top: 10px; }

.blur-lines span {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #eadfd2, #f6efe6);
  margin-bottom: 8px;
  filter: blur(0.6px);
}

.blur-lines span:nth-child(2) { width: 88%; }
.blur-lines span:nth-child(3) { width: 72%; }
.blur-lines span:nth-child(4) { width: 80%; }

.preview-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }

.preview-tags span {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 12px;
  background: #fff3e4;
  color: var(--gold-700);
  border: 1px solid #f4e0c6;
}

/* ---------- 页脚 ---------- */
.footer {
  padding: 22px 20px 30px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 236, 210, 0.55);
  line-height: 1.9;
}

.footer a { color: rgba(255, 236, 210, 0.75); text-decoration: none; }

.footer-split { opacity: 0.4; margin: 0 6px; }

.footer-notice {
  margin: 4px 0 8px;
  padding: 8px 10px;
  border: 1px dashed rgba(255, 220, 160, 0.3);
  border-radius: 8px;
  font-size: 10px;
  color: rgba(255, 236, 210, 0.45);
  line-height: 1.7;
  text-align: justify;
}

/* ---------- 结果页 ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(160deg, #a81c0c, #8a1509);
  color: #ffeed6;
  font-size: 15px;
  font-weight: 600;
}

.topbar .back {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffeed6;
  text-decoration: none;
  font-size: 15px;
  flex: none;
}

.report-head {
  margin: 14px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(160deg, #a81c0c, #7a1208);
  color: #ffeed6;
  position: relative;
  overflow: hidden;
}

.report-head::after {
  content: "婚";
  position: absolute;
  right: -6px;
  bottom: -22px;
  font-size: 92px;
  color: rgba(255, 220, 160, 0.08);
  font-weight: 700;
  line-height: 1;
}

.report-head h2 { margin: 0 0 6px; font-size: 18px; letter-spacing: 1px; }

.report-head .meta { font-size: 12px; color: rgba(255, 235, 210, 0.75); }

.report-head .tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 10px;
  background: rgba(255, 220, 160, 0.16);
  color: #ffe0ab;
  border: 1px solid rgba(255, 220, 160, 0.3);
}

.report-body {
  margin: 0 14px 14px;
  background: var(--paper);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 10px 26px rgba(63, 14, 6, 0.18);
}

.report-body h3 {
  margin: 18px 0 6px;
  font-size: 15px;
  color: var(--red-800);
  padding-left: 9px;
  border-left: 3px solid var(--gold-500);
  line-height: 1.2;
}

.report-body h3:first-child { margin-top: 0; }

.report-body p { margin: 0 0 4px; font-size: 14px; color: #43332a; line-height: 1.85; }

.report-body .free-note {
  margin-top: 4px;
  padding: 10px 12px;
  background: #fff6e8;
  border-radius: 10px;
  border: 1px dashed #f0d9b3;
  font-size: 13px;
  color: #6b4a20;
}

/* 命盘信息卡 */
.chart-box {
  background: #fff6e8;
  border: 1px dashed #f0d9b3;
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 9px;
  font-size: 13px;
  line-height: 2;
  color: #6b4a20;
  font-variant-numeric: tabular-nums;
}
.chart-box em {
  font-style: normal;
  display: inline-block;
  min-width: 30px;
  margin-right: 8px;
  font-size: 11px;
  color: #b08d55;
}
.chart-box .dim { font-size: 11px; color: #b08d55; margin-left: 6px; }

.locked-wrap { position: relative; margin: 0 14px 14px; }

.locked {
  background: var(--paper);
  border-radius: 16px;
  padding: 16px;
  overflow: hidden;
  position: relative;
}

.locked-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.locked-title b { font-size: 14px; color: var(--red-800); }

.locked-title span { font-size: 11px; color: var(--gold-700); }

.locked-line {
  height: 11px;
  border-radius: 6px;
  margin-bottom: 9px;
  background: linear-gradient(90deg, #e9dccd, #f7f0e6);
  filter: blur(1.6px);
}

.locked-line.w90 { width: 90%; }
.locked-line.w75 { width: 75%; }
.locked-line.w84 { width: 84%; }
.locked-line.w60 { width: 60%; }

.locked-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.15), rgba(255, 253, 248, 0.92));
}

.locked-mask-inner {
  text-align: center;
  padding: 12px 18px;
}

.lock-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe1a6, #e2a23c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #7a1208;
}

.locked-mask p { margin: 0; font-size: 12px; color: var(--ink-2); }

/* 底部支付条 */
.paybar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin: 0 14px 14px;
  padding: 12px;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  box-shadow: 0 -4px 20px rgba(63, 14, 6, 0.14);
  display: flex;
  align-items: center;
  gap: 12px;
}

.paybar .price { line-height: 1.2; }

.paybar .price b {
  font-size: 22px;
  color: var(--red-700);
  font-weight: 700;
}

.paybar .price b i { font-style: normal; font-size: 13px; }

.paybar .price s { display: block; font-size: 11px; color: var(--ink-3); }

.paybar .cta { flex: 1; height: 46px; font-size: 15px; letter-spacing: 1px; }

/* 弹层 */
.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(30, 8, 4, 0.55);
  z-index: 50;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.sheet-mask.show { display: flex; }

.sheet {
  width: 100%;
  max-width: 480px;
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  padding: 18px 18px 24px;
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp 0.22s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sheet-head b { font-size: 16px; color: var(--red-800); }

.sheet-close {
  border: none;
  background: #f4ece2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
}

.amount-box {
  text-align: center;
  padding: 12px 0 10px;
  background: #fff7ea;
  border-radius: 12px;
  border: 1px dashed #eccf9f;
}

.amount-box .label { font-size: 12px; color: var(--ink-3); }

.amount-box .num {
  font-size: 34px;
  font-weight: 700;
  color: var(--red-700);
  line-height: 1.3;
}

.amount-box .num i { font-style: normal; font-size: 17px; margin-right: 2px; }

.amount-box .hint { font-size: 12px; color: #a8562c; }

.wxpay-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #07c160;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
}
.wxpay-btn:active { opacity: 0.85; }

.pay-tip {
  margin: 14px 0 0;
  padding: 9px 12px;
  background: #fdf3e3;
  border: 1px solid #f0d9b5;
  border-radius: 8px;
  color: #a8562c;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}

.pay-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--ink-3);
  font-size: 12px;
}
.pay-divider::before,
.pay-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.qr-box { text-align: center; margin: 14px 0 6px; }

.qr-box img {
  width: 208px;
  height: auto; /* 收款码原始比例显示，不拉伸 */
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.qr-tip { font-size: 12px; color: var(--ink-3); text-align: center; margin: 6px 0 14px; }

.countdown-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.countdown-line b { color: var(--red-700); font-variant-numeric: tabular-nums; }

.sheet .field input { height: 42px; }

.sheet-actions { display: flex; gap: 10px; margin-top: 12px; }

.btn-ghost {
  flex: 1;
  height: 46px;
  border-radius: 23px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.sheet .cta { flex: 1.4; height: 46px; font-size: 15px; }

.waiting {
  text-align: center;
  padding: 14px 4px 4px;
}

.waiting .spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  border: 3px solid #f0e2cd;
  border-top-color: var(--red-700);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.waiting b { display: block; font-size: 15px; color: var(--red-800); margin-bottom: 6px; }

.waiting p { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.7; }

.wechat-card {
  margin: 0 14px 16px;
  background: var(--paper);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.wechat-card img {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  border: 1px solid var(--line);
  flex: none;
}

.wechat-card .txt b { display: block; font-size: 15px; color: var(--red-800); margin-bottom: 4px; }

.wechat-card .txt p { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.6; }

/* 简单页（协议 / 我的订单 / 后台） */
.page-simple { background: #f4efe8; min-height: 100vh; }

.simple-head {
  padding: 16px;
  background: linear-gradient(160deg, #a81c0c, #8a1509);
  color: #ffeed6;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.simple-head a { color: #ffeed6; text-decoration: none; font-size: 14px; opacity: 0.85; }

.simple-card {
  margin: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(60, 30, 10, 0.08);
}

.simple-card h3 { margin: 18px 0 6px; font-size: 15px; color: var(--red-800); }
.simple-card h3:first-child { margin-top: 0; }
.simple-card p, .simple-card li { font-size: 13px; color: #4a3a30; line-height: 1.9; }
.simple-card ul { padding-left: 18px; margin: 6px 0; }

/* 订单列表 */
.order-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.order-item .row1 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }

.order-item .no { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.status { font-size: 11px; padding: 2px 8px; border-radius: 9px; }

.status.pending { background: #fff2dc; color: #a56a12; }
.status.waiting_confirm { background: #e8f1ff; color: #2b5fa8; }
.status.paid { background: #e7f7ec; color: #1f7a45; }
.status.expired { background: #f2f0ed; color: #8a8378; }

.order-item .meta { font-size: 12px; color: var(--ink-2); line-height: 1.8; }

.order-item .go {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--red-700);
  text-decoration: none;
  border: 1px solid #f0d9c8;
  padding: 4px 10px;
  border-radius: 12px;
}

/* 后台 */
/* ---------- 后台 ---------- */
.admin-wrap { max-width: 900px; margin: 0 auto; padding-bottom: 30px; }

.admin-login { max-width: 360px; margin: 40px auto; }

/* 待核对角标 */
.tab .badge {
  display: inline-block;
  min-width: 17px;
  height: 17px;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 9px;
  background: #c0281a;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  vertical-align: 1px;
}

/* 后台搜索框 */
.admin-search {
  display: flex;
  gap: 7px;
  margin: 0 0 12px;
}

.admin-search input {
  flex: 1;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
  font-family: inherit;
}

.admin-search input:focus { border-color: var(--gold-500); }

.admin-search input[type="date"] {
  flex: none;
  width: 128px;
  padding: 0 6px;
  font-size: 12px;
  color: var(--ink-2);
}

.date-sep { color: var(--ink-3); align-self: center; font-size: 12px; }

/* ---------- 设置卡片 ---------- */
.settings-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 12px;
}

.set-item { display: flex; align-items: center; gap: 8px; }

.set-item > label { font-size: 12.5px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }

.set-item > label em { color: #c0281a; font-style: normal; }

.settings-card input[type="number"] {
  width: 92px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  font-family: inherit;
}

.settings-card input[type="number"]:focus { border-color: var(--gold-500); }

.set-tip {
  flex-basis: 100%;
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* 开关 */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }

.switch input { opacity: 0; width: 0; height: 0; }

.switch .slider {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: #d8c9b8;
  transition: background 0.2s;
  cursor: pointer;
}

.switch .slider::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}

.switch input:checked + .slider { background: var(--red-700); }

.switch input:checked + .slider::before { transform: translateX(18px); }

.admin-login input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 14px;
}

.stat {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(60, 30, 10, 0.06);
}

.stat b { display: block; font-size: 20px; color: var(--red-800); line-height: 1.3; }

.stat span { font-size: 11px; color: var(--ink-3); }

.tabs { display: flex; gap: 8px; margin: 0 14px 12px; }

.tab {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
  cursor: pointer;
}

.tab.active { background: var(--red-700); color: #fff; border-color: var(--red-700); }

.admin-list { margin: 0 14px; }

.admin-item {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(60, 30, 10, 0.06);
}

.admin-item .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 10px; }

.admin-item .top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }

.admin-item .confirm-by {
  font-size: 11.5px;
  font-weight: 600;
  color: #b0541f;
}
.admin-item .confirm-by.auto { color: #1f6fb0; }
.admin-item .confirm-by.manual { color: #b0541f; }

.admin-item .amount { font-size: 20px; font-weight: 700; color: var(--red-700); font-variant-numeric: tabular-nums; }

.admin-item .info { font-size: 12px; color: var(--ink-2); line-height: 1.9; }

.admin-item .info em { font-style: normal; color: var(--ink-3); }

.admin-item .ops { display: flex; gap: 8px; margin-top: 10px; }

.btn-sm {
  padding: 7px 16px;
  border-radius: 16px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.btn-ok { background: var(--red-700); color: #fff; }
.btn-no { background: #f1ece5; color: var(--ink-2); }

.empty { text-align: center; color: var(--ink-3); font-size: 13px; padding: 30px 0; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  background: rgba(30, 8, 4, 0.86);
  color: #fff;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  max-width: 78%;
  text-align: center;
}

.toast.show { opacity: 1; }

@media (min-width: 560px) {
  .wrap { box-shadow: 0 0 60px rgba(0, 0, 0, 0.3); min-height: 100vh; }
}
