/* ==================== 全局样式 ==================== */
/**
 *作者Telegram：https://t.me/facai_hule
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

body {
    background: #2d2d2d;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0px, transparent 1px, transparent 50px, rgba(255, 255, 255, 0.03) 51px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0px, transparent 1px, transparent 50px, rgba(255, 255, 255, 0.03) 51px);
    pointer-events: none;
}

/* ==================== 顶部导航栏 ==================== */
.top-bar {
    background: linear-gradient(180deg, #147B45 0%, #3EAB37 100%);
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.user-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    margin: 0 15px;
    max-width: 500px;
}

.user-icon {
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
}

.user-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.balance-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.balance-label {
    font-size: 14px;
    color: #666;
}

.balance-amount {
    font-size: 16px;
    font-weight: bold;
    color: #147B45;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* ==================== 标签页切换 ==================== */
.tabs-container {
    padding: 15px;
    background: #f5f5f5;
    display: flex;
    gap: 10px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.5);
    color: #666;
}

.tab-btn.active {
    background: linear-gradient(135deg, #147B45 0%, #3EAB37 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(20, 123, 69, 0.4);
}

/* ==================== 内容区域 ==================== */
.content {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ==================== 充值页面（只保留区块链充值） ==================== */

.channel-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.channel-header {
    background: linear-gradient(135deg, #147B45 0%, #3EAB37 100%);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.crypto-item {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.crypto-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.crypto-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #147B45 0%, #3EAB37 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

.crypto-info {
    flex: 1;
}

.crypto-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.crypto-desc {
    font-size: 12px;
    color: #999;
}

/* ==================== 提现方式切换标签 ==================== */
.method-tabs {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 15px;
    margin-bottom: 20px;
}

.method-tab {
    flex: 1;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.method-tab:hover {
    border-color: #147B45;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 123, 69, 0.2);
}

.method-tab.active {
    background: linear-gradient(135deg, #147B45 0%, #3EAB37 100%);
    color: #fff;
    border-color: #147B45;
    box-shadow: 0 4px 12px rgba(20, 123, 69, 0.4);
}

/* ==================== 表单样式 ==================== */
.form-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.notice-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff3cd;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.notice-icon {
    width: 30px;
    height: 30px;
    background: #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.notice-text {
    font-size: 14px;
    color: #856404;
    font-weight: bold;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: auto;
}

.form-label {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    background: #f8f8f8;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #147B45;
    background: #fff;
}

/* 下拉选择框样式（参考superior_assistance.html） */
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232fa14b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.form-select:focus {
    outline: none;
    border-color: #147B45;
    box-shadow: 0 0 0 3px rgba(20, 123, 69, 0.1);
}

.form-select option {
    padding: 10px;
}

/* 地址输入框包装器（支持复制按钮） */
.address-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-input-wrapper .form-select {
    flex: 1;
}

/* 复制地址按钮 */
.copy-address-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #147B45 0%, #3EAB37 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(20, 123, 69, 0.3);
}

.copy-address-btn:hover {
    background: linear-gradient(135deg, #3EAB37 0%, #147B45 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(20, 123, 69, 0.5);
}

.copy-address-btn:active {
    transform: scale(0.95);
}

/* 复制成功动画 */
.copy-address-btn.copied {
    background: linear-gradient(135deg, #147B45 0%, #3EAB37 100%);
    animation: copySuccess 0.5s ease;
}

@keyframes copySuccess {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.chain-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.chain-btn {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #666;
    min-width: 80px;
    text-align: center;
}

.chain-btn.active {
    background: #147B45;
    color: #fff;
    border-color: #147B45;
}

.rate-info {
    background: #f0f9ff;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #0066cc;
    margin-bottom: 15px;
}

.fee-warning {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #147B45 0%, #3EAB37 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.submit-btn:hover {
    box-shadow: 0 6px 16px rgba(20, 123, 69, 0.4);
    transform: translateY(-2px);
}

/* ==================== 下拉列表样式 ==================== */
.address-dropdown {
    position: relative;
}

.dropdown-selected {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    background: #f8f8f8;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.dropdown-selected:hover {
    border-color: #147B45;
    background: #fff;
}

.dropdown-selected.active {
    border-color: #147B45;
    background: #fff;
}

.dropdown-arrow {
    color: #999;
    transition: transform 0.3s;
}

.dropdown-selected.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
}

.dropdown-list.show {
    display: block;
}

.dropdown-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8f8f8;
}

.address-text {
    flex: 1;
    color: #333;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

.copy-btn {
    background: #147B45;
    color: #fff;
    border: none;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #00582c;
}

.copy-btn:active {
    transform: scale(0.95);
}

.forgot-password {
    text-align: right;
    margin-top: 10px;
}

.forgot-link {
    color: #147B45;
    text-decoration: none;
    font-size: 13px;
}

/* ==================== 银行卡样式 ==================== */
.bank-card {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border-radius: 15px;
    padding: 25px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.bank-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.bank-logo {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.bank-logo i {
    font-size: 24px;
    color: #d4af37;
}

.bank-name {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.bank-number {
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: monospace;
}

.card-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.3);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
}

/* ==================== 交易记录 ==================== */
.filter-bar {
    background: rgba(20, 123, 69, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-icon {
    font-size: 20px;
    color: #fff;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    cursor: pointer;
    outline: none;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-select:hover {
    border-color: #147B45;
    box-shadow: 0 2px 8px rgba(20, 123, 69, 0.2);
}

.filter-select:focus {
    border-color: #147B45;
    box-shadow: 0 2px 12px rgba(20, 123, 69, 0.3);
}

.filter-text {
    font-size: 14px;
    color: #fff;
    font-weight: bold;
}

.filter-amount {
    margin-left: auto;
    font-size: 16px;
    font-weight: bold;
    color: #147B45;
}

.transaction-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.transaction-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.transaction-type {
    background: #e3f2fd;
    color: #2196f3;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
}

.transaction-date {
    font-size: 13px;
    color: #999;
}

.transaction-status {
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: bold;
}

.transaction-status.completed {
    background: #d4edda;
    color: #155724;
}

.transaction-status.pending {
    background: #fff3cd;
    color: #856404;
}

.transaction-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.transaction-status.cancelled {
    background: #e2e3e5;
    color: #383d41;
}

.transaction-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.detail-label {
    color: #666;
}

.detail-value {
    color: #333;
    font-weight: bold;
}

.amount-value {
    color: #147B45;
    font-size: 16px;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-text {
    font-size: 16px;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .top-bar {
        padding: 12px 15px;
    }

    .user-info {
        padding: 8px 15px;
        margin: 0 10px;
    }

    .user-name {
        font-size: 14px;
    }

    .balance-amount {
        font-size: 14px;
    }

    .content {
        padding: 15px;
    }

    .chain-selector {
        gap: 8px;
    }

    .chain-btn {
        padding: 6px 15px;
        font-size: 13px;
        min-width: 70px;
    }

    /* 修复移动端下拉框显示位置 */
    .form-select {
        position: static !important;
        transform: none !important;
    }

    .form-group {
        position: static !important;
        overflow: visible !important;
    }
}

@media (min-width: 769px) {
    .content {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* ==================== 在线支付样式 ==================== */

/* 支付渠道分组 */
.pay-group {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.pay-group.expanded {
    border-color: #147B45;
}

.pay-group-header {
    background: #f8f8f8;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.pay-group-header:hover {
    background: #f0fff4;
}

.pay-group.expanded .pay-group-header {
    background: #e6f7ed;
}

.pay-group-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.pay-group-info {
    flex: 1;
}

.pay-group-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.pay-group-count {
    font-size: 12px;
    color: #999;
}

.pay-group-arrow {
    color: #ccc;
    font-size: 14px;
    transition: transform 0.3s;
}

.pay-group-arrow.expanded {
    transform: rotate(180deg);
    color: #147B45;
}

.pay-group-content {
    padding: 10px 15px 15px;
    background: #fff;
}

/* 支付通道选项 */
.pay-channel-item {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.pay-channel-item:hover {
    background: #f0fff4;
    border-color: #147B45;
    transform: translateX(5px);
}

.pay-channel-item.selected {
    background: #e6f7ed;
    border-color: #147B45;
}

.pay-channel-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
    flex-shrink: 0;
}

.pay-channel-icon.wechat {
    background: linear-gradient(135deg, #07c160 0%, #00cc5a 100%);
    color: #fff;
}

.pay-channel-icon.alipay {
    background: linear-gradient(135deg, #1677ff 0%, #40a9ff 100%);
    color: #fff;
}

.pay-channel-info {
    flex: 1;
}

.pay-channel-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.pay-channel-desc {
    font-size: 12px;
    color: #999;
}

.pay-channel-arrow {
    color: #ccc;
    font-size: 16px;
}

/* 已选择的通道显示 */
.selected-channel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 10px;
    color: #333;
}

.selected-channel i {
    color: #147B45;
    font-size: 20px;
}

/* 金额快捷选择 */
.amount-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.amount-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.amount-btn:hover {
    background: #e6f7ed;
    color: #147B45;
    border-color: #147B45;
}

.amount-btn.active {
    background: linear-gradient(135deg, #147B45 0%, #3EAB37 100%);
    color: #fff;
    border-color: #147B45;
}

/* 支付方式切换 */
.method-content {
    display: block;
}

/* ==================== 固定金额按钮样式 (pay_02) ==================== */
.fixed-amount-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fixed-amount-btn {
    min-width: 90px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.fixed-amount-btn:hover {
    background: #e6f7ed;
    border-color: #147B45;
    color: #147B45;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 123, 69, 0.2);
}

.fixed-amount-btn.active {
    background: linear-gradient(135deg, #147B45 0%, #3EAB37 100%);
    border-color: #147B45;
    color: #fff;
    box-shadow: 0 4px 15px rgba(20, 123, 69, 0.4);
}

.fixed-amount-label {
    margin-bottom: 12px;
    color: #666;
    font-size: 13px;
}

/* 快捷金额按钮 (pay_01) */
.quick-amount-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.quick-amount-btns .amount-btn {
    padding: 8px 20px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.quick-amount-btns .amount-btn:hover {
    background: #e6f7ed;
    color: #147B45;
    border-color: #147B45;
}

.quick-amount-btns .amount-btn.active {
    background: linear-gradient(135deg, #147B45 0%, #3EAB37 100%);
    color: #fff;
    border-color: #147B45;
}