/* 充值页独立主题，订单状态和商品展示沿用既有组件。 */

:root {
  color-scheme: light;
  /* 绢底 */
  --bg: #F1F3EC;
  --paper: #FCFDF9;
  --paper-2: #E9F0E4;
  --paper-edge: #D8E2D4;
  /* 墨字(暖褐) */
  --ink: #193F34;
  --ink-soft: #47624F;
  --muted: #607167;
  /* 鎏金 */
  --gold: #216354;
  --gold-bright: #B7CE98;
  --gold-deep: #216354;
  --gold-ink: #FFFFFF;
  --gold-line: #8CAC91;
  --gold-faint: #D0DECA;
  --gold-glow: rgba(33,99,84,.15);
  --grad-gold: #216354;
  --grad-gold-soft: #EDF3E8;
  /* 翠玉 */
  --jade: #2f9e74;
  --jade-bright: #46bd8c;
  --jade-tint: rgba(58, 176, 131, 0.14);
  --jade-line: rgba(47, 158, 116, 0.4);
  /* 朱砂 */
  --cinnabar: #c5482f;
  --cinnabar-tint: rgba(197, 72, 47, 0.12);
  --focus: #216354;
  /* 字体 */
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-num: "DIN Alternate", "Bahnschrift", "Oswald", "Arial Narrow", var(--font-body);
  /* 形 */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-frame: 0 24px 60px -28px rgba(82, 58, 18, 0.5);
  --shadow-float: 0 10px 26px -12px rgba(82, 58, 18, 0.4);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 26px 0 48px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

button, input { font: inherit; }

::selection { background: rgba(214, 168, 70, 0.32); color: #3a2705; }

/* ---------- 仙境瑞气背景 ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 620px at 50% -180px, #fff6dd 0%, transparent 64%),
    radial-gradient(900px 520px at 12% 6%, rgba(70, 189, 140, 0.16) 0%, transparent 60%),
    radial-gradient(960px 560px at 90% 10%, rgba(232, 196, 89, 0.22) 0%, transparent 62%),
    linear-gradient(180deg, #f3ead0 0%, var(--bg) 100%);
}

.sky i { position: absolute; inset: 0; display: block; }

.sky-haze {
  background:
    radial-gradient(700px 380px at 20% 18%, rgba(255, 244, 214, 0.6) 0%, transparent 60%),
    radial-gradient(760px 420px at 82% 22%, rgba(255, 233, 180, 0.5) 0%, transparent 62%);
  animation: haze-drift 20s ease-in-out infinite alternate;
}

.sky-rays {
  background: repeating-linear-gradient(102deg, rgba(255, 240, 200, 0.08) 0 14px, transparent 14px 60px);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0, #000 0%, transparent 70%);
  mask-image: radial-gradient(120% 80% at 50% 0, #000 0%, transparent 70%);
  opacity: 0.7;
}

@keyframes haze-drift {
  from { transform: translate3d(-12px, 0, 0); opacity: 0.85; }
  to { transform: translate3d(14px, 8px, 0); opacity: 1; }
}

/* ---------- 主面板 ---------- */
.frame {
  position: relative;
  width: min(860px, calc(100% - 26px));
  margin: 0 auto;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--paper), var(--paper-2)) padding-box,
    var(--grad-gold) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-frame);
  overflow: hidden;
  animation: frame-rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--gold-faint);
  border-radius: calc(var(--radius) - 5px);
  pointer-events: none;
  z-index: 5;
}

@keyframes frame-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.masthead { position: relative; isolation: isolate; }

.title-sub {
  margin: 0;
  color: #5a4a26;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-shadow: 0 1px 2px rgba(255, 248, 230, 0.8);
}

.content { position: relative; z-index: 1; padding: 0 16px 8px; }

/* ---------- 角色铭牌 ---------- */
.nameplate {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, #fffaec, #f3e7c6) padding-box,
    var(--grad-gold) border-box;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--shadow-float);
  overflow: hidden;
}

.np-cell {
  padding: 11px 12px;
  text-align: center;
  min-width: 0;
  position: relative;
}

.np-cell + .np-cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  height: 64%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-line), transparent);
}

.np-cell dt {
  margin: 0 0 3px;
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.np-cell dd {
  margin: 0;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* ---------- 区块标题 ---------- */
.block { margin-top: 22px; }

.block-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--gold-deep);
}

.block-title span { display: inline-flex; align-items: center; gap: 8px; }
.block-title span::before { content: "❖"; font-size: 11px; color: var(--gold); }

.block-title::before,
.block-title::after {
  content: "";
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-line));
  border-radius: 2px;
}
.block-title::after { transform: scaleX(-1); }

/* ---------- 金额:宝物格 ---------- */
.amount-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 12px;
}

.amount-chip {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 12px 8px 11px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fffdf4, #f6eccf);
  border: 1px solid var(--gold-faint);
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.amount-chip:hover {
  border-color: var(--gold-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.amount-chip:active { transform: translateY(0) scale(0.98); }

.chip-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
}

.chip-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(82, 58, 18, 0.3));
}

.chip-icon .glyph {
  font-size: 26px;
  color: var(--jade);
  text-shadow: 0 0 8px rgba(70, 189, 140, 0.5);
}

.chip-amount { display: inline-flex; align-items: baseline; gap: 1px; }
.chip-symbol { color: var(--gold-deep); font-size: 12px; font-weight: 800; }

.chip-value {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #5a4416;
}

.chip-name {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--cinnabar);
}

.chip-gain {
  margin-top: 1px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--jade);
  text-align: center;
}

/* 赠送角标(左上,朱砂红;与右上金色"推荐"区分) */
.chip-bonus {
  position: absolute;
  top: 0;
  left: 0;
  padding: 2px 9px 2px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgb(192, 57, 43);
  border-bottom-right-radius: 10px;
  box-shadow: 0 2px 6px -2px rgba(150, 50, 30, 0.5);
  z-index: 1;
}

.chip-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 2px 9px 2px 11px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
  background: var(--grad-gold);
  border-bottom-left-radius: 10px;
}

.amount-chip.active {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffdf2, #fbf0cf);
  box-shadow: 0 0 0 1px var(--gold), 0 6px 18px -6px var(--gold-glow);
}

.amount-chip.active .chip-value {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.amount-chip.active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 14px -4px var(--gold-glow);
  pointer-events: none;
}

/* ---------- 给付内容 ---------- */
.tier-desc {
  position: relative;
  margin-top: 14px;
  padding: 15px 16px 13px;
  border: 1px solid var(--jade-line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(58, 176, 131, 0.1), rgba(251, 245, 230, 0.9));
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
  animation: tip-in 0.26s ease both;
}

.tier-desc::before {
  content: "◈ 给付内容";
  position: absolute;
  top: -10px;
  left: 14px;
  padding: 1px 11px;
  border: 1px solid var(--jade-line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--jade);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.tier-desc[hidden] { display: none; }
.tier-desc img { max-width: 100%; }

@keyframes tip-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 支付方式 ---------- */
.merchant-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 商户卡片:鎏金渐变描边 + 顶部金色标题条 + 浮起阴影,与绢底拉开层次 */
.merchant-card {
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, #ffffff, #fbf3df) padding-box,
    var(--grad-gold) border-box;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-float);
  padding: 0 12px 13px;
  overflow: hidden;
}

.merchant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 -12px 12px;
  padding: 9px 13px;
  background: linear-gradient(180deg, rgba(214, 168, 70, 0.2), rgba(214, 168, 70, 0.06));
  border-bottom: 1px solid var(--gold-line);
}

.merchant-name {
  font-weight: 800;
  color: var(--gold-deep);
  font-size: 15px;
}

.merchant-name::before {
  content: "❖";
  color: var(--gold);
  font-size: 11px;
  margin-right: 6px;
}

.merchant-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-deep);
  flex: none;
}

.merchant-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 9px;
}

.pay-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--gold-faint);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-soft);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.pay-method::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--gold-faint);
  flex: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.pay-method:hover { border-color: var(--gold-line); color: var(--ink); transform: translateY(-1px); }
.pay-method:active { transform: translateY(0) scale(0.98); }

.pay-method.active {
  border-color: var(--gold);
  color: var(--gold-deep);
  box-shadow: 0 0 0 1px var(--gold), 0 6px 14px -6px var(--gold-glow);
}

.pay-method.active::before {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: inset 0 0 0 2px var(--paper);
}

.pay-method[aria-busy="true"] {
  cursor: wait;
  color: transparent;
  position: relative;
}

.pay-method[aria-busy="true"]::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--gold-faint);
  border-top-color: var(--gold);
  animation: spin 0.7s linear infinite;
}

.channel-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  color: var(--muted);
  font-weight: 600;
}

.merchant-list[aria-busy="true"] .channel-placeholder::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--gold-faint);
  border-top-color: var(--gold);
  animation: spin 0.7s linear infinite;
}

.pay-hint {
  margin: 0 0 8px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 金锭按钮 ---------- */
.submit-block { margin: 24px 0 14px; }

.primary {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  /* 立体金锭:顶亮底暗的弧面 */
  background: linear-gradient(180deg, #fff2c4 0%, #f3cf72 40%, #dca743 70%, #c8923a 100%);
  color: #4a2f06;
  cursor: pointer;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-shadow: 0 1px 0 rgba(255, 248, 220, 0.7);
  /* 底部厚边(立体台阶)+ 投影 + 顶部内高光 + 暗金描边 */
  box-shadow:
    0 6px 0 #9a6a1f,
    0 7px 2px rgba(82, 58, 18, 0.35),
    0 16px 26px -10px rgba(154, 106, 31, 0.6),
    inset 0 2px 1px rgba(255, 252, 235, 0.85),
    inset 0 0 0 1.5px rgba(255, 232, 160, 0.6);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.16s ease;
}

.primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 46%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  animation: sheen 3.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sheen { 0%, 64% { left: -130%; } 100% { left: 150%; } }

.primary:hover { filter: brightness(1.04); }
/* 按下:沉到底边,台阶收起 */
.primary:active {
  transform: translateY(5px);
  box-shadow:
    0 1px 0 #9a6a1f,
    0 2px 2px rgba(82, 58, 18, 0.3),
    inset 0 2px 3px rgba(120, 80, 20, 0.3),
    inset 0 0 0 1.5px rgba(255, 232, 160, 0.5);
}
.primary:disabled, .primary[aria-busy="true"] { cursor: wait; opacity: 0.82; }
.primary[aria-busy="true"] { color: transparent; }

.primary[aria-busy="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 2.5px solid rgba(58, 39, 5, 0.3);
  border-top-color: var(--gold-ink);
  animation: spin 0.7s linear infinite;
}

input:focus, button:focus-visible, a:focus-visible {
  outline: 2.5px solid color-mix(in srgb, var(--focus) 55%, transparent);
  outline-offset: 2px;
}

/* ---------- 消息 / 结果 ---------- */
.message {
  min-height: 20px;
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 13.5px;
}
.message.success { color: var(--jade); }
.message.error { color: var(--cinnabar); }
.muted { color: var(--muted); }

.result {
  display: grid;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px dashed var(--gold-line);
}

.result-order {
  display: grid;
  gap: 4px;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  background: var(--jade-tint);
  border: 1px solid var(--jade-line);
}

.order-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--jade);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.order-head svg { width: 16px; height: 16px; }

.result-order strong {
  font-family: var(--font-num);
  font-size: 18px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  color: #1f5e44;
}

.link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.link[hidden] { display: none; }

/* ---------- 二维码 ---------- */
.qr { display: grid; gap: 12px; justify-items: center; }
.qr-label { margin: 0; justify-content: center; }

.qr-ticket {
  width: min(236px, 100%);
  aspect-ratio: 1;
  padding: 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: linear-gradient(#fff, #fff) padding-box, var(--grad-gold) border-box;
  box-shadow: 0 0 24px -10px var(--gold-glow), var(--shadow-float);
}
.qr-ticket img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-tip { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }

/* ---------- 页脚 ---------- */
.page-foot {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--gold-faint);
  text-align: center;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
}
.foot-mark { color: var(--gold); font-size: 9px; margin: 0 6px; }

/* ---------- 揭示动画 ---------- */
.result, .qr, #depositResult {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.result[hidden], .qr[hidden], #depositResult[hidden] { display: none; }
.result.reveal, .result.reveal .qr, #depositResult.reveal { opacity: 1; transform: translateY(0); }
.result.reveal .qr { transition-delay: 0.07s; }
.result-order { animation: pop-in 0.4s ease both; }
.result.reveal .order-head svg { animation: check-pop 0.5s cubic-bezier(0.22, 1.2, 0.4, 1) 0.1s both; }

@keyframes pop-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
@keyframes check-pop { 0% { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.18); } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .frame { width: min(100% - 16px, 560px); }
  .nameplate { grid-template-columns: 1fr 1fr; }
  .np-cell:nth-child(3), .np-cell:nth-child(4) { border-top: 1px solid var(--gold-faint); }
  .np-cell:nth-child(3)::before { display: none; }
  .dream-pass-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .amount-row { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .amount-chip { padding: 10px 6px 9px; }
  .chip-icon { width: 52px; height: 52px; }
  .chip-value { font-size: 19px; }
  .merchant-methods { grid-template-columns: 1fr 1fr; }
  .block-title::before, .block-title::after { width: 34px; }
}

@media (max-width: 360px) {
  .amount-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
  .frame, .masthead-art, .sky-haze { animation: none; transform: none; }
  .result, .qr, #depositResult { opacity: 1; transform: none; }
}

/* ---------- 限时礼包:tab ---------- */
.tab-hidden { display: none !important; }

.tabs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f1e3bf, #f7eed4);
  border: 1px solid var(--gold-faint);
}
.tabs[hidden] { display: none; }

.tabs .tab {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.tabs .tab.active {
  background: var(--grad-gold);
  color: var(--gold-ink);
  box-shadow: 0 4px 12px -4px var(--gold-glow), inset 0 1px 0 rgba(255, 250, 230, 0.7);
}

/* ---------- 标准充值锁定 ---------- */
.lock-note {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--cinnabar);
  background: var(--cinnabar-tint);
  color: var(--cinnabar);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.amount-row.is-locked { opacity: 0.5; filter: grayscale(0.4); }

/* ---------- 礼包卡 ---------- */
.pack-group-title {
  margin: 4px 2px 10px;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.pack-group-title::before { content: "◆ "; color: var(--gold); }
.pack-group-title:not(:first-child) { margin-top: 18px; }

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.pack-card {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-faint);
  background: linear-gradient(180deg, #fffdf4, #f6eccf);
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.pack-card:hover { border-color: var(--gold-line); transform: translateY(-2px); box-shadow: var(--shadow-float); }
.pack-card:active { transform: translateY(0) scale(0.99); }
.pack-card.active {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffdf2, #fbf0cf);
  box-shadow: 0 0 0 1px var(--gold), 0 6px 18px -6px var(--gold-glow);
}

.pack-icon {
  flex: none;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  font-size: 40px;
}
.pack-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(82, 58, 18, 0.3));
}

.pack-body { min-width: 0; flex: 1; display: grid; gap: 3px; }
.pack-price {
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: #c0392b;
}
.pack-price span { font-size: 14px; margin-right: 1px; }
.pack-line { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; overflow-wrap: anywhere; }
.pack-line i { color: var(--gold-deep); font-style: normal; font-weight: 700; margin-right: 4px; }
.pack-line b { color: var(--jade); font-weight: 800; }
.pack-title {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cinnabar);
  line-height: 1.4;
}
.pack-title em { display: block; margin-top: 1px; font-style: normal; color: var(--gold-deep); font-weight: 700; }

/* ---------- 礼包规则 ---------- */
.pack-rules {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--jade-line);
  background: linear-gradient(180deg, rgba(58, 176, 131, 0.08), rgba(251, 245, 230, 0.9));
}
.pack-rule { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); }
.pack-rule + .pack-rule { border-top: 1px dashed var(--gold-faint); padding-top: 2px; }

/* ---------- 梦想通行证 ---------- */
.dream-pass-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dream-pass-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 182px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-faint);
  background:
    linear-gradient(180deg, rgba(255, 253, 244, 0.96), rgba(246, 236, 207, 0.96));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.dream-pass-card:hover {
  border-color: var(--gold-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.dream-pass-card:active { transform: translateY(0) scale(0.99); }

.dream-pass-card.active {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffdf2, #fbf0cf);
  box-shadow: 0 0 0 1px var(--gold), 0 6px 18px -6px var(--gold-glow);
}

.dream-pass-icon {
  flex: none;
  align-self: flex-start;
  display: grid;
  place-items: center;
  width: 86px;
  height: 162px;
  padding: 4px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(232, 196, 89, 0.28), rgba(58, 176, 131, 0.12)),
    linear-gradient(180deg, #fff8e4, #f0dfb4);
  border: 1px solid var(--gold-line);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.dream-pass-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dream-pass-body {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}

.dream-pass-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.dream-pass-head b {
  color: var(--gold-deep);
  font-size: 15px;
  line-height: 1.25;
}

.dream-pass-head i {
  flex: none;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--cinnabar-tint);
  color: var(--cinnabar);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.dream-pass-price {
  font-family: var(--font-num);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  color: #c0392b;
}

.dream-pass-price span {
  margin-right: 1px;
  font-size: 14px;
}

.dream-pass-line {
  display: block;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.dream-pass-line em {
  margin-right: 5px;
  color: var(--jade);
  font-style: normal;
  font-weight: 800;
}

.dream-pass-extra {
  color: var(--cinnabar);
  font-weight: 700;
}

.dream-pass-extra em {
  color: var(--gold-deep);
}

@media (max-width: 480px) {
  .pack-grid { grid-template-columns: 1fr; }
  .dream-pass-grid { grid-template-columns: 1fr; }
  .pack-icon { width: 64px; height: 64px; font-size: 34px; }
  .dream-pass-icon { width: 72px; height: 136px; }
}

/* 品牌布局与交互态分开，避免主题覆盖支付禁用和订单显隐状态。 */
body { padding: 32px 20px; background: var(--bg); }
.frame { width: min(1040px, 100%); border: 1px solid #CCD8CD; border-radius: 10px; background: var(--paper); box-shadow: 0 20px 60px #193F3410; animation: none; }
.frame::before { display: none; }
.masthead { background: #193F34; padding: 32px; border-radius: 9px 9px 0 0; }
.masthead-inner { display: block; position: relative; padding: 0; text-align: left; }
.brand-kicker { color: #D1DFBF; font-size: 13px; letter-spacing: .16em; }
.masthead h1 { color: #F7F9EE; font-size: clamp(24px, 3vw, 36px); font-weight: 500; letter-spacing: -.03em; margin: 12px 0; }
.title-sub { color: #CFDDCF; margin: 0; font-size: 14px; letter-spacing: .02em; text-shadow: none; }
.content { padding: 24px 32px; }
.nameplate { background: #EDF3E8; border: 1px solid #CCD8CD; border-radius: 5px; box-shadow: none; }
.np-cell dd { color: var(--ink); }
.block-title { justify-content: flex-start; font-size: 18px; letter-spacing: 0; }
.block-title::before, .block-title::after, .block-title span::before { display: none; }
.amount-row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.amount-chip { min-width: 0; border: 1px solid #CCD8CD; border-radius: 6px; background: #F8FAF4; box-shadow: none; }
.amount-chip:hover { border-color: var(--gold); background: #EDF3E8; }
.amount-chip.active { border-color: var(--gold); background: #E6EFDB; box-shadow: 0 0 0 1px var(--gold); }
.amount-chip.active .chip-value { color: var(--ink); text-shadow: none; }
.chip-value { color: var(--ink); text-shadow: none; }
.chip-icon { width: 48px; height: 48px; }
.chip-badge { background: #216354; color: white; box-shadow: none; }
.chip-bonus { color: #216354; background: #E3ECD8; }
.tier-desc, .merchant-card, .result { background: #F6F9F1; border-color: #CCD8CD; box-shadow: none; }
.merchant-card, .result { border-radius: 6px; }
.merchant-head { background: #EDF3E8; border-color: #CCD8CD; }
.merchant-name { color: var(--ink); }
.merchant-name::before, .pay-method::before { display: none; }
.merchant-tag { color: #47624F; background: #DFEBD7; }
.pay-method { min-height: 48px; background: #FFF; color: #216354; border: 1px solid #ADC5AC; border-radius: 5px; box-shadow: none; }
.pay-method:hover { color: #FFF; background: #216354; }
.pay-method.active { background: #216354; color: white; }
.primary { background: #216354; color: white; border: 0; border-radius: 5px; box-shadow: none; text-shadow: none; }
.primary::before { display: none; }
.tabs { border-radius: 5px; background: #E9F0E4; }
.tabs .tab { min-height: 44px; border-radius: 3px; letter-spacing: 0; }
.tabs .tab.active { background: #216354; color: white; box-shadow: none; }
.pack-card, .dream-pass-card { border-radius: 6px; background: #F8FAF4; border-color: #CCD8CD; box-shadow: none; }
.pack-card.active, .dream-pass-card.active { background: #E6EFDB; border-color: #216354; box-shadow: 0 0 0 1px #216354; }
.pack-icon, .dream-pass-icon { background: #E7EEDC; border-color: #CCD8CD; box-shadow: none; }
.qr-ticket { background: white; border-color: #CCD8CD; box-shadow: none; }
:is(button, a):focus-visible { outline: 2px solid #216354; outline-offset: 3px; }
@media (max-width: 720px) {
  body { padding: 12px; }
  .masthead { padding: 24px 20px; }
  .content { padding: 20px 16px; }
  .amount-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .nameplate { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .amount-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
