/* =================
   配比分析页面样式
   ================= */

/* 页面头部 */
.page-header { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    padding: 60px 0 40px; 
    margin-bottom: 40px; 
    text-align: center;
}

.page-title { 
    font-size: 36px; 
    font-weight: bold; 
    margin-bottom: 10px;
}

.page-subtitle { 
    font-size: 16px; 
    opacity: 0.9;
}

/* 分析容器布局 */
.analysis-container { 
    display: grid; 
    grid-template-columns: 1fr 400px; 
    gap: 20px; 
}

/* 配置区和结果区 */
.config-section, 
.result-section { 
    background: white; 
    border-radius: 10px; 
    padding: 30px; 
    box-shadow: 0 2px 12px rgba(0,0,0,.1); 
}

.section-title { 
    font-size: 20px; 
    font-weight: bold; 
    margin-bottom: 20px; 
    padding-bottom: 15px; 
    border-bottom: 2px solid #f0f0f0; 
}

/* 表单样式 */
.form-group { 
    margin-bottom: 20px; 
}

.form-label { 
    display: block; 
    font-weight: bold; 
    margin-bottom: 10px; 
}

/* 计算按钮 */
.calculate-btn { 
    width: 100%; 
    padding: 15px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-size: 16px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: all 0.3s;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.calculate-btn:disabled { 
    opacity: 0.7; 
    cursor: not-allowed; 
    transform: none;
    box-shadow: none;
}

/* 结果卡片 */
.result-card { 
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    padding: 20px; 
    margin-bottom: 20px; 
    transition: all 0.3s;
}

.result-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

/* 结果项 */
.result-item { 
    display: flex; 
    justify-content: space-between; 
    padding: 8px 0; 
    border-bottom: 1px dashed #f0f0f0; 
}

.result-item:last-child {
    border-bottom: none;
}

/* 方案行 */
.plan-row { 
    display: flex; 
    justify-content: space-between; 
    padding: 8px 0; 
    border-bottom: 1px dashed #f0f0f0; 
    font-size: 14px; 
}

.plan-row:last-child { 
    border-bottom: none; 
}

/* =================
   配比分析响应式布局
   ================= */

/* 平板端适配 */
@media (max-width: 992px) {
    .page-header {
        padding: 40px 0 30px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .analysis-container {
        grid-template-columns: 1fr 350px;
    }
    
    .config-section,
    .result-section {
        padding: 25px;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 15px 25px;
        margin-bottom: 20px;
    }
    
    .page-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    /* 分析容器 - 单列布局 */
    .analysis-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .config-section,
    .result-section {
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    /* 表单样式 */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    /* Element UI 表单组件调整 */
    .el-form-item {
        margin-bottom: 15px;
    }
    
    .el-input__inner,
    .el-select .el-input__inner {
        font-size: 15px;
    }
    
    /* 计算按钮 */
    .calculate-btn {
        padding: 12px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    /* 结果卡片 */
    .result-card {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 8px;
    }
    
    .result-item {
        padding: 6px 0;
        font-size: 14px;
    }
    
    .plan-row {
        padding: 6px 0;
        font-size: 13px;
    }
    
    /* Element UI 表格调整 */
    .el-table {
        font-size: 13px;
    }
    
    .el-table th,
    .el-table td {
        padding: 8px 0;
    }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .page-title {
        font-size: 20px;
    }
    
    .config-section,
    .result-section {
        padding: 15px 12px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .calculate-btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .result-item,
    .plan-row {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}
