/*
 * custom CSS
 */

/* 倒计时外部容器 */
.countdown-wrapper {
    text-align: center;
    font-family: Arial, sans-serif;
    padding: 20px;
}

.countdown-title h1 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: bold;
}

.countdown-title h4 {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
}

/* 链接样式 */
.countdown-title h1 a {
    text-decoration: none;
    color: #3498db;
}

.countdown-title h1 a:hover {
    color: #2c3e50;
}

/* 倒计时部分 */
#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 倒计时每个项目的样式 */
.countdown-item {
    background: #f7f7f7;
    border: 2px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    width: 100px;
}

.countdown-item span {
    display: block;
    font-size: 48px;
    font-weight: bold;
    color: #333;
}

.countdown-item p {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 0em;
    color: #777;
}

/* 自定义不同时间单位的颜色 */
#days {
    color: #e74c3c; /* 天 - 红色 */
}

#hours {
    color: #3498db; /* 时 - 蓝色 */
}

#minutes {
    color: #2ecc71; /* 分 - 绿色 */
}

#seconds {
    color: #f39c12; /* 秒 - 黄色 */
}


/* ---- 响应式设计：调整小屏幕下的样式 ---- */
@media (max-width: 800px) {
    /* 标题在手机上缩小字体 */
    .countdown-title h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .countdown-title h4 {
        font-size: 18px;
        color: #666;
        margin-bottom: 20px;
    }

    /* 倒计时每个项目在手机上缩小 */
    .countdown-item {
        padding: 15px;
        width: 80px; /* 减小块的宽度 */
    }

    .countdown-item span {
        font-size: 36px; /* 缩小时间数字字体 */
    }

    .countdown-item p {
        font-size: 20px; /* 缩小时间单位的字体 */
        margin-top: 15px;
        margin-bottom: 0em;
    }

    /* 当屏幕宽度非常小的时候，元素将垂直排列 */
    #countdown {
        gap: 10px;
        flex-direction: row; /* 默认横向排列 */
    }
}

.nxr-daily {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nxr-daily a {
    color: #0073e6;
    text-decoration: none!important;
    font-weight: bold;
}
