: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;
            --light-green-bg: #c8e6c9;
            --ref-purple-bg: #5c2d91;
            --ref-green-bg: #2e7d32;
            --ref-gold: #FFD700;
            --ref-dark-green: #1a4d1a;
            --ref-light-purple: #d4c4e8;
        }
        * {
            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: 1200px;
            margin: 0 auto;
            padding: 8px;
        }
                /* 所有图片铺满宽度（排除八卦图） */
        .img-fullwidth,
        .container img:not(.ref-img-wrap img):not(.ref-title-icon) {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 6px;
        }
        a.ad-link { display: block; }
        .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: #fff9c4 !important;
            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: #000000;
            text-shadow: none;
        }
        .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: #000000;
            margin-bottom: 3px;
            text-align: center;
            text-shadow: none;
        }
        .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: 4px;
            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: #000000;
            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: 0;
            top: 0;
            width: 79%;
            height: 79%;
            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;
        }
        @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 !important;
            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: 15px;
            font-weight: 700;
            color: #000000;
            margin-top: 3px;
            text-align: center;
            line-height: 1.4;
            min-height: 24px;
            background: rgba(255,255,255,0.6);
            padding: 0 6px;
            border-radius: 4px;
            display: inline-block;
            width: auto;
        }
        .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: var(--light-green-bg) !important;
            border-radius: 10px;
            padding: 6px 12px 8px 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            margin-bottom: 8px;
            margin-top: 0;
        }
        .history-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 8px;
            color: #FFD700;
            background: linear-gradient(135deg, #667eea, #764ba2);
            padding: 10px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
        }
        .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: 10px 0 4px 0;
        }
        .pagination button {
            padding: 6px 14px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 20px;
            font-size: 13px;
            cursor: pointer;
            min-width: 70px;
        }
        .pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .pagination span {
            color: #333;
            font-size: 13px;
        }
        @media (max-width: 480px) {
    .numbers-row {
        gap: 2px;
    }
    .number-ball {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .zodiac-info {
        font-size: 11px;
        min-height: 18px;
    }
    .plus-sign {
        font-size: 16px;
        margin: 0 1px;
    }
    .lottery-info {
        padding-left: 6px;
        padding-right: 6px;
    }
}
        .btn-sm {
            padding: 6px 12px;
            font-size: 12px;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            background: #667eea;
            color: white;
        }
        .copyright {
            text-align: center;
            color: #333;
            padding: 15px 0;
            margin-top: 12px;
            font-size: 13px;
            opacity: 1;
            border-top: 1px solid #dddddd;
        }
        @media (max-width: 768px) {
            .number-ball { width: 44px; height: 44px; font-size: 22px; }
            .zodiac-info { font-size: 14px; min-height: 24px; }
        }
        @media (max-width: 480px) {
            .number-ball { width: 40px; height: 40px; font-size: 19px; }
            .zodiac-info { font-size: 13px; min-height: 22px; }
        }
        @media (max-width: 640px) {
            .container { padding-left: 2px; padding-right: 2px; }
            .history-container, .lottery-info, .header {
                padding-left: 6px;
                padding-right: 6px;
            }
        }
        @keyframes fadeInInfo {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .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;
        }
        .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: #ffe082;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #333;
        }
        .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: #fff9c4;
            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%; }
        }
        .rolling-ball { animation: pulseGlow 1.5s infinite ease-in-out !important; }
        @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); }
        }
        /* 开奖中占位球：同款球皮 + 灰度 */
        .number-ball.drawing-pending-ball {
            filter: grayscale(100%);
        }

        /* ===== 参考资料模块样式 ===== */
        .ref-section {
            margin: 12px 0 8px 0;
            background: #fff;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        .ref-section .ref-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 10px 14px;
            gap: 4px;
        }
        .ref-section .ref-header .ref-title {
            font-size: 30px;
            font-weight: 700;
            color: #333;
            letter-spacing: 1px;
            text-align: center;
            width: 100%;
        }
        .ref-section .ref-header .ref-sub {
            font-size: 14px;
            color: #444;
            font-weight: 500;
            text-align: center;
            width: 100%;
        }
        .ref-section .ref-body {
            padding: 8px 12px 12px 12px;
            background: #fafafa;
        }
                .ref-section .ref-records {
            width: 100%;
            font-size: 20px;
            border-collapse: collapse;
        }
        .ref-section .ref-records td {
            padding: 6px 6px;
            border-bottom: 1px solid #eee;
            vertical-align: middle;
            line-height: 1.6;
        }
                .ref-section .ref-records .ref-period {
            color: #1a4d1a;
            font-weight: 700;
            white-space: nowrap;
            text-align: left;
            font-size: 20px;
        }
        .ref-section .ref-records .ref-content {
            color: #000;
            font-weight: 500;
            text-align: center;
            white-space: normal;
            word-break: break-word;
        }
        .ref-section .ref-records .ref-open {
            color: #000;
            text-align: right;
        }
        .ref-section .ref-records .ref-open-val {
            color: #b39ddb;
            font-weight: 600;
        }
        .ref-section .ref-records .ref-result-correct {
            color: #2e7d32;
            font-weight: 700;
        }
        .ref-section .ref-records .ref-result-wrong {
            color: #000;
            font-weight: 700;
        }
        .ref-section .ref-highlight {
    background: #ffeb3b;
    color: #000;
    padding: 0 3px;
    border-radius: 2px;
    font-weight: 700;
}
        .ref-open .ref-number {
            color: #a855f7;
            font-weight: 600;
        }
        .ref-section .ref-img-wrap {
            margin-top: 10px;
            position: relative;
            width: 100%;
            border-radius: 6px;
            overflow: hidden;
        }
        .ref-section .ref-img-wrap img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 6px;
        }
        .ref-section .ref-img-wrap .ref-img-date {
            position: absolute;
            top: 10px;
            left: 10px;
            background: rgba(0,0,0,0.6);
            color: #fff;
            font-size: 14px;
            padding: 4px 10px;
            border-radius: 20px;
            font-weight: bold;
            pointer-events: none;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 2;
        }
        .ref-section .ref-img-wrap .ref-img-name {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.65);
            color: #fff;
            text-align: center;
            padding: 8px;
            font-size: 14px;
            font-weight: bold;
            pointer-events: none;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 2;
        }
        /* ===== 新增：新新彩淡红、新澳下半场淡紫 ===== */
        .ref-newnew .ref-header {
            background: #ffcdd2;
        }
        .ref-second .ref-header {
            background: #9c27b0; /* 紫色 */
        }
        /* ===== 新增：八卦图片旋转动画 ===== */
        @keyframes rotateYinYang {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        @keyframes rotateYinYangReverse {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(-360deg); }
        }
                .ref-section .ref-header .ref-title {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: nowrap;
            gap: 8px;
            font-size: 24px;
            font-weight: 700;
            color: #333;
            width: 100%;
        }
        /* 新澳下半场红底，标题用白色 */
        .ref-second .ref-header .ref-title {
            color: #fff;
        }
        .ref-second .ref-header .ref-sub {
            color: #fff;
        }
        .ref-section .ref-header .ref-title .ref-title-icon {
            width: 32px !important;
            height: 32px !important;
            max-width: 32px !important;
            max-height: 32px !important;
            flex-shrink: 0;
            display: inline-block !important;
            animation: rotateYinYang 6s linear infinite;
        }
        .ref-section .ref-header .ref-title .ref-title-icon.reverse {
            animation: rotateYinYangReverse 6s linear infinite;
        }
                   @media (max-width: 640px) {
            .ref-section .ref-header .ref-title {
                font-size: 16px;
                gap: 4px;
            }
            .ref-section .ref-records {
                font-size: 15px;
            }
            .ref-section .ref-content {
                font-size: 15px;
            }
            .ref-section .ref-records .ref-period {
                font-size: 15px;
            }
            .ref-section .ref-records td {
                padding: 4px 3px;
            }
        }
        @media (max-width: 480px) {
            .ref-section .ref-records {
                font-size: 14px;
            }
            .ref-section .ref-content {
                font-size: 14px;
            }
            .ref-section .ref-records .ref-period {
                font-size: 14px;
            }
        }
        .ref-title-icon.reverse {
            animation: rotateYinYangReverse 6s linear infinite;
        }
        .ref-section .ref-empty {
            text-align: center;
            padding: 16px 0;
            color: #999;
            font-size: 14px;
        }
        /* 底部生肖图片 */
        .bottom-zodiac-imgs {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin: 8px 0;
            width: 100%;
        }
        .bottom-zodiac-imgs img {
            flex: 0 0 100%;
            width: 100%;
            height: auto;
            display: block;
            border-radius: 6px;
        }
        /* ===== 返回导航按钮 ===== */
        .back-nav-btn {
            position: fixed;
            right: 15px;
            bottom: 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;
            }
            .ref-section .ref-header .ref-title {
                font-size: 18px;
            }
            .ref-title-icon {
                width: 22px;
                height: 22px;
                margin: 0 4px;
            }
        }
