/*
Theme Name: 杀号分析系统
Theme URI: http://你的域名
Description: 专业的彩票杀号分析预测系统
Version: 1.0
Author: 你的名字
*/

/* 你原始的所有CSS样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1a2a6c, #b21f1f, #fdbb2d);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

h1 {
    color: #1a2a6c;
    margin-bottom: 10px;
    font-size: 32px;
}

.description {
    color: #666;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.input-section, .formula-section, .result-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.history-section {
    grid-column: 1 / -1;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

h2 {
    color: #1a2a6c;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e8ed;
    display: flex;
    align-items: center;
}

h2 i {
    margin-right: 10px;
    color: #b21f1f;
}

textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

select, input[type="number"], input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px;
    font-weight: bold;
}

.btn:hover {
    background: linear-gradient(135deg, #b21f1f, #1a2a6c);
    transform: translateY(-2px);
}

.btn-large {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 10px;
}

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

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

.btn-external {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.btn-select-all {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.btn-verify {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    margin-top: 10px;
}

.number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 10px;
    background: #ecf0f1;
    color: #2c3e50;
}

.killed {
    background: #e74c3c;
    color: white;
}

.survived {
    background: #2ecc71;
    color: white;
}

.stats {
    margin-top: 15px;
    padding: 12px;
    background: #f1f8ff;
    border-radius: 5px;
    border-left: 4px solid #1a2a6c;
    font-size: 12px;
}

.stats p {
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

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

.prediction-info {
    background: #fffacd;
    padding: 12px;
    border-radius: 5px;
    margin-top: 12px;
    border-left: 4px solid #fdbb2d;
    font-size: 12px;
}

.accuracy-stats {
    background: #e8f5e9;
    padding: 12px;
    border-radius: 5px;
    margin-top: 12px;
    border-left: 4px solid #2ecc71;
    font-size: 12px;
}

.format-support {
    background: #fffacd;
    padding: 8px;
    border-radius: 5px;
    margin-top: 8px;
    font-size: 11px;
}

.verification-section {
    background: #e8f4fd;
    padding: 12px;
    border-radius: 5px;
    margin-top: 12px;
    border-left: 4px solid #3498db;
    font-size: 12px;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #7f8c8d;
    font-size: 12px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    background: #2ecc71;
    color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    font-size: 12px;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: #e74c3c;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 11px;
}

.history-table th,
.history-table td {
    padding: 6px;
    text-align: center;
    border: 1px solid #ddd;
}

.history-table th {
    background: #1a2a6c;
    color: white;
}

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

.correct {
    background: #d4edda;
    color: #155724;
}

.wrong {
    background: #f8d7da;
    color: #721c24;
}

.input-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.record-info {
    margin-top: 8px;
    font-size: 12px;
    color: #7f8c8d;
}

.formula-category {
    margin-top: 10px;
    padding: 8px;
    background: #e8f4fd;
    border-radius: 5px;
    font-size: 11px;
}

.formula-category h3 {
    margin: 0 0 5px 0;
    color: #1a2a6c;
    font-size: 12px;
}

.formula-category-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    cursor: pointer;
}

.formula-category-checkbox input {
    margin-right: 8px;
}

.formula-category-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.formula-category-actions .btn {
    flex: 1;
    font-size: 11px;
    padding: 6px 10px;
}

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .history-section {
        grid-column: 1;
    }
    
    .result-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 768px) {
    .result-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
/* ========== 开奖记录管理新增样式 ========== */

.input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
    font-size: 14px;
}

.history-textarea {
    width: 100%;
    height: 300px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Microsoft YaHei', monospace;
    resize: vertical;
    transition: border-color 0.3s;
    line-height: 1.6;
    background: white;
    color: #333;
}

.history-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.history-textarea::placeholder {
    color: #6c757d;
    font-style: italic;
}

.btn-clean {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    margin: 5px;
}

.btn-clean:hover {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    margin: 5px;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    transform: translateY(-2px);
}

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

/* 确保按钮样式一致性 */
.btn-primary {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    margin: 5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b21f1f, #1a2a6c);
    transform: translateY(-2px);
}

/* 开奖记录信息区域样式优化 */
.record-info {
    background: #e8f4fd;
    padding: 12px;
    border-radius: 5px;
    margin-top: 12px;
    border-left: 4px solid #3498db;
    font-size: 14px;
}

.record-info p {
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

/* 输入操作按钮组样式优化 */
.input-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .history-textarea {
        height: 250px;
        font-size: 16px; /* 移动端防止缩放 */
    }
    
    .input-actions {
        flex-direction: column;
    }
    
    .input-actions .btn {
        width: 100%;
        margin: 3px 0;
    }
    
    .record-info p {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .record-info .highlight {
        margin-top: 2px;
    }
}

@media (max-width: 480px) {
    .history-textarea {
        height: 200px;
        padding: 12px;
    }
    
    .record-info {
        padding: 10px;
        font-size: 13px;
    }
}