/* kszs-popup.css - 弹窗样式 */
.kszs-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kszs-popup-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.kszs-popup-container.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.kszs-popup-overlay.show {
    display: block;
    opacity: 1;
}

.kszs-popup-content {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 500px;
    width: 90vw;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.kszs-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    font-size: 24px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

.kszs-popup-close:hover {
    background: #e74c3c;
    color: white;
    transform: rotate(90deg);
}

.kszs-popup-title {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.kszs-popup-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.5;
}

.kszs-popup-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    margin-top: 30px;
}

.kszs-popup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #27ae60);
}

.kszs-popup-features {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
}

.kszs-popup-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

.kszs-popup-feature:last-child {
    margin-bottom: 0;
}

.kszs-popup-feature-icon {
    width: 24px;
    height: 24px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
    font-size: 14px;
}

.kszs-popup-countdown {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #95a5a6;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .kszs-popup-content {
        padding: 30px 20px;
        width: 95vw;
    }
    
    .kszs-popup-title {
        font-size: 24px;
    }
    
    .kszs-popup-subtitle {
        font-size: 16px;
    }
    
    .kszs-popup-btn {
        padding: 14px;
        font-size: 16px;
    }
}

/* 淡入动画 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 淡出动画 */
@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}