* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
            -webkit-tap-highlight-color: transparent;
        }
        
        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
            font-size: 16px;
            padding-bottom: 20px;
        }
        
        .container {
            width: 100%;
            margin: 0 auto;
            padding: 15px;
            max-width: 100%;
        }
        
        header {
            text-align: center;
            padding: 20px 15px;
            background: linear-gradient(135deg, #1a5fb4 0%, #2d8ae1 100%);
            color: white;
            border-radius: 12px;
            margin-bottom: 20px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }
        
        header::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #ffd700, #ff8c00, #ffd700);
            z-index: 1;
        }
        
        h1 {
            font-size: 1.8rem;
            margin-bottom: 8px;
            font-weight: 700;
        }
        
        .subtitle {
            font-size: 1rem;
            opacity: 0.9;
            margin-bottom: 10px;
        }
        
        .data-source-info {
            background-color: rgba(255, 255, 255, 0.2);
            padding: 6px 12px;
            border-radius: 20px;
            display: inline-block;
            font-size: 0.85rem;
            backdrop-filter: blur(5px);
        }
        
        .section-container {
            background-color: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        }
        
        .section-title {
            font-size: 1.4rem;
            color: #1a5fb4;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .section-title .last-update {
            font-size: 0.8rem;
            color: #666;
            font-weight: normal;
        }
        
        /* 最新开奖样式 */
        .lottery-info {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            margin-bottom: 20px;
        }
        
        .issue-info {
            font-size: 1.2rem;
            font-weight: 600;
            color: #333;
            margin-bottom: 5px;
        }
        
        .date-info {
            font-size: 1rem;
            color: #666;
        }
        
        .numbers-container {
            text-align: center;
            margin: 20px 0;
        }
        
        .numbers-title {
            font-size: 1rem;
            color: #666;
            margin-bottom: 10px;
            text-align: left;
        }
        
        .numbers {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin: 15px 0;
        }
        
        .number {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            font-weight: bold;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            flex-shrink: 0;
        }
        
        .red {
            background-color: #e74c3c;
            color: white;
        }
        
        .blue {
            background-color: #3498db;
            color: white;
        }
        
        .plus {
            display: flex;
            align-items: center;
            font-size: 1.8rem;
            color: #999;
            font-weight: bold;
        }
        
        /* 查询区样式 */
        .query-options {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin-bottom: 25px;
        }
        
        .option-group {
            width: 100%;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #444;
            font-size: 1rem;
        }
        
        select, input {
            width: 100%;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 10px;
            font-size: 1rem;
            transition: border-color 0.3s;
            background-color: #fff;
        }
        
        select:focus, input:focus {
            outline: none;
            border-color: #2d8ae1;
            box-shadow: 0 0 0 3px rgba(45, 138, 225, 0.1);
        }
        
        .buttons {
            display: flex;
            flex-direction: column;
            gap: 12px;
            width: 100%;
        }
        
        button {
            padding: 16px 20px;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        button i {
            margin-right: 8px;
        }
        
        .btn-query {
            background-color: #2d8ae1;
            color: white;
        }
        
        .btn-query:hover, .btn-query:active {
            background-color: #1a5fb4;
        }
        
        .btn-reset {
            background-color: #f8f9fa;
            color: #333;
            border: 1px solid #ddd;
        }
        
        .btn-reset:hover, .btn-reset:active {
            background-color: #e9ecef;
        }
        
        /* 历史记录样式 */
        .history-list {
            list-style: none;
        }
        
        .history-item {
            padding: 15px 0;
            border-bottom: 1px solid #f0f0f0;
            transition: background-color 0.2s;
        }
        
        .history-item:last-child {
            border-bottom: none;
        }
        
        .history-item:hover {
            background-color: #f9f9f9;
        }
        
        .history-link {
            text-decoration: none;
            color: #333;
            display: block;
        }
        
        .history-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .history-issue {
            font-weight: 700;
            color: #1a5fb4;
            font-size: 1.1rem;
        }
        
        .history-date {
            color: #666;
            font-size: 0.9rem;
        }
        
        .history-numbers {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .history-number {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            font-weight: bold;
        }
        
        /* 查询结果样式 */
        .results-table-container {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        .results-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 600px;
        }
        
        .results-table th {
            background-color: #f8f9fa;
            padding: 15px 10px;
            text-align: left;
            font-weight: 600;
            color: #444;
            border-bottom: 2px solid #f0f0f0;
            font-size: 0.9rem;
        }
        
        .results-table td {
            padding: 15px 10px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .results-table tr:hover {
            background-color: #f9f9f9;
        }
        
        .table-numbers {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
        }
        
        /* 页脚样式 */
        footer {
            text-align: center;
            padding: 20px 0;
            color: #666;
            border-top: 1px solid #eee;
            margin-top: 20px;
            font-size: 0.9rem;
        }
        
        .seo-text {
            line-height: 1.8;
            color: #555;
            font-size: 0.95rem;
        }
        
        .seo-text h2 {
            color: #1a5fb4;
            margin-bottom: 15px;
            font-size: 1.3rem;
        }
        
        .seo-text p {
            margin-bottom: 15px;
        }
        
        /* 状态提示样式 */
        .no-results, .loading, .error {
            text-align: center;
            padding: 40px 20px;
            color: #666;
            font-style: italic;
        }
        
        .error {
            color: #e74c3c;
            background-color: #ffeaea;
            border-radius: 8px;
            margin: 20px 0;
        }
        
        .loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 4px solid rgba(0, 0, 0, 0.1);
            border-radius: 50%;
            border-top-color: #1a5fb4;
            animation: spin 1s linear infinite;
            margin-bottom: 15px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .data-source-status-area {
            margin-top: 20px;
            font-size: 0.85rem;
            color: #666;
            background-color: #f8f9fa;
            padding: 10px 15px;
            border-radius: 8px;
            border-left: 4px solid #2d8ae1;
        }
        
        .data-source-success {
            color: #27ae60;
        }
        
        .data-source-failure {
            color: #e74c3c;
        }
        
        .data-source-switch {
            color: #f39c12;
        }
        
        /* 移动端特定样式 */
        .mobile-only {
            display: block;
        }
        
        .desktop-only {
            display: none;
        }
        
        /* 底部按钮栏（针对移动端优化） */
        .quick-actions {
            position: sticky;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            padding: 15px;
            display: flex;
            gap: 10px;
            border-top: 1px solid #eee;
            z-index: 100;
        }
        
        .quick-action-btn {
            flex: 1;
            padding: 12px 10px;
            font-size: 0.9rem;
        }
        
        /* 针对小屏幕的额外调整 */
        @media (max-width: 480px) {
            .container {
                padding: 10px;
            }
            
            header {
                padding: 15px 10px;
            }
            
            h1 {
                font-size: 1.6rem;
            }
            
            .section-container {
                padding: 15px;
            }
            
            .number {
                width: 45px;
                height: 45px;
                font-size: 1.2rem;
            }
            
            .history-number {
                width: 35px;
                height: 35px;
                font-size: 0.9rem;
            }
            
            .buttons {
                gap: 10px;
            }
            
            button {
                padding: 14px 15px;
            }
        }
        
        @media (min-width: 768px) {
            .container {
                max-width: 750px;
            }
            
            .buttons {
                flex-direction: row;
                flex-wrap: wrap;
            }
            
            .btn-query, .btn-reset {
                flex: 1;
                min-width: 120px;
            }
        }
        
        /* 横屏模式优化 */
        @media (max-height: 500px) and (orientation: landscape) {
            .container {
                padding: 10px 15px;
            }
            
            .section-container {
                padding: 15px;
                margin-bottom: 15px;
            }
            
            .numbers {
                gap: 8px;
            }
            
            .number {
                width: 40px;
                height: 40px;
                font-size: 1.1rem;
            }
        }
        
        /* 暗色模式支持 */
        @media (prefers-color-scheme: dark) {
            body {
                background-color: #121212;
                color: #f0f0f0;
            }
            
            .section-container, .results-table th, .data-source-status-area {
                background-color: #1e1e1e;
                color: #f0f0f0;
            }
            
            .history-item:hover, .results-table tr:hover {
                background-color: #2a2a2a;
            }
            
            .section-title {
                color: #6ba8ff;
            }
            
            .btn-reset {
                background-color: #2a2a2a;
                color: #f0f0f0;
                border-color: #444;
            }
            
            .btn-reset:hover, .btn-reset:active {
                background-color: #333;
            }
            
            .history-issue {
                color: #6ba8ff;
            }
            
            .history-date {
                color: #aaa;
            }
            
            .quick-actions {
                background-color: #1e1e1e;
                border-color: #333;
            }
            
            select, input {
                background-color: #2a2a2a;
                color: #f0f0f0;
                border-color: #444;
            }
        }