/* 会员中心遮罩层样式 */
.w-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);    
    display: flex;
    justify-content: center;
    align-items: center;
    animation: wOverlayFadeIn 0.3s ease-out;
    z-index: var(--z-modal);
}

.w-overlay-closing {
    animation: wOverlayFadeOut 0.3s ease-in forwards;
}

/* 会员中心弹窗容器样式 */
.w-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000000;
    border-radius: 20px;
    width: 80%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;    
    animation: wModalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #333333;
	z-index: calc(var(--z-modal) + 1);
}

.w-modal-closing {
    animation: wModalSlideOut 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

/* 会员中心弹窗头部 */
.w-header {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333333;
}

.w-header h2 {
    margin: 0;
    color: white;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.w-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.w-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 会员中心内容区域 */
.w-content {
    padding: 30px;
    color: white;
    text-align: center;
}

/* 已登录状态内容 - 金色边框+发光效果 */
.w-logged-in {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 2px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: goldGlow 2s ease-in-out infinite alternate;
}

.w-logged-in h3 {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.w-message {
    font-size: 12px;
    color: #ffffff;
    line-height: 1.8;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    text-align: left;
}

/* 未登录状态内容 */
.w-not-logged {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid #333333;
}

.w-not-logged h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.w-not-logged p {
    font-size: 12px;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 15px;
    text-align: left;
}

.w-footer {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    margin-top: 20px;
}

.w-footer p:first-child {
    font-weight: 600;
    margin-top: 0;
    color: white;
    font-size: 15px;
}

/* 动作按钮区域 */
.w-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.w-action-btn {
    display: block;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #444444;
    cursor: pointer;
}

.w-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: #666666;
}

.w-action-btn.primary {
    background: rgba(0, 122, 255, 0.3);
    border-color: rgba(0, 122, 255, 0.5);
}

.w-action-btn.primary:hover {
    background: rgba(0, 122, 255, 0.4);
}

/* 金色发光动画定义 */
@keyframes goldGlow {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    }
}

/* 弹窗进入动画定义 */
@keyframes wModalSlideIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 弹窗关闭动画定义 */
@keyframes wModalSlideOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
}

/* 遮罩层淡入动画定义 */
@keyframes wOverlayFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* 遮罩层淡出动画定义 */
@keyframes wOverlayFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 668px) {
    .w-modal {
        width: 85%;
        max-width: 400px;
    }
    
    .w-header h2 {
        font-size: 18px;
    }
    
    .w-actions {
        grid-template-columns: 1fr;
    }
}

/* 自定义滚动条样式 */
.w-modal::-webkit-scrollbar {
    width: 8px;
}

.w-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.w-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.w-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}