/* ============================================
  彩票走势分析系统 - 主样式文件
  count.css - 炫酷发光版
  包含：基础样式、布局、走势分析、开奖统计、遗漏统计
============================================ */

/* Font Awesome CDN 引入 */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding: 15px;
    line-height: 1.5;
    color: #e0e0e0;
}

/* 容器布局 */
.container {
    max-width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    padding: 20px;
    overflow-x: auto;
    backdrop-filter: blur(10px);
}

/* 页面头部样式 */
.header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    position: relative;
}

.header h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.header h1 i {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #667eea;
    margin-right: 10px;
}

.header .subtitle {
    color: #888;
    font-size: 13px;
    margin-top: 5px;
}

/* ============================================
   标签页按钮 - 炫酷发光版
============================================ */

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
    flex-wrap: wrap;
    padding: 5px;
    position: relative;
}

.tab-btn {
    position: relative;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    min-width: 120px;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tab-btn i {
    margin-right: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

/* 走势分析按钮 - 蓝色 */
.tab-btn:nth-child(1) {
    background: linear-gradient(135deg, #fff, #e8f0fe);
    border-bottom: 3px solid #1a73e8;
}

.tab-btn:nth-child(1):hover {
    background: linear-gradient(135deg, #1a73e8, #0d5bbf);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 115, 232, 0.4);
}

.tab-btn:nth-child(1).active {
    background: linear-gradient(135deg, #1a73e8, #0d5bbf);
    color: white;
    box-shadow: 0 0 20px rgba(26, 115, 232, 0.6);
    border-bottom: none;
}

/* 开奖统计按钮 - 绿色 */
.tab-btn:nth-child(2) {
    background: linear-gradient(135deg, #fff, #e8f5e9);
    border-bottom: 3px solid #2e7d32;
}

.tab-btn:nth-child(2):hover {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.4);
}

.tab-btn:nth-child(2).active {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    box-shadow: 0 0 20px rgba(46, 125, 50, 0.6);
    border-bottom: none;
}

/* 遗漏统计按钮 - 橙色 */
.tab-btn:nth-child(3) {
    background: linear-gradient(135deg, #fff, #fff3e0);
    border-bottom: 3px solid #e65100;
}

.tab-btn:nth-child(3):hover {
    background: linear-gradient(135deg, #e65100, #bf360c);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 81, 0, 0.4);
}

.tab-btn:nth-child(3).active {
    background: linear-gradient(135deg, #e65100, #bf360c);
    color: white;
    box-shadow: 0 0 20px rgba(230, 81, 0, 0.6);
    border-bottom: none;
}

/* 下期预测按钮 - 紫色 */
.tab-btn:nth-child(4) {
    background: linear-gradient(135deg, #fff, #f3e5f5);
    border-bottom: 3px solid #7b1fa2;
}

.tab-btn:nth-child(4):hover {
    background: linear-gradient(135deg, #7b1fa2, #4a148c);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(123, 31, 162, 0.4);
}

.tab-btn:nth-child(4).active {
    background: linear-gradient(135deg, #7b1fa2, #4a148c);
    color: white;
    box-shadow: 0 0 20px rgba(123, 31, 162, 0.6);
    border-bottom: none;
}

/* 悬停图标动画 */
.tab-btn:hover i {
    transform: scale(1.15) rotate(8deg);
}

/* 活跃状态脉冲效果 */
.tab-btn.active {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* 按钮点击波纹效果 */
.tab-btn {
    position: relative;
    overflow: hidden;
}

.tab-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.tab-btn:active::after {
    width: 150%;
    height: 150%;
}

/* 筛选条件区域 */
.filter-section {
    background: rgba(249, 249, 249, 0.9);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(5px);
}

@media (min-width: 768px) {
    .filter-section {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    margin-bottom: 5px;
    color: #555;
    font-weight: 600;
    font-size: 12px;
}

.filter-label i {
    margin-right: 5px;
    color: #667eea;
}

.filter-select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    background: white;
    height: 36px;
    transition: all 0.2s;
}

.filter-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* 小屏幕筛选条件布局优化 */
@media (max-width: 767px) {
    .filter-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .filter-group:nth-child(1),
    .filter-group:nth-child(2) {
        grid-column: span 1;
    }
    
    .filter-group:nth-child(3),
    .filter-group:nth-child(4) {
        grid-column: span 1;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .filter-section {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .filter-group {
        grid-column: span 1 !important;
    }
}

/* 分析按钮 */
.analysis-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 5px;
    margin-bottom: 10px;
}

.analysis-btn {
    padding: 8px 5px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 36px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.analysis-btn i {
    margin-right: 6px;
    font-size: 12px;
}

.analysis-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.analysis-btn.active {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 0 15px rgba(240, 147, 251, 0.5);
    font-weight: bold;
}

.analysis-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.analysis-btn:active::after {
    width: 120%;
    height: 120%;
}

/* 数据信息显示 */
.data-info {
    background: linear-gradient(135deg, #e8f0fe, #d4e4fc);
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    font-size: 12px;
    color:#000;
    line-height: 1.4;
}

.data-info i {
    margin-right: 5px;
    color: #667eea;
}

.data-info .title {
    font-weight: bold;
    color: #667eea;
}

.data-info .count {
    font-size: 16px;
    color: #4CAF50;
    font-weight: bold;
}

/* 结果区域标题 */
.result-section {
    margin-top: 20px;
}

.result-title {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid linear-gradient(135deg, #667eea, #764ba2);
}

.result-title i {
    margin-right: 8px;
    color: #667eea;
}

/* 无数据提示 */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
    background-color: #f9f9f9;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px dashed #ddd;
}

.no-data i {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    color: #ccc;
}

/* ============================================
   开奖统计表格样式
============================================ */

/* 开奖统计表格样式 */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    font-size: 13px;
}

.stats-table thead {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.stats-table th {
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    white-space: nowrap;
}

.stats-table th i {
    margin-right: 5px;
}

.stats-table th.sortable {
    cursor: pointer;
    transition: background-color 0.2s;
    padding-right: 20px;
}

.stats-table th.sortable:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.stats-table th .sort-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;

    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
}

.stats-table th .sort-icon.asc:after {
    content: "↑";
    font-weight: bold;
}

.stats-table th .sort-icon.desc:after {
    content: "↓";
    font-weight: bold;
}

.stats-table th:last-child {
    border-right: none;
}

.stats-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.stats-table tbody tr:hover {
    background-color: #f9f9f9;
}

.stats-table tbody tr:last-child {
    border-bottom: none;
}

.stats-table td {
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid #f0f0f0;
}

.stats-table td:last-child {
    border-right: none;
}

/* 号码单元格样式 */
.number-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    line-height: 1;
    border-radius: 50%;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    margin: 0 auto;
    cursor: default;
}

.number-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 红、蓝、绿三种颜色的号码背景 */
.number-red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: 1px solid #e74c3c;
}

.number-blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: 1px solid #3498db;
}

.number-green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: 1px solid #2ecc71;
}

/* 柱状条样式 */
.bar-container {
    display: inline-flex;
    align-items: center;
    width: 150px;
    height: 24px;
    background-color: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 8px;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bar-fill {
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.5s ease-out;
    min-width: 2px;
    position: relative;
    overflow: hidden;
}

/* 添加柱状条纹效果 */
.bar-fill:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.bar-text {
    display: inline-block;
    font-weight: bold;
    color: #2c3e50;
    font-size: 12px;
    vertical-align: middle;
    min-width: 50px;
    text-align: left;
}

/* 统计表格中的列样式 */
.latest-col {
    color: #7f8c8d;
    font-size: 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 6px 10px;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

.percent-col {
    font-weight: bold;
    color: #e74c3c;
    background-color: #fff5f5;
    border-radius: 4px;
    padding: 6px 10px;
    min-width: 60px;
    white-space: nowrap;
}

.count-cell {
    min-width: 180px;
    text-align: left;
    padding-left: 20px;
}

/* ============================================
   遗漏统计表格样式
============================================ */

.omission-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.omission-table th,
.omission-table td {
    border: 1px solid #ddd;
    padding: 8px 6px;
    text-align: center;
}

.omission-table th {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    font-weight: 600;
    color: #333;
}

.omission-table th i {
    margin-right: 5px;
}

.omission-table tr:nth-child(even) {
    background: #f9f9f9;
}

.omission-cell {
    padding: 2px 4px;
    min-width: 25px;
    border-radius: 3px;
    font-weight: 500;
    transition: all 0.2s;
}

.current-omission {
    background: linear-gradient(135deg, #FF5252, #D32F2F);
    color: white;
    border-radius: 3px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(255, 82, 82, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}

/* 遗漏统计号码的样式 */
.omission-table .number-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 1;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    margin: 0 auto;
}

.omission-table .number-bg-red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: 1px solid #e74c3c;
}

.omission-table .number-bg-blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: 1px solid #3498db;
}

.omission-table .number-bg-green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: 1px solid #2ecc71;
}

/* ============================================
   走势分析样式
============================================ */

/* 走势图容器 */
.trend-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    margin-top: 20px;
    overflow-x: auto;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 走势画布 */
.trend-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: transparent;
}

/* 走势表格 */
.trend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0);
    border-radius: 4px;
}

.trend-table th,
.trend-table td {
    border: 1px solid #e8e8e8;
    text-align: center;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
}

.trend-table th {
    background: rgba(245, 245, 245, 0.9);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 2;
    color: #333;
}

/* 缩小期数和开奖日期列 */
.period-col {
    width: 45px;
    min-width: 30px;
    max-width: 30px;
    padding: 4px 6px;
    font-size: 9px;
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
}

.date-col {
    width: 55px;
    min-width: 55px;
    max-width: 55px;
    padding: 4px 6px;
    font-size: 9px;
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
}

/* 开奖号码列样式 */
.number-col {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    padding: 4px 6px;
    font-size: 10px;
    font-weight: bold;
    color: #333;
    background: #f0f7ff;
    border-left: 2px solid #667eea;
    border-right: 2px solid #667eea;
}

/* 号码显示样式 */
.trend-number {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #333;
    font-weight: bold;
    text-align: center;
    border: 1px solid #ddd;
}

/* 表头01-49号码列样式 */
.num-col {
    width: 15px;
    min-width: 15px;
    max-width: 15px;
    padding: 2px 1px;
    text-align: center;
    position: relative;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* 趋势点样式（用于01-49列的大小） */
.trend-dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    line-height: 15px;
    border-radius: 50%;

    color: white;
    font-weight: bold;
    text-align: center;
    z-index: 3;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 9px;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.trend-dot:hover {
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 10;
}

/* 属性列样式（用于生肖、五行等分析类型） */
.attribute-col {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    padding: 4px 2px;
    text-align: center;
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* 属性点样式 */
.attribute-dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    font-weight: bold;
    text-align: center;
    z-index: 10;
    position: relative;
    cursor: pointer;
    background: transparent;
    color: transparent;
    border: none;
    box-shadow: none;
    transition: all 0.3s;
}

.attribute-dot:hover {
    transform: scale(1.2);
}

/* 趋势点样式（用于属性列） */
.trend-point {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    font-weight: bold;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* 号码列的彩色点 */
.number-col .trend-point {
    width: 20px;
    height: 20px;
    line-height: 20px;
    color: white;
    font-weight: bold;
}

/* 统一颜色类 */
.color-red { 
    color: #FF5252 !important; 
}

.color-green { 
    color: #4CAF50 !important; 
}

.color-blue { 
    color: #2196F3 !important; 
}

.color-orange { 
    color: #FF9800 !important; 
}

.color-purple { 
    color: #9C27B0 !important; 
}

.color-yellow { 
    color: #FFC107 !important; 
}

.color-brown { 
    color: #795548 !important; 
}

/* 号码背景色 */
.number-bg-red {
    background-color: #FF5252 !important;
    color: white !important;
}

.number-bg-green {
    background-color: #4CAF50 !important;
    color: white !important;
}

.number-bg-blue {
    background-color: #2196F3 !important;
    color: white !important;
}

/* 列标题背景色样式 */
.trend-table th.col-header-red {
    background-color: #FF5252 !important;
    color: white !important;
}

.trend-table th.col-header-green {
    background-color: #4CAF50 !important;
    color: white !important;
}

.trend-table th.col-header-blue {
    background-color: #2196F3 !important;
    color: white !important;
}

/* 号码列中的点 开奖号码 */
.number-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 1;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    z-index: 10;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.number-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

/* 表格行悬停效果 */
.trend-table tbody tr:hover {
    background-color: rgba(240, 247, 255, 0.8);
}

/* 表格行斑马条纹 */
.trend-table tbody tr:nth-child(even) {
    background-color: rgba(249, 249, 249, 0.8);
}

.trend-table tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   响应式设计
============================================ */

/* 手机端优化 */
@media (max-width: 767px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 18px;
    }
    
    .tab-buttons {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 8px 18px;
        font-size: 13px;
        min-width: 85px;
    }
    
    .tab-btn i {
        margin-right: 5px;
        font-size: 12px;
    }
    
    .filter-section {
        padding: 12px;
        gap: 10px;
    }
    
    .analysis-buttons {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 5px;
    }
    
    .analysis-btn {
        font-size: 10px;
        padding: 6px 4px;
    }
    
    .analysis-btn i {
        margin-right: 3px;
        font-size: 10px;
    }
    
    /* 开奖统计表格响应式 */
    .stats-table {
        font-size: 12px;
    }
    
    .stats-table th,
    .stats-table td {
        padding: 6px 4px;
    }
    
    .number-cell {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .bar-container {
        width: 100px;
        height: 18px;
    }
    
    .bar-text {
        font-size: 11px;
    }
    
    .percent-col {
        font-size: 12px;
        padding: 4px 6px;
    }
    
    .latest-col {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    .count-cell {
        min-width: 140px;
        padding-left: 10px;
    }
    
    .stats-table th .sort-icon {
        right: 4px;
        font-size: 10px;
    }
    
    /* 遗漏统计表格响应式 */
    .omission-table {
        font-size: 11px;
    }
    
    /* 走势分析响应式 */
    .period-col {
        width: 35px;
        min-width: 35px;
        max-width: 35px;
        font-size: 10px;
    }
    
    .date-col {
        width: 60px;
        min-width: 60px;
        max-width: 60px;
        font-size: 10px;
    }
    
    .number-col {
        width: 28px;
        min-width: 28px;
        max-width: 28px;
        font-size: 10px;
    }
    
    .num-col {
        width: 15px;
        min-width: 15px;
        max-width: 15px;
        padding: 1px 0;
        font-size: 9px;
    }
    
    .trend-dot {
        width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 9px;
    }
    
    .attribute-col {
        width: 18px;
        min-width: 18px;
        max-width: 18px;
    }
    
    .trend-point {
        width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 10px;
    }
    
    .number-col .trend-point {
        width: 20px;
        height: 20px;
        line-height: 20px;
    }
    
    .number-dot {
        width: 20px;
        height: 20px;
        line-height: 20px;
    }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .header h1 {
        font-size: 16px;
    }
    
    .header .subtitle {
        font-size: 11px;
    }
    
    .analysis-buttons {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .tab-buttons {
        gap: 6px;
    }
    
    .tab-btn {
        min-width: 60px;
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .filter-label {
        font-size: 11px;
    }
    
    .filter-select {
        font-size: 12px;
        padding: 6px 8px;
        height: 34px;
    }
    
    .result-title {
        font-size: 14px;
    }
    
    .data-info {
        font-size: 11px;
    }
    
    /* 开奖统计表格响应式 */
    .stats-table {
        font-size: 11px;
    }
    
    .number-cell {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .bar-container {
        width: 80px;
        height: 16px;
    }
    
    .bar-text {
        font-size: 10px;
        min-width: 40px;
    }
    
    .percent-col {
        font-size: 11px;
    }
    
    .latest-col {
        font-size: 10px;
    }
    
    /* 走势分析响应式 */
    .period-col {
        width: 35px;
        min-width: 35px;
        max-width: 35px;
        font-size: 9px;
    }
    
    .date-col {
        width: 50px;
        min-width: 50px;
        max-width: 50px;
        font-size: 9px;
    }
    
    .num-col {
        width: 15px;
        min-width: 15px;
        max-width: 15px;
        font-size: 9px;
    }
    
    .trend-dot {
        width: 15px;
        height: 15px;
        line-height: 15px;
        font-size: 8px;
    }
}

/* 平板设备优化 */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    
    .analysis-buttons {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* 桌面设备优化 */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }
}

/* 打印样式 */
@media print {
    .tab-buttons,
    .filter-section,
    .analysis-buttons {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
        padding: 0;
        max-width: 100%;
        background: white;
    }
    
    .header {
        page-break-after: avoid;
    }
    
    .trend-canvas {
        display: none;
    }
    
    .trend-table,
    .stats-table,
    .omission-table {
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .trend-table th,
    .trend-table td,
    .stats-table th,
    .stats-table td,
    .omission-table th,
    .omission-table td {
        border: 1px solid #000;
    }
    
    .stats-table th {
        background: #ddd !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
    }
    
    .number-cell,
    .number-red,
    .number-blue,
    .number-green,
    .number-bg-red,
    .number-bg-green,
    .number-bg-blue {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .bar-fill {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* 滚动条样式美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #f093fb);
}

/* ============================================
   移动端区间列样式
============================================ */
@media (max-width: 767px) {
    .num-col.interval-col {
        position: relative;
        min-width: 55px;
        width: 55px;
    }
    
    .num-col.interval-col .trend-dot {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        white-space: nowrap;
        z-index: 10;
        left: 50%;
    }
    
    /* 精简模式下固定期数、日期、号码列 */
    .trend-table .period-col {
        position: sticky;
        left: 0;
        background: #f8f9fa;
        z-index: 3;
        width: 35px;
        min-width: 35px;
    }
    
    .trend-table .date-col {
        position: sticky;
        left: 35px;
        background: #f8f9fa;
        z-index: 3;
        width: 50px;
        min-width: 50px;
    }
    
    .trend-table .number-col {
        position: sticky;
        left: 85px;
        background: #f0f7ff;
        z-index: 3;
        width: 35px;
        min-width: 35px;
    }
}