/* 自定义入金界面样式 */

body {
    background-color: #f8f9fa;
    font-family: 'Microsoft YaHei', sans-serif;
    overflow-x: hidden;
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

/* 入金类型选项样式 */
.deposit-type {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #ffffff;
}

.deposit-type:hover {
    border-color: #0d6efd;
    background-color: #f0f7ff;
}

.deposit-type input[type="radio"]:checked + .form-check-label {
    color: #0d6efd;
    font-weight: 600;
}

.deposit-type input[type="radio"]:checked + .form-check-label::before {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
/* 卡片式入金类型样式 */
.deposit-card {
    display: block;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #ffffff;
    text-align: center;
    color: #495057;
}

.deposit-card:hover {
    border-color: #0d6efd;
    background-color: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.deposit-card.active,
.deposit-card input[type="radio"]:checked + div {
    border-color: #0d6efd;
    background-color: #0d6efd;
    color: white;
}

.deposit-card input[type="radio"]:checked + div {
    transition: all 0.3s ease;
}

/* 银行卡片样式 */
.bank-card {
    border-color: #e9ecef;
}

.bank-card:hover {
    border-color: #198754;
    background-color: #d1e7dd;
}

.bank-card.active,
.bank-card input[type="radio"]:checked + div {
    border-color: #198754;
    background-color: #198754;
    color: white;
}

/* USDT卡片样式 */
.usdt-card {
    border-color: #e9ecef;
}

.usdt-card:hover {
    border-color: #ffc107;
    background-color: #fff3cd;
}

.usdt-card.active,
.usdt-card input[type="radio"]:checked + div {
    border-color: #ffc107;
    background-color: #ffc107;
    color: #212529;
}

/* 可视化隐藏单选按钮 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 金额输入框样式 */
.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    font-weight: 600;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-left: none;
}

/* 兑换比例卡片样式 */
.card.bg-light {
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

/* 提交按钮样式 */
.btn-primary {
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* 统一按钮样式 */
.modal-footer .btn,
.result-actions .btn,
.alert-success .btn,
.alert-danger .btn {
    font-size: 0.875rem !important;
    padding: 0.375rem 0.75rem !important;
    font-weight: 400 !important;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* 提交中状态样式 */
.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

/* 旋转动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误提示样式优化 */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
    margin-left: 0.5rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#bankInfo, #usdtInfo {
    animation: fadeIn 0.5s ease-in-out;
}

/* 银行信息和USDT信息卡片样式 */
.card.bg-light p {
    margin-bottom: 8px;
}

/* 注意事项样式 */
.alert-info {
    border-radius: 8px;
}

/* 二维码样式 */
img.img-fluid {
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* 表单标签样式 */
.form-label {
    color: #495057;
}

/* 标题样式 */
h3, h5 {
    color: #212529;
}

/* 强调文本样式 */
.text-success {
    font-weight: 600;
}

.text-primary {
    font-weight: 600;
}

.text-info {
    font-weight: 600;
}

.text-warning {
    font-weight: 600;
}

/* 美元显示样式优化 */
#usdExchangeRate {
    transition: all 0.3s ease;
}

#estimatedUsdAmount {
    transition: all 0.3s ease;
}

/* 汇率显示容器样式 */
.exchange-rate-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

/* 金额显示容器样式 */
.amount-container {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

/* ======================= 手机版样式 ======================= */

/* 手机容器样式 */
.mobile-container {
    padding: 8px !important;
    background-color: #f8f9fa;
}

/* 手机卡片样式 */
.mobile-card {
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    margin: 0 !important;
    border: none !important;
}

/* 手机标题样式 */
.mobile-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    padding: 12px 0 !important;
}

/* 手机入金类型选项 */
.mobile-deposit-type {
    padding: 12px 15px !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
    border-width: 1px !important;
}

/* 手机单选按钮 */
.mobile-radio {
    width: 18px !important;
    height: 18px !important;
    margin-right: 12px !important;
}

/* 手机输入框 */
.mobile-input {
    font-size: 0.95rem !important;
    padding: 12px !important;
    border-radius: 6px !important;
}

/* 手机兑换比例显示 */
.mobile-exchange-rate,
.mobile-estimated-amount {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

/* 手机内部卡片 */
.mobile-card-inner {
    padding: 15px !important;
    border-radius: 8px !important;
}

/* 手机二维码 */
.mobile-qr-code {
    max-width: 160px !important;
    margin: 0 auto !important;
    padding: 8px !important;
    background-color: white !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

/* 手机提示框 */
.mobile-alert {
    border-radius: 8px !important;
    padding: 15px !important;
    font-size: 0.85rem !important;
}

/* 长文本自动换行 */
.break-all {
    word-break: break-all !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
}

/* 手机提交按钮 */
.mobile-submit-btn {
    padding: 12px 20px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    background-color: #0d6efd !important;
    border: none !important;
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.3) !important;
    transition: all 0.3s ease !important;
}

.mobile-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4) !important;
    background-color: #0b5ed7 !important;
}

/* 手机输入框前缀 */
.input-group-text {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 0 20px !important;
    background-color: #f8f9fa !important;
    border-right: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 0 !important;
        margin: 0 !important;
        background-color: #f8f9fa !important;
    }
    
    .container,
    .container-fluid {
        padding: 10px !important;
    }
    
    .card {
        margin: 0 !important;
        border-radius: 16px !important;
    }
    
    .card-body {
        padding: 20px 15px !important;
    }
    
    .deposit-type {
        margin-bottom: 15px !important;
        padding: 20px 15px !important;
        border-radius: 12px !important;
    }
    
    .form-label {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }
    
    .form-check-label {
        font-size: 1.1rem !important;
    }
    
    h5 {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
    }
    
    ul {
        padding-left: 20px !important;
    }
    
    li {
        margin-bottom: 10px !important;
        font-size: 0.95rem !important;
    }
    
    /* 优化触摸体验 */
    input, button, select, textarea {
        -webkit-tap-highlight-color: transparent;
        outline: none;
    }
    
    /* 增大点击区域 */
    .form-check-label {
        padding: 10px 0 !important;
        display: block;
    }
    
    /* 防止输入框放大 */
    input[type="number"] {
        font-size: 1.1rem !important;
    }
}

/* ======================= 语言切换样式 ======================= */

/* 语言切换器容器样式 */
.language-switcher {
    position: relative;
}

/* 语言下拉按钮样式 */
.language-switcher .btn {
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: white;
    color: #0d6efd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 语言下拉按钮悬停样式 */
.language-switcher .btn:hover {
    background-color: white;
    border-color: rgba(255, 255, 255, 0.5);
    color: #0d6efd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 语言下拉按钮聚焦样式 */
.language-switcher .btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 语言下拉菜单样式 */
.language-switcher .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 100px;
    margin-top: 5px !important;
}

/* 语言下拉菜单项样式 */
.language-switcher .dropdown-item {
    padding: 8px 16px;
    font-size: 13px;
    transition: all 0.2s ease;
    cursor: pointer;
    color: #495057;
    border-radius: 4px;
    margin: 2px 8px;
}

/* 语言下拉菜单项悬停样式 */
.language-switcher .dropdown-item:hover {
    background-color: #f0f7ff;
    color: #0d6efd;
    transform: translateX(2px);
}

/* 语言下拉菜单项激活样式 */
.language-switcher .dropdown-item.active {
    background-color: #0d6efd;
    color: white;
    border-radius: 4px;
    margin: 2px 8px;
}

/* 手机端语言切换样式 */
@media (max-width: 576px) {
    .language-switcher .btn {
        padding: 4px 10px;
        font-size: 11px;
        min-width: 80px;
    }
    
    .card-header h4.mobile-title {
        font-size: 1rem !important;
        padding: 8px 0 !important;
    }
    
    .card-header {
        padding: 12px 15px !important;
    }
    
    .language-switcher .dropdown-menu {
        min-width: 90px;
    }
    
    .language-switcher .dropdown-item {
        padding: 6px 12px;
        font-size: 12px;
    }
}