* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('/static/img/main_bg@2x.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    min-height: 100vh;
    line-height: 1.6;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
    position: relative; 
}

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

.header h1 { 
    font-size: 2.5rem; 
    font-weight: bold; 
    color: #2B02D6; 
    text-shadow: 0 2px 4px rgba(43, 2, 214, 0.1); 
    margin-bottom: 10px; 
}

.header p { 
    color: #5605ED; 
    font-size: 1.1rem; 
    font-weight: 500; 
}

.main-content { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    margin-bottom: 40px; 
}

.card { 
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(240,248,255,0.15) 100%); 
    border: 1px solid rgba(255,255,255,0.4); 
    border-radius: 20px; 
    padding: 25px; 
    backdrop-filter: blur(15px); 
    transition: all 0.4s ease; 
    position: relative; 
    overflow: hidden; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
}

.card::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 3px; 
    background: linear-gradient(90deg, #87CEEB 0%, #98FB98 50%, #87CEEB 100%); 
}

.card:hover { 
    transform: translateY(-5px) scale(1.01); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); 
    border-color: rgba(255,255,255,0.6); 
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(240,248,255,0.2) 100%); 
}

.profile-card { 
    text-align: center; 
}

.avatar { 
    width: 100px; 
    height: 100px; 
    border-radius: 50%; 
    margin: 0 auto 20px; 
    border: 4px solid rgba(255,255,255,0.8); 
    position: relative; 
    overflow: hidden; 
    background: #fff; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
    transition: all 0.3s ease; 
}

.avatar:hover { 
    transform: scale(1.05); 
    box-shadow: 0 12px 30px rgba(0,0,0,0.2); 
}

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



.status-indicator { 
    position: absolute; 
    bottom: 8px; 
    right: 8px; 
    width: 20px; 
    height: 20px; 
    background: linear-gradient(135deg, #98FB98 0%, #87CEEB 100%); 
    border-radius: 50%; 
    border: 3px solid #fff; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); 
    animation: pulse 2s infinite; 
}

@keyframes pulse { 
    0% { transform: scale(1); } 
    50% { transform: scale(1.1); } 
    100% { transform: scale(1); } 
}

.user-name-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 8px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.user-name { 
    font-size: 1.8rem; 
    font-weight: bold; 
    color: #fff; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.3); 
}

.edit-nickname-btn {
    background: rgba(255,255,255,0.2) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #fff !important;
    font-size: 0.9rem !important;
    flex-shrink: 0 !important;
    margin-left: 10px !important;
}

.edit-nickname-btn:hover {
    background: rgba(255,255,255,0.3) !important;
    transform: scale(1.1) !important;
    color: #23E8D2 !important;
}

/* 确保在移动设备上也能正确显示 */
@media (max-width: 768px) {
    .user-name-container {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }
    
    .edit-nickname-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
    }
}

.user-email { 
    color: rgba(255,255,255,0.9); 
    margin-bottom: 25px; 
    font-size: 1rem; 
}

.stats-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
}

.stat-item { 
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(240,248,255,0.1) 100%); 
    border: 1px solid rgba(255,255,255,0.3); 
    border-radius: 15px; 
    padding: 20px; 
    text-align: center; 
    transition: all 0.4s ease; 
    color: white; 
    position: relative; 
    overflow: hidden; 
    backdrop-filter: blur(10px); 
}

.stat-item::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); 
    transition: left 0.6s ease; 
}

.stat-item:hover::before { 
    left: 100%; 
}

.stat-item:hover { 
    transform: translateY(-5px) scale(1.03); 
    box-shadow: 0 12px 25px rgba(0,0,0,0.15); 
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(240,248,255,0.15) 100%); 
    border-color: rgba(255,255,255,0.5); 
}

.stat-value { 
    font-size: 2rem; 
    font-weight: bold; 
    margin-bottom: 8px; 
    color: #fff; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.3); 
}

.stat-label { 
    font-size: 0.9rem; 
    color: rgba(255,255,255,0.9); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-weight: 500; 
}

.actions-card h2 { 
    font-size: 1.8rem; 
    margin-bottom: 25px; 
    color: #fff; 
    text-align: center; 
    font-weight: bold; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.3); 
}

.action-buttons { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.action-btn { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    padding: 18px; 
    border: none; 
    border-radius: 15px; 
    cursor: pointer; 
    transition: all 0.4s ease; 
    font-size: 1rem; 
    font-weight: 500; 
    text-align: left; 
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(240,248,255,0.1) 100%); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.3); 
    backdrop-filter: blur(10px); 
}

.action-btn:hover { 
    transform: translateY(-3px) scale(1.01); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); 
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(240,248,255,0.15) 100%); 
    border-color: rgba(255,255,255,0.5); 
}

.action-btn.primary { 
    background: linear-gradient(135deg, #98FB98 0%, #87CEEB 100%); 
    color: #333; 
    border: 1px solid rgba(255,255,255,0.3); 
    font-weight: bold; 
}

.action-btn.primary:hover { 
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 100%); 
    box-shadow: 0 12px 30px rgba(152,251,152,0.4); 
}

.action-btn.danger { 
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(240,248,255,0.1) 100%); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.3); 
}

.action-btn.danger:hover { 
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(240,248,255,0.15) 100%); 
    border-color: #6c757d; 
    color: #6c757d; 
    box-shadow: 0 10px 25px rgba(108,117,125,0.3); 
}

.action-icon { 
    width: 45px; 
    height: 45px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
    background: rgba(255,255,255,0.2); 
    color: #fff; 
    transition: all 0.3s ease; 
}

.action-btn:hover .action-icon { 
    transform: scale(1.1); 
}

.action-btn.primary .action-icon { 
    background: rgba(255,255,255,0.3); 
    color: #333; 
}

.action-btn.danger .action-icon { 
    background: rgba(108,117,125,0.3); 
    color: #6c757d; 
}

.action-text { 
    flex: 1; 
}

.action-title { 
    font-weight: 600; 
    margin-bottom: 5px; 
    font-size: 1.1rem; 
}

.action-desc { 
    font-size: 0.9rem; 
    opacity: 0.8; 
}

/* Modal styles */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.7); 
    backdrop-filter: blur(10px); 
    z-index: 1000; 
    align-items: center; 
    justify-content: center; 
}

/* 确保重新登录提示框显示在最外层 */
#customAlert {
    z-index: 9999 !important;
}

/* 确保确定按钮在需要时可见 */
#customAlertFooter.show-confirm {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#customAlertConfirmBtn.show-confirm {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.modal-content { 
    background: linear-gradient(135deg, rgba(152,251,152,0.25) 0%, rgba(135,206,235,0.2) 100%); 
    border: 1px solid rgba(255,255,255,0.4); 
    border-radius: 20px; 
    padding: 30px; 
    max-width: 500px; 
    width: 90%; 
    max-height: 85vh; 
    overflow-y: auto; 
    backdrop-filter: blur(20px); 
    position: relative; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); 
}

.modal-content::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 3px; 
    background: linear-gradient(90deg, #87CEEB 0%, #98FB98 50%, #87CEEB 100%); 
    border-radius: 20px 20px 0 0; 
}

.modal-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 25px; 
    padding-bottom: 15px; 
    border-bottom: 2px solid rgba(255,255,255,0.3); 
}

.modal-title { 
    font-size: 1.6rem; 
    font-weight: bold; 
    color: #fff; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.3); 
}

.close-btn { 
    background: rgba(255,255,255,0.2); 
    border: none; 
    font-size: 1.6rem; 
    cursor: pointer; 
    color: #fff; 
    padding: 8px; 
    border-radius: 10px; 
    transition: all 0.3s ease; 
    width: 35px; 
    height: 35px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.close-btn:hover { 
    background: rgba(255,255,255,0.3); 
    color: #333; 
    transform: scale(1.1); 
}

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

.form-group label { 
    display: block; 
    margin-bottom: 10px; 
    font-weight: 600; 
    color: #fff; 
    font-size: 0.95rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.3); 
}

.form-group input, .form-group select { 
    width: 100%; 
    padding: 15px; 
    border: 2px solid rgba(255,255,255,0.3); 
    border-radius: 12px; 
    font-size: 1rem; 
    background: rgba(255,255,255,0.2); 
    color: #fff; 
    transition: all 0.3s ease; 
    backdrop-filter: blur(10px); 
}

.form-group input:focus, .form-group select:focus { 
    outline: none; 
    border-color: #87CEEB; 
    box-shadow: 0 0 0 3px rgba(135,206,235,0.2); 
    background: rgba(255,255,255,0.3); 
    transform: translateY(-2px); 
}

.form-group input::placeholder { 
    color: rgba(255,255,255,0.7); 
}

.form-group select option { 
    background: rgba(0,0,0,0.8); 
    color: #fff; 
    padding: 10px; 
}

.conversion-box { 
    background: linear-gradient(135deg, rgba(152,251,152,0.3) 0%, rgba(135,206,235,0.25) 100%); 
    border: 2px solid rgba(255,255,255,0.4); 
    border-radius: 15px; 
    padding: 25px; 
    text-align: center; 
    margin: 25px 0; 
    position: relative; 
    backdrop-filter: blur(10px); 
}

.conversion-amount { 
    font-size: 2.5rem; 
    font-weight: bold; 
    color: #fff; 
    margin: 15px 0; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.3); 
}

.conversion-rate { 
    font-size: 0.95rem; 
    color: rgba(255,255,255,0.8); 
}

.modal-footer { 
    display: flex; 
    gap: 15px; 
    justify-content: flex-end; 
    margin-top: 30px; 
    padding-top: 20px; 
    border-top: 2px solid rgba(255,255,255,0.3); 
}

.btn { 
    padding: 12px 25px; 
    border: none; 
    border-radius: 12px; 
    font-size: 1rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    min-width: 100px; 
}

.btn-primary { 
    background: linear-gradient(135deg, #98FB98 0%, #87CEEB 100%); 
    color: #333; 
    border: 1px solid rgba(255,255,255,0.3); 
}

.btn-primary:hover { 
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 100%); 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(152,251,152,0.4); 
}

.btn-secondary { 
    background: rgba(255,255,255,0.2); 
    color: #fff; 
    border: 2px solid rgba(255,255,255,0.3); 
}

.btn-secondary:hover { 
    background: rgba(255,255,255,0.3); 
    color: #333; 
    transform: translateY(-2px); 
}

.error-tip { 
    background: rgba(108,117,125,0.1); 
    color: #6c757d; 
    padding: 15px 20px; 
    border-radius: 12px; 
    margin-bottom: 20px; 
    text-align: center; 
    display: none; 
    border: 1px solid rgba(108,117,125,0.3); 
}

.back-btn { 
    position: fixed; 
    top: 20px; 
    left: 20px; 
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(240,248,255,0.15) 100%); 
    border: 1px solid rgba(255,255,255,0.4); 
    color: #fff; 
    padding: 12px 20px; 
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: bold; 
    transition: all 0.4s ease; 
    backdrop-filter: blur(15px); 
    box-shadow: 0 6px 20px rgba(0,0,0,0.15); 
}

.back-btn:hover { 
    background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(240,248,255,0.25) 100%); 
    color: #333; 
    border-color: rgba(255,255,255,0.6); 
    transform: translateY(-2px) scale(1.03); 
    box-shadow: 0 10px 25px rgba(255,255,255,0.3); 
}

@media (max-width: 768px) { 
    .main-content { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    } 
    .header h1 { 
        font-size: 2rem; 
    } 
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
    
    .action-btn {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .action-title {
        font-size: 1rem;
    }
    
    .action-desc {
        font-size: 0.8rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        gap: 15px;
    }
    
    .action-btn {
        padding: 12px;
        font-size: 0.8rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 10px auto;
        padding: 20px;
    }
} 