/* ==========================================================================
   微信公众号抽奖系统 · 移动端样式
   设计基调：红金喜庆、大按钮、拇指友好、微信内浏览器适配
   ========================================================================== */

:root {
    --brand: #e6433d;
    --brand-dark: #c62f29;
    --gold: #f7c449;
    --text: #1f2126;
    --text-2: #6b7280;
    --text-3: #9ca3af;
    --line: #eceef2;
    --bg: #f5f6f8;
    --card: #ffffff;
    --radius: 12px;
    --safe-b: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border: 0; }
ul, ol { list-style: none; }
button, input, textarea { font-family: inherit; font-size: inherit; outline: none; border: none; background: none; }

/* ---------------- 通用 ---------------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 20px 12px; flex-wrap: wrap; }
.pager a, .pager span {
    display: inline-block; min-width: 32px; height: 32px; line-height: 30px;
    padding: 0 8px; text-align: center; border-radius: 6px;
    background: #fff; color: var(--text-2); font-size: 13px; border: 1px solid var(--line);
}
.pager a:active { background: #f0f0f0; }
.pager .active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager .disabled { color: #ccc; }
.pager .total { width: 100%; text-align: center; color: var(--text-3); font-size: 12px; border: none; background: none; height: auto; line-height: 1.6; }

/* ---------------- 底部导航 ---------------- */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: flex; height: 54px; padding-bottom: var(--safe-b);
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}
.nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 11px; color: var(--text-3);
}
.nav-item img { width: 22px; height: 22px; margin-bottom: 2px; }
.nav-item.on { color: var(--brand); }
.nav-body { padding-bottom: calc(64px + var(--safe-b)); }

/* ---------------- 弹层 ---------------- */
.mask {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.55);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.mask.show { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.dialog {
    width: 100%; max-width: 320px; background: #fff;
    border-radius: 16px; overflow: hidden; text-align: center;
    animation: popIn .28s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes popIn { from { transform: scale(.86); opacity: 0 } to { transform: scale(1); opacity: 1 } }

.dialog-hd {
    padding: 26px 20px 16px;
    background: linear-gradient(180deg, #fff6e6, #fff);
    position: relative;
}
.dialog-hd .confetti { font-size: 46px; line-height: 1; }
.dialog-hd .title { font-size: 19px; font-weight: 700; margin-top: 10px; color: var(--brand); }
.dialog-bd { padding: 0 22px 8px; color: var(--text-2); font-size: 14px; }
.dialog-ft { padding: 16px 22px 22px; display: flex; gap: 10px; }

.btn {
    flex: 1; height: 44px; border-radius: 22px; font-size: 16px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    transition: transform .12s, opacity .12s;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: linear-gradient(135deg, #f2564a, #d92d24); color: #fff; box-shadow: 0 6px 16px rgba(230,67,61,.32); }
.btn-plain { background: #f2f3f5; color: var(--text-2); }
.btn-gold { background: linear-gradient(135deg, #ffd25c, #f5a623); color: #6b3d00; box-shadow: 0 6px 16px rgba(245,166,35,.34); }
.btn[disabled] { opacity: .55; }

/* ---------------- Toast ---------------- */
.toast {
    position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%);
    z-index: 999; max-width: 76%;
    padding: 12px 18px; border-radius: 10px;
    background: rgba(0,0,0,.82); color: #fff; font-size: 14px; text-align: center;
    opacity: 0; pointer-events: none; transition: opacity .22s;
}
.toast.show { opacity: 1; }

/* ==========================================================================
   首页
   ========================================================================== */
.home-hero {
    position: relative; padding: 34px 20px 60px; overflow: hidden;
    background: linear-gradient(135deg, #f2564a 0%, #d92d24 55%, #b81f18 100%);
    color: #fff; text-align: center;
}
.home-hero::before, .home-hero::after {
    content: ''; position: absolute; border-radius: 50%; opacity: .16; background: #fff;
}
.home-hero::before { width: 180px; height: 180px; top: -70px; right: -50px; }
.home-hero::after  { width: 130px; height: 130px; bottom: -50px; left: -40px; }
.home-hero .logo { width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 30px; border: 2px solid rgba(255,255,255,.4); overflow: hidden; }
.home-hero .logo img { width: 100%; height: 100%; object-fit: cover; }
.home-hero h1 { font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.home-hero p { font-size: 13px; opacity: .9; margin-top: 6px; }
.home-hero .deco { position: absolute; font-size: 20px; opacity: .5; }

.home-main { margin: -44px 14px 14px; position: relative; z-index: 5; }

/* 活动卡片 */
.act-card {
    display: block; background: var(--card); border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.07); margin-bottom: 12px;
    transition: transform .16s;
}
.act-card:active { transform: scale(.985); }
.act-card .thumb { position: relative; height: 132px; background: linear-gradient(135deg, #f2564a, #b81f18); display: flex; align-items: center; justify-content: center; font-size: 46px; }
.act-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.act-card .type-tag {
    position: absolute; top: 10px; left: 10px; padding: 3px 9px;
    background: rgba(0,0,0,.42); border-radius: 20px; font-size: 11px; color: #fff; backdrop-filter: blur(4px);
}
.act-card .state-tag {
    position: absolute; top: 10px; right: 10px; padding: 3px 9px;
    border-radius: 20px; font-size: 11px; font-weight: 600;
}
.state-live  { background: #07c160; color: #fff; }
.state-wait  { background: rgba(255,255,255,.9); color: #f5a623; }
.state-end   { background: rgba(0,0,0,.55); color: #fff; }
.state-off   { background: rgba(0,0,0,.55); color: #fff; }
.act-card .info { padding: 13px 14px; }
.act-card .info h3 { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-card .info .sub { font-size: 12.5px; color: var(--text-2); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-card .info .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: var(--text-3); }
.act-card .info .join {
    padding: 5px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, #f2564a, #d92d24);
}

.empty { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty .ico { font-size: 46px; margin-bottom: 10px; }
.empty p { font-size: 14px; }

.notice-bar {
    padding: 10px 14px; background: #fff8e6; border: 1px solid #ffe8b0;
    border-radius: 8px; font-size: 12px; color: #a06b00; margin-bottom: 12px; display: flex; gap: 6px;
}

.site-footer { text-align: center; padding: 22px 16px 16px; color: var(--text-3); font-size: 11.5px; line-height: 1.8; }
.site-footer a { color: var(--text-3); }

/* ==========================================================================
   活动详情
   ========================================================================== */
.act-top {
    position: relative; padding: 18px 16px 56px; color: #fff; text-align: center;
    background: linear-gradient(135deg, #f2564a, #b81f18);
}
.act-top.gray { background: linear-gradient(135deg, #9aa0a6, #6b7280); }
.act-top h1 { font-size: 19px; font-weight: 700; }
.act-top .sub { font-size: 13px; opacity: .92; margin-top: 5px; }
.act-top .time { font-size: 11.5px; opacity: .82; margin-top: 8px; }

.chance-float {
    position: relative; z-index: 6; margin: -44px 14px 12px;
    background: #fff; border-radius: var(--radius); padding: 14px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    display: flex; align-items: center; justify-content: space-between;
}
.chance-float .num { font-size: 30px; font-weight: 800; color: var(--brand); line-height: 1; }
.chance-float .num small { font-size: 13px; font-weight: 400; color: var(--text-2); margin-left: 3px; }
.chance-float .lbl { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.chance-float .act { display: flex; gap: 8px; }

/* ---------------- 大转盘 ---------------- */
.wheel-wrap { padding: 8px 14px 14px; }
.wheel-stage { position: relative; width: 300px; height: 300px; margin: 0 auto; }
.wheel-stage .pointer {
    position: absolute; left: 50%; top: -6px; transform: translateX(-50%);
    width: 0; height: 0; z-index: 12;
    border-left: 14px solid transparent; border-right: 14px solid transparent;
    border-top: 26px solid #f7c449;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,.28));
}
.wheel-stage .hub {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: 68px; height: 68px; border-radius: 50%; z-index: 11;
    background: linear-gradient(135deg, #ffd25c, #f5a623);
    color: #6b3d00; font-size: 16px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.24);
    border: 3px solid rgba(255,255,255,.7);
    transition: transform .18s;
}
.wheel-stage .hub:active { transform: translate(-50%,-50%) scale(.92); }
.wheel-stage .hub[disabled] { opacity: .75; }

.wheel {
    width: 300px; height: 300px; border-radius: 50%;
    position: relative; z-index: 10;
    box-shadow: 0 8px 26px rgba(0,0,0,.2);
    transition: transform 4.4s cubic-bezier(.15,.85,.2,1);
    background: #fff;
}
.wheel-svg { width: 100%; height: 100%; display: block; }

/* ---------------- 九宫格 ---------------- */
.grid-wrap { padding: 6px 16px 14px; }
.grid9 {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    max-width: 320px; margin: 0 auto;
}
.cell {
    position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
    background: linear-gradient(150deg, #fff6e6, #ffe9c9);
    border: 1px solid #ffe0ae; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 6px;
    transition: transform .4s;
}
.cell .pic { font-size: 27px; line-height: 1; }
.cell .pic img { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; }
.cell .nm { font-size: 11.5px; margin-top: 5px; color: #8a5a00; text-align: center; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell.sold { filter: grayscale(1); opacity: .42; }
.cell.flip { animation: flipIn .55s ease; }
@keyframes flipIn {
    0%   { transform: rotateY(0) }
    100% { transform: rotateY(360deg) }
}
.cell.hit {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(230,67,61,.22);
    animation: hitPulse 1s ease;
}
@keyframes hitPulse {
    0%,100% { transform: scale(1) }
    30% { transform: scale(1.09) }
    60% { transform: scale(.97) }
}
.cell-mid {
    background: linear-gradient(135deg, #f2564a, #d92d24);
    color: #fff; font-size: 17px; font-weight: 800; letter-spacing: 1px;
    border-color: transparent;
}
.cell-mid:active { transform: scale(.94); }
.cell-mid[disabled] { opacity: .6; }

.celebrate { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
.celebrate i {
    position: absolute; top: -14px; width: 8px; height: 12px; opacity: 0;
    animation: fall linear forwards;
}
@keyframes fall {
    0%   { opacity: 1; transform: translateY(0) rotate(0deg) }
    100% { opacity: .9; transform: translateY(102vh) rotate(720deg) }
}

/* ---------------- 奖品列表 ---------------- */
.sec-title {
    display: flex; align-items: center; gap: 6px;
    padding: 16px 16px 8px; font-size: 15px; font-weight: 700;
}
.sec-title::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--brand); }

.prize-list { padding: 0 14px; }
.prize-item {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.prize-item .ic {
    width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, #fff6e6, #ffe3b8);
    display: flex; align-items: center; justify-content: center; font-size: 22px; overflow: hidden;
}
.prize-item .ic img { width: 100%; height: 100%; object-fit: cover; }
.prize-item .bd { flex: 1; min-width: 0; }
.prize-item .bd .nm { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prize-item .bd .mt { font-size: 11.5px; color: var(--text-3); margin-top: 3px; display: flex; gap: 10px; }
.prize-item .lv { padding: 2px 7px; border-radius: 4px; background: #fff1f0; color: var(--brand); font-size: 11px; }
.prize-item.sold { opacity: .5; }

.prob-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px 0; font-size: 12px; color: var(--text-3); }
.prob-bar .bar { flex: 1; height: 5px; background: #f0f1f3; border-radius: 3px; overflow: hidden; }
.prob-bar .bar i { display: block; height: 100%; background: linear-gradient(90deg, #f7c449, #f2564a); border-radius: 3px; }

/* ===================================================================
   新增玩法：刮刮卡(4) / 老虎机(5) / 拼手气(6) / 摇一摇(7)
   =================================================================== */

/* ---------- 刮刮卡 ---------- */
.scratch-wrap { padding: 16px 20px 8px; }
.scratch-card {
    position: relative; width: 100%; aspect-ratio: 3/4; max-height: 420px;
    border-radius: 14px; overflow: hidden;
    background: linear-gradient(135deg, #fff6e6, #ffe9c7);
    box-shadow: 0 6px 20px rgba(230,67,61,.14);
}
@supports not (aspect-ratio: 3/4) {
    .scratch-card { height: 360px; }
}
.scratch-inner {
    position: absolute; left: 0; top: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 20px; gap: 10px;
}
.scratch-ico { font-size: 62px; line-height: 1; }
.scratch-hint { font-size: 14px; color: var(--text-2); line-height: 1.8; }
.scratch-prize { font-size: 22px; font-weight: 800; color: var(--brand); line-height: 1.4; word-break: break-all; }
.scratch-val { font-size: 13px; color: var(--text-2); }
.scratch-inner.reveal .scratch-ico { animation: popIn .5s ease; }
.scratch-mask {
    position: absolute; left: 0; top: 0;
    touch-action: none; cursor: pointer; z-index: 2;
}
.scratch-actions { margin-top: 16px; }
.scratch-tip, .shake-tip { margin-top: 10px; text-align: center; font-size: 12px; color: var(--text-3); }

/* ---------- 老虎机 ---------- */
.slot-wrap { padding: 20px 14px 8px; }
.slot-machine { position: relative; padding: 14px 12px; border-radius: 16px; background: linear-gradient(180deg, #ffe9c7, #ffd79b); box-shadow: inset 0 2px 8px rgba(0,0,0,.08), 0 6px 18px rgba(230,67,61,.14); }
.slot-reels { display: flex; gap: 8px; }
.slot-machine .reel {
    flex: 1; height: 100px; overflow: hidden; border-radius: 10px;
    background: #fff; box-shadow: inset 0 2px 6px rgba(0,0,0,.14);
}
.slot-machine .reel-strip { will-change: transform; }
.slot-cell {
    height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; font-size: 12px; color: var(--text-2); border-bottom: 1px solid #f2f2f2;
}
.slot-cell img { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; }
.slot-frame {
    position: absolute; left: 0; right: 0; top: 42%; height: 40px;
    border-top: 2px solid rgba(230,67,61,.35); border-bottom: 2px solid rgba(230,67,61,.35);
    pointer-events: none;
}
.slot-frame::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 10px; height: 10px; margin: -5px 0 0 -5px;
    background: var(--brand); border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255,255,255,.75);
}
.slot-actions { margin-top: 18px; }

/* ---------- 拼手气 ---------- */
.lucky-wrap { padding: 18px 20px 8px; }
.lucky-box {
    background: linear-gradient(160deg, #fff3e0, #ffe1c2);
    border-radius: 18px; padding: 26px 20px 22px; text-align: center;
    box-shadow: 0 6px 20px rgba(230,67,61,.12);
}
.lucky-box.shaking { animation: shakeIt .45s ease-in-out infinite; }
.lucky-ico { font-size: 56px; line-height: 1; }
.lucky-range { margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.lucky-display { margin-top: 14px; color: var(--brand); line-height: 1; }
.lucky-display .cur { font-size: 22px; font-weight: 700; }
.lucky-display .num {
    font-size: 54px; font-weight: 800; letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(230,67,61,.18);
}
.lucky-sub { margin-top: 12px; font-size: 12.5px; color: var(--text-3); }
.lucky-actions { margin-top: 18px; }

/* ---------- 摇一摇 / 开箱 ---------- */
.shake-wrap { padding: 22px 20px 8px; }
.shake-stage { display: flex; justify-content: center; padding: 10px 0 6px; }
.shake-box { position: relative; width: 180px; height: 180px; }
.shake-box.shaking { animation: shakeIt .4s ease-in-out infinite; }
.shake-box .box-body {
    position: absolute; left: 10px; right: 10px; top: 62px; bottom: 6px;
    background: linear-gradient(180deg, #ff8a65, #f2564a);
    border-radius: 8px 8px 12px 12px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(230,67,61,.28);
}
.shake-box .box-body::before,
.shake-box .box-body::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 10px;
    background: rgba(247,196,73,.9);
}
.shake-box .box-body::before { left: 12px; }
.shake-box .box-body::after { right: 12px; }
.shake-box .box-lid {
    position: absolute; left: 0; right: 0; top: 40px; height: 30px;
    background: linear-gradient(180deg, #ffa07a, #ff7043);
    border-radius: 8px; z-index: 2; transform-origin: 50% 100%;
    box-shadow: 0 3px 8px rgba(0,0,0,.14);
}
.shake-box .box-ico { font-size: 46px; line-height: 1; z-index: 1; }
.shake-box .box-ico img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.shake-box.opened .box-lid {
    transform: translate(-58%, -46%) rotate(-24deg);
    transition: transform .55s cubic-bezier(.34,1.56,.64,1);
}
.shake-box.opened .box-body { animation: popIn .5s ease .12s both; }
.shake-actions { margin-top: 22px; }

/* ---------- 通用 ---------- */
.btn-block { display: block; width: 100%; }

@keyframes shakeIt {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    20% { transform: rotate(-6deg) translateX(-4px); }
    40% { transform: rotate(6deg) translateX(4px); }
    60% { transform: rotate(-4deg) translateX(-3px); }
    80% { transform: rotate(4deg) translateX(2px); }
}

/* 活动说明 */
.desc-box { padding: 4px 16px 16px; }
.desc-box .rich { font-size: 13.5px; color: var(--text-2); line-height: 1.85; }
.desc-box .rich img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.desc-box .rich p { margin: 6px 0; }
.desc-box .rules {
    margin-top: 10px; background: #fff; border-radius: var(--radius); padding: 14px;
    font-size: 13px; color: var(--text-2); white-space: pre-wrap; line-height: 1.9;
    border: 1px solid var(--line);
}
.link-row { display: flex; gap: 10px; padding: 0 16px 16px; }
.link-row a { flex: 1; height: 38px; line-height: 38px; text-align: center; border-radius: 19px; font-size: 13px; background: #fff; color: var(--text-2); border: 1px solid var(--line); }

/* ==========================================================================
   我的
   ========================================================================== */
.my-hd { padding: 30px 18px 22px; background: linear-gradient(135deg, #f2564a, #b81f18); color: #fff; display: flex; align-items: center; gap: 14px; }
.my-hd .av { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.4); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.my-hd .av img { width: 100%; height: 100%; object-fit: cover; }
.my-hd .info { flex: 1; min-width: 0; }
.my-hd .info .nm { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-hd .info .code { font-size: 11.5px; opacity: .85; margin-top: 4px; }
.my-hd .invite { padding: 6px 13px; background: rgba(255,255,255,.2); border-radius: 16px; font-size: 12px; white-space: nowrap; }

.stat-row { display: flex; margin: -12px 14px 12px; background: #fff; border-radius: var(--radius); padding: 16px 0; box-shadow: 0 4px 18px rgba(0,0,0,.07); position: relative; z-index: 5; }
.stat-row a { flex: 1; text-align: center; }
.stat-row a b { display: block; font-size: 21px; font-weight: 800; color: var(--brand); }
.stat-row a span { font-size: 12px; color: var(--text-3); }

.win-item {
    background: #fff; border-radius: var(--radius); padding: 13px 14px; margin: 0 14px 9px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.win-item .hd { display: flex; align-items: center; justify-content: space-between; }
.win-item .nm { font-size: 15px; font-weight: 600; }
.win-item .code {
    margin-top: 8px; padding: 8px 10px; background: #fafafa; border: 1px dashed #e0e0e0;
    border-radius: 6px; font-size: 13px; letter-spacing: .5px; color: var(--text);
}
.win-item .cd { font-size: 11.5px; color: var(--text-3); margin-top: 7px; display: flex; justify-content: space-between; }
.badge { padding: 2px 9px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge-0 { background: #fff4e5; color: #f5a623; }
.badge-1 { background: #e8f7ee; color: #07c160; }
.badge-2 { background: #e8f0fe; color: #3b7ff0; }
.badge-3 { background: #f2f3f5; color: #9ca3af; }

/* 表单 */
.form-item { display: flex; align-items: center; background: #fff; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.form-item label { width: 88px; font-size: 14.5px; color: var(--text-2); flex-shrink: 0; }
.form-item input, .form-item textarea {
    flex: 1; font-size: 14.5px; border: none; background: none; resize: none;
}
.form-item input::placeholder, .form-item textarea::placeholder { color: #c8ccd4; }
.form-item textarea { height: 62px; line-height: 1.6; }
.submit-bar { padding: 16px; }
.submit-bar .btn { width: 100%; }

/* 排行榜 */
.rank-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: #fff; margin-bottom: 8px; border-radius: var(--radius); }
.rank-item .no {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; background: #f2f3f5; color: var(--text-2);
}
.rank-item:nth-child(1) .no { background: linear-gradient(135deg,#ffd25c,#f5a623); color:#fff; }
.rank-item:nth-child(2) .no { background: linear-gradient(135deg,#d6dbe2,#aab1bb); color:#fff; }
.rank-item:nth-child(3) .no { background: linear-gradient(135deg,#e0a06a,#c67c40); color:#fff; }
.rank-item .av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: #f2f3f5; flex-shrink: 0; display:flex;align-items:center;justify-content:center;font-size:18px; }
.rank-item .av img { width:100%;height:100%;object-fit:cover; }
.rank-item .nm { flex: 1; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item .num { font-size: 13px; color: var(--brand); font-weight: 700; }

/* 错误页 */
.err-page { text-align: center; padding: 90px 24px; }
.err-page .ico { font-size: 62px; margin-bottom: 14px; }
.err-page h2 { font-size: 19px; margin-bottom: 8px; }
.err-page p { color: var(--text-3); font-size: 14px; margin-bottom: 26px; }
.err-page .btn { max-width: 200px; margin: 0 auto; }