/* 对比分析页面样式优化 */
.compare-header {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 50%, #fff5f5 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.compare-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,71,87,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 报告选择区域 */
.report-selection {
    padding: 80px 0;
    background: white;
}

.selection-header {
    text-align: center;
    margin-bottom: 4rem;
}

.selection-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.selection-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* 选择操作按钮区域 - 使用最高优先级 */
.report-selection .selection-actions,
.container .selection-actions,
section .selection-actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.5rem !important;
    margin: 3rem auto !important;
    padding: 2rem !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 71, 87, 0.1) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 8px 32px rgba(255, 71, 87, 0.1) !important;
    width: 100% !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    flex-wrap: wrap !important;
}

/* 按钮样式 - 确保不被全局样式覆盖 */
.report-selection .selection-actions .btn,
.container .selection-actions .btn,
section .selection-actions .btn {
    min-width: 140px !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: var(--radius-lg) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
}

/* 主要按钮样式 */
.report-selection .selection-actions .btn-primary,
.container .selection-actions .btn-primary,
section .selection-actions .btn-primary {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.3) !important;
}

.report-selection .selection-actions .btn-primary:hover:not(:disabled),
.container .selection-actions .btn-primary:hover:not(:disabled),
section .selection-actions .btn-primary:hover:not(:disabled) {
    background: #ff4757 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4) !important;
}

/* 轮廓按钮样式 */
.report-selection .selection-actions .btn-outline,
.container .selection-actions .btn-outline,
section .selection-actions .btn-outline {
    background: white !important;
    color: var(--text) !important;
    border: 2px solid rgba(255, 71, 87, 0.2) !important;
}

.report-selection .selection-actions .btn-outline:hover,
.container .selection-actions .btn-outline:hover,
section .selection-actions .btn-outline:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.3) !important;
}

/* 禁用状态 */
.report-selection .selection-actions .btn:disabled,
.container .selection-actions .btn:disabled,
section .selection-actions .btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 图标样式 */
.report-selection .selection-actions .btn i,
.container .selection-actions .btn i,
section .selection-actions .btn i {
    font-size: 1.1rem !important;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.report-card {
    background: white;
    border: 2px solid rgba(255, 71, 87, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(255, 71, 87, 0.15);
    border-color: var(--primary);
}

.report-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    box-shadow: 0 16px 48px rgba(255, 71, 87, 0.2);
}

.card-header {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 71, 87, 0.1);
}

.checkbox-wrapper {
    position: relative;
    margin-top: 0.25rem;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-wrapper label {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 71, 87, 0.3);
    border-radius: 6px;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-wrapper input[type="checkbox"]:checked + label {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-wrapper input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

.report-info {
    flex: 1;
}

.report-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.report-info p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.card-content {
    padding: 1.5rem;
}

.score-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.score-circle svg {
    transform: rotate(-90deg);
    filter: drop-shadow(0 2px 4px rgba(255, 71, 87, 0.2));
}

.score-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.score-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.score-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 71, 87, 0.05);
    border-radius: var(--radius);
}

.score-detail .label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.score-detail .value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

/* 对比分析区域 */
.compare-analysis {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
}

.analysis-header {
    text-align: center;
    margin-bottom: 4rem;
}

.analysis-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.analysis-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.analysis-card {
    background: white;
    border: 1px solid rgba(255, 71, 87, 0.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(255, 71, 87, 0.1);
    transition: all 0.3s ease;
}

.analysis-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(255, 71, 87, 0.15);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title i {
    color: var(--primary);
    font-size: 1.5rem;
}

.chart-container {
    height: 300px;
    margin-bottom: 2rem;
    position: relative;
}

.chart-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.05) 0%, rgba(255, 71, 87, 0.1) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.125rem;
    border: 2px dashed rgba(255, 71, 87, 0.2);
}

.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 71, 87, 0.05);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.metric-item:hover {
    background: rgba(255, 71, 87, 0.1);
    transform: translateX(5px);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 500;
}

.metric-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

/* 趋势分析 */
.trend-analysis {
    padding: 80px 0;
    background: white;
}

.trend-header {
    text-align: center;
    margin-bottom: 4rem;
}

.trend-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.trend-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.trend-chart {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border: 1px solid rgba(255, 71, 87, 0.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(255, 71, 87, 0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.chart-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.primary {
    background: var(--primary);
}

.legend-color.secondary {
    background: var(--primary-light);
}

.chart-content {
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.05) 0%, rgba(255, 71, 87, 0.1) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.125rem;
    border: 2px dashed rgba(255, 71, 87, 0.2);
}

/* 操作按钮 */
.compare-actions {
    padding: 80px 0;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    text-align: center;
}

.actions-content {
    max-width: 600px;
    margin: 0 auto;
}

.actions-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.actions-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .report-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .header-content p {
        font-size: 1.125rem;
    }
    
    .selection-header h2 {
        font-size: 2rem;
    }
    
    .selection-header p {
        font-size: 1rem;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* 移动端按钮组样式 */
    .selection-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .selection-actions .btn {
        width: 100%;
        min-width: auto;
        padding: 1rem;
    }
    
    .selection-header h2,
    .analysis-header h2,
    .trend-header h2 {
        font-size: 2rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-number {
        font-size: 1.25rem;
    }
    
    .score-details {
        grid-template-columns: 1fr;
    }
    
    .chart-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .chart-legend {
        flex-wrap: wrap;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-content p {
        font-size: 1rem;
    }
    
    .selection-header h2 {
        font-size: 1.75rem;
    }
    
    .selection-header p {
        font-size: 0.875rem;
    }
    
    .selection-actions {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .selection-actions .btn {
        font-size: 0.875rem;
        padding: 0.875rem 1rem;
    }
    
    .analysis-card {
        padding: 1.5rem;
    }
    
    .trend-chart {
        padding: 1.5rem;
    }
    
    .chart-content {
        height: 300px;
    }
    
    .actions-content h2 {
        font-size: 1.75rem;
    }
    
    .actions-content p {
        font-size: 1rem;
    }
}






