/* 倒计时组件样式 */
.countdown-container {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    -moz-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    min-width: 200px;
    transition: all var(--transition-normal);
    z-index: 10;
}

.light .countdown-container {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.countdown-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.15) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

.countdown-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.light .countdown-container::after {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
}

.countdown-container:hover {
    background: rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35),
                0 0 20px rgba(113, 112, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-50%) translateY(-4px);
}

.light .countdown-container:hover {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12),
                0 0 20px rgba(113, 112, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 1);
}

.countdown-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.light .countdown-label {
    color: rgba(0, 0, 0, 0.6);
    text-shadow: none;
}

.countdown-value {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    font-family: var(--font-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(113, 112, 255, 0.3);
}

.light .countdown-value {
    color: var(--primary);
    text-shadow: 0 2px 8px rgba(113, 112, 255, 0.2);
}

.countdown-unit {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.light .countdown-unit {
    color: var(--text-tertiary);
    text-shadow: none;
}

.countdown-expired {
    font-size: 18px;
    font-weight: 600;
    color: #34d399;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(52, 211, 153, 0.3);
}

.light .countdown-expired {
    color: #10b981;
    text-shadow: none;
}

/* 详细时间显示（小时:分钟:秒） */
.countdown-detailed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.countdown-time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.countdown-time-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(113, 112, 255, 0.3);
}

.light .countdown-time-value {
    color: var(--primary);
    text-shadow: 0 2px 8px rgba(113, 112, 255, 0.2);
}

.countdown-time-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.light .countdown-time-label {
    color: var(--text-tertiary);
    text-shadow: none;
}

.countdown-separator {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
    margin-top: -12px;
    animation: countdownPulse 1s ease-in-out infinite;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.light .countdown-separator {
    color: var(--primary);
    text-shadow: none;
}

/* 已开始状态样式 */
.countdown-started-value {
    color: #34d399 !important;
    text-shadow: 0 2px 8px rgba(52, 211, 153, 0.3) !important;
}

.light .countdown-started-value {
    color: #10b981 !important;
    text-shadow: 0 2px 8px rgba(16, 185, 129, 0.2) !important;
}

.countdown-started-sep {
    color: rgba(52, 211, 153, 0.8) !important;
}

.light .countdown-started-sep {
    color: #10b981 !important;
}

@keyframes countdownPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .countdown-container {
        right: 3%;
        padding: 20px 24px;
        min-width: 180px;
    }
    
    .countdown-value {
        font-size: 28px;
    }
    
    .countdown-time-value {
        font-size: 24px;
    }
    
    .countdown-time-block {
        min-width: 45px;
    }
}

@media (max-width: 768px) {
    .countdown-container {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 32px;
        display: inline-block;
        width: 100%;
        max-width: 320px;
    }
    
    .countdown-container:hover {
        transform: translateY(-4px);
    }
    
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title,
    .hero-subtitle {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .countdown-container {
        padding: 16px 20px;
        margin-top: 24px;
    }
    
    .countdown-value {
        font-size: 24px;
    }
    
    .countdown-label {
        font-size: 12px;
    }
    
    .countdown-time-value {
        font-size: 20px;
    }
    
    .countdown-time-block {
        min-width: 40px;
    }
    
    .countdown-separator {
        font-size: 20px;
    }
}

/* 动画效果 */
.countdown-container {
    animation: countdownFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s;
}

@keyframes countdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-40%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

@media (max-width: 768px) {
    @keyframes countdownFadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .countdown-container {
        animation: countdownFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        animation-delay: 0.8s;
    }
}

/* 确保倒计时可见 */
.countdown-container {
    opacity: 1 !important;
}
