/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent: #e94560;
    --accent-hover: #ff6b81;
    --tab-active: #e94560;
    --tab-inactive: #2a2a4a;
    --border: #2a2a4a;
    --shadow: rgba(233, 69, 96, 0.2);
    --stat-color: #8899aa;
    --comment-bg: #1a1a2e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 70px;
    -webkit-font-smoothing: antialiased;
}

/* ========== 顶部导航 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-secondary);
    padding: 12px 16px 8px;
    border-bottom: 1px solid var(--border);
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #e94560, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.tab-btn {
    flex: 1;
    max-width: 160px;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--tab-inactive);
    color: var(--text-secondary);
}

.tab-btn.active {
    background: var(--tab-active);
    color: var(--text-primary);
    box-shadow: 0 2px 12px var(--shadow);
}

.tab-btn:active {
    transform: scale(0.96);
}

/* ========== 详情页顶部导航 ========== */
.detail-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-secondary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.detail-back {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.detail-header-title {
    font-size: 16px;
    font-weight: 600;
}

/* ========== 主内容区（列表页） ========== */
.main-content {
    margin-top: 80px;
    padding: 6px 12px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}

/* 关注列表页 - 紧贴 fixed 标题栏下方 */
#followingList.main-content {
    margin-top: 52px;
    padding-top: 0;
}

/* ========== 关注列表标题 ========== */
.following-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.following-header svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* ========== 视频卡片（列表页） ========== */
.video-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border);
}

.video-card:active {
    transform: scale(0.97);
}

.video-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    background: #000;
    overflow: hidden;
    border-radius: 6px;
}

.video-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 封面上的标签位置 */
.badge-pos {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
}

/* ========== 视频卡片信息区 ========== */
.video-card-info {
    padding: 4px 8px 6px;
}

.video-card-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 3px;
}

/* 统计信息 */
.video-card-stats {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 3px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 9px;
    color: var(--stat-color);
}

.stat-item svg {
    fill: var(--stat-color);
    flex-shrink: 0;
}

/* 底部作者和日期 */
.video-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.video-author {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 9px;
    color: var(--text-secondary);
}

.video-author svg {
    fill: var(--text-secondary);
    flex-shrink: 0;
}

.video-date {
    font-size: 9px;
    color: var(--text-secondary);
}

/* ========== 标签样式 ========== */
.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.badge-normal {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.badge-original {
    background: rgba(233, 69, 96, 0.2);
    color: #e94560;
}

/* ========== 加载更多 ========== */
.load-more {
    padding: 20px 12px;
    text-align: center;
}

.load-more-btn {
    width: 100%;
    max-width: 300px;
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:active {
    background: var(--tab-inactive);
    transform: scale(0.98);
}

.load-more-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ========== 加载状态 ========== */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    fill: var(--text-secondary);
    opacity: 0.3;
    margin-bottom: 16px;
}

/* ========== 视频详情页 ========== */
.detail-page {
    margin-top: 50px;
    padding-bottom: 20px;
}

/* 视频播放区域 */
.detail-video-area {
    background: #000;
    width: 100%;
}

.detail-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    cursor: pointer;
}

.detail-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.detail-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(233, 69, 96, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.2s;
}

.detail-play-btn:active {
    transform: translate(-50%, -50%) scale(0.9);
}

.detail-video {
    width: 100%;
    height: 100%;
    outline: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* 视频信息区域 */
.detail-info-area {
    padding: 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.detail-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.detail-stat-item svg {
    fill: var(--accent);
}

.detail-stat-item span:not(.detail-stat-label) {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-stat-label {
    font-size: 10px;
    color: var(--text-secondary);
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-author svg {
    fill: var(--text-secondary);
}

.detail-date {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 关注按钮 */
.follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 14px;
    border: none;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--accent);
    color: white;
    flex-shrink: 0;
    margin-left: auto;
}

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

.follow-btn.following {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.follow-btn.following:active {
    background: rgba(233, 69, 96, 0.2);
    color: var(--accent);
    border-color: var(--accent);
}


.detail-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* 留言区域 */
.detail-comments-area {
    padding: 16px;
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.comments-header svg {
    fill: var(--text-secondary);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-item {
    display: flex;
    gap: 10px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.comment-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 2px;
}

.comment-time {
    font-size: 11px;
    color: var(--stat-color);
}

/* ========== 个人中心页 ========== */
.profile-page {
    margin-top: 0;
    padding-bottom: 80px;
    min-height: 100vh;
    background: var(--bg-primary);
}

.profile-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 40px 20px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233,69,96,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.profile-avatar-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    cursor: pointer;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff6b81);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 20px rgba(233,69,96,0.3);
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar-overlay {
    position: absolute;
    bottom: 0;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
    transition: transform 0.2s;
}

.profile-avatar-wrapper:active .profile-avatar-overlay {
    transform: scale(0.9);
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.profile-level {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
}

/* 资产卡片 */
.profile-assets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
    margin-top: -20px;
    position: relative;
    z-index: 1;
}

.asset-card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.asset-card:active {
    transform: scale(0.97);
}

.asset-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.asset-icon-balance {
    background: rgba(233,69,96,0.15);
    color: var(--accent);
}

.asset-icon-reward {
    background: rgba(245,158,11,0.15);
    color: #f59e0b;
}

.asset-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.asset-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

/* 操作按钮 */
.profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px 16px;
}

.profile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.profile-action-btn:active {
    transform: scale(0.97);
}

.action-recharge {
    background: linear-gradient(135deg, var(--accent), #ff6b81);
    color: white;
}

.action-withdraw {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

/* ========== 弹出层（资金日志/打赏记录） ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

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

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

.modal-header-title {
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header-title svg {
    color: var(--accent);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s;
}

.modal-close:active {
    background: rgba(255,255,255,0.15);
}

.modal-body {
    padding: 12px 0;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.modal-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

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

.modal-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.modal-item-icon.positive {
    background: rgba(233,69,96,0.15);
    color: var(--accent);
}

.modal-item-icon.negative {
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
}

.modal-item-icon.reward-in {
    background: rgba(245,158,11,0.15);
    color: #f59e0b;
}

.modal-item-icon.reward-out {
    background: rgba(139,92,246,0.15);
    color: #8b5cf6;
}

.modal-item-info {
    flex: 1;
    min-width: 0;
}

.modal-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-item-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.modal-item-amount {
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.modal-item-amount.positive {
    color: var(--accent);
}

.modal-item-amount.negative {
    color: #3b82f6;
}

.modal-loading {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.modal-loading .loading-spinner {
    width: 28px;
    height: 28px;
    border-width: 2px;
    margin: 0 auto 12px;
}

/* ========== 底部导航 ========== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 11px;
    transition: color 0.2s;
    padding: 4px 20px;
}

.footer-item.active {
    color: var(--accent);
}

.footer-item:active {
    opacity: 0.7;
}

/* ========== 底部留言输入框 ========== */
.comment-input-area {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 8px 12px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    display: none; /* 默认隐藏，详情页显示 */
}

.comment-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 4px 4px 4px 16px;
    border: 1px solid var(--border);
}

.comment-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    padding: 8px 0;
    min-width: 0;
}

.comment-input::placeholder {
    color: var(--text-secondary);
}

.comment-submit {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.comment-submit:active {
    transform: scale(0.9);
    background: var(--accent-hover);
}

.comment-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 详情页显示留言输入框时，底部留出空间 */
.detail-page.comment-input-visible {
    padding-bottom: 60px;
}

/* ========== Toast 通知动画 ========== */
@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ========== 充值页面 ========== */
.recharge-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 250;
    background: var(--bg-primary);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 充值页面顶部导航 */
.recharge-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.recharge-back {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    margin-left: -8px;
}

.recharge-back:active {
    background: rgba(255,255,255,0.08);
}

.recharge-header-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

/* 充值步骤容器 */
.recharge-step {
    padding: 16px;
}

/* 区块标题 */
.recharge-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-left: 2px;
}

/* ========== 充值方式选择卡片 ========== */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method-card:active {
    transform: scale(0.98);
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.05);
}

.payment-method-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-icon-bank {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.payment-icon-usdt {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.payment-method-info {
    flex: 1;
    min-width: 0;
}

.payment-method-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.payment-method-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.payment-method-arrow {
    color: var(--text-secondary);
    flex-shrink: 0;
    opacity: 0.5;
}

/* ========== 平台收款账户信息卡片 ========== */
.recharge-account-card {
    margin-bottom: 20px;
}

.account-info-card {
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 12px;
}

.account-info-card:last-child {
    margin-bottom: 0;
}

.account-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}

.account-info-bank-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-info-usdt-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-info-bank-name,
.account-info-usdt-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.account-info-body {
    padding: 12px 16px;
}

.account-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.account-info-row:last-child {
    border-bottom: none;
}

.account-info-label {
    font-size: 13px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.account-info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    word-break: break-all;
    max-width: 60%;
}

.account-info-card-number {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--accent);
}

.account-info-address {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    word-break: break-all;
    color: #10b981;
}

/* USDT 二维码 */
.account-info-qrcode {
    display: flex;
    justify-content: center;
    padding: 12px 0 8px;
}

.account-info-qrcode img {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    background: white;
    padding: 8px;
}

/* 复制按钮 */
.account-copy-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border: none;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.account-copy-btn:active {
    background: rgba(233, 69, 96, 0.08);
}

/* ========== 金额输入区域 ========== */
.recharge-amount-section {
    margin-bottom: 24px;
}

.recharge-amount-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 4px 16px;
    margin-bottom: 14px;
    transition: border-color 0.2s;
}

.recharge-amount-input-wrapper:focus-within {
    border-color: var(--accent);
}

.recharge-amount-currency {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.recharge-amount-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 800;
    padding: 12px 0;
    min-width: 0;
}

.recharge-amount-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* 隐藏数字输入框的增减按钮 */
.recharge-amount-input::-webkit-outer-spin-button,
.recharge-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.recharge-amount-input[type=number] {
    -moz-appearance: textfield;
}

/* 快捷金额按钮 */
.recharge-quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-amount-btn {
    padding: 12px 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.quick-amount-btn:active {
    transform: scale(0.96);
    background: rgba(233, 69, 96, 0.1);
}

.quick-amount-btn.active {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.12);
    color: var(--accent);
    box-shadow: 0 0 12px rgba(233, 69, 96, 0.15);
}

/* ========== 提交按钮 ========== */
.recharge-submit-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #ff6b81);
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
}

.recharge-submit-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(233, 69, 96, 0.2);
}

.recharge-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========== 充值页面加载/错误状态 ========== */
.recharge-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.recharge-loading .loading-spinner {
    width: 32px;
    height: 32px;
    border-width: 2px;
    margin: 0 auto 14px;
}

.recharge-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.recharge-error svg {
    margin-bottom: 12px;
}

/* ========== 第二行操作按钮 ========== */
.profile-actions-second {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 16px 16px;
}

.action-bank {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.action-bank:active {
    background: rgba(16, 185, 129, 0.2);
}

/* ========== 用户收款账户页面 ========== */
.bank-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 250;
    background: var(--bg-primary);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 页面顶部导航 */
.bank-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.bank-back {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    margin-left: -8px;
}

.bank-back:active {
    background: rgba(255,255,255,0.08);
}

.bank-header-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

/* 显示模式 - 信息卡片 */
.bank-display {
    padding: 16px;
}

.bank-info-card {
    margin-bottom: 20px;
}

.bank-info-card-inner {
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.bank-info-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 16px;
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.02));
    border-bottom: 1px solid var(--border);
}

.bank-info-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.bank-info-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.bank-info-section {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.bank-info-section:last-child {
    border-bottom: none;
}

.bank-info-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.bank-info-section-title svg {
    color: #10b981;
    flex-shrink: 0;
}

.bank-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.bank-info-row:last-child {
    border-bottom: none;
}

.bank-info-label {
    font-size: 13px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.bank-info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    word-break: break-all;
    max-width: 60%;
}

.bank-info-card-number {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--accent);
}

.bank-info-address {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    word-break: break-all;
    color: #10b981;
}

.bank-info-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 加载状态 */
.bank-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.bank-loading .loading-spinner {
    width: 32px;
    height: 32px;
    border-width: 2px;
    margin: 0 auto 14px;
}

/* 操作按钮组 */
.bank-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px;
}

.bank-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.bank-action-btn:active {
    transform: scale(0.97);
}

.bank-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bank-action-edit {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.bank-action-edit:active {
    background: rgba(59, 130, 246, 0.2);
}

.bank-action-delete {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.bank-action-delete:active {
    background: rgba(239, 68, 68, 0.2);
}

/* 表单模式 */
.bank-form {
    padding: 16px;
}

.bank-form-section {
    margin-bottom: 24px;
}

.bank-form-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-left: 2px;
}

.bank-form-group {
    margin-bottom: 16px;
}

.bank-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    padding-left: 2px;
}

.bank-form-required {
    color: var(--accent);
}

.bank-form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.bank-form-input:focus {
    border-color: #10b981;
}

.bank-form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.bank-form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.bank-form-divider::before,
.bank-form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.bank-form-divider-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.bank-form-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    margin-top: 8px;
}

.bank-form-tip svg {
    color: #10b981;
    flex-shrink: 0;
    margin-top: 1px;
}

.bank-form-tip span {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 提交按钮 */
.bank-submit-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
}

.bank-submit-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.bank-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========== 提现页面 ========== */
.withdraw-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 250;
    background: var(--bg-primary);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 提现页面顶部导航 */
.withdraw-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.withdraw-back {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    margin-left: -8px;
}

.withdraw-back:active {
    background: rgba(255,255,255,0.08);
}

.withdraw-header-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

/* 提现步骤容器 */
.withdraw-step {
    padding: 16px;
}

/* 区块标题 */
.withdraw-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-left: 2px;
}

/* ========== 提现类型选择卡片 ========== */
.withdraw-type-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.withdraw-type-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.withdraw-type-card:active {
    transform: scale(0.98);
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.05);
}

.withdraw-type-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.withdraw-icon-bank {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.withdraw-icon-usdt {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.withdraw-type-info {
    flex: 1;
    min-width: 0;
}

.withdraw-type-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.withdraw-type-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.withdraw-type-arrow {
    color: var(--text-secondary);
    flex-shrink: 0;
    opacity: 0.5;
}

/* ========== 提现账户信息卡片 ========== */
.withdraw-account-card {
    margin-bottom: 20px;
}

.withdraw-account-inner {
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.withdraw-account-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}

.withdraw-account-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.withdraw-account-icon.bank {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.withdraw-account-icon.usdt {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.withdraw-account-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.withdraw-account-body {
    padding: 12px 16px;
}

.withdraw-account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.withdraw-account-row:last-child {
    border-bottom: none;
}

.withdraw-account-label {
    font-size: 13px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.withdraw-account-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    word-break: break-all;
    max-width: 60%;
}

/* ========== 提现金额输入区域 ========== */
.withdraw-amount-section {
    margin-bottom: 16px;
}

.withdraw-amount-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 4px 16px;
    margin-bottom: 14px;
    transition: border-color 0.2s;
}

.withdraw-amount-input-wrapper:focus-within {
    border-color: var(--accent);
}

.withdraw-amount-currency {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.withdraw-amount-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 800;
    padding: 12px 0;
    min-width: 0;
}

.withdraw-amount-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* 隐藏数字输入框的增减按钮 */
.withdraw-amount-input::-webkit-outer-spin-button,
.withdraw-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.withdraw-amount-input[type=number] {
    -moz-appearance: textfield;
}

/* USDT 换算显示 */
.withdraw-usdt-conversion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    margin-bottom: 14px;
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
}

.withdraw-usdt-rate {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* 快捷金额按钮（复用充值页面的样式） */
.withdraw-quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* ========== 费用信息 ========== */
.withdraw-fee-section {
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 24px;
}

.withdraw-fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.withdraw-fee-row:last-child {
    border-bottom: none;
}

.withdraw-fee-total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.withdraw-fee-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.withdraw-fee-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.withdraw-fee-actual {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
}

/* ========== 提现提交按钮 ========== */
.withdraw-submit-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #ff6b81);
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
}

.withdraw-submit-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(233, 69, 96, 0.2);
}

.withdraw-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========== 响应式 ========== */
@media (min-width: 600px) {
    .main-content {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .detail-page {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .recharge-page {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }
}
