/* ========== 样式与之前完全相同 ========== */
        :root {
            --primary-color: #f94470;
            --secondary-color: #667eea;
            --success-color: #07c160;
            --warning-color: #ff9900;
            --danger-color: #ff0000;
            --info-color: #02BBFF;
            --dark-color: #333333;
            --light-color: #f8f9fa;
            --orange-bg: #FFA726;
            --black-bg: #1A1A1A;
            --purple-red-bg: #722F37;
            --light-red-bg: #ff6666;
            --gold-color: #FFD700;
        }
        * { margin:0; padding:0; box-sizing:border-box; -webkit-backface-visibility:hidden; backface-visibility:hidden; }
        body { font-family:'Noto Sans SC','Microsoft YaHei','PingFang SC','Helvetica Neue',Arial,sans-serif; background:#f5f5f5 !important; min-height:100vh; color:#333; padding:0; overflow-x:hidden; }
        .container { max-width:100%; margin:0 auto; padding:8px; }
        .announcement-bar { background:#000; color:#0f0; padding:8px; text-align:center; font-size:13px; font-weight:500; overflow:hidden; border-radius:6px; margin-bottom:8px; box-shadow:0 0 10px rgba(0,255,0,0.3); border:1px solid #333; }
        .announcement-content { display:inline-block; white-space:nowrap; animation:marquee 40s linear infinite; padding-left:100%; }
        @keyframes marquee { 0% { transform:translateX(0); } 100% { transform:translateX(-100%); } }

        .top-banner { display:flex; flex-direction:column; gap:4px; margin-bottom:8px; background:#fff; border-radius:10px; padding:6px; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
        .top-banner img { width:100%; height:auto; border-radius:4px; display:block; }
        .top-banner a.ad-link, .ad-stack a.ad-link { display:block; }
        .ad-stack { display:flex; flex-direction:column; gap:4px; margin:8px 0; }
        .ad-stack img { width:100%; height:auto; display:block; border-radius:4px; }

        .header { background:white; border-radius:10px; padding:12px; box-shadow:0 4px 12px rgba(0,0,0,0.1); margin-bottom:8px; }
        .header-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
        .current-time { font-size:12px; color:#666; }
        .current-time span { color:var(--primary-color); font-weight:bold; }
        .lottery-types { display:flex; gap:6px; margin-bottom:6px; flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:4px; scrollbar-width:none; }
        .lottery-types::-webkit-scrollbar { display:none; }
        .type-btn { padding:8px 12px; background:#f0f0f0; border:none; border-radius:16px; cursor:pointer; font-weight:500; transition:all 0.3s; font-size:16px; flex:0 0 auto; white-space:nowrap; }
        .type-btn:hover { transform:translateY(-2px); }
        .type-btn.active { background:var(--primary-color); color:white; box-shadow:0 3px 8px rgba(249,68,112,0.25); }
        .lottery-time { text-align:center; font-size:11px; color:var(--primary-color); margin-top:4px; font-weight:bold; }

        .lottery-info { background:#fff; border-radius:10px; padding:4px 16px; box-shadow:0 4px 12px rgba(0,0,0,0.1); margin-bottom:8px; }
        .info-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; padding-bottom:6px; border-bottom:2px solid rgba(0,0,0,0.1); }
        .period-info { font-size:15px; font-weight:bold; color:#000; }
        .countdown { font-size:15px; font-weight:bold; color:var(--primary-color); background:rgba(255,255,255,0.9); padding:3px 10px; border-radius:6px; text-align:center; }
        .countdown-title { font-size:11px; color:var(--dark-color); margin-bottom:2px; font-weight:600; }
        .countdown-time { font-size:16px; font-weight:bold; }
        .numbers-container { margin:2px 0; }
        .numbers-title { font-size:14px; color:#000; margin-bottom:3px; text-align:center; }
        .numbers-wrapper { display:flex; flex-direction:column; align-items:center; gap:2px; margin-bottom:4px; }
        .numbers-row { display:flex; justify-content:center; align-items:center; flex-wrap:nowrap; gap:6px; width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:3px; scrollbar-width:none; }
        .numbers-row::-webkit-scrollbar { display:none; }
        .plus-sign { font-size:20px; font-weight:bold; color:#000; margin:0 3px; opacity:0; animation:fadeIn 0.5s ease forwards; flex-shrink:0; }
        .number-ball { width:60px; height:60px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:25px; font-weight:bold; color:white; box-shadow:0 2px 4px rgba(0,0,0,0.2), inset 0 1px 3px rgba(255,255,255,0.3); position:relative; overflow:hidden; transition:all 0.3s ease; border:2px solid rgba(255,255,255,0.15); flex-shrink:0; background-size:100% 100%; -webkit-backface-visibility:hidden; backface-visibility:hidden; transform-style:preserve-3d; }
        .number-ball:hover { transform:scale(1.05); }
        .number-ball.animating { animation:numberReveal 0.2s ease-out forwards; opacity:0; transform:scale(0.3); }
        .ball-inner { display:flex; align-items:center; justify-content:center; position:relative; left:-8%; top:-8%; width:80%; height:65%; background:white; border-radius:50%; color:black; font-weight:bold; font-size:inherit; box-shadow:inset 0 1px 3px rgba(0,0,0,0.1); transition:all 0.2s; }
        .small-ellipse { position:absolute; bottom:7%; right:7%; width:22%; height:20%; background:white; border-radius:50%; box-shadow:inset 0 1px 2px rgba(0,0,0,0.1); opacity:0.9; pointer-events:none; z-index:2; }
        .small-ellipse::before { content:''; position:absolute; bottom:70%; right:80%; width:20%; height:12%; background:white; border-radius:50%; box-shadow:inset 0 1px 2px rgba(0,0,0,0.1); opacity:0.5; pointer-events:none; }
        .small-ellipse::after { content:''; position:absolute; bottom:-30%; right:40%; width:20%; height:10%; background:white; border-radius:50%; box-shadow:inset 0 1px 2px rgba(0,0,0,0.1); opacity:0.5; pointer-events:none; }
        @keyframes numberReveal { 0%{opacity:0;transform:scale(0.3);box-shadow:0 0 0 rgba(0,0,0,0);} 70%{opacity:1;transform:scale(1.1);box-shadow:0 6px 15px rgba(0,0,0,0.2);} 100%{opacity:1;transform:scale(1);box-shadow:0 3px 8px rgba(0,0,0,0.15);} }
        .ball-1 {
            animation-delay: 1.5s !important;
        }
        .ball-2 {
            animation-delay: 6.5s !important;
        }
        .ball-3 {
            animation-delay: 11.3s !important;
        }
        .ball-4 {
            animation-delay: 16.3s !important;
        }
        .ball-5 {
            animation-delay: 22.6s !important;
        }
        .ball-6 {
            animation-delay: 27.3s !important;
        }
        .ball-7 {
            animation-delay: 35.8s !important;
        }
        .ball-normal { border:2px solid rgba(255,255,255,0.5); }
        .ball-special { border:3px solid #FFD700; animation:specialPulse 2s infinite; }
        @keyframes specialPulse { 0%{box-shadow:0 0 0 0 rgba(255,215,0,0.7);} 70%{box-shadow:0 0 0 10px rgba(255,215,0,0);} 100%{box-shadow:0 0 0 0 rgba(255,215,0,0);} }
        @keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
        .zodiac-info { font-size:9px; font-weight:500; margin-top:2px; text-align:center; color:#000; line-height:1.2; min-height:20px; text-shadow:1px 1px 1px rgba(0,0,0,0.5); }
        .red { background:radial-gradient(circle at 30% 30%, #ff6666 0%, #cc0000 70%, #990000 100%); }
        .blue { background:radial-gradient(circle at 30% 30%, #6666ff 0%, #0000cc 70%, #000099 100%); }
        .green { background:radial-gradient(circle at 30% 30%, #66cc66 0%, #009900 70%, #006600 100%); }
        .gray { background:radial-gradient(circle at 30% 30%, #cccccc 0%, #999999 70%, #666666 100%); }
        .special-ball { position:relative; }

        .history-container { background:white; border-radius:10px; padding:16px; box-shadow:0 4px 12px rgba(0,0,0,0.1); margin-bottom:8px; }
        .history-title { font-size:16px; font-weight:bold; margin-bottom:12px; color:#FFD700; background:linear-gradient(135deg, #667eea, #764ba2); padding:16px 16px; display:flex; justify-content:space-between; align-items:center; box-shadow:0 4px 8px rgba(0,0,0,0.1); }
        .history-table { width:100%; border-collapse:collapse; font-size:12px; }
        .history-table th { background:#f8f9fa; padding:8px; text-align:left; font-weight:600; color:#666; border-bottom:2px solid #f0f0f0; white-space:nowrap; }
        .history-table td { padding:8px; border-bottom:1px solid #f0f0f0; vertical-align:middle; }
        .history-table tr:hover { background:#f9fafb; }
        .history-numbers { display:flex; align-items:center; flex-wrap:nowrap; gap:2px; overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:2px; scrollbar-width:none; }
        .history-numbers::-webkit-scrollbar { display:none; }
        .history-number-ball { width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:bold; color:white; box-shadow:0 2px 4px rgba(0,0,0,0.2); flex-shrink:0; }
        .history-number-ball.special { border:2px solid #ff9900; width:28px; height:28px; }
        .pagination { display:flex; justify-content:center; align-items:center; gap:15px; margin:15px 0; }
        .pagination button { padding:8px 16px; background:var(--primary-color); color:white; border:none; border-radius:20px; font-size:14px; cursor:pointer; min-width:80px; }
        .pagination button:disabled { opacity:0.5; cursor:not-allowed; }
        .pagination span { color:#333; font-size:14px; }
        @media (max-width:480px) { .pagination button { padding:6px 12px; font-size:12px; min-width:60px; } }
        .btn-sm { padding:6px 12px; font-size:12px; border:none; border-radius:20px; cursor:pointer; background:#667eea; color:white; }

        /* 预测资料样式 */
        .insider-section { background:white; border-radius:10px; padding:12px 0; box-shadow:0 4px 12px rgba(0,0,0,0.1); margin-bottom:8px; }
        .insider-section .section-title { font-size:20px; font-weight:bold; color:#333; text-align:center; margin-bottom:15px; padding-bottom:10px; border-bottom:2px solid #f0f0f0; padding-left:10px; padding-right:10px; }
        .insider-item { margin-bottom:20px; padding:8px 6px; background:#fafafa; border-radius:8px; border-left:4px solid #667eea; }
        .insider-item .item-title { font-size:18px; font-weight:bold; margin-bottom:8px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:0 4px; }
        .insider-item .item-title .badge { font-size:12px; background:#667eea; color:#fff; padding:2px 10px; border-radius:12px; font-weight:normal; }
        .insider-item .item-content { font-size:16px; line-height:1.8; font-family:'Courier New',monospace; background:#fff; padding:8px 4px; border-radius:6px; border:1px solid #eee; overflow-x:auto; white-space:pre-wrap; word-break:break-all; }
        /* 每期分割线 */
        .insider-item .item-content > div { border-bottom:1px dashed #ccc; padding-bottom:6px; margin-bottom:6px; }
        .insider-item .item-content > div:last-child { border-bottom:none; margin-bottom:0; padding-bottom:0; }

        .insider-item .item-title.color-0 { color:#e74c3c; }
        .insider-item .item-title.color-1 { color:#e67e22; }
        .insider-item .item-title.color-2 { color:#f1c40f; }
        .insider-item .item-title.color-3 { color:#2ecc71; }
        .insider-item .item-title.color-4 { color:#3498db; }
        .insider-item .item-title.color-5 { color:#9b59b6; }
        .insider-item .item-title.color-6 { color:#1abc9c; }
        .insider-item .item-title.color-7 { color:#e84393; }
        .insider-item .item-title.color-8 { color:#6c5ce7; }
        .insider-item .item-title.color-9 { color:#00b894; }
        .insider-item .item-title.color-10 { color:#fd79a8; }
        .insider-item .item-title.color-11 { color:#0984e3; }
        .insider-item .item-title.color-12 { color:#d63031; }
        .insider-item .item-title.color-13 { color:#00cec9; }

        .insider-item .item-content .content-text { font-weight:600; }
        .insider-item .item-content .result-badge { display:inline-block; padding:2px 8px; border-radius:4px; font-weight:bold; margin-left:4px; }
        .insider-item .item-content .result-badge.准 { background:#28a745; color:#fff; }
        .insider-item .item-content .result-badge.错 { background:#dc3545; color:#fff; }
        .insider-item .item-content .result-badge.unknown { background:#6c757d; color:#fff; }

        .insider-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:0 2px; }
        .insider-row .insider-item { margin-bottom:0; }
        .insider-divider-img { text-align:center; margin:12px 0; grid-column:1 / -1; position:relative; }
        .insider-divider-img img { width:100%; height:auto; border-radius:6px; display:block; }
        .insider-divider-img .date-label { position:absolute; top:8px; left:8px; background:rgba(0,0,0,0.6); color:#fff; padding:2px 10px; border-radius:4px; font-size:14px; font-weight:bold; pointer-events:none; backdrop-filter:blur(2px); }

        @media (max-width:640px) { .insider-row { grid-template-columns:1fr; padding:0; } .insider-divider-img { grid-column:1; } .insider-item .item-content { font-size:16px; padding:6px 2px; } }

        .copyright { text-align:center; color:#333; padding:15px 0; margin-top:12px; font-size:13px; border-top:1px solid #ddd; }

        @media (max-width:768px) { .number-ball { width:44px; height:44px; font-size:22px; } }
        @media (max-width:480px) { .number-ball { width:40px; height:40px; font-size:19px; } }
        @media (max-width:640px) { .container { padding-left:2px; padding-right:2px; } .history-container,.lottery-info,.header { padding-left:6px; padding-right:6px; } }

        .toast { position:fixed; top:20px; left:15px; right:15px; padding:12px; border-radius:6px; color:#fff; z-index:1100; animation:slideIn 0.3s ease; display:none; text-align:center; }
        .toast.show { display:block; }
        .toast.success { background:#28a745; }
        .toast.error { background:#dc3545; }
        @keyframes slideIn { from { transform:translateY(-100%); opacity:0; } to { transform:translateY(0); opacity:1; } }

        .announcement-modal { display:none; position:fixed; z-index:9999; left:0; top:0; width:100%; height:100%; overflow:auto; background-color:rgba(0,0,0,0.6); backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); animation:fadeIn 0.3s ease; }
        @keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
        .announcement-modal-content { background:white; margin:10% auto; width:90%; max-width:380px; border-radius:16px; box-shadow:0 15px 40px rgba(0,0,0,0.3); overflow:hidden; animation:slideUp 0.3s ease; }
        @keyframes slideUp { from { transform:translateY(30px); opacity:0; } to { transform:translateY(0); opacity:1; } }
        .announcement-modal-header { background:linear-gradient(135deg, #f94470, #ff9900); padding:15px 20px; display:flex; justify-content:space-between; align-items:center; color:white; }
        .announcement-modal-title { font-weight:bold; font-size:16px; }
        .announcement-modal-close { font-size:24px; cursor:pointer; transition:opacity 0.2s; line-height:1; }
        .announcement-modal-close:hover { opacity:0.7; }
        .announcement-modal-body { padding:20px; max-height:60vh; overflow-y:auto; background:white; line-height:1.6; font-size:14px; color:#333; border-radius:0 0 16px 16px; }
        .announcement-modal-body .first-line { text-align:center; font-weight:bold; font-size:18px; margin-bottom:15px; background:linear-gradient(45deg, #ff3333, #ff9933, #ffcc00, #33cc33, #33ccff, #3366ff, #9933ff, #000000); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; animation:rainbow 25s linear infinite; background-size:500% 100%; padding:5px 0; }
        .announcement-modal-body .rest-content { white-space:pre-wrap; word-break:break-word; font-size:16px; line-height:1.6; background:linear-gradient(45deg, #ff3333, #ff9933, #ffcc00, #33cc33, #33ccff, #3366ff, #9933ff, #000000); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; font-weight:600; animation:rainbow 25s linear infinite; background-size:500% 100%; padding:5px 0; }
        @keyframes rainbow { 0% { background-position:0% 50%; } 100% { background-position:200% 50%; } }
/* ===== 返回导航按钮（固定在右侧） ===== */
.back-nav-btn {
    position: fixed;
    right: 15px;
    bottom: 100px;              /* 距离底部 100px，可根据喜好调整 */
    z-index: 999;
    background: #667eea;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
}
.back-nav-btn:hover {
    transform: scale(1.1);
    background: #5a6fd8;
}
.back-nav-btn i {
    color: #fff;
}

/* 手机端稍微缩小 */
@media (max-width: 640px) {
    .back-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
        right: 10px;
        bottom: 80px;
    }
}

/* 开奖中占位球：同款球皮 + 灰度 */
.number-ball.drawing-pending-ball {
    filter: grayscale(100%);
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 94, 98, 0.5); transform: scale(1); }
    50% { box-shadow: 0 0 20px rgba(255, 94, 98, 0.8); transform: scale(1.03); }
}
