/* 房贷计算器专用样式 */
.mortgage-calculator {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.calc-radio-group {
    display: flex;
    gap: 20px;
}

.calc-radio-item input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
}

/* 计算结果样式 */
.result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-item.secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.result-item.tertiary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.result-value small {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
}

/* 还款计划表 */
.repayment-table-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #e2e8f0;
    max-height: 500px;
    overflow-y: auto;
}

.repayment-table-wrapper h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

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

.repayment-table thead {
    background: #f7fafc;
    position: sticky;
    top: 0;
}

.repayment-table th {
    padding: 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
}

.repayment-table td {
    padding: 12px;
    font-size: 14px;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
}

.repayment-table tbody tr:hover {
    background: #f7fafc;
}

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

/* 响应式 */
@media (max-width: 767px) {
    .calc-radio-group {
        flex-direction: column;
    }
    
    .result-summary {
        grid-template-columns: 1fr;
    }
    
    .repayment-table-wrapper {
        overflow-x: auto;
    }
    
    .repayment-table {
        min-width: 600px;
    }
}