/* 弹窗遮罩 */
.popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}
.popup-overlay.show { display: flex !important; }
/* 弹窗主体 */
.popup-content {
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #4481ff; /* DispCam 主蓝色边框 */
    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: 3.0rem; color: #333;
    cursor: pointer; transition: color 0.3s ease;
    z-index: 1001;
}
.close-btn:hover { color: #4481ff; } /* DispCam 主蓝色 */
/* 弹窗图片 */
.popup-image {
    max-width: 90%;
    height: auto;
    margin: 15px auto 20px;
    border-radius: 10px;
    display: block;
}
/* 标题 */
.popup-body .title {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #4481ff; /* DispCam 主蓝色 */
}
/* 用户数显示 */
.countdown {
    font-weight: 600;
    font-size: 1.5rem;
    color: #4481ff; /* DispCam 主蓝色 */
    margin-bottom: 1.5rem;
}
#countdown-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4481ff; /* DispCam 主蓝色 */
    transition: transform 0.3s ease;
}
/* 按钮组 - 桌面端并排，手机端上下 */
.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* 两个按钮之间的间距，可自行调整 */
    margin-top: 2rem;
}
/* 单个按钮基础样式（公共） */
.popup-buttons .popup-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* 图标和文字之间的间距 */
    width: 100%;
    max-width: 280px; /* 桌面端每个按钮的最大宽度，可调整 */
    padding: 14px 20px; /* 上下左右内边距，显得更大气 */
    border-radius: 8px;
    border: none; /* 去除原边框，使用背景色一致性 */
    font-weight: 700;
    font-size: 17px;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    color: white; /* 文字白色，高对比 */
    text-align: center;
    cursor: pointer;
    text-decoration: none; /* 去除下划线 */
}
/* Windows 按钮 - 蓝色 (DispCam 站点 Windows 下载按钮颜色 #4481ff) */
.popup-button.win-btn {
    background-color: #4481ff;
}
/* Mac 按钮 - 橙色 (DispCam 站点 Mac 下载按钮颜色 #fd9338) */
.popup-button.mac-btn {
    background-color: #fd9338;
}
/* 图标样式 */
.popup-buttons .btn-icon {
    width: 24px;
    height: 24px;
}
/* 悬停效果（公共） */
.popup-buttons .popup-button:hover {
    opacity: 0.9;
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
/* 手机端优化（宽度 ≤ 768px） */
@media (max-width: 768px) {
    .popup-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .popup-buttons .popup-button {
        width: 80%;
        max-width: none;
    }
}
/* 手机端优化 */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        padding: 1.5rem;
        margin: 0 auto; /* 居中 */
    }
    .popup-body .title { font-size: 5vw; }
    .countdown { font-size: 1rem; }
}
/* 弹窗动画 */
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
@keyframes slideIn { from {transform:translateY(-50px); opacity:0;} to {transform:translateY(0); opacity:1;} }