/* 新闻内容图片轮播样式（用于新闻正文内图片预览） */

.news-carousel {
    position: relative;
    max-width: 100%;
    margin: 16px 0 22px 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.news-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

.news-carousel__track {
    display: flex;
    width: 100%;
    transition: transform 420ms ease;
    will-change: transform;
}

.news-carousel__slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 10px 6px 10px;
    box-sizing: border-box;
}

.news-carousel__slide img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.news-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 120ms ease, background 120ms ease, opacity 120ms ease;
    user-select: none;
}

.news-carousel__btn:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: translateY(-50%) scale(1.05);
}

.news-carousel__btn:active {
    transform: translateY(-50%) scale(0.98);
}

.news-carousel__btn--prev {
    left: 10px;
}

.news-carousel__btn--next {
    right: 10px;
}

.news-carousel__dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 10px 0 12px 0;
}

.news-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
    padding: 0;
}

.news-carousel__dot:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.28);
}

.news-carousel__dot.is-active {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.92);
}

/* 小屏时让左右按钮更贴边一点 */
@media (max-width: 480px) {
    .news-carousel__btn--prev { left: 6px; }
    .news-carousel__btn--next { right: 6px; }
    .news-carousel__slide img { max-height: 420px; }
}



