/**
 * 未登录用户抽奖体验专用样式 - 灰色主题
 * 与积分不足用户的橙色主题形成明显区分
 */

/* 未登录用户专用遮罩层样式 - 灰色主题 */
.guest-mask {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(108, 117, 125, 0.8) !important; /* 灰色半透明背景 */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 1000 !important;
    backdrop-filter: blur(5px) !important;
}

/* 未登录用户专用弹窗样式 - 灰色主题 */
.guest-result-modal {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 25px !important;
    padding: 40px !important;
    text-align: center !important;
    box-shadow: 0 20px 60px rgba(108, 117, 125, 0.4) !important;
    width: 80% !important;
    height: 400px !important;
    border: 3px solid #adb5bd !important; /* 灰色边框 */
    position: relative !important;
    animation: guestModalAppear 0.5s ease-out !important;
}

/* 确保与绿色弹窗宽度一致 */
.guest-result-modal {
    width: 80% !important;
    height: 400px !important;
}

/* 未登录用户弹窗动画 */
@keyframes guestModalAppear {
    0% {
        transform: scale(0.8) rotate(-2deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) rotate(1deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* 未登录用户弹窗标题 - 灰色主题 */
.guest-result-modal .guest-modal-content h3 {
    color: #6c757d !important; /* 灰色标题 */
    margin-bottom: 20px !important;
    font-size: 28px !important;
    font-weight: bold !important;
    text-shadow: 0 2px 4px rgba(108, 117, 125, 0.2) !important;
    background: linear-gradient(135deg, #6c757d, #adb5bd) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 未登录用户弹窗内容 - 灰色主题 */
.guest-result-modal .guest-modal-content p {
    margin-bottom: 30px;
    font-size: 20px;
    color: #6c757d;
    line-height: 1.5;
    font-weight: 500;
}

/* 未登录用户登录按钮 - 灰色主题 */
#guestCloseModal {
    background: linear-gradient(270deg, #6c757d, #adb5bd);
    border: none;
    border-radius: 30px;
    padding: 15px 40px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

#guestCloseModal:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

#guestCloseModal::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.5s;
}

#guestCloseModal:hover::before {
    left: 100%;
}

/* 未登录用户特殊标识 - 灰色主题 */
.guest-result-modal::before {
    content: '体验版';
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(15deg);
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
    z-index: 10;
}

/* 未登录用户抽奖结果特殊样式 - 灰色主题 */
.guest-result-modal .guest-prize-highlight {
    color: #6c757d !important;
    font-weight: 900 !important;
    font-size: 22px !important;
    text-shadow: 0 3px 6px rgba(108, 117, 125, 0.3) !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    border-left: 4px solid #6c757d !important;
    margin: 10px 0 !important;
    display: inline-block !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .guest-result-modal {
        max-width: 80%;
        width: 80%;
        height: 70%;
        padding: 30px 20px;
    }
    
    .guest-result-modal .guest-modal-content h3 {
        font-size: 24px;
    }
    
    .guest-result-modal .guest-modal-content p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .guest-result-modal {
        max-width: 90%;
        width: 90%;
        height: 80%;
        padding: 20px 15px;
    }
    
    .guest-result-modal .guest-modal-content h3 {
        font-size: 20px;
    }
    
    .guest-result-modal .guest-modal-content p {
        font-size: 16px;
    }
    
    #guestCloseModal {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* 未登录用户特殊动画效果 */
.guest-result-modal .guest-modal-content {
    animation: guestContentFadeIn 0.8s ease-out 0.2s both;
}

@keyframes guestContentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 未登录用户抽奖网格特殊样式 */
.guest-user-grid .prize-item {
    position: relative;
}

.guest-user-grid .prize-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 152, 0, 0.05);
    border-radius: inherit;
    pointer-events: none;
}

/* 调试模式样式 */
.debug-guest-mode .guest-result-modal {
    border: 2px dashed #ff9800;
}

.debug-guest-mode .guest-result-modal::after {
    content: '未登录用户模式';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff9800;
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 10px;
}