/* 倒计时器弹窗样式 */
.countdown-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.countdown-modal.show {
    opacity: 1;
    visibility: visible;
}

.countdown-container {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    border: 2px solid #FFD700;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.3);
    transform: scale(0.7) rotateY(180deg);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    max-width: 600px;
    width: 90%;
}

.countdown-modal.show .countdown-container {
    transform: scale(1) rotateY(0deg);
}

.countdown-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.countdown-title {
    color: #fff;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: titlePulse 2s infinite alternate;
}

@keyframes titlePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.countdown-subtitle {
    color: #f0f0f0;
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.time-unit {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    padding: 20px 15px;
    min-width: 80px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    animation: unitFloat 3s ease-in-out infinite;
}

.time-unit:nth-child(1) { animation-delay: 0s; }
.time-unit:nth-child(2) { animation-delay: 0.5s; }
.time-unit:nth-child(3) { animation-delay: 1s; }
.time-unit:nth-child(4) { animation-delay: 1.5s; }
.time-unit:nth-child(5) { animation-delay: 2s; }

@keyframes unitFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.time-value {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: numberGlow 1s infinite alternate;
}

@keyframes numberGlow {
    0% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.3); }
    100% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.6); }
}

.time-label {
    display: block;
    font-size: 0.9em;
    color: #f0f0f0;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-button {
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    text-decoration: none;
    display: inline-block;
}

.download-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #B8860B 0%, #FFD700 100%);
}

/* 不再提示复选框样式 */
.no-more-reminder {
    margin-top: 20px;
    text-align: center;
}

.checkbox-container {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9em;
    color: #f0f0f0;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(255, 215, 0, 0.1);
}

.checkbox-container:hover .checkmark {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.2);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    border-color: #FFD700;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.countdown-message {
    color: #fff;
    font-size: 1.1em;
    margin: 20px 0;
    opacity: 0.9;
}

.close-countdown {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.close-countdown:hover {
    opacity: 1;
}



/* 响应式设计 */
@media (max-width: 768px) {
    .countdown-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .countdown-title {
        font-size: 2em;
    }
    
    .countdown-display {
        gap: 10px;
    }
    
    .time-unit {
        min-width: 60px;
        padding: 15px 10px;
    }
    
    .time-value {
        font-size: 2em;
    }
}

/* 粒子效果背景 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 6s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}