/* =========================================================
   星耀游戏平台 · 前台样式
   ========================================================= */
:root {
    --bg: #070a14;
    --bg-2: #0b1020;
    --panel: #101728;
    --panel-2: #141e34;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #eef3ff;
    --muted: #8b9ab8;
    --primary: #7c5cff;
    --primary-2: #a78bfa;
    --cyan: #22d3ee;
    --gold: #fbbf24;
    --green: #34d399;
    --red: #fb7185;
    --radius: 18px;
    --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

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

body {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(1100px 620px at 82% -10%, rgba(124, 92, 255, .22), transparent 60%),
        radial-gradient(900px 520px at 8% 6%, rgba(34, 211, 238, .12), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

[v-cloak] { display: none !important; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 12px; letter-spacing: .2px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.accent { color: var(--cyan); }
.danger-text { color: var(--red); }

/* ---------------- 启动屏 ---------------- */
.boot-screen {
    position: fixed; inset: 0; z-index: 999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--bg);
}
.boot-logo {
    width: 76px; height: 76px; border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 18px 50px rgba(124, 92, 255, .45);
    animation: pulse 1.6s ease-in-out infinite;
}
.boot-text { margin-top: 18px; color: var(--muted); font-size: 13px; letter-spacing: 2px; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ---------------- 顶栏 ---------------- */
.topbar {
    position: sticky; top: 0; z-index: 60;
    background: rgba(7, 10, 20, .78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    display: flex; align-items: center; gap: 22px; height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--primary) 10%, var(--cyan) 110%);
    box-shadow: 0 10px 26px rgba(124, 92, 255, .4);
}
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 16px; letter-spacing: .5px; }
.brand-text small { font-size: 9px; color: var(--muted); letter-spacing: 2.4px; }

.nav-tabs { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; }
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab {
    position: relative; padding: 8px 14px; border: 0; background: transparent;
    color: var(--muted); font-size: 14px; border-radius: 10px; white-space: nowrap;
    transition: color .2s, background .2s;
}
.nav-tab:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-tab.active { color: #fff; }
.nav-tab.active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
    border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--cyan));
    box-shadow: 0 0 12px rgba(124, 92, 255, .8);
}

.search-box {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0;
    width: 260px; padding: 4px 4px 4px 14px;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
    border-radius: 12px; transition: border-color .2s, background .2s;
}
.search-box:focus-within { border-color: rgba(124, 92, 255, .6); background: rgba(124, 92, 255, .08); }
.search-box input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    color: var(--text); font-size: 13px;
}
.search-box input::placeholder { color: #697793; }
.search-box button {
    border: 0; border-radius: 9px; padding: 7px 14px; font-size: 12px; color: #fff;
    background: linear-gradient(135deg, var(--primary), #5b8cff);
}

/* ---------------- 顶部帮助链接 ---------------- */
.top-links { display: flex; align-items: center; gap: 20px; margin-left: auto; flex-shrink: 0; }
.top-link {
    display: inline-flex; align-items: center; text-decoration: none;
    color: #c9d4ee; font-size: 14px;
    padding: 6px 2px; white-space: nowrap; transition: color .2s;
}
.top-link:hover { color: #fff; }

/* ---------------- 通知 ---------------- */
.notice-area { position: relative; flex-shrink: 0; }
.notice-btn {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04); color: #c9d4ee; cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.notice-btn:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .07); color: #fff; }
.notice-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(124, 92, 255, .12); }
.notice-badge {
    position: absolute; top: -4px; right: -4px; background: linear-gradient(135deg, #ff5d73, #ff8a4c);
    color: #fff; font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 8px;
    line-height: 1; letter-spacing: .5px;
}
.notice-unread-badge {
    position: absolute; top: 1px; right: 1px; width: 9px; height: 9px;
    border-radius: 50%; background: #ff4d67; box-shadow: 0 0 0 2px #0b1020;
}
.notice-unread {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: #ff4d67; margin-left: 6px; vertical-align: middle;
}
.notice-popup {
    /* 固定显示在屏幕右上角，宽度为屏幕一半、高度为屏幕 2/3，左右分栏 */
    position: fixed; right: 16px; top: 84px;
    width: 50vw; height: 66.67vh; max-height: calc(100vh - 100px);
    background: #121a2e; border: 1px solid var(--line-strong); border-radius: 14px;
    box-shadow: var(--shadow); z-index: 70; overflow: hidden;
    animation: dropIn .18s ease; display: flex; flex-direction: column;
}
.notice-popup-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.notice-popup-head h3 { font-size: 14px; font-weight: 600; color: #fff; margin: 0; }
.notice-refresh { background: none; border: none; color: #7c5cff; font-size: 12px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.notice-refresh:hover { background: rgba(124, 92, 255, .12); }
.notice-head-actions { display: flex; align-items: center; gap: 4px; }
.notice-close { background: none; border: none; color: #8fa3c9; font-size: 12px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.notice-close:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.notice-body { flex: 1; display: flex; min-height: 0; }
.notice-side {
    width: 40%; max-width: 360px; min-width: 200px; flex-shrink: 0;
    overflow-y: auto; padding: 6px; border-right: 1px solid var(--line);
}
.notice-item {
    padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: background .18s;
}
.notice-item:hover { background: rgba(124, 92, 255, .1); }
.notice-item.active { background: rgba(124, 92, 255, .16); }
.notice-title-row { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 0; }
.notice-title-row b { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-time { font-size: 11px; color: #6b7d9e; flex-shrink: 0; margin-left: 10px; }
.notice-type { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.notice-type.type-1 { background: rgba(79, 139, 255, .18); color: #7eacff; }
.notice-type.type-2 { background: rgba(255, 156, 68, .18); color: #ff9c44; }
.notice-type.type-3 { background: rgba(124, 92, 255, .18); color: #9d87ff; }
.notice-type.type-4 { background: rgba(34, 211, 238, .18); color: #67e8f9; }
.notice-empty { padding: 40px 20px; text-align: center; color: #6b7d9e; font-size: 13px; }
.notice-detail { flex: 1; min-width: 0; overflow-y: auto; padding: 18px; }
.notice-detail h2 { font-size: 17px; font-weight: 600; color: #fff; margin: 4px 0 10px; }
.notice-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 12px; }
.notice-content { font-size: 14px; line-height: 1.8; color: #c9d4ee; white-space: pre-line; }
.notice-content p { margin: 0 0 12px; }
.notice-content a { color: #7c5cff; }
.notice-content img { max-width: 100%; border-radius: 8px; }
.notice-detail-empty { display: flex; align-items: center; justify-content: center; color: #6b7d9e; }
.notice-detail-empty p { font-size: 13px; margin: 0; }

/* 小屏幕下通知弹窗自适应 */
@media (max-width: 640px) {
    .notice-popup {
        width: calc(100vw - 24px); min-width: 0;
        height: 70vh; right: 12px; top: 78px;
    }
    .notice-side { width: 45%; min-width: 0; max-width: none; }
}

.user-area { position: relative; flex-shrink: 0; }
.user-chip {
    display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px;
    border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04);
    cursor: pointer; transition: border-color .2s, background .2s;
}
.user-chip:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .07); }
.avatar {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: #fff;
    background: linear-gradient(135deg, #7c5cff, #22d3ee);
    background-size: cover; background-position: center;
    overflow: hidden;
}
.avatar-lg { width: 64px; height: 64px; font-size: 24px; border-radius: 20px; }
.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-meta b { font-size: 13px; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { font-size: 11px; color: var(--cyan); }

.user-menu {
    position: absolute; right: 0; top: calc(100% + 10px); width: 170px;
    background: #121a2e; border: 1px solid var(--line-strong); border-radius: 14px;
    box-shadow: var(--shadow); padding: 6px; z-index: 70;
    animation: dropIn .18s ease;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.user-menu a {
    display: block; padding: 9px 12px; border-radius: 9px; font-size: 13px; color: #c9d4ee;
}
.user-menu a:hover { background: rgba(124, 92, 255, .16); color: #fff; }
.user-menu a.danger { color: var(--red); }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: 11px; padding: 11px 22px;
    font-size: 14px; font-weight: 600; color: #fff; transition: transform .18s, box-shadow .18s, background .2s, opacity .2s;
    white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4f8bff 90%);
    box-shadow: 0 10px 26px rgba(92, 120, 255, .4);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(92, 120, 255, .5); }
.btn-ghost {
    background: rgba(255, 255, 255, .06); border-color: var(--line-strong); color: var(--text);
}
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.link-btn {
    border: 0; background: transparent; color: var(--cyan); font-size: 13px; padding: 0;
}
.link-btn:hover { text-decoration: underline; }

/* ---------------- 主区域 ---------------- */
.main { padding-top: 28px; padding-bottom: 70px; min-height: 60vh; }

.section { margin-top: 46px; }
.section-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 20px;
}
.section-head h2 { font-size: 21px; margin: 0; letter-spacing: .4px; }
.section-head h2::before {
    content: ""; display: inline-block; width: 4px; height: 18px; margin-right: 10px;
    border-radius: 3px; background: linear-gradient(180deg, var(--primary), var(--cyan));
    vertical-align: -2px;
}
.section-sub { color: var(--muted); font-size: 13px; }

/* ---------------- 首页 Hero ---------------- */
.hero { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(270px, .95fr); gap: 18px; }
.hero-main {
    position: relative; min-height: 420px; border-radius: 24px; overflow: hidden;
    background-size: cover; background-position: center; cursor: pointer;
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.hero-main::after {
    content: ""; position: absolute; inset: 0; border-radius: 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(7, 10, 20, .96) 0%, rgba(7, 10, 20, .55) 52%, rgba(7, 10, 20, .18) 100%),
                linear-gradient(0deg, rgba(7, 10, 20, .9), transparent 55%);
}
.hero-content {
    position: absolute; left: 0; bottom: 0; padding: 44px; max-width: 640px; z-index: 2;
}
.hero-badge {
    display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 11px;
    letter-spacing: 1px; color: #dcd2ff;
    background: rgba(124, 92, 255, .22); border: 1px solid rgba(124, 92, 255, .5);
}
.hero-content h1 { font-size: 42px; margin: 14px 0 8px; line-height: 1.15; letter-spacing: 1px; }
.hero-content p { margin: 0 0 16px; color: #b9c5df; font-size: 15px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; }

.hero-side { display: flex; flex-direction: column; gap: 18px; }
.hero-mini {
    position: relative; flex: 1; min-height: 0; border-radius: 20px; overflow: hidden;
    background-size: cover; background-position: center; cursor: pointer;
    border: 1px solid var(--line); transition: transform .25s, border-color .25s;
}
.hero-mini:hover { transform: translateX(-4px); border-color: rgba(124, 92, 255, .5); }
.hero-mini-mask {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(7, 10, 20, .96) 0%, rgba(7, 10, 20, .28) 65%, transparent);
}
.hero-mini-body { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2; }
.hero-mini-body h3 { margin: 0 0 2px; font-size: 17px; }
.hero-mini-body p { margin: 0; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 游戏卡片 ---------------- */
.game-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 22px;
}
.game-card {
    background: linear-gradient(180deg, rgba(20, 30, 52, .85), rgba(14, 20, 36, .95));
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    cursor: pointer; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.game-card:hover {
    transform: translateY(-6px); border-color: rgba(124, 92, 255, .55);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(124, 92, 255, .18);
}
.game-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0d1426; }
.cover-fallback {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 46px; font-weight: 800; color: rgba(255, 255, 255, .1);
    background: radial-gradient(circle at 30% 20%, rgba(124, 92, 255, .4), transparent 60%), #0f1730;
}
.game-cover img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform .45s ease;
}
.game-card:hover .game-cover img { transform: scale(1.06); }
.badge-hot, .badge-rank {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    padding: 3px 9px; border-radius: 7px; font-size: 11px; font-weight: 600;
}
.badge-hot { background: linear-gradient(135deg, #ff7a59, #ff3d71); color: #fff; box-shadow: 0 4px 14px rgba(255, 61, 113, .4); }
.badge-rank { background: rgba(7, 10, 20, .68); color: var(--gold); border: 1px solid rgba(251, 191, 36, .35); }
.cover-mask {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    background: rgba(7, 10, 20, .55); opacity: 0; transition: opacity .25s;
}
.game-card:hover .cover-mask { opacity: 1; }
.cover-mask span {
    padding: 8px 18px; border-radius: 999px; font-size: 12px; color: #fff;
    background: rgba(124, 92, 255, .82); box-shadow: 0 8px 20px rgba(124, 92, 255, .5);
}
.game-info { padding: 14px 16px 16px; }
.game-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.game-title-row h3 { margin: 0; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.game-sub {
    margin: 6px 0 10px; font-size: 12px; color: var(--muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    padding: 2px 8px; border-radius: 6px; font-size: 11px; color: #aeb9d6;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06);
}

/* ---------------- 游戏卡片：运行平台标识与操作 ---------------- */
.platform-badge {
    position: absolute; top: 10px; right: 10px; z-index: 3;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border-radius: 7px; font-size: 11px; font-weight: 600;
    color: #dbe4ff; background: rgba(7, 10, 20, .68);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.platform-badge svg { width: 12px; height: 12px; }
.platform-badge.pt-1 { color: #9dd0ff; }
.platform-badge.pt-3 { color: #86efac; }
.platform-badge.pt-4 { color: #fcd34d; }
.platform-badge.pt-2 { color: #c4b5fd; }

.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-btn {
    flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 10px; border-radius: 10px; font-size: 12px; line-height: 1;
    border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05);
    color: var(--text); transition: all .2s;
}
.card-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.card-btn:hover { border-color: rgba(124, 92, 255, .6); background: rgba(124, 92, 255, .16); }
.card-btn.primary {
    border-color: transparent; color: #fff;
    background: linear-gradient(135deg, var(--primary), #5f43f0);
    box-shadow: 0 6px 16px rgba(124, 92, 255, .32);
}
.card-btn.primary:hover { filter: brightness(1.08); }

/* ---------------- 板块 pill / 空态 ---------------- */
.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-pill {
    padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 13px;
    transition: all .2s;
}
.cat-pill:hover { color: var(--text); border-color: var(--line-strong); }
.cat-pill.active {
    color: #fff; border-color: transparent;
    background: linear-gradient(135deg, rgba(124, 92, 255, .95), rgba(34, 211, 238, .8));
    box-shadow: 0 8px 22px rgba(124, 92, 255, .35);
}
.empty {
    padding: 60px 20px; text-align: center; color: var(--muted);
    border: 1px dashed var(--line-strong); border-radius: var(--radius);
    background: rgba(255, 255, 255, .02);
}
.empty.small { padding: 26px 16px; font-size: 13px; }
.empty-icon {
    width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(124, 92, 255, .14); color: var(--primary-2); font-weight: 700;
}
.loading-row { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 50px 0; color: var(--muted); }
.load-more { display: flex; justify-content: center; margin-top: 28px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 28px; }
.pager-btn {
    min-width: 40px; padding: 8px 14px; border-radius: 10px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
    color: var(--muted); font-size: 13px; line-height: 1; transition: all .2s;
}
.pager-btn:hover:not(:disabled) { color: #fff; border-color: rgba(124, 92, 255, .6); background: rgba(124, 92, 255, .14); }
.pager-btn.active {
    color: #fff; border-color: transparent;
    background: linear-gradient(135deg, var(--primary), #5f43f0);
    box-shadow: 0 6px 16px rgba(124, 92, 255, .32);
}
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------------- 收藏 ---------------- */
.fav-btn { display: inline-flex; align-items: center; gap: 6px; }
.platform-pills { margin-bottom: 18px; }
.pay-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pay-badge {
    display: inline-flex; align-items: center; padding: 1px 8px;
    font-size: 11px; line-height: 18px; border-radius: 999px;
    border: 1px solid var(--line-strong); color: var(--muted); background: rgba(255, 255, 255, .04);
}
.pay-badge.cny { color: var(--green); border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .1); }
.pay-badge.chain { color: var(--gold); border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .1); }
.channel-logo.chain { background: rgba(251, 191, 36, .16); color: var(--gold); }.fav-btn.active {
    color: var(--gold); border-color: rgba(251, 191, 36, .45);
    background: rgba(251, 191, 36, .12);
}
.favorites-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.spinner {
    width: 18px; height: 18px; border-radius: 50%; display: inline-block;
    border: 2px solid rgba(124, 92, 255, .25); border-top-color: var(--primary);
    animation: spin .8s linear infinite;
}
.spinner.small { width: 14px; height: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 搜索页 ---------------- */
.search-section { margin-top: 8px; }
.search-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
    margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.search-head h2 { margin: 0 0 4px; font-size: 22px; }
.search-head p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------------- 游戏详情 ---------------- */
.detail-hero {
    position: relative; border-radius: 26px; overflow: hidden; padding: 30px;
    min-height: 340px; background-size: cover; background-position: center;
    border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between;
}
.back-btn {
    align-self: flex-start; border: 1px solid var(--line-strong); background: rgba(7, 10, 20, .5);
    color: #c8d3ec; padding: 7px 14px; border-radius: 999px; font-size: 12px;
    backdrop-filter: blur(6px);
}
.back-btn:hover { color: #fff; border-color: var(--primary); }
.detail-head { display: flex; align-items: flex-end; gap: 22px; margin-top: 40px; }
.detail-icon {
    width: 92px; height: 92px; border-radius: 24px; object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .14); box-shadow: 0 16px 34px rgba(0, 0, 0, .5);
    background: #0d1426;
}
.detail-info { flex: 1; min-width: 0; }
.detail-info h1 { margin: 0 0 6px; font-size: 34px; letter-spacing: 1px; }
.detail-info p { margin: 0 0 12px; color: #aab7d4; font-size: 14px; }
.detail-meta { display: flex; gap: 20px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.detail-actions { display: flex; gap: 12px; flex-shrink: 0; }

.detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; margin-top: 24px; }
.card {
    background: linear-gradient(180deg, rgba(20, 30, 52, .75), rgba(13, 19, 34, .9));
    border: 1px solid var(--line); border-radius: 20px; padding: 24px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h2 { margin: 0; font-size: 18px; }
.detail-main h2 { margin: 0 0 18px; font-size: 18px; }
.rich { color: #c3cee6; font-size: 14px; line-height: 1.9; }
.rich h3 { color: var(--text); font-size: 16px; margin: 24px 0 10px; }
.rich p { margin: 0 0 12px; }
.rich ul { margin: 0 0 14px; padding-left: 20px; }
.rich li { margin-bottom: 6px; }
.rich img { border-radius: 12px; margin: 12px 0; }

.detail-side h3 { margin: 0 0 14px; font-size: 16px; }
.notice-list { list-style: none; padding: 0; margin: 0 0 18px; }
.notice-list li {
    position: relative; padding-left: 16px; margin-bottom: 9px; color: var(--muted); font-size: 13px;
}
.notice-list li::before {
    content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
}
.side-cta {
    border-top: 1px solid var(--line); padding-top: 18px; text-align: center;
}
.side-cta p { margin: 0; color: var(--muted); font-size: 12px; }
.side-cta strong { display: block; font-size: 26px; margin: 4px 0 16px; color: var(--cyan); }

/* ---------------- 用户中心 ---------------- */
.user-gate { text-align: center; padding: 90px 20px; }
.user-gate h2 { margin: 0 0 8px; }
.user-gate p { color: var(--muted); margin: 0 0 22px; }

.uc-header {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 28px; border-radius: 24px; border: 1px solid var(--line);
    background:
        radial-gradient(600px 200px at 10% 0%, rgba(124, 92, 255, .25), transparent 65%),
        radial-gradient(500px 220px at 95% 20%, rgba(34, 211, 238, .12), transparent 60%),
        linear-gradient(180deg, rgba(20, 30, 52, .9), rgba(12, 18, 32, .95));
}
.uc-user { display: flex; align-items: center; gap: 18px; }
.uc-user h1 { margin: 0 0 4px; font-size: 24px; }
.uc-user p { margin: 0; color: var(--muted); font-size: 12px; }
.uc-user p.uc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.uc-user p.uc-reg { margin-top: 6px; }
.uid-label { color: var(--text); font-family: var(--mono, monospace); }
.uid-copy {
    padding: 3px 12px; border-radius: 999px; font-size: 11px; font-weight: 600;
    border: 1px solid var(--line-strong); background: rgba(124, 92, 255, .12);
    color: #c9bcff; cursor: pointer; transition: all .18s;
}
.uid-copy:hover { border-color: var(--primary); color: #fff; }
.uid-copy.copied { color: #7ff0c4; border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .15); }
.uc-stats { display: grid; grid-template-columns: repeat(4, minmax(90px, auto)); gap: 14px; }
.uc-stat {
    padding: 12px 18px; border-radius: 14px; background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line); min-width: 100px;
}
.uc-stat span { display: block; font-size: 11px; color: var(--muted); }
.uc-stat strong { font-size: 20px; color: var(--cyan); }

.alert {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px;
    margin-top: 18px; padding: 14px 18px; border-radius: 14px; font-size: 13px;
    border: 1px solid transparent;
}
.alert.danger { background: rgba(251, 113, 133, .1); border-color: rgba(251, 113, 133, .3); color: #ffc2cd; }
.alert.info { background: rgba(34, 211, 238, .08); border-color: rgba(34, 211, 238, .25); color: #a9ecf8; margin: 0 0 18px; }
.alert.success { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .3); color: #b7f7dc; margin: 0 0 18px; flex-direction: column; align-items: flex-start; }
.alert-actions { display: flex; gap: 16px; }

.uc-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; margin-top: 22px; }
.uc-side {
    align-self: start; display: flex; flex-direction: column; gap: 6px;
    padding: 12px; border-radius: 18px; border: 1px solid var(--line);
    background: rgba(16, 23, 40, .7);
}
.uc-side button {
    text-align: left; padding: 11px 16px; border: 0; border-radius: 11px;
    background: transparent; color: var(--muted); font-size: 14px; transition: all .18s;
}
.uc-side button:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.uc-side button.active {
    color: #fff; background: linear-gradient(135deg, rgba(124, 92, 255, .9), rgba(79, 139, 255, .75));
    box-shadow: 0 10px 24px rgba(124, 92, 255, .28);
}
.uc-side a {
    text-align: left; padding: 11px 16px; border-radius: 11px;
    color: var(--muted); font-size: 14px; text-decoration: none; transition: all .18s;
    border: 1px dashed rgba(124, 92, 255, .4); background: rgba(124, 92, 255, .07);
}
.uc-side a:hover { color: #fff; background: rgba(124, 92, 255, .18); }
.uc-body .card + .card { margin-top: 20px; }

.mini-list { display: flex; flex-direction: column; }
.mini-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.mini-row:last-child { border-bottom: 0; }
.mini-row b { display: block; font-size: 14px; }
.mini-row .muted { font-size: 12px; }
.pill {
    display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
    border: 1px solid transparent; white-space: nowrap;
}
.status-pending { color: #ffd479; background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .28); }
.status-gray { color: #aab6d2; background: rgba(255, 255, 255, .06); border-color: var(--line); }
.status-success { color: #7ff0c4; background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .3); }
.status-failed { color: #ffb3be; background: rgba(251, 113, 133, .12); border-color: rgba(251, 113, 133, .3); }
.status-refund { color: #c4b5fd; background: rgba(167, 139, 250, .14); border-color: rgba(167, 139, 250, .32); }

/* 充值 */
.amount-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.amount-item {
    padding: 16px 10px; border-radius: 14px; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03); color: var(--text); text-align: center;
    transition: all .18s;
}
.amount-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.amount-item.active {
    border-color: var(--primary); background: rgba(124, 92, 255, .16);
    box-shadow: 0 10px 26px rgba(124, 92, 255, .22);
}
.amount-item strong { display: block; font-size: 16px; }
.amount-item span { font-size: 11px; color: var(--muted); }

.field { margin-bottom: 16px; }
.field label, .field-label {
    display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
    width: 100%; padding: 11px 14px; border-radius: 11px;
    border: 1px solid var(--line); background: rgba(7, 10, 20, .6);
    color: var(--text); font-size: 14px; outline: 0; transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: rgba(124, 92, 255, .65); background: rgba(124, 92, 255, .07);
}
/* 下拉面板跟随深色主题 */
.field select { color-scheme: dark; }
.field select option {
    background: #0d1426;
    color: var(--text);
}
.field select option:checked,
.field select option:hover {
    background: #7c5cff linear-gradient(0deg, #7c5cff 0%, #7c5cff 100%);
    color: #fff;
}
.field input::placeholder { color: #5f6d8c; }
/* 文件选择控件：原生「选择文件」按钮统一深蓝底白字 */
input[type="file"] { color: var(--muted); }
input[type="file"]::file-selector-button {
    margin-right: 10px; padding: 8px 15px; border: 0; border-radius: 8px;
    background: #123a7a; color: #fff; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background .18s;
}
input[type="file"]::file-selector-button:hover { background: #17478f; }
input[type="file"]::-webkit-file-upload-button {
    margin-right: 10px; padding: 8px 15px; border: 0; border-radius: 8px;
    background: #123a7a; color: #fff; font-size: 13px; font-weight: 600;
    cursor: pointer;
}
input[type="file"]::-webkit-file-upload-button:hover { background: #17478f; }
.input-paste-wrap { position: relative; }
.input-paste-wrap input { padding-right: 76px; }
.input-paste-btn {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    padding: 5px 12px; border-radius: 8px; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 12px;
    transition: all .18s;
}
.input-paste-btn:hover { color: #fff; border-color: var(--primary); background: rgba(124, 92, 255, .16); }
.static-value {
    padding: 11px 14px; border-radius: 10px; border: 1px dashed var(--line);
    background: rgba(255, 255, 255, .02); color: var(--text); font-size: 14px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.verify-contact { margin-left: auto; font-size: 12px; color: var(--muted); }
.verify-contact b { color: var(--text); font-weight: 600; }
.verify-tabs { display: inline-flex; gap: 8px; margin: 16px 0 14px; padding: 4px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; }
.verify-tabs button {
    padding: 8px 22px; border: 0; border-radius: 9px; background: transparent;
    color: var(--muted); font-size: 13px; cursor: pointer; transition: color .18s, background .18s;
}
.verify-tabs button:hover { color: var(--text); }
.verify-tabs button.active { background: rgba(124, 92, 255, .18); color: #c4b5fd; font-weight: 600; }
.verify-upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 2px 0 16px; }
.verify-upload { min-width: 0; }
.verify-upload > label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.verify-upload-box {
    position: relative; display: flex; align-items: center; justify-content: center;
    height: 130px; border: 1px dashed var(--line); border-radius: 12px;
    background: rgba(255, 255, 255, .02); overflow: hidden; cursor: pointer;
    transition: border-color .18s, background .18s;
}
.verify-upload-box:hover { border-color: rgba(124, 92, 255, .55); background: rgba(124, 92, 255, .06); }
.verify-upload-box.has-image { border-style: solid; }
.verify-upload-box.is-busy { opacity: .6; cursor: default; }
.verify-upload-box img { width: 100%; height: 100%; object-fit: contain; display: block; background: #0b0b14; }
.verify-upload-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.verify-upload-empty svg { width: 26px; height: 26px; }
.verify-upload-replace {
    position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 7px;
    background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px;
}
.verify-upload-hint { margin: 6px 0 0; font-size: 11px; color: var(--muted); }
.verify-file-input { display: none; }
.verify-image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.verify-image-item {
    display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
    background: rgba(255, 255, 255, .02); text-decoration: none; transition: border-color .18s;
}
.verify-image-item img { display: block; width: 100%; height: 130px; object-fit: contain; background: #0b0b14; }
.verify-image-item span { display: block; padding: 7px 10px; font-size: 12px; color: var(--muted); text-align: center; }
.verify-image-item:hover { border-color: rgba(124, 92, 255, .5); }
@media (max-width: 720px) {
    .verify-upload-grid, .verify-image-grid { grid-template-columns: 1fr; }
}
.qq-group-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.qq-group-item {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 14px;
    cursor: pointer; transition: border-color .18s, background .18s, transform .18s;
}
.qq-group-item:hover, .qq-group-item:focus-visible {
    border-color: rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .07);
    outline: none; transform: translateY(-1px);
}
.qq-group-badge {
    width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .06); overflow: hidden;
}
.qq-group-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qq-group-main { flex: 1; min-width: 0; }
.qq-group-main b { display: block; font-size: 15px; word-break: break-all; }
.qq-group-main small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.qq-group-item .link-btn { flex-shrink: 0; }

.pay-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.channel {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
    color: var(--text); text-align: left; transition: all .18s;
}
.channel:hover:not(.disabled) { border-color: var(--line-strong); }
.channel.active { border-color: var(--primary); background: rgba(124, 92, 255, .14); }
.channel.disabled { opacity: .45; cursor: not-allowed; }
.channel span > small { display: block; font-size: 11px; color: var(--muted); }
.channel-logo {
    width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; flex-shrink: 0;
}
.channel-logo.wechat, .channel-logo.alipay { background: transparent; }
.channel-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.btn-logo { width: 36px; height: 36px; object-fit: contain; display: inline-block; flex-shrink: 0; }
.mock-circle.has-logo { width: 74px; height: 74px; border-radius: 50%; background: transparent; box-shadow: none; }
.mock-circle.has-logo img { width: 56px; height: 56px; object-fit: contain; display: block; }
.pay-summary {
    display: flex; align-items: center; justify-content: space-between; gap: 22px;
    padding: 18px 20px; border-radius: 16px; background: rgba(124, 92, 255, .08);
    border: 1px solid rgba(124, 92, 255, .22);
}
.pay-summary span { display: block; font-size: 11px; color: var(--muted); }
.pay-summary strong { font-size: 22px; }
.pay-summary .accent { color: var(--cyan); }

/* 游戏选择器 */
.game-picker {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px;
    max-height: 220px; overflow-y: auto; padding: 4px;
}
.picker-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px;
    border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
    color: var(--text); font-size: 13px; transition: all .18s;
}
.picker-item:hover { border-color: var(--line-strong); }
.picker-item.active { border-color: var(--primary); background: rgba(124, 92, 255, .16); }
.game-picker-tabs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px;
}
.game-picker-tabs .cat-pill { padding: 5px 14px; font-size: 12px; }
.picker-search {
    margin-left: auto; width: 220px; max-width: 100%; padding: 7px 14px;
    border-radius: 999px; border: 1px solid var(--line); outline: 0;
    background: rgba(7, 10, 20, .6); color: var(--text); font-size: 12px;
    transition: border-color .2s, background .2s;
}
.picker-search:focus { border-color: rgba(124, 92, 255, .65); background: rgba(124, 92, 255, .07); }
.picker-search::placeholder { color: #5f6d8c; }
.picker-icon {
    width: 32px; height: 32px; border-radius: 9px; background: #0d1426 center/cover no-repeat;
    flex-shrink: 0;
}
.quick-points { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.quick-points button {
    padding: 4px 12px; border-radius: 8px; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 12px;
}
.quick-points button:hover { color: #fff; border-color: var(--primary); }

/* 表格 / 订单 */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
    text-align: left; padding: 10px 12px; color: var(--muted); font-weight: 500;
    border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12px;
}
.data-table td { padding: 13px 12px; border-bottom: 1px solid rgba(255, 255, 255, .05); white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .025); }

.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
    padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
}
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.order-game { display: flex; align-items: center; gap: 12px; min-width: 0; }
.order-game b { display: block; font-size: 14px; }
.order-game .muted { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; max-width: 460px; }
.order-bottom { display: flex; gap: 20px; margin-top: 10px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.order-msg { margin-top: 8px; font-size: 12px; color: #ffc2cd; }
.order-actions { margin-top: 10px; }

/* ---------------- 页脚 ---------------- */
.footer { border-top: 1px solid var(--line); background: rgba(6, 9, 17, .8); padding: 30px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.footer b { font-size: 15px; }
.footer p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.footer-meta { display: flex; justify-content: center; gap: 18px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.footer-links { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-links-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 12px; font-size: 12px; }
.footer-links-label { color: var(--muted); margin-right: 2px; }
.footer-links a {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 120px; padding: 9px 16px;
    border: 1px solid var(--line); border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    color: var(--muted); text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.footer-link-icon { width: 22px; height: 22px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.footer-links a:hover { color: var(--text); border-color: rgba(124, 92, 255, .55); background: rgba(124, 92, 255, .08); }

/* ---------------- 弹窗 ---------------- */
.modal {
    position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
    background: rgba(4, 7, 15, .72); backdrop-filter: blur(6px); padding: 20px;
    animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-dialog {
    position: relative; width: 100%; max-width: 420px;
    background: linear-gradient(180deg, #131c31, #0d1424);
    border: 1px solid var(--line-strong); border-radius: 22px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .65); padding: 30px;
    animation: modalIn .22s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close {
    position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted);
    font-size: 18px; line-height: 1;
}
.modal-close:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.game-confirm-dialog { max-width: 360px; }
.game-confirm-actions { display: flex; gap: 12px; margin-top: 26px; }
.game-confirm-actions .btn { flex: 1; }
.login-head h2 { margin: 0 0 6px; font-size: 20px; }
.login-head p { margin: 0; color: var(--muted); font-size: 12px; }
.login-tabs { display: flex; gap: 8px; margin-top: 18px; padding: 4px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 12px; }
.login-tabs button {
    flex: 1; padding: 9px 0; border: 0; border-radius: 9px; background: transparent;
    color: var(--muted); font-size: 13px; transition: background .2s, color .2s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.tab-scan-icon { width: 16px; height: 16px; object-fit: contain; filter: brightness(0) invert(1); opacity: .85; }
.login-tabs button.active { background: linear-gradient(135deg, var(--primary), #5b8cff); color: #fff; }
.login-body { margin-top: 24px; min-height: 240px; display: flex; align-items: center; justify-content: center; }
.login-loading { display: flex; justify-content: center; width: 100%; }
.account-login { width: 100%; }
.account-login .form-item { margin-bottom: 14px; }
.account-login .form-item label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.account-login .form-item input {
    width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .05); color: var(--text); font-size: 14px; outline: 0;
    transition: border-color .2s, background .2s;
}
.account-login .form-item input:focus { border-color: rgba(124, 92, 255, .6); background: rgba(124, 92, 255, .08); }
.login-err { margin: 0 0 12px; color: var(--red); font-size: 12px; text-align: center; }
.btn-block { width: 100%; }
.login-switch { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.login-switch a { color: var(--primary-2); }
.account-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px;
    background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px;
}
.account-label { width: 64px; flex-shrink: 0; color: var(--muted); font-size: 12px; }
.account-row b { flex: 1; min-width: 0; font-size: 14px; word-break: break-all; }

.qr-wrap { width: 100%; text-align: center; position: relative; }
.login-qr-logo {
    position: absolute; left: 50%; top: 200px; transform: translate(-50%, -50%);
    width: 44px; height: 44px; padding: 3px; box-sizing: content-box;
    background: #fff; border-radius: 10px; object-fit: contain;
    pointer-events: none; z-index: 2;
}
.qr-box {
    position: relative; width: 196px; height: 196px; margin: 0 auto;
    background: #fff; border-radius: 14px; padding: 12px; box-sizing: content-box;
    display: flex; align-items: center; justify-content: center;
}
.qr-box img, .qr-box canvas { width: 196px !important; height: 196px !important; display: block; }
.qr-box.wx-qr {
    width: 300px; height: 400px; padding: 0; background: transparent; border-radius: 0;
}
.qr-box.wx-qr iframe { width: 300px; height: 400px; border: 0; display: block; }
.wx-fallback { padding: 24px 8px; }
.wx-fallback p { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.qr-mask.wx-mask { margin: -400px auto 0; width: 300px; height: 400px; }
.qr-mask {
    margin: -208px auto 12px; width: 220px; height: 220px; border-radius: 14px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    background: rgba(10, 15, 28, .92); position: relative; z-index: 3; padding: 20px;
}
.qr-mask p { margin: 0; font-size: 13px; color: #ffd479; }
.qr-tip { margin: 14px 0 0; font-size: 12px; color: var(--muted); }

.mock-login { text-align: center; }
.mock-circle {
    width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 16px 40px rgba(124, 92, 255, .4);
}
.mock-login p { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.login-success { text-align: center; }
.success-circle {
    width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #062b1c; background: linear-gradient(135deg, #6ee7b7, #34d399);
    box-shadow: 0 14px 34px rgba(52, 211, 153, .35);
}
.success-circle.big, .warn-circle.big { width: 74px; height: 74px; font-size: 32px; }
.warn-circle {
    width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: #3a2a00; background: linear-gradient(135deg, #fde68a, #fbbf24);
}
.login-error { text-align: center; color: var(--muted); font-size: 13px; }

.pay-head h2 { margin: 0 0 6px; font-size: 20px; }
.pay-head p { margin: 0; color: var(--muted); font-size: 12px; }
.pay-body { margin-top: 22px; text-align: center; }
.pay-body h3 { margin: 0 0 6px; font-size: 18px; }
.pay-body .btn { margin-top: 16px; }
.pay-qr { display: flex; justify-content: center; position: relative; }
.pay-qr-logo {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px; padding: 3px; box-sizing: content-box;
    background: #fff; border-radius: 10px; object-fit: contain;
}
.pay-chain { margin-top: 14px; text-align: left; }
.pay-chain .copy-input {
    display: flex; gap: 8px; margin-top: 10px;
}
.pay-chain .copy-input input {
    flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px;
    border: 1px solid var(--line-strong); background: rgba(10, 16, 30, .55);
    color: var(--text); font-size: 12px;
}
.pay-chain .btn { white-space: nowrap; }
.pay-chain .muted.small { margin: 10px 0 0; }
.pay-mock p { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.pay-status {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 18px; color: var(--muted); font-size: 13px;
}
.pay-body .muted.small { margin-top: 8px; }

/* ---------------- 虚拟币钱包 ---------------- */
.wallet-picked {
    display: flex; align-items: center; gap: 10px; margin: -6px 0 16px; padding: 10px 14px;
    border-radius: 12px; background: rgba(124, 92, 255, .08);
    border: 1px solid rgba(124, 92, 255, .2); font-size: 13px; color: var(--muted); flex-wrap: wrap;
}
.wallet-picked .link-btn { margin-left: auto; }
.wallet-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, .8); flex-shrink: 0;
}
.wallet-dialog { max-width: 460px; }
.wallet-list { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.wallet-item {
    display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
    color: var(--text); text-align: left; transition: all .18s;
}
.wallet-item:hover:not(:disabled) { border-color: var(--primary); background: rgba(124, 92, 255, .12); }
.wallet-item.active {
    border-color: var(--primary); background: rgba(124, 92, 255, .16);
    box-shadow: 0 0 0 1px rgba(124, 92, 255, .3) inset;
}
.wallet-item:disabled { opacity: .5; cursor: not-allowed; }
.wallet-logo {
    width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; background: transparent;
}
.wallet-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.wallet-name { flex: 1; min-width: 0; }
.wallet-name b { display: block; font-size: 14px; }
.wallet-name small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.wallet-state { font-size: 12px; color: var(--cyan); }
.wallet-error { margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; }
.wallet-tip { margin-top: 16px; }
.wallet-pay { margin-top: 6px; text-align: left; }
.wallet-pay-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); margin-bottom: 14px; }
.wallet-pay-state {
    display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px;
    background: rgba(124, 92, 255, .08); border: 1px solid rgba(124, 92, 255, .2);
    color: var(--muted); font-size: 13px; margin-bottom: 14px;
}
.wallet-pay-error {
    padding: 14px; border-radius: 12px; background: rgba(248, 113, 113, .1);
    border: 1px solid rgba(248, 113, 113, .3); color: #ffc2cd; font-size: 13px; margin-bottom: 14px;
}
.wallet-pay-error p { margin: 0 0 10px; }
.wallet-tx { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; margin: 12px 0; }
.wallet-tx a { color: var(--cyan); }
.wallet-address { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.wallet-address summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.wallet-address .copy-input { display: flex; gap: 8px; margin-top: 10px; }
.wallet-address .copy-input input {
    flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px;
    border: 1px solid var(--line-strong); background: rgba(10, 16, 30, .55);
    color: var(--text); font-size: 12px;
}

/* ---------------- 充值页双板块 ---------------- */
.recharge-tabs {
    display: flex; gap: 8px; margin-top: 16px; padding: 4px;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 12px;
}
.recharge-tabs button {
    flex: 1; padding: 10px 0; border: 0; border-radius: 9px; background: transparent;
    color: var(--muted); font-size: 14px; transition: background .2s, color .2s;
}
.recharge-tabs button.active { background: linear-gradient(135deg, var(--primary), #5b8cff); color: #fff; }
.recharge-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.recharge-section:first-of-type { margin-top: 18px; padding-top: 0; border-top: 0; }
.recharge-section-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.recharge-section-head h3 { margin: 0; font-size: 16px; }
.recharge-section-head span { font-size: 12px; color: var(--muted); }
.wallet-pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.wallet-pay-btn {
    display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
    color: var(--text); text-align: left; transition: all .18s;
}
.wallet-pay-btn:hover:not(:disabled) { border-color: var(--primary); background: rgba(124, 92, 255, .1); }
.wallet-pay-btn.active {
    border-color: var(--primary); background: rgba(124, 92, 255, .15);
    box-shadow: 0 0 0 1px rgba(124, 92, 255, .3) inset;
}
.wallet-pay-btn:disabled { opacity: .5; cursor: not-allowed; }
.wallet-pay-btn .wallet-logo { width: 38px; height: 38px; border-radius: 10px; font-size: 16px; }
.wallet-pay-btn .wallet-name { flex: 1; min-width: 0; }
.wallet-pay-btn .wallet-name b { display: block; font-size: 13px; }
.wallet-pay-btn .wallet-name small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.wallet-pay-btn .wallet-state { font-size: 11px; color: var(--cyan); white-space: nowrap; }
.wallet-picked-inline { margin: 12px 0 0; }
.wallet-inline-error { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; }
.wallet-error-text { flex: 1; min-width: 0; }
.wallet-browser-tip { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.recharge-section .pay-summary { margin-top: 18px; }
@media (max-width: 640px) {
    .wallet-pay-options { grid-template-columns: 1fr; }
    .recharge-section-head { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* ---------------- Toast ---------------- */
.toast-wrap {
    position: fixed; right: 24px; bottom: 24px; z-index: 300;
    display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
    min-width: 220px; max-width: 360px; padding: 12px 18px; border-radius: 12px;
    font-size: 13px; color: #e9f0ff; background: rgba(20, 30, 52, .96);
    border: 1px solid var(--line-strong); box-shadow: var(--shadow);
    animation: toastIn .22s ease;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.warning { border-left: 3px solid var(--gold); }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
    .topbar-inner { gap: 14px; }
    .search-box { width: 200px; }
    .hero { grid-template-columns: minmax(0, 1.7fr) minmax(240px, .9fr); }
    .hero-content h1 { font-size: 34px; }
    .game-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
    .detail-body { grid-template-columns: minmax(0, 1fr) 290px; }
    .uc-stats { grid-template-columns: repeat(2, minmax(90px, auto)); }
}

@media (max-width: 860px) {
    .topbar-inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 10px; }
    .top-links { display: none; }
    .notice-area { margin-left: auto; }
    .nav-tabs { order: 3; width: 100%; flex: unset; }
    .search-box { flex: 1; width: auto; }
    .brand-text small { display: none; }
    .hero { grid-template-columns: 1fr; }
    .hero-main { min-height: 360px; }
    .hero-side { flex-direction: row; height: 150px; }
    .hero-content { padding: 28px; }
    .hero-content h1 { font-size: 30px; }
    .detail-head { flex-wrap: wrap; align-items: flex-start; }
    .detail-actions { width: 100%; }
    .detail-body { grid-template-columns: 1fr; }
    .uc-header { flex-direction: column; align-items: flex-start; }
    .uc-layout { grid-template-columns: 1fr; }
    .uc-side { flex-direction: row; overflow-x: auto; }
    .uc-side button, .uc-side a { white-space: nowrap; }
    .uc-layout .uc-side { position: static; }
    .amount-grid { grid-template-columns: repeat(3, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .pay-summary { flex-wrap: wrap; }
    .pay-summary .btn { width: 100%; }
}

@media (max-width: 560px) {
    .container { padding: 0 16px; }
    .main { padding-top: 18px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand-text b { font-size: 15px; }
    .user-meta { display: none; }
    .user-chip { padding: 4px; }
    .hero-main { min-height: 320px; }
    .hero-content { padding: 20px; }
    .hero-content h1 { font-size: 25px; }
    .hero-content p { font-size: 13px; }
    .hero-actions .btn { padding: 9px 16px; font-size: 13px; }
    .hero-side { height: 120px; }
    .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .game-info { padding: 10px 12px 12px; }
    .game-title-row h3 { font-size: 14px; }
    .game-sub { display: none; }
    .section { margin-top: 34px; }
    .section-head { flex-wrap: wrap; }
    .detail-icon { width: 70px; height: 70px; border-radius: 18px; }
    .detail-info h1 { font-size: 24px; }
    .detail-actions { flex-wrap: wrap; }
    .uc-stats { grid-template-columns: repeat(2, 1fr); width: 100%; }
    .uc-stat { min-width: 0; }
    .amount-grid { grid-template-columns: repeat(2, 1fr); }
    .pay-channels { grid-template-columns: 1fr; }
    .modal-dialog { padding: 24px 20px; }
    .toast-wrap { left: 16px; right: 16px; bottom: 16px; }
    .toast { max-width: none; }
    .footer-inner { flex-direction: column; }
}

/* ---------------- 游戏二维码 ---------------- */
.qr-btn { display: inline-flex; align-items: center; gap: 6px; }
.game-qr-dialog { max-width: 640px; }
.game-qr-head { display: flex; align-items: center; gap: 14px; }
.game-qr-cover {
    width: 56px; height: 56px; flex-shrink: 0; object-fit: cover;
    border-radius: 12px; border: 1px solid var(--line);
}
.game-qr-head h2 { margin: 0 0 6px; font-size: 20px; }
.game-qr-head p { margin: 0; color: var(--muted); font-size: 12px; }
.game-qr-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 22px; }
.game-qr-item { width: 220px; text-align: center; }
.game-qr-box {
    width: 196px; height: 196px; margin: 0 auto; box-sizing: content-box; padding: 12px;
    background: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center;
}
.game-qr-box img, .game-qr-box canvas { width: 196px !important; height: 196px !important; display: block; }
.game-qr-item b { display: block; margin-top: 12px; font-size: 13px; }
.game-qr-item b.game-qr-label { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.game-qr-label svg { width: 16px; height: 16px; flex-shrink: 0; }
.game-qr-label.icon-android svg { color: #4ade80; }
.game-qr-label.icon-apple svg { color: #e8ecf8; }
.game-qr-label.icon-browser svg { color: #fbbf24; }
.game-qr-label.icon-globe svg { color: #22d3ee; }

/* ---------------- 游戏截图 ---------------- */
.screenshot-grid {
    display: grid; grid-template-columns: 1fr; gap: 16px;
}
.screenshot-item {
    display: block; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--line); background: #0d1426;
    transition: border-color .2s, transform .2s;
}
.screenshot-item:hover { border-color: rgba(124, 92, 255, .55); transform: translateY(-2px); }
.screenshot-item img {
    width: 100%; height: auto; display: block;
    transition: transform .35s ease;
}
.screenshot-item:hover img { transform: scale(1.04); }
.game-qr-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; word-break: break-all; }
.game-qr-link { display: flex; align-items: center; gap: 6px; margin-top: 6px; max-width: 220px; }
.game-qr-link small {
    flex: 1; min-width: 0; margin: 0; display: block;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal;
}
.qr-copy {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 9px; border-radius: 8px; font-size: 11px; line-height: 1.2;
    color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
    transition: color .2s, border-color .2s, background .2s;
}
.qr-copy:hover { color: #fff; border-color: rgba(124, 92, 255, .55); background: rgba(124, 92, 255, .14); }
.qr-copy.copied { color: #34d399; border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .12); }
.qr-copy svg { width: 13px; height: 13px; flex-shrink: 0; }

/* =========================================================
   玩家论坛
   ========================================================= */
.forum-page { max-width: 960px; margin: 0 auto; }
.forum-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.forum-header h1 { font-size: 24px; margin: 0 0 6px; color: #fff; }
.forum-header p { margin: 0; color: var(--muted); font-size: 13px; }

.forum-closed {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 60px 20px; text-align: center;
}
.forum-closed h2 { margin: 0 0 8px; color: #fff; font-size: 18px; }
.forum-closed p { margin: 0; color: var(--muted); font-size: 13px; }

.forum-board { display: flex; flex-direction: column; gap: 12px; }
.forum-card {
    display: flex; gap: 16px; padding: 14px; cursor: pointer;
    background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
    transition: border-color .2s, background .2s, transform .2s;
}
.forum-card:hover { border-color: rgba(124, 92, 255, .45); background: var(--panel-2); }
.forum-card-thumb {
    width: 150px; height: 110px; flex-shrink: 0; border-radius: 12px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(124, 92, 255, .25), rgba(34, 211, 238, .18));
    color: var(--muted); font-size: 12px;
}
.forum-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.forum-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.forum-card-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.forum-card-meta b { color: #fff; font-size: 13px; }
.forum-card-title {
    margin: 8px 0 0; font-size: 15px; font-weight: 600; color: #fff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.forum-card-excerpt {
    margin: 8px 0 0; color: var(--text); font-size: 14px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; word-break: break-word; white-space: pre-line;
}
.forum-card-actions { display: flex; gap: 8px; margin-left: auto; padding-left: 10px; }
.forum-card-actions button {
    padding: 4px 12px; border-radius: 8px; font-size: 12px; cursor: pointer;
    color: var(--muted); border: 1px solid var(--line-strong); background: transparent;
}
.forum-card-actions button:hover { color: #fff; border-color: rgba(124, 92, 255, .55); }
.forum-card-actions button.danger { color: var(--red); border-color: rgba(251, 113, 133, .4); }
.forum-card-actions button.danger:hover { color: #fff; background: rgba(251, 113, 133, .18); }

.forum-empty, .forum-loading { padding: 40px 0; text-align: center; color: var(--muted); font-size: 13px; }
.forum-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 18px 0 4px; flex-wrap: wrap; }
.forum-pagination button {
    min-width: 36px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; cursor: pointer;
    color: var(--muted); border: 1px solid var(--line-strong); background: transparent;
}
.forum-pagination button:hover:not(:disabled) { color: #fff; border-color: rgba(124, 92, 255, .55); }
.forum-pagination button.active { color: #fff; background: rgba(124, 92, 255, .2); border-color: rgba(124, 92, 255, .6); }
.forum-pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* 弹窗 */
.forum-modal-mask {
    position: fixed; inset: 0; z-index: 90; padding: 20px;
    background: rgba(4, 7, 14, .72); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
}
.forum-detail-modal, .forum-editor-modal {
    width: 760px; max-width: 100%; max-height: 88vh; overflow: hidden;
    display: flex; flex-direction: column;
    background: #0f1729; border: 1px solid var(--line-strong);
    border-radius: 16px; box-shadow: var(--shadow);
}
.forum-editor-modal { width: 1230px; max-height: 92vh; }
.forum-detail-mask { padding: 0; background: rgba(4, 7, 14, .9); }
.forum-detail-modal {
    width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
    border: none; border-radius: 0;
}
.forum-detail-modal .forum-modal-head { padding: 14px max(24px, calc((100vw - 960px) / 2)); }
.forum-detail-modal .forum-detail-body { padding: 24px max(24px, calc((100vw - 960px) / 2)) 60px; }
.forum-editor-title { padding: 14px 18px 0; }
.forum-editor-title input {
    width: 100%; height: 42px; padding: 0 14px; border-radius: 10px; font-size: 14px; outline: none;
    color: #fff; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-strong);
}
.forum-editor-title input:focus { border-color: rgba(124, 92, 255, .6); }
.forum-editor-title input::placeholder { color: var(--muted); }
.forum-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.forum-modal-head h3 { margin: 0; font-size: 15px; color: #fff; }
.forum-detail-heading { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.forum-detail-title {
    margin: 0; font-size: 18px; font-weight: 600; color: #fff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.forum-post-user { display: flex; flex-direction: column; line-height: 1.4; }
.forum-post-user b { color: #fff; font-size: 14px; }
.forum-post-user span { color: var(--muted); font-size: 12px; }
.forum-modal-tools { display: flex; align-items: center; gap: 8px; }
.forum-modal-tools button {
    padding: 5px 10px; border-radius: 8px; font-size: 12px; cursor: pointer;
    color: var(--muted); border: 1px solid transparent; background: none;
}
.forum-modal-tools button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.forum-modal-tools button.danger { color: var(--red); }
.forum-modal-close,
.forum-detail-close {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 32px; height: 32px; padding: 0; border-radius: 50%;
    border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted);
    font-size: 18px; line-height: 1; cursor: pointer;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.forum-modal-close:hover,
.forum-detail-close:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(124, 92, 255, .5); }

.forum-detail-body { flex: 1; overflow-y: auto; padding: 18px 20px 24px; }
.forum-rich { font-size: 15px; line-height: 1.8; color: var(--text); word-break: break-word; }
.forum-rich p { margin: 0 0 10px; }
.forum-rich img {
    display: block; width: 100% !important; height: auto !important;
    border-radius: 10px; margin: 10px 0;
}
.forum-rich video {
    display: block; width: 100% !important; max-height: 70vh;
    border-radius: 10px; margin: 10px 0; background: #000;
}

/* 编辑器 */
.forum-editor-toolbar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.tool-btn {
    min-width: 34px; height: 32px; padding: 0 10px; border-radius: 8px; font-size: 13px; cursor: pointer;
    color: var(--text); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04);
}
.tool-btn:hover { color: #fff; border-color: rgba(124, 92, 255, .55); background: rgba(124, 92, 255, .16); }
.tool-color {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
    font-size: 12px; color: var(--muted); cursor: pointer;
    border: 1px solid var(--line-strong); border-radius: 8px;
}
.tool-color input[type="color"] { width: 26px; height: 22px; padding: 0; border: none; background: none; cursor: pointer; }
.tool-select {
    height: 32px; padding: 0 8px; border-radius: 8px; font-size: 12px; cursor: pointer;
    color: var(--text); background: #141e34; border: 1px solid var(--line-strong);
}
.forum-editor-counter { margin-left: auto; font-size: 12px; color: var(--muted); }
.forum-editor-counter.over { color: var(--red); font-weight: 600; }
.forum-editor-body {
    flex: 1; min-height: 320px; max-height: 58vh; overflow-y: auto;
    padding: 16px 18px; font-size: 15px; line-height: 1.8; color: var(--text); outline: none;
}
.forum-editor-body:empty:before { content: attr(data-placeholder); color: var(--muted); }
.forum-editor-body p { margin: 0 0 8px; }
.forum-editor-body img { display: block; width: 100%; margin: 8px 0; border-radius: 10px; }
.forum-editor-body video { display: block; width: 100%; margin: 8px 0; border-radius: 10px; background: #000; }
.forum-editor-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.forum-editor-foot > div { display: flex; align-items: center; gap: 10px; }
.forum-cancel-btn {
    padding: 9px 18px; border-radius: 10px; font-size: 13px; cursor: pointer;
    color: var(--muted); border: 1px solid var(--line-strong); background: transparent;
}
.forum-cancel-btn:hover { color: #fff; }
.forum-upload-hint { font-size: 12px; color: var(--muted); }
.forum-file-input { display: none; }

@media (max-width: 720px) {
    .forum-card-thumb { width: 96px; height: 96px; }
    .forum-editor-body { max-height: 40vh; }
    .forum-modal-mask { padding: 10px; }
}

/* 全局上传 / 删除进度条 */
.gp-progress { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100000; min-width: 260px; max-width: 90vw; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(17, 19, 26, .94); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); font-size: 12px; }
.gp-progress[hidden] { display: none; }
.gp-progress-track { flex: 1; height: 6px; background: rgba(255, 255, 255, .16); border-radius: 999px; overflow: hidden; }
.gp-progress-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7c5cff, #22c55e); border-radius: inherit; transition: width .2s ease; }
.gp-progress.is-indeterminate .gp-progress-track i { width: 38%; animation: gp-progress-indeterminate 1.1s ease-in-out infinite; }
.gp-progress span { white-space: nowrap; }
@keyframes gp-progress-indeterminate { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

/* ---------------- 手机端顶栏优化 ---------------- */
@media (max-width: 640px) {
    .topbar-inner { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
    .topbar-inner .brand { order: 1; }
    .topbar-inner .top-links { display: none; }
    .topbar-inner .notice-area { order: 2; margin-left: auto; }
    .topbar-inner .user-area { order: 3; }
    .topbar-inner .search-box { order: 4; flex: 1 1 100%; width: 100%; }
    .topbar-inner .user-area .btn { padding: 7px 12px; font-size: 12px; }
    .search-box button { padding: 7px 12px; }
}

/* ---------------- 手机端 H5 登录 / 拉起客户端支付 ---------------- */
.mobile-login { text-align: center; padding: 10px 0 4px; }
.mobile-login p { color: var(--muted); font-size: 13px; margin: 12px 0 16px; }
.mobile-login .btn-block { width: 100%; margin-bottom: 10px; }
.mobile-pay-tip { margin: 10px 0 0; }
.wallet-deeplink {
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px; margin-top: 12px; border-radius: 14px;
    border: 1px solid rgba(124, 92, 255, .28); background: rgba(124, 92, 255, .08);
}
.wallet-deeplink p { margin: 0; font-size: 12px; color: var(--muted); }
.wallet-deeplink .btn { width: 100%; }
.app-pay .mock-circle { font-size: 20px; }

@media (max-width: 640px) {
    .modal-dialog { width: calc(100% - 24px); padding: 22px 18px; max-height: 92vh; overflow-y: auto; }
    .recharge-card .amount-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .recharge-card .amount-item { padding: 12px 6px; border-radius: 12px; }
    .recharge-card .amount-item strong { font-size: 14px; }
    .recharge-card .amount-item span { font-size: 11px; }
    .pay-channels { gap: 10px; margin: 14px 0; }
    .channel { padding: 12px; gap: 10px; }
    .pay-summary { flex-wrap: wrap; gap: 12px; padding: 14px; }
    .pay-summary > div { flex: 1 1 40%; }
    .pay-summary .btn { flex: 1 1 100%; }
    .recharge-section-head h3 { font-size: 15px; }
    .wallet-pay-btn { padding: 12px; }
    .login-dialog .login-tabs { margin-bottom: 14px; }
}
