* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: white;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.function-row {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.function-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.function-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

.function-title i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.btn {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

.btn-secondary {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

.numbers-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.red-ball {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.blue-ball {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.result-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 5px solid #3498db;
}

.result-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
}

.control-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.note {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 15px;
    line-height: 1.5;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 开奖结果表格样式 */
.draw-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.draw-table th {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    text-align: center;
    padding: 12px 8px;
    font-weight: 600;
}

.draw-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.draw-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.draw-table tr:hover {
    background-color: #f0f7f6;
}

.draw-table td {
    padding: 12px 8px;
    text-align: center;
    vertical-align: middle;
}

.pool-cell {
    font-weight: 600;
    color: #e74c3c;
}

.prize-info {
    background: #fff8e1;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #f39c12;
}

.prize-info h4 {
    color: #e67e22;
    margin-bottom: 10px;
}

.prize-info ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.prize-info li {
    margin-bottom: 5px;
}

/* 走势图样式 */
.trend-container {
    margin-top: 20px;
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.trend-header {
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    color: #2c3e50;
}

.trend-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.trend-table th {
    background: #3498db;
    color: white;
    font-weight: 600;
    padding: 10px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.trend-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.trend-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.trend-table tr:hover {
    background-color: #f0f7f6;
}

.number-cell {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin: 2px;
}

.trend-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.trend-periods {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trend-periods select {
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: white;
}

.trend-stats {
    margin-top: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.stat-label {
    font-weight: 600;
    color: #555;
}

.stat-value {
    font-weight: 600;
    color: #2c3e50;
}

.highlight {
    color: #e74c3c;
    font-weight: bold;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .draw-table {
        font-size: 0.85rem;
    }
    
    .number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .trend-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .trend-periods {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
}