:root {
            --primary-color: #2563eb;
            --primary-dark: #1d4ed8;
            --secondary-color: #ea580c;
            --accent-color: #10b981;
            --light-bg: #f8fafc;
            --card-bg: #ffffff;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --border-color: #e2e8f0;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
            line-height: 1.6;
            color: var(--text-primary);
            background-color: var(--light-bg);
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* 头部设计 */
        .site-header {
            background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
            color: white;
            padding: 1.2rem 0 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            position: relative;
            z-index: 10;
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            padding-bottom: 15px;
        }
        
        .logo-area {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .logo-icon {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }
        
        .logo-text h1 {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 5px;
        }
        
        .logo-text p {
            font-size: 14px;
            opacity: 0.9;
        }
        
        
        
        /* 主内容区域模糊效果 */
        .content-wrapper {
            transition: filter 0.4s ease, opacity 0.4s ease;
        }
        
        .content-wrapper.blurred {
            filter: blur(5px) brightness(0.9);
            opacity: 0.8;
            pointer-events: none;
        }
        
        /* 导航栏 - 桌面端 */
        .main-nav {
            background-color: rgba(255, 255, 255, 0.08);
            border-radius: 10px 10px 0 0;
            position: relative;
        }
        
        .nav-list {
            display: flex;
            list-style: none;
            justify-content: space-between;
        }
        
        .nav-item {
            flex: 1;
        }
        
        .nav-link {
            display: block;
            text-align: center;
            padding: 16px 8px;
            color: white;
            text-decoration: none;
            font-weight: 500;
            border-bottom: 3px solid transparent;
            transition: all 0.3s;
            font-size: 15px;
        }
        
        .nav-link:hover, .nav-link.active {
            background-color: rgba(255, 255, 255, 0.15);
            border-bottom-color: white;
        }
        
        .nav-link i {
            margin-right: 8px;
            font-size: 16px;
        }
        
        /* 主内容布局 */
        .main-layout {
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 25px;
            padding: 25px 0;
        }
        
        /* 左侧主内容区 */
        .left-column {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }
        
        /* 右侧边栏 */
        .right-column {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }
        
        /* 本期字谜卡片 */
        .current-card {
            background: var(--card-bg);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shadow);
            border-top: 4px solid var(--primary-color);
        }
        
        .card-header {
            background: linear-gradient(to right, #f0f7ff, #e6f0ff);
            padding: 20px 25px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .card-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--primary-color);
        }
        
        .card-badge {
            background: var(--primary-color);
            color: white;
            padding: 6px 18px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 15px;
        }
        
        .card-body {
            padding: 25px;
        }
        
        .riddle-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 18px;
            margin-bottom: 25px;
        }
        
        .riddle-item {
            background: #f8fafc;
            border-radius: 12px;
            padding: 11px;
            border-left: 4px solid var(--primary-color);
            transition: transform 0.3s;
        }
        
        .riddle-item:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-hover);
        }
        
        .item-label {
            font-size: 14px;
            color: var(--primary-color);
            font-weight: 600;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .item-text {
            font-size: 20px;
            font-weight: 500;
            color: var(--text-primary);
        }
        
        .analysis-box {
            background: linear-gradient(to right, #f0f9ff, #f0f7ff);
            border-radius: 12px;
            padding: 22px;
            border-left: 4px solid var(--accent-color);
        }
        
        .analysis-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        /* 开奖信息卡片样式 */
        .lottery-card {
            background: var(--card-bg);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shadow);
            border-top: 4px solid #dc2626;
        }
        
        .lottery-header {
            padding: 18px 22px;
            background: linear-gradient(to right, #fee2e2, #fecaca);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .lottery-title {
            font-size: 18px;
            font-weight: 600;
            color: #991b1b;
        }
        
        .lottery-period {
            background: rgba(255, 255, 255, 0.3);
            color: #991b1b;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
        }
        
        .lottery-content {
            padding: 22px;
        }
        
        .lottery-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 20px;
        }
        
        .lottery-item {
            background: #fef2f2;
            border-radius: 10px;
            padding: 16px;
            border-left: 4px solid #ef4444;
            transition: transform 0.3s;
        }
        
        .lottery-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(239, 68, 68, 0.1);
        }
        
        /* 倒计时专用样式 */
        .lottery-djs {
            background: #fef2f2;
            border-radius: 10px;
            padding: 16px;
            border-left: 4px solid #ef4444;
            transition: transform 0.3s;
        }
        
        .lottery-djs:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(239, 68, 68, 0.1);
        }
        
        .lottery-label {
            font-size: 13px;
            color: #991b1b;
            font-weight: 600;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .lottery-numbers {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        
        .lottery-number {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 16px;
            box-shadow: 0 3px 6px rgba(239, 68, 68, 0.2);
        }
        
        .lottery-result {
            font-weight: 700;
            font-size: 14px;
            letter-spacing: 2px;
            color: #1e293b;
        }
        
        /* 重新设计的历史记录区 */
        .history-section {
            background: var(--card-bg);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        
        .section-header {
            padding: 18px 25px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .section-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .period-filter {
            display: flex;
            gap: 10px;
        }
        
        .filter-btn {
            padding: 6px 14px;
            background: #f1f5f9;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 13px;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
        }
        
        .filter-btn:hover, .filter-btn.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        .history-content {
            padding: 0;
        }
        
        /* 重新设计的历史记录布局 - 紧凑卡片式 */
        .history-list {
            display: flex;
            flex-direction: column;
        }
        
        .history-item {
            display: flex;
            align-items: center;
            padding: 18px 25px;
            border-bottom: 1px solid var(--border-color);
            transition: background-color 0.2s ease;
            min-height: 70px;
            position: relative;
        }
        
        .history-item:hover {
            background-color: #f8fafc;
        }
        
        .history-item:last-child {
            border-bottom: none;
        }
        
        /* 期数区域 - 左侧 */
        .period-info {
            flex: 0 0 140px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding-right: 20px;
            border-right: 1px solid #e2e8f0;
        }
        
        .period-number {
            font-size: 16px;
            font-weight: 700;
            color: var(--primary-color);
            line-height: 1.3;
        }
        
        .period-date {
            font-size: 13px;
            color: var(--text-secondary);
            margin-top: 4px;
        }
        
        /* 字谜内容区域 - 中间 */
        .riddle-content {
            flex: 1;
            padding: 0 20px;
            display: flex;
            align-items: center;
        }
        
        .riddle-text {
            font-size: 16px;
            line-height: 1.5;
            color: var(--text-primary);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            padding: 8px 0;
            font-weight: 500;
        }
        
        /* 开奖结果区域 - 右侧 */
        .result-info {
            flex: 0 0 160px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding-left: 20px;
            border-left: 1px solid #e2e8f0;
        }
        
        .result-numbers {
            display: flex;
            gap: 8px;
        }
        
        .result-number {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
            box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
        }
        
        /* 解析链接 - 最右侧 */
        .analyze-action {
            flex: 0 0 90px;
            display: flex;
            justify-content: center;
            align-items: center;
            padding-left: 20px;
        }
        
        .analyze-link {
            display: inline-block;
            padding: 8px 16px;
            background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
            color: white;
            text-decoration: none;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.3s;
            text-align: center;
            white-space: nowrap;
        }
        
        .analyze-link:hover {
            background: linear-gradient(to right, var(--primary-dark), #1e40af);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
        }
        
        .analyze-link i {
            margin-right: 6px;
            font-size: 12px;
        }
        
        /* 表格底部 */
        .table-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 25px;
            border-top: 1px solid var(--border-color);
            background: #f8fafc;
        }
        
        .table-info {
            font-size: 13px;
            color: var(--text-secondary);
        }
        
        .pagination {
            display: flex;
            gap: 6px;
        }
        
        .page-btn {
            width: 34px;
            height: 34px;
            border-radius: 6px;
            background: white;
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 13px;
            font-weight: 500;
        }
        
        .page-btn:hover, .page-btn.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        .page-btn i {
            font-size: 11px;
        }
        
        /* 图片卡片 */
        .image-card {
            background: var(--card-bg);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        
        .image-header {
            padding: 18px 22px;
            background: linear-gradient(to right, #fef3c7, #fde68a);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .image-title {
            font-size: 18px;
            font-weight: 600;
            color: #92400e;
        }
        
        .image-size {
            font-size: 14px;
            color: #92400e;
            background: rgba(255, 255, 255, 0.3);
            padding: 4px 12px;
            border-radius: 12px;
        }
        
        .image-container {
            padding: 22px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 18px;
        }
        
        .compact-image {
            background: #f8fafc;
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--border-color);
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }
        
        /* 页脚 */
        .site-footer {
            background: #1e293b;
            color: #cbd5e1;
            padding: 10px 0 25px;
            margin-top: 2px;
        }
        
        .copyright {
            text-align: center;
            padding-top: 25px;
            border-top: 1px solid #334155;
            color: #94a3b8;
            font-size: 14px;
        }
        
        /* 中奖信息样式 */
        .reward {
            background: #fafbfd;
            border-radius: 12px;
            padding: 0;
            font-size: 14px;
            color: var(--text-secondary);
            border: 1px solid #e9ecef;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
            margin-top: 10px;
            transition: all 0.3s ease;
        }
        
        .reward:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            border-color: #dee2e6;
        }
        
        .reward ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: grid;
        }
        
        .rewardTop {
            grid-template-columns: 1fr 1fr 1fr;
            background: #f1f3f5;
            color: #495057;
            font-weight: 500;
            font-size: 14px;
            border-bottom: 1px solid #e9ecef;
        }
        
        .rewardTop li {
            padding: 14px 12px;
            text-align: center;
            border-right: 1px solid #e9ecef;
            letter-spacing: 0.5px;
        }
        
        .rewardTop li:last-child {
            border-right: none;
        }
        
        .rewardMid {
            grid-template-columns: repeat(3, 1fr);
            max-height: 600px;
        }
        
        .rewardMid li {
            padding: 12px 10px;
            text-align: center;
            border-bottom: 1px solid #f1f3f5;
            border-right: 1px solid #f1f3f5;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 48px;
            font-size: 13.5px;
        }
        
        .rewardMid li:hover {
            background: #f8f9fa;
        }
        
        .rewardMid li:nth-child(3n) {
            border-right: none;
        }
        
        .rewardMid li:nth-child(odd) {
            background: #f8f9fa;
        }
        
        .rewardMid li:nth-child(1),
        .rewardMid li:nth-child(4),
        .rewardMid li:nth-child(7),
        .rewardMid li:nth-child(10),
        .rewardMid li:nth-child(13),
        .rewardMid li:nth-child(16),
        .rewardMid li:nth-child(19),
        .rewardMid li:nth-child(22),
        .rewardMid li:nth-child(25),
        .rewardMid li:nth-child(28),
        .rewardMid li:nth-child(31),
        .rewardMid li:nth-child(34) {
            font-weight: 500;
            color: #495057;
            background: #f8f9fa;
        }
        
        .rewardMid li:nth-child(3),
        .rewardMid li:nth-child(6),
        .rewardMid li:nth-child(9),
        .rewardMid li:nth-child(12),
        .rewardMid li:nth-child(15),
        .rewardMid li:nth-child(18),
        .rewardMid li:nth-child(21),
        .rewardMid li:nth-child(24),
        .rewardMid li:nth-child(27),
        .rewardMid li:nth-child(30),
        .rewardMid li:nth-child(33),
        .rewardMid li:nth-child(36) {
            color: #2b8a3e;
            font-weight: 500;
        }
        
        .rewardMid li:nth-child(3)::after,
        .rewardMid li:nth-child(6)::after,
        .rewardMid li:nth-child(9)::after,
        .rewardMid li:nth-child(12)::after,
        .rewardMid li:nth-child(15)::after,
        .rewardMid li:nth-child(18)::after,
        .rewardMid li:nth-child(21)::after,
        .rewardMid li:nth-child(24)::after,
        .rewardMid li:nth-child(27)::after,
        .rewardMid li:nth-child(30)::after,
        .rewardMid li:nth-child(33)::after,
        .rewardMid li:nth-child(36)::after {
            content: "元";
            font-size: 11px;
            margin-left: 3px;
            opacity: 0.7;
        }
        
        /* 新增的倒计时样式 */
        .countdown-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 10px 0;
        }
        
        .countdown-title {
            font-size: 16px;
            color: var(--text-secondary);
            margin-bottom: 10px;
            text-align: center;
            font-weight: 500;
        }
        
        .countdown-display {
            display: flex;
            justify-content: center;
            gap: 10px;
        }
        
        .time-unit {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .time-value {
            width: 50px;
            height: 60px;
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            color: white;
            font-size: 28px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .time-value::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 50%;
            background: rgba(255, 255, 255, 0.1);
        }
        
        .time-value::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
            animation: shine 2s infinite;
        }
        
        @keyframes shine {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }
        
        .time-label {
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 5px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .separator {
            color: var(--primary-color);
            font-size: 24px;
            font-weight: 700;
            display: flex;
            align-items: center;
            padding-top: 12px;
        }
        
        .countdown-status {
            font-size: 14px;
            padding: 8px 16px;
            border-radius: 20px;
            background: rgba(59, 130, 246, 0.1);
            color: var(--primary-color);
            font-weight: 500;
            text-align: center;
            transition: all 0.3s ease;
        }
        
        .countdown-status.active {
            background: rgba(34, 197, 94, 0.1);
            color: #16a34a;
        }
        
        .countdown-status.ended {
            background: rgba(239, 68, 68, 0.1);
            color: #dc2626;
        }
        
        .next-draw-info {
            font-size: 13px;
            color: var(--text-secondary);
            text-align: center;
            margin-top: 8px;
        }
        
        /* 倒计时动画效果 */
        .time-value.changing {
            transform: scale(1.05);
            box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
            animation: pulse 0.5s ease;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1.05); }
        }
        
        /* 夜晚模式下的倒计时样式 */
        .lottery-card.dark-mode .time-value {
            background: linear-gradient(135deg, #0ea5e9, #0369a1);
            box-shadow: 0 6px 15px rgba(14, 165, 233, 0.4);
        }
        
        .lottery-card.dark-mode .time-value::after {
            background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
        }
        
        /* 响应式设计 */
        @media (max-width: 1100px) {
            body .header-search {
                display: none;
            }
            
            .nav-link span {
                display: none;
            }
            
            .nav-link i {
                margin-right: 0;
                font-size: 18px;
            }
            
            .nav-link {
                padding: 16px 10px;
                font-size: 0;
            }
        }
        
        @media (max-width: 992px) {
            .header-content {
                flex-direction: row;
                align-items: center;
                gap: 15px;
            }
            
            .logo-area {
                order: 1;
                flex: 1;
            }
            
            .mobile-search-btn {
                order: 2;
                display: block;
            }
            
            .mobile-menu-toggle {
                order: 3;
                display: block;
            }
            
            .main-layout {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            /* 历史记录区移动端布局调整 - 标题和更多按钮在同一行 */
            .section-header {
                padding: 16px 20px;
                flex-direction: row;
                align-items: center;
                gap: 12px;
            }
            
            .period-filter {
                width: auto;
            }
            
            .filter-btn {
                padding: 6px 12px;
                font-size: 12px;
            }
            
            /* 倒计时响应式调整 */
            .time-value {
                width: 40px;
                height: 50px;
                font-size: 22px;
            }
            
            .separator {
                font-size: 20px;
                padding-top: 8px;
            }
            
            .countdown-title {
                font-size: 14px;
            }
            
            .time-label {
                font-size: 10px;
            }
        }
        
        @media (max-width: 768px) {
            .main-nav {
                display: none;
            }
            
            .current-card {
                margin-top: 15px;
            }
            
            .card-header {
                padding: 16px 18px;
		        flex-direction: row; /* 改为行布局 */
		        align-items: center; /* 垂直居中对齐 */
		        justify-content: space-between; /* 两端对齐 */
		        gap: 10px;
            }
            
            .card-title {
		        font-size: 19px;
		        flex: 1;
		        white-space: nowrap;
		        overflow: hidden;
		        text-overflow: ellipsis;
            }
            
            .card-badge {
			    align-self: center; /* 改为垂直居中 */
			    padding: 5px 12px;
			    font-size: 13px;
			    flex-shrink: 0; /* 防止徽章缩小 */
            }
            
            .card-body {
                padding: 16px;
            }
            
            .riddle-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
                margin-bottom: 16px;
            }
            
            .riddle-item {
                padding: 12px 10px;
                border-left-width: 3px;
                border-radius: 8px;
                min-height: 80px;
                display: flex;
                flex-direction: column;
                justify-content: center;
            }
            
            .item-label {
                font-size: 12px;
                margin-bottom: 4px;
            }
            
            .item-text {
                font-size: 15px;
                font-weight: 500;
            }
            
            .analysis-box {
                padding: 14px;
                border-radius: 8px;
                border-left-width: 3px;
            }
            
            .analysis-title {
                font-size: 15px;
                margin-bottom: 10px;
            }
            
            .analysis-box p {
                font-size: 13.5px;
                line-height: 1.5;
            }
            
            /* 移动端历史记录重新设计 */
            .history-item {
                flex-direction: column;
                align-items: flex-start;
                padding: 14px 18px;
                min-height: auto;
            }
            
            .period-info {
                flex: 0 0 auto;
                width: 100%;
                padding: 0 0 10px 0;
                border-right: none;
                border-bottom: 1px solid #e2e8f0;
                margin-bottom: 10px;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }
            
            .period-main {
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 100%;
            }
            
            .period-number {
                font-size: 15px;
            }
            
            .period-date {
                font-size: 12px;
                margin-top: 0;
            }
            
            .riddle-content {
                width: 100%;
                padding: 0;
                margin-bottom: 12px;
            }
            
            .riddle-text {
                font-size: 14px;
                line-height: 1.5;
                -webkit-line-clamp: 3;
                display: -webkit-box;
                padding: 0;
            }
            
            .result-info {
                flex: 0 0 auto;
                width: 100%;
                padding: 0;
                border-left: none;
                border-top: 1px solid #e2e8f0;
                padding-top: 12px;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }
            
            .result-numbers {
                display: flex;
                gap: 6px;
            }
            
            .result-number {
                width: 26px;
                height: 26px;
                font-size: 12px;
            }
            
            .analyze-action {
                flex: 0 0 auto;
                padding: 0;
                width: auto;
            }
            
            .analyze-link {
                padding: 5px 10px;
                font-size: 12px;
            }
            
            /* 移动端reward版块高度压缩，使其可滚动 */
            .reward {
                max-height: 300px;
                overflow: hidden;
                display: flex;
                flex-direction: column;
            }
            
            .rewardMid {
                overflow-y: auto;
                flex: 1;
            }
            
            /* 倒计时进一步调整 */
            .time-value {
                width: 35px;
                height: 45px;
                font-size: 20px;
            }
            
            .separator {
                font-size: 18px;
                padding-top: 6px;
            }
            
            .countdown-display {
                gap: 6px;
            }
        }
        
        @media (max-width: 480px) {
            .card-body, .history-content, .image-container, .lottery-content {
                padding: 14px;
            }
            
            .card-header, .section-header, .image-header, .lottery-header {
                padding: 14px 16px;
            }
            
            .logo-text h1 {
                font-size: 20px;
            }
            
            .logo-icon {
                width: 40px;
                height: 40px;
                font-size: 20px;
            }
            
            .card-body {
                padding: 14px;
            }
            
            .riddle-grid {
                gap: 8px;
                margin-bottom: 14px;
            }
            
            .riddle-item {
                padding: 10px 8px;
                min-height: 75px;
            }
            
            .item-label {
                font-size: 12px;
                margin-bottom: 4px;
            }
            
            .item-text {
                font-size: 14px;
            }
            
            .analysis-box {
                padding: 12px;
            }
            
            .analysis-title {
                font-size: 14px;
                margin-bottom: 8px;
            }
            
            .analysis-box p {
                font-size: 13px;
                line-height: 1.5;
            }
            
            /* 移动端历史记录进一步压缩 */
            .history-item {
                padding: 12px 16px;
            }
            
            .period-info {
                padding-bottom: 8px;
                margin-bottom: 8px;
            }
            
            .riddle-content {
                margin-bottom: 10px;
            }
            
            .riddle-text {
                font-size: 13.5px;
                line-height: 1.4;
            }
            
            .result-info {
                padding-top: 10px;
            }
            
            .result-number {
                width: 24px;
                height: 24px;
                font-size: 11px;
            }
            
            .analyze-link {
                padding: 4px 8px;
                font-size: 11px;
            }
        }
        
        @media (max-width: 380px) {
            .compact-image {
                width: 140px;
                height: 210px;
            }
            
            .container {
                padding: 0 15px;
            }
            
            .card-title {
                font-size: 18px;
            }
            
            .card-badge {
                padding: 4px 10px;
                font-size: 12px;
            }
            
            .riddle-grid {
                gap: 6px;
            }
            
            .riddle-item {
                padding: 8px 6px;
                min-height: 70px;
            }
            
            .item-label {
                font-size: 11px;
            }
            
            .item-text {
                font-size: 13px;
            }
            
            .analysis-box p {
                font-size: 12.5px;
            }
            
            .filter-btn {
                padding: 5px 10px;
                font-size: 12px;
            }
            
            /* 移动端历史记录最小尺寸优化 */
            .history-item {
                padding: 10px 14px;
            }
            
            .period-number {
                font-size: 14px;
            }
            
            .period-date {
                font-size: 11px;
            }
            
            .riddle-text {
                font-size: 13px;
                line-height: 1.4;
            }
            
            .result-number {
                width: 22px;
                height: 22px;
                font-size: 10px;
            }
            
            .analyze-link {
                padding: 3px 6px;
                font-size: 10px;
            }
            
            .analyze-link i {
                margin-right: 4px;
            }
        }
        
        @media (max-width: 320px) {
            .compact-image {
                width: 120px;
                height: 180px;
            }
            
            .riddle-grid {
                grid-template-columns: 1fr;
                gap: 8px;
            }
            
            .riddle-item {
                padding: 10px 12px;
                min-height: auto;
            }
            
            .item-text {
                font-size: 14px;
            }
            
            .analysis-box {
                padding: 10px;
            }
            
            .analysis-title {
                font-size: 13px;
            }
            
            .analysis-box p {
                font-size: 12px;
            }
            
            /* 移动端历史记录超小屏优化 */
            .history-item {
                padding: 8px 12px;
            }
            
            .period-number {
                font-size: 13px;
            }
            
            .period-date {
                font-size: 10px;
            }
            
            .riddle-text {
                font-size: 12px;
                line-height: 1.3;
            }
            
            .result-number {
                width: 20px;
                height: 20px;
                font-size: 9px;
            }
            
            .analyze-link {
                padding: 2px 4px;
                font-size: 9px;
            }
            
            .analyze-link i {
                font-size: 10px;
            }
        }
        
        
        
        
        /* 友情链接区域 */
        @media (max-width: 768px) {
        body .friend-links-grid {
            grid-template-columns: repeat(2, 1fr); /* 改回2列 */
        }
}
        .friend-links {
            background: #f8fafc;
            padding: 40px 0;
            margin-top: 40px;
            border-top: 1px solid #e2e8f0;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .friend-links .container {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }
        
        .friend-links-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .friend-links-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .friend-links-title i {
            font-size: 20px;
        }
        
        .friend-links-description {
            font-size: 15px;
            color: var(--text-secondary);
            max-width: 600px;
            line-height: 1.5;
        }
        
        .friend-links-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); 
            gap: 15px;
        }
        
        .friend-link-item {
            display: flex;
            align-items: center;
            padding: 15px 20px;
            background: white;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
            text-decoration: none;
            color: var(--text-primary);
            box-shadow: var(--shadow);
        }
        
        .friend-link-item:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
            border-color: var(--primary-color);
            background: #f0f7ff;
        }
        
        .friend-link-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            margin-right: 15px;
            flex-shrink: 0;
        }
        
        .friend-link-content {
            flex: 1;
        }
        
        .friend-link-name {
            font-weight: 600;
            font-size: 16px;
            margin-bottom: 4px;
            color: var(--text-primary);
        }
        
        .friend-link-desc {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.4;
        }