/* 钱包页面样式 */
.wallet-navbar {
    background: transparent;
    box-shadow: none;
}

.wallet-navbar .navbar-content {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    margin: 4px 12px;
}

.wallet-page {
    padding-top: 52px;
    padding-bottom: 60px;
    background: var(--bg-page);
}

/* 资产总览卡片 */
.asset-overview {
    padding: 20px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.asset-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.asset-total {
    margin-bottom: 25px;
}

.asset-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.asset-amount {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.asset-amount .currency {
    font-size: 20px;
    font-weight: 600;
    color: var(--bg-white);
}

.asset-amount .amount {
    font-size: 36px;
    font-weight: bold;
    color: var(--bg-white);
    line-height: 1;
}

.asset-amount #toggleBalance {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.asset-amount #toggleBalance:hover {
    color: var(--bg-white);
}

.asset-details {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
}

.asset-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.asset-item .asset-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.asset-item .asset-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--bg-white);
}

.asset-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 15px;
}

/* 快捷操作 */
.quick-actions {
    background: var(--bg-white);
    padding: 20px 12px;
    margin-bottom: 12px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-item:hover {
    transform: translateY(-3px);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--bg-white);
}

.action-icon.recharge {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.action-icon.withdraw {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.action-icon.transfer {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.action-icon.records {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.action-label {
    font-size: 13px;
    color: var(--text-primary);
}

/* 银行卡区域 */
.bank-section {
    background: var(--bg-white);
    padding: 15px 12px;
    margin-bottom: 12px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
}

.section-title i {
    color: var(--primary-color);
}

.section-more {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.section-more:hover {
    gap: 6px;
}

.bank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bank-card {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 12px;
    padding: 20px;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

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

.bank-card.type-1 {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.bank-card.type-2 {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

.bank-card.type-3 {
    background: linear-gradient(135deg, #833ab4, #fd1d1d);
}

.bank-card.type-4 {
    background: linear-gradient(135deg, #fc4a1a, #f7b733);
}

.bank-info {
    position: relative;
    z-index: 1;
}

.bank-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.bank-number {
    font-size: 18px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.bank-details {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.8;
}

.bank-holder {
    flex: 1;
}

.bank-type {
    text-align: right;
}

/* 交易记录 */
.transaction-section {
    background: var(--bg-white);
    padding: 15px 12px;
    margin-bottom: 12px;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-page);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.transaction-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--bg-white);
}

.transaction-icon.recharge {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.transaction-icon.withdraw {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.transaction-icon.buy {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.transaction-icon.sell {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.transaction-time {
    font-size: 12px;
    color: var(--text-light);
}

.transaction-right {
    text-align: right;
}

.transaction-amount {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.transaction-amount.income {
    color: var(--success-color);
}

.transaction-amount.expense {
    color: var(--danger-color);
}

.transaction-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.transaction-status.success {
    background: rgba(82, 196, 26, 0.1);
    color: var(--success-color);
}

.transaction-status.pending {
    background: rgba(250, 173, 20, 0.1);
    color: var(--warning-color);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-add-bank {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* 充值/提现表单 */
.recharge-amount-input,
.withdraw-amount-input,
.form-item {
    margin-bottom: 20px;
}

.recharge-amount-input label,
.withdraw-amount-input label,
.form-item label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.amount-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-page);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.amount-input-wrapper:focus-within {
    border-color: var(--primary-color);
    background: var(--bg-white);
}

.currency-symbol {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.amount-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    outline: none;
}

.withdraw-tip {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.withdraw-tip strong {
    color: var(--primary-color);
}

/* 充值方式 */
.recharge-method,
.withdraw-bank {
    margin-top: 25px;
}

.method-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-page);
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.method-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.method-item.active {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.method-item i {
    font-size: 24px;
}

.method-item .fab.fa-alipay {
    color: #1677ff;
}

.method-item .fab.fa-weixin {
    color: #07c160;
}

.method-item .fas.fa-university {
    color: var(--primary-color);
}

.method-item span {
    flex: 1;
    font-size: 15px;
    color: var(--text-primary);
}

.method-item .check-icon {
    font-size: 20px;
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.method-item.active .check-icon {
    opacity: 1;
}

/* 银行卡选择 */
.bank-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-page);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bank-select:hover {
    background: rgba(102, 126, 234, 0.05);
}

.bank-select span {
    font-size: 15px;
    color: var(--text-primary);
}

/* 确认按钮 */
.btn-confirm {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

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

/* 底部标签栏 */
.wallet-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    display: flex;
    z-index: 1000;
}
