/* ============================================================
 * 资讯中心一级推荐图片轮播 - PC 与通用样式
 * 只作用于 [data-feature-carousel]，不改其他页面轮播及新闻列表。
 * ============================================================ */

.news-highlight[data-feature-carousel] {
    align-items: stretch;
}

.news-highlight[data-feature-carousel] .news-feature-stage {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 350px;
    overflow: hidden;
    background: #f3f3f3;
    isolation: isolate;
}

.news-highlight[data-feature-carousel] .news-feature-slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .55s ease, visibility .55s;
}

.news-highlight[data-feature-carousel] .news-feature-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.news-highlight[data-feature-carousel] .news-feature-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 防止按钮基础 display 样式覆盖 HTML 的 hidden 属性 */
.news-highlight[data-feature-carousel][hidden],
.news-highlight[data-feature-carousel] .news-feature-dots button[hidden] {
    display: none !important;
}

/* 图片底部的三个切换浮标 */
.news-highlight[data-feature-carousel] .news-feature-dots {
    position: absolute;
    z-index: 3;
    right: 18px;
    bottom: 15px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.news-highlight[data-feature-carousel] .news-feature-dots button {
    display: block;
    width: 10px;
    height: 10px;
    min-width: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .13);
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
}

.news-highlight[data-feature-carousel] .news-feature-dots button.is-active {
    width: 26px;
    border-radius: 8px;
    background: var(--brand, #00aa99);
}

.news-highlight[data-feature-carousel] .news-feature-dots button:focus-visible {
    outline: 2px solid var(--brand, #00aa99);
    outline-offset: 3px;
}

/* 当前推荐文章的标题加亮，保持原有右侧三行排版 */
.news-highlight[data-feature-carousel] .highlight-headlines > a {
    box-sizing: border-box;
    border-left: 4px solid transparent;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.news-highlight[data-feature-carousel] .highlight-headlines > a.is-active {
    border-left-color: var(--brand, #00aa99);
    background: #effaf7;
    color: var(--brand, #00aa99);
}
