/* =========================================================================
   前台样式：移动优先，浅紫渐变 + 白色卡片
   ========================================================================= */

:root {
    --shop-bg-1: #eceafd;
    --shop-bg-2: #f7f7fc;
    --shop-card: #ffffff;
    --shop-ink: #1d2130;
    --shop-muted: #77809a;
    --shop-line: #ebe9f7;
    --shop-brand: #6c5ce7;
    --shop-brand-ink: #ffffff;
    --shop-brand-soft: #efedff;
    --shop-ok: #12805c;
    --shop-ok-soft: #e6f7f0;
    --shop-bad: #c0392b;
    --shop-bad-soft: #fdeceb;
    --shop-warn: #a8710f;
    --shop-warn-soft: #fdf4e3;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(76, 61, 160, .08);
}

* { box-sizing: border-box; }

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

body.shop {
    min-height: 100vh;
    background:
        radial-gradient(900px 420px at 50% -10%, #ded9ff 0%, rgba(222, 217, 255, 0) 70%),
        linear-gradient(180deg, var(--shop-bg-1) 0%, var(--shop-bg-2) 42%);
    color: var(--shop-ink);
    font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

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

.shop-shell {
    width: min(560px, 100%);
    margin: 0 auto;
    padding: 18px 16px calc(28px + env(safe-area-inset-bottom));
}

.shop-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 4px 16px;
}
.shop-logo {
    display: flex; align-items: center; gap: 9px;
    font-weight: 700; color: var(--shop-ink); font-size: 16px;
}
.shop-logo:hover { text-decoration: none; }
.shop-logo-mark {
    width: 30px; height: 30px; border-radius: 10px;
    background: var(--shop-brand); color: #fff;
    display: grid; place-items: center; font-size: 14px; font-weight: 700;
    box-shadow: 0 6px 14px rgba(108, 92, 231, .35);
}
.shop-link { font-size: 13px; color: var(--shop-muted); }

.shop-main { display: flex; flex-direction: column; gap: 14px; }

.shop-foot {
    margin-top: 22px; padding: 0 6px;
    color: var(--shop-muted); font-size: 12px; text-align: center; line-height: 1.7;
}
.shop-foot p { margin: 6px 0; }

/* --- 首屏 --- */
.hero { padding: 6px 4px 2px; }
.hero h1 { margin: 0; font-size: 26px; letter-spacing: -.5px; }
.hero p { margin: 4px 0 0; color: var(--shop-muted); font-size: 13px; }

/* --- 套餐列表 --- */
.tier-list { display: flex; flex-direction: column; gap: 10px; }

.tier {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 16px 18px;
    background: var(--shop-card);
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: inherit;
    transition: transform .12s ease, border-color .12s ease;
}
.tier:hover { text-decoration: none; transform: translateY(-1px); }
.tier:active { transform: scale(.995); }
.tier-active { border-color: var(--shop-brand); background: linear-gradient(180deg, #fbfaff, #fff); }
.tier-soldout { opacity: .72; }

.tier-main { min-width: 0; }
.tier-name { font-weight: 650; font-size: 16px; }
.tier-desc { color: var(--shop-muted); font-size: 12.5px; margin-top: 2px; }
.tier-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; }
.tier-meta .muted { color: var(--shop-muted); }

.tier-price { color: var(--shop-brand); font-weight: 700; font-size: 19px; white-space: nowrap; }
.currency { font-size: 13px; margin-right: 1px; }

/* --- 卡片 --- */
.card {
    background: var(--shop-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}
.card h2 { font-size: 15px; margin: 0 0 10px; }

.back-link { font-size: 13px; color: var(--shop-muted); padding: 0 4px; }
.back-link:hover { color: var(--shop-brand); }

.empty-card { text-align: center; padding: 34px 18px; }
.empty-title { margin: 0 0 6px; font-weight: 600; }

.tips ul { margin: 0; padding-left: 18px; color: var(--shop-muted); font-size: 13px; }
.tips li { margin: 6px 0; }
.tips p { margin: 0; color: var(--shop-muted); font-size: 13px; }

/* --- 商品详情 --- */
.product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product-title { font-size: 20px; margin: 0 0 4px; letter-spacing: -.3px; }
.product-price { color: var(--shop-brand); font-weight: 700; font-size: 22px; white-space: nowrap; }

.product-desc {
    margin: 12px 0 4px; padding: 12px 14px;
    background: #faf9ff; border-radius: 12px;
    color: #4a5169; font-size: 13.5px;
}
.product-desc p { margin: 0 0 8px; }
.product-desc ul, .product-desc ol { margin: 6px 0; padding-left: 20px; }

/* --- 表单 --- */
.order-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: #3a4056; }
.field > span { font-weight: 550; }
.field input, .field select {
    width: 100%; height: 46px; padding: 0 14px;
    border: 1.5px solid var(--shop-line); border-radius: 12px;
    background: #fff; font: inherit; color: var(--shop-ink); outline: none;
}
.field input:focus { border-color: var(--shop-brand); box-shadow: 0 0 0 4px rgba(108, 92, 231, .12); }
.field input:disabled { background: #f6f6fa; color: #a9aec0; }

.qty { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qty-btn {
    width: 42px; height: 42px; border-radius: 12px;
    border: 1.5px solid var(--shop-line); background: #fff;
    font-size: 18px; color: var(--shop-ink); cursor: pointer;
}
.qty-btn:hover { border-color: var(--shop-brand); color: var(--shop-brand); }
.qty input {
    width: 76px; height: 42px; text-align: center; border-radius: 12px;
    border: 1.5px solid var(--shop-line); font: inherit;
    -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-hint { font-size: 12px; }

.hint {
    padding: 10px 12px; border-radius: 12px;
    background: var(--shop-warn-soft); color: var(--shop-warn); font-size: 12.5px;
}

.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-option {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 12px; cursor: pointer;
    border: 1.5px solid var(--shop-line); background: #fff;
    font-size: 13px;
}
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option:has(input:checked) {
    border-color: var(--shop-brand);
    background: var(--shop-brand-soft);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, .08);
}
.pay-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.pay-alipay { background: #1677ff; }
.pay-wxpay { background: #07c160; }
.pay-text { display: flex; flex-direction: column; line-height: 1.3; }
.pay-text em { font-style: normal; color: var(--shop-muted); font-size: 11px; }

.order-total {
    display: flex; align-items: baseline; justify-content: space-between;
    padding-top: 6px; border-top: 1px dashed var(--shop-line); font-size: 13px; color: var(--shop-muted);
}
.order-total strong { color: var(--shop-brand); font-size: 22px; }

/* --- 按钮 --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 44px; padding: 0 16px; border-radius: 12px;
    border: 1.5px solid var(--shop-line); background: #fff; color: var(--shop-ink);
    font: 600 14px/1 inherit; cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
    background: linear-gradient(180deg, #7d6df0, var(--shop-brand));
    border-color: transparent; color: var(--shop-brand-ink);
    box-shadow: 0 10px 22px rgba(108, 92, 231, .28);
}
.btn-primary:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 9px; }

.form-error { color: var(--shop-bad); font-size: 12.5px; min-height: 16px; margin: 0; text-align: center; }
.center { text-align: center; }
.muted { color: var(--shop-muted); }
.small { font-size: 12px; }
.strong { font-weight: 650; }

/* --- 结果页 --- */
.result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.link-btn {
    border: 0; background: none; padding: 0; margin-left: 6px;
    color: var(--shop-brand); font: inherit; font-size: 12px; cursor: pointer;
}

.kv { margin: 14px 0 0; display: grid; gap: 8px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.kv dt { color: var(--shop-muted); margin: 0; }
.kv dd { margin: 0; text-align: right; }

.card-cards h2 { margin-bottom: 4px; }
.card-key {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 10px; padding: 12px 14px;
    background: #faf9ff; border: 1px dashed #ddd8ff; border-radius: 12px;
}
.card-key code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px; letter-spacing: .5px;
    word-break: break-all; color: #332c6b;
}

/* --- 徽标/提示 --- */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap;
}
.badge-ok { background: var(--shop-ok-soft); color: var(--shop-ok); }
.badge-bad { background: var(--shop-bad-soft); color: var(--shop-bad); }
.badge-warn { background: var(--shop-warn-soft); color: var(--shop-warn); }
.badge-muted { background: #f1f2f7; color: var(--shop-muted); }

.alert { padding: 12px 14px; border-radius: 12px; font-size: 13px; margin-top: 14px; }
.alert-warn { background: var(--shop-warn-soft); color: var(--shop-warn); }
.alert-error { background: var(--shop-bad-soft); color: var(--shop-bad); }
.alert-ok { background: var(--shop-ok-soft); color: var(--shop-ok); }

/* --- Toast --- */
.toast-root {
    position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex; flex-direction: column; gap: 8px; z-index: 40;
}
.toast {
    padding: 10px 16px; border-radius: 12px;
    background: rgba(29, 33, 48, .92); color: #fff; font-size: 13px;
    box-shadow: 0 12px 30px rgba(29, 33, 48, .25);
    animation: toast-in .16s ease-out;
}
.toast.error { background: rgba(160, 45, 45, .95); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (min-width: 620px) {
    .shop-shell { padding-top: 34px; }
    .hero h1 { font-size: 30px; }
}

/* =========================================================================
   移动端：禁止页面缩放 + 输入框不触发自动放大
   ========================================================================= */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body.shop {
    touch-action: pan-x pan-y;
    -webkit-tap-highlight-color: transparent;
}
.field input,
.field select,
.field textarea,
.qty input,
input[type="text"],
input[type="search"],
input[type="password"],
input[type="number"],
input[type="email"],
textarea,
select {
    font-size: 16px;
}

/* =========================================================================
   商品卡片强化：更粗的边框、更强的价格块、更清楚的文字层级
   ========================================================================= */
.tier-list { gap: 12px; }

.tier {
    position: relative;
    overflow: hidden;
    padding: 18px 18px 18px 22px;
    border: 2px solid #e7e3ff;
    background: linear-gradient(135deg, #ffffff 0%, #fbfaff 58%, #f4f1ff 100%);
    box-shadow: 0 10px 26px rgba(108, 92, 231, .10), 0 2px 6px rgba(29, 33, 48, .04);
}
.tier::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #7d6df0, #b7aefc);
}
.tier:hover {
    border-color: #b9aefc;
    box-shadow: 0 16px 34px rgba(108, 92, 231, .18);
    transform: translateY(-2px);
}
.tier-active {
    border-color: var(--shop-brand);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, .12), 0 14px 30px rgba(108, 92, 231, .16);
}
.tier-active::before {
    width: 6px;
    background: linear-gradient(180deg, #5b4bd6, #8f7dff);
}

.tier-name {
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -.3px;
    color: #1b1f2e;
}
.tier-desc {
    font-size: 13.5px;
    color: #5a6480;
    margin-top: 4px;
}
.tier-meta { margin-top: 10px; }
.tier-meta .badge { padding: 3px 10px; }
.tier-meta .muted { color: #8a92a8; }

.tier-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}
.tier-price {
    padding: 7px 12px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.4px;
    color: #5a48d8;
    background: linear-gradient(135deg, #f2efff, #e6e0ff);
    border: 1px solid #ddd5ff;
    border-radius: 14px;
    white-space: nowrap;
}
.tier-price .currency {
    font-size: 13px;
    font-weight: 700;
    opacity: .85;
}
.tier-arrow {
    color: #b3a8e8;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.tier-soldout { opacity: .72; filter: saturate(.55); }
.tier-soldout::before { background: linear-gradient(180deg, #c9ccd8, #e3e5ee); }
.tier-soldout .tier-price {
    color: #8a8f9e;
    background: #f1f2f7;
    border-color: #e3e5ee;
}

/* 详情页商品头 */
.product-head { gap: 14px; }
.product-title {
    font-size: 24px;
    font-weight: 780;
    letter-spacing: -.5px;
}
.product-price {
    padding: 8px 14px;
    font-size: 24px;
    font-weight: 800;
    color: #5a48d8;
    background: linear-gradient(135deg, #f2efff, #e6e0ff);
    border: 1px solid #ddd5ff;
    border-radius: 14px;
}
.product-desc {
    border-left: 4px solid #c9c0ff;
    background: linear-gradient(135deg, #fbfaff, #f5f2ff);
    color: #444c63;
    font-size: 14px;
    line-height: 1.75;
}

/* =========================================================================
   v2.2 前台视觉：极光背景 / 取卡英雄区 / 发光卡密 / 公告弹窗
   ========================================================================= */

body.shop { position: relative; overflow-x: hidden; }
body.shop.modal-open { overflow: hidden; }

.aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.aurora-blob {
    position: absolute;
    width: 52vmax;
    height: 52vmax;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    animation: blob-float 18s ease-in-out infinite alternate;
}
.aurora-blob.a1 {
    top: -22vmax;
    left: -14vmax;
    background: radial-gradient(circle at 30% 30%, #8f7dff, rgba(143, 125, 255, 0));
}
.aurora-blob.a2 {
    top: -8vmax;
    right: -22vmax;
    background: radial-gradient(circle at 60% 40%, #ff9ad5, rgba(255, 154, 213, 0));
    animation-delay: -6s;
}
.aurora-blob.a3 {
    bottom: -26vmax;
    left: 18vmax;
    background: radial-gradient(circle at 50% 50%, #6ee7ff, rgba(110, 231, 255, 0));
    animation-delay: -12s;
}
@keyframes blob-float {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(4vmax, 3vmax, 0) scale(1.12); }
}

.shop-shell { position: relative; z-index: 1; }

/* ---- 取卡结果：英雄区 ---- */
.result-hero {
    position: relative;
    overflow: hidden;
    padding: 26px 20px 22px;
    border-radius: 24px;
    text-align: center;
    color: #fff;
    box-shadow: 0 22px 50px rgba(64, 48, 150, .28);
}
.result-hero.is-success {
    background: linear-gradient(140deg, #5b4bd6 0%, #8b5cf6 45%, #d946ef 100%);
}
.result-hero.is-pending {
    background: linear-gradient(140deg, #4b5563 0%, #6b7280 50%, #9ca3af 100%);
    box-shadow: 0 18px 40px rgba(55, 65, 81, .22);
}
.result-hero.is-closed {
    background: linear-gradient(140deg, #7f1d1d 0%, #b91c1c 55%, #ef4444 100%);
    box-shadow: 0 18px 40px rgba(127, 29, 29, .22);
}
.hero-glow {
    position: absolute;
    inset: -40% -10% auto -10%;
    height: 70%;
    background: radial-gradient(60% 60% at 50% 0%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
    animation: hero-glow 5s ease-in-out infinite alternate;
}
@keyframes hero-glow {
    from { opacity: .35; transform: translateY(-6px); }
    to   { opacity: .75; transform: translateY(6px); }
}
.hero-icon {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 800;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    border: 2px solid rgba(255, 255, 255, .55);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .12), 0 10px 24px rgba(0, 0, 0, .18);
    animation: icon-pop .5s cubic-bezier(.2, .9, .3, 1.4);
}
.result-hero.is-success .hero-icon { animation: icon-pop .5s cubic-bezier(.2, .9, .3, 1.4), icon-pulse 2.4s ease-in-out .6s infinite; }
@keyframes icon-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes icon-pulse {
    0%, 100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, .12), 0 10px 24px rgba(0, 0, 0, .18); }
    50%      { box-shadow: 0 0 0 14px rgba(255, 255, 255, .06), 0 10px 24px rgba(0, 0, 0, .18); }
}
.hero-title {
    position: relative;
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}
.hero-sub {
    position: relative;
    margin: 0;
    font-size: 12.5px;
    opacity: .92;
}
.hero-sub .mono { letter-spacing: .3px; }
.hero-sub .link-btn { color: #fff; text-decoration: underline; opacity: .9; }
.hero-amount {
    position: relative;
    margin: 10px 0 12px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.5px;
}
.hero-amount .currency { font-size: 16px; margin-right: 2px; opacity: .9; }
.result-hero .badge {
    position: relative;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
}

/* ---- 卡密卡片：发光 + 扫光 ---- */
.key-card { border: 1px solid #e4ddff; box-shadow: 0 18px 40px rgba(88, 66, 190, .14); }
.key-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.key-item {
    position: relative;
    overflow: hidden;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e1b3a 0%, #2b2360 58%, #3b2c86 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 26px rgba(45, 30, 110, .28);
}
.key-item::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -30%;
    width: 40%;
    height: 220%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0));
    transform: rotate(18deg);
    animation: key-shine 3.6s ease-in-out infinite;
}
@keyframes key-shine {
    0%, 55%   { left: -40%; }
    85%, 100% { left: 120%; }
}
.key-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.key-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: #b9aefc;
    text-transform: uppercase;
}
.key-value {
    position: relative;
    z-index: 1;
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #f5f2ff;
    text-shadow: 0 0 18px rgba(168, 139, 255, .75);
    word-break: break-all;
}
.key-head .btn {
    height: 30px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    box-shadow: none;
}

/* ---- 解锁 / 查单 ---- */
.unlock-card, .query-card { text-align: center; }
.lock-icon, .query-icon {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 8px;
    filter: drop-shadow(0 6px 16px rgba(108, 92, 231, .35));
}
.unlock-card .order-form, .query-card .order-form { text-align: left; }

/* ---- 支付卡片 ---- */
.pay-card h2 { margin-bottom: 10px; }
.pay-card .pay-grid { margin-top: 4px; }

/* ---- 公告弹窗 ---- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(18, 16, 38, .55);
    backdrop-filter: blur(6px);
    animation: fade-in .2s ease-out;
}
.modal-card {
    position: relative;
    width: min(420px, 100%);
    max-height: 78vh;
    overflow: auto;
    padding: 24px 22px 20px;
    border-radius: 22px;
    background: linear-gradient(160deg, #ffffff 0%, #fbf9ff 60%, #f4f0ff 100%);
    border: 1px solid #e7e1ff;
    box-shadow: 0 30px 70px rgba(30, 20, 80, .35);
    animation: modal-rise .28s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-glow {
    position: absolute;
    top: -40px;
    right: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 125, 255, .45), rgba(143, 125, 255, 0) 70%);
    pointer-events: none;
}
.modal-card h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.2px;
}
.modal-body {
    position: relative;
    margin-bottom: 18px;
    font-size: 13.5px;
    line-height: 1.8;
    color: #4c5470;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ---- 小屏适配 ---- */
@media (max-width: 420px) {
    .hero-title { font-size: 21px; }
    .hero-amount { font-size: 28px; }
    .key-value { font-size: 15px; letter-spacing: .8px; }
}

@media (prefers-reduced-motion: reduce) {
    .aurora-blob, .hero-glow, .hero-icon, .key-item::after { animation: none !important; }
}

/* =========================================================================
   v2.7 前台精修 + 公告富文本排版
   ========================================================================= */

.modal-body.rich { white-space: normal; }
.modal-body.rich p { margin: 0 0 8px; }
.modal-body.rich ul, .modal-body.rich ol { margin: 8px 0 8px 20px; padding: 0; }
.modal-body.rich li { margin: 2px 0; }
.modal-body.rich a { color: #7c3aed; text-decoration: underline; }
.modal-body.rich h1, .modal-body.rich h2, .modal-body.rich h3, .modal-body.rich h4 {
    margin: 4px 0 8px;
    font-size: 16px;
    font-weight: 800;
    color: #2b2350;
}
.modal-body.rich blockquote {
    margin: 8px 0;
    padding: 8px 12px;
    border-left: 3px solid #c4b5fd;
    background: #f8f5ff;
    border-radius: 8px;
}

.shop-head {
    position: sticky;
    top: 8px;
    z-index: 30;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 18px;
    padding: 10px 14px;
    box-shadow: 0 12px 28px rgba(80, 60, 160, .08);
}
.shop-link {
    border-radius: 999px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e9e4fb;
}

.tier {
    border-radius: 18px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tier:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(80, 60, 160, .14);
}

.card {
    border-radius: 20px;
    border: 1px solid #ece8fb;
    box-shadow: 0 14px 34px rgba(70, 50, 140, .07);
}

.btn { border-radius: 12px; }
.btn-primary {
    background: linear-gradient(135deg, #6d5ce7, #a855f7);
    border: 0;
    box-shadow: 0 10px 22px rgba(109, 92, 231, .28);
}
.btn-primary:hover { filter: brightness(1.05); }

.shop-main { padding-bottom: 28px; }
.shop-foot { opacity: .95; }

@media (max-width: 420px) {
    .shop-head { top: 4px; padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .tier:hover { transform: none; }
}
