/* 龙腾联盟 全能网页�?- 珍珠白螺纹质感配�?*/
:root {
    --bg-primary: #f5f5f7;
    --bg-secondary: #fafafa;
    --card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 250, 250, 0.95));
    --card-border: rgba(180, 180, 190, 0.2);
    --accent-primary: #475569;
    --accent-gold-dark: #334155;
    --accent-gold-light: #64748b;
    --accent-gold-bright: #94a3b8;
    --text-main: #292524;
    --text-secondary: #57534e;
    --text-dim: #78716c;
    --text-label: #a8a29e;
    --win-green: #059669;
    --lose-red: #dc2626;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #f5f5f7;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.5) 2px,
            rgba(255, 255, 255, 0.5) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(200, 200, 210, 0.08) 2px,
            rgba(200, 200, 210, 0.08) 4px
        );
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(71, 85, 105, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(71, 85, 105, 0.02) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(10px, 10px) rotate(2deg); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 主内容区�?*/
.main-content {
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 左侧图片 */
.left-image {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-image img {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(243, 198, 35, 0.5));
    max-width: 100%;
    object-fit: contain;
}

/* 顶部导航�?Logo */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(180, 180, 190, 0.2);
    box-shadow: var(--shadow-soft);
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.logo {
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #475569, transparent);
    border-radius: 2px;
}

.nav-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-select-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 245, 247, 0.6);
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(180, 180, 190, 0.15);
}

.nav-select-group:hover {
    background: rgba(250, 250, 250, 0.9);
    border-color: rgba(71, 85, 105, 0.3);
}

.nav-label {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: 600;
}

.nav-select {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    border: 1px solid rgba(180, 180, 190, 0.25);
    padding: 8px 14px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
}

.nav-select:hover {
    border-color: var(--accent-primary);
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(71, 85, 105, 0.15);
}

.nav-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.1);
}

/* 游戏信息显示 */
.game-name {
    font-size: 28px;
    font-weight: 900;
    color: #475569;
    text-shadow: 0 2px 4px rgba(71, 85, 105, 0.2);
    display: inline-block;
    letter-spacing: 1px;
}

.game-icon {
    width: 80px;
    height: 70px;
    margin-right: 15px;
    vertical-align: middle;
    filter: drop-shadow(0 0 5px rgba(243, 198, 35, 0.5));
}

.top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.game-name-with-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: 15px;
    height: 100%;
}

.game-icon {
    width: 80px;
    height: 70px;
    margin-right: 15px;
    vertical-align: middle;
    filter: drop-shadow(0 0 5px rgba(243, 198, 35, 0.5));
}

.draw-numbers {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* 官网按钮样式 - 珍珠白螺纹效�?*/
.official-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    background-image: 
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 2px,
            rgba(71, 85, 105, 0.03) 2px,
            rgba(71, 85, 105, 0.03) 4px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.6) 2px,
            rgba(255, 255, 255, 0.6) 4px
        );
    color: #475569;
    border: 2px solid rgba(71, 85, 105, 0.25);
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.official-btn svg {
    fill: #475569;
}

.official-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(71, 85, 105, 0.1), transparent);
    transition: left 0.5s;
}

.official-btn:hover::before {
    left: 100%;
}

.official-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 85, 105, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(71, 85, 105, 0.4);
    background: rgba(255, 255, 255, 0.98);
}

/* 主面板布局 - 三栏长方形卡�?*/
.dashboard-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

/* 长方形卡片样�?*/
.card-rect {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.card-rect #stats-area,
.card-rect #pred-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 保留原有布局（兼容） */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.card {
    background: rgba(255, 255, 255, 0.88);
    background-image: 
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 2px,
            rgba(71, 85, 105, 0.02) 2px,
            rgba(71, 85, 105, 0.02) 4px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.5) 2px,
            rgba(255, 255, 255, 0.5) 4px
        );
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(180, 180, 190, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #475569, #64748b, #94a3b8);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    box-shadow: var(--shadow-strong);
    border-color: rgba(71, 85, 105, 0.35);
}

.card-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.card-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #475569, #64748b);
    border-radius: 2px;
}

/* 开奖信息看�?- 螺纹纹理�?*/
.draw-banner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.9);
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.6) 3px,
            rgba(255, 255, 255, 0.6) 6px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 3px,
            rgba(200, 200, 210, 0.1) 3px,
            rgba(200, 200, 210, 0.1) 6px
        );
    position: relative;
    z-index: 2;
    padding: 30px;
    min-height: 140px;
    border-radius: 16px;
    border: 1px solid rgba(180, 180, 190, 0.25);
    box-shadow: var(--shadow-medium), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.draw-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(71, 85, 105, 0.03) 100%);
    z-index: 1;
    border-radius: 16px;
}

.draw-banner > * {
    position: relative;
    z-index: 2;
}

.info-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 2px solid rgba(255,255,255,0.1);
}

.period-info {
    text-align: left;
    margin: 0;
    width: 45%;
}

.current-period-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    width: 45%;
}

.combined-info {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.next-period {
    text-align: left;
}

.countdown {
    text-align: left;
}

.period-info .label {
    color: var(--text-label);
    font-size: 14px;
    font-weight: 600;
}

.period-info .val {
    font-size: 28px;
    font-weight: 900;
    color: #475569;
    padding-top: 8px;
    padding-bottom: 8px;
    text-shadow: 0 2px 4px rgba(71, 85, 105, 0.15);
}

.draw-numbers {
    display: flex; 
    gap: 6px;
    align-items: center;
    
}

.num-ball {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.98);
    background-image: 
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 1.5px,
            rgba(71, 85, 105, 0.02) 1.5px,
            rgba(71, 85, 105, 0.02) 3px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 1.5px,
            rgba(255, 255, 255, 0.7) 1.5px,
            rgba(255, 255, 255, 0.7) 3px
        );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: #475569;
    border: 3px solid rgba(71, 85, 105, 0.25);
    box-shadow: none;
    transition: all 0.5s ease;
    animation: ballPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    position: relative;
    overflow: hidden;
}

.num-ball::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 15%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), transparent 60%);
    border-radius: 50%;
    filter: blur(3px);
}

.num-ball::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 2px,
            rgba(71, 85, 105, 0.015) 2px,
            rgba(71, 85, 105, 0.015) 4px
        );
    border-radius: 50%;
}

/* 当前期号与倒计时部�?*/
.current-period-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    width: 45%;
}

.combined-info {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.next-period {
    text-align: left;
}

.period-text {
    display: block;
    font-size: 14px;
    color: var(--text-label);
    margin-bottom: 5px;
}

.next-period-number {
    font-size: 28px;
    font-weight: 900;
    color: #475569;
    text-shadow: 0 2px 4px rgba(71, 85, 105, 0.15);
}

.countdown {
    text-align: left;
}

.countdown-label {
    display: block;
    font-size: 14px;
    color: var(--text-label);
    margin-bottom: 5px;
}

.countdown-timer {
    font-size: 28px;
    font-weight: 900;
    color: #dc2626;
    font-family: 'Courier New', 'Consolas', monospace;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(220, 38, 38, 0.15);
}

@keyframes ballPop {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* 开奖结果显�?*/
.current-draw {
    text-align: center;
    margin: 20px 0;
}

.current-period-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.num-ball.new {
    border-color: rgba(71, 85, 105, 0.5);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.98);
    background-image: 
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 1.5px,
            rgba(148, 163, 184, 0.15) 1.5px,
            rgba(148, 163, 184, 0.15) 3px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 1.5px,
            rgba(255, 255, 255, 0.8) 1.5px,
            rgba(255, 255, 255, 0.8) 3px
        );
    color: #475569;
    transform: scale(1.1);
    animation: ballGlow 1.2s ease-in-out infinite alternate;
}

.num-ball.new::before {
    background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 1), rgba(148, 163, 184, 0.1) 50%, transparent 70%);
    width: 50%;
    height: 50%;
    filter: blur(4px);
}

@keyframes ballGlow {
    from {
        box-shadow: none;
    }
    to {
        box-shadow: none;
    }
}

/* 预测显示 */
.prediction-area {
    text-align: center;
    padding: 20px 0;
}

.target-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 10px;
}

.target-val {
    font-size: 32px;
    font-weight: 900;
    margin: 12px 0;
    background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prediction-box {
    background: linear-gradient(135deg, rgba(71, 85, 105, 0.04) 0%, rgba(100, 116, 139, 0.03) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    padding: 25px;
    border-radius: 14px;
    margin: 20px 0;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
}

.prediction-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, #475569, #64748b, #94a3b8);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.pred-nums {
    font-size: 48px;
    letter-spacing: 10px;
    font-weight: 900;
    background: linear-gradient(135deg, #475569 0%, #64748b 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(71, 85, 105, 0.2));
}

/* 统计卡片 */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 15px;
    transition: all 0.2s;
}

.stat-row:hover {
    padding-left: 8px;
    background: rgba(71, 85, 105, 0.03);
    border-radius: 8px;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-val {
    color: var(--text-main);
    font-weight: 700;
    font-size: 16px;
}

.win-tag {
    color: #059669;
    font-weight: 900;
    padding: 4px 10px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 6px;
    font-size: 14px;
}

.lose-tag {
    color: #dc2626;
    font-weight: 900;
    padding: 4px 10px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 6px;
    font-size: 14px;
}

/* 概率表格 */
.prob-table { width: 100%; margin-top: 15px; }
.prob-row { display: flex; align-items: center; margin-bottom: 10px; gap: 10px; }
.prob-name { width: 45px; font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.prob-bar-bg { flex-grow: 1; height: 8px; background: rgba(71, 85, 105, 0.08); border-radius: 4px; overflow: hidden; }
.prob-bar-fill { height: 100%; background: linear-gradient(to right, #475569, #64748b); transition: width 1s; }
.prob-val { width: 55px; text-align: right; font-size: 12px; color: #475569; font-weight: 600; }

/* 历史记录样式 - 珍珠白螺纹优�?*/
.history-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, 0.5);
    background-image: 
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 2px,
            rgba(71, 85, 105, 0.015) 2px,
            rgba(71, 85, 105, 0.015) 4px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.5) 2px,
            rgba(255, 255, 255, 0.5) 4px
        );
    border-radius: 10px;
    padding: 10px 0;
    border: 1px solid rgba(180, 180, 190, 0.15);
}

.history-item {
    display: grid;
    grid-template-columns: 1.8fr 1.5fr 1.2fr 1.5fr 1.2fr;
    padding: 16px 14px;
    border-bottom: 1px solid rgba(180, 180, 190, 0.1);
    font-size: 14px;
    align-items: center;
    transition: all 0.2s;
    border-radius: 8px;
    margin: 0 10px;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.7);
    background-image: 
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 2px,
            rgba(71, 85, 105, 0.02) 2px,
            rgba(71, 85, 105, 0.02) 4px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.5) 2px,
            rgba(255, 255, 255, 0.5) 4px
        );
    transform: translateX(4px);
}

.history-header {
    background: rgba(255, 255, 255, 0.85);
    background-image: 
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 2px,
            rgba(71, 85, 105, 0.04) 2px,
            rgba(71, 85, 105, 0.04) 4px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.6) 2px,
            rgba(255, 255, 255, 0.6) 4px
        );
    font-weight: 800;
    color: #475569;
    border-radius: 10px;
    border-bottom: 2px solid rgba(71, 85, 105, 0.3);
    position: sticky;
    top: 0;
    z-index: 1;
}

.history-item div {
    white-space: nowrap;
    text-align: center;
    color: var(--text-secondary);
}

.pred-tag {
    color: #475569;
    font-weight: 800;
    background: rgba(71, 85, 105, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.smart-tip {
    margin-top: 20px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(71, 85, 105, 0.04) 0%, rgba(100, 116, 139, 0.03) 100%);
    border-left: 4px solid #475569;
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    overflow: hidden;
}

.smart-tip::before {
    content: '💡';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    opacity: 0.3;
}

/* --- 手机端适配关键媒体查询 --- */
@media (max-width: 768px) {
    body { padding: 10px; }
    
    .main-content {
        width: 100%;
        padding: 0;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-controls {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-select-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-select {
        flex-grow: 1;
        max-width: 70%;
    }

    .official-btn {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .draw-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* 移动端样式，不影响桌面端 */
    .info-line {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
        text-align: left;
    }
    
    .period-info {
        width: 100%;
    }
    
    .current-period-section {
        width: 100%;
        justify-content: flex-start;
    }
    
    .combined-info {
        align-items: flex-start;
        gap: 5px;
    }
    
    .top-section {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .current-period-section {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        text-align: left;
    }
    
    .combined-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .next-period {
        text-align: left;
    }
    
    .countdown {
        text-align: left;
    }
    
    .game-name-with-icon {
        flex-direction: row;
        align-items: center;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .game-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
        margin-bottom: 0;
    }
    
    .period-info {
        text-align: left;
        margin-right: 0;
        margin-bottom: 0;
    }
    
    .draw-numbers {
        justify-content: center;
        width: 100%;
    }

    .pred-nums {
        font-size: 32px;
        letter-spacing: 5px;
    }

    .num-ball {
        width: 36px; height: 36px;
        font-size: 16px;
    }

    /* 手机端保持固定宽度以支持横向滚动 */
    .history-item {
        grid-template-columns: 130px 100px 80px 110px 90px;
        font-size: 12px;
        min-width: 510px;
    }
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}
