/* ============================================================
   Qiu 游戏站点 · 深色主题
   现代游戏风 · 移动优先 · 深色渐变 + 靛紫强调
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
    --c-primary: #6366f1;          /* 靛紫 主强调 */
    --c-primary-dark: #4f46e5;
    --c-primary-soft: rgba(99,102,241,.14);
    --c-gold: #f5b301;             /* 钻石 金 */
    --c-success: #22c55e;          /* 积分/成功 绿 */
    --c-danger: #ef4444;           /* 危险 红 */
    --c-warn: #f59e0b;             /* 待处理 琥珀 */
    --c-info: #38bdf8;

    --c-bg-1: #0f1020;
    --c-bg-2: #1a1b3a;
    --c-surface: rgba(28,30,64,.72);     /* 卡片半透明深色 */
    --c-surface-solid: #1c1e40;
    --c-surface-hover: rgba(38,40,82,.85);
    --c-border: rgba(120,130,200,.18);
    --c-border-strong: rgba(120,130,200,.32);

    --c-text: #e5e7ef;             /* 主文字 */
    --c-text-soft: #9aa0b4;        /* 次要文字 */
    --c-text-faint: #6b7088;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 14px rgba(0,0,0,.28);
    --shadow-lg: 0 16px 40px rgba(0,0,0,.45);
    --shadow-glow: 0 0 0 1px rgba(99,102,241,.35), 0 8px 24px rgba(99,102,241,.18);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", sans-serif;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--c-text);
    background: linear-gradient(160deg, var(--c-bg-1) 0%, var(--c-bg-2) 100%);
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--c-primary); text-decoration: none; transition: color .15s; }
a:hover { color: #818cf8; }

::selection { background: var(--c-primary-soft); color: var(--c-text); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(120,130,200,.28); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(120,130,200,.45); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
.topbar {
    background: rgba(15,16,32,.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
    position: sticky; top: 0; z-index: 50;
}
.topbar-inner { display: flex; align-items: center; height: 64px; gap: 24px; }
.brand {
    font-size: 19px; font-weight: 800; white-space: nowrap;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-gold) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: .5px;
}
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
    padding: 9px 14px; border-radius: var(--radius-sm); color: var(--c-text-soft);
    font-size: 14px; font-weight: 500; transition: all .15s; white-space: nowrap;
}
.nav a:hover { background: var(--c-primary-soft); color: var(--c-text); }
.nav a.active { background: var(--c-primary); color: #fff; box-shadow: 0 4px 12px rgba(99,102,241,.35); }

.user-menu { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.balance { color: var(--c-gold); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.user-name { color: var(--c-text); font-weight: 600; }
.btn-link { color: var(--c-text-soft); padding: 6px 10px; border-radius: var(--radius-sm); }
.btn-link:hover { color: var(--c-text); background: var(--c-primary-soft); }

/* 手机汉堡按钮(默认隐藏,≤768px 显示) */
.mobile-nav-toggle {
    display: none; width: 40px; height: 40px;
    background: transparent; border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-sm); cursor: pointer;
    position: relative; flex-shrink: 0;
}
.mobile-nav-toggle::before, .mobile-nav-toggle::after,
.mobile-nav-toggle span {
    content: ""; position: absolute; left: 9px; right: 9px; height: 2px;
    background: var(--c-text); border-radius: 2px; transition: transform .2s, opacity .2s;
}
.mobile-nav-toggle::before { top: 12px; }
.mobile-nav-toggle span { top: 19px; }
.mobile-nav-toggle::after { bottom: 12px; }

/* 语言切换 */
.lang-switch {
    display: inline-flex; gap: 4px; padding: 3px;
    background: rgba(120,130,200,.1); border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
}
.lang-switch button, .lang-switch a {
    padding: 4px 10px; font-size: 12px; border-radius: 6px;
    color: var(--c-text-soft); background: transparent; border: none; cursor: pointer;
    transition: all .15s;
}
.lang-switch button:hover, .lang-switch a:hover { color: var(--c-text); }
.lang-switch .active, .lang-switch button.active {
    background: var(--c-primary); color: #fff;
}

/* ---------- 主区 / 页脚 ---------- */
.main { padding: 28px 20px 60px; min-height: calc(100vh - 130px); }
.footer {
    border-top: 1px solid var(--c-border);
    padding: 22px 0; color: var(--c-text-faint); font-size: 13px; text-align: center;
}

/* ---------- 提示 ---------- */
.alert {
    padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px;
    font-size: 14px; border: 1px solid transparent;
    backdrop-filter: blur(6px);
}
.alert-error { background: rgba(239,68,68,.12); color: #fca5a5; border-color: rgba(239,68,68,.35); }
.alert-success { background: rgba(34,197,94,.12); color: #86efac; border-color: rgba(34,197,94,.35); }

/* ---------- 卡片 ---------- */
.card {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
    margin-bottom: 20px; backdrop-filter: blur(8px);
}
.card-title {
    font-size: 16px; font-weight: 700; margin-bottom: 16px;
    padding-bottom: 12px; border-bottom: 1px solid var(--c-border);
    color: var(--c-text); letter-spacing: .3px;
}

/* ---------- 统计卡片 ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
    transition: transform .18s, border-color .18s;
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--c-border-strong); }
.stat-card .label { color: var(--c-text-soft); font-size: 13px; margin-bottom: 8px; }
.stat-card .value { font-size: 26px; font-weight: 800; color: var(--c-text); font-variant-numeric: tabular-nums; }
.stat-card .value.accent { color: var(--c-gold); }
.stat-card .value.primary { color: var(--c-primary); }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--c-text); }
.form-group .hint { font-size: 12px; color: var(--c-text-soft); margin-top: 4px; }
.form-control {
    width: 100%; padding: 11px 14px; font-size: 14px; color: var(--c-text);
    border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm);
    background: rgba(15,16,32,.55);
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.form-control::placeholder { color: var(--c-text-faint); }
.form-control:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); background: rgba(15,16,32,.75); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
    border: 1px solid transparent; border-radius: var(--radius-sm); transition: all .15s;
    background: var(--c-primary); color: #fff; white-space: nowrap;
    box-shadow: 0 4px 12px rgba(99,102,241,.28);
}
.btn:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-secondary { background: rgba(120,130,200,.14); color: var(--c-text); border-color: var(--c-border-strong); box-shadow: none; }
.btn-secondary:hover { background: rgba(120,130,200,.24); color: var(--c-text); }
.btn-danger { background: var(--c-danger); box-shadow: 0 4px 12px rgba(239,68,68,.28); }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-success { background: var(--c-success); box-shadow: 0 4px 12px rgba(34,197,94,.28); }
.btn-success:hover { background: #16a34a; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; min-height: 34px; }
.btn-block { width: 100%; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data-table {
    width: 100%; border-collapse: collapse; font-size: 14px;
    background: transparent; color: var(--c-text);
}
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--c-border); }
.data-table th {
    background: rgba(120,130,200,.08); font-weight: 700; color: var(--c-text-soft);
    font-size: 13px; white-space: nowrap; letter-spacing: .3px;
}
.data-table tr:hover td { background: rgba(99,102,241,.06); }
.data-table .num { font-variant-numeric: tabular-nums; }

/* ---------- 标签 ---------- */
.tag {
    display: inline-block; padding: 3px 11px; border-radius: 999px;
    font-size: 12px; font-weight: 600; letter-spacing: .2px;
    border: 1px solid transparent;
}
.tag-pending, .tag-running { background: rgba(245,158,11,.16); color: #fbbf24; border-color: rgba(245,158,11,.4); }
.tag-paid, .tag-success { background: rgba(34,197,94,.16); color: #86efac; border-color: rgba(34,197,94,.4); }
.tag-cancel, .tag-rejected, .tag-danger { background: rgba(239,68,68,.16); color: #fca5a5; border-color: rgba(239,68,68,.4); }
.tag-info, .tag-betting { background: rgba(56,189,248,.16); color: #7dd3fc; border-color: rgba(56,189,248,.4); }
.tag-default, .tag-settled { background: rgba(120,130,200,.16); color: var(--c-text-soft); border-color: var(--c-border-strong); }
.tag-win { background: rgba(34,197,94,.16); color: #86efac; border-color: rgba(34,197,94,.4); }
.tag-lose { background: rgba(239,68,68,.16); color: #fca5a5; border-color: rgba(239,68,68,.4); }
.tag-tie { background: rgba(245,158,11,.16); color: #fbbf24; border-color: rgba(245,158,11,.4); }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 8px 13px; border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm);
    font-size: 13px; color: var(--c-text-soft); background: var(--c-surface);
    transition: all .15s;
}
.pagination a:hover { border-color: var(--c-primary); color: var(--c-text); background: var(--c-primary-soft); }
.pagination .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ---------- 认证页(霓虹毛玻璃) ---------- */
.auth-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(168,85,247,0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 30%, rgba(59,130,246,0.16) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(34,211,238,0.08) 0%, transparent 40%),
        linear-gradient(180deg, #0a0a14 0%, #0d0b1a 100%);
    padding: 24px 16px; position: relative; overflow: hidden;
}
.auth-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(168,85,247,0.28);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 32px rgba(168,85,247,0.15);
    width: 100%; max-width: 420px; padding: 36px;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    position: relative; z-index: 1;
}
.auth-card h1 {
    font-size: 24px; margin-bottom: 6px; text-align: center; font-weight: 800;
    background: linear-gradient(135deg, #f8fafc 0%, #a855f7 50%, #3b82f6 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-card .sub { text-align: center; color: var(--neon-muted); font-size: 13px; margin-bottom: 24px; }
.auth-card .footer-link { text-align: center; margin-top: 18px; font-size: 13px; color: var(--neon-muted); }
.auth-card .footer-link a { color: var(--neon-purple); font-weight: 600; }
.auth-card .footer-link a:hover { color: var(--neon-cyan); }
.auth-card .form-group label { color: var(--neon-text); }
.auth-card .form-group .muted { color: var(--neon-muted); }
.auth-card .hint { color: var(--neon-muted); }
.auth-card .form-control {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(168,85,247,0.22);
    color: var(--neon-text);
}
.auth-card .form-control:focus {
    border-color: rgba(168,85,247,0.6);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.18);
    background: rgba(255,255,255,0.07);
}

/* 首页横幅(旧 home-hero 兼容 + 新 .hero) */
.home-hero, .hero {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,.25) 0%, transparent 60%),
                linear-gradient(160deg, var(--c-bg-1) 0%, var(--c-bg-2) 100%);
    color: var(--c-text); text-align: center; padding: 40px 20px;
}
.home-hero h1, .hero-title {
    font-size: 44px; margin-bottom: 12px; font-weight: 800; letter-spacing: 1px;
    background: linear-gradient(135deg, #fff 0%, var(--c-primary) 60%, var(--c-gold) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.home-hero p, .hero-sub { font-size: 16px; opacity: .85; margin-bottom: 28px; max-width: 560px; color: var(--c-text-soft); }
.hero-notice {
    margin-top: 24px; padding: 12px 20px; max-width: 560px;
    background: var(--c-primary-soft); border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-sm); font-size: 14px; color: var(--c-text);
}
.home-hero .btn, .hero .btn { padding: 13px 30px; font-size: 15px; }
.home-hero .btn:hover, .hero .btn:hover { background: #fff; color: var(--c-primary); }
.home-features { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.home-features .f {
    background: var(--c-surface); padding: 12px 20px; border-radius: var(--radius-sm);
    font-size: 14px; border: 1px solid var(--c-border); backdrop-filter: blur(6px);
}

/* ---------- 团队/邀请 ---------- */
.level-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.level-tabs a {
    padding: 8px 18px; border-radius: var(--radius-sm); background: var(--c-surface);
    border: 1px solid var(--c-border-strong); color: var(--c-text-soft); font-size: 14px; transition: all .15s;
}
.level-tabs a:hover { color: var(--c-text); border-color: var(--c-primary); }
.level-tabs a.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.invite-box {
    background: var(--c-surface); border: 1px dashed var(--c-border-strong);
    border-radius: var(--radius); padding: 24px; text-align: center;
}
.invite-box .code { font-size: 30px; font-weight: 800; letter-spacing: 4px; color: var(--c-gold); margin: 12px 0; font-variant-numeric: tabular-nums; }
.invite-box .url { font-size: 13px; color: var(--c-text-soft); word-break: break-all; }

/* ---------- 后台布局 ---------- */
.admin-body { background: linear-gradient(160deg, #0c0d1c 0%, #14152e 100%); background-attachment: fixed; }
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 220px; background: rgba(12,13,28,.95); color: var(--c-text-soft); padding: 20px 0;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
    border-right: 1px solid var(--c-border);
}
.sidebar-brand {
    padding: 0 24px 20px; font-size: 18px; font-weight: 800; color: var(--c-text);
    border-bottom: 1px solid var(--c-border); margin-bottom: 12px;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-gold) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sidebar nav { display: flex; flex-direction: column; flex: 1; }
.sidebar nav a { padding: 12px 24px; color: var(--c-text-soft); font-size: 14px; border-left: 3px solid transparent; transition: all .15s; }
.sidebar nav a:hover { background: rgba(99,102,241,.1); color: var(--c-text); }
.sidebar nav a.active { background: var(--c-primary-soft); color: var(--c-primary); border-left-color: var(--c-primary); font-weight: 600; }
.sidebar-foot { padding: 16px 24px; border-top: 1px solid var(--c-border); font-size: 13px; }
.sidebar-foot a { color: var(--c-text-faint); }
.sidebar-foot a:hover { color: var(--c-text-soft); }
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-top {
    height: 56px; background: rgba(15,16,32,.7); border-bottom: 1px solid var(--c-border);
    display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
    font-weight: 700; color: var(--c-text); backdrop-filter: blur(8px);
}
.admin-content { padding: 24px; flex: 1; }

/* ---------- 工具类 ---------- */
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; }
.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; }
.gap-2 { gap: 8px; } .gap-4 { gap: 16px; }
.muted { color: var(--c-text-soft); font-size: 13px; }
.empty { text-align: center; padding: 40px; color: var(--c-text-faint); }

/* ============================================================
   球球大冒险
   ============================================================ */
.game-countdown {
    background: linear-gradient(135deg, rgba(99,102,241,.25) 0%, rgba(79,70,229,.4) 100%);
    border: 1px solid var(--c-border-strong);
    color: var(--c-text); border-radius: var(--radius); padding: 18px 24px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    margin-bottom: 20px; box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.game-countdown .ct-label { font-size: 14px; opacity: .9; font-weight: 600; }
.game-countdown .ct-value {
    font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums;
    letter-spacing: 2px; background: rgba(0,0,0,.32); padding: 4px 18px; border-radius: var(--radius-sm);
    color: #fff;
}
.game-countdown .ct-meta { font-size: 13px; opacity: .85; }
.game-countdown.running { background: linear-gradient(135deg, rgba(245,158,11,.3) 0%, rgba(217,119,6,.45) 100%); border-color: rgba(245,158,11,.4); }
.game-countdown.settled { background: linear-gradient(135deg, rgba(34,197,94,.3) 0%, rgba(22,163,74,.45) 100%); border-color: rgba(34,197,94,.4); }

.player-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.player-card {
    background: var(--c-surface); border: 2px solid var(--c-border-strong); border-radius: var(--radius);
    padding: 20px; text-align: center; transition: border-color .15s, box-shadow .15s, transform .15s;
    backdrop-filter: blur(6px);
}
.player-card:hover { transform: translateY(-2px); }
.player-card.is-winner {
    border-color: var(--c-gold);
    box-shadow: 0 0 0 3px rgba(245,179,1,.18), 0 8px 24px rgba(245,179,1,.2);
}
.player-card .pc-name { font-size: 30px; font-weight: 800; color: var(--c-primary); margin-bottom: 6px; }
.player-card .pc-rate { font-size: 14px; color: var(--c-text-soft); margin-bottom: 14px; }
.player-card .pc-rate b { color: var(--c-gold); font-size: 18px; }
.player-card .pc-balls { display: flex; flex-direction: column; gap: 8px; align-items: center; margin: 12px 0; min-height: 56px; }
.player-card .pc-freq { font-size: 12px; color: var(--c-text-soft); margin-top: 6px; }

.ball-no {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f5b301 0%, #d97706 100%);
    color: #1a1b3a; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums;
    box-shadow: 0 3px 8px rgba(245,179,1,.35), inset 0 1px 2px rgba(255,255,255,.3);
}
.ball-no.empty { background: rgba(120,130,200,.12); color: var(--c-text-faint); box-shadow: none; border: 1px dashed var(--c-border-strong); }
.ball-no.duplicate { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); color: #fff; box-shadow: 0 3px 8px rgba(34,197,94,.35), inset 0 1px 2px rgba(255,255,255,.25); }

/* ---------- 下注选择 ---------- */
.player-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 20px; }
.player-pick label {
    display: block; background: var(--c-surface); border: 2px solid var(--c-border-strong);
    border-radius: var(--radius); padding: 18px 10px; text-align: center; cursor: pointer; transition: all .15s;
    backdrop-filter: blur(6px);
}
.player-pick label:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }
.player-pick input { display: none; }
.player-pick .pp-wrap { display: block; }
.player-pick .pp-inner { transition: transform .15s; }
.player-pick input:checked + .pp-inner { transform: scale(1.05); }
.player-pick input:checked ~ .pp-name,
.player-pick input:checked ~ .pp-rate { color: var(--c-primary); }
.player-pick label:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); box-shadow: var(--shadow-glow); }
.player-pick .pp-name { font-size: 22px; font-weight: 800; color: var(--c-text); display: block; }
.player-pick .pp-rate { font-size: 13px; color: var(--c-text-soft); margin-top: 4px; display: block; }
.player-pick .pp-rate b { color: var(--c-gold); font-size: 15px; }

.bet-summary {
    background: rgba(120,130,200,.1); border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 8px;
    font-size: 13px; color: var(--c-text-soft);
}
.bet-summary b { color: var(--c-text); font-weight: 700; }

/* ============================================================
   新增:游戏大厅 / 个人中心 / 资产卡
   ============================================================ */

/* 游戏大厅卡片网格 */
.game-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 20px; }
.game-card {
    position: relative; display: block; padding: 24px;
    background: var(--c-surface); border: 1px solid var(--c-border-strong);
    border-radius: var(--radius); box-shadow: var(--shadow);
    transition: transform .18s, border-color .18s, box-shadow .18s;
    backdrop-filter: blur(8px); overflow: hidden;
}
.game-card::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--c-primary-soft) 0%, transparent 60%);
    opacity: 0; transition: opacity .18s;
}
.game-card:hover {
    transform: translateY(-4px); border-color: var(--c-primary);
    box-shadow: var(--shadow-glow);
}
.game-card:hover::before { opacity: 1; }
.game-card .gc-icon { font-size: 48px; line-height: 1; display: block; margin-bottom: 12px; }
.game-card .gc-name { font-size: 18px; font-weight: 700; color: var(--c-text); margin-bottom: 6px; position: relative; }
.game-card .gc-desc { font-size: 14px; color: var(--c-text-soft); position: relative; }
.game-card .gc-enter {
    position: absolute; right: 18px; bottom: 18px;
    padding: 6px 14px; font-size: 13px; font-weight: 600;
    background: var(--c-primary); color: #fff; border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(99,102,241,.3);
}

/* 个人中心布局 */
.center-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.center-side {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}
.center-side .menu-link {
    display: block; padding: 11px 16px; border-radius: var(--radius-sm);
    color: var(--c-text-soft); font-size: 14px; font-weight: 500; transition: all .15s;
}
.center-side .menu-link:hover { background: var(--c-primary-soft); color: var(--c-text); }
.center-side .menu-link.active { background: var(--c-primary); color: #fff; box-shadow: 0 4px 10px rgba(99,102,241,.3); }
.center-main { min-width: 0; }

/* 资产卡 */
.balance-card {
    background: linear-gradient(135deg, rgba(99,102,241,.18) 0%, rgba(245,179,1,.12) 100%);
    border: 1px solid var(--c-border-strong); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.balance-card .label { color: var(--c-text-soft); font-size: 13px; margin-bottom: 6px; }
.balance-card .value { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.balance-card .value.gold { color: var(--c-gold); }
.balance-card .value.green { color: var(--c-success); }

/* ============================================================
   响应式 ≤768px
   ============================================================ */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .topbar-inner { height: auto; padding: 12px 0; gap: 12px; flex-wrap: wrap; }

    /* 汉堡按钮显示 */
    .mobile-nav-toggle { display: inline-flex; align-items: center; justify-content: center; order: 2; margin-left: auto; }

    /* 导航默认隐藏,展开时纵向下拉 */
    .nav {
        order: 4; flex: none; width: 100%;
        display: none; flex-direction: column; gap: 2px;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(12,13,28,.98); border-bottom: 1px solid var(--c-border);
        padding: 8px 16px; box-shadow: var(--shadow-lg);
        backdrop-filter: blur(12px);
    }
    .nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
    .nav.open { display: flex; }
    .nav a.active { box-shadow: none; }

    .brand { font-size: 17px; }
    .user-menu {
        order: 3; width: 100%; flex-wrap: wrap; gap: 10px;
        padding-top: 8px; border-top: 1px solid var(--c-border);
        font-size: 13px;
    }
    .balance { font-size: 13px; }

    .main { padding: 20px 16px 50px; }
    .card { padding: 18px; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-card .value { font-size: 22px; }

    .player-grid, .player-pick { grid-template-columns: 1fr; }
    .player-card .pc-name { font-size: 26px; }
    .ball-no { width: 38px; height: 38px; font-size: 16px; }

    .game-list { grid-template-columns: 1fr; }
    .game-card { padding: 18px; }

    .form-row { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }

    .center-grid { grid-template-columns: 1fr; }
    .center-side {
        display: flex; gap: 4px; overflow-x: auto; padding: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .center-side .menu-link { white-space: nowrap; flex-shrink: 0; }

    .home-hero h1, .hero-title { font-size: 32px; }
    .home-hero p, .hero-sub { font-size: 15px; }
    .home-features { gap: 10px; }

    /* 后台侧栏收窄 */
    .sidebar { width: 56px; }
    .sidebar-brand, .sidebar-foot { display: none; }
    .sidebar nav a { padding: 12px 0; text-align: center; font-size: 16px; }
    .admin-content { padding: 16px; }
}

/* ============================================================
   响应式 ≥992px(个人中心双栏)
   ============================================================ */
@media (min-width: 992px) {
    .center-grid { grid-template-columns: 240px 1fr; align-items: start; }
    .center-side { position: sticky; top: 80px; }
}

/* ============================================================
   霓虹紫蓝渐变重构 · 游戏门户风(追加,不破坏旧类)
   ============================================================ */
:root {
    --neon-bg: #0a0a14;
    --neon-bg2: #0d0b1a;
    --neon-bg3: #1a1033;
    --neon-surface: rgba(255,255,255,0.04);
    --neon-purple: #a855f7;
    --neon-blue: #3b82f6;
    --neon-cyan: #22d3ee;
    --neon-grad: linear-gradient(135deg, #7c3aed, #2563eb);
    --neon-grad-text: linear-gradient(135deg, #a855f7, #3b82f6);
    --neon-glow: 0 0 20px rgba(168,85,247,0.5);
    --neon-text: #f8fafc;
    --neon-muted: #94a3b8;
    --neon-r-card: 16px;
    --neon-r-btn: 12px;
}

/* ---------- 顶栏霓虹化(全站) ---------- */
.topbar {
    background: linear-gradient(90deg, #0d0b1a 0%, #1a1033 100%);
    border-bottom: 1px solid rgba(168,85,247,0.25);
    box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 40px rgba(168,85,247,0.08);
}
.topbar .brand {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(168,85,247,0.3);
}
.topbar .nav a { color: var(--neon-muted); }
.topbar .nav a:hover {
    color: var(--neon-text);
    background: rgba(168,85,247,0.12);
}
.topbar .nav a.active {
    background: var(--neon-grad);
    color: #fff;
    box-shadow: 0 0 16px rgba(168,85,247,0.45);
}

/* ---------- 发光按钮 ---------- */
.btn-glow {
    background: var(--neon-grad);
    color: #fff;
    border: 1px solid rgba(168,85,247,0.5);
    box-shadow: var(--neon-glow), 0 4px 16px rgba(124,58,237,0.4);
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}
.btn-glow:hover {
    color: #fff;
    background: linear-gradient(135deg, #9333ea, #1d4ed8);
    box-shadow: 0 0 28px rgba(168,85,247,0.7), 0 6px 20px rgba(124,58,237,0.5);
    transform: translateY(-1px);
}

/* ---------- Hero 区 ---------- */
.hero-neon {
    padding: 60px 20px 48px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(168,85,247,0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 30%, rgba(59,130,246,0.18) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a14 0%, #0d0b1a 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-neon::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 70%, rgba(34,211,238,0.08) 0%, transparent 40%);
    pointer-events: none;
}
.hero-inner { position: relative; max-width: 1080px; margin: 0 auto; }
.hero-title-neon {
    font-size: 52px; font-weight: 900; line-height: 1.15;
    letter-spacing: 1px; margin: 0 0 28px;
    display: flex; flex-direction: column; gap: 4px;
}
.hero-title-neon .line1 {
    background: linear-gradient(135deg, #f8fafc 0%, #a855f7 50%, #3b82f6 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title-neon .line2 {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 50%, #22d3ee 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-cta {
    padding: 14px 40px; font-size: 16px; font-weight: 700;
    border-radius: var(--neon-r-btn);
    display: inline-block; margin-bottom: 40px;
}

/* Hero 特色卡网格(桌面1列 / 手机1列) */
.hero-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.hero-feature-card {
    position: relative; display: block;
    background: var(--neon-surface);
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: var(--neon-r-card);
    overflow: hidden;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
}
.hero-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168,85,247,0.6);
    box-shadow: 0 12px 40px rgba(124,58,237,0.35), 0 0 24px rgba(168,85,247,0.25);
}
.hero-feature-img {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(168,85,247,0.45) 0%, rgba(59,130,246,0.25) 50%, rgba(13,11,26,0.6) 100%);
    overflow: hidden;
}
.hero-feature-img::after {
    content: ""; position: absolute; inset: 0;
    background: none;
}
.hero-feature-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    height: 50%;
    padding: 14px 16px;
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    background: rgba(13, 11, 26, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-top: 1px solid rgba(168, 85, 247, 0.3);
}
.hero-feature-emoji {
    font-size: 84px; line-height: 1;
    filter: drop-shadow(0 6px 16px rgba(168,85,247,0.6));
    position: relative; z-index: 1;
}
.hero-rating {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 44px; height: 44px; border-radius: 999px;
    background: var(--neon-grad);
    color: #fff; font-size: 13px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 16px rgba(168,85,247,0.6);
    border: 2px solid rgba(255,255,255,0.2);
}
.hero-feature-tag {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 3px 10px; border-radius: 999px;
    background: rgba(34,211,238,0.18);
    color: #22d3ee; font-size: 11px; font-weight: 700;
    border: 1px solid rgba(34,211,238,0.4);
    letter-spacing: .5px;
}
.hero-feature-body {
    padding: 16px 18px 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hero-feature-name {
    font-size: 17px; font-weight: 700; color: var(--neon-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-notice-neon {
    margin: 32px auto 0; padding: 12px 20px; max-width: 640px;
    background: rgba(168,85,247,0.1);
    border: 1px solid rgba(168,85,247,0.35);
    border-radius: var(--neon-r-btn);
    font-size: 14px; color: var(--neon-text);
}

/* ---------- 热门小游戏 ---------- */
.hot-section { padding: 40px 20px 20px; max-width: 1080px; margin: 0 auto; }
.hot-title {
    font-size: 26px; font-weight: 800; margin-bottom: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #a855f7 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: .5px;
    position: relative; padding-left: 16px;
}
.hot-title::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 24px; border-radius: 2px;
    background: var(--neon-grad);
    box-shadow: 0 0 12px rgba(168,85,247,0.6);
}
.hot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hot-card {
    position: relative; display: block;
    background: var(--neon-surface);
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: var(--neon-r-card);
    padding: 28px 16px 20px;
    text-align: center;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    backdrop-filter: blur(8px);
    overflow: hidden;
    min-height: 150px;
}
.hot-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 35%, rgba(168,85,247,0.18) 0%, transparent 60%);
    opacity: 0; transition: opacity .2s;
}
.hot-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168,85,247,0.55);
    box-shadow: 0 10px 30px rgba(124,58,237,0.3), 0 0 20px rgba(168,85,247,0.2);
}
.hot-card:hover::before { opacity: 1; }
.hot-icon-3d {
    font-size: 60px; line-height: 1;
    display: inline-block; margin-bottom: 14px;
    position: relative; z-index: 1;
    text-shadow:
        0 1px 0 rgba(255,255,255,0.15),
        0 4px 8px rgba(168,85,247,0.5),
        0 8px 20px rgba(59,130,246,0.4),
        0 12px 30px rgba(0,0,0,0.5);
    filter: drop-shadow(0 0 12px rgba(168,85,247,0.4));
    transition: transform .2s;
}
.hot-card:hover .hot-icon-3d { transform: scale(1.12); }
.hot-name {
    font-size: 14px; font-weight: 600; color: var(--neon-text);
    position: absolute; left: 14px; bottom: 14px; z-index: 1;
    max-width: calc(100% - 28px);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 形状徽章(轮流 ★/♦/▲) */
.hot-shape-badge {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800;
    border-radius: 6px;
}
.hot-shape-badge.shape-0 {
    color: #fbbf24;
    background: rgba(251,191,36,0.15);
    border: 1px solid rgba(251,191,36,0.4);
    text-shadow: 0 0 8px rgba(251,191,36,0.6);
}
.hot-shape-badge.shape-1 {
    color: #22d3ee;
    background: rgba(34,211,238,0.15);
    border: 1px solid rgba(34,211,238,0.4);
    text-shadow: 0 0 8px rgba(34,211,238,0.6);
}
.hot-shape-badge.shape-2 {
    color: #f472b6;
    background: rgba(244,114,182,0.15);
    border: 1px solid rgba(244,114,182,0.4);
    text-shadow: 0 0 8px rgba(244,114,182,0.6);
}

/* ---------- 底部 Tab 导航(仅移动端) ---------- */
.tab-bar { display: none; }

@media (max-width: 768px) {
    .tab-bar {
        display: flex;
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
        background: linear-gradient(90deg, #0d0b1a 0%, #1a1033 100%);
        border-top: 1px solid rgba(168,85,247,0.3);
        box-shadow: 0 -4px 24px rgba(0,0,0,0.5), 0 -2px 20px rgba(168,85,247,0.1);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 6px 0 env(safe-area-inset-bottom, 6px);
    }
    .tab-item {
        flex: 1;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        padding: 8px 4px;
        color: var(--neon-muted);
        font-weight: 500;
        text-decoration: none;
        gap: 3px;
        position: relative;
        transition: color .15s;
    }
    .tab-item .tab-icon { display:flex; }
    .tab-item .tab-icon svg { width:22px; height:22px; display:block; }
    .tab-item .tab-label { font-size: 11px; letter-spacing: .3px; }
    .tab-item.active {
        color: #fff;
        background: linear-gradient(135deg, rgba(168,85,247,0.35), rgba(59,130,246,0.25));
        box-shadow: 0 0 16px rgba(168,85,247,0.5);
    }
    .tab-item.active::before {
        content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 2px;
        background: var(--neon-grad);
        box-shadow: 0 0 8px rgba(168,85,247,0.8);
    }
    .main { padding-bottom: 76px; }

    /* Hero 移动端 */
    .hero-neon { padding: 28px 14px 24px; }
    .hero-inner { padding: 0 2px; }
    .hero-title-neon { font-size: 30px; margin-bottom: 18px; letter-spacing: .5px; }
    .hero-cta { padding: 11px 28px; font-size: 14px; margin-bottom: 22px; }
    .hero-inner .hero-feature-grid { margin: 18px auto 0; gap: 14px; }
    .hero-feature-card { border-radius: 14px; }
    .hero-feature-body { padding: 12px 14px 14px; gap: 5px; }
    .hero-feature-name { font-size: 15px; }
    .hero-feature-howto { font-size: 11px; -webkit-line-clamp: 2; }
    .hero-feature-body .btn { padding: 7px 16px; font-size: 12px; }
    .hero-notice-neon { margin: 18px auto 0; padding: 10px 14px; font-size: 12px; max-width: 100%; }
    .kefu-fab { bottom: 88px; right: 14px; gap: 10px; }
    .kefu-btn { width: 46px; height: 46px; font-size: 20px; }
    .hot-name { font-size: 12px; bottom: 10px; left: 8px; }
    .hot-shape-badge { width: 22px; height: 22px; font-size: 10px; top: 8px; right: 8px; }
}

/* ============================================================
   游戏封面图 / 介绍 / 玩法说明(追加,不破坏旧类)
   ============================================================ */
/* Hero 特色卡:封面图 + emoji 叠加 */
.hero-feature-cover {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    z-index: 0;
}
.hero-feature-img.has-cover .hero-feature-emoji {
    position: relative; z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.8);
}
.hero-feature-img.has-cover::after {
    background: linear-gradient(180deg, rgba(13,11,26,0.15) 0%, transparent 45%, rgba(13,11,26,0.85) 100%);
}

/* 特色卡统一展示(桌面/手机自适应网格) */
.hero-inner .hero-feature-grid {
    max-width: 720px;
    margin: 28px auto 0;
}
@media(max-width: 480px){
    .hero-feature-grid { grid-template-columns: 1fr; }
}

/* 热门网格卡:封面图 + emoji 叠加 */
.hot-cover {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hot-card.has-cover { background: transparent; }
.hot-card.has-cover::before { display: none; }
.hot-card.has-cover .hot-icon-3d {
    position: relative; z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 14px rgba(0,0,0,0.85);
}

/* 热门卡:介绍描述(名称下方) */
.hot-desc {
    color: var(--neon-muted, #94a3b8); font-size: 12px; line-height: 1.4; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; text-align: left;
}
.hot-card.has-desc .hot-name { bottom: 40px; }

/* 游戏大厅:介绍 + 玩法说明 */
.game-info { margin-bottom: 16px; }
.game-info-section { margin-bottom: 12px; }
.game-info-section:last-child { margin-bottom: 0; }
.game-info-section h3 { font-size: 14px; color: var(--neon-cyan, #22d3ee); margin: 0 0 6px; }
.game-info-section p,
.game-info-text { color: var(--neon-text, #f8fafc); font-size: 13px; line-height: 1.6; white-space: pre-wrap; }

@media (max-width: 768px) {
    .hot-card.has-desc .hot-name { bottom: 34px; }
    .hot-card .hot-desc { bottom: 8px; left: 8px; right: 8px; }
}

/* ============================================================
   纯封面展示改造:特色卡 / 热门卡 / 大厅封面
   - 视图不再输出 emoji / 评分徽章 / 形状徽章 / description
   - 无封面图时使用紫蓝径向渐变占位(无任何图标)
   ============================================================ */

/* --- Hero 特色卡 --- */
/* body 改为纵向:名称 → 玩法 → 按钮 */
.hero-feature-body {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 6px; padding: 14px 16px 16px;
}
.hero-feature-name {
    font-size: 17px; font-weight: 700; color: var(--neon-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-feature-howto {
    color: var(--neon-muted, #94a3b8); font-size: 12px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin: 0;
}
.hero-feature-body .btn { align-self: flex-start; margin-top: 4px; }
.hero-feature-overlay .hero-feature-name { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.hero-feature-overlay .hero-feature-howto { color: rgba(248,250,252,.85); }
.hero-feature-overlay .btn { align-self: center; margin-top: 2px; }

/* --- 热门网格卡 --- */
/* 重置卡片为「封面区 + 信息区」纵向流 */
.hot-card {
    padding: 0; text-align: left; min-height: 0;
    display: flex; flex-direction: column;
}
.hot-cover-area {
    position: relative; height: 120px; width: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(168,85,247,0.45) 0%, rgba(59,130,246,0.22) 55%, rgba(13,11,26,0.85) 100%);
    overflow: hidden;
}
.hot-cover {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block; z-index: 0;
}
.hot-info {
    padding: 10px 12px 12px;
    display: flex; flex-direction: column; gap: 4px;
}
.hot-name {
    position: static; max-width: none;
    font-size: 14px; font-weight: 600; color: var(--neon-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hot-howto {
    color: var(--neon-muted, #94a3b8); font-size: 12px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 游戏大厅:封面 --- */
.game-cover-wrap {
    width: 100%; max-width: 480px;
    border-radius: 16px; overflow: hidden;
    margin: 12px 0 16px;
}
.game-cover { display: block; width: 100%; height: auto; }

/* --- 移动端微调 --- */
@media (max-width: 768px) {
    .hot-cover-area { height: 100px; }
    .hot-info { padding: 8px 10px 10px; }
    .hero-feature-howto, .hot-howto { font-size: 11px; }
}

/* ============================================================
   首页:全部游戏列表小标题
   ============================================================ */
.games-list-title {
    font-size: 18px; font-weight: 700; margin-bottom: 18px;
    color: #a855f7; letter-spacing: .5px; text-align: center;
}

/* ============================================================
   首页悬浮客服按钮(仅 home/index.php)
   ============================================================ */
.kefu-fab{position:fixed;right:20px;bottom:24px;display:flex;flex-direction:column;gap:12px;z-index:1000}
.kefu-btn{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:24px;text-decoration:none;background:linear-gradient(135deg,#7c3aed,#2563eb);box-shadow:0 4px 16px rgba(124,58,237,.5);transition:transform .2s,box-shadow .2s}
.kefu-btn:hover{transform:scale(1.1);box-shadow:0 6px 24px rgba(168,85,247,.7)}
.kefu-telegram{background:linear-gradient(135deg,#229ED9,#0088cc)}
.kefu-kakao{background:linear-gradient(135deg,#FEE500,#FFCD00);color:#3c1e1e}
@media(max-width:768px){.kefu-fab{right:10px;top:auto;bottom:80px;transform:none}}

/* ============================================================
   游戏大厅:介绍视频播放区(竖屏视频 + 右侧信息栏)
   ============================================================ */
.video-layout{
    display:grid;
    grid-template-columns: 9fr 11fr;
    gap:16px;
    align-items:stretch;
}
.game-video-wrap{
    padding:0; overflow:hidden;
    border:1px solid rgba(168,85,247,0.25);
    border-radius:24px;
    background:#000;
    aspect-ratio:9/16;
    height:fit-content;
    position:relative;
}
.game-video{
    width:100%; height:100%; display:block;
    object-fit:cover;
    background:#000;
}
.video-side{
    display:flex; flex-direction:column;
    gap:12px;
    min-width:0;
    align-self:start;
}
.video-side .game-countdown{ margin:0; }
.video-side .stats-grid-compact{ margin:0; }
.video-side .stats-grid-compact .stat-card{
    padding:8px 12px;
}
.video-side .stats-grid-compact .stat-card .label{ font-size:11px; }
.video-side .stats-grid-compact .stat-card .value{ font-size:18px; }
.video-side .card{ margin:0; }
/* player 信息融合悬浮在视频底部(所有视口,避免被overflow裁剪) */
.game-video-wrap .player-bar-card{
    position:absolute;
    bottom:0; left:0; right:0;
    z-index:10;
    margin:0;
    padding:10px 14px;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(6px);
    border:none;
    border-radius:0 0 24px 24px;
}
.game-video-wrap .player-rows{ display:flex; flex-direction:column; gap:4px; }
.game-video-wrap .player-row{
    display:flex; align-items:center; gap:8px;
    padding:5px 10px; border-radius:8px;
    background:rgba(255,255,255,.06);
}
.game-video-wrap .player-row.is-winner{ background:rgba(34,197,94,.3); }
.game-video-wrap .pr-name{ font-size:16px; font-weight:800; color:var(--c-primary); min-width:14px; }
.game-video-wrap .pr-rate{ font-size:12px; color:var(--c-gold); min-width:46px; }
.game-video-wrap .pr-rate b{ font-size:14px; }
.game-video-wrap .pr-balls{ display:flex; gap:4px; flex:1; align-items:center; }
.game-video-wrap .pr-ball{
    width:22px; height:22px; border-radius:50%; box-sizing:border-box;
    display:inline-flex; align-items:center; justify-content:center;
    font-size:12px; font-weight:700; color:#1a1b3a;
    background:linear-gradient(135deg,#f5b301,#d97706);
}
.game-video-wrap .pr-ball.empty{ background:rgba(120,130,200,.15); color:var(--c-text-faint); }
.game-video-wrap .pr-ball.dup{ background:linear-gradient(135deg,#22c55e,#16a34a); color:#fff; }
.game-video-wrap .pr-freq{ font-size:10px; color:var(--c-text-soft); }
.game-video-wrap .pr-tag{ font-size:9px; padding:1px 5px; border-radius:4px; background:#22c55e; color:#fff; }
@media(max-width:768px){
    .video-layout{
        grid-template-columns:1fr;
        position:relative;
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:12px;
    }
    .game-video-wrap{
        aspect-ratio:9/16;
        max-height:70vh;
        width:min(100%, calc(70vh * 9 / 16));
        border-radius:18px;
        position:relative;
    }
    .game-video{ object-fit:contain; }
    .video-side{ width:min(100%, calc(70vh * 9 / 16)); min-width:0; }
    /* 所有状态倒计时悬浮在视频卡片内部顶部,与视频同宽居中对齐 */
    .video-side .game-countdown{
        position:absolute;
        top:0;
        left:50%;
        transform:translateX(-50%);
        width:min(100%, calc(70vh * 9 / 16));
        z-index:10;
        margin:0;
        padding:10px 14px;
        border:none;
        border-radius:18px 18px 0 0;
        backdrop-filter:blur(4px);
    }
    .video-side .game-countdown .ct-meta{ display:none; }
    .video-side .game-countdown .ct-label{ font-size:12px; }
    .video-side .game-countdown .ct-value{ font-size:22px; padding:2px 12px; }

    /* stats-grid 三列一行,紧凑省空间(覆盖内联1fr) */
    .video-side .stats-grid-compact{
        grid-template-columns: repeat(3, 1fr) !important;
        gap:6px;
    }
    .video-side .stats-grid-compact .stat-card{ padding:8px 6px; }
    .video-side .stats-grid-compact .stat-card .label{ font-size:10px; margin-bottom:2px; }
    .video-side .stats-grid-compact .stat-card .value{ font-size:14px; }

    /* 手机版 player 行紧凑(竖排3行,每行横排) */
    .game-video-wrap .player-bar-card{ padding:6px 8px; border-radius:0 0 18px 18px; }
    .game-video-wrap .player-rows{ gap:3px; }
    .game-video-wrap .player-row{ padding:3px 8px; gap:6px; }
    .game-video-wrap .pr-name{ font-size:13px; min-width:12px; }
    .game-video-wrap .pr-rate{ font-size:10px; min-width:38px; }
    .game-video-wrap .pr-rate b{ font-size:11px; }
    .game-video-wrap .pr-balls{ gap:3px; align-items:center; }
    .game-video-wrap .pr-ball{ width:18px; height:18px; font-size:9px; }
    .game-video-wrap .pr-freq{ font-size:9px; }
    .game-video-wrap .pr-tag{ font-size:8px; padding:1px 4px; }

    /* 手机版下注区紧凑并排 */
    .video-side .player-pick{ grid-template-columns:repeat(3,1fr); gap:6px; margin:8px 0; }
    .video-side .player-pick label{ padding:8px 4px; }
    .video-side .player-pick .pp-name{ font-size:16px; }
    .video-side .player-pick .pp-rate{ font-size:10px; margin-top:2px; }
    .video-side .player-pick .pp-rate b{ font-size:12px; }
    .video-side .form-group{ margin-bottom:10px; }
    .video-side .form-group label{ font-size:12px; margin-bottom:3px; }
    .video-side .form-control{ padding:8px 10px; font-size:13px; }
    .video-side .form-group .hint{ font-size:10px; }
    .video-side .bet-summary{ padding:6px 10px; font-size:11px; margin-top:6px; }
    .video-side .form-actions{ flex-direction:row; gap:8px; margin-top:6px; }
    .video-side .form-actions .btn{ flex:1; padding:8px 10px; font-size:13px; width:auto; }

    /* 手机版 video-wrap / stats-grid / 下注card 同宽对齐 */
    .video-layout .game-video-wrap{ box-sizing:border-box; }
    .video-side .stats-grid-compact,
    .video-side .card{ width:100%; box-sizing:border-box; margin-left:auto; margin-right:auto; }
}

/* ============================================================
   布告栏前台样式(竖版卡片,一横三个,点击进入详情页)
   ============================================================ */
.bulletin-section {
    padding: 40px 20px 20px;
    max-width: 1180px;
    margin: 0 auto;
}
.bulletin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bulletin-card {
    display: flex;
    flex-direction: column;
    background: rgba(20,22,40,0.7);
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.bulletin-card:hover {
    border-color: rgba(168,85,247,0.6);
    box-shadow: 0 8px 24px rgba(124,58,237,0.25);
    transform: translateY(-3px);
}
.bulletin-card-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.bulletin-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bulletin-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.bulletin-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bulletin-card-excerpt {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bulletin-card-more {
    font-size: 12px;
    color: #a855f7;
    margin-top: auto;
    font-weight: 600;
}
.bulletin-card.bulletin-empty {
    min-height: 180px;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(168,85,247,0.2);
    background: transparent;
}
.bulletin-card-empty-text {
    color: #64748b;
    font-size: 13px;
}

/* 布告栏响应式 */
@media (max-width: 768px) {
    .bulletin-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .bulletin-section {
        padding: 24px 10px 16px;
    }
    .bulletin-card-body {
        padding: 10px 10px 12px;
    }
    .bulletin-card-title {
        font-size: 14px;
    }
    .bulletin-card-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
}

/* 游戏卡片竖向排列(桌面1列+缩小 / 手机1列) */
.hero-feature-grid {
    grid-template-columns: 1fr !important;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* 布告栏详情页(干净的公告样式) */
.bulletin-detail-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}
.bulletin-detail-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(168,85,247,0.2);
}
.bulletin-detail-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
}
.bulletin-detail-meta {
    font-size: 12px;
    color: #64748b;
}
.bulletin-detail-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bulletin-detail-body .bulletin-text-block {
    line-height: 1.8;
    word-break: break-word;
    white-space: pre-wrap;
    padding: 0;
}
.bulletin-detail-body .bulletin-image-block {
    width: 100%;
    border-radius: 10px;
    display: block;
}
.bulletin-detail-body .bulletin-video-block {
    width: 100%;
    max-height: 400px;
    border-radius: 10px;
    display: block;
}
.bulletin-detail-empty {
    text-align: center;
    color: #64748b;
    font-size: 15px;
    padding: 60px 0;
}
.bulletin-detail-back {
    margin-top: 36px;
    text-align: center;
}
.bulletin-detail-back .btn-glow,
.bulletin-detail-back .btn {
    text-decoration: none;
}

/* ---------- 猜球号输入(下注表单内联) ---------- */
.guess-balls-group .guess-balls-row {
    display: flex; gap: 10px; align-items: center;
}
.guess-balls-group .guess-ball-input {
    width: 72px; text-align: center; font-size: 18px; font-weight: 700;
    padding: 10px 8px;
}
.guess-balls-group .guess-ball-input::placeholder {
    color: var(--c-text-faint); font-weight: 400; font-size: 16px;
}
@media (max-width: 480px) {
    .guess-balls-group .guess-ball-input { width: 64px; font-size: 16px; }
}
