:root {
  --primary: #635bff;
  --primary-dark: #4f46e5;
  --primary-soft: #eef0ff;
  --cyan: #09b6d4;
  --navy: #101426;
  --ink: #182230;
  --muted: #697386;
  --line: #e6e9f0;
  --bg: #f5f7fb;
  --card: #ffffff;
  --ok: #079455;
  --ok-soft: #ecfdf3;
  --warn: #dc6803;
  --warn-soft: #fffaeb;
  --bad: #d92d20;
  --bad-soft: #fff4f2;
  --blue: #175cd3;
  --blue-soft: #eff8ff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 14px 36px rgba(16, 24, 40, .055);
  --shadow-lg: 0 30px 80px rgba(4, 10, 30, .22);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: Inter, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
button:hover, .btn:hover { background: var(--primary-dark); box-shadow: 0 7px 18px rgba(99, 91, 255, .18); }
button:active, .btn:active { transform: translateY(1px); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(99, 91, 255, .24); outline-offset: 2px; }
button.ghost, .btn.ghost { background: #fff; color: #344054; border-color: #d9dee8; box-shadow: none; }
button.ghost:hover, .btn.ghost:hover { background: #f9fafb; border-color: #b9c0d0; }
button.warn { background: var(--warn); }
button.bad { background: var(--bad); }
button:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d9dee8;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 91, 255, .12); }
input::placeholder, textarea::placeholder { color: #98a2b3; }
input[type="checkbox"] { width: 16px; min-height: 16px; accent-color: var(--primary); }
label { display: block; margin-bottom: 7px; color: #475467; font-size: 12px; font-weight: 550; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: 28px; letter-spacing: -.6px; }
h2 { font-size: 17px; }
hr { border: 0; border-top: 1px solid var(--line); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; }
.card { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.sub { color: var(--muted); line-height: 1.75; }
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.mark { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 17px; background: var(--primary); color: #fff; font-size: 22px; font-weight: 750; box-shadow: 0 10px 25px rgba(99, 91, 255, .24); }
.err { min-height: 22px; color: var(--bad); line-height: 1.6; }
.okc { color: var(--ok); }
.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; background: var(--navy); color: #fff; }
.top b { font-size: 17px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 24px; }
.note { margin: 14px 0; padding: 13px 15px; border: 1px solid #dfe2ff; border-radius: 12px; background: var(--primary-soft); color: #45449a; font-size: 13px; line-height: 1.75; }

/* 公共兑换页 */
.public-body { min-height: 100vh; background: #0c1224; color: #eef2ff; }
.public-shell { position: relative; min-height: 100vh; overflow: hidden; isolation: isolate; }
.public-shell::before { content: ""; position: fixed; inset: 0; z-index: -2; background: radial-gradient(circle at 16% 10%, rgba(99, 91, 255, .25), transparent 36%), radial-gradient(circle at 88% 36%, rgba(9, 182, 212, .14), transparent 34%), linear-gradient(145deg, #0a1020 0%, #11182d 58%, #0b1324 100%); }
.public-shell::after { content: ""; position: fixed; inset: 0; z-index: -1; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.public-nav { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-weight: 700; letter-spacing: -.2px; }
.brand-symbol { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: linear-gradient(145deg, #766eff, #4f46e5); box-shadow: 0 10px 28px rgba(70, 64, 220, .35); }
.brand-symbol svg { width: 21px; height: 21px; }
.brand small { display: block; margin-top: 2px; color: #8f9ab5; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; }
.brand-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.045); color: #aeb8ce; font-size: 11px; }
.brand-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #36d399; box-shadow: 0 0 0 4px rgba(54, 211, 153, .09); }
.public-main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 46px 0 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, 430px); gap: clamp(42px, 7vw, 94px); align-items: center; min-height: calc(100vh - 154px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: #a5b4fc; font-size: 12px; font-weight: 650; letter-spacing: 1.6px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: #817aff; }
.hero h1 { max-width: 580px; margin-bottom: 20px; color: #fff; font-size: clamp(38px, 5vw, 60px); line-height: 1.13; letter-spacing: -2px; }
.hero h1 span { color: #aaa3ff; }
.hero .lead { max-width: 540px; margin-bottom: 30px; color: #a3aec5; font-size: 15px; line-height: 1.9; }
.hero-points { display: grid; gap: 14px; margin-top: 28px; }
.hero-point { display: flex; align-items: center; gap: 12px; color: #c4cddd; font-size: 13px; }
.point-icon { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(151, 162, 255, .2); border-radius: 9px; background: rgba(116, 108, 255, .09); color: #b4adff; font-size: 12px; font-weight: 700; }
.redeem-card { position: relative; padding: 30px; overflow: hidden; border: 1px solid rgba(255,255,255,.65); border-radius: 24px; background: rgba(255,255,255,.97); color: var(--ink); box-shadow: var(--shadow-lg); }
.redeem-card::before { content: ""; position: absolute; top: 0; left: 30px; right: 30px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--cyan)); border-radius: 0 0 4px 4px; }
.card-kicker { margin-bottom: 8px; color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; }
.redeem-card h2 { margin-bottom: 9px; font-size: 25px; letter-spacing: -.6px; }
.redeem-card .sub { margin-bottom: 22px; font-size: 13px; }
.code-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; padding: 12px 14px; border: 1px solid #e7e9f2; border-radius: 12px; background: #f8f9fc; color: #667085; font-size: 12px; }
.code-chip strong { color: #353b4d; font-size: 13px; letter-spacing: 1px; }
.action-button { width: 100%; min-height: 48px; border-radius: 12px; background: linear-gradient(135deg, #6a62ff, #5148e8); font-size: 14px; box-shadow: 0 10px 24px rgba(99, 91, 255, .22); }
.secondary-button { width: 100%; min-height: 45px; margin-top: 10px; }
.secure-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 15px; color: #8992a4; font-size: 11px; line-height: 1.65; }
.secure-note svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 2px; color: #7f89a0; }
.login-tabs { display: flex; gap: 4px; margin: 18px 0; padding: 4px; border-radius: 13px; background: #f2f4f7; }
.login-tab { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); box-shadow: none; font-weight: 650; }
.login-tab:hover { background: rgba(255,255,255,.7); color: var(--ink); box-shadow: none; }
.login-tab.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.login-tab:focus-visible { outline: 3px solid rgba(99,91,255,.22); outline-offset: 2px; }
.login-panel { min-width: 0; }
.qr-status { margin: 8px 0; color: #b54708; font-size: 14px; font-weight: 650; text-align: center; }
.qr-note { margin: 10px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.75; text-align: center; }
.refresh-button { width: 100%; min-height: 48px; border: 1px solid #dedffc; border-radius: 12px; background: #fff; color: var(--primary); box-shadow: none; font-size: 14px; }
.refresh-button:hover { background: var(--primary-soft); border-color: var(--primary); box-shadow: none; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 23px 0; }
.step { position: relative; text-align: center; color: #8a93a5; font-size: 11px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 13px; left: calc(50% + 18px); width: calc(100% - 36px); height: 1px; background: #e2e5ee; }
.step-num { position: relative; z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; margin: 0 auto 7px; border: 1px solid #e0e3ef; border-radius: 50%; background: #fff; color: #7b8498; font-size: 11px; font-weight: 700; }
.step.active { color: var(--primary); }
.step.active .step-num { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(99, 91, 255, .2); }
.qr-box { width: 224px; height: 224px; display: grid; place-items: center; margin: 18px auto; padding: 11px; border: 1px solid #e4e7ef; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(26, 34, 54, .07); }
.qr-box img { display: block; width: 200px; height: 200px; }
.status-panel { margin: 18px 0; padding: 16px; border: 1px solid #e3e6f2; border-radius: 14px; background: #f8f9ff; text-align: center; }
.status-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); font-size: 18px; font-weight: 700; }
.status-panel p { margin: 0; color: #5b6578; font-size: 13px; line-height: 1.7; }
.progress-track { height: 4px; margin-top: 13px; overflow: hidden; border-radius: 999px; background: #e5e7f2; }
.progress-fill { width: 45%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--cyan)); animation: progress 1.8s ease-in-out infinite; }
.public-footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 25px; display: flex; justify-content: space-between; gap: 20px; color: #69758e; font-size: 11px; line-height: 1.6; }
.link-example { display: inline-block; margin-top: 12px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.11); border-radius: 10px; background: rgba(255,255,255,.04); color: #bdc6d8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.result-card { width: min(460px, 100%); margin: auto; text-align: center; }
.result-symbol { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 22px; background: var(--ok-soft); color: var(--ok); font-size: 30px; font-weight: 700; }
.result-symbol.warn { background: var(--warn-soft); color: var(--warn); }
.result-symbol.bad { background: var(--bad-soft); color: var(--bad); }
.result-card .sub { margin-bottom: 22px; }
.result-card .code-chip { text-align: left; }
.charge-mask { position: fixed; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(5, 10, 25, .72); backdrop-filter: blur(8px); }
.charge-mask.show { display: flex; }
.charge-box { width: min(92vw, 360px); padding: 30px 26px; border-radius: 22px; background: #fff; color: var(--ink); text-align: center; box-shadow: var(--shadow-lg); }
.charge-box h2 { margin-bottom: 8px; }
.spinner { width: 46px; height: 46px; margin: 0 auto 17px; border: 3px solid #e6e5ff; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }

/* 管理后台 */
.admin-body { min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.admin-side { position: sticky; top: 0; z-index: 5; height: 100vh; display: flex; flex-direction: column; padding: 26px 17px 18px; background: #111629; color: #fff; }
.admin-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.admin-logo { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg, #766eff, #5148e8); font-size: 18px; font-weight: 750; box-shadow: 0 9px 25px rgba(99, 91, 255, .24); }
.admin-brand strong { display: block; font-size: 15px; }
.admin-brand small { display: block; margin-top: 4px; color: #828da8; font-size: 9px; letter-spacing: 1.3px; }
.admin-nav { display: flex; flex-direction: column; gap: 6px; }
.admin-nav button, .admin-nav-link { justify-content: flex-start; gap: 10px; padding: 11px 14px; border: 0; border-radius: 10px; background: transparent; color: #98a2b8; font-size: 13px; font-weight: 600; box-shadow: none; }
.admin-nav-link { display: inline-flex; align-items: center; }
.admin-nav button:hover, .admin-nav-link:hover { background: #1c233b; color: #fff; }
.admin-nav button.on { background: linear-gradient(100deg, rgba(99,91,255,.32), rgba(99,91,255,.14)); color: #dcd9ff; }
.admin-nav .nav-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.admin-side-foot { margin-top: auto; padding: 17px 10px 2px; border-top: 1px solid #252c42; color: #828da5; font-size: 11px; line-height: 1.8; }
.online-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #32d583; box-shadow: 0 0 0 4px rgba(50, 213, 131, .09); }
.admin-main { min-width: 0; padding: 27px 30px 42px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.admin-head h1 { margin-bottom: 5px; }
.admin-head p { margin: 0; color: var(--muted); font-size: 12px; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.domain-chip, .mode-chip { display: inline-flex; align-items: center; min-height: 38px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #475467; font-size: 12px; }
.mode-chip { color: var(--primary); background: var(--primary-soft); border-color: #dedffc; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { position: relative; overflow: hidden; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .02); }
.stat::before { content: ""; position: absolute; top: 16px; bottom: 16px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: #cfcbf8; }
.stat em { display: block; overflow: hidden; color: var(--muted); font-style: normal; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.stat strong { display: block; margin-top: 9px; color: #3f3b83; font-size: 26px; line-height: 1; letter-spacing: -.6px; }
.stat:nth-child(3n+2) strong { color: var(--blue); }
.stat:nth-child(3n+3) strong { color: var(--ok); }
.admin-section { display: none; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.admin-section.active { display: block; animation: enter .2s ease-out; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 20px 15px; }
.section-head h2 { margin: 0; font-size: 16px; }
.section-head span { color: var(--muted); font-size: 12px; }
.section-body { padding: 0 20px 20px; }
.tools { display: flex; align-items: center; gap: 9px; margin: 0 0 15px; flex-wrap: wrap; }
.tools input, .tools select { width: auto; min-width: 135px; }
.tools .grow { flex: 1; min-width: 180px; }
.tools .spacer { flex: 1; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 12px; }
th, td { padding: 12px 13px; border-bottom: 1px solid #eef0f4; text-align: left; vertical-align: middle; white-space: nowrap; }
th { background: #f8f9fc; color: #475467; font-size: 11px; font-weight: 650; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfbfe; }
td.muted, .muted { color: var(--muted); }
.table-min { min-width: 860px; }
.table-wrap .empty { padding: 38px 18px; color: var(--muted); text-align: center; }
.pill { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 600; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.neutral { background: #eef2f6; color: #475467; }
.pill.login-qr { background: var(--blue-soft); color: var(--blue); }
.pill.login-sms { background: var(--primary-soft); color: var(--primary-dark); }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 15px; color: var(--muted); font-size: 12px; }
.pager button { min-height: 34px; padding: 7px 11px; }
.make-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.make-card { padding: 20px; border: 1px solid var(--line); border-radius: 13px; }
.make-card h2 { margin-bottom: 8px; }
.make-card p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.make-card .row { align-items: end; }
.make-card .row > * { flex: initial; }
.subsection-title { margin: 20px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.subsection-title h3 { margin-bottom: 6px; font-size: 14px; }
.subsection-title p { margin-bottom: 0; }
.batch-card { padding: 20px; border: 1px solid #dedffc; border-radius: 14px; background: #fafaff; }
.batch-card textarea { width: 100%; resize: vertical; min-height: 190px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.8; }
.danger-zone { border-color: #fecdca; background: #fffcfb; }
.danger-zone h2 { color: #b42318; }
.mask { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(12, 18, 36, .58); backdrop-filter: blur(5px); }
.mask.show { display: flex; }
.dialog { width: min(520px, 100%); max-height: 90vh; overflow-y: auto; }
.dialog h1 { font-size: 21px; }
.dialog label { margin-top: 13px; }
.detail-list { display: grid; grid-template-columns: 110px 1fr; gap: 0; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 12px; }
.detail-list dt, .detail-list dd { margin: 0; padding: 10px 12px; border-bottom: 1px solid #eef0f4; }
.detail-list dt { background: #f8f9fc; color: var(--muted); }
.detail-list dd { color: #303849; word-break: break-word; white-space: normal; }
.detail-list dt:last-of-type, .detail-list dd:last-of-type { border-bottom: 0; }
.event-list { display: grid; gap: 0; max-height: 280px; overflow-y: auto; margin-top: 10px; padding-left: 4px; }
.event-item { position: relative; padding: 0 0 16px 20px; border-left: 1px solid #dfe2ee; font-size: 12px; }
.event-item::before { content: ""; position: absolute; left: -4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.event-item strong { display: block; margin-bottom: 4px; color: #3e4658; }
.event-item p { margin: 4px 0; color: #5d6678; line-height: 1.6; white-space: normal; word-break: break-word; }
.event-item small { color: #98a2b3; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; max-width: min(390px, calc(100vw - 32px)); padding: 13px 16px; border-radius: 12px; background: var(--navy); color: #fff; box-shadow: 0 14px 40px rgba(17, 24, 39, .22); font-size: 13px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.bad { background: #b42318; }
.loading { display: inline-block; width: 14px; height: 14px; border: 2px solid #d9dcfa; border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, rgba(99,91,255,.18), transparent 35%), #0c1224; }
.login-card { width: min(430px, 100%); }
.login-card .brand { margin-bottom: 28px; }
.login-card .redeem-card { padding: 30px; }
.login-meta { margin-top: 18px; color: #778197; font-size: 11px; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes enter { from { opacity: .4; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes progress { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(240%); } }
@media (max-width: 1240px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-main { padding: 23px 22px 34px; }
}
@media (max-width: 960px) {
  .public-main { grid-template-columns: 1fr; gap: 38px; padding-top: 30px; }
  .hero { text-align: center; }
  .hero h1, .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-points { max-width: 400px; margin-left: auto; margin-right: auto; text-align: left; }
  .redeem-card { width: min(460px, 100%); margin: 0 auto; }
  .admin-shell { grid-template-columns: 78px minmax(0, 1fr); }
  .admin-side { padding: 22px 12px; }
  .admin-brand { justify-content: center; padding: 0 0 24px; }
  .admin-brand > div:last-child, .admin-side-foot { display: none; }
  .admin-nav button { justify-content: center; padding: 11px 8px; font-size: 12px; }
  .admin-nav .nav-dot { display: none; }
  .make-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .public-nav, .public-main, .public-footer { width: min(100% - 28px, 1120px); }
  .public-nav { padding: 18px 0; }
  .brand-badge { display: none; }
  .public-main { min-height: auto; padding: 36px 0 30px; }
  .hero h1 { font-size: 38px; letter-spacing: -1.3px; }
  .hero .lead { font-size: 14px; }
  .redeem-card { padding: 24px 20px; border-radius: 20px; }
  .public-footer { justify-content: center; text-align: center; }
  .public-footer span:last-child { display: none; }
  .admin-shell { display: block; }
  .admin-side { position: static; width: 100%; height: auto; display: block; padding: 12px 14px; }
  .admin-brand { justify-content: flex-start; padding: 0 0 12px; }
  .admin-brand > div:last-child { display: block; }
  .admin-logo { width: 36px; height: 36px; border-radius: 10px; }
  .admin-nav { flex-direction: row; overflow-x: auto; gap: 6px; }
  .admin-nav button, .admin-nav-link { flex: 0 0 auto; padding: 9px 12px; }
  .admin-main { padding: 18px 14px 28px; }
  .admin-head { align-items: flex-start; }
  .admin-head h1 { font-size: 23px; }
  .domain-chip, .mode-chip { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stat { padding: 14px; }
  .stat strong { font-size: 23px; }
  .section-head, .section-body { padding-left: 14px; padding-right: 14px; }
  .tools input, .tools select { flex: 1; min-width: 120px; width: 100%; }
  .tools .spacer { display: none; }
  .card { padding: 20px; }
  .center { padding: 16px; }
  .toast { right: 16px; bottom: 16px; }
  .detail-list { grid-template-columns: 88px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 顶部横向后台导航 */
.admin-shell { display: block; }
.admin-side { position: sticky; top: 0; width: 100%; height: auto; display: flex; align-items: center; gap: 24px; padding: 14px 26px; background: #111629; box-shadow: 0 8px 24px rgba(17, 22, 41, .12); }
.admin-brand { flex: 0 0 auto; padding: 0; }
.admin-brand > div:last-child { display: block; }
.admin-brand small { letter-spacing: 1px; }
.admin-nav { flex: 1; flex-direction: row; justify-content: flex-end; flex-wrap: wrap; overflow-x: auto; gap: 6px; }
.admin-nav button, .admin-nav-link { flex: 0 0 auto; white-space: nowrap; }
.admin-side-foot { display: none; }
.admin-main { width: 100%; max-width: 1500px; margin: 0 auto; }
@media (max-width: 960px) {
  .admin-side { flex-wrap: wrap; gap: 12px; padding: 13px 18px; }
  .admin-nav { justify-content: flex-start; }
}
@media (max-width: 650px) {
  .admin-side { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .admin-brand { padding: 0; }
  .admin-brand > div:last-child { display: block; }
  .admin-brand strong { font-size: 13px; }
  .admin-brand small { display: none; }
  .admin-logo { width: 34px; height: 34px; border-radius: 10px; }
  .admin-nav { flex-wrap: nowrap; justify-content: flex-start; gap: 5px; }
  .admin-nav button, .admin-nav-link { padding: 8px 10px; font-size: 12px; }
}

/* 订单列表：保持表格结构，按宽度收起次要列，禁止横向滚动。 */
.admin-body { overflow-x: hidden; }
.orders-wrap { overflow-x: hidden !important; max-width: 100%; }
.orders-table { display: table; width: 100%; min-width: 0 !important; max-width: 100%; table-layout: fixed; }
.orders-table thead { display: table-header-group; }
.orders-table tbody { display: table-row-group; }
.orders-table tr { display: table-row; }
.orders-table th, .orders-table td { display: table-cell; padding: 10px 6px; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.orders-table td::before { content: none !important; }
.orders-table th:nth-child(1) { width: 3%; }
.orders-table th:nth-child(2) { width: 7%; }
.orders-table th:nth-child(3) { width: 7%; }
.orders-table th:nth-child(4) { width: 7%; }
.orders-table th:nth-child(5) { width: 8%; }
.orders-table th:nth-child(6) { width: 5%; }
.orders-table th:nth-child(7) { width: 8%; }
.orders-table th:nth-child(8) { width: 8%; }
.orders-table th:nth-child(9) { width: 6%; }
.orders-table th:nth-child(10) { width: 6%; }
.orders-table th:nth-child(11) { width: 7%; }
.orders-table th:nth-child(12) { width: 7%; }
.orders-table th:nth-child(13) { width: 7%; }
.orders-table th:nth-child(14) { width: 10%; }
.orders-table th:nth-child(15) { width: 4%; }
.orders-table td:nth-child(2) { font-size: 11px; }
.orders-table td:last-child button { width: 100%; min-height: 32px; padding: 6px 5px; font-size: 11px; }
.orders-table .pill { white-space: nowrap; }
.orders-table .duration-value { display: block; font-variant-numeric: tabular-nums; white-space: nowrap; }
.orders-table .duration-end { display: block; margin-top: 3px; font-size: 10px; color: #687386; }
.orders-table .empty { display: table-cell; text-align: center; }
@media (max-width: 1100px) {
  .orders-table th, .orders-table td { padding: 8px 5px; font-size: 11px; }
  .orders-table th:nth-child(10), .orders-table td:nth-child(10),
  .orders-table th:nth-child(13), .orders-table td:nth-child(13) { display: none; }
}
@media (max-width: 900px) {
  .orders-table th:nth-child(3), .orders-table td:nth-child(3),
  .orders-table th:nth-child(14), .orders-table td:nth-child(14) { display: none; }
}
@media (max-width: 650px) {
  .orders-table th, .orders-table td { padding: 7px 3px; font-size: 10px; }
  .orders-table th:nth-child(1), .orders-table td:nth-child(1),
  .orders-table th:nth-child(2), .orders-table td:nth-child(2),
  .orders-table th:nth-child(5), .orders-table td:nth-child(5) { display: none; }
  .orders-table .duration-end { display: none; }
}
