/* 主体样式 */
body {
    background-color: #f8f9fa;
    color: #333;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.container {
    max-width: 1200px;
}

/* 卡片样式 */
.card {
    border-radius: 10px;
    overflow: hidden;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* 表单元素样式 */
.form-control, .form-select {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    border: 1px solid #dee2e6;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.btn {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 结果显示区域样式 */
.result-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.result-box h5 {
    margin-bottom: 1rem;
    color: #495057;
    font-weight: 600;
}

.results {
    font-size: 0.95rem;
}

.results strong {
    color: #0d6efd;
    font-weight: 600;
}

.results .highlight {
    background-color: #e7f5ff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin: 0.2rem 0;
    display: inline-block;
}

/* 表格样式 */
.table {
    font-size: 0.9rem;
}

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

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* 图表容器 */
.chart-container {
    position: relative;
    min-height: 300px;
    margin: 1rem 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1.5rem;
    }
    
    .result-box {
        margin-bottom: 1rem;
    }
    
    .chart-container {
        min-height: 250px;
    }
}

/* 切换开关样式 */
.form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
}

.form-switch .form-check-input:checked {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

/* 强调内容 */
.text-highlight {
    color: #0d6efd;
    font-weight: 600;
}

.text-success-highlight {
    color: #198754;
    font-weight: 600;
}

.text-danger-highlight {
    color: #dc3545;
    font-weight: 600;
}

/* 提前还款结果区域 */
.prepayment-summary {
    background-color: #e7f5ff;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 4px solid #0d6efd;
}

.prepayment-benefit {
    background-color: #d4edda;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 4px solid #198754;
} 