/**
 * 状态专用样式文件 - 抽奖系统状态样式
 * 包含特定用户状态的专用样式，具有最高优先级
 * 优先级：最高，可覆盖基础样式和主题样式
 */

/* ===== 未登录用户专用样式 - 最高优先级 ===== */
.guest-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(108, 117, 125, 0.8); /* 灰色半透明背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.guest-result-modal {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(108, 117, 125, 0.4);
    max-width: 60%;
    width: 60%;
    height: 60%;
    border: 3px solid #adb5bd; /* 灰色边框 */
    position: relative;
    animation: guestModalAppear 0.5s ease-out;
}

@keyframes guestModalAppear {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.guest-modal-content h3 {
    color: #6c757d; /* 灰色标题 */
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
    background: linear-gradient(135deg, #6c757d, #adb5bd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guest-modal-content p {
    margin-bottom: 30px;
    font-size: 20px;
    color: #495057; /* 深灰色文字 */
    line-height: 1.5;
    font-weight: 500;
}

.guest-close-button {
    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;
}

.guest-close-button:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* ===== 积分不足用户专用样式 - 最高优先级 ===== */
.insufficient-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 165, 0, 0.8); /* 橙色警告半透明背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.insufficient-result-modal {
    background: linear-gradient(135deg, #fffaf0 0%, #ffe8cc 100%);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(255, 165, 0, 0.4);
    max-width: 60%;
    width: 60%;
    height: 60%;
    border: 3px solid #ffa500; /* 橙色边框 */
    position: relative;
    animation: insufficientModalAppear 0.5s ease-out;
}

@keyframes insufficientModalAppear {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.insufficient-modal-content h3 {
    color: #ffa500; /* 橙色标题 */
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(255, 165, 0, 0.2);
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.insufficient-modal-content p {
    margin-bottom: 30px;
    font-size: 20px;
    color: #d2691e; /* 深橙色文字 */
    line-height: 1.5;
    font-weight: 500;
}

.insufficient-close-button {
    background: linear-gradient(270deg, #FFA500, #FF8C00);
    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(255, 165, 0, 0.3);
    min-width: 120px;
}

.insufficient-close-button:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .guest-result-modal,
    .insufficient-result-modal {
        max-width: 80%;
        width: 80%;
        height: 70%;
        padding: 30px 20px;
    }
    
    .guest-modal-content h3,
    .insufficient-modal-content h3 {
        font-size: 24px;
    }
    
    .guest-modal-content p,
    .insufficient-modal-content p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .guest-result-modal,
    .insufficient-result-modal {
        max-width: 90%;
        width: 90%;
        height: 80%;
        padding: 20px 15px;
    }
    
    .guest-modal-content h3,
    .insufficient-modal-content h3 {
        font-size: 20px;
    }
    
    .guest-modal-content p,
    .insufficient-modal-content p {
        font-size: 16px;
    }
    
    .guest-close-button,
    .insufficient-close-button {
        padding: 12px 30px;
        font-size: 16px;
    }
}