: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: #722F37 !important;
            min-height: 100vh;
            color: #333;
            padding: 0;
            overflow-x: hidden;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 8px;
        }
        .announcement-bar {
            background: #000000;
            color: #00ff00;
            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%);
            }
        }
        .logo-container {
            text-align: center;
            margin-bottom: 12px;
            padding: 0 4px;
            position: relative;
        }
        .logo-slider {
            position: relative;
            width: 100%;
            height: auto;
            overflow: hidden;
            border-radius: 10px;
            margin-bottom: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            background: #FFD700;
            aspect-ratio: 3 / 1;
        }
        .logo-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: opacity 1s ease-in-out;
            padding: 10px;
        }
        .logo-slide.active {
            opacity: 1;
        }
        .logo-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 6px;
        }
        .logo-dots {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 8px;
        }
        .logo-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s;
        }
        .logo-dot.active {
            background: white;
            transform: scale(1.2);
        }
        .site-title-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 4px;
            gap: 10px;
        }
        .site-title-icon {
            width: 60px;
            height: 60px;
            object-fit: contain;
            border-radius: 50%;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        }
        .site-title-icon.rotate-left {
            animation: rotateYinYang 10s linear infinite;
        }
        .site-title-icon.rotate-right {
            animation: rotateYinYangReverse 10s linear infinite;
        }
        @keyframes rotateYinYang {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }
        @keyframes rotateYinYangReverse {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(-360deg);
            }
        }
        .zhong-icon-title {
            width: 45px;
            height: 45px;
            object-fit: contain;
            flex-shrink: 0;
        }
        .site-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: white;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            letter-spacing: 0.5px;
        }
        .site-subtitle {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 400;
            margin-bottom: 6px;
        }
        .period-img-container {
            width: 100%;
            max-width: 100%;
            margin: 8px 0 0;
            padding: 0;
            overflow: hidden;
            box-sizing: border-box;
        }
        .period-img {
            width: 100%;
            max-width: 100%;
            height: auto;
            display: block;
            vertical-align: top;
        }
        .period-img-container a.ad-link,
        .lottery-extra-images a.ad-link {
            display: block;
            width: 100%;
            max-width: 100%;
            overflow: hidden;
        }
        .period-img-container a.ad-link img,
        .lottery-extra-images a.ad-link img,
        .lottery-extra-images img {
            width: 100%;
            max-width: 100%;
            height: auto;
            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: #ffffff;
            border-radius: 10px;
            padding: 4px 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            margin-bottom: 8px;
        }
        /* ===== 修改标注：info-header 三列均匀布局 ===== */
.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);
}
.info-header .period-info {
    flex: 1;
    text-align: left;
    font-size: 15px;
    font-weight: bold;
    color: #000000;
    white-space: nowrap;        /* ← 强制一行显示 */
}
.info-header .countdown {
    flex: 1;
    text-align: center;
    /* 去掉原先的 background 和 padding，让样式更干净 */
    background: transparent;
    padding: 0;
}
.info-header .countdown .countdown-title {
    font-size: 12px;
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 2px;
}
.info-header .countdown .countdown-time {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
}
/* ===== 修改标注：历史记录链接样式 ===== */
.info-header .history-link {
    flex: 1;
    text-align: right;
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    user-select: none;
    transition: color 0.2s;
}
.info-header .history-link i {
    margin-right: 4px;
}
.info-header .history-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 移动端适配（可追加在原有 @media 中） */
@media (max-width: 480px) {
    .info-header .period-info {
        font-size: 14px;
    }
    .info-header .countdown .countdown-time {
        font-size: 14px;
    }
    .info-header .history-link {
        font-size: 12px;
    }
}
@media (max-width: 375px) {
    .info-header .period-info {
        font-size: 11px;
    }
    .info-header .countdown .countdown-time {
        font-size: 12px;
    }
    .info-header .history-link {
        font-size: 11px;
    }
}
        .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;
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        .numbers-wrapper::-webkit-scrollbar {
            display: none;
        }
        .numbers-row {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            flex-wrap: nowrap;
            gap: 4px;
            width: auto;
            max-width: 100%;
            margin: 0 auto;
            padding: 0 2px 3px;
            box-sizing: border-box;
        }
        .plus-sign {
            font-size: 20px;
            font-weight: bold;
            color: #000000;
            margin: 0 3px;
            opacity: 0;
            animation: fadeIn 0.5s ease forwards;
            flex-shrink: 0;
        }
        .rolling-ball {
            animation: none !important;
            color: white !important;
            font-size: 16px !important;
            font-weight: bold !important;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            position: relative;
            overflow: hidden;
            border: 2px solid rgba(255, 255, 255, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            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 {
            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: #000000;
            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;
        }
        .lottery-extra-images {
            margin: 8px 0;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .lottery-extra-img {
            width: 100%;
            border-radius: 8px;
            object-fit: cover;
        }
        .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: center;
            font-weight: 600;
            color: #666;
            border-bottom: 2px solid #f0f0f0;
            white-space: nowrap;
        }
        .history-table th:first-child,
        .history-table td:first-child {
            text-align: left;
        }
        .history-table td {
            padding: 8px;
            border-bottom: 1px solid #f0f0f0;
            vertical-align: middle;
            text-align: center;
        }
        .history-table th:nth-child(2),
        .history-table td:nth-child(2) {
            text-align: center;
        }
        .history-table tr:hover {
            background: #f9fafb;
        }
        .history-numbers {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: nowrap;
            gap: 2px;
            width: 100%;
            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;
        }
        .history-top-img {
            width: 100%;
            display: block;
            margin: 8px 0;
            height: auto;
        }
        .history-bottom-img {
            width: 100%;
            display: block;
            max-height: 60px;
            object-fit: contain;
            margin: 8px 0;
        }
        .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: white;
            font-size: 14px;
        }
        @media (max-width: 480px) {
            .pagination button {
                padding: 6px 12px;
                font-size: 12px;
                min-width: 60px;
            }
        }
        .quick-menu-container {
            background: var(--purple-red-bg);
            border-radius: 10px;
            padding: 12px;
            margin-top: 8px;
            margin-bottom: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        .quick-menu-title {
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 10px;
            color: white;
            text-align: center;
        }
        .quick-menu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
            gap: 6px;
        }
        .quick-menu-btn {
            padding: 8px 4px;
            border: 1px solid #ddd;
            border-radius: 16px;
            background: var(--gold-color);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: #e34234;
        }
        .quick-menu-btn:hover {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        .prediction-container {
            background: #ffffff !important;
            color: #333333;
            border-radius: 10px;
            padding: 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            margin-bottom: 8px;
        }
        .prediction-title {
            font-size: 15px;
            font-weight: bold;
            margin-bottom: 12px;
            color: #333333;
            display: flex;
            align-items: center;
            gap: 8px;
            justify-content: center;
        }
        .prediction-title i {
            color: #333333;
        }
        .insider-tips-container {
            background: rgba(255, 255, 255, 0.05) !important;
            border-radius: 8px;
            padding: 12px;
            margin-top: 12px;
        }
        .insider-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 25px;
            background: #f8f9fa;
            border-radius: 6px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.15);
        }
        .insider-table th {
            background: #f0f0f0;
            color: #000000;
            padding: 10px 6px;
            font-size: 13px;
            text-align: center;
            border-bottom: 1px solid #dddddd;
            font-weight: 600;
        }
        .insider-table td {
            padding: 6px 6px;
            border-bottom: 1px solid #dddddd;
            color: #000000;
            font-size: 12px;
            vertical-align: middle;
            text-align: center;
            line-height: 1.5;
        }
        .insider-table tr:last-child td {
            border-bottom: none;
        }

        /* ===== 修改：tip-badge 去掉背景框框 ===== */
        .tip-badge {
            display: inline;
            background: none !important;
            border: none !important;
            border-radius: 0 !important;
            padding: 0 !important;
            margin: 0;
            font-size: inherit;
            color: inherit;
            font-weight: inherit;
            white-space: normal;
        }
        .tip-badge-group {
            display: inline;
            gap: 0;
            align-items: center;
            justify-content: center;
        }
        .correct-gold {
            background-color: #ff3333 !important;
            color: #FFD700 !important;
            text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: bold;
        }
        /* ===== 高亮匹配项保留红色背景+金色文字 ===== */
        .highlight-match {
            background-color: #ff3333 !important;
            color: #FFD700 !important;
            border-radius: 4px;
            padding: 1px 5px;
            font-weight: bold;
            font-size: inherit;
            display: inline;
            white-space: nowrap;
        }
        .wrong-black {
            color: #000000 !important;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 3px;
            padding: 2px 5px;
        }
        .material-container,
        .remote-content-container,
        .image-gallery-container {
            background: var(--purple-red-bg);
            border-radius: 10px;
            padding: 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            margin-bottom: 8px;
            margin-top: 8px;
        }
        .material-title,
        .image-gallery-title {
            font-size: 15px;
            font-weight: bold;
            margin-bottom: 12px;
            color: white;
            text-align: center;
        }
        .material-image {
            width: 100%;
            max-width: 600px;
            height: auto;
            border-radius: 6px;
            margin: 0 auto 12px;
            display: block;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
        }
        .material-links {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 8px;
            padding: 8px;
        }
        .material-link {
            background: linear-gradient(135deg, #FF1493, #8B008B);
            color: white;
            padding: 10px 12px;
            border-radius: 6px;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            text-align: center;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(255, 20, 147, 0.3);
        }
        .material-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(255, 20, 147, 0.4);
        }
        .remote-loading,
        .image-loading {
            text-align: center;
            padding: 20px;
            color: white;
            font-size: 13px;
        }
        .hidden {
            display: none;
        }
        .image-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 10px;
            margin-bottom: 12px;
        }
        .image-item {
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            background: rgba(255, 255, 255, 0.1);
            aspect-ratio: 4/3;
            cursor: pointer;
        }
        .image-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }
        .image-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
        }
        .image-item:hover img {
            transform: scale(1.05);
        }
        .image-name {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 6px;
            font-size: 11px;
            text-align: center;
            backdrop-filter: blur(5px);
            display: none;
        }
        .copyright {
            text-align: center;
            color: #000000;
            padding: 15px 0;
            margin-top: 12px;
            font-size: 13px;
            opacity: 1;
            border-top: 1px solid #dddddd;
        }
        .image-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        .image-modal.active {
            display: flex;
        }
        .modal-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
        }
        .modal-content img {
            max-width: 100%;
            max-height: 80vh;
            object-fit: contain;
            border-radius: 8px;
        }
        .modal-close {
            position: absolute;
            top: -40px;
            right: 0;
            background: var(--primary-color);
            color: white;
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        .modal-close:hover {
            background: var(--secondary-color);
            transform: scale(1.1);
        }
        .modal-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        .modal-nav:hover {
            background: var(--primary-color);
        }
        .modal-prev {
            left: -50px;
        }
        .modal-next {
            right: -50px;
        }
        .recommend-container {
            background: white;
            border-radius: 10px;
            padding: 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            margin-bottom: 8px;
            margin-top: 8px;
        }
        .recommend-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 12px;
            color: #333;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .recommend-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .recommend-item {
            padding: 12px 10px;
            border-radius: 25px;
            background: #f8f9fa;
            font-weight: bold;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
            border: 1px solid #eee;
            font-size: 15px;
            border-left-width: 5px;
            border-left-style: solid;
        }
        .recommend-item:hover {
            transform: scale(1.01);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        .recommend-modal {
            display: none;
            position: fixed;
            z-index: 3000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(5px);
        }
        .recommend-modal-content {
            background: white;
            margin: 10% auto;
            width: 90%;
            max-width: 450px;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            animation: modalSlideIn 0.3s ease;
        }
        @keyframes modalSlideIn {
            from {
                transform: translateY(50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        .recommend-modal-header {
            background: linear-gradient(135deg, #667eea, #764ba2);
            padding: 16px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: white;
        }
        .recommend-modal-title {
            font-weight: bold;
            font-size: 18px;
        }
        .recommend-modal-close {
            font-size: 28px;
            cursor: pointer;
            background: none;
            border: none;
            color: white;
            line-height: 1;
        }
        .recommend-modal-body {
            padding: 20px;
            max-height: 70vh;
            overflow-y: auto;
        }
        @media (max-width: 768px) {
            .site-title-icon {
                width: 45px;
                height: 45px;
            }
            .zhong-icon-title {
                width: 35px;
                height: 35px;
            }
            .site-title {
                font-size: 1.2rem;
            }
            .number-ball {
                width: 44px;
                height: 44px;
                font-size: 22px;
            }
        }
        @media (max-width: 480px) {
            .site-title-icon {
                width: 40px;
                height: 40px;
            }
            .zhong-icon-title {
                width: 30px;
                height: 30px;
            }
            .site-title {
                font-size: 1.1rem;
            }
            .number-ball {
                width: 40px;
                height: 40px;
                font-size: 19px;
            }
        }
        @media (max-width: 375px) {
            .site-title-icon {
                width: 35px;
                height: 35px;
            }
            .zhong-icon-title {
                width: 28px;
                height: 28px;
            }
        }
        @media (max-width: 640px) {
            .container {
                padding-left: 2px;
                padding-right: 2px;
            }
            .prediction-container,
            .history-container,
            .lottery-info,
            .header,
            .material-container,
            .remote-content-container,
            .image-gallery-container,
            .recommend-container {
                padding-left: 6px;
                padding-right: 6px;
            }
            .insider-tips-container {
                padding-left: 2px;
                padding-right: 2px;
            }
            .insider-table th,
            .insider-table td {
                padding-left: 3px;
                padding-right: 3px;
            }
            .history-table th,
            .history-table td {
                padding-left: 4px;
                padding-right: 4px;
            }
        }
        @keyframes fadeInInfo {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }
        .zhuge-img {
            max-width: 100px;
            border-radius: 50%;
            margin-bottom: 5px;
            border: 2px solid gold;
            background: rgba(255, 255, 255, 0.1);
        }
        .zhuge-btn {
            background: linear-gradient(45deg, #ffaa00, #ff6600);
            border: none;
            color: white;
            padding: 12px 20px;
            border-radius: 30px;
            font-size: 16px;
            font-weight: bold;
            box-shadow: 0 0 15px #ffaa00, 0 0 30px #ff6600;
            animation: glow 1.5s infinite alternate;
            cursor: pointer;
            margin-top: 8px;
            transition: transform 0.3s;
            border: 1px solid rgba(255, 255, 255, 0.3);
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .zhuge-btn:hover {
            transform: scale(1.05);
        }
        @keyframes glow {
            from {
                box-shadow: 0 0 10px #ffaa00, 0 0 20px #ff6600;
            }
            to {
                box-shadow: 0 0 20px #ffaa00, 0 0 40px #ff4500;
            }
        }
        .full-width-img {
            width: 100vw;
            margin-left: calc(-50vw + 50%);
            max-width: none;
            display: block;
            object-fit: cover;
            margin-top: 8px;
            margin-bottom: 8px;
        }
        .lottery-info,
        .lottery-info * {
            text-shadow: none !important;
            box-shadow: none !important;
        }

        /* ===== 预测内容紧凑居中样式 ===== */
        .insider-content-wrapper {
            text-align: center;
            line-height: 1.6;
            word-break: break-word;
        }
        .insider-table td.content-cell {
            text-align: center;
            padding: 8px 6px;
            line-height: 1.6;
            font-size: 16px;
            letter-spacing: 0.5px;
        }

.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%;
            }
        }
        .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;
            }
        }
        /* ===== 返回导航按钮（固定在右侧） ===== */
.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%);
}
