/* 弹窗遮罩 */
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}
.popup-overlay.show { display: flex; }

/* 弹窗主体 */
.popup-content {
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #f36c21; /* 保留边框 */
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    animation: slideIn 0.3s ease-out;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: -8px; right: 4px;
    background: none; border: none;
    font-size: 1.8rem; color: #333;
    cursor: pointer; transition: color 0.3s ease;
    z-index: 1001;
}
.close-btn:hover { color: #E05149; }

/* 弹窗图片 */
.popup-image {
    max-width: 90%;
    height: auto;
    margin: 15px auto 20px;
    border-radius: 10px;
    display: block;
}

/* 标题 */
.popup-body .title {
    font-size: 1.2rem; 
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #e05149;
}

/* 用户数显示 */
.countdown {
    font-weight: 600;
    font-size: 1rem;
    color: #0073e6;
    margin-bottom: 1.5rem;
}
#countdown-timer {
    font-size: 1rem;
    font-weight: 700;
    color: #0073e6;
    transition: transform 0.3s ease;
}

/* 按钮组 */
.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* 单个按钮 - 完全仿 AVC Labs 风格，类名 popup-button */
.popup-buttons .popup-button {
    display: block;
    width: 100%;
    background: radial-gradient(circle at 10% 20%, rgb(255, 245, 200) 0%, rgb(255, 210, 130) 90%);
    padding: 12px 0;
    border-radius: 8px;
    border: 2px solid #f36c21; /* 保留边框 */
    font-weight: 700;
    font-size: 17px;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 2;
    color: black;
    text-align: center;
    cursor: pointer;
}
.popup-buttons .popup-button:hover {
    opacity: 0.9;
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* 手机端优化 */
@media (max-width: 768px) {
    .popup-content { 
        width: 95%; 
        padding: 1.5rem; 
        margin: 0 auto; /* 居中 */
    }
    .popup-body .title { font-size: 5vw; }
    .countdown { font-size: 1rem; }
    .popup-buttons { flex-direction: column; gap: 1rem; }
    .popup-buttons .popup-button { width: 80%; max-width: none; }
}

/* 弹窗动画 */
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
@keyframes slideIn { from {transform:translateY(-50px); opacity:0;} to {transform:translateY(0); opacity:1;} }
