/* ============================================================
   互助工具站 · 全站样式（单文件，改颜色只改 :root 里的变量）
   ============================================================ */

:root {
  --brand: #5056f2;
  --brand-2: #20c5d7;
  --ink: #162033;
  --muted: #56647e;
  --faint: #8b97ad;
  --line: rgba(162, 174, 227, 0.22);
  --line-soft: rgba(162, 174, 227, 0.14);
  --bg: #f5f7fd;
  --card: #ffffff;
  --ok: #12a67a;
  --warn: #e0812b;
  --danger: #e2564b;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(38, 54, 110, 0.08);
  --shadow-lg: 0 18px 50px rgba(38, 54, 110, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(80, 86, 242, 0.12), transparent 60%),
    radial-gradient(900px 420px at 110% 0%, rgba(32, 197, 215, 0.14), transparent 55%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  opacity: 0.82;
}

img,
svg {
  vertical-align: middle;
}

/* ---------------- 头部 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(150%) blur(12px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(80, 86, 242, 0.32);
}

.brand small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0.6px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  padding: 8px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.nav a:hover {
  background: rgba(80, 86, 242, 0.08);
  color: var(--brand);
  opacity: 1;
}

.nav a.is-active {
  background: linear-gradient(135deg, rgba(80, 86, 242, 0.14), rgba(32, 197, 215, 0.14));
  color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  margin-left: auto;
  font-size: 18px;
  color: var(--ink);
}

.nav-drawer {
  display: none;
  padding: 6px 16px 14px;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.96);
}

.nav-drawer.is-open {
  display: block;
}

.nav-drawer a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
}

.nav-drawer a.is-active {
  background: rgba(80, 86, 242, 0.1);
  color: var(--brand);
}

/* ---------------- 布局 ---------------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 16px 60px;
}

.hero {
  padding: 26px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(80, 86, 242, 0.1), rgba(32, 197, 215, 0.1));
  border: 1px solid var(--line-soft);
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.4px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: -0.2px;
}

.card-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px;
}

/* ---------------- 首页入口卡 ---------------- */
.entry {
  display: block;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  color: inherit;
}

.entry:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}

.entry-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.entry-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(80, 86, 242, 0.1);
  font-size: 18px;
}

.entry-name {
  font-weight: 800;
  font-size: 15px;
}

.entry-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(80, 86, 242, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

.entry-desc {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
  min-height: 38px;
}

.entry-go {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

/* ---------------- 表单 ---------------- */
.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus,
.textarea:focus {
  border-color: rgba(80, 86, 242, 0.6);
  box-shadow: 0 0 0 3px rgba(80, 86, 242, 0.12);
}

.textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.5;
}

.hint {
  font-size: 12px;
  color: var(--faint);
  margin-top: 6px;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 22px rgba(80, 86, 242, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand);
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-row .btn {
  flex: 1 1 auto;
  min-width: 120px;
}

/* 分段选择器（口令类型 / 次数） */
.segmented {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.seg {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 9px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.seg.is-on {
  background: linear-gradient(135deg, rgba(80, 86, 242, 0.14), rgba(32, 197, 215, 0.16));
  border-color: rgba(80, 86, 242, 0.42);
  color: var(--brand);
}

/* 勾选协议 */
.agree {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 0 12px;
}

.agree input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  flex: none;
}

/* ---------------- 列表 ---------------- */
.list-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.list-head h3 {
  margin: 0;
  font-size: 15px;
}

.counter {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(80, 86, 242, 0.1);
  padding: 2px 9px;
  border-radius: 999px;
}

.spacer {
  margin-left: auto;
}

.clock {
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 8px;
}

.item:hover {
  border-color: var(--line);
}

.item-main {
  min-width: 0;
  flex: 1;
}

.item-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  word-break: break-all;
}

.item-meta {
  font-size: 12px;
  color: var(--faint);
  margin-top: 2px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.tag-green {
  color: #0d8a63;
  background: rgba(18, 166, 122, 0.12);
}

.tag-blue {
  color: #1c62c9;
  background: rgba(28, 98, 201, 0.12);
}

.tag-purple {
  color: #7b3fd4;
  background: rgba(123, 63, 212, 0.12);
}

.tag-slate {
  color: #55637a;
  background: rgba(85, 99, 122, 0.12);
}

.tag-red {
  color: #c23b31;
  background: rgba(226, 86, 75, 0.14);
}

.empty {
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  padding: 26px 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  line-height: 1.7;
}

.empty strong {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 4px;
}

/* ---------------- 弹窗 ---------------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(22, 32, 51, 0.46);
  backdrop-filter: blur(3px);
  overflow: auto;
}

.overlay[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-head h3 {
  margin: 0;
  font-size: 16px;
}

.modal-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  color: var(--muted);
}

.modal-body {
  overflow: auto;
  flex: 1;
}

.modal-foot {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* 取用成功后的码展示 */
.bigcode {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgba(80, 86, 242, 0.07);
  border: 1px dashed rgba(80, 86, 242, 0.4);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  word-break: break-all;
  line-height: 1.5;
  margin: 10px 0;
}

.steps {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 8px;
}

.tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 9px;
  height: 32px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.tab.is-on {
  background: linear-gradient(135deg, rgba(80, 86, 242, 0.14), rgba(32, 197, 215, 0.16));
  border-color: rgba(80, 86, 242, 0.42);
  color: var(--brand);
}

/* ---------------- toast ---------------- */
.cg-toast {
  position: fixed;
  left: 50%;
  bottom: 42px;
  transform: translate(-50%, 14px);
  background: rgba(22, 32, 51, 0.94);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
  max-width: 86vw;
  text-align: center;
  line-height: 1.5;
}

.cg-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------- 通知条 ---------------- */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: rgba(80, 86, 242, 0.07);
  border: 1px solid rgba(80, 86, 242, 0.16);
  font-size: 12.8px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.notice.is-warn {
  background: rgba(224, 129, 43, 0.09);
  border-color: rgba(224, 129, 43, 0.24);
  color: #8a5312;
}

.notice.is-danger {
  background: rgba(226, 86, 75, 0.09);
  border-color: rgba(226, 86, 75, 0.24);
  color: #98281f;
}

.notice[hidden] {
  display: none;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 22px 16px 34px;
  text-align: center;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.9;
}

.site-footer a {
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

/* ---------------- 券查询结果 ---------------- */
.coupon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 9px;
  background: #fff;
}

.coupon-face {
  min-width: 92px;
  text-align: center;
  color: #b6400f;
  background: linear-gradient(135deg, #fff3e6, #ffe6d2);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 800;
}

.coupon-face small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #a4642a;
}

.coupon-info {
  flex: 1;
  min-width: 0;
}

.coupon-info strong {
  display: block;
  font-size: 14px;
}

.coupon-info span {
  font-size: 12px;
  color: var(--faint);
}

/* ---------------- 后台 ---------------- */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.kpi {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.kpi div {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.kpi b {
  display: block;
  font-size: 20px;
  color: var(--brand);
}

.kpi span {
  font-size: 12px;
  color: var(--faint);
}

.code-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 780px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .hero {
    padding: 20px 16px;
  }
  .hero h1 {
    font-size: 21px;
  }
  .wrap {
    padding: 16px 12px 50px;
  }
  .card {
    padding: 15px;
  }
  .modal {
    padding: 16px;
  }
  .item {
    flex-wrap: wrap;
  }
  .item .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-color-scheme: dark) {
  /* 默认不启用深色，避免和用户已有配色冲突；需要时把下面 @media 改成 body.dark 即可 */
}

/* ============================================================
   联系入口五宫格
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.contact-card {
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 14px 12px;
  cursor: pointer;
  transition: transform 0.14s, box-shadow 0.14s, border-color 0.14s;
}
.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(80, 86, 242, 0.35);
  box-shadow: 0 8px 20px rgba(80, 86, 242, 0.12);
}
.contact-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 6px;
}
.contact-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}
.contact-desc {
  font-size: 11.5px;
  color: var(--faint);
  line-height: 1.45;
}
.contact-detail {
  margin-top: 14px;
  padding: 12px;
  background: rgba(80, 86, 242, 0.06);
  border: 1px solid rgba(80, 86, 242, 0.16);
  border-radius: 12px;
}
.contact-detail[hidden] { display: none; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(162, 174, 227, 0.3);
}
.contact-row:last-of-type { border-bottom: 0; }
.contact-row-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  min-width: 34px;
}
.contact-row-value {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}
@media (max-width: 380px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   券卡片（查券结果）
   ============================================================ */
.shop-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(255, 195, 0, 0.1), rgba(255, 138, 0, 0.08));
  border: 1px solid rgba(255, 195, 0, 0.28);
  border-radius: 14px;
  margin-bottom: 12px;
}
.shop-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffc300, #ff8a00);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: none;
}
.shop-info { min-width: 0; flex: 1; }
.shop-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-id {
  font-size: 11px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin-top: 2px;
}

.coupon-total {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(226, 86, 75, 0.07);
  border: 1px solid rgba(226, 86, 75, 0.18);
  border-radius: 12px;
  margin-bottom: 12px;
}
.coupon-total-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.coupon-total-num { font-size: 24px; font-weight: 800; color: #c8420f; line-height: 1; }
.coupon-total-num small { font-size: 13px; font-weight: 700; margin-left: 2px; }
.coupon-total-note { margin-left: auto; font-size: 11px; color: var(--faint); }

.coupon-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.coupon-ticket {
  position: relative;
  background: linear-gradient(160deg, #fff, #fff6f2);
  border: 1px solid rgba(226, 86, 75, 0.22);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}
.coupon-ticket::before,
.coupon-ticket::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--bg);
  border-radius: 50%;
  left: -6px;
}
.coupon-ticket::before { top: -6px; }
.coupon-ticket::after { bottom: -6px; }
.coupon-face {
  font-size: 22px;
  font-weight: 800;
  color: #d2400b;
  line-height: 1;
  white-space: nowrap;
}
.coupon-face small { font-size: 12px; font-weight: 700; }
.coupon-cond {
  font-size: 11.5px;
  color: #a4642a;
  margin-top: 2px;
}
.coupon-meta {
  flex: 1;
  min-width: 0;
}
.coupon-desc {
  font-size: 11px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coupon-pack {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(123, 63, 212, 0.08), rgba(80, 86, 242, 0.08));
  border: 1px solid rgba(123, 63, 212, 0.2);
  border-radius: 12px;
  margin-bottom: 10px;
}
.coupon-pack-icon { font-size: 20px; }
.coupon-pack-text { font-size: 13px; font-weight: 700; color: #5b2fa8; }

.jump-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffc300, #ff8a00);
  color: #4a2c00;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 138, 0, 0.32);
  transition: transform 0.12s;
}
.jump-btn:active { transform: scale(0.98); }
.jump-btn:disabled { opacity: 0.6; cursor: wait; }

/* 查询加载 */
.loading-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 12px;
  color: var(--muted);
  font-size: 13.5px;
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(80, 86, 242, 0.2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 小屏适配 */
@media (max-width: 480px) {
  .coupon-cards { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 19px; }
  .hero p { font-size: 13px; }
  .hero-badges .badge { font-size: 11px; padding: 3px 8px; }
  .modal { padding: 15px; border-radius: 16px; }
  .coupon-face { font-size: 19px; }
}
