:root {
    --bg: #0b0b0c;
    --bg-deep: #060607;
    --card: #141416;
    --card-2: #19191c;
    --line: #26262a;
    --line-soft: #1e1e21;
    --text: #f4efe4;
    --sub: #b9b2a3;
    --muted: #7f7a6f;
    --gold: #e8c87e;
    --gold-soft: #f3dca4;
    --gold-deep: #c9a45c;
    --danger: #e07070;
    --ok: #7fc59a;
    --radius: 16px;
}

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

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

body {
    background: var(--bg-deep);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; }

.app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background:
        radial-gradient(120% 40% at 50% 0%, rgba(232, 200, 126, .07) 0%, rgba(11, 11, 12, 0) 62%),
        var(--bg);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .02), 0 30px 80px rgba(0, 0, 0, .6);
    position: relative;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
    overflow-x: hidden;
}

.app.no-tabbar { padding-bottom: 0; min-height: 100vh; }
.app.no-tabbar ~ .tabbar { display: none; }

.page { padding: 20px 16px 8px; animation: fade .22s ease; }

@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- 顶部 ---------- */
.page-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.page-title { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.page-title.sm { font-size: 17px; }

.icon-btn {
    width: 38px; height: 38px; border-radius: 11px;
    border: 1px solid var(--line);
    background: #17171a;
    color: var(--sub);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:active { background: #202024; }

/* ---------- 通用卡片 ---------- */
.card {
    background: linear-gradient(180deg, #151518 0%, #121214 100%);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 14px;
}

.muted { color: var(--muted); }
.gold { color: var(--gold); }
.small { font-size: 12px; }

/* ---------- 公告 ---------- */
.notice {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    background: linear-gradient(90deg, rgba(232, 200, 126, .1), rgba(232, 200, 126, .02));
    border: 1px solid rgba(232, 200, 126, .22);
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
}
.notice .horn { flex: none; color: var(--gold); display: flex; }
.notice .horn svg { width: 17px; height: 17px; }
.notice-text {
    flex: 1; min-width: 0;
    font-size: 12.5px; color: #efe4c8;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notice-close { flex: none; color: var(--muted); font-size: 15px; background: none; border: 0; padding: 0 2px; }

/* ---------- 首图 ---------- */
.hero {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #2c2822;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(232, 200, 126, .06);
    margin-bottom: 14px;
    background: #191612;
}
.hero img { width: 100%; height: auto; }

.hero-art { position: relative; aspect-ratio: 1000 / 620; }
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(60% 80% at 72% 18%, rgba(232, 200, 126, .24), transparent 62%),
        radial-gradient(50% 70% at 18% 92%, rgba(140, 92, 40, .22), transparent 65%),
        linear-gradient(150deg, #211b13 0%, #16120e 46%, #0e0c0a 100%);
}
.hero-bg::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(115deg, rgba(232, 200, 126, .045) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(25deg, rgba(232, 200, 126, .03) 0 1px, transparent 1px 22px);
    mask-image: radial-gradient(80% 80% at 50% 50%, #000 30%, transparent 100%);
}
.hero-bg::after {
    content: ""; position: absolute;
    width: 62%; aspect-ratio: 1; right: -8%; bottom: -16%;
    border-radius: 50%;
    border: 1px solid rgba(232, 200, 126, .2);
    box-shadow: 0 0 0 26px rgba(232, 200, 126, .035), 0 0 0 54px rgba(232, 200, 126, .02);
}
.hero-content {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 0 26px;
}
.hero-mark {
    width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid rgba(232, 200, 126, .4);
    background: rgba(232, 200, 126, .08);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.hero-mark svg { width: 22px; height: 22px; }
.hero-name { font-size: 30px; font-weight: 700; letter-spacing: 7px; color: #f2e3c2; }
.hero-line { width: 34px; height: 2px; background: linear-gradient(90deg, #e8c87e, rgba(232, 200, 126, 0)); margin: 11px 0 10px; }
.hero-sub { font-size: 11px; letter-spacing: 2.5px; color: #a89a7d; }

/* ---------- 区块按钮 ---------- */
.section-pill {
    display: flex; align-items: center;
    padding: 13px 18px;
    border: 1px solid #2e2b24;
    background: linear-gradient(180deg, #1b1a18, #141413);
    border-radius: 12px;
    margin: 0 0 14px;
    font-size: 14px; color: #e6ddc8; font-weight: 500;
    letter-spacing: .5px;
}

/* ---------- 赛事列表 ---------- */
.match-list { display: flex; flex-direction: column; gap: 12px; }
.match-card {
    display: flex; align-items: center; gap: 12px;
    padding: 13px;
    border-radius: var(--radius);
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, #16161a 0%, #121214 100%);
    position: relative;
    overflow: hidden;
}
.match-card::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(120% 100% at 0% 0%, rgba(232, 200, 126, .05), transparent 55%);
    pointer-events: none;
}
.match-icon {
    flex: none; width: 48px; height: 48px; border-radius: 13px;
    background: linear-gradient(160deg, #232019, #17150f);
    border: 1px solid #332d20;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
}
.match-icon svg { width: 22px; height: 22px; }
.match-body { flex: 1; min-width: 0; }
.match-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 15.5px; font-weight: 600; color: #f7f1e3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.match-title .crown { color: var(--gold); flex: none; display: flex; }
.match-title .crown svg { width: 15px; height: 15px; }
.badge {
    flex: none;
    font-size: 10.5px; padding: 2px 7px; border-radius: 5px;
    border: 1px solid #6d5120;
    color: #f3cf8c;
    background: rgba(232, 200, 126, .1);
    font-weight: 500;
}
.badge.grey { border-color: #35353a; color: #a6a199; background: #1c1c20; }
.match-meta {
    display: flex; align-items: center; gap: 8px;
    margin-top: 6px; color: var(--muted); font-size: 11.5px;
}
.match-meta .dot { width: 2px; height: 2px; border-radius: 50%; background: #4a4740; }
.match-meta svg { width: 12px; height: 12px; vertical-align: -2px; }
.match-arrow { color: #55514a; flex: none; display: flex; }
.match-arrow svg { width: 16px; height: 16px; }

/* ---------- 排行榜 ---------- */
.myrank {
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, #16161a 0%, #111113 100%);
}
.myrank-head { display: flex; align-items: center; justify-content: space-between; }
.myrank-title { font-size: 14px; font-weight: 600; }
.myrank-time { font-size: 10.5px; color: var(--muted); }
.myrank-body { display: flex; align-items: stretch; margin-top: 12px; }
.myrank-cell { flex: 1; text-align: center; }
.myrank-divider { width: 1px; background: #2a2a2e; margin: 6px 0; }
.myrank-num { font-size: 34px; font-weight: 700; color: var(--gold); letter-spacing: 1px; line-height: 1.1; }
.myrank-label { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

.filters { display: flex; gap: 10px; margin-bottom: 14px; }
.select-pill {
    flex: 1; position: relative;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 14px; height: 46px;
    border: 1px solid var(--line); border-radius: 11px;
    background: #151517;
    font-size: 13px; color: #ded6c6;
}
.select-pill select {
    position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%;
    border: 0; appearance: none; background: transparent; color: transparent;
}
.select-pill .chev { color: #6f6a60; display: flex; }
.select-pill .chev svg { width: 14px; height: 14px; }
.select-pill .label { pointer-events: none; }
.select-pill .value { color: var(--gold); font-weight: 500; }

.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, #151517, #121213);
    position: relative; overflow: hidden;
}
.rank-item.top1 {
    background: linear-gradient(100deg, #3a2c14 0%, #221a0e 42%, #141414 78%);
    border-color: #5b4720;
}
.rank-item.top2 {
    background: linear-gradient(100deg, #2b2b2e 0%, #1b1b1e 46%, #141414 80%);
    border-color: #3b3b40;
}
.rank-item.top3 {
    background: linear-gradient(100deg, #33261a 0%, #1e1811 46%, #141414 80%);
    border-color: #4a3823;
}
.rank-no {
    flex: none; width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 700; color: #d8d2c4;
    background: #232326;
}
.rank-item.top1 .rank-no { background: linear-gradient(160deg, #f0d79c, #c9a45c); color: #2a1f08; }
.rank-item.top2 .rank-no { background: linear-gradient(160deg, #e6e6e6, #b7b7b7); color: #242424; }
.rank-item.top3 .rank-no { background: linear-gradient(160deg, #e5b184, #b97d4c); color: #2a1a0c; }
.rank-avatar {
    flex: none; width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #2a2a2e; color: #e9e1d2;
    font-size: 16px; font-weight: 600;
    overflow: hidden; position: relative;
}
.rank-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rank-avatar .medal {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 30% 25%, #f6dda5, #c99b4f);
    color: #3a2a0b;
}
.rank-avatar .medal svg { width: 20px; height: 20px; }
.rank-main { flex: 1; min-width: 0; }
.rank-name { font-size: 14.5px; font-weight: 600; color: #f6f0e2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-sub { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.lv-chip {
    font-size: 10px; padding: 1px 7px; border-radius: 4px;
    background: #2b2b2f; color: #c8c2b4;
    border: 1px solid #34343a;
    white-space: nowrap;
}
.lv-chip.gold { background: rgba(232, 200, 126, .16); border-color: rgba(232, 200, 126, .35); color: #f0d9a4; }
.lv-chip.platinum { background: rgba(190, 206, 222, .12); border-color: rgba(190, 206, 222, .3); color: #d6e2ee; }
.lv-chip.diamond { background: rgba(140, 190, 255, .12); border-color: rgba(140, 190, 255, .3); color: #c0dcff; }
.lv-chip.star { background: rgba(200, 160, 255, .13); border-color: rgba(200, 160, 255, .3); color: #e0ccff; }
.lv-chip.king { background: linear-gradient(135deg, #f0d79c, #c9a45c); border: 0; color: #2a1f08; }
.rank-mini { font-size: 10.5px; color: var(--muted); }
.rank-score { flex: none; font-size: 21px; font-weight: 700; color: #efd9a4; padding-left: 6px; }
.rank-item.top1 .rank-score { color: #f2cf8a; }

/* ---------- 对局记录 ---------- */
.stats-card { padding: 16px 8px; }
.stats-row { display: flex; align-items: stretch; }
.stat-cell { flex: 1; text-align: center; position: relative; }
.stat-cell + .stat-cell::before {
    content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: #26262a;
}
.stat-num { font-size: 24px; font-weight: 700; color: var(--gold); line-height: 1.15; }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; }

.record-list { display: flex; flex-direction: column; gap: 10px; }
.record {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, #151517, #121213);
}
.record-left { flex: none; width: 46px; text-align: center; }
.record-date { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.result-tag {
    display: inline-block; width: 32px; height: 26px; line-height: 26px;
    border-radius: 6px; font-size: 12px; font-weight: 600;
    background: rgba(126, 190, 150, .12); color: #8fd3a6; border: 1px solid rgba(126, 190, 150, .25);
}
.result-tag.lose { background: rgba(224, 112, 112, .1); color: #e08d8d; border-color: rgba(224, 112, 112, .22); }
.record-main { flex: 1; min-width: 0; }
.record-title { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: #f4eee0; }
.record-title .crown { color: var(--gold); display: flex; flex: none; }
.record-title .crown svg { width: 13px; height: 13px; }
.record-sub { margin-top: 6px; font-size: 11.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.record-right { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.rank-pill {
    font-size: 11px; padding: 2px 8px; border-radius: 5px;
    border: 1px solid #5d4a24; color: #ecd39c; background: rgba(232, 200, 126, .08);
}
.rank-pill.win { background: linear-gradient(135deg, #f2d89d, #c9a45c); color: #2a1f08; border: 0; font-weight: 600; }
.reward-line { font-size: 11px; color: var(--muted); }
.reward-line b { color: #efd9a4; font-size: 14px; font-weight: 600; }

/* ---------- 我的 ---------- */
.profile-card { padding: 0; overflow: hidden; }
.profile-top {
    position: relative;
    padding: 18px 16px 20px;
    background:
        radial-gradient(90% 100% at 50% 0%, rgba(232, 200, 126, .13), rgba(20, 20, 22, 0) 62%),
        linear-gradient(180deg, #191817, #121214);
    text-align: center;
}
.profile-tools { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
.profile-tools .icon-btn { width: 32px; height: 32px; border-radius: 9px; }
.profile-tools .icon-btn svg { width: 15px; height: 15px; }
.avatar-wrap { position: relative; width: 96px; height: 96px; margin: 14px auto 12px; }
.avatar-ring {
    width: 96px; height: 96px; border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 210deg, #f6e0ae, #c79f52 35%, #8c6b2f 55%, #f0d79c 80%, #c79f52);
    box-shadow: 0 0 26px rgba(232, 200, 126, .18);
}
.avatar-inner {
    width: 100%; height: 100%; border-radius: 50%;
    background: #232326; display: flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 600; color: #f1e6cd; overflow: hidden;
}
.avatar-inner img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit {
    position: absolute; right: -2px; bottom: 4px;
    font-size: 9.5px; padding: 2px 7px; border-radius: 20px;
    background: #2b2b2f; border: 1px solid #3a3a40; color: #cfc8b8;
}
.profile-name { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.profile-id { margin-top: 6px; font-size: 12px; color: var(--muted); }

.asset-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.asset-title { font-size: 15px; font-weight: 600; }
.asset-more { font-size: 11.5px; color: var(--gold); display: flex; align-items: center; gap: 2px; }
.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.asset-tile {
    background: #1b1b1e;
    border: 1px solid #2a2a2e;
    border-radius: 11px;
    padding: 13px 10px;
    text-align: center;
}
.asset-tile .k { font-size: 11px; color: var(--muted); }
.asset-tile .v { margin-top: 6px; font-size: 20px; font-weight: 700; color: #f3e7cd; }
.asset-tile.wide { grid-column: span 1; }

.gold-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 48px; border: 0; border-radius: 11px;
    background: linear-gradient(140deg, #f5e0b0, #e3c07c 45%, #c9a45c);
    color: #2a1e07; font-size: 15px; font-weight: 700; letter-spacing: 2px;
    margin-top: 14px; cursor: pointer;
    box-shadow: 0 8px 22px rgba(201, 164, 92, .18);
}
.gold-btn:disabled { opacity: .55; box-shadow: none; }
.ghost-btn {
    display: flex; align-items: center; justify-content: center;
    height: 48px; border-radius: 11px; border: 1px solid #34343a;
    background: #17171a; color: #ded6c6; font-size: 14px; cursor: pointer;
}

.menu-card { padding: 0; overflow: hidden; }
.menu-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #1f1f23;
    cursor: pointer;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item .label { font-size: 14px; color: #e9e2d3; }
.menu-item .chev { color: #5a564e; display: flex; }
.menu-item .chev svg { width: 15px; height: 15px; }

/* ---------- 赛事详情 ---------- */
.detail-nav {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: center;
    padding: 14px 16px;
    background: rgba(11, 11, 12, .88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #1c1c1f;
}
.detail-nav .back {
    position: absolute; left: 14px;
    width: 34px; height: 34px; border-radius: 10px;
    border: 1px solid var(--line); background: #17171a; color: #d6cfc0;
    display: flex; align-items: center; justify-content: center;
}
.detail-nav .back svg { width: 16px; height: 16px; }
.detail-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.detail-title .crown { color: var(--gold); display: flex; }
.detail-title .crown svg { width: 14px; height: 14px; }

.info-card { padding: 16px; }
.info-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #1f1f23; }
.info-rows { padding-top: 4px; }
.info-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #1f1f23;
    font-size: 13px;
}
.info-row:last-child { border-bottom: 0; }
.info-row .k { color: #9d978a; }
.info-row .v { color: #eee6d6; font-weight: 500; text-align: right; }

.players-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.players-head .bar { width: 3px; height: 15px; border-radius: 2px; background: var(--gold); }
.players-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.players-note { font-size: 11px; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }
.player-row {
    display: flex; align-items: center; gap: 10px;
    padding: 12px;
    border: 1px solid #232327;
    border-radius: 12px;
    background: #151517;
    margin-bottom: 9px;
}
.player-rank {
    flex: none; width: 24px; text-align: center; color: #6d685e; font-size: 13px; font-weight: 600;
}
.player-rank.dash { color: #4d4a44; }
.player-avatar {
    flex: none; width: 42px; height: 42px; border-radius: 50%;
    background: #2a2a2e; color: #e7dfd0;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 600; overflow: hidden;
}
.player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-info { flex: 1; min-width: 0; }
.player-name { font-size: 14px; font-weight: 600; color: #f4eee0; }
.player-id { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.player-state { font-size: 10.5px; color: #6f6a60; margin-top: 3px; }
.player-right { flex: none; text-align: right; font-size: 10.5px; color: var(--muted); line-height: 1.7; }
.player-right b { display: block; color: #e9d9b4; font-size: 12px; font-weight: 600; }
.player-right .ticket b { color: #efd9a4; }

.bottom-bar {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: 0; width: 100%; max-width: 480px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    display: flex; gap: 10px;
    background: rgba(10, 10, 11, .94);
    backdrop-filter: blur(16px);
    border-top: 1px solid #1d1d20;
    z-index: 30;
}
.bottom-bar .ghost-btn { flex: 1; height: 46px; }
.bottom-bar .gold-btn { flex: 1.6; margin: 0; height: 46px; letter-spacing: 1px; font-size: 14px; }

/* ---------- 弹层 ---------- */
.overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(3px);
    display: flex; align-items: flex-end; justify-content: center;
    animation: fade .18s ease;
}
.modal {
    width: 100%; max-width: 480px;
    background: #141416;
    border: 1px solid #2a2a2e;
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    max-height: 88vh; overflow-y: auto;
    animation: up .24s ease;
}
.modal.center {
    border-radius: 20px; border-bottom: 1px solid #2a2a2e;
    margin: auto 16px; width: calc(100% - 32px); max-width: 420px;
    padding-bottom: 20px;
    animation: fade .2s ease;
}
@keyframes up { from { transform: translateY(30px); opacity: .4; } to { transform: none; opacity: 1; } }

.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-title { font-size: 16px; font-weight: 600; }
.modal-close { background: none; border: 0; color: #7d786e; font-size: 20px; line-height: 1; padding: 2px 6px; }
.modal-sub { font-size: 12px; color: var(--muted); margin-bottom: 14px; line-height: 1.7; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.input {
    width: 100%; height: 44px; border-radius: 10px;
    border: 1px solid #2a2a2e; background: #0f0f11;
    color: var(--text); padding: 0 13px; font-size: 14px; outline: none;
}
.input:focus { border-color: #5c4b28; }

/* 选座 */
.seat-wrap {
    display: flex; justify-content: center;
    padding: 6px 4px 18px;
}
.seat-map {
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1 / 1.02;
}
.seat-table {
    position: absolute; inset: 24% 18%;
    border-radius: 50%;
    background:
        radial-gradient(70% 70% at 45% 30%, #2c2019 0%, #1a1310 60%, #120d0b 100%);
    border: 1px solid #3a2c20;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, .6), 0 0 0 6px #17110e, 0 0 0 7px #2a2119;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    color: #b8a37a;
}
.seat-table .brand-mini { font-size: 12px; letter-spacing: 3px; color: #c9a45c; }
.seat-table .hint { font-size: 10px; color: #6e6252; margin-top: 5px; }

.seat {
    position: absolute;
    width: 46px; height: 46px;
    margin: -23px 0 0 -23px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
    border: 1px solid #34343a;
    background: #1d1d21;
    color: #b7b1a4;
    cursor: pointer;
    transition: transform .12s ease, border-color .12s ease;
}
.seat .seat-no { font-size: 12px; }
.seat.free { border-color: #4c4128; color: #cdb47c; background: #1b1813; }
.seat.free:active { transform: scale(.94); }
.seat.taken { background: #171719; color: #5c584f; border-color: #26262a; cursor: not-allowed; }
.seat.mine { border-color: #e8c87e; color: #f5e2b5; background: rgba(232, 200, 126, .12); }
.seat.selected {
    border-color: #f3dca4;
    background: linear-gradient(145deg, #f3dca4, #c9a45c);
    color: #2a1f08;
    box-shadow: 0 0 0 3px rgba(232, 200, 126, .18), 0 6px 16px rgba(201, 164, 92, .3);
}
.seat small { display: block; font-size: 9px; font-weight: 400; }
.seat-label {
    position: absolute; left: 50%; transform: translateX(-50%);
    bottom: -16px; font-size: 9px; color: #8a8478; white-space: nowrap;
}
.seat-legend { display: flex; justify-content: center; gap: 16px; font-size: 11px; color: var(--muted); margin-bottom: 16px; }
.seat-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.seat-legend .f { background: #1b1813; border: 1px solid #4c4128; }
.seat-legend .t { background: #171719; border: 1px solid #26262a; }
.seat-legend .s { background: linear-gradient(145deg, #f3dca4, #c9a45c); }

/* 空状态 */
.empty {
    padding: 46px 20px; text-align: center; color: var(--muted); font-size: 13px;
}
.empty .big { font-size: 15px; color: #cfc7b7; margin-bottom: 6px; }

/* Toast */
.toast {
    position: fixed; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(.96);
    background: rgba(28, 28, 31, .96);
    border: 1px solid #3a3a40;
    color: #f1e9d8;
    padding: 11px 18px; border-radius: 10px;
    font-size: 13px; max-width: 74vw; text-align: center;
    opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
    z-index: 300; line-height: 1.6;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* 底部导航 */
.tabbar {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: 0; width: 100%; max-width: 480px;
    display: flex; z-index: 50;
    background: rgba(10, 10, 11, .94);
    backdrop-filter: blur(16px);
    border-top: 1px solid #1d1d20;
    padding-bottom: env(safe-area-inset-bottom);
}
.tabbar.hidden { display: none; }
.tab {
    flex: 1; position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 10px 0 9px;
    color: #6f6a60; font-size: 10.5px;
}
.tab svg { width: 21px; height: 21px; }
.tab.active { color: var(--gold); }
.tab.active::before {
    content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
    width: 34px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, rgba(232, 200, 126, 0), #e8c87e, rgba(232, 200, 126, 0));
}

/* 登录 */
.login {
    min-height: 100vh;
    padding: 0 26px;
    display: flex; flex-direction: column; justify-content: center;
    background:
        radial-gradient(90% 50% at 50% 0%, rgba(232, 200, 126, .1), transparent 62%),
        radial-gradient(60% 40% at 50% 100%, rgba(232, 200, 126, .05), transparent 70%);
    position: relative;
}
.login-brand { text-align: center; margin-bottom: 34px; }
.login-mark {
    width: 74px; height: 74px; margin: 0 auto 16px;
    border-radius: 22px;
    background: linear-gradient(150deg, #f5e0b0, #d9b878 50%, #b78f4c);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 16px 40px rgba(201, 164, 92, .22);
    color: #241a07;
}
.login-mark svg { width: 38px; height: 38px; }
.login-title { font-size: 23px; font-weight: 700; letter-spacing: 3px; }
.login-sub { margin-top: 7px; font-size: 12px; color: var(--muted); letter-spacing: 2px; }
.login-card {
    background: linear-gradient(180deg, #171719, #121214);
    border: 1px solid #26262a;
    border-radius: 18px;
    padding: 22px 18px;
}
.login-btn {
    width: 100%; height: 48px; margin-top: 20px;
    border: 0; border-radius: 11px;
    background: linear-gradient(140deg, #f5e0b0, #e3c07c 45%, #c9a45c);
    color: #2a1e07; font-size: 15px; font-weight: 700; letter-spacing: 3px;
    cursor: pointer;
}
.login-btn:disabled { opacity: .6; }
.login-note { margin-top: 18px; font-size: 11px; color: #6f6a60; line-height: 1.8; text-align: center; }
.login-tip { margin-top: 12px; font-size: 11px; color: #8a7a55; text-align: center; }

/* 富文本段落 */
.article { font-size: 13.5px; line-height: 2; color: #cdc6b8; }
.article h3 { color: var(--text); font-size: 14.5px; margin: 18px 0 8px; }
.article p { margin: 0 0 10px; }
.article ul { padding-left: 18px; margin: 0 0 12px; }
.article li { margin-bottom: 6px; }
.level-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 10px 0 16px; }
.level-table th, .level-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #222226; }
.level-table th { color: var(--muted); font-weight: 500; }
.level-table .gold { color: var(--gold); }

.announce-item { padding: 15px 0; border-bottom: 1px solid #1f1f23; }
.announce-item:last-child { border-bottom: 0; }
.announce-item .t { font-size: 14px; font-weight: 600; color: #f1eadb; margin-bottom: 7px; }
.announce-item .d { font-size: 10.5px; color: var(--muted); margin-bottom: 8px; }
.announce-item .c { font-size: 12.5px; color: #b6afa1; line-height: 1.9; white-space: pre-wrap; }

/* 资产明细 */
.ledger-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #1f1f23; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .l { font-size: 12.5px; color: #ddd5c7; }
.ledger-row .s { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.ledger-row .r { font-size: 15px; font-weight: 600; }
.ledger-row .r.pos { color: #8fd3a6; }
.ledger-row .r.neg { color: #e08d8d; }

@media (min-width: 520px) {
    body { background: #050506; }
    .app { border-left: 1px solid #18181b; border-right: 1px solid #18181b; }
}

/* ---------- 可配置图片与内容 ---------- */
.hero-cover { position: relative; }
.hero-cover > img { display: block; width: 100%; height: auto; min-height: 150px; object-fit: cover; }
.hero-cover-mask {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    background: linear-gradient(90deg, rgba(8, 8, 8, .74), rgba(8, 8, 8, .12));
}
.hero-cover .hero-content { position: static; padding: 0 24px; }
.hero-note { margin-top: 10px; font-size: 11px; letter-spacing: 1.5px; color: #cab98f; }

.login-mark.has-img { padding: 0; overflow: hidden; background: #121110; }
.login-mark.has-img img { width: 100%; height: 100%; object-fit: cover; }

.poster-card { border-radius: 16px; overflow: hidden; border: 1px solid #2c2822; margin-bottom: 12px; background: #151310; }
.poster-card img { display: block; width: 100%; height: auto; }

.store-qr { text-align: center; margin: 8px 0 16px; }
.store-qr img { width: 150px; height: 150px; object-fit: cover; border-radius: 12px; border: 1px solid #2e2b24; background: #fff; padding: 6px; }
.store-qr .s { margin-top: 6px; font-size: 11px; color: var(--muted); }
