/* 响应式样式 */

/* 大屏幕 */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* 中等屏幕 */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
}

/* 平板电脑 */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .lottery-type-selector {
        flex-wrap: wrap;
    }
    
    .lottery-tab {
        margin-bottom: 10px;
        padding: 8px 15px;
    }
    
    .lottery-info {
        padding: 0 10px;
    }
    
    .lottery-period {
        margin-bottom: 15px;
    }
    
    .view-history-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .lottery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .lottery-header .view-history-btn {
        margin-top: 10px;
    }
    
    /* 平板电脑表格响应式 */
    .material-table, .material-data-table table, .preview-table, .history-table {
        font-size: 14px;
    }
}

/* 手机 */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .site-header {
        padding: 0.8rem;
    }
    
    .site-logo {
        max-width: 150px;
    }
    
    .announcement {
        padding: 0.8rem;
        font-size: 14px;
    }
    
    .lottery-section {
        margin-bottom: 20px;
    }
    
    .lottery-type-selector {
        flex-direction: row;
        justify-content: center;
        padding: 8px;
        flex-wrap: wrap;
    }
    
    .lottery-tab {
        margin: 0 5px 8px;
        padding: 8px 15px;
        width: auto;
        text-align: center;
    }
    
    .lottery-info {
        flex-direction: column;
        max-width: 100%;
        padding: 10px;
    }
    
    body[class*="theme-style-enabled"] .lottery-info {
        padding: 12px;
        background-color: rgba(255, 255, 255, 0.7);
    }
    
    .lottery-period {
        margin-bottom: 10px;
    }
    
    .lottery-period h4 {
        font-size: 16px;
    }
    
    .lottery-numbers {
        padding: 10px;
    }
    
    .number-ball {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    
    .view-history-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .history-lottery-ball {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    .history-table {
        font-size: 13px;
    }
    
    .history-table th,
    .history-table td {
        padding: 6px;
    }
    
    .material-title {
        font-size: 18px;
    }
    
    .material-info {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-item {
        height: 150px;
    }
    
    .slider-wrapper {
        height: 300px;
    }
    
    .slider-caption span {
        font-size: 16px;
    }
    
    .footer-links a {
        font-size: 12px;
        margin: 0 5px;
    }
    
    /* 手机表格响应式 */
    .material-table, .material-data-table table, .preview-table, .history-table {
        font-size: 13px;
        margin: 0;
        padding: 0;
    }
    
    .material-single-table {
        padding: 0;
        margin: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }
    
    .homepage-materials-tables {
        padding: 0;
        margin: 0;
    }
    
    .material-table th, .material-data-table th, .preview-table th, .history-table th,
    .material-table td, .material-data-table td, .preview-table td, .history-table td {
        padding: 4px 2px;
        word-break: break-word;
        border: 1px solid #ccc;
    }
    
    /* 确保表格可以水平滚动但移除可能的多余空间 */
    .material-data-table, .material-single-table, .preview-table {
        overflow-x: visible;
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* 移动设备上优化表格标题 */
    .material-table-title {
        margin: 0 0 5px 0;
        padding: 0;
        border-bottom: none;
    }
    
    /* 移动设备整体容器 */
    .site-content-inner,
    .site-content,
    .container,
    .homepage-materials-section,
    .section-header {
        padding: 0;
        margin: 0 0 10px 0;
    }
    
    /* 调整标题位置 */
    .section-header h2,
    .jingxuan-zixiao {
        margin: 0;
        padding: 0;
        text-align: left;
    }
    
    /* 调整查看全部链接 */
    .material-table-more,
    .material-single-table-more {
        text-align: right;
        margin: 10px 0 0 0;
        padding: 0;
    }
    
    /* 确保所有表格内容左对齐 */
    .material-table td:first-child,
    .material-data-table td:first-child,
    .material-table td:last-child,
    .material-data-table td:last-child,
    .material-table th:first-child,
    .material-data-table th:first-child,
    .material-table th:last-child,
    .material-data-table th:last-child {
        text-align: left;
    }
}

/* 小手机 */
@media (max-width: 480px) {
    .number-ball {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .lottery-period h4 {
        font-size: 14px;
    }
    
    .lottery-numbers {
        padding: 8px;
    }
    
    .lottery-draw-time {
        font-size: 11px;
    }
    
    .next-draw-info {
        padding: 10px;
    }
    
    .next-draw-info h5 {
        font-size: 14px;
    }
    
    .history-lottery-ball {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .history-table th,
    .history-table td {
        padding: 5px;
        font-size: 12px;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        grid-gap: 15px;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .slider-wrapper {
        height: 250px;
    }
    
    .slider-caption span {
        font-size: 14px;
    }
    
    .creative-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .creative-gallery-item {
        height: 220px;
    }
    
    .material-actions .button {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .material-pagination .page-numbers {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    /* 小手机表格响应式 */
    .material-table, .material-data-table table, .preview-table, .history-table {
        font-size: 12px;
        margin: 0;
        padding: 0;
    }
    
    .material-single-table {
        padding: 0;
        margin: 0;
    }
    
    .material-table th, .material-data-table th, .preview-table th, .history-table th,
    .material-table td, .material-data-table td, .preview-table td, .history-table td {
        padding: 3px 2px;
        word-break: break-word;
        border: 1px solid #ccc;
    }
    
    /* 进一步减小文字间距，保持左对齐 */
    .material-table td:first-child,
    .material-table td:nth-child(2),
    .material-table td:last-child {
        padding: 3px 1px;
        text-align: left;
    }
    
    /* 强制小手机上也无边距 */
    .container,
    .site-content-inner,
    .site-content {
        padding: 0;
        margin: 0;
    }
} 