:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --surface-2: #fbfaf8;
  --ink: #1e232c;
  --ink-2: #3b4250;
  --muted: #757d89;
  --line: #e8e3dd;
  --line-strong: #d9d2c9;
  --accent: #96684c;
  --accent-dark: #7a533b;
  --accent-soft: #f4ebe4;
  --ok: #2f7d5d;
  --ok-soft: #e7f3ed;
  --warn: #b0781d;
  --warn-soft: #fbf1dd;
  --danger: #b4443d;
  --danger-soft: #fbeae8;
  --info: #3a6b96;
  --info-soft: #e9f1f8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(30, 35, 44, .04), 0 8px 28px rgba(30, 35, 44, .05);
  --shadow-lg: 0 20px 60px rgba(30, 35, 44, .14);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 10px; }
small { color: var(--muted); }

.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); }
.boot-mark { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 通用组件 ---------- */
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.container-narrow { width: min(780px, calc(100% - 36px)); margin: 0 auto; }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-2); cursor: pointer;
  font-weight: 550; transition: .16s ease; white-space: nowrap;
}
.btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn:disabled { opacity: .48; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-danger { color: var(--danger); border-color: #ebcdca; }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 11px; }
.btn-block { width: 100%; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-head h3 { font-size: 15.5px; }
.card-body { padding: 18px 20px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: #cbe6d8; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: #efdfb9; }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: #f0d1ce; }
.badge.info { background: var(--info-soft); color: var(--info); border-color: #d3e3f2; }
.badge.accent { background: var(--accent-soft); color: var(--accent-dark); border-color: #e7d3c4; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 11.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--surface); color: var(--ink); outline: none; transition: .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { min-height: 88px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }

.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-weight: 650; color: var(--muted); font-size: 12px; letter-spacing: .02em; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fcfbf9; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink-2); margin-bottom: 6px; font-size: 15px; }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; gap: 8px; max-width: min(360px, calc(100% - 40px)); }
.toast-item { padding: 12px 16px; border-radius: 11px; background: #232a35; color: #fff; box-shadow: var(--shadow-lg); font-size: 13.5px; animation: toastIn .22s ease; }
.toast-item.ok { background: #256c50; } .toast-item.err { background: #a63c36; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }

.modal-backdrop { position: fixed; inset: 0; background: rgba(24, 28, 36, .42); z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal { background: var(--surface); border-radius: 16px; width: min(620px, 100%); max-height: min(86vh, 800px); overflow: auto; box-shadow: var(--shadow-lg); }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.modal-close { border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }

.notice { padding: 12px 14px; border-radius: 10px; background: var(--info-soft); border: 1px solid #d6e5f3; color: #2d5b80; font-size: 12.5px; line-height: 1.65; }
.notice.warn { background: var(--warn-soft); border-color: #efdfb9; color: #8a5c15; }
.notice.danger { background: var(--danger-soft); border-color: #f0d1ce; color: #993a34; }
.notice.ok { background: var(--ok-soft); border-color: #cbe6d8; color: #26694e; }

/* ---------- 商城 H5 ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { height: 64px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #b78a6b, #7d5640); display: grid; place-items: center; color: #fff; font-size: 15px; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { padding: 7px 12px; border-radius: 8px; color: var(--ink-2); font-size: 13.5px; font-weight: 550; }
.nav-links a:hover, .nav-links a.active { background: var(--accent-soft); color: var(--accent-dark); }

.hero { position: relative; overflow: hidden; border-radius: 18px; margin: 24px 0; min-height: 260px; background: linear-gradient(120deg, #efe2d6, #e9ded9 50%, #dfe5e1); border: 1px solid var(--line); }
.hero-inner { position: relative; z-index: 2; padding: 40px 42px; max-width: 600px; }
.hero h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.25; margin-bottom: 12px; }
.hero p { color: #5d5a58; font-size: 15px; max-width: 460px; }
.hero-art { position: absolute; right: -30px; top: -40px; width: 46%; height: 130%; opacity: .55; background: radial-gradient(circle at 40% 30%, #c9a68d 0, transparent 55%), radial-gradient(circle at 70% 70%, #8fa39b 0, transparent 52%); filter: blur(2px); }
.hero-tags { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 30px 0 16px; }
.section-head h2 { font-size: 20px; }
.section-head p { color: var(--muted); font-size: 13px; margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: 13px; cursor: pointer; }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 18px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(30,35,44,.10); }
.product-cover { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #d9c3b2, #b8c3bb); position: relative; overflow: hidden; }
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
.product-cover .kind-tag { position: absolute; left: 10px; top: 10px; }
.product-info { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-info h3 { font-size: 15px; line-height: 1.4; }
.product-meta { display: flex; gap: 10px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.price { color: var(--accent-dark); font-weight: 700; font-size: 19px; }
.price small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.price-stack { display: flex; flex-direction: column; gap: 4px; }
.price-main { margin: 0; line-height: 1.2; }
.buy-panel .price-main { margin: 8px 0 4px; }
.price-compare { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.price-compare s { color: var(--muted); }
.price-save { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--danger); background: var(--danger-soft); }
.sale-flag { display: inline-flex; align-items: center; width: fit-content; padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; color: #fff; background: var(--accent-dark); }
.price-stack-compact .price-main { font-size: 16px; }
.price-stack-compact .price-compare { font-size: 11px; gap: 5px; }
.price-stack-compact .sale-flag { font-size: 10.5px; padding: 1px 6px; }
.order-list-price { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; }

.carousel { position: relative; border-radius: 16px; overflow: hidden; background: #e9e2db; border: 1px solid var(--line); }
.carousel-track { display: flex; transition: transform .35s ease; }
.carousel-track img { width: 100%; flex: 0 0 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.carousel-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.carousel-dots button { width: 7px; height: 7px; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.carousel-dots button.active { background: #fff; width: 20px; border-radius: 4px; }
.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.86); border: 0; border-radius: 50%; width: 34px; height: 34px; cursor: pointer; color: var(--ink); }
.carousel-nav.prev { left: 12px; } .carousel-nav.next { right: 12px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; margin-top: 22px; }
.detail-block { margin-bottom: 18px; }
.detail-image { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.detail-image img { width: 100%; }
.buy-panel { position: sticky; top: 84px; }
.buy-price { font-size: 30px; color: var(--accent-dark); font-weight: 700; margin: 8px 0 4px; }
.fact-list { display: grid; gap: 9px; margin: 14px 0; }
.fact-list div { display: flex; justify-content: space-between; font-size: 13px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.fact-list span:last-child { color: var(--ink-2); font-weight: 550; }

.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: linear-gradient(150deg, #e8dcd0, #cbb7a5 45%, #a9b6ad); position: relative; overflow: hidden; }
.auth-art::after { content: ''; position: absolute; inset: 12% 14%; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }
.auth-art-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; padding: 40px; z-index: 2; }
.auth-art-in h2 { font-size: 30px; text-shadow: 0 2px 14px rgba(0,0,0,.15); }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(400px, 100%); }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.media-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.media-item .ph { aspect-ratio: 3/4; background: linear-gradient(135deg, #d9d2c8, #a9b2ad); display: grid; place-items: center; color: #fff; font-size: 12px; }
.media-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.media-item .cap { padding: 9px 11px; font-size: 12px; display: flex; justify-content: space-between; gap: 6px; }
.video-ph { position: relative; background: linear-gradient(135deg, #3b4a42, #7c8f7f); }
.video-ph::after { content: '▶'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: rgba(255,255,255,.8); }

.pay-option { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 15px; border: 1px solid var(--line-strong); border-radius: 12px; margin-bottom: 10px; cursor: pointer; background: var(--surface); color: var(--ink); text-align: left; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.pay-option:hover { border-color: #b9aa9e; box-shadow: 0 6px 18px rgba(30, 35, 44, .06); }
.pay-option.disabled { opacity: .58; cursor: not-allowed; background: var(--surface-2); }
.pay-option.active { border-color: var(--accent); background: #fffaf6; box-shadow: 0 0 0 2px rgba(150, 104, 76, .1); }
.pay-option .dot { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--line-strong); flex: 0 0 auto; }
.pay-option.active .dot { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 45%, transparent 48%); }
.pay-brand { width: 38px; height: 38px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: #fff; font-weight: 750; font-size: 17px; }
.pay-brand.wechat { background: #16a34a; }
.pay-brand.alipay { background: #1677ff; }
.pay-option-copy { display: flex; flex-direction: column; line-height: 1.4; }
.pay-option-copy strong { font-size: 14.5px; }
.pay-option-copy span { color: var(--muted); font-size: 12px; margin-top: 3px; }
.pay-smart-tag { background: #eaf3ff; color: #1768c5; border-radius: 999px; padding: 2px 8px; font-size: 11px; white-space: nowrap; }

/* ---------- 客户支付页 ---------- */
.checkout-page { padding: 24px 0 64px; }
.checkout-nav { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.checkout-nav a { color: var(--ink-2); }
.checkout-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.checkout-head h1 { font-size: 26px; line-height: 1.25; }
.checkout-head p { color: var(--muted); margin: 7px 0 0; font-size: 13px; }
.checkout-eyebrow { color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: .08em; margin-bottom: 5px; }
.checkout-secure { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); background: var(--ok-soft); border: 1px solid #cbe6d8; padding: 7px 11px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.checkout-secure span { width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; background: var(--ok); }
.checkout-summary { overflow: hidden; margin-bottom: 14px; }
.checkout-product { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 18px 20px; background: var(--surface-2); }
.checkout-total > span { color: var(--ink-2); font-size: 13px; }
.checkout-total > div { display: flex; align-items: baseline; gap: 9px; }
.checkout-total strong { color: var(--accent-dark); font-size: 28px; line-height: 1; }
.checkout-saving { padding: 7px 20px; color: var(--danger); background: #fff5f3; border-top: 1px solid #f4ded9; font-size: 12px; text-align: right; }
.checkout-methods { margin-top: 14px; }
.checkout-methods[hidden] { display: none; }
.checkout-section-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.checkout-section-title h3 { font-size: 16px; }
.checkout-section-title > div > span { color: var(--muted); font-size: 12px; }
.checkout-recommend { color: #1768c5; background: #eaf3ff; padding: 4px 9px; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.checkout-channel-hint { margin: 13px 0 14px; padding: 10px 12px; border-radius: 9px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; }
.checkout-pay-btn { min-height: 48px; font-weight: 700; }
.checkout-footnote { display: flex; justify-content: center; align-items: center; gap: 5px; color: var(--muted); font-size: 11.5px; margin-top: 11px; text-align: center; }
.pay-waiting { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: 4px 10px; font-size: 11.5px; margin-bottom: 10px; }
.pay-waiting span { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 125, 93, .12); animation: payPulse 1.5s ease infinite; }
@keyframes payPulse { 50% { opacity: .45; transform: scale(.85); } }
.pay-qr-card { margin-top: 14px; text-align: center; border-color: #d9e9e1; }
.pay-qr-card h3 { font-size: 19px; }
.pay-qr-card p { color: var(--ink-2); font-size: 12.5px; margin-top: 8px; }
.pay-qr-amount { color: var(--ink-2); font-size: 12px; margin-top: 10px; }
.pay-qr-amount strong { color: var(--accent-dark); font-size: 18px; margin-left: 4px; }
.pay-qr-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.pay-result-card { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 14px; border-color: #d9e7fa; }
.pay-result-card h3 { font-size: 16px; }
.pay-result-card p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.pay-result-actions { width: 100%; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 2px; }

.mobile-buybar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- 后台 SaaS ---------- */
.console { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 4px 10px 18px; }
.side-group { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .08em; padding: 14px 12px 6px; text-transform: uppercase; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-size: 13.5px; font-weight: 550; }
.side-link:hover { background: var(--surface-2); }
.side-link.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 650; }
.side-link .ico { width: 18px; text-align: center; font-size: 15px; opacity: .85; }
.side-foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

.console-main { min-width: 0; }
.console-top { height: 62px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 26px; position: sticky; top: 0; z-index: 20; }
.console-top h1 { font-size: 17px; }
.console-top .crumb { color: var(--muted); font-size: 13px; }
.console-body { padding: 24px 26px 48px; max-width: 1440px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-size: 12px; font-weight: 700; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.stat-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 25px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.stat-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.stat.accent .stat-value { color: var(--accent-dark); }
.stat.ok .stat-value { color: var(--ok); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 150px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tab { padding: 9px 14px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 550; border-bottom: 2px solid transparent; }
.tab.active { color: var(--accent-dark); border-bottom-color: var(--accent); }
a.tab { display: inline-block; text-decoration: none; line-height: 1.4; }
a.tab:hover { color: var(--accent-dark); }
.hub-tabs { margin-bottom: 20px; }
.hub-body > .section-head:first-child h2 { font-size: 19px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 550; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 90px; gap: 10px; align-items: center; font-size: 12.5px; margin-bottom: 9px; }
.bar-track { height: 9px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar-fill { height: 100%; background: linear-gradient(90deg, #c39a7c, var(--accent)); border-radius: 999px; }

/* ===== 首页 Hero：1–5 张左右滑动轮播（商城与后台预览共用） ===== */
.hero-track { position: absolute; inset: 0; z-index: 0; display: flex; height: 100%; transition: transform .65s cubic-bezier(.32,.72,.28,1); will-change: transform; }
.hero-slide { flex: 0 0 100%; height: 100%; overflow: hidden; }
.hero-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, var(--hero-from, #f7efe7) 0%, var(--hero-from, #f7efe7) 30%, var(--hero-to, rgba(223,232,228,.18)) 100%); }
.hero.with-photo .hero-art { display: none; }
.hero-source { position: absolute; right: 14px; bottom: 12px; z-index: 3; font-size: 11px; color: var(--muted); background: rgba(255,255,255,.72); padding: 3px 9px; border-radius: 999px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.86); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(30,35,44,.16); }
.hero-arrow:hover { background: #fff; }
.hero-arrow.prev { left: 10px; } .hero-arrow.next { right: 10px; }
.hero-dots { position: absolute; right: 16px; top: 16px; z-index: 3; display: flex; gap: 6px; }
.hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.6); cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.hero-dots button.active { width: 22px; border-radius: 5px; background: var(--accent); }
.hero-counter { position: absolute; left: 16px; bottom: 12px; z-index: 3; font-size: 11px; color: var(--ink-2); background: rgba(255,255,255,.8); padding: 3px 9px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .hero-track { transition: none; } }

/* ===== 首页装修：多选轮播排序 / 代理明细 / 三链接提取 ===== */
.asset-option .order-no { position: absolute; left: 4px; top: 3px; z-index: 2; min-width: 17px; height: 17px; line-height: 17px; text-align: center; border-radius: 5px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; }
.hero-order { display: flex; flex-wrap: wrap; gap: 6px; }
.order-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 260px; padding: 4px 7px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); font-size: 11.5px; }
.order-chip b { display: inline-flex; width: 17px; height: 17px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 10px; }
.order-chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0 2px; font-size: 12px; line-height: 1; }
.order-chip button:hover { color: var(--accent-dark); }
.agent-insight { margin: 18px 0; border-color: var(--accent-soft); }
.agent-insight .insight-title { font-size: 13.5px; margin: 20px 0 9px; padding-left: 9px; border-left: 3px solid var(--accent); }
.agent-insight .card-head { flex-wrap: wrap; gap: 8px; }
.extract-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.extract-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 10px; background: var(--surface-2); }
.extract-item .tiny { margin: 5px 0 9px; }
.extract-url { display: flex; gap: 6px; align-items: center; }
.extract-url .input { flex: 1; min-width: 0; font-size: 12px; }
.extract-url .btn { flex: 0 0 auto; text-decoration: none; }
@media (max-width: 640px) {
  .extract-url { flex-wrap: wrap; }
  .extract-url .input { flex: 1 0 100%; }
}

/* ===== 媒体项目（相册分组） ===== */
.project-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 12px; margin: 16px 0 18px; }
.project-card { position: relative; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: .18s; }
.project-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.project-card.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.project-link { display: block; text-decoration: none; color: inherit; }
.project-cover { height: 86px; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 10px; background: linear-gradient(135deg, #e7dcd1, #d5e0dc); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-cover .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.project-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.project-desc { font-size: 11.5px; color: var(--muted); min-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-count { font-size: 11.5px; color: var(--accent); margin-top: 5px; }
.project-actions { position: absolute; right: 9px; top: 9px; display: flex; gap: 4px; opacity: 0; transition: .15s; }
.project-card:hover .project-actions { opacity: 1; }
.project-actions .btn { padding: 3px 7px; font-size: 11px; background: rgba(255,255,255,.94); }

/* ===== 筛选条 ===== */
.filter-bar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar .input, .filter-bar .select { width: auto; min-width: 145px; }

/* ===== 素材缩略图网格 ===== */
.media-grid-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 14px; }
.media-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.media-thumb { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; cursor: zoom-in; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb .thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; background: linear-gradient(135deg, #dde3e0, #efe6dd); }
.media-thumb .thumb-badge { position: absolute; left: 8px; top: 8px; }
.media-tile-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.media-tile-name { font-size: 12.5px; font-weight: 600; word-break: break-all; line-height: 1.35; }
.media-tile-meta { font-size: 11px; color: var(--muted); }
.media-tile-actions { display: flex; gap: 5px; flex-wrap: wrap; margin-top: auto; padding-top: 9px; border-top: 1px solid var(--line); }
.media-tile-actions .btn { padding: 3px 7px; font-size: 11px; }

/* ===== 媒体素材归属：用途归属 + 项目归属 ===== */
.media-ownership { display: flex; flex-direction: column; gap: 3px; margin: 4px 0 2px; padding: 7px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.own-line { display: flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1.45; }
.own-line em { font-style: normal; color: var(--muted); flex: 0 0 52px; }
.own-value { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.own-badge { font-size: 10.5px; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.own-badge.marketing { color: #8a5a2b; background: #f6ead9; border-color: #e8d2b3; }
.own-badge.formal { color: #2f5d68; background: #e2eef1; border-color: #c6dfe6; }

/* ===== 商品素材选择器：按媒体项目分组 ===== */
.product-asset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; margin-bottom: 12px; }
.product-asset-grid .product-asset-picker { margin-bottom: 0; }
.product-asset-picker { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 12px; background: var(--surface-2); }
.product-asset-picker .field { margin-bottom: 8px; }
.product-asset-picker select[multiple] { min-height: 132px; background: var(--surface); }
.product-asset-picker optgroup { font-weight: 600; color: var(--muted); }
.product-asset-hint { margin-top: 6px; line-height: 1.5; }

/* ===== 图片大图预览 / 上传预览 ===== */
.preview-box, .upload-preview { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 190px; max-height: 50vh; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.preview-box img, .upload-preview img { max-width: 100%; max-height: 50vh; object-fit: contain; display: block; }
.preview-box video, .upload-preview video { max-width: 100%; max-height: 50vh; }
.upload-preview .ph { color: var(--muted); font-size: 12.5px; text-align: center; padding: 18px; }

/* ===== 首页装修编辑器 ===== */
.homepage-editor { display: grid; grid-template-columns: minmax(320px, 430px) 1fr; gap: 18px; align-items: start; }
.asset-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; max-height: 232px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.asset-option { position: relative; aspect-ratio: 1; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--surface-2); padding: 0; }
.asset-option img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-option.selected { border-color: var(--accent); }
.asset-option .tick { position: absolute; right: 4px; top: 3px; font-size: 11px; background: var(--accent); color: #fff; border-radius: 50%; width: 17px; height: 17px; line-height: 17px; text-align: center; }
.asset-option:not(.selected) .tick { display: none; }
.asset-option .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; }
.asset-option .label { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; background: rgba(0,0,0,.55); color: #fff; padding: 2px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 首页装修：来自营销模板的只读主图条，避免再维护第二套选图器 */
.hero-source-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.hero-source-item { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.hero-source-item img { width: 100%; height: 74px; object-fit: cover; display: block; }
.hero-source-item .order-no { position: absolute; left: 4px; top: 4px; z-index: 2; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 5px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; }
.hero-source-item .label { display: block; font-size: 10px; color: var(--muted); padding: 3px 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-pane { position: sticky; top: 14px; }
.preview-pane .hero { margin-top: 0; }

@media (max-width: 1100px) {
  .homepage-editor { grid-template-columns: 1fr; }
  .preview-pane { position: static; }
}

@media (max-width: 980px) {
  .detail-layout { grid-template-columns: 1fr; }
  .buy-panel { position: static; }
  .console { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { padding: 0 12px 0 4px; }
  .side-group, .side-foot { display: none; }
  .side-link { padding: 7px 10px; font-size: 12.5px; }
  .console-body { padding: 18px 16px 40px; }
  .console-top { padding: 0 16px; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 28px); }
  .topbar-in { height: 56px; gap: 8px; }
  .nav-links a { padding: 6px 8px; font-size: 12px; }
  .hero-inner { padding: 28px 22px; }
  .hero { min-height: 210px; margin: 16px 0; }
  .hero-art { opacity: .35; width: 70%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .project-strip, .media-grid-admin { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero-scrim { background: linear-gradient(100deg, var(--hero-from, #f7efe7) 0%, var(--hero-from, #f7efe7) 62%, var(--hero-to, rgba(223,232,228,.18)) 100%); }
  .product-info { padding: 12px; }
  .price { font-size: 17px; }
  .section-head { margin: 22px 0 12px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .mobile-buybar { display: flex; }
  .detail-layout { padding-bottom: 78px; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-row { grid-template-columns: 110px 1fr 70px; }
  .modal-backdrop { padding: 10px; }
}

/* ===== 推广项目组：三条链接同组、按商品分类 / 项目标签整理 ===== */
.lg-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin: 14px 0 16px; }
.lg-filters .field { flex: 1 1 190px; min-width: 160px; margin: 0; }
.lg-filters .field > span { display: block; margin-bottom: 6px; }
.lg-filters .row { flex: 0 0 auto; }
.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 16px; }
.lg-card { padding: 0; overflow: hidden; }
.lg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.lg-head-main { min-width: 0; }
.lg-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 15px; margin-bottom: 7px; }
.lg-title strong { font-weight: 650; }
.lg-head .tiny { margin-top: 3px; line-height: 1.55; }
.lg-links { padding: 4px 18px 14px; }
.lg-link { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.lg-link:last-child { border-bottom: 0; }
.lg-link-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; font-size: 13px; }
.lg-url { display: flex; gap: 6px; align-items: center; margin-bottom: 5px; }
.lg-url .input { flex: 1; min-width: 0; font-size: 12px; }
.lg-link-empty { opacity: .72; }
.lg-head .table-actions { flex-wrap: wrap; justify-content: flex-end; max-width: 320px; }
@media (max-width: 900px) {
  .lg-grid { grid-template-columns: 1fr; }
  .lg-head { flex-direction: column; }
  .lg-head .table-actions { max-width: none; justify-content: flex-start; }
}

/* ===== 支付与结算配置中心 ===== */
.pay-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 18px; }
.pay-status { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.pay-status .label { font-size: 12px; color: var(--muted); }
.pay-status .value { font-size: 17px; font-weight: 650; margin: 6px 0; }
.pay-status .hint { font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.pay-card { margin-bottom: 16px; }
.pay-card > h3 { font-size: 15px; }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 14px; }
.pay-h { font-size: 13px; font-weight: 650; margin: 16px 0 8px; }
.pay-h:first-child { margin-top: 0; }
.pay-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.8; }
.pay-code { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12px; word-break: break-all; }
.pay-code-block { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.8; margin: 10px 0; }
.pay-kv-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.pay-kv-row:last-child { border-bottom: 0; }
.pay-key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; color: var(--muted); grid-column: 1 / -1; word-break: break-all; }
.pay-val { font-size: 13px; }
.pay-val .tiny { line-height: 1.55; margin-top: 3px; }
.pay-chip { display: inline-block; align-self: start; font-size: 12px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pay-chip.ok { background: var(--ok-soft); color: var(--ok); }
.pay-chip.todo { background: var(--warn-soft); color: var(--warn); }
.pay-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pay-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pay-step { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 12px; line-height: 1.7; }
.pay-step strong { display: block; margin-bottom: 6px; font-size: 13px; }
.pay-guide .pay-step { min-width: 0; overflow-wrap: anywhere; }
/* 微信 Native 扫码支付 */
.pay-qr { display: flex; justify-content: center; align-items: center; min-height: 200px; }
.pay-qr svg { display: block; max-width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; }
.pay-qr .empty { width: 100%; }
/* 支付场景对照卡 */
.pay-scene-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pay-scene { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; font-size: 12px; line-height: 1.7; }
.pay-scene.current { border-color: var(--accent); background: var(--accent-soft); }
.pay-scene.blocked { border-color: var(--danger); }
.pay-scene h4 { font-size: 13px; margin: 0 0 6px; }
.pay-scene .tiny { margin-top: 6px; }
/* 简易收款：零配置收款码（配置中心）与结账页收款码 */
.pay-easy { border-color: var(--accent); }
.pay-easy-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px; margin-top: 16px; }
.pay-qr-preview { display: flex; justify-content: center; align-items: center; min-height: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.pay-qr-preview img { display: block; max-width: 100%; max-height: 260px; object-fit: contain; }
.pay-qr-preview .empty { width: 100%; }
.pay-field { display: block; margin-bottom: 12px; }
.pay-field > span { display: block; font-size: 12px; font-weight: 650; margin-bottom: 6px; }
.pay-field input[type="text"], .pay-field textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); }
.pay-field input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); }
.pay-qr-img { display: block; max-width: 100%; max-height: 320px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; }
.pay-amount { margin-top: 12px; font-size: 15px; }
.pay-amount strong { font-size: 19px; color: var(--accent); }
/* 三档方案对比 */
.pay-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pay-mode { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; font-size: 12px; line-height: 1.7; min-width: 0; overflow-wrap: anywhere; }
.pay-mode.current { border-color: var(--accent); background: var(--accent-soft); }
.pay-mode strong { font-size: 13px; }
.pay-mode .pay-h { margin: 10px 0 4px; }
/* 高级设置：默认收起，避免把简单收款弄复杂 */
.pay-advanced { margin-top: 18px; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 12px 14px 16px; }
.pay-advanced > summary { cursor: pointer; font-size: 13px; font-weight: 650; padding: 4px 0; }
.pay-advanced[open] > summary { margin-bottom: 8px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
@media (max-width: 900px) {
  .pay-status-grid { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr; gap: 10px; }
  .pay-guide { grid-template-columns: 1fr; }
  .pay-scene-grid { grid-template-columns: 1fr; }
  .pay-easy-grid { grid-template-columns: 1fr; }
  .pay-mode-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .checkout-page { width: min(100% - 24px, 780px); padding-top: 15px; padding-bottom: 40px; }
  .checkout-nav { margin-bottom: 16px; }
  .checkout-head { display: block; margin-bottom: 14px; }
  .checkout-head h1 { font-size: 23px; }
  .checkout-secure { margin-top: 12px; }
  .checkout-product, .checkout-total { padding-left: 16px; padding-right: 16px; }
  .checkout-total strong { font-size: 25px; }
  .checkout-methods { padding: 16px; }
  .pay-option { padding: 13px; }
  .pay-smart-tag { display: none; }
  .pay-qr-card { padding: 18px 14px; }
  .pay-qr { min-height: 180px; }
  .pay-result-actions .btn { width: 100%; }
}
