/**
 * Home page v2 — 首页隔离样式（不改 common.css / index.css）
 * 壳层：.home-page-v2
 *
 * 2026-07-29 改动：
 *   · H5 不再隐藏本壳层 —— 首页 H5 与 PC 同一套 DOM，仅列数/字号按断点收敛
 *   · H1 + 描述改为可见（原 sr-only），文案见 index_home_v2.phtml
 *
 * 主题色：.home-page-v2__section-more:hover 写死 #f93c79。
 * 改色见 common.css 顶部【全站主题色 · 改色地图】。
 */

/* ===== PC：main 内除本壳层外一律隐藏（老列表/广告位） ===== */
@media (min-width: 768px) {
    main.dx-container > *:not(.home-page-v2) {
        display: none !important;
    }

    /* 首页 PC：隐藏 Footer 色站分享区 */
    #app-footer #ssite {
        display: none !important;
    }
}

.home-page-v2 {
    box-sizing: border-box;
    padding-bottom: 32px;
}

/* ===== 首页 H1 + 描述 ===== */
.home-page-v2__intro {
    margin: 20px 0 4px;
}

.home-page-v2__h1 {
    margin: 0;
    font-weight: 600;
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: 0;
    color: #ffffff;
}

.home-page-v2__lead {
    margin: 10px 0 0;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.45);
}

/* ===== 分区 ===== */
.home-page-v2__section + .home-page-v2__section {
    margin-top: 8px;
}

.home-page-v2__section {
    margin: 0;
}

.home-page-v2__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 25px 0 15px;
}

.home-page-v2__section-title {
    margin: 0;
    font-weight: 600;
    font-size: 26px;
    line-height: 1;
    letter-spacing: 0;
    color: #ffffff;
}

.home-page-v2__section-more {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4.21px;
    margin-left: auto;
    font-weight: 600;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0;
    color: #999999;
    text-decoration: none;
}

.home-page-v2__section-more:hover {
    color: #f93c79;
}

.home-page-v2__section-more-icon {
    display: block;
    flex-shrink: 0;
    width: 26px;
    height: 24px;
}

/* ===== 视频行（每区固定 4 列一行） ===== */
.home-page-v2__row.video-items-v2,
.home-page-v2__section-body .video-items-v2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-page-v2__row.video-items-v2 > li,
.home-page-v2__section-body .video-items-v2 > li {
    min-width: 0;
}

/* 首页无整页分页，分区纵向堆叠 */

/* ===== H5：与 PC 同结构，两列 + 字号收敛 ===== */
/*
 * 仅覆盖 .home-page-v2 内的 v2 卡（列表页 H5 仍走老卡，见 mobile-v2.css）。
 * 尺寸与 H5 列表卡一致：封面 96px / 圆角 4px / 标题 14px / 小字 12px。
 */
@media (max-width: 767px) {
    /* 左右留白与 H5 列表/底栏一致（--ui-v2-mobile-gutter=12.5px，见 mobile-v2.css） */
    .home-page-v2 {
        padding-left: var(--ui-v2-mobile-gutter, 12.5px);
        padding-right: var(--ui-v2-mobile-gutter, 12.5px);
        padding-bottom: 20px;
    }

    .home-page-v2__intro {
        margin: 12px 0 0;
    }

    .home-page-v2__h1 {
        font-size: 18px;
        line-height: 1.4;
    }

    .home-page-v2__lead {
        margin-top: 6px;
        font-size: 13px;
        line-height: 1.6;
    }

    .home-page-v2__section-head {
        margin: 18px 0 10px;
    }

    .home-page-v2__section-title {
        font-size: 16px;
    }

    .home-page-v2__section-more {
        font-size: 13px;
    }

    .home-page-v2__section-more-icon {
        width: 18px;
        height: 16px;
    }

    .home-page-v2__row.video-items-v2,
    .home-page-v2__section-body .video-items-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 10px;
        column-gap: 8px;
    }

    /* 卡片高度改为内容自适应（PC 写死 235px） */
    .home-page-v2 .video-card-v2 {
        height: auto;
    }

    .home-page-v2 .video-card-v2__thumb {
        flex: 0 0 96px;
        height: 96px;
        border-radius: 4px;
    }

    .home-page-v2 .video-card-v2__duration {
        right: 7.5px;
        bottom: 7px;
        height: 13px;
        padding: 0 4px;
        border-radius: 2px;
        font-size: 10px;
        line-height: 13px;
    }

    .home-page-v2 .video-card-v2__info {
        flex: 0 0 auto;
        height: auto;
        margin-top: 5px;
    }

    .home-page-v2 .video-card-v2__title {
        flex: 0 0 auto;
        height: auto;
    }

    .home-page-v2 .video-card-v2__title a {
        height: auto;
        max-height: 28px;
        font-weight: 400;
        font-size: 14px;
        line-height: 14px;
        color: #ffffff;
    }

    .home-page-v2 .video-card-v2__meta {
        flex: 0 0 auto;
        height: auto;
        margin-top: 5px;
        font-weight: 500;
        font-size: 12px;
        line-height: 1;
        color: #999999;
    }
}
