* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; padding-bottom: 60px; background: #fafafa; }

/* ==================== 
   新增：访问量统计栏样式 
   ==================== */
.visit-stats {
    width: 100%;
    max-width: 1200px;
    /* 上边距为0，下边距10px，确保在图片正上方且紧凑 */
    margin: 0 auto 10px auto; 
    text-align: center;
    font-size: 14px;
    color: #666;
    padding-top: 10px; /* 稍微给顶部留一点呼吸空间 */
}
.visit-stats strong {
    color: #e74c3c; /* 使用红色突出数字 */
    font-weight: bold;
}
.visit-stats .sep {
    margin: 0 10px;
    color: #ccc;
}

/* 轮播图整体外层包裹 */
.carousel-wrapper {
    width: 100%;
    max-width: 1200px;
    /* 修改此处：上边距减小，因为上面已经有统计栏了 */
    margin: 0 auto 20px auto; 
}

/* 轮播图图片容器样式 */
.carousel-container {
    width: 100%;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #ddd;
}

/* 图片基础样式 */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* 倒计时数字样式 */
.countdown-display {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;
    pointer-events: none;
}

/* 说明文字展示区样式 */
.caption-box {
    padding: 20px 5px;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caption-text {
    transition: opacity 0.5s ease-in-out;
}

/* 吸底栏样式 */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
    border-top: 1px solid #ddd;
    font-size: 14px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 1200px;
    padding: 0 10px;
}

.sticky-footer a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
    white-space: nowrap;
}

.sticky-footer a:hover { 
    color: #007bff; 
}

.separator {
    color: #ccc;
    user-select: none;
}

/* H5手机端适配 */
@media (max-width: 600px) {
    /* 手机端访问量统计栏适配 */
    .visit-stats {
        font-size: 12px;
        margin: 0 auto 5px auto;
        padding-top: 5px;
    }

    .carousel-wrapper { 
        margin: 0 auto 10px auto;
        max-width: 95%; 
    }
    .carousel-container { aspect-ratio: 4 / 3; }
    
    .caption-box { 
        font-size: 18px; 
        padding: 15px 5px; 
        min-height: 50px;
    }

    .sticky-footer {
        padding: 8px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 4px;
    }

    .separator {
        display: none;
    }

    .sticky-footer a {
        font-size: 12px;
    }
}
