/* ===== 全局样式与之前一致 ===== */
        :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: 1200px;
            margin: 0 auto;
            padding: 8px;
        }

        /* ===== 新头部（始终单行，手机端不折叠） ===== */
        .new-header {
            background: #fff;
            border-radius: 10px;
            padding: 12px 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            margin-bottom: 8px;
            display: flex;
            flex-wrap: nowrap;          /* 不换行 */
            align-items: center;
            justify-content: space-between;
        }
        /* ===== 轮播图 ===== */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}
.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 480 / 205;  /* 480×205 比例 */
    overflow: hidden;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carousel-slide a.ad-link {
    display: block;
    width: 100%;
    height: 100%;
}
.ad-stack { width:100%; margin:8px 0; }
.ad-stack a.ad-link { display:block; }
.ad-stack img { width:100%; height:auto; display:block; border-radius:8px; }

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    background: rgba(0,0,0,0.3);
    padding: 4px 10px;
    border-radius: 20px;
}
.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.carousel-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
}
@media (max-width: 640px) {
    .carousel-container {
        border-radius: 6px;
    }
    .carousel-dots {
        bottom: 6px;
        padding: 3px 8px;
        gap: 4px;
    }
    .carousel-dots .dot {
        width: 6px;
        height: 6px;
    }
}
        .header-left {
            background: #28a745;
            border-radius: 8px;
            padding: 6px 16px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 2px;
            flex-shrink: 0;
        }
        .header-left .site-name {
            font-size: 18px;
            font-weight: 700;
            color: #fff;
            line-height: 1.3;
        }
        .header-left .backup-url {
            font-size: 14px;
            color: #fff;
            font-weight: 400;
        }
        .header-center {
            flex: 1;
            text-align: center;
            padding: 0 10px;
            flex-shrink: 0;
        }
        .header-center .link-49 {
            font-size: 28px;
            font-weight: 700;
            color: #222;
            text-decoration: none;
            display: inline-block;
        }
        .header-center .link-49:hover {
            color: var(--primary-color);
        }
        .header-right {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-shrink: 0;
        }
        .header-right .icon-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 12px;
            color: #555;
            cursor: pointer;
            transition: color 0.2s;
            text-decoration: none;
        }
        .header-right .icon-item i {
            font-size: 20px;
            margin-bottom: 2px;
            color: #333;
        }
        .header-right .icon-item:hover {
            color: var(--primary-color);
        }
        .header-right .icon-item:hover i {
            color: var(--primary-color);
        }

        /* 手机端也保持单行，只缩小间距 */
        @media (max-width: 640px) {
            .new-header {
                flex-wrap: nowrap;      /* 保持不换行 */
                padding: 8px 10px;
                gap: 4px;
            }
            .header-left {
                padding: 4px 10px;
                flex-shrink: 1;
            }
            .header-left .site-name {
                font-size: 14px;
            }
            .header-left .backup-url {
                font-size: 11px;
            }
            .header-center .link-49 {
                font-size: 22px;
            }
            .header-right {
                gap: 8px;
            }
            .header-right .icon-item {
                font-size: 10px;
            }
            .header-right .icon-item i {
                font-size: 16px;
            }
        }
        @media (max-width: 480px) {
            .header-left {
                padding: 3px 6px;
            }
            .header-left .site-name {
                font-size: 12px;
            }
            .header-left .backup-url {
                font-size: 10px;
            }
            .header-center .link-49 {
                font-size: 20px;
            }
            .header-right .icon-item i {
                font-size: 14px;
            }
            .header-right .icon-item span {
                font-size: 9px;
            }
        }

        /* ===== 以下开奖、快速链接、图标导航、图库、历史记录、版权等样式与之前相同，但图库手机改1列 ===== */

        /* 开奖模块 */
        .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;
            flex-wrap: wrap;
            gap: 6px;
        }
        .header-top .left-area {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .header-top .left-area .history-link {
            font-size: 13px;
            color: var(--secondary-color);
            cursor: pointer;
            font-weight: 500;
            text-decoration: none;
        }
        .header-top .left-area .history-link:hover {
            color: var(--primary-color);
        }
        .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 {
            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);
            flex-wrap: wrap;
            gap: 6px;
        }
        .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: 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: #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: -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;
        }

        /* ===== 快速链接 4x4 ===== */
        .quick-links-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 6px;
            margin: 8px 0;
        }
        .quick-links-grid .ql-btn {
            background: #e9ecef;
            color: #222;
            text-align: center;
            padding: 10px 4px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.2s;
            text-decoration: none;
            border: none;
        }
        .quick-links-grid .ql-btn:hover {
            background: #d0d4d8;
        }
        @media (max-width: 480px) {
            .quick-links-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 4px;
            }
            .quick-links-grid .ql-btn {
                font-size: 12px;
                padding: 8px 2px;
            }
        }

        /* ===== 图标导航（彩色圆形背景） ===== */
        .icon-nav {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 6px 12px;
            margin: 10px 0 8px 0;
            padding: 8px 0;
            border-top: 1px solid #e5e7eb;
            border-bottom: 1px solid #e5e7eb;
        }
        .icon-nav .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 12px;
            color: #555;
            cursor: pointer;
            text-decoration: none;
            min-width: 56px;
            gap: 4px;
        }
        .icon-nav .nav-item .icon-circle {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: var(--bg, #ccc);
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .icon-nav .nav-item .icon-circle i {
            font-size: 24px;
            color: #fff;
        }
        .icon-nav .nav-item:hover .icon-circle {
            transform: scale(1.08);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        .icon-nav .nav-item span:last-child {
            font-size: 11px;
            color: #555;
        }
        @media (max-width: 480px) {
            .icon-nav .nav-item .icon-circle {
                width: 44px;
                height: 44px;
            }
            .icon-nav .nav-item .icon-circle i {
                font-size: 20px;
            }
            .icon-nav .nav-item {
                min-width: 44px;
            }
        }

        /* ===== 图库（手机端1列铺满） ===== */
        .gallery-section {
            margin: 12px 0 8px 0;
        }
        .gallery-section .gallery-title {
            font-size: 15px;
            font-weight: 600;
            color: #222;
            margin-bottom: 8px;
            text-align: center;
        }
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 10px;
        }
        .gallery-grid .gallery-item {
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            text-align: center;
            box-sizing: border-box;
        }
        .gallery-grid .gallery-item .gallery-img-wrap {
            position: relative;
            line-height: 0;
            border: 1px solid #ccc;
            box-sizing: border-box;
        }
        .gallery-grid .gallery-item img {
            width: 100%;
            height: auto;
            display: block;
            border: 0;
        }
        .gallery-item .gallery-period {
            position: absolute;
            top: 10px;
            left: 10px;
            z-index: 10;
            background: rgba(0, 0, 0, 0.6);
            color: #fff;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: bold;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            pointer-events: none;
            line-height: 1.2;
        }
        .gallery-item .gallery-name,
        .gallery-item .gallery-date {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 10;
            background: rgba(0, 0, 0, 0.65);
            color: #fff;
            text-align: center;
            padding: 10px 8px;
            font-size: 15px;
            font-weight: bold;
            line-height: 1.35;
            word-break: break-all;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            pointer-events: none;
        }
        /* 手机端改为1列 */
        @media (max-width: 640px) {
            .gallery-grid {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            .gallery-item .gallery-name,
            .gallery-item .gallery-date {
                font-size: 17px;
                padding: 12px 10px;
            }
        }
        @media (max-width: 480px) {
            .gallery-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }
            .gallery-item .gallery-name,
            .gallery-item .gallery-date {
                font-size: 16px;
                padding: 10px 8px;
            }
        }

        /* ===== 历史记录 ===== */
        .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;
        }

        /* ===== 版权 ===== */
        .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;
            }
        }
        @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;
            }
        }
        @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;
        }
        @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); }
}
