/* ============================================
   预测销售页面样式（从乱码恢复）
   用于：predict_sales.html
   ============================================ */
.forecast-section {
    margin-top: 30px;
    padding: 24px;
    background: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.forecast-section h3 {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 600;
}

.forecast-input-group {
    display: flex;
    gap: 16px;
    align-items: end;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.input-item {
    flex: 1;
    min-width: 200px;
}

.input-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

#forecast-budget {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

#forecast-budget:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.forecast-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.forecast-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-dark));
    transform: translateY(-1px);
}

.forecast-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.forecast-result-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.forecast-result-card h4 {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.forecast-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-color);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.forecast-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.forecast-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-light);
}

.forecast-note {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.forecast-note small {
    color: var(--text-muted);
    line-height: 1.4;
}

/* 预测销售响应式 */
@media (max-width: 768px) {
    .forecast-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .forecast-grid {
        grid-template-columns: 1fr;
    }

    .forecast-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .forecast-value {
        align-self: flex-end;
    }
}

/* ============================================
   预测销售高亮卡片样式（从乱码恢复）
   ============================================ */
.forecast-highlight {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.forecast-highlight::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.forecast-header {
    text-align: center;
    margin-bottom: 24px;
}

.forecast-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.forecast-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin: 8px 0 0 0;
}

.forecast-highlight-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #bbdefb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.forecast-highlight-box .highlight-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.forecast-highlight-box .highlight-text {
    color: var(--primary-light);
    font-weight: 500;
    line-height: 1.4;
}

.forecast-highlight-box .highlight-text strong {
    color: var(--primary-color);
}

/* 脉冲高亮效果（临时提示） */
.forecast-pulse {
    animation: forecastPulse 2s ease-in-out;
    box-shadow: 0 8px 30px rgba(44, 82, 130, 0.15);
    transform: translateY(-2px);
}

@keyframes forecastPulse {
    0% { transform: translateY(0); box-shadow: 0 4px 12px rgba(33,150,243,0.08); }
    50% { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(33,150,243,0.18); }
    100% { transform: translateY(0); box-shadow: 0 4px 12px rgba(33,150,243,0.08); }
}


