/* =========================
   充值弹窗容器
   兼容低版本浏览器和iOS设备
   支持三种主题：dark（默认）、light、blue
========================= */

/* 遮罩层 */
.deposit-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    -webkit-animation: fadeIn 0.3s ease;
    animation: fadeIn 0.3s ease;
}

.deposit-overlay.active {
    display: block;
}

/* 弹窗主体 - 全屏模式 */
.deposit-modal {
    background-color: #1a1a1a;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-animation: slideUp 0.3s ease;
    animation: slideUp 0.3s ease;
}

/* 头部 */
.deposit-header {
    position: relative;
    padding: 16px 56px;
    background-color: #2d2d2d;
    border-bottom: 1px solid #404040;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.deposit-title {
    font-size: 18px;
    font-weight: bold;
    color: #e0e0e0;
    text-align: center;
    line-height: 1.4;
}

/* 关闭按钮 */
.deposit-close {
    position: absolute;
    top: 50%;
    right: 14px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: #999;
    font-size: 30px;
    line-height: 30px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border-radius: 50%;
    padding: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.deposit-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.deposit-close:active {
    background-color: rgba(255, 255, 255, 0.15);
    -webkit-transform: translateY(-50%) scale(0.95);
    -ms-transform: translateY(-50%) scale(0.95);
    transform: translateY(-50%) scale(0.95);
}

/* 弹窗主体内容区 */
.deposit-body {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    background-color: #1a1a1a;
}

/* 隐藏radio */
.deposit-tab-radio {
    display: none;
}

/* Tab导航 */
.deposit-tabs {
    padding: 0;
    background-color: #2d2d2d;
    border-bottom: 1px solid #505050;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.deposit-tab-buttons {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}

.deposit-tab-btn {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    position: relative;
    color: #999;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    border-bottom: 2px solid transparent;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}

.deposit-tab-btn:active {
    background-color: rgba(255, 255, 255, 0.05);
}

.deposit-tab-btn .tab-text {
    font-size: 15px;
    font-weight: 500;
}

/* Tab选中状态 */
.deposit-body #deposit-tab-apply:checked ~ .deposit-tabs .deposit-tab-btn[data-tab="apply"],
.deposit-body #deposit-tab-records:checked ~ .deposit-tabs .deposit-tab-btn[data-tab="records"] {
    color: #FFD54F;
    border-bottom-color: #FFD54F;
}

/* Tab内容显示控制 */
.deposit-tab-content {
    display: none;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.deposit-body #deposit-tab-apply:checked ~ #applyContent,
.deposit-body #deposit-tab-records:checked ~ #recordsContent {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

/* 申请充值表单 */
.deposit-form-container {
    padding: 16px;
    /* iOS兼容性：防止内容被安全区域遮挡 */
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

/* 支付方式选择 */
.deposit-payment-method-section {
    margin-bottom: 20px;
}

.payment-method-switch {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    padding: 4px;
    background-color: #2d2d2d;
    border-radius: 10px;
    border: 1px solid #404040;
    /* iOS兼容性：确保间距足够 */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin-left: -6px;
    margin-right: -6px;
}

.payment-method-switch > * {
    margin-left: 6px;
    margin-right: 6px;
}

.method-option {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.method-label {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #999;
    background-color: transparent;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* iOS兼容性：确保点击区域足够大（Apple推荐最小44x44px） */
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: transparent;
    /* iOS兼容性：确保文字不会太小 */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.method-option input[type="radio"]:checked + .method-label {
    background-color: #404040;
    color: #FFD54F;
    font-weight: 500;
}

/* 支付方式内容区域 */
.deposit-payment-content {
    margin-bottom: 20px;
}

/* USDT地址区域 */
.deposit-address-section {
    margin-bottom: 20px;
}

.usdt-address-wrapper {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px 16px;
    background-color: #2d2d2d;
    border: 2px solid #404040;
    border-radius: 10px;
}

.usdt-address-text {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    font-size: 14px;
    color: #e0e0e0;
    word-break: break-all;
    min-width: 0;
}

.copy-btn {
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    padding: 6px 12px;
    background-color: #404040;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    color: #e0e0e0;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.copy-btn:active {
    background-color: #505050;
    -webkit-transform: scale(0.95);
    -ms-transform: scale(0.95);
    transform: scale(0.95);
}

/* 二维码区域 */
.qr-code-wrapper {
    text-align: center;
    padding: 16px;
    background-color: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 10px;
    margin-top: 12px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.qr-code-image {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    border-radius: 8px;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.qr-code-tip {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

.section-title {
    font-size: 15px;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 12px;
}

/* 输入方式切换 */
.deposit-input-mode-section {
    margin-bottom: 20px;
}

.input-mode-switch {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
    padding: 4px;
    background-color: #2d2d2d;
    border: 2px solid #404040;
    border-radius: 10px;
}

.mode-option {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    position: relative;
    cursor: pointer;
}

.mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mode-label {
    display: block;
    padding: 10px 16px;
    text-align: center;
    font-size: 14px;
    color: #999;
    border-radius: 8px;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.mode-option input[type="radio"]:checked + .mode-label {
    background-color: #FFD54F;
    color: #1a1a1a;
    font-weight: 500;
}

/* 金额输入区域 */
.deposit-amount-section {
    margin-bottom: 20px;
}

.amount-input-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.amount-input {
    width: 100%;
    padding: 14px 50px 14px 16px;
    background-color: #2d2d2d;
    border: 2px solid #404040;
    border-radius: 10px;
    font-size: 18px;
    color: #e0e0e0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.amount-input:focus {
    outline: none;
    border-color: #FFD54F;
    background-color: rgba(255, 213, 79, 0.05);
}

.amount-unit {
    position: absolute;
    right: 16px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
    pointer-events: none;
}

.amount-hint {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    padding: 0 4px;
}

/* 换算结果显示 */
.deposit-convert-section {
    background-color: #2d2d2d;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #404040;
}

.convert-arrow {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-bottom: 12px;
}

.convert-result {
    margin-bottom: 12px;
}

.convert-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 8px;
}

.convert-item:last-child {
    margin-bottom: 0;
}

.convert-label {
    font-size: 14px;
    color: #999;
}

.convert-value {
    font-size: 16px;
    font-weight: 500;
    color: #FFD54F;
}

.convert-unit {
    font-size: 14px;
    color: #999;
    margin-left: 4px;
}

.rate-info {
    font-size: 12px;
    color: #999;
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid #404040;
}

/* 赠送金额显示 */
.deposit-bonus-section {
    background-color: #2d2d2d;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #404040;
}

.bonus-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 12px;
}

.bonus-row:last-child {
    margin-bottom: 0;
}

.bonus-label {
    font-size: 14px;
    color: #999;
}

.bonus-value {
    font-size: 16px;
    font-weight: 500;
    color: #e0e0e0;
}

.bonus-value-highlight {
    font-size: 18px;
    color: #FFD54F;
}

.bonus-unit {
    font-size: 14px;
    color: #999;
    margin-left: 4px;
}

/* 转账凭证上传 */
.deposit-voucher-section {
    margin-bottom: 20px;
}

.voucher-upload-wrapper {
    position: relative;
}

.voucher-upload-btn {
    width: 100%;
    padding: 14px 16px;
    background-color: #2d2d2d;
    border: 2px dashed #404040;
    border-radius: 10px;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
}

.voucher-upload-btn:active {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #FFD54F;
}

.voucher-preview {
    position: relative;
    margin-top: 12px;
    padding: 12px;
    background-color: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 10px;
    text-align: center;
}

.voucher-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

.voucher-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.voucher-remove-btn:active {
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-transform: scale(0.9);
    -ms-transform: scale(0.9);
    transform: scale(0.9);
}

/* 备注输入 */
.deposit-remark-section {
    margin-bottom: 20px;
}

.remark-input {
    width: 100%;
    padding: 14px 16px;
    background-color: #2d2d2d;
    border: 2px solid #404040;
    border-radius: 10px;
    font-size: 14px;
    color: #e0e0e0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.remark-input:focus {
    outline: none;
    border-color: #FFD54F;
    background-color: rgba(255, 213, 79, 0.05);
}

/* 提交按钮 */
.deposit-submit-section {
    margin-bottom: 20px;
}

.deposit-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FFD54F 0%, #FFC107 100%);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #1a1a1a;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-box-shadow: 0 2px 8px rgba(255, 213, 79, 0.3);
    box-shadow: 0 2px 8px rgba(255, 213, 79, 0.3);
}

.deposit-submit-btn:active {
    -webkit-transform: scale(0.98);
    -ms-transform: scale(0.98);
    transform: scale(0.98);
    -webkit-box-shadow: 0 1px 4px rgba(255, 213, 79, 0.3);
    box-shadow: 0 1px 4px rgba(255, 213, 79, 0.3);
}

.deposit-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 充值记录列表 */
.deposit-filters {
    padding: 12px 16px;
    background-color: #2d2d2d;
    border-bottom: 1px solid #404040;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.filter-select {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 10px 16px;
    background-color: #1a1a1a;
    border: 2px solid #404040;
    border-radius: 8px;
    font-size: 14px;
    color: #e0e0e0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.deposit-list-container {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.deposit-list {
    padding: 16px;
}

.deposit-item {
    background-color: #2d2d2d;
    border: 1px solid #404040;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.deposit-item-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 8px;
}

.deposit-item-payment-method-wrapper {
    margin-bottom: 12px;
    /* iOS兼容性：确保间距足够 */
    padding-top: 4px;
    padding-bottom: 4px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}

.deposit-item-channel-icon {
    width: 18px;
    height: 18px;
    -o-object-fit: contain;
    object-fit: contain;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: middle;
}

.deposit-item-payment-method {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background-color: rgba(255, 213, 79, 0.2);
    color: #FFD54F;
}

.deposit-item-title {
    font-size: 15px;
    font-weight: 500;
    color: #e0e0e0;
}

.deposit-item-status {
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.deposit-item-status.pending {
    background-color: rgba(255, 170, 0, 0.2);
    color: #FFAA00;
}

.deposit-item-status.paid {
    background-color: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.deposit-item-status.completed {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.deposit-item-status.failed,
.deposit-item-status.cancelled {
    background-color: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.deposit-item-body {
    margin-bottom: 12px;
}

.deposit-item-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 8px;
}

.deposit-item-row:last-child {
    margin-bottom: 0;
}

.deposit-item-label {
    font-size: 13px;
    color: #999;
}

.deposit-item-value {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 500;
}

.deposit-item-amount {
    color: #FFD54F;
    font-size: 16px;
}

.deposit-item-footer {
    padding-top: 12px;
    border-top: 1px solid #404040;
    font-size: 12px;
    color: #999;
}

.deposit-loading,
.deposit-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #404040;
    border-top-color: #FFD54F;
    border-radius: 50%;
    margin: 0 auto 16px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

.deposit-load-more {
    padding: 16px;
    background-color: #2d2d2d;
    border-top: 1px solid #404040;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    text-align: center;
}

.load-more-btn {
    padding: 10px 24px;
    background-color: #404040;
    border: 1px solid #505050;
    border-radius: 8px;
    font-size: 14px;
    color: #e0e0e0;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.load-more-btn:active {
    background-color: #505050;
    border-color: #FFD54F;
}

/* 动画 */
@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@-webkit-keyframes slideUp {
    from {
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }
    to {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }
    to {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@-webkit-keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* =========================
   充值弹窗 - 白色主题
========================= */

#theme-light:checked ~ * .deposit-modal {
    background-color: #ffffff;
}

#theme-light:checked ~ * .deposit-header {
    background-color: #f5f5f5;
    border-bottom-color: #e0e0e0;
}

#theme-light:checked ~ * .deposit-title {
    color: #333333;
}

#theme-light:checked ~ * .deposit-close {
    color: #999999;
}

#theme-light:checked ~ * .deposit-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333333;
}

#theme-light:checked ~ * .deposit-close:active {
    background-color: rgba(0, 0, 0, 0.1);
}

#theme-light:checked ~ * .deposit-body {
    background-color: #f5f5f5;
}

#theme-light:checked ~ * .deposit-tabs {
    background-color: #ffffff;
    border-bottom-color: #d0d0d0;
}

#theme-light:checked ~ * .deposit-tab-btn {
    color: #999999;
}

#theme-light:checked ~ * .deposit-body #deposit-tab-apply:checked ~ .deposit-tabs .deposit-tab-btn[data-tab="apply"],
#theme-light:checked ~ * .deposit-body #deposit-tab-records:checked ~ .deposit-tabs .deposit-tab-btn[data-tab="records"] {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

#theme-light:checked ~ * .section-title {
    color: #333333;
}

#theme-light:checked ~ * .usdt-address-wrapper,
#theme-light:checked ~ * .qr-code-wrapper,
#theme-light:checked ~ * .input-mode-switch,
#theme-light:checked ~ * .payment-method-switch,
#theme-light:checked ~ * .deposit-convert-section,
#theme-light:checked ~ * .deposit-bonus-section,
#theme-light:checked ~ * .voucher-preview {
    background-color: #ffffff;
    border-color: #e0e0e0;
}

#theme-light:checked ~ * .usdt-address-text {
    color: #333333;
}

#theme-light:checked ~ * .copy-btn {
    background-color: #f5f5f5;
    color: #333333;
}

#theme-light:checked ~ * .copy-btn:active {
    background-color: #e0e0e0;
}

#theme-light:checked ~ * .mode-label,
#theme-light:checked ~ * .method-label {
    color: #666666;
}

#theme-light:checked ~ * .mode-option input[type="radio"]:checked + .mode-label,
#theme-light:checked ~ * .method-option input[type="radio"]:checked + .method-label {
    background-color: #4CAF50;
    color: #ffffff;
}

#theme-light:checked ~ * .amount-input,
#theme-light:checked ~ * .remark-input {
    background-color: #ffffff;
    border-color: #e0e0e0;
    color: #333333;
}

#theme-light:checked ~ * .amount-input:focus,
#theme-light:checked ~ * .remark-input:focus {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.05);
}

#theme-light:checked ~ * .convert-value,
#theme-light:checked ~ * .bonus-value-highlight {
    color: #4CAF50;
}

#theme-light:checked ~ * .deposit-submit-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #ffffff;
    -webkit-box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

#theme-light:checked ~ * .deposit-filters {
    background-color: #ffffff;
    border-bottom-color: #e0e0e0;
}

#theme-light:checked ~ * .filter-select {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    color: #333333;
}

#theme-light:checked ~ * .deposit-item {
    background-color: #ffffff;
    border-color: #e0e0e0;
}

#theme-light:checked ~ * .deposit-item-payment-method {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

#theme-light:checked ~ * .deposit-item-title {
    color: #333333;
}

#theme-light:checked ~ * .deposit-item-amount {
    color: #4CAF50;
}

#theme-light:checked ~ * .deposit-load-more {
    background-color: #ffffff;
    border-top-color: #e0e0e0;
}

#theme-light:checked ~ * .load-more-btn {
    background-color: #f5f5f5;
    color: #4CAF50;
    border-color: #e0e0e0;
}

#theme-light:checked ~ * .load-more-btn:active {
    background-color: #eeeeee;
    border-color: #4CAF50;
}

#theme-light:checked ~ * .deposit-empty,
#theme-light:checked ~ * .deposit-loading p {
    color: #999999;
}

/* =========================
   充值弹窗 - 蓝色主题
========================= */

#theme-blue:checked ~ * .deposit-modal {
    background-color: #ffffff;
}

#theme-blue:checked ~ * .deposit-header {
    background-color: #e3f2fd;
    border-bottom-color: #bbdefb;
}

#theme-blue:checked ~ * .deposit-title {
    color: #1565c0;
}

#theme-blue:checked ~ * .deposit-close {
    color: #64b5f6;
}

#theme-blue:checked ~ * .deposit-close:hover {
    background-color: rgba(33, 150, 243, 0.1);
    color: #1565c0;
}

#theme-blue:checked ~ * .deposit-close:active {
    background-color: rgba(33, 150, 243, 0.15);
}

#theme-blue:checked ~ * .deposit-body {
    background-color: #f3f9ff;
}

#theme-blue:checked ~ * .deposit-tabs {
    background-color: #ffffff;
    border-bottom-color: #90caf9;
}

#theme-blue:checked ~ * .deposit-tab-btn {
    color: #90caf9;
}

#theme-blue:checked ~ * .deposit-body #deposit-tab-apply:checked ~ .deposit-tabs .deposit-tab-btn[data-tab="apply"],
#theme-blue:checked ~ * .deposit-body #deposit-tab-records:checked ~ .deposit-tabs .deposit-tab-btn[data-tab="records"] {
    color: #2196F3;
    border-bottom-color: #2196F3;
}

#theme-blue:checked ~ * .section-title {
    color: #0d47a1;
}

#theme-blue:checked ~ * .usdt-address-wrapper,
#theme-blue:checked ~ * .qr-code-wrapper,
#theme-blue:checked ~ * .input-mode-switch,
#theme-blue:checked ~ * .payment-method-switch,
#theme-blue:checked ~ * .deposit-convert-section,
#theme-blue:checked ~ * .deposit-bonus-section,
#theme-blue:checked ~ * .voucher-preview {
    background-color: #ffffff;
    border-color: #bbdefb;
}

#theme-blue:checked ~ * .usdt-address-text {
    color: #0d47a1;
}

#theme-blue:checked ~ * .copy-btn {
    background-color: #e3f2fd;
    color: #1565c0;
}

#theme-blue:checked ~ * .copy-btn:active {
    background-color: #bbdefb;
}

#theme-blue:checked ~ * .mode-label,
#theme-blue:checked ~ * .method-label {
    color: #64b5f6;
}

#theme-blue:checked ~ * .mode-option input[type="radio"]:checked + .mode-label,
#theme-blue:checked ~ * .method-option input[type="radio"]:checked + .method-label {
    background-color: #2196F3;
    color: #ffffff;
}

#theme-blue:checked ~ * .amount-input,
#theme-blue:checked ~ * .remark-input {
    background-color: #ffffff;
    border-color: #bbdefb;
    color: #0d47a1;
}

#theme-blue:checked ~ * .amount-input:focus,
#theme-blue:checked ~ * .remark-input:focus {
    border-color: #2196F3;
    background-color: rgba(33, 150, 243, 0.05);
}

#theme-blue:checked ~ * .convert-value,
#theme-blue:checked ~ * .bonus-value-highlight {
    color: #1565c0;
}

/* =========================
   第三方支付通道选择
========================= */

.deposit-channel-section {
    margin-bottom: 20px;
}

.channel-list {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 12px;
    margin-left: -4px;
    margin-right: -4px;
}

.channel-list > * {
    margin-left: 4px;
    margin-right: 4px;
    margin-bottom: 12px;
}

.channel-item {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 calc(33.333% - 8px);
    -ms-flex: 0 0 calc(33.333% - 8px);
    flex: 0 0 calc(33.333% - 8px);
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 7px 0;
    background-color: #2d2d2d;
    border: 2px solid #404040;
    border-radius: 6px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    min-height: 34px;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.channel-item:hover {
    border-color: #FFD54F;
    background-color: rgba(255, 213, 79, 0.1);
}

.channel-item.selected {
    border-color: #FFD54F;
    background-color: rgba(255, 213, 79, 0.15);
}

.channel-icon {
    width: 19px;
    height: 19px;
    -o-object-fit: contain;
    object-fit: contain;
    border-radius: 4px;
    margin-right: 5px;
}

.channel-icon:last-child {
    margin-right: 0;
}

.channel-name {
    font-size: 12px;
    color: #e0e0e0;
    font-weight: 700;
    word-break: break-word;
    text-align: center;
    line-height: 1.3;
}

.channel-loading,
.channel-error {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.channel-error {
    color: #ff6b6b;
}

/* 固定金额按钮 */
.fixed-amount-buttons {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 12px;
    margin-left: -6px;
    margin-right: -6px;
}

.fixed-amount-buttons > * {
    margin-left: 6px;
    margin-right: 6px;
    margin-bottom: 12px;
}

.fixed-amount-btn {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 calc(25% - 12px);
    -ms-flex: 0 0 calc(25% - 12px);
    flex: 0 0 calc(25% - 12px);
    padding: 14px 8px;
    background-color: #2d2d2d;
    border: 2px solid #404040;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #e0e0e0;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    text-align: center;
}

.fixed-amount-btn:hover {
    border-color: #FFD54F;
    background-color: rgba(255, 213, 79, 0.1);
}

.fixed-amount-btn.selected {
    border-color: #FFD54F;
    background-color: rgba(255, 213, 79, 0.2);
    color: #FFD54F;
}

/* Light主题 */
#theme-light:checked ~ * .channel-item {
    background-color: #ffffff;
    border-color: #e0e0e0;
    color: #333333;
}

#theme-light:checked ~ * .channel-item:hover {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

#theme-light:checked ~ * .channel-item.selected {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.15);
}

#theme-light:checked ~ * .channel-name {
    color: #333333;
}

#theme-light:checked ~ * .fixed-amount-btn {
    background-color: #ffffff;
    border-color: #e0e0e0;
    color: #333333;
}

#theme-light:checked ~ * .fixed-amount-btn:hover {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

#theme-light:checked ~ * .fixed-amount-btn.selected {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

/* Blue主题 */
#theme-blue:checked ~ * .channel-item {
    background-color: #ffffff;
    border-color: #bbdefb;
    color: #0d47a1;
}

#theme-blue:checked ~ * .channel-item:hover {
    border-color: #2196F3;
    background-color: rgba(33, 150, 243, 0.1);
}

#theme-blue:checked ~ * .channel-item.selected {
    border-color: #2196F3;
    background-color: rgba(33, 150, 243, 0.15);
}

#theme-blue:checked ~ * .channel-name {
    color: #0d47a1;
}

#theme-blue:checked ~ * .fixed-amount-btn {
    background-color: #ffffff;
    border-color: #bbdefb;
    color: #0d47a1;
}

#theme-blue:checked ~ * .fixed-amount-btn:hover {
    border-color: #2196F3;
    background-color: rgba(33, 150, 243, 0.1);
}

#theme-blue:checked ~ * .fixed-amount-btn.selected {
    border-color: #2196F3;
    background-color: rgba(33, 150, 243, 0.2);
    color: #1565c0;
}

#theme-blue:checked ~ * .deposit-submit-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #ffffff;
    -webkit-box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

#theme-blue:checked ~ * .deposit-filters {
    background-color: #ffffff;
    border-bottom-color: #90caf9;
}

#theme-blue:checked ~ * .filter-select {
    background-color: #e3f2fd;
    border-color: #bbdefb;
    color: #0d47a1;
}

#theme-blue:checked ~ * .deposit-item {
    background-color: #ffffff;
    border-color: #bbdefb;
}

#theme-blue:checked ~ * .deposit-item-payment-method {
    background-color: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

#theme-blue:checked ~ * .deposit-item-title {
    color: #0d47a1;
}

#theme-blue:checked ~ * .deposit-item-amount {
    color: #1565c0;
}

#theme-blue:checked ~ * .deposit-load-more {
    background-color: #ffffff;
    border-top-color: #90caf9;
}

#theme-blue:checked ~ * .load-more-btn {
    background-color: #e3f2fd;
    color: #2196F3;
    border-color: #bbdefb;
}

#theme-blue:checked ~ * .load-more-btn:active {
    background-color: #bbdefb;
    border-color: #2196F3;
}

#theme-blue:checked ~ * .deposit-empty,
#theme-blue:checked ~ * .deposit-loading p {
    color: #90caf9;
}

