/* 我的页面样式 */

/* 未登录状态 */
.profile-guest {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    min-height: calc(100vh - 200px);
}

.guest-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(30, 40, 80, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #8b9dc3;
}

.guest-text {
    font-size: 16px;
    color: #8b9dc3;
    margin-bottom: 32px;
}

.guest-buttons {
    display: flex;
    gap: 16px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 40px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(102, 126, 234, 0.5);
    color: #667eea;
}

.btn-secondary:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* 已登录状态 */
.profile-user {
    padding: 0 0 80px 0;
}

/* 用户信息卡片 */
.user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-bottom: 1px solid rgba(60, 80, 160, 0.2);
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.user-id {
    font-size: 13px;
    color: #8b9dc3;
}

/* 资产卡片 */
.asset-card {
    margin: 16px;
    padding: 24px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

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

.asset-title {
    font-size: 14px;
    color: #8b9dc3;
    font-weight: 500;
}

.asset-unit {
    font-size: 13px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.asset-main {
    margin-bottom: 20px;
}

.total-amount {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amount-label {
    font-size: 13px;
    color: #8b9dc3;
}

.amount-value {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.asset-details {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.detail-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-size: 12px;
    color: #8b9dc3;
}

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

.detail-divider {
    width: 1px;
    height: 32px;
    background: rgba(102, 126, 234, 0.2);
}

/* 快捷操作 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn:hover::before {
    opacity: 1;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.deposit-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.15) 100%);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.deposit-btn .btn-icon {
    background: rgba(34, 197, 94, 0.2);
}

.deposit-btn:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(22, 163, 74, 0.25) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
}

.deposit-btn:hover .btn-icon {
    background: rgba(34, 197, 94, 0.3);
    transform: scale(1.05);
}

.withdraw-btn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.withdraw-btn .btn-icon {
    background: rgba(239, 68, 68, 0.2);
}

.withdraw-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.25) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
}

.withdraw-btn:hover .btn-icon {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
}

/* 功能菜单 */
.menu-section {
    margin: 0 16px;
    background: rgba(20, 30, 70, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(60, 80, 160, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid rgba(60, 80, 160, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.menu-item:hover {
    background: rgba(30, 40, 80, 0.4);
}

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

.menu-left svg {
    color: #667eea;
}

.menu-left span {
    font-size: 15px;
    color: #ffffff;
}

.menu-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kyc-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.kyc-status {
    background: rgba(139, 157, 195, 0.2);
    color: #8b9dc3;
}

.kyc-status.verified {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.kyc-status.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.kyc-status.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.menu-arrow {
    color: #6b7c93;
}

/* 退出登录 */
.logout-section {
    padding: 16px;
}

.btn-logout {
    width: 100%;
    padding: 14px;
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 12px;
    color: #f87171;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(248, 113, 113, 0.25);
    border-color: rgba(248, 113, 113, 0.5);
}

/* 白天模式 */
body.light-mode .guest-avatar {
    background: rgba(240, 245, 255, 0.8);
    color: #667eea;
}

body.light-mode .guest-text {
    color: #4a5568;
}

body.light-mode .user-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

body.light-mode .user-name {
    color: #1a202c;
}

body.light-mode .user-id {
    color: #6b7c93;
}

body.light-mode .assets-overview {
    background: rgba(100, 120, 200, 0.15);
}

body.light-mode .asset-item {
    background: rgba(255, 255, 255, 0.8);
}

body.light-mode .asset-value {
    color: #1a202c;
}

body.light-mode .menu-section {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(100, 120, 200, 0.2);
}

body.light-mode .menu-item:hover {
    background: rgba(240, 245, 255, 0.8);
}

body.light-mode .menu-left span {
    color: #1a202c;
}

body.light-mode .btn-logout {
    background: rgba(248, 113, 113, 0.1);
}

body.light-mode .btn-logout:hover {
    background: rgba(248, 113, 113, 0.2);
}

body.light-mode .asset-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
}

body.light-mode .amount-value {
    color: #1e293b;
}

body.light-mode .detail-value {
    color: #334155;
}

body.light-mode .deposit-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(22, 163, 74, 0.08) 100%);
    border-color: rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

body.light-mode .deposit-btn .btn-icon {
    background: rgba(34, 197, 94, 0.15);
}

body.light-mode .withdraw-btn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(220, 38, 38, 0.08) 100%);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

body.light-mode .withdraw-btn .btn-icon {
    background: rgba(239, 68, 68, 0.15);
}

