/* 案情分析服务页面样式 */

.service-intro {
    background: linear-gradient(135deg, #f0f7ff 0%, #faf5ff 100%);
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 32px;
    border: 1px solid #dce5f0;
}

.service-intro h2 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-intro h3 {
    font-size: 16px;
    color: #2c3e50;
    margin-top: 24px;
    margin-bottom: 14px;
    font-weight: 600;
}

.service-intro p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* 分析特性卡片 */
.analysis-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.analysis-feature-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
}

.analysis-feature-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    border-color: #c4d3e8;
}

.af-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.analysis-feature-card h4 {
    font-size: 15px;
    color: #2c3e50;
    margin-bottom: 6px;
    font-weight: 600;
}

.analysis-feature-card p {
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 0;
}

.form-section-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-divider {
    border: none;
    border-top: 1px solid #e0e6ed;
    margin: 24px 0;
}

/* 文件上传区域 */
.file-upload-area {
    border: 2px dashed #c4d3e8;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.file-upload-area.dragover {
    border-color: #667eea;
    background: #eef2ff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.file-upload-icon {
    margin-bottom: 4px;
    opacity: 0.8;
}

.file-upload-text {
    font-size: 15px;
    color: #475569;
    font-weight: 500;
}

.file-upload-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* 文件列表 */
.file-list {
    margin-top: 12px;
}

.file-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.file-item:hover {
    background: #f0f4ff;
    border-color: #c4d3e8;
}

.file-item-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.file-item-name {
    flex: 1;
    color: #2c3e50;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-size {
    color: #94a3b8;
    font-size: 12px;
    flex-shrink: 0;
}

.file-item-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.file-item-remove:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* 成功状态 */
.success-section {
    text-align: center;
    padding: 48px 24px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.success-section h2 {
    font-size: 24px;
    color: #38a169;
    margin-bottom: 16px;
    font-weight: 700;
}

.success-order {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 16px;
    padding: 12px 20px;
    background: #f0fff4;
    border-radius: 8px;
    display: inline-block;
}

.success-order strong {
    color: #38a169;
    font-size: 18px;
    letter-spacing: 1px;
}

.success-message {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
}

.success-hint {
    font-size: 14px;
    color: #718096;
    max-width: 480px;
    margin: 0 auto;
}

/* 表单容器宽度覆盖 */
.calculator-container {
    max-width: 800px;
}

/* 报告展示 */
.report-section {
    padding: 24px 0;
}

.report-content {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.report-meta {
    font-size: 13px;
    color: #94a3b8;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 24px;
}

.report-body {
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.9;
}

.report-body h2 {
    font-size: 22px;
    color: #1a1a2e;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2563eb;
    font-weight: 700;
}

.report-body h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin: 22px 0 10px;
    font-weight: 600;
}

.report-body h4 {
    font-size: 15px;
    color: #374151;
    margin: 16px 0 8px;
    font-weight: 600;
}

.report-body p {
    margin-bottom: 10px;
}

.report-body strong {
    color: #1a1a2e;
}

.report-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 13px;
}

.report-body th {
    background: #f1f5f9;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #e0e6ed;
    color: #374151;
}

.report-body td {
    padding: 8px 12px;
    border: 1px solid #e0e6ed;
    color: #4a5568;
}

.report-body li {
    margin-bottom: 4px;
    color: #4a5568;
}

.report-body blockquote {
    margin: 12px 0;
    padding: 10px 16px;
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
    font-size: 13px;
    border-radius: 0 6px 6px 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .service-intro {
        padding: 20px;
    }

    .service-intro h2 {
        font-size: 18px;
    }

    .service-intro h3 {
        font-size: 15px;
    }

    .analysis-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .analysis-feature-card {
        padding: 16px;
    }

    .analysis-feature-card h4 {
        font-size: 14px;
    }

    .file-upload-area {
        padding: 24px 16px;
    }

    .file-upload-text {
        font-size: 14px;
    }

    .success-section {
        padding: 32px 16px;
    }

    .success-section h2 {
        font-size: 20px;
    }

    .success-icon {
        font-size: 48px;
    }

    .form-section-title {
        font-size: 16px;
    }

    .calculator-container {
        max-width: 100%;
        padding: 10px;
    }

    .report-content {
        padding: 20px;
    }

    .report-body {
        font-size: 13px;
    }

    .report-body h2 {
        font-size: 18px;
    }

    .report-body h3 {
        font-size: 16px;
    }

    .report-body table {
        font-size: 11px;
    }

    .report-body th,
    .report-body td {
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {
    .service-intro {
        padding: 16px;
    }

    .service-intro h2 {
        font-size: 16px;
    }

    .service-intro h3 {
        font-size: 14px;
    }

    .analysis-features {
        grid-template-columns: 1fr;
    }

    .file-upload-area {
        padding: 20px 12px;
    }

    .file-item {
        flex-wrap: wrap;
    }

    .calculator-container {
        padding: 5px;
    }
}
