.pack-page, .agent-page, .pay-page { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
.pack-page button, .agent-page button, .pay-page button { margin: 0; border: 0; background: transparent; padding: 0; color: inherit; cursor: pointer; font: inherit; }
.agent-page .tool-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.agent-page .headline, .pay-page .headline { margin: 4px 0; color: #29231e; font-family: "Songti SC", "STSong", "Noto Serif SC", serif; font-size: 26px; font-weight: 700; }
.agent-page .back-chip, .agent-page .badge, .pay-page .back-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #e3d5c4; background: #fffdf8; font-size: 12px; font-weight: 700; }
.agent-page .lead, .pay-page .lead, .agent-page .kicker { display: block; color: #8c8073; font-size: 12px; line-height: 1.45; }
.agent-page .sheet, .agent-page .warn, .pay-page .pay-card { margin: 8px 0; padding: 12px; border-radius: 14px; border: 1px solid #e3d5c4; background: #fbf8f2; }
.agent-page .warn-t { margin: 0 0 6px; color: #29231e; font-size: 16px; }
.agent-page .sheet p, .agent-page .warn p { margin: 0 0 6px; color: #5c4630; font-size: 12px; line-height: 1.5; }
.pack-page .buy-wide, .pay-page .buy-wide { display: block; width: 100%; min-height: 40px; margin-top: 10px; border-radius: 999px; background: #29231e; color: #fffdf8; font-size: 14px; font-weight: 800; }
.agent-page .btn.primary { border-color: #29231e; background: #29231e; color: #fffdf8; }

.pack-page .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.pack-page .block-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pack-page .headline { display: block; margin: 0; color: #29231e; font-size: 18px; font-weight: 800; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
.pack-page .close { flex: 0 0 auto; height: 28px; padding: 0 9px; border-radius: 999px; border: 1px solid #e3d5c4; background: #fffdf8; color: #29231e; font-size: 12px; font-weight: 700; }
.pack-page .pack-ico { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 11px; border: 1px solid rgba(196,165,116,.5); background: linear-gradient(165deg, #fffef9 0%, #f3e6d0 100%); }
.pack-page .mk { position: relative; width: 18px; height: 18px; }
.pack-page .mk-pass-card { display: block; width: 16px; height: 11px; margin: 4px auto 0; border: 1px solid #c4a574; border-radius: 3px; background: rgba(255,253,248,.72); }
.pack-page .mk-pass-star { position: absolute; left: 4px; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: #5c4630; }
.pack-page .mk-pass-line { position: absolute; left: 9px; top: 7px; width: 6px; height: 1px; border-radius: 1px; background: #c4a574; box-shadow: 0 3px 0 #c4a574; }
.pack-page .mk-cup-rim { display: block; width: 12px; height: 4px; margin: 3px auto 0; border: 1px solid #5c4630; border-radius: 50%; background: #f4ead8; }
.pack-page .mk-cup-body { display: block; width: 11px; height: 7px; margin: -1px auto 0; border: 1px solid #c4a574; border-top: 0; border-radius: 0 0 5px 5px; }
.pack-page .mk-cup-handle { position: absolute; right: 1px; top: 7px; width: 4px; height: 5px; border: 1px solid #c4a574; border-left: 0; border-radius: 0 4px 4px 0; }
.pack-page .plan-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pack-page .plan-card { position: relative; display: flex; flex-direction: column; align-items: center; width: calc((100% - 6px) / 2); box-sizing: border-box; padding: 14px 6px 9px; border-radius: 10px; border: 1px solid #e3d5c4; background: #fffdf8; text-align: center; }
.pack-page .plan-card.is-best { border-color: #c4a574; background: #fff8ee; }
.pack-page .plan-badge { position: absolute; top: 0; right: 0; padding: 3px 7px 3px 8px; border-radius: 0 9px 0 8px; background: #29231e; color: #f4ead8; font-size: 9px; font-weight: 800; line-height: 1.3; }
.pack-page .pack-name, .pack-page .pack-term, .pack-page .pack-price { display: block; }
.pack-page .pack-name { color: #29231e; font-size: 11px; font-weight: 800; }
.pack-page .pack-term { margin-top: 3px; color: #8a7460; font-size: 10px; font-weight: 700; }
.pack-page .pack-price { margin-top: 4px; color: #29231e; font-size: 13px; font-weight: 800; }
.pack-page .buy { display: block; width: 100%; height: 28px; margin-top: 6px; border-radius: 8px; background: #29231e; color: #fffdf8; font-size: 11px; font-weight: 800; line-height: 28px; }
.pack-page .block-title { display: block; margin: 0; color: #29231e; font-size: 15px; font-weight: 800; }
.pack-page .lead { display: block; margin-top: 4px; color: #8c8073; font-size: 12px; line-height: 1.5; }
.pack-page .pack-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.pack-page .pack-row { display: flex; flex-direction: column; width: calc((100% - 6px) / 2); box-sizing: border-box; padding: 10px 9px 8px; border: 1px solid #e3d5c4; border-radius: 10px; background: #fffdf8; }
.pack-page .pack-row-name { display: block; color: #29231e; font-size: 13px; font-weight: 700; line-height: 1.3; }
.pack-page .pack-row-meta { display: block; margin-top: 2px; color: #8c8073; font-size: 11px; }
.pack-page .pack-row-foot { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 7px; }
.pack-page .pack-row-price { color: #5c4630; font-size: 14px; font-weight: 800; }
.pack-page .pack-row-buy { min-width: 44px; height: 26px; padding: 0 8px; border-radius: 999px; border: 1px solid #d7c4ab; background: transparent; color: #5c4630; font-size: 11px; font-weight: 700; }
.pack-page .redeem-row { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; overflow: hidden; margin-top: 11px; padding: 11px 11px 11px 10px; border-radius: 12px; border: 1px solid #d4b896; background: linear-gradient(135deg, #fffdf8 0%, #f6ecdc 100%); box-shadow: 0 5px 14px rgba(92,70,48,.08); text-align: left; }
.pack-page .redeem-notch { position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #eee7dc; }
.pack-page .redeem-notch-l { left: -7px; box-shadow: inset -1px 0 0 #d4b896; }
.pack-page .redeem-notch-r { right: -7px; box-shadow: inset 1px 0 0 #d4b896; }
.pack-page .redeem-mark { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.pack-page .redeem-ticket-icon { position: relative; width: 26px; height: 18px; overflow: hidden; border-radius: 4px; background: #29231e; }
.pack-page .redeem-ticket-notch { position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: #f3eadb; }
.pack-page .redeem-ticket-notch-l { left: -4px; }
.pack-page .redeem-ticket-notch-r { right: -4px; }
.pack-page .redeem-ticket-dash { position: absolute; top: 50%; left: 6px; right: 6px; border-top: 1px dashed #f4ead8; }
.pack-page .redeem-copy { flex: 1; min-width: 0; }
.pack-page .redeem-kicker { display: block; color: #c4a574; font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.pack-page .redeem-hint { display: block; margin-top: 2px; color: #29231e; font-size: 13px; font-weight: 800; }
.pack-page .redeem-btn { flex: 0 0 auto; min-width: 66px; height: 28px; padding: 0 10px; border-radius: 999px; background: #29231e; color: #f4ead8; font-size: 11px; font-weight: 800; line-height: 28px; text-align: center; }
.pack-page .tip { display: block; margin: 8px 2px 4px; color: #8c8073; font-size: 11px; line-height: 1.55; }
.pack-page .faq { margin-top: 6px; }
.pack-page .faq-title { display: block; margin: 0 0 6px; color: #29231e; font-size: 15px; font-weight: 800; }
.pack-page .faq-item { margin-bottom: 6px; padding: 9px 10px; border-radius: 10px; border: 1px solid #e3d5c4; background: #fffdf8; }
.pack-page .faq-q { display: block; margin: 0 0 4px; color: #29231e; font-size: 13px; font-weight: 800; }
.pack-page .faq-a { display: block; margin: 0; color: #8c8073; font-size: 12px; line-height: 1.5; }
.pack-page .error, .agent-page .error { color: #c4553a; font-size: 12px; }
.pack-page .mask, .agent-page .mask { position: fixed; inset: 0; z-index: 1300; background: rgba(41,35,30,.32); }
.pack-page .drawer { position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 1301; max-height: 78vh; overflow: auto; padding: 14px 14px 16px; border-radius: 18px 18px 0 0; background: #fbf8f2; }
.pack-page .drawer-head { display: flex; justify-content: space-between; align-items: flex-start; }
.pack-page .drawer-title { display: block; color: #29231e; font-size: 18px; font-weight: 800; }
.pack-page .redeem-input { width: 100%; height: 44px; margin: 12px 0; padding: 0 12px; border: 1px solid #e3d5c4; border-radius: 12px; background: #fffdf8; font: inherit; }
.pack-page .pay-qr { width: min(240px, 70vw); height: auto; margin: 8px auto; }
.agent-page .tier-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin: 8px 0; }
.agent-page .tier-row div { padding: 8px; border-radius: 12px; background: #fffdf8; border: 1px solid #e3d5c4; }
.agent-page .tier-row span { display: block; color: #8c8073; font-size: 11px; }
.agent-page .tier-row b { color: #29231e; font-size: 13px; }
.agent-page .is-danger { color: #c4553a; font-weight: 800; }
.agent-page .actions { display: flex; gap: 8px; }
.agent-page .btn { flex: 1; min-height: 40px; border-radius: 999px; border: 1px solid #e3d5c4; background: #fffdf8; font-weight: 800; }
.agent-page .btn.primary { border-color: #29231e; background: #29231e; color: #fffdf8; }
@media (min-width: 768px) {
  .pack-page, .agent-page, .pay-page { padding-bottom: 32px; }
  .pack-page .plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 880px; }
  .pack-page .plan-card { width: auto; padding: 18px 16px 16px; }
  .pack-page .pack-name { font-size: 15px; }
  .pack-page .pack-price { font-size: 22px; }
  .pack-page .buy { height: 36px; line-height: 36px; font-size: 14px; }
  .pack-page .pack-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
  .pack-page .pack-row { width: auto; }
  .pack-page .drawer { left: 196px; right: 24px; top: 72px; bottom: auto; max-width: 520px; margin: 0 auto; border-radius: 16px; }
}
