/* ============================================
   汕尾农商银行 - 流水速贷额度测算系统
   主样式表 (style.css)
   ============================================ */

/* ====== 全局 ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(180deg, #e8f5e9 0%, #f5f5f5 30%, #ffffff 100%);
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* ====== 顶部银行标识 ====== */
.bank-header {
    background: linear-gradient(135deg, #004d00 0%, #006600 40%, #008a00 100%);
    color: white;
    padding: 28px 0 22px;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 6px 20px rgba(0, 102, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.bank-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.bank-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.bank-logo {
    font-size: 48px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.bank-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.bank-subtitle {
    font-size: 13px;
    opacity: 0.85;
    letter-spacing: 1px;
    font-weight: 300;
}

/* ====== 导航条 ====== */
.bank-nav {
    background: white;
    border-bottom: 3px solid #006600;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.bank-nav .container {
    display: flex;
    gap: 0;
}

.nav-item {
    padding: 14px 28px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-item:hover {
    color: #006600;
    background: #f1f8e9;
}

.nav-item.active {
    color: #006600;
    border-bottom-color: #006600;
    font-weight: 700;
}

/* ====== 主内容区 ====== */
.main-content {
    margin-top: 25px;
}

/* ====== 卡片通用 ====== */
.card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header-custom {
    background: linear-gradient(90deg, #f1f8e9 0%, #e8f5e9 100%);
    padding: 16px 24px;
    border-bottom: 2px solid #006600;
}

.card-header-custom.bg-green {
    background: linear-gradient(90deg, #006600 0%, #008a00 100%);
    color: white;
    border-bottom: none;
}

.card-header-custom h4, .card-header-custom h5 {
    margin: 0;
    font-weight: 700;
}

.card-header-custom small {
    color: #888;
    font-size: 12px;
}

.card-header-custom.bg-green small,
.card-header-custom.bg-green h4,
.card-header-custom.bg-green h5 {
    color: white;
}

/* ====== 表单 ====== */
.form-card .card-body {
    padding: 28px 32px;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: #006600;
    margin: 20px 0 12px;
    padding-left: 12px;
    border-left: 4px solid #006600;
}

.section-title:first-of-type {
    margin-top: 0;
}

.form-label {
    font-weight: 600;
    color: #444;
    font-size: 13px;
    margin-bottom: 5px;
}

.required {
    color: #e53935;
    font-weight: bold;
}

.form-control, .form-select {
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 14px;
    transition: all 0.3s;
    background: #fafafa;
}

.form-control:focus, .form-select:focus {
    border-color: #006600;
    box-shadow: 0 0 0 3px rgba(0, 102, 0, 0.12);
    background: white;
    outline: none;
}

.input-group-text {
    background: #e8f5e9;
    border: 1.5px solid #ddd;
    border-right: none;
    color: #006600;
    font-weight: 600;
    border-radius: 8px 0 0 8px;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.form-hint {
    color: #999;
    font-size: 11px;
    margin-top: 3px;
    display: block;
}

/* ====== 按钮 ====== */
.btn-bank {
    background: linear-gradient(135deg, #006600 0%, #00a650 100%);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 13px 50px;
    font-size: 16px;
    letter-spacing: 2px;
    box-shadow: 0 4px 12px rgba(0, 102, 0, 0.3);
    transition: all 0.3s;
    cursor: pointer;
}

.btn-bank:hover {
    background: linear-gradient(135deg, #004d00 0%, #008a00 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 102, 0, 0.4);
}

.btn-bank:active {
    transform: translateY(0);
}

/* ====== 结果卡片 ====== */
.result-card {
    position: sticky;
    top: 70px;
}

.result-card .card-body {
    padding: 24px;
}

/* 额度展示 */
.limit-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.limit-item {
    text-align: center;
    padding: 18px 15px;
    border-radius: 12px;
    background: #f5f5f5;
    min-width: 140px;
    border: 2px solid #e0e0e0;
}

.limit-item.highlight {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #006600;
    box-shadow: 0 4px 12px rgba(0, 102, 0, 0.15);
}

.limit-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.limit-item.highlight .limit-label {
    color: #006600;
    font-weight: 700;
}

.limit-value {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    word-break: break-all;
    line-height: 1.2;
}

.limit-item.highlight .limit-value {
    color: #006600;
    font-size: 26px;
}

.limit-unit {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.limit-cap {
    font-size: 11px;
    color: #e53935;
    margin-top: 4px;
    font-weight: 600;
}

.limit-arrow {
    font-size: 28px;
    color: #006600;
}

/* 公式框 */
.formula-box {
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 16px 0;
}

.formula-title {
    font-weight: 700;
    color: #006600;
    margin-bottom: 8px;
    font-size: 13px;
}

.formula-content p {
    margin: 4px 0;
    font-size: 13px;
    color: #555;
    font-family: "Consolas", "Courier New", monospace;
}

/* 明细表 */
.detail-box {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 16px 0;
}

.detail-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    font-size: 13px;
}

.detail-table {
    width: 100%;
    font-size: 13px;
}

.detail-table td {
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
}

.detail-table td:first-child {
    color: #888;
    width: 40%;
}

.detail-table td:last-child {
    color: #333;
    font-weight: 600;
    text-align: right;
}

/* 警告横幅 */
.warning-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #ff9800;
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 18px;
}

.warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.warning-text {
    color: #e65100;
    font-size: 13px;
    line-height: 1.6;
}

.warning-text strong {
    font-size: 15px;
    color: #d32f2f;
}

/* ====== 准入条件 ====== */
.check-list {
    padding-left: 20px;
    margin: 0;
}

.check-list li {
    padding: 5px 0;
    color: #555;
    line-height: 1.5;
}

/* ====== 表格 ====== */
.table {
    font-size: 13px;
}

.table thead th {
    background: #006600;
    color: white;
    font-weight: 600;
    border: none;
    padding: 12px 10px;
    font-size: 12px;
}

.table tbody td {
    padding: 10px;
    vertical-align: middle;
}

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

/* ====== 页脚 ====== */
.bank-footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #999;
    font-size: 13px;
    border-top: 1px solid #e0e0e0;
}

.bank-footer p {
    margin: 4px 0;
}

/* ====== 响应式 ====== */
@media (max-width: 768px) {
    .bank-title {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .limit-display {
        flex-direction: column;
        gap: 10px;
    }

    .limit-arrow {
        transform: rotate(90deg);
    }

    .form-card .card-body {
        padding: 18px;
    }

    .nav-item {
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* ====== 动画 ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease-out;
}

/* ====== 数字跳动效果 ====== */
.limit-value {
    transition: all 0.3s ease;
}
