/* ============================================================
 * 频道资讯页专属样式 page-channel-news.css
 * 用于 channel/channel_news.html，通过 $pageCss 注入
 * 依赖 common.css（频道页骨架/变量等）
 * ============================================================ */

/* ========== Banner 区域（复用首页轮播样式） ========== */
.wv-banner {
    background: #000;
    position: relative;
    height: 420px;
    overflow: hidden;
}

.wv-banner-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.wv-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.wv-banner-slide.wv-banner-active {
    opacity: 1;
    pointer-events: auto;
}

.wv-banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.wv-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wv-banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.wv-banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.wv-banner-dot.wv-dot-active {
    width: 24px;
    border-radius: 4px;
    background: #ffffff;
}

/* ========== 新闻列表 ========== */
.wv-news-list {
    margin-bottom: 30px;
}

.wv-news-item {
    padding: 18px 0;
    border-bottom: 1px dashed var(--color-border);
    transition: var(--transition);
}

.wv-news-item:hover {
    padding-left: 8px;
}

.wv-news-title {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    transition: var(--transition);
}

.wv-news-title:hover {
    color: var(--color-primary);
}

.wv-news-summary {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ========== 响应式 ========== */
/* --- 平板 Pad (769~1024px)：Banner 高度自适应 --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .wv-banner {
        height: auto;
    }
    .wv-banner-slider {
        position: relative;
        height: auto;
    }
    .wv-banner-slide {
        position: absolute;
    }
    .wv-banner-slide.wv-banner-active {
        position: relative;
    }
    .wv-banner-slide img {
        height: auto;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    /* Banner：高度随图片比例自适应，横幅图完整显示不裁切 */
    .wv-banner {
        height: auto;
    }
    .wv-banner-slider {
        position: relative;
        height: auto;
    }
    .wv-banner-slide {
        position: absolute;
    }
    .wv-banner-slide.wv-banner-active {
        position: relative;
    }
    .wv-banner-slide img {
        height: auto;
        object-fit: contain;
    }

    /* ---------- 手机端：所有资讯板块全部展开纵向平铺 ---------- */
    /* 1. 隐藏左侧菜单（改用顶部公共导航），内容区占满 */
    .wv-channel-inner .wv-channel-sidebar {
        display: none;
    }

    /* 2. 取消"只显示激活板块"的面板切换，所有板块 panel 全部展开 */
    .wv-channel-news-content .wv-channel-panel {
        display: block !important;
        margin-bottom: 28px;
    }

    /* 3. 板块标题：红色小标题 + 底部细线 */
    .wv-channel-news-content .wv-channel-title {
        font-size: 16px;
        font-weight: 700;
        color: var(--color-primary);
        padding: 0 0 8px 0;
        margin-bottom: 12px;
        border-bottom: 1px solid var(--color-border);
    }

    /* 4. 新闻列表：字号/间距微调，取消 hover 位移 */
    .wv-news-list {
        margin-bottom: 0;
    }
    .wv-news-item {
        padding: 14px 0;
    }
    .wv-news-title {
        font-size: 15px;
    }
    .wv-news-item:hover {
        padding-left: 0;
    }
}
