/* 倒计时组件样式 */

.countdown-timer p {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    margin-bottom: 18px;
}

.countdown-timer-display {
    display: flex;
    justify-content: space-around;
    text-align: center;
    background-color: #1F1F1F;
    border-radius: 8px;
    padding: 16px 120px;
    margin-top: 16px;
    font-family: 'PC', sans-serif;
}
.countdown-timer.not-started {
   display: flex;
   align-items: center;
   justify-content: center;
}
.countdown-timer.not-started .countdown-timer-display {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}
.countdown-timer.not-started .time-block {
    padding: 8px;
    background-color: #3C3C3C;
    border-radius: 4px;
    margin-right: 4px;
}
.countdown-timer.not-started .time-block .time-value {
    font-size: 15px;
}
.countdown-timer.not-started .start-label {
    font-size: 16px;
    color: #666;
    margin-right: 16px;
}
.countdown-timer.not-started .time-block .time-label {
    display: none;
}
.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.time-value {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.time-label {
    font-size: 12px;
    color: #666;
    letter-spacing: 1px;
}

/* 倒计时样式 - 第二版：上下滚动日历效果 */
.countdown-container.scrolling-style {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.digit-wrapper {
    display: flex;
    gap: 2px;
}

.digit-container {
    position: relative;
    width: 40px;
    height: 60px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 6px;
    border: 1px solid #444;
    overflow: hidden;
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.digit-list {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.digit-list.scrolling {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.digit {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(145deg, #333, #222);
    border-bottom: 1px solid #444;
    position: relative;
}

.digit:last-child {
    border-bottom: none;
}

.digit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.time-separator {
    font-size: 28px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.time-label {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* 滚动发光效果 */
.digit-container:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

@keyframes scrollGlow {
    0% {
        box-shadow: 
            0 3px 6px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 3px 6px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 15px rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: 
            0 3px 6px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.digit-list.scrolling {
    animation: scrollGlow 0.6s ease-out;
}

/* 兼容旧样式 */
.countdown-timer-display .time-block .time-value {
    font-size: 28px;
    font-weight: 600;
    color: #FFFFFF;
    display: block;
    line-height: 1;
}

.countdown-timer-display .time-block .time-label {
    font-size: 14px;
    color: #666;
    display: block;
    margin-top: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .countdown-display {
        gap: 12px;
        padding: 0 5px;
    }
    
    .digit-container {
        width: 60px;
        height: 75px;
    }
    
    .digit {
        font-size: 28px;
    }
    
    .time-label {
        font-size: 11px;
    }
    #countdown-container-mobile {
        padding: 20px;
        border: 1px solid #3b3b3b;
        border-radius: 10px;
        background-color: #121212;
    }
}