新增/* 全局样式 */
:root {
    --color-white: #F5F5F5;
    --color-green: #4CAF50;
    --color-yellow: #FFC107;
    --color-red: #F44336;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.fw-mono {
    font-family: 'Courier New', monospace;
}

/* 号码球 */
.ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ball-super {
    width: 48px;
    height: 48px;
    font-size: 18px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 3px 8px rgba(245,87,108,0.4);
}

/* 游戏结果卡片 */
.game-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.game-card:hover {
    transform: translateY(-2px);
}
.game-card .card-header {
    background: #343a40;
    color: white;
    font-size: 15px;
}

/* (game-result 样式已移至下方 3D 光泽球区域) */

/* ===== 3D 光泽球 - 通用 mixin ===== */
.glossy-ball {
    position: relative;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(255,255,255,0.3);
    border: none;
}
/* 顶部高光 */
.glossy-ball::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 18%;
    width: 50%;
    height: 36%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

/* === 首页大球 === */
.game-result {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
    margin: 8px 0;
    border: none;
    position: relative;
    text-shadow: 0 1px 1px rgba(255,255,255,0.3);
}
.game-result::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 18%;
    width: 50%;
    height: 36%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

/* 番摊颜色 - 首页大球 */
.fan-tan-1 {
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e8e8e8 40%, #c8c8c8 70%, #a8a8a8 100%);
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25), inset 0 -3px 6px rgba(0,0,0,0.1);
}
.fan-tan-2 {
    background: radial-gradient(circle at 35% 35%, #88ee88 0%, #4CAF50 40%, #388E3C 70%, #2E7D32 100%);
    color: #1a3a1a;
    box-shadow: 0 4px 10px rgba(76,175,80,0.4), inset 0 -3px 6px rgba(0,0,0,0.15);
}
.fan-tan-3 {
    background: radial-gradient(circle at 35% 35%, #fff8a0 0%, #FFC107 40%, #F9A825 70%, #F57F17 100%);
    color: #5a4500;
    box-shadow: 0 4px 10px rgba(255,193,7,0.4), inset 0 -3px 6px rgba(0,0,0,0.1);
}
.fan-tan-4 {
    background: radial-gradient(circle at 35% 35%, #ff8a80 0%, #F44336 40%, #D32F2F 70%, #B71C1C 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 4px 10px rgba(244,67,54,0.45), inset 0 -3px 6px rgba(0,0,0,0.15);
}

/* === 历史表格小球 === */
.result-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    position: relative;
    border: none;
    text-shadow: 0 1px 1px rgba(255,255,255,0.3);
}
.result-cell::before {
    content: '';
    position: absolute;
    top: 6%;
    left: 16%;
    width: 52%;
    height: 38%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}
.result-cell.r1 {
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e8e8e8 40%, #c8c8c8 70%, #a8a8a8 100%);
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2), inset 0 -2px 4px rgba(0,0,0,0.08);
}
.result-cell.r2 {
    background: radial-gradient(circle at 35% 35%, #88ee88 0%, #4CAF50 40%, #388E3C 70%, #2E7D32 100%);
    color: #1a3a1a;
    box-shadow: 0 2px 5px rgba(76,175,80,0.35), inset 0 -2px 4px rgba(0,0,0,0.1);
}
.result-cell.r3 {
    background: radial-gradient(circle at 35% 35%, #fff8a0 0%, #FFC107 40%, #F9A825 70%, #F57F17 100%);
    color: #5a4500;
    box-shadow: 0 2px 5px rgba(255,193,7,0.35), inset 0 -2px 4px rgba(0,0,0,0.08);
}
.result-cell.r4 {
    background: radial-gradient(circle at 35% 35%, #ff8a80 0%, #F44336 40%, #D32F2F 70%, #B71C1C 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 5px rgba(244,67,54,0.4), inset 0 -2px 4px rgba(0,0,0,0.12);
}

/* === 加拿大28 号码球 (红金) === */
.ball-canada, .ball-canada-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    position: relative;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    background: radial-gradient(circle at 35% 35%, #ff8a80 0%, #F44336 40%, #D32F2F 70%, #B71C1C 100%);
    box-shadow: 0 4px 10px rgba(244,67,54,0.45), inset 0 -3px 6px rgba(0,0,0,0.15);
}
.ball-canada::before, .ball-canada-sm::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 18%;
    width: 50%;
    height: 36%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}
.ball-canada { width: 64px; height: 64px; font-size: 28px; }
.ball-canada-sm { width: 34px; height: 34px; font-size: 15px; }

/* === 快乐8 二十码球 (蓝) === */
.ball-keno, .ball-keno-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    position: relative;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.25);
    background: radial-gradient(circle at 35% 35%, #90caf9 0%, #2196F3 40%, #1565C0 70%, #0D47A1 100%);
    box-shadow: 0 2px 5px rgba(33,150,243,0.4), inset 0 -2px 4px rgba(0,0,0,0.12);
}
.ball-keno::before, .ball-keno-sm::before {
    content: '';
    position: absolute;
    top: 7%;
    left: 17%;
    width: 52%;
    height: 38%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}
.ball-keno { width: 34px; height: 34px; font-size: 13px; }
.ball-keno-sm { width: 26px; height: 26px; font-size: 11px; }

/* 快乐8二十码换行容器 */
.keno-wrap {
    gap: 3px;
    max-width: 280px;
    margin: 0 auto;
}

/* 日期快捷按钮 */
.date-btn {
    margin: 2px;
    font-size: 13px;
}
.date-btn.active {
    font-weight: bold;
}

/* 表格固定表头 */
.table-responsive {
    max-height: 70vh;
    overflow-y: auto;
}

/* 自动刷新倒计时 */
#refresh-countdown {
    font-size: 13px;
}

/* === 六合彩号码球 (波色: 红/蓝/绿, 特码加金环) === */
.m6-ball, .m6-ball-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    position: relative;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.m6-ball::before, .m6-ball-sm::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 18%;
    width: 50%;
    height: 36%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}
.m6-ball { width: 56px; height: 56px; font-size: 24px; }
.m6-ball-sm { width: 30px; height: 30px; font-size: 13px; }
.m6-red { background: radial-gradient(circle at 35% 35%, #ff8a80 0%, #e8453c 45%, #c62828 100%); box-shadow: 0 3px 8px rgba(232,69,60,0.45), inset 0 -3px 6px rgba(0,0,0,0.15); }
.m6-blue { background: radial-gradient(circle at 35% 35%, #82b1ff 0%, #2f7de1 45%, #1565c0 100%); box-shadow: 0 3px 8px rgba(47,125,225,0.45), inset 0 -3px 6px rgba(0,0,0,0.15); }
.m6-green { background: radial-gradient(circle at 35% 35%, #7ee2a8 0%, #21a85b 45%, #146c3a 100%); box-shadow: 0 3px 8px rgba(33,168,91,0.45), inset 0 -3px 6px rgba(0,0,0,0.15); }
/* 特码: 金色描边 + 略大 */
.m6-special { outline: 3px solid #f0b429; outline-offset: 2px; }
.m6-ball.m6-special { width: 62px; height: 62px; font-size: 26px; }
.m6-label { font-size: 12px; color: #6c757d; }

/* 六合彩响应式 */
@media (max-width: 576px) {
    .m6-ball { width: 42px; height: 42px; font-size: 18px; }
    .m6-ball.m6-special { width: 46px; height: 46px; font-size: 20px; }
    .m6-ball-sm { width: 26px; height: 26px; font-size: 11px; }
}

/* 响应式 */
@media (max-width: 576px) {
    .ball { width: 30px; height: 30px; font-size: 12px; }
    .ball-super { width: 40px; height: 40px; font-size: 16px; }
    .game-result { width: 48px; height: 48px; font-size: 20px; }
    .result-cell { width: 28px; height: 28px; font-size: 12px; }
    .ball-canada { width: 48px; height: 48px; font-size: 20px; }
    .ball-canada-sm { width: 28px; height: 28px; font-size: 12px; }
    .ball-keno { width: 28px; height: 28px; font-size: 11px; }
    .ball-keno-sm { width: 22px; height: 22px; font-size: 10px; }
}
