/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
header {
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

h1 {
    font-size: 28px;
    color: #2c3e50;
    font-weight: bold;
    flex-grow: 1;
}

.version-badge {
    background-color: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 15px;
}

.time-display {
    font-size: 14px;
    color: #7f8c8d;
}

.separator {
    height: 1px;
    background-color: #e0e0e0;
    margin: 10px 0;
}

/* 按钮区域 */
.function-area {
    margin-bottom: 20px;
}

.button-group {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.btn {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.icon {
    margin-right: 8px;
    font-style: normal;
}


/* 按钮样式 */
.primary-btn {
    background-color: #3498db;
    color: white;
}

.primary-btn:hover:not(:disabled) {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.danger-btn {
    background-color: #e74c3c;
    color: white;
}

.danger-btn:hover:not(:disabled) {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.info-btn {
    background-color: #2ecc71;
    color: white;
}

.info-btn:hover:not(:disabled) {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 新增：关于软件对话框样式 */
.about-content {
    line-height: 1.8;
}

.about-content h4 {
    margin-top: 15px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.about-content ol, .about-content ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.about-content p {
    margin-bottom: 5px;
}

/* 进度条 */
.progress-container {
    margin: 15px 0;
}

.progress-bar {
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: #2ecc71;
    transition: width 0.3s ease;
}

.status-label {
    font-size: 14px;
    color: #7f8c8d;
    text-align: center;
}

/* 新增：会员密钥输入区域样式 */
.key-input-panel {
    display: flex;
    align-items: center;
    margin-top: 15px;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
}

.key-input-label {
    font-size: 14px;
    font-weight: 500;
    margin-right: 10px;
    color: #2c3e50;
}

.key-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .key-input-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .key-input-label {
        margin-bottom: 5px;
    }
}

/* 结果区域 */
.result-section {
    flex: 1;
}

h2 {
    font-size: 20px;
    color: #34495e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

h2::before {
    content: "📊";
    margin-right: 8px;
}

.result-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    height: 350px;
    overflow-y: auto;
    background-color: #fafafa;
}

.result-area {
    font-family: 'Consolas', 'Microsoft YaHei', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.log-entry {
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    background-color: white;
    border-left: 4px solid #3498db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.log-entry.success {
    border-left-color: #2ecc71;
}

.log-entry.error {
    border-left-color: #e74c3c;
    background-color: #fff9f9;
}

.log-entry.prediction {
    border-left-color: #f39c12;
    background-color: #fffbf0;
    font-weight: bold;
}

/* 预测号码样式 */
.number {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    margin: 0 3px;
    font-weight: bold;
}

.number.backup {
    background-color: #95a5a6;
}

/* 额外按钮样式 */
.extra-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
}

.extra-buttons .btn {
    font-size: 13px;
    padding: 8px 12px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 60%;
    max-width: 600px;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
}

.close-btn:hover {
    color: #e74c3c;
}

.settings-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 帮助按钮 */
.help-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    font-size: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.help-button:hover {
    background-color: #2980b9;
    transform: scale(1.1);
}

/* 图表容器 */
.chart-container {
    margin-top: 20px;
    height: 200px;
    background-color: white;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 页脚 */
footer {
    margin-top: 20px;
    text-align: right;
    font-size: 12px;
    color: #7f8c8d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .modal-content {
        width: 90%;
    }
}