/* 我的钱包页面样式 */

.main-container {
    max-width: 1080px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
}

/* 左侧边栏（复用游戏记录页面的样式） */
.sidebar {
    width: 240px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.sidebar-header {
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-logo {
    height: 40px;
    width: auto;
}

.user-account {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.account-label {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

.account-value-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.account-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s;
}

.copy-btn:hover {
    color: #3066ff;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.sidebar-nav-item:hover {
    background: #f5f5f5;
    color: #3066ff;
}

.sidebar-nav-item.active {
    background: #e6f4ff;
    color: #3066ff;
    font-weight: 600;
}

.sidebar-nav-item svg {
    flex-shrink: 0;
}

/* 主内容区域 */
.content-area {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-left: 12px;
}

.page-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #3066ff;
    border-radius: 2px;
}

/* 钱包余额卡片 */
.wallet-balance-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    color: #333;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.balance-header {
    margin-bottom: 12px;
}

.balance-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 0;
    margin-bottom: 0;
    padding-left: 115px;
    color: #333;
}

.eye-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.eye-btn:hover {
    opacity: 1;
    color: #333;
}

.balance-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.balance-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.wallet-icon {
    width: 83px;
    height: 78px;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    margin-top: -30px;
}

.wallet-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.balance-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 16px;
    flex: 1;
}

.balance-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.balance-amount .refresh-icon {
    width: 16px;
    height: 16px;
    cursor: pointer;
    color: #6D7693;
    opacity: 0.8;
    transition: opacity 0.3s;
    margin-left: 4px;
}

.balance-amount .refresh-icon:hover {
    opacity: 1;
}

.balance-value-large {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    color: #30303d;
}

.balance-unit {
    font-size: 20px;
    font-weight: 500;
    opacity: 0.9;
}

.balance-interest {
    font-size: 14px;
    color: #666;
    margin-top: 0;
}

.interest-value {
    font-weight: 600;
    color: #52c41a;
}

.balance-actions {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.action-btn-primary {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    background: #3066ff;
    border: 1px solid #3066ff;
    border-radius: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.action-btn-secondary {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.action-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #d9d9d9;
    color: #333;
}

.action-btn-primary:hover {
    background: #4d7aff;
    border-color: #4d7aff;
    transform: translateY(-2px);
}

.action-btn-primary svg {
    flex-shrink: 0;
}

/* 标签页 */
.tabs-section {
    margin-top: 30px;
}

.tabs-header {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #3066ff;
}

.tab-btn.active {
    color: #3066ff;
    border-bottom-color: #3066ff;
}

.tab-content {
    display: none;
}

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

/* 今日收益卡片 */
.earnings-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.earnings-card {
    background: #3066ff;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.earnings-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.earnings-value {
    font-size: 32px;
    font-weight: 700;
}

/* 转账记录 */
.transfers-list {
    min-height: 200px;
}

.transfer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.transfer-item:hover {
    background: #f9f9f9;
}

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

.transfer-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.transfer-type {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.transfer-time {
    font-size: 12px;
    color: #999;
}

.transfer-amount {
    font-size: 18px;
    font-weight: 700;
}

.transfer-amount.incoming {
    color: #52c41a;
}

.transfer-amount.outgoing {
    color: #ff4d4f;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .balance-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .balance-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .earnings-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
    }
    
    .balance-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .action-btn-primary {
        width: auto;
        justify-content: center;
    }
}

/* 提现弹窗 */
.withdrawal-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.withdrawal-modal-overlay.show {
    display: block;
}

.withdrawal-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.withdrawal-modal.show {
    display: block;
}

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

.withdrawal-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.withdrawal-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s;
}

.withdrawal-modal-close:hover {
    color: #333;
}

.withdrawal-modal-content {
    padding: 20px;
}

.withdrawal-section {
    margin-bottom: 20px;
}

.withdrawal-section:last-child {
    margin-bottom: 0;
}

.withdrawal-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.withdrawal-label.required::before {
    content: '*';
    color: #ff4d4f;
    margin-right: 4px;
}

.withdrawal-currency-btn {
    padding: 10px 20px;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    background: #3066ff;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.withdrawal-currency-btn.active {
    background: #3066ff;
    border-color: #3066ff;
    color: #fff;
}

.usdt-address-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.usdt-address-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.usdt-address-text {
    font-size: 14px;
    color: #666;
}

.usdt-address-mask {
    font-size: 14px;
    color: #999;
}

.add-address-btn {
    padding: 8px 16px;
    background: #3066ff;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.add-address-btn:hover {
    background: #4d7aff;
}

.withdrawal-amount-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.withdrawal-amount-field {
    flex: 1;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    outline: none;
}

.withdrawal-amount-field:focus {
    border-color: #3066ff;
}

.withdrawal-amount-field::placeholder {
    color: #999;
}

.max-amount-btn {
    padding: 8px 16px;
    background: #3066ff;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.max-amount-btn:hover {
    background: #4d7aff;
}

.withdrawal-balance-field,
.withdrawal-password-field,
.withdrawal-address-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    outline: none;
    box-sizing: border-box;
}

.withdrawal-balance-field:focus,
.withdrawal-password-field:focus,
.withdrawal-address-field:focus {
    border-color: #3066ff;
}

.withdrawal-balance-field {
    background: #f5f5f5;
    color: #666;
}

.withdrawal-password-field::placeholder {
    color: #999;
}

.withdrawal-modal-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.withdrawal-submit-btn {
    width: 100%;
    padding: 14px;
    background: #d9d9d9;
    border: none;
    border-radius: 8px;
    color: #999;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s;
}

.withdrawal-submit-btn:not(:disabled) {
    background: #3066ff;
    color: #fff;
    cursor: pointer;
}

.withdrawal-submit-btn:not(:disabled):hover {
    background: #4d7aff;
}

/* 内部转账弹窗 */
.transfer-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.transfer-modal-overlay.show {
    display: block;
}

.transfer-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.transfer-modal.show {
    display: block;
}

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

.transfer-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #3066ff;
    margin: 0;
}

.transfer-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s;
}

.transfer-modal-close:hover {
    color: #333;
}

.transfer-modal-content {
    padding: 20px;
}

.transfer-section {
    margin-bottom: 20px;
}

.transfer-section:last-child {
    margin-bottom: 0;
}

.transfer-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.transfer-label.required::before {
    content: '*';
    color: #ff4d4f;
    margin-right: 4px;
}

.transfer-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.transfer-input:focus {
    border-color: #3066ff;
}

.transfer-input::placeholder {
    color: #999;
}

.transfer-modal-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.transfer-submit-btn {
    width: 100%;
    padding: 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    color: #999;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s;
}

.transfer-submit-btn:not(:disabled) {
    background: #3066ff;
    border-color: #3066ff;
    color: #fff;
    cursor: pointer;
}

.transfer-submit-btn:not(:disabled):hover {
    background: #4d7aff;
    border-color: #4d7aff;
}

/* 支付密码弹窗 */
.payment-password-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.payment-password-modal-overlay.show {
    display: block;
}

.payment-password-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.payment-password-modal.show {
    display: block;
}

.payment-password-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.payment-password-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #3066ff;
    margin: 0;
}

.payment-password-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s;
}

.payment-password-modal-close:hover {
    color: #333;
}

.payment-password-modal-content {
    padding: 20px;
}

.payment-password-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.payment-password-hint {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.payment-password-section {
    margin-bottom: 20px;
}

.payment-password-section:last-child {
    margin-bottom: 0;
}

.payment-password-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.payment-password-label.required::before {
    content: '*';
    color: #ff4d4f;
    margin-right: 4px;
}

.payment-password-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.payment-password-input:focus {
    border-color: #3066ff;
}

.payment-password-input::placeholder {
    color: #999;
}

.payment-password-modal-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.payment-password-submit-btn {
    width: 100%;
    padding: 14px;
    background: #3066ff;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-password-submit-btn:hover {
    background: #4d7aff;
}

/* 转账记录筛选和表格 */
.transfers-filter {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.transfers-filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto;
}

.transfers-filter-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.transfers-filter-actions {
    display: flex;
    gap: 10px;
}

.transfers-query-btn,
.transfers-reset-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.transfers-query-btn {
    background: #3066ff;
    color: #fff;
}

.transfers-query-btn:hover {
    background: #4d7aff;
}

.transfers-reset-btn {
    background: #f5f5f5;
    color: #666;
}

.transfers-reset-btn:hover {
    background: #e8e8e8;
}

.transfers-table-section {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.transfers-table {
    width: 100%;
    border-collapse: collapse;
}

.transfers-table thead {
    background: #f9f9f9;
}

.transfers-table th {
    padding: 15px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.transfers-table td {
    padding: 15px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.transfers-table tbody tr:last-child td {
    border-bottom: none;
}

.transfers-table tbody tr:hover {
    background: #f9f9f9;
}

.transfers-table .empty-state {
    text-align: center;
    color: #999;
    padding: 40px;
}

.transfers-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
}

.pagination-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #3066ff;
    color: #3066ff;
}

.pagination-btn:disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.pagination-text {
    font-size: 14px;
    color: #666;
}

.pagination-input {
    width: 60px;
    padding: 6px 10px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    outline: none;
}

.pagination-input:focus {
    border-color: #3066ff;
}

/* 转账记录筛选和表格 */
.transfers-filter {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.transfers-filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto;
}

.transfers-filter-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.transfers-date-range {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0 6px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.3s;
    position: relative;
    width: 241px;
    height: 41px;
    box-sizing: border-box;
}

.transfers-date-range:hover {
    border-color: #3066ff;
}

.transfers-date-range.focused {
    border-color: #3066ff;
}

.transfers-date-icon {
    display: flex;
    align-items: center;
    color: #999;
    flex-shrink: 0;
}

.transfers-date-input {
    flex: 0 0 auto;
    padding: 10px 0;
    border: none;
    font-size: 14px;
    background: transparent;
    color: #333;
    cursor: pointer;
    outline: none;
    width: 75px;
    min-width: 75px;
    max-width: 75px;
}

.transfers-date-input::placeholder {
    color: #999;
}

.transfers-date-separator {
    color: #999;
    font-size: 14px;
    flex-shrink: 0;
    padding: 0 2px;
}

.transfers-date-close {
    display: flex;
    align-items: center;
    color: #999;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.3s;
}

.transfers-date-close:hover {
    color: #666;
}

.transfers-filter-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.transfers-query-btn,
.transfers-reset-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.transfers-query-btn {
    background: #3066ff;
    color: #fff;
}

.transfers-query-btn:hover {
    background: #4d7aff;
}

.transfers-reset-btn {
    background: #fff;
    color: #666;
    border: 1px solid #e8e8e8;
}

.transfers-reset-btn:hover {
    background: #f5f5f5;
    border-color: #d9d9d9;
}

.transfers-table-section {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.transfers-table {
    width: 100%;
    border-collapse: collapse;
}

.transfers-table thead {
    background: #f9f9f9;
}

.transfers-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.transfers-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.transfers-table tbody tr:last-child td {
    border-bottom: none;
}

.transfers-table tbody tr:hover {
    background: #f9f9f9;
}

.transfers-table .empty-state {
    text-align: center;
    color: #999;
    padding: 40px;
}

.transfers-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #3066ff;
    color: #3066ff;
}

.pagination-btn:disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.pagination-text {
    font-size: 14px;
    color: #666;
}

.pagination-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    outline: none;
}

.pagination-input:focus {
    border-color: #3066ff;
}

/* 转账记录表格样式 */
.transfers-table .outgoing {
    color: #ff4d4f;
    font-weight: 600;
}

.transfers-table .incoming {
    color: #52c41a;
    font-weight: 600;
}

/* 复用游戏记录页面的日期选择器样式 */
.date-picker-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.date-picker-overlay.show {
    display: block;
}

.date-picker-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    min-width: 800px;
    max-width: 850px;
}

.date-picker-modal.show {
    display: block;
}

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

.date-picker-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.date-picker-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s;
}

.date-picker-close:hover {
    color: #333;
}

.date-picker-quick-select {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.quick-date-btn {
    padding: 8px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-date-btn:hover {
    border-color: #3066ff;
    color: #3066ff;
}

.quick-date-btn.active {
    background: #3066ff;
    border-color: #3066ff;
    color: #fff;
}

.date-picker-content {
    padding: 20px;
}

.date-picker-month-container {
    display: flex;
    gap: 30px;
}

.date-picker-month-wrapper {
    flex: 1;
}

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

.date-picker-nav-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
}

.date-picker-nav-btn:hover {
    color: #3066ff;
}

.date-picker-month-title,
.calendar-month-year {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

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

.calendar-nav {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover {
    color: #3066ff;
}

.date-picker-weekdays,
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.date-picker-weekday,
.calendar-weekday {
    text-align: center;
    font-size: 14px;
    color: #999;
    font-weight: 500;
    padding: 8px 0;
}

.date-picker-days,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.date-picker-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}

.date-picker-day:hover {
    background: #f5f5f5;
    border-color: #e8e8e8;
}

.date-picker-day.other-month {
    color: #ccc;
}

.date-picker-day.today {
    background: #e6f4ff;
    border-color: #3066ff;
    color: #3066ff;
    font-weight: 600;
}

.date-picker-day.selected {
    background: #3066ff;
    border-color: #3066ff;
    color: #fff;
    font-weight: 600;
}

.date-picker-day.range-start {
    background: #3066ff;
    border-color: #3066ff;
    color: #fff;
    border-radius: 6px 0 0 6px;
}

.date-picker-day.range-end {
    background: #3066ff;
    border-color: #3066ff;
    color: #fff;
    border-radius: 0 6px 6px 0;
}

.date-picker-day.in-range {
    background: #e6f4ff;
    border-color: #e6f4ff;
    color: #3066ff;
    border-radius: 0;
}

.date-picker-footer {
    padding: 8px 20px 20px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.date-range-display {
    text-align: center;
    font-size: 14px;
    color: #666;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
}

.date-picker-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-right: 20px;
}

.date-picker-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.date-picker-btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.date-picker-btn-cancel:hover {
    background: #e8e8e8;
}

.date-picker-btn-confirm {
    background: #3066ff;
    color: #fff;
}

.date-picker-btn-confirm:hover {
    background: #4d7aff;
}

/* 安全设置页面样式 */
.security-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.security-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.security-label {
    font-size: 14px;
    color: #666;
    min-width: 100px;
}

.security-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.security-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    background: #f5f5f5;
}

.security-edit-btn {
    padding: 8px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
}

.security-edit-btn:hover {
    background: #f5f5f5;
    border-color: #1890ff;
    color: #1890ff;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.show {
    display: block;
    opacity: 1;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 480px;
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e8e8e8;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1890ff;
    margin: 0;
}

.modal-close {
    padding: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-content {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

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

/* 安全设置页面修改密码弹窗：星号变红 */
.form-label.required::before {
    content: '*';
    color: #ff4d4f;
    margin-right: 4px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #1890ff;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: center;
}

.modal-btn-primary {
    padding: 10px 24px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.modal-btn-primary:hover {
    background: #40a9ff;
}

.modal-btn-primary:active {
    background: #096dd9;
}

/* ========== 代理详情弹窗样式 ========== */
.agent-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.agent-detail-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.agent-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #3066ff;
    color: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.agent-detail-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.agent-detail-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    transition: opacity 0.3s;
}

.agent-detail-close-btn:hover {
    opacity: 0.8;
}

.agent-detail-top {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.agent-detail-info-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.agent-detail-info-item {
    flex: 1;
    min-width: 150px;
}

.agent-detail-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.agent-detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.agent-detail-middle {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.agent-detail-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 10px;
}

.agent-detail-stat-item {
    text-align: center;
}

.agent-detail-stat-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.agent-detail-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.agent-detail-filter-note {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

.agent-detail-filter {
    padding: 20px;
}

.agent-detail-filter-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.agent-detail-filter-item {
    flex: 1;
    min-width: 150px;
}

.agent-detail-filter-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.agent-detail-filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.agent-detail-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.agent-detail-date-range:hover {
    border-color: #3066ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .agent-detail-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .agent-detail-info-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .agent-detail-filter-row {
        flex-direction: column;
    }
}

