:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #EFF6FF;
  --success: #059669;
  --success-light: #ECFDF5;
  --warning: #D97706;
  --warning-light: #FFFBEB;
  --danger: #DC2626;
  --danger-light: #FEF2F2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.container { max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.page-narrow { max-width: 880px; padding-top: 36px; padding-bottom: 64px; }

/* 导航栏 */
.navbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}
.navbar-inner {
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo { width: 34px; height: 34px; display: grid; place-items: center; }
.brand-logo svg { width: 32px; height: 32px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; color: var(--text); line-height: 1.2; }
.brand-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--success); font-weight: 600;
}
.dot-live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  border: none; background: transparent; cursor: pointer;
  padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); transition: all 0.18s ease;
}
.nav-link:hover { color: var(--text); background: var(--surface-alt); }
.nav-link.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* 按钮体系 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 10px; cursor: pointer;
  font-weight: 600; font-size: 14px; padding: 10px 18px; transition: all 0.18s ease;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37, 99, 235, 0.34); }
.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-alt); border-color: #CBD5E1; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--surface-alt); color: var(--text); }
.btn-success { background: linear-gradient(135deg, #059669, #047857); color: #fff; box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25); }
.btn-success:hover:not(:disabled) { transform: translateY(-1px); }
.icon-sm { width: 16px; height: 16px; }

/* 视图切换 */
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.22s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Hero 首屏 */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, #EFF6FF 0%, #F8FAFC 52%, #ECFDF5 100%);
  border-bottom: 1px solid var(--border);
  padding: 46px 0 34px;
}
.hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 780px; height: 340px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.14), transparent 70%);
}
.hero-inner { position: relative; text-align: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.9); border: 1px solid #DBEAFE;
  padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--primary);
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.hero-title {
  font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em;
  color: var(--text); margin-bottom: 10px;
}
.hero-subtitle {
  font-size: 15.5px; color: var(--text-secondary); max-width: 680px; margin: 0 auto 22px;
}

.trust-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px;
}
.trust-item {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--border);
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-secondary);
}
.trust-item svg { width: 16px; height: 16px; color: var(--success); }

.hero-search-wrap { max-width: 580px; margin: 0 auto; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 6px 8px 6px 16px;
  box-shadow: var(--shadow-md); transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--primary); }
.search-icon { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.search-box input {
  border: none; outline: none; flex: 1; font-size: 14.5px; background: transparent; color: var(--text);
  padding: 7px 0;
}

.notice-banner {
  max-width: 820px; margin: 18px auto 0;
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: rgba(255, 255, 255, 0.9); border: 1px solid #DBEAFE;
  padding: 10px 16px; border-radius: 11px; font-size: 13.5px; color: var(--text-secondary);
}
.notice-tag {
  flex-shrink: 0; background: var(--primary); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px;
}
.sandbox-banner {
  max-width: 820px; margin: 10px auto 0;
  display: flex; align-items: center; gap: 10px; text-align: left; flex-wrap: wrap;
  background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E;
  padding: 9px 15px; border-radius: 11px; font-size: 12.5px;
}
.sandbox-badge {
  background: #D97706; color: #fff; font-weight: 700; font-size: 11px;
  padding: 2px 8px; border-radius: 6px; flex-shrink: 0;
}

/* 分类与商品区 */
.catalog-section { padding-top: 28px; padding-bottom: 64px; }
.catalog-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; margin-bottom: 24px;
}
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-tab {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary);
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all 0.18s;
}
.cat-tab:hover { border-color: #CBD5E1; color: var(--text); }
.cat-tab.active {
  background: var(--text); color: #fff; border-color: var(--text);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}
.cat-count { opacity: 0.7; font-weight: 500; margin-left: 4px; font-size: 12px; }

.catalog-filters { display: flex; align-items: center; gap: 10px; }
.checkbox-pill {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 12px; border-radius: 9px; font-size: 13px; color: var(--text-secondary);
}
.select-clean {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 7px 12px; border-radius: 9px; font-size: 13px; outline: none; cursor: pointer;
}

/* 商品网格与拟物电子礼品卡 */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px;
}
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 14px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CBD5E1; }

.card-visual {
  position: relative; border-radius: 13px; padding: 16px 18px; height: 158px;
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; margin-bottom: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 8px 20px -6px rgba(15, 23, 42, 0.25);
}
.card-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,0.18) 50%, transparent 75%);
  transform: translateX(-100%); transition: transform 0.7s ease;
}
.product-card:hover .card-visual::after { transform: translateX(100%); }

/* 8 套品牌主题渐变 */
.theme-jd_crimson { background: linear-gradient(135deg, #E11D48 0%, #9F1239 100%); }
.theme-walmart_blue { background: linear-gradient(135deg, #0284C7 0%, #1E3A8A 100%); }
.theme-sams_emerald { background: linear-gradient(135deg, #059669 0%, #064E3B 100%); }
.theme-tmall_gold { background: linear-gradient(135deg, #EA580C 0%, #9A3412 100%); }
.theme-obsidian_gold { background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%); border: 1px solid rgba(251, 191, 36, 0.35); }
.theme-violet_royal { background: linear-gradient(135deg, #7C3AED 0%, #4C1D95 100%); }
.theme-sky_cyan { background: linear-gradient(135deg, #0EA5E9 0%, #0369A1 100%); }
.theme-forest_sage { background: linear-gradient(135deg, #15803D 0%, #14532D 100%); }

.cv-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.cv-tag {
  background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(6px);
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
}
.cv-hot {
  background: #FDE047; color: #713F12; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 800;
}
.cv-mid { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.cv-chip {
  width: 34px; height: 24px; border-radius: 5px;
  background: linear-gradient(135deg, #FDE68A, #D97706);
  opacity: 0.9; position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.cv-brand-sub { font-size: 12px; opacity: 0.85; font-weight: 500; }
.cv-bottom { display: flex; align-items: flex-end; justify-content: space-between; position: relative; z-index: 1; }
.cv-type { font-size: 11px; opacity: 0.8; letter-spacing: 0.08em; text-transform: uppercase; }
.cv-face { font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.cv-face small { font-size: 14px; font-weight: 700; margin-right: 2px; }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 2px 4px 4px; }
.card-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; line-height: 1.35; }
.card-sub {
  font-size: 13px; color: var(--text-muted); margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px;
}

.card-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.price-main { font-size: 24px; font-weight: 800; color: #E11D48; letter-spacing: -0.02em; }
.price-main small { font-size: 14px; font-weight: 700; margin-right: 1px; }
.price-orig { font-size: 13px; color: #94A3B8; text-decoration: line-through; margin-left: 6px; }
.discount-badge {
  background: #FFF1F2; color: #BE123C; border: 1px solid #FECDD3;
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
}

.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; padding: 8px 10px; border-radius: 9px; background: var(--bg);
  margin-bottom: 12px;
}
.stock-badge { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.stock-ok { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-out { color: var(--text-muted); }
.sold-text { color: var(--text-muted); }

.card-actions { display: flex; gap: 8px; margin-top: auto; }
.card-actions .btn-buy { flex: 1; }

/* 表单与公共卡片 */
.page-head { text-align: center; margin-bottom: 26px; }
.page-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.page-head p { font-size: 14.5px; color: var(--text-secondary); }

.panel-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px; box-shadow: var(--shadow-sm);
}
.section-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 10px 13px; font-size: 14px; color: var(--text); background: var(--surface);
  transition: border-color 0.18s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn input { flex: 1; }
.form-actions { margin-top: 8px; display: flex; justify-content: flex-end; gap: 10px; }
.hint-inline { font-weight: 400; color: var(--text-muted); font-size: 12px; margin-left: 6px; }

/* 子标签 */
.sub-tabs {
  display: inline-flex; background: var(--surface-alt); padding: 4px; border-radius: 12px;
  margin-bottom: 18px; border: 1px solid var(--border);
}
.sub-tab {
  border: none; background: transparent; padding: 8px 20px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary); cursor: pointer;
}
.sub-tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

/* 模态框 */
.modal-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15, 23, 42, 0.56); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 18px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.18s ease; }
.modal-dialog {
  background: var(--surface); border-radius: 20px; width: 100%; max-height: 92vh;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); overflow: hidden;
}
.modal-lg { max-width: 680px; }
.modal-sm { max-width: 440px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close {
  border: none; background: var(--surface-alt); width: 32px; height: 32px;
  border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; color: var(--text-secondary);
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body { padding: 22px 24px; overflow-y: auto; }

/* 下单与收银台 */
.checkout-summary {
  display: flex; align-items: center; gap: 14px; background: var(--bg);
  padding: 12px 14px; border-radius: 13px; border: 1px solid var(--border); margin-bottom: 18px;
}
.mini-card-badge {
  width: 72px; height: 48px; border-radius: 9px; color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.qty-stepper {
  display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden;
}
.qty-stepper button {
  width: 36px; height: 36px; border: none; background: var(--surface-alt); font-size: 17px; font-weight: 700; cursor: pointer;
}
.qty-stepper input {
  width: 56px; text-align: center; border: none; font-weight: 700; font-size: 15px; outline: none;
}

.pay-channel-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.pay-option {
  border: 1.5px solid var(--border); border-radius: 12px; padding: 11px 13px;
  display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all 0.16s;
}
.pay-option:hover { border-color: #93C5FD; }
.pay-option.selected { border-color: var(--primary); background: var(--primary-light); }
.pay-icon {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #fff; flex-shrink: 0;
}
.pay-icon.alipay { background: #1677FF; }
.pay-icon.wechat { background: #07C160; }
.pay-icon.sandbox { background: #D97706; }

.checkout-total-bar {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.total-num { font-size: 26px; font-weight: 800; color: #E11D48; }

.cashier-box { text-align: center; }
.order-meta-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg); padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border);
  margin-bottom: 18px; text-align: left;
}
.countdown-badge {
  background: #FFF1F2; color: #BE123C; font-weight: 700; font-size: 13px;
  padding: 4px 10px; border-radius: 8px;
}
.qr-frame {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 18px; border: 1.5px solid var(--border); border-radius: 16px;
  background: #fff; box-shadow: var(--shadow-sm); margin: 8px 0 14px;
}
.qr-frame img { max-width: 220px; max-height: 220px; border-radius: 8px; }
.cashier-tip { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 16px; }
.polling-hint {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--primary); font-weight: 600;
}
.spinner {
  width: 14px; height: 14px; border: 2px solid #BFDBFE; border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 提卡凭证卡片 */
.delivery-success-head { text-align: center; margin-bottom: 18px; }
.check-circle {
  width: 54px; height: 54px; border-radius: 50%; background: var(--success-light); color: var(--success);
  display: inline-grid; place-items: center; font-size: 26px; font-weight: 800; margin-bottom: 8px;
}
.delivery-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px;
}
.card-item-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 15px; margin-bottom: 10px;
}
.card-item-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--text-muted); margin-bottom: 8px;
}
.card-kv-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; margin-top: 6px;
}
.card-kv-label { font-size: 12px; color: var(--text-muted); width: 46px; flex-shrink: 0; }
.card-kv-val {
  flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px; font-weight: 700; color: var(--text); word-break: break-all;
}

/* 售后与进度 */
.step-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.step-header h3 { font-size: 16px; font-weight: 700; }
.step-header p { font-size: 13px; color: var(--text-muted); }

.verified-order-bar {
  background: var(--success-light); border: 1px solid #A7F3D0; color: #065F46;
  padding: 12px 16px; border-radius: 11px; font-size: 13.5px;
}
.card-checkbox-list { display: grid; gap: 8px; }
.card-check-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--bg);
}
.status-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.status-paid, .status-replaced, .status-approved_refund { background: var(--success-light); color: var(--success); }
.status-pending, .status-pending_confirm { background: var(--warning-light); color: var(--warning); }
.status-expired, .status-rejected, .status-refunded { background: var(--danger-light); color: var(--danger); }

.success-banner {
  margin-top: 18px; padding: 16px 18px; border-radius: 12px;
  background: var(--success-light); border: 1px solid #A7F3D0; color: #065F46;
}

/* 须知与 FAQ */
.notice-prose {
  white-space: pre-wrap; font-family: inherit; font-size: 14.5px;
  line-height: 1.85; color: var(--text-secondary);
}
.faq-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; font-size: 15px; color: var(--text); margin-bottom: 6px; }
.faq-a { font-size: 14px; color: var(--text-secondary); }

/* 客服弹窗 */
.support-box { text-align: center; }
.support-label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.support-val {
  background: var(--bg); border: 1px solid var(--border); border-radius: 11px;
  padding: 14px; font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 12px; word-break: break-all;
}
.support-tip { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.support-actions { display: flex; gap: 10px; justify-content: center; }

/* 页脚 */
.footer {
  background: #0F172A; color: #CBD5E1; padding: 40px 0 0; margin-top: auto;
}
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 32px; padding-bottom: 32px;
}
.footer-brand { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-desc, .footer-safe, .footer-contact { font-size: 13px; color: #94A3B8; line-height: 1.7; }
.footer-heading { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-col a { display: block; font-size: 13.5px; color: #94A3B8; margin-bottom: 7px; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 16px 0;
  font-size: 12.5px; color: #64748B;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.admin-entry-link { color: #94A3B8; }
.admin-entry-link:hover { color: #fff; text-decoration: underline; }

.empty-state { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.empty-icon { font-size: 40px; margin-bottom: 10px; }

/* Toast 提示 */
.toast-container {
  position: fixed; top: 80px; right: 20px; z-index: 90; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: #0F172A; color: #fff; padding: 11px 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-md); max-width: 340px;
  animation: fadeIn 0.2s ease;
}
.toast.ok { background: #065F46; }
.toast.err { background: #B91C1C; }

@media (max-width: 780px) {
  .navbar-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; padding-top: 4px; }
  .form-row-2, .pay-channel-list, .footer-inner { grid-template-columns: 1fr; }
  .checkout-total-bar { flex-direction: column; align-items: stretch; }
}

/* 费率标签与价格拆解 */
.pay-fee-tag {
  display: inline-block; margin-left: 5px; padding: 1px 6px; border-radius: 5px;
  background: #FFF7ED; color: #C2410C; border: 1px solid #FED7AA; font-size: 10.5px; font-weight: 700;
}
.pay-auto-tag {
  display: inline-block; margin-left: 5px; padding: 1px 6px; border-radius: 5px;
  background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; font-size: 10.5px; font-weight: 700;
}
.price-breakdown {
  background: var(--bg); border: 1px solid var(--border); border-radius: 11px;
  padding: 10px 14px; margin-top: 14px; font-size: 13px;
}
.pb-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; color: var(--text-secondary); }
.pb-row.fee { color: #B45309; font-weight: 600; }
.pb-row.disc { color: var(--success); font-weight: 600; }

.exact-pay-alert {
  background: #FFF1F2; border: 1.5px solid #FDA4AF; color: #9F1239;
  padding: 10px 14px; border-radius: 11px; margin: 10px 0; font-size: 13.5px;
}
.exact-pay-num { font-size: 26px; font-weight: 800; color: #E11D48; margin: 2px 0; }

/* 批量提卡工作台 */
.batch-delivery-toolbar {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; margin-bottom: 14px;
}
.bdt-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
}
.bdt-row + .bdt-row { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.bdt-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.view-switch {
  display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 2px;
}
.view-switch button {
  border: none; background: transparent; padding: 4px 10px; font-size: 12px; font-weight: 600;
  color: var(--text-secondary); border-radius: 6px; cursor: pointer;
}
.view-switch button.active { background: var(--primary); color: #fff; }

.cards-batch-table-wrap {
  max-height: 360px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.cards-batch-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cards-batch-table thead th {
  position: sticky; top: 0; background: #F1F5F9; color: var(--text-secondary);
  text-align: left; padding: 9px 10px; font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--border); z-index: 2;
}
.cards-batch-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cards-batch-table tr:last-child td { border-bottom: none; }
.cards-batch-table tr:hover td { background: #F8FAFC; }
.mono-cell { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; word-break: break-all; }

.batch-raw-box {
  margin-top: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px;
}
.batch-raw-box textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px;
  background: #fff; color: var(--text); resize: vertical;
}

.recent-orders-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px;
}
.recent-order-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px;
  display: flex; flex-direction: column; gap: 6px;
}
.recent-order-card .ro-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.recent-order-card .ro-actions { display: flex; gap: 8px; margin-top: 4px; }

