.timed-posts-countdown {
    width: 300px;
    height: 150px;
    padding: 15px;
    position: absolute;
    top: 0px;
    right: 0px;
    overflow: hidden;
    font-family: "Comic Sans MS", "Marker Felt", cursive;
    z-index: 0;
}
.dark-theme {
    
}
/*var(--main-bg-color)*/
/* 装饰性圆点 */
.timed-posts-countdown::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: rgba(255, 183, 197, 0.5);
    border-radius: 50%;
}

/*.timed-posts-countdown::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    bottom: -20px;*/
/*    left: -20px;*/
/*    width: 60px;*/
/*    height: 60px;*/
/*    background: rgba(255, 205, 210, 0.3);*/
/*    border-radius: 50%;*/
/*}*/

/* 云朵装饰 */
.cloud-decoration {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    top: 15px;
    left: 15px;
    box-shadow: 
        25px 0 0 rgba(255, 255, 255, 0.8),
        12px -15px 0 rgba(255, 255, 255, 0.8),
        37px -10px 0 rgba(255, 255, 255, 0.8);
}

.countdown-title {
    font-size: 18px;
    font-weight: bold;
    color: #ff5277;
    text-align: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.countdown-item {
    width: 55px;
    height: 70px;
    background: var(--main-bg-color);
    border-radius: 18px;
    box-shadow: 
        0 4px 10px rgba(248, 187, 208, 0.2),
        inset 0 -3px 5px rgba(248, 187, 208, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(255, 183, 197, 0.5);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 15px rgba(248, 187, 208, 0.3),
        inset 0 -3px 5px rgba(248, 187, 208, 0.1);
}

.countdown-value {
    font-size: 28px;
    font-weight: bold;
    color: #ff5277;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
}

.countdown-label {
    font-size: 12px;
    color: #ff8fa3;
    margin-top: 5px;
}

/* 分隔符 */
.countdown-separator {
    font-size: 24px;
    font-weight: bold;
    color: #ff8fa3;
    padding-bottom: 8px;
    animation: blink 1s infinite;
}

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

/* 即将到期的特殊样式 */
.timed-posts-countdown.warning {
    /*background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);*/
    /*animation: shake 0.5s ease-in-out infinite alternate;*/
}

.timed-posts-countdown.warning .countdown-item {
    border-color: rgba(255, 138, 128, 0.8);
    background: #fff5f5;
}

.timed-posts-countdown.warning .countdown-value,
.timed-posts-countdown.warning .countdown-separator {
    color: #ff1744;
    animation: pulse 1s infinite;
}

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

@keyframes shake {
    0% { transform: translateX(-2px); }
    100% { transform: translateX(2px); }
}

/* 数字变化动画 */
.countdown-value.changed {
    animation: bounce 0.6s ease-out;
}

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

/* 响应式调整 - 小屏幕上自动缩小 */
@media (max-width: 480px) {
    .timed-posts-countdown {
        width: 240px;
        height: 120px;
        top: 10px;
        left: 10px;
        padding: 10px;
        border-radius: 20px;
    }
    
    .countdown-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .countdown-display {
        gap: 6px;
    }
    
    .countdown-item {
        width: 42px;
        height: 55px;
        border-radius: 14px;
    }
    
    .countdown-value {
        font-size: 20px;
    }
    
    .countdown-label {
        font-size: 9px;
    }
    
    .countdown-separator {
        font-size: 18px;
    }
    
    .cloud-decoration {
        transform: scale(0.7);
        top: 10px;
        left: 10px;
    }
}