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

/* ========== 栏目介绍（左图右文） ========== */
.wv-coop-intro {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px dashed var(--color-border);
}

.wv-coop-image {
    width: 200px;
    height: 145px;
    flex-shrink: 0;
    border-radius: 2px;
}

.wv-coop-text {
    flex: 1;
    min-width: 0;
}

.wv-coop-text p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.9;
    text-indent: 2em;
}

/* ========== 嘉宾列表 ========== */
.wv-guest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.wv-guest-item {
    cursor: pointer;
    transition: var(--transition);
}

.wv-guest-item:hover {
    transform: translateY(-3px);
}

.wv-guest-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 2px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.wv-guest-name-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 2px;
}

.wv-guest-name {
    font-size: 14px;
    color: var(--color-text-light);
    text-align: left;
}

.wv-guest-item:hover .wv-guest-name {
    color: var(--color-primary);
}

/* ========== 响应式 ========== */
@media (min-width: 769px) and (max-width: 1024px) {
    .wv-guest-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .wv-coop-image {
        width: 160px;
        height: 116px;
    }
}

@media (max-width: 768px) {
    /* ---------- 手机端改版：所有合作栏目全部展开纵向平铺，一行两个嘉宾 ---------- */
    /* 1. 隐藏左侧菜单（改用顶部公共导航），内容区占满 */
    .wv-channel-inner .wv-channel-sidebar {
        display: none;
    }

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

    /* 3. 栏目标题：红色小标题 + 底部细线（对齐栏目页手机版） */
    .wv-cooperation-channel-content .wv-channel-title {
        font-size: 16px;
        font-weight: 700;
        color: var(--color-primary);
        padding: 0 0 8px 0;
        margin-bottom: 14px;
        border-bottom: 1px solid var(--color-border);
    }

    /* 4. 栏目介绍：图文改上下堆叠，图片满宽 */
    .wv-coop-intro {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    .wv-coop-image {
        width: 100%;
        height: 180px;
    }

    /* 5. 嘉宾网格：一行两个 */
    .wv-guest-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .wv-guest-name {
        text-align: center;
    }
}
