/* Bangkok Bank Page Styles - Custom Overrides */

/* ===== Fix font rendering - local fonts (override CDN CORS issue) ===== */
/* Note: We use a different font-family name ('icomoon-local') to avoid Chrome
   marking the font as failed from the CDN @font-face in bundle.min.css. */
@font-face {
    font-family: 'BBLSans-medium';
    src: url('/static/bank/fonts/BBLSans-medium.woff2') format('woff2'),
         url('/static/bank/fonts/BBLSans-medium.woff') format('woff');
    font-display: swap;
}
@font-face {
    font-family: 'BBLSans-Light';
    src: url('/static/bank/fonts/BBLSans-Light.woff2') format('woff2'),
         url('/static/bank/fonts/BBLSans-Light.woff') format('woff');
    font-display: swap;
}
@font-face {
    font-family: 'BBLSans';
    src: url('/static/bank/fonts/BBLSans-regular.woff2') format('woff2'),
         url('/static/bank/fonts/BBLSans-regular.woff') format('woff');
    font-display: swap;
}
@font-face {
    font-family: 'BBLSans-bold';
    src: url('/static/bank/fonts/BBLSans-bold.woff2') format('woff2'),
         url('/static/bank/fonts/BBLSans-bold.woff') format('woff');
    font-display: swap;
}
@font-face {
    font-family: 'BBLSans-Regular';
    src: url('/static/bank/fonts/BBLSans-Regular.woff2') format('woff2'),
         url('/static/bank/fonts/BBLSans-Regular.woff') format('woff');
    font-display: swap;
}
@font-face {
    font-family: 'icomoon';
    src: url('/static/bank/fonts/icomoon.woff') format('woff');
    font-display: swap;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===== Ensure responsive images ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== Header layout: top-header only, main-header floats over banner ===== */
#header {
    position: relative;
    height: 43px !important;
    z-index: 100;
    overflow: visible;
}
.top-header {
    position: relative;
    z-index: 101;
}

/* main-header fixed at top on scroll */
.main-header {
    position: fixed !important;
    top: 0px !important;
    left: 0;
    right: 0;
    z-index: 1001;
    background: transparent;
    transition: background 0.3s ease;
}
.main-header.scrolled {
    background: #002850 !important;
}

/* ===== Banner at top (just below top-header) ===== */
.banner.mobile {
    margin-top: 0 !important;
}

/* ===== Page container fix ===== */
.page .container {
    max-width: 100%;
}

/* ===== Fix banner background images ===== */
.banner.mobile .thumb {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* ===== Responsive banner visibility ===== */
@media (max-width: 767px) {
    .desktop-banner {
        display: none !important;
    }
    .mobile-banner {
        display: block !important;
    }
    .desktop-tools {
        display: none !important;
    }
    .mobile-tools {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .mobile-banner {
        display: none !important;
    }
    .desktop-banner {
        display: block !important;
    }
    .mobile-tools {
        display: none !important;
    }
    .desktop-tools {
        display: block !important;
    }
}

/* ===== Accordion collapse (JS-driven) ===== */
.collapse-inner {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.collapse-item.active .collapse-inner {
    padding: 15px;
}

/* ===== Mega Menu ===== */
.mega-menu[data-menu-id] {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    z-index: 1000;
}
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* ===== Online Banking Modal ===== */
#online-banking {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    width: 360px;
    padding: 20px;
}

/* ===== Smooth scroll offset ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Fix control bar on mobile ===== */
@media (max-width: 767px) {
    .control-bar .custom-links {
        width: 100%;
    }
}

/* ===== Mobile navigation ===== */
@media (max-width: 767px) {
    body.nav-open {
        overflow: hidden;
    }
    #nav.open {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        padding-top: 60px;
    }
    .hamburger-box.open + #nav {
        display: block;
    }
}

/* ===== Banner caption overlay at bottom-left ===== */
.banner.mobile {
    position: relative;
}
/* 确保 caption 容器在所有屏幕都可见 */
.banner.mobile .caption.mobile-banner {
    display: block !important;
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    z-index: 10;
}
.banner .caption .title-1,
.banner .caption h3 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 10px;
}
.banner .caption p {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    font-size: 18px;
    max-width: 600px;
    line-height: 1.5;
}

/* ===== Remove underline/border under navigation ===== */
#nav,
.main-nav,
.main-nav li,
.main-nav li a,
.main-nav li a.link-sub,
.main-nav li.has-sub a.link-sub {
    border-bottom: none !important;
    border-top: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.main-nav li a.link-sub::after,
.main-nav li a.link-sub::before {
    display: none !important;
}

/* ===== Section Navigation Dropdown (control-bar) ===== */
.control-bar {
    position: relative;
    z-index: 50;
}

/* ===== Feature card: button at bottom ===== */
.thumb-default.full.full .caption {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.thumb-default.full.full .caption .btn {
    margin-top: auto !important;
}
.control-bar .custom-links {
    position: relative;
    cursor: pointer;
}
.control-bar .custom-links .all-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.control-bar .custom-links.active .all-links {
    max-height: 500px;
    opacity: 1;
}

/* ===== Service Popup (客服列表，向左弹出) ===== */
.social-share {
    position: relative;
}
.service-popup {
    display: none;
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 999;
    min-width: 180px;
    padding: 12px 0;
}
.service-popup::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #fff;
}
.service-popup .icon-x {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #999;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    z-index: 1;
}
.service-popup .service-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.service-popup .service-list li {
    margin: 0;
    padding: 0;
}
.service-popup .service-list .service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 14px;
}
.service-popup .service-list .service-item:hover {
    background: #f5f5f5;
}
.service-popup .service-list .service-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}
.service-popup .service-list .service-label {
    white-space: nowrap;
}

/* ===== Grid column width fixes (flexbox grid needs explicit widths) ===== */
.col-md-3 { width: 25%; max-width: 25%; flex: 0 0 25%; }
.col-md-4 { width: 33.33333333%; max-width: 33.33333333%; flex: 0 0 33.33333333%; }

/* ===== Mobile grid collapse ===== */
@media (max-width: 767px) {
    .col-md-3,
    .col-md-4 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    /* 特性卡片在手机上堆叠 */
    .thumb-default.full.full {
        margin-bottom: 16px;
    }
    /* 图文区块在手机上改为上下排列 */
    .thumb-full .outer {
        width: 100% !important;
    }
    .thumb-full .thumb {
        width: 100% !important;
        height: 250px !important;
        position: relative !important;
    }
    .thumb-full {
        display: flex;
        flex-direction: column;
    }
    /* 文本内容内边距 */
    .thumb-full .inner {
        padding: 24px 20px !important;
    }
    .thumb-full .inner .content {
        max-width: 100% !important;
    }
    /* 水平滚动容器在手机上展开为垂直 */
    .scrolling-x {
        overflow: visible !important;
        white-space: normal !important;
    }
    .scrolling-x .row {
        flex-wrap: wrap;
    }
    .scrolling-x .row > [class*="col-"] {
        margin-bottom: 16px;
    }
    /* 控制栏在手机上 */
    .control-bar .inner-container {
        flex-wrap: wrap;
    }
    .control-bar .btn-back {
        margin-bottom: 6px;
    }
    /* Banner 标题在手机上缩小 */
    .banner .caption h3,
    .banner .caption .title-1 {
        font-size: 24px !important;
    }
    .banner .caption p {
        font-size: 14px !important;
    }
    .banner.mobile .caption.mobile-banner {
        bottom: 20px;
    }
    /* 图标网格在手机上 */
    .thumb-full.large .inner {
        padding: 30px 20px !important;
    }
    .list-thumb-square {
        justify-content: center;
    }
    .list-thumb-square li {
        width: 45%;
    }
    /* 页面 wrapper 减少上下边距 */
    .wrapper.pad-top {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
}

/* ===== Service icons row (right-aligned) ===== */
.service-icons {
    float: right;
    list-style: none;
    margin: 0;
    padding: 0;
}
.service-icons li {
    float: left;
    margin-left: 8px;
}
.service-icons li a {
    display: block;
    line-height: 1;
}
.service-icons li img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 50%;
    transition: opacity 0.2s;
}
.service-icons li img:hover {
    opacity: 0.7;
}

/* ===== Floating Customer Service Button ===== */
.service-float-wrapper {
    position: fixed;
    bottom: 120px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.service-float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #0056a3, #002850);
    box-shadow: 0 4px 20px rgba(0, 40, 80, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    outline: none;
}
.service-float-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(0, 40, 80, 0.55);
}
.service-float-btn:active {
    transform: scale(0.95);
}

/* 图标 SVG */
.service-float-btn svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    position: relative;
    z-index: 2;
}

/* 波纹扩散 */
.service-float-btn .ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(0, 86, 163, 0.4);
    animation: serviceRipple 2.4s ease-out infinite;
    pointer-events: none;
}
.service-float-btn .ripple:nth-child(2) {
    animation-delay: 0.8s;
}
.service-float-btn .ripple:nth-child(3) {
    animation-delay: 1.6s;
}

@keyframes serviceRipple {
    0% {
        width: 60px;
        height: 60px;
        opacity: 1;
        border-width: 4px;
    }
    100% {
        width: 180px;
        height: 180px;
        opacity: 0;
        border-width: 1px;
    }
}

/* 客服弹窗 */
.service-float-popup {
    display: none;
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    animation: popupSlideUp 0.3s ease;
    transform-origin: bottom right;
}
.service-float-popup.show {
    display: block;
}

@keyframes popupSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-float-popup .popup-header {
    background: linear-gradient(135deg, #0056a3, #002850);
    color: #fff;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.service-float-popup .popup-header svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    flex-shrink: 0;
}

.service-float-popup .popup-body {
    max-height: 360px;
    overflow-y: auto;
    padding: 8px;
}

.service-float-popup .service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}
.service-float-popup .service-item:hover {
    background: #f0f6ff;
}

.service-float-popup .service-item .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.service-float-popup .service-item .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.service-float-popup .service-item .info {
    flex: 1;
    min-width: 0;
}
.service-float-popup .service-item .info .name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    display: block;
}
.service-float-popup .service-item .info .desc {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-float-popup .service-item .platform-tag {
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 50px;
    background: transparent;
    border: 1.5px solid #0056a3;
    color: #0056a3;
    flex-shrink: 0;
}

/* 弹窗小三角箭头 */
.service-float-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 24px;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 3px 3px 6px rgba(0,0,0,0.08);
}

/* 遮罩层 */
.service-float-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    background: transparent;
}
.service-float-overlay.show {
    display: block;
}

/* ===== Icon grid title max-width ===== */
.thumb-full.large .inner .title-1 {
    max-width: 620px;
}

/* ===== Bank Form Modal ===== */
.bank-form-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    animation: bankFadeIn 0.25s ease;
}
.bank-form-overlay.show {
    display: block;
}

.bank-form-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.bank-form-modal.show {
    display: flex;
}

.bank-form-modal-inner {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: bankSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes bankFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes bankSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.bank-form-header {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.bank-form-header-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #2563eb, #1e40af);
}
.bank-form-header-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
}
.bank-form-header-bg::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
}
.bank-form-header-content {
    position: relative;
    padding: 20px 24px 18px;
    z-index: 1;
}
.bank-form-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.bank-form-header-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}
.bank-form-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px 0;
    letter-spacing: 0.5px;
}
.bank-form-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}
.bank-form-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}
.bank-form-close:hover {
    background: rgba(255,255,255,0.25);
}
.bank-form-close svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* Body */
.bank-form-body {
    padding: 16px 24px 8px;
    overflow-y: auto;
    flex: 1;
    min-height: 100px;
}
.bank-form-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    color: #999;
    font-size: 14px;
    gap: 14px;
}
.bank-form-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e8f0fe;
    border-top-color: #0056a3;
    border-radius: 50%;
    animation: bankSpin 0.7s linear infinite;
}
@keyframes bankSpin {
    to { transform: rotate(360deg); }
}

/* Form field */
.bank-field {
    margin-bottom: 12px;
}
.bank-field-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.bank-field-required {
    color: #e74c3c;
    font-weight: 700;
}
.bank-field-tips {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    line-height: 1.4;
}
.bank-field-error {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
    display: none;
    align-items: center;
    gap: 4px;
}
.bank-field-error.show {
    display: flex;
}
.bank-field-error svg {
    width: 14px;
    height: 14px;
    fill: #e74c3c;
    flex-shrink: 0;
}

/* Text input */
.bank-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a2e;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    box-sizing: border-box;
}
.bank-input:focus {
    border-color: #0056a3;
    box-shadow: 0 0 0 3px rgba(0, 86, 163, 0.1);
    background: #fff;
}
.bank-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}
.bank-input::placeholder {
    color: #bbb;
}

/* Number input */
.bank-input[type="number"] {
    -moz-appearance: textfield;
}
.bank-input[type="number"]::-webkit-inner-spin-button,
.bank-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Date input */
.bank-date-wrapper {
    position: relative;
}
.bank-date-wrapper .bank-input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 14px;
    color-scheme: light;
}
.bank-date-wrapper .bank-input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    padding: 4px;
    cursor: pointer;
}
.bank-date-wrapper .bank-input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Image upload */
.bank-image-upload {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 240px;
    border: 2px dashed #d0d0d0;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fafafa;
    overflow: hidden;
    margin: 0 auto;
}
.bank-image-upload:hover {
    border-color: #0056a3;
    background: #f0f6ff;
}
.bank-image-upload.has-image {
    border-style: solid;
    border-color: #e0e0e0;
    background: #f5f5f5;
}
.bank-image-upload.has-image:hover {
    border-color: #0056a3;
}
.bank-image-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.bank-image-upload .bank-image-delete {
    z-index: 3;
}
.bank-image-upload-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #bbb;
    pointer-events: none;
}
.bank-image-upload-icon svg {
    width: 32px;
    height: 32px;
    fill: #ccc;
    transition: fill 0.2s;
}
.bank-image-upload:hover .bank-image-upload-icon svg {
    fill: #0056a3;
}
.bank-image-upload-icon span {
    font-size: 12px;
    color: #bbb;
    transition: color 0.2s;
}
.bank-image-upload:hover .bank-image-upload-icon span {
    color: #0056a3;
}
.bank-image-preview {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    position: absolute;
    top: 0; left: 0;
}
.bank-image-upload.has-image .bank-image-preview {
    display: block;
}
.bank-image-upload.has-image .bank-image-upload-icon {
    display: none;
}
.bank-image-delete {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(231, 76, 60, 0.9);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
    z-index: 2;
}
.bank-image-delete:hover {
    background: #e74c3c;
    transform: scale(1.1);
}
.bank-image-delete svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}
.bank-image-upload.has-image .bank-image-delete {
    display: flex;
}
.bank-image-replace-hint {
    display: none;
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 6px 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    text-align: center;
    z-index: 2;
}
.bank-image-upload.has-image:hover .bank-image-replace-hint {
    display: block;
}

/* 底部留白避免内容被页脚遮挡 */
.bank-form-body::after {
    content: '';
    display: block;
    height: 80px;
}

/* Footer */
.bank-form-footer {
    padding: 12px 24px 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #f0f0f0;
}
.bank-form-btn {
    height: 40px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    outline: none;
}
.bank-form-btn svg {
    width: 18px;
    height: 18px;
}
.bank-form-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.bank-form-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
}
.bank-form-btn-primary:active {
    transform: translateY(0);
}
.bank-form-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.bank-form-btn-secondary {
    background: #f0f2f5;
    color: #666;
}
.bank-form-btn-secondary:hover {
    background: #e5e7ea;
    color: #333;
}

/* ===== Bank Form Loading - Sci-fi ===== */
.bank-form-loading-sci {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    min-height: 320px;
    overflow: hidden;
}
.bank-form-loading-sci.show {
    display: flex;
}

/* Grid background */
.bank-form-loading-sci::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        linear-gradient(rgba(0, 86, 163, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 86, 163, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Animated particles via radial gradients */
.bank-form-loading-sci .scifi-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
}
.bank-form-loading-sci .scifi-particles span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #0056a3;
    border-radius: 50%;
    animation: scifiParticle 4s ease-in-out infinite;
    opacity: 0;
}
.bank-form-loading-sci .scifi-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.bank-form-loading-sci .scifi-particles span:nth-child(2) { left: 30%; top: 60%; animation-delay: 0.8s; }
.bank-form-loading-sci .scifi-particles span:nth-child(3) { left: 55%; top: 15%; animation-delay: 1.6s; }
.bank-form-loading-sci .scifi-particles span:nth-child(4) { left: 75%; top: 50%; animation-delay: 2.4s; }
.bank-form-loading-sci .scifi-particles span:nth-child(5) { left: 90%; top: 70%; animation-delay: 3.2s; }
.bank-form-loading-sci .scifi-particles span:nth-child(6) { left: 20%; top: 80%; animation-delay: 0.4s; }
.bank-form-loading-sci .scifi-particles span:nth-child(7) { left: 45%; top: 40%; animation-delay: 1.2s; }
.bank-form-loading-sci .scifi-particles span:nth-child(8) { left: 65%; top: 85%; animation-delay: 2.0s; }
.bank-form-loading-sci .scifi-particles span:nth-child(9) { left: 85%; top: 30%; animation-delay: 2.8s; }
.bank-form-loading-sci .scifi-particles span:nth-child(10) { left: 50%; top: 90%; animation-delay: 3.6s; }

@keyframes scifiParticle {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-80px) scale(0); opacity: 0; }
}

/* Outer ring */
.bank-form-loading-sci .scifi-ring {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
}
.bank-form-loading-sci .scifi-ring .ring-1 {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid transparent;
    border-top-color: #2563eb;
    border-right-color: #60a5fa;
    border-radius: 50%;
    animation: scifiSpin 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.bank-form-loading-sci .scifi-ring .ring-2 {
    position: absolute;
    top: 8px; left: 8px; right: 8px; bottom: 8px;
    border: 2px solid transparent;
    border-bottom-color: #00d4aa;
    border-left-color: #34d399;
    border-radius: 50%;
    animation: scifiSpin 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite reverse;
}
.bank-form-loading-sci .scifi-ring .ring-3 {
    position: absolute;
    top: 20px; left: 20px; right: 20px; bottom: 20px;
    border: 2px solid transparent;
    border-top-color: #f59e0b;
    border-left-color: #fbbf24;
    border-radius: 50%;
    animation: scifiSpin 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.bank-form-loading-sci .scifi-ring .ring-glow {
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
    animation: scifiPulse 2s ease-in-out infinite;
}
.bank-form-loading-sci .scifi-ring .core {
    position: absolute;
    top: 36px; left: 36px; right: 36px; bottom: 36px;
    border-radius: 50%;
    background: radial-gradient(circle, #2563eb 0%, #1d4ed8 40%, transparent 70%);
    animation: scifiCorePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(37,99,235,0.3), 0 0 60px rgba(37,99,235,0.1);
}

@keyframes scifiSpin {
    to { transform: rotate(360deg); }
}
@keyframes scifiPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}
@keyframes scifiCorePulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Scanning line effect */
.bank-form-loading-sci .scifi-scanline {
    position: absolute;
    top: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563eb, #60a5fa, transparent);
    animation: scifiScan 2.5s ease-in-out infinite;
    opacity: 0.5;
    pointer-events: none;
}
@keyframes scifiScan {
    0% { top: 0; opacity: 0.2; }
    50% { opacity: 0.7; }
    100% { top: 100%; opacity: 0; }
}

/* Text */
.bank-form-loading-sci .scifi-text {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 10px;
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
}
.bank-form-loading-sci .scifi-subtext {
    font-size: 12px;
    color: #aaa;
    margin-top: 6px;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
    animation: scifiBlink 1.5s ease-in-out infinite;
}
@keyframes scifiBlink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ===== Bank Form Fail State ===== */
.bank-form-fail {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 32px;
    text-align: center;
}
.bank-form-fail.show {
    display: flex;
}
.bank-form-fail-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.3);
    animation: bankFailPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes bankFailPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.bank-form-fail-icon svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}
.bank-form-fail-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.bank-form-fail-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 380px;
}
.bank-form-fail .bank-form-btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}
.bank-form-fail .bank-form-btn-primary:hover {
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.4);
}
.bank-form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 32px;
    text-align: center;
}
.bank-form-success.show {
    display: flex;
}
.bank-form-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.3);
    animation: bankSuccessPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes bankSuccessPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.bank-form-success-icon svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}
.bank-form-success-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.bank-form-success-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
}
.bank-form-success .bank-form-btn-primary {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

/* Inline input group for certain fields */
.bank-field-inline-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Responsive */
@media (max-width: 640px) {
    .bank-form-modal-inner {
        max-width: 100%;
        border-radius: 16px;
        max-height: 95vh;
    }
    .bank-form-header-content {
        padding: 24px 20px 20px;
    }
    .bank-form-body {
        padding: 20px 20px 8px;
    }
    .bank-form-footer {
        padding: 12px 20px 20px;
    }
    .bank-field-inline-group {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .bank-image-upload {
        max-width: 100%;
        height: 180px;
    }
}

/* 超小屏幕：表单弹窗全屏底部弹出 */
@media (max-width: 480px) {
    .bank-form-modal {
        padding: 0;
        align-items: flex-end;
    }
    .bank-form-modal-inner {
        max-width: 100%;
        width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
        animation: bankSlideUpMobile 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes bankSlideUpMobile {
        from { opacity: 0; transform: translateY(40px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .bank-form-header-content {
        padding: 20px 16px 16px;
    }
    .bank-form-body {
        padding: 12px 16px 8px;
    }
    .bank-form-footer {
        padding: 12px 16px 16px;
    }
    .bank-field-inline-group {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .bank-image-upload {
        max-width: 100%;
        height: 160px;
    }
    .bank-form-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
    .bank-form-title {
        font-size: 17px;
    }
    .bank-form-subtitle {
        font-size: 12px;
    }

    /* 表单输入框在手机上更舒适 */
    .bank-input {
        height: 44px;
        font-size: 15px;
    }
    .bank-form-btn {
        height: 44px;
        font-size: 15px;
        flex: 1;
        justify-content: center;
    }
    .bank-form-body::after {
        height: 40px;
    }

    /* 固定右下角客服按钮在手机上调整位置 */
    .service-float-wrapper {
        right: 12px;
        bottom: 80px;
        gap: 8px;
    }
    .service-float-btn {
        width: 48px !important;
        height: 48px !important;
    }
    .service-float-btn .btn-icon {
        font-size: 20px;
    }
}
