/* 收入对比图表样式 */
.income-comparison {
    margin: 50px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.income-comparison h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #2563eb;
    font-size: 1.8rem;
}

.income-comparison-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.income-tab {
    padding: 10px 20px;
    background-color: #e0e7ff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.income-tab:hover {
    background-color: #c7d2fe;
}

.income-tab.active {
    background-color: #2563eb;
    color: white;
}

.chart-container {
    height: 400px;
    margin: 20px 0;
    position: relative;
}

.income-types {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.income-type {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    border-radius: 20px;
    background-color: #f3f4f6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.income-type:hover {
    background-color: #e5e7eb;
}

.income-type.active {
    background-color: #dbeafe;
    border: 1px solid #93c5fd;
}

.income-type-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.income-disclaimer {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background-color: #fff8e6;
    border-left: 4px solid #fbbf24;
    font-size: 0.9rem;
    color: #92400e;
}

.risk-comparison {
    margin-top: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.risk-comparison h4 {
    text-align: center;
    padding: 15px;
    background-color: #f3f4f6;
    margin: 0;
}

.risk-table {
    width: 100%;
    border-collapse: collapse;
}

.risk-table th, .risk-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.risk-table th {
    background-color: #f9fafb;
    font-weight: 600;
}

.risk-table tr:last-child td {
    border-bottom: none;
}

.risk-level {
    display: flex;
    align-items: center;
    gap: 5px;
}

.risk-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.risk-low {
    background-color: #10b981;
}

.risk-medium {
    background-color: #f59e0b;
}

.risk-high {
    background-color: #ef4444;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .income-comparison-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .income-tab {
        flex: 0 0 auto;
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .risk-table th, .risk-table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}