/* ============================================================
 * 首页 Wonder Vision - 页面专属样式
 * 依赖：style.css (变量 / 重置 / 容器 / Header / Footer / Section 头部 / Banner 轮播 / 共享栏目类)
 * 说明：仅包含首页各内容区块的布局样式，由 index.html 单独引入
 * ============================================================ */

/* ========== 频道公告 ========== */
.wv-announcement {
    display: flex;
    gap: 60px;
}

.wv-announcement-left,
.wv-announcement-right {
    flex: 1;
}

.wv-announcement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    font-size: 14px;
    color: var(--color-text);
    border-bottom: 1px dashed var(--color-border);
}

.wv-announcement-item:last-child {
    border-bottom: none;
}

.wv-announcement-item:hover {
    color: var(--color-primary);
}

.wv-announcement-dot {
    color: var(--color-primary);
    font-size: 10px;
    flex-shrink: 0;
}

/* ========== 首页频道栏目 ========== */
/* 注：.wv-channel-content / .wv-channel-panel / .wv-channel-title 为跨页共享类，定义于 style.css */

/* PC/Pad: 标题 + tabs + 更多同一行，tabs 单行、超出隐藏（控制器已限 6 个） */
.wv-channel-header {
    align-items: center;
    gap: 16px;
}

.wv-channel-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.wv-channel-header .wv-section-title {
    flex-shrink: 0;
}

.wv-channel-tabs {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow: hidden;
    margin-top: -2px;
    margin-left: auto;
}

.wv-channel-tabs .wv-channel-tab {
    flex-shrink: 0;
}

.wv-channel-tab {
    padding: 7px 18px;
    font-size: 14px;
    color: #555;
    background: #f2f2f2;
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.2s;
}

.wv-channel-tab:hover {
    background: #e8e8e8;
    color: var(--color-text);
}

.wv-tab-active {
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 500;
}

.wv-channel-header .wv-section-more {
    flex-shrink: 0;
    margin-left: auto;
}

.wv-channel-image {
    width: 360px;
    height: 240px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wv-channel-image-text {
    text-align: center;
    color: #ffffff;
}

.wv-channel-image-text span {
    display: block;
    margin-bottom: 8px;
}

.wv-channel-image-text span:first-child {
    font-size: 20px;
    font-weight: 700;
}

.wv-channel-image-text span:nth-child(2) {
    font-size: 32px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.wv-channel-image-text span:last-child {
    font-size: 14px;
    opacity: 0.9;
}

.wv-channel-info {
    flex: 1;
}

.wv-channel-desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.8;
    text-indent: 2em;
    margin-bottom: 20px;
}

.wv-channel-gallery {
    display: flex;
    gap: 16px;
}

.wv-gallery-item {
    flex: 1;
    height: 100px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
}

/* 首页频道栏目内容容器 - 覆盖 .wv-channel-content 的 flex 布局为块级 */
.wv-home-channel-content {
    display: block !important;
}

.wv-home-channel-content .wv-channel-panel.wv-channel-panel-active,
.wv-home-channel-content .wv-panel-1 {
    display: flex !important;
    gap: 24px;
    width: 100%;
}

.wv-home-channel-content > * {
    width: auto !important;
}

/* ========== 频道合作 ========== */
.wv-cooperation {
    display: flex;
    gap: 12px;
}

.wv-cooperation-item {
    flex: 1;
    height: 160px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wv-cooperation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wv-cooperation-item::after {
    display: none;
}

.wv-cooperation-title {
    display: none;
}

/* ========== 精彩专题 ========== */
.wv-special {
    display: flex;
    gap: 24px;
    align-items: stretch;
    min-width: 0;
}

.wv-special-item-link {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    text-decoration: none;
    color: inherit;
}

.wv-special-item-link:hover .wv-special-title {
    color: var(--color-primary);
}

.wv-special-item {
    display: flex;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.wv-special-image {
    width: 200px;
    height: 160px;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.wv-special-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.95);
}

.wv-special-logo > span:first-child {
    font-size: 22px;
}

.wv-special-logo div p {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.wv-special-logo div p:last-child {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 400;
}

.wv-special-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wv-special-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wv-special-subtitle {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wv-special-tags {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.wv-special-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-light);
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wv-special-tag > span:last-child {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wv-tag-hot {
    font-size: 10px;
    padding: 1px 5px;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 2px;
    font-weight: 600;
    flex-shrink: 0;
}

.wv-special-tag:hover {
    color: var(--color-primary);
}

/* ========== 影像中国（首页） ========== */
.wv-image-content {
    display: flex;
    gap: 20px;
}

.wv-image-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.wv-image-item:hover {
    transform: translateY(-4px);
}

.wv-image-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 8px 24px;
    background: #dc2626;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px 4px 0 0;
    margin-bottom: 12px;
}

.wv-image-photo {
    width: 100%;
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wv-image-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========== 友情链接 ========== */
.wv-friend-link-section {
    padding-bottom: 10px;
}

.wv-friend-link-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.wv-friend-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.wv-friend-link-img {
    width: 220px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.wv-friend-link-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wv-friend-link-img span {
    font-size: 14px;
    color: var(--color-text);
}

.wv-friend-link-item p {
    font-size: 13px;
    color: var(--color-text);
    margin: 0;
}

/* ========== 首页响应式 ========== */
@media (max-width: 1024px) {
    /* 频道栏目：图片 + 简介纵向堆叠 */
    .wv-home-channel-content .wv-channel-panel.wv-channel-panel-active,
    .wv-home-channel-content .wv-panel-1 {
        flex-direction: column;
    }
    .wv-channel-image {
        width: 100%;
        height: 220px;
    }
    .wv-channel-gallery {
        flex-wrap: wrap;
    }
    /* 精彩专题：多个专题纵向堆叠 */
    .wv-special {
        flex-direction: column;
    }
    /* 频道合作：2 列布局 */
    .wv-cooperation {
        flex-wrap: wrap;
    }
    .wv-cooperation-item {
        flex: 1 1 calc(50% - 6px);
    }
}

@media (max-width: 768px) {
    /* 首页手机端：段间距收紧（仅本页，本文件单独引入） */
    .wv-section {
        padding: 32px 0;
    }
    .wv-section-header {
        margin-bottom: 20px;
    }

    /* 频道公告：双列变单列 */
    .wv-announcement {
        flex-direction: column;
        gap: 20px;
    }
    .wv-announcement-item {
        font-size: 13px;
        padding: 13px 0;
    }
    .wv-announcement-dot {
        font-size: 8px;
    }
    .wv-announcement-item > span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 频道栏目手机端：标题 + 更多同一行，tabs 独占下一行 3 列网格 */
    .wv-channel-header {
        flex-wrap: wrap;
        gap: 0;
    }
    /* 穿透中间层，让标题 / 更多 / tabs 同为 header 的弹性项 */
    .wv-channel-header-left {
        display: contents;
    }
    .wv-channel-header .wv-section-title {
        flex-shrink: 0;
    }
    .wv-channel-header .wv-section-more {
        margin-left: auto;
        flex-shrink: 0;
    }
    .wv-channel-tabs {
        order: 5;
        flex: 1 1 100%;
        margin-top: 12px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        overflow: visible;
        white-space: normal;
    }
    .wv-channel-tab {
        padding: 10px 8px;
        font-size: 14px;
        text-align: center;
        background: #f5f5f5;
        border-radius: 4px;
        color: #666;
        border-bottom: none;
        white-space: nowrap;
    }
    .wv-channel-tab:hover {
        background: #eee;
        color: var(--color-text);
    }
    .wv-tab-active {
        background: var(--color-primary);
        color: #ffffff;
        font-weight: 500;
    }
    .wv-channel-image {
        height: 180px;
        border-radius: 6px;
    }
    .wv-channel-gallery {
        flex-wrap: wrap;
    }
    .wv-gallery-item {
        flex: 1 1 calc(50% - 8px);
        height: 80px;
        font-size: 12px;
        border-radius: 6px;
    }

    /* 频道合作：单列 */
    .wv-cooperation-item {
        flex: 1 1 100%;
        height: 140px;
        border-radius: 6px;
    }

    /* 精彩专题：手机端上下排列，不再左右排（PC不动） */
    .wv-special {
        flex-direction: column;
        gap: 24px;
    }
    .wv-special-item-link {
        width: 100%;
    }
    .wv-special-item {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .wv-special-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        flex-shrink: 0;
        border-radius: 6px;
    }
    .wv-special-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }
    .wv-special-title {
        font-size: 16px;
        margin-bottom: 4px;
    }
    .wv-special-subtitle {
        font-size: 13px;
        margin-bottom: 8px;
    }
    .wv-special-tags {
        gap: 6px;
        margin-top: 0;
    }
    .wv-special-tag {
        font-size: 13px;
        line-height: 1.4;
    }
    .wv-special-tag > span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 影像中国：纵向堆叠 */
    .wv-image-content {
        flex-direction: column;
    }

    /* 友情链接：自适应宽度 */
    .wv-friend-link-img {
        width: 140px;
        height: 60px;
    }
    .wv-friend-link-item p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .wv-announcement-item {
        font-size: 12px;
    }
    .wv-channel-image {
        height: 150px;
    }
    .wv-cooperation-item {
        height: 110px;
    }
    .wv-special-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .wv-special-title {
        font-size: 15px;
    }
    .wv-special-tag {
        font-size: 12px;
    }
    .wv-friend-link-list {
        gap: 12px;
    }
    .wv-friend-link-img {
        width: 120px;
        height: 50px;
    }
}
