/* 利息计算器专用样式 */

/* 卡片样式 */
.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
    margin-bottom: 30px;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    padding: 1.2rem;
}

.card-header h2 {
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* 提示信息样式 */
.alert-info {
    background-color: #e8f4f8;
    border-color: #bee5eb;
    color: #0c5460;
    border-radius: 6px;
    padding: 1.2rem;
}

.alert-info h5 {
    color: #0c5460;
    margin-bottom: 10px;
    font-weight: 600;
}

.alert-info ul {
    margin-bottom: 0;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border-radius: 6px;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
}

.form-text {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* 按钮样式 */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* 结果区域样式 */
#resultSection {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

#resultSection h4 {
    color: #343a40;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.table {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    width: 30%;
    vertical-align: middle;
}

.table td {
    font-weight: 500;
    vertical-align: middle;
}

.table-success {
    background-color: #d4edda !important;
}

.table-success th,
.table-success td {
    color: #155724;
    font-weight: 700;
}

/* 示例区域样式 */
.examples h4 {
    color: #343a40;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.examples .card {
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.examples .card-header {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 0.75rem 1rem;
    color: #495057;
}

.examples .card-body {
    padding: 1rem;
}

.examples .card-body p {
    margin-bottom: 0.5rem;
}

.examples .card-body p:last-child {
    margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .form-control {
        padding: 0.6rem;
    }
    
    .card-body {
        padding: 1.2rem;
    }
    
    .examples .card-body {
        padding: 0.8rem;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-lg + .btn-lg {
        margin-left: 0 !important;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
}