/* =========================================================
   24直播网
   NEWS LIST V4
   新闻列表独立样式
========================================================= */


/* =========================================================
   页面
========================================================= */

.news-v4-page {

    width: 100%;

    min-height: 700px;

    background: #f4f6f8;

    color: #252a31;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Microsoft YaHei",
        "PingFang SC",
        Arial,
        sans-serif;

}


.news-v4-page *,
.news-v4-page *::before,
.news-v4-page *::after {

    box-sizing: border-box;

}


.news-v4-page a {

    text-decoration: none;

    color: inherit;

}


.news-v4-page img {

    display: block;

    max-width: 100%;

}



/* =========================================================
   页面容器
========================================================= */

.news-v4-container {

    width: 1200px;

    max-width: calc(100% - 32px);

    margin: 0 auto;

    padding: 18px 0 50px;

}



/* =========================================================
   面包屑
========================================================= */

.news-v4-breadcrumb {

    height: 44px;

    display: flex;

    align-items: center;

    padding: 0 18px;

    margin-bottom: 14px;

    background: #ffffff;

    border: 1px solid #e7eaee;

    font-size: 13px;

    color: #8b929b;

}


.news-v4-breadcrumb a {

    color: #6f7780;

}


.news-v4-breadcrumb a:hover {

    color: #e53935;

}


.news-v4-breadcrumb-separator {

    margin: 0 9px;

    color: #c1c5ca;

}



/* =========================================================
   两栏布局
========================================================= */

.news-v4-layout {

    display: grid;

    grid-template-columns: minmax(0, 1fr) 330px;

    gap: 18px;

    align-items: start;

}


.news-v4-main {

    min-width: 0;

}


.news-v4-sidebar {

    min-width: 0;

}



/* =========================================================
   左侧标题
========================================================= */

.news-v4-section-title {

    height: 78px;

    display: flex;

    align-items: center;

    padding: 0 21px;

    margin-bottom: 12px;

    background: #ffffff;

    border: 1px solid #e7eaee;

}


.news-v4-title-mark {

    width: 4px;

    height: 32px;

    margin-right: 13px;

    background: #e53935;

}


.news-v4-section-title h1 {

    margin: 0;

    font-size: 22px;

    line-height: 30px;

    font-weight: 700;

    color: #20252c;

}


.news-v4-section-title p {

    margin: 1px 0 0;

    font-size: 12px;

    line-height: 20px;

    color: #9ba1a9;

}



/* =========================================================
   新闻列表
========================================================= */

.news-v4-list {

    display: flex;

    flex-direction: column;

    gap: 10px;

}



/* =========================================================
   新闻卡片
========================================================= */

.news-v4-news-card {

    background: #ffffff;

    border: 1px solid #e7eaee;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;

}


.news-v4-news-card:hover {

    border-color: #dfe3e7;

    box-shadow: 0 6px 20px rgba(20, 30, 40, .07);

    transform: translateY(-1px);

}


.news-v4-news-link {

    min-height: 168px;

    display: flex;

    gap: 18px;

    padding: 14px;

}



/* =========================================================
   新闻图片
========================================================= */

.news-v4-image {

    position: relative;

    width: 235px;

    min-width: 235px;

    height: 140px;

    overflow: hidden;

    background: #edf0f3;

}


.news-v4-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;

}


.news-v4-news-card:hover
.news-v4-image img {

    transform: scale(1.045);

}



/* =========================================================
   新闻内容
========================================================= */

.news-v4-content {

    min-width: 0;

    flex: 1;

    display: flex;

    flex-direction: column;

}


.news-v4-news-title {

    margin: 2px 0 9px;

    font-size: 18px;

    line-height: 27px;

    font-weight: 650;

    color: #242930;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;

    overflow: hidden;

}


.news-v4-news-card:hover
.news-v4-news-title {

    color: #df3636;

}


.news-v4-excerpt {

    color: #8b929a;

    font-size: 13px;

    line-height: 23px;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;

    overflow: hidden;

}


.news-v4-meta {

    margin-top: auto;

    padding-top: 10px;

    display: flex;

    align-items: center;

    gap: 18px;

    color: #a1a7ae;

    font-size: 12px;

}


.news-v4-source {

    max-width: 180px;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

}


.news-v4-time {

    white-space: nowrap;

}



/* =========================================================
   分页
========================================================= */

.news-v4-pagination {

    width: 100%;

    min-height: 70px;

    margin-top: 14px;

    padding: 17px 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow-x: auto;

    overflow-y: hidden;

    background: #ffffff;

    border: 1px solid #e7eaee;

}


/*
   ThinkPHP 生成的分页通常包含：

   .pagination
   li
   a
   span

   这里全部限定在 news-v4-pagination 内，
   不影响其他页面。
*/

.news-v4-pagination .pagination {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    margin: 0;

    padding: 0;

    list-style: none;

}


.news-v4-pagination .pagination li {

    display: block;

    margin: 0 3px;

    padding: 0;

    list-style: none;

}


.news-v4-pagination .pagination li a,
.news-v4-pagination .pagination li span {

    min-width: 36px;

    height: 36px;

    padding: 0 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid #e1e5e9;

    background: #ffffff;

    color: #69717b;

    font-size: 13px;

    line-height: 34px;

    text-align: center;

    text-decoration: none;

    white-space: nowrap;

}


.news-v4-pagination .pagination li a:hover {

    border-color: #e53935;

    color: #e53935;

    background: #fff7f7;

}


.news-v4-pagination .pagination li.active span,
.news-v4-pagination .pagination li.active a {

    border-color: #e53935;

    background: #e53935;

    color: #ffffff;

}


.news-v4-pagination .pagination li.disabled span {

    color: #c3c7cc;

    background: #f7f8f9;

    border-color: #e8ebee;

}


.news-v4-pagination .pagination li:first-child,
.news-v4-pagination .pagination li:last-child {

    display: block;

}



/* =========================================================
   右侧卡片
========================================================= */

.news-v4-side-card {

    margin-bottom: 14px;

    background: #ffffff;

    border: 1px solid #e7eaee;

}


.news-v4-side-card:last-child {

    margin-bottom: 0;

}



/* =========================================================
   右侧标题
========================================================= */

.news-v4-side-title {

    height: 55px;

    padding: 0 16px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid #edf0f2;

}


.news-v4-side-title-left {

    display: flex;

    align-items: center;

}


.news-v4-side-title-left > span {

    width: 3px;

    height: 18px;

    margin-right: 9px;

    background: #e53935;

}


.news-v4-side-title h2 {

    margin: 0;

    padding: 0;

    color: #282d34;

    font-size: 17px;

    line-height: 24px;

    font-weight: 650;

}


.news-v4-side-title > a {

    color: #9ba1a9;

    font-size: 12px;

}


.news-v4-side-title > a:hover {

    color: #e53935;

}



/* =========================================================
   推荐资讯
========================================================= */

.news-v4-recommend {

    padding: 7px 15px 10px;

}


.news-v4-recommend-item {

    min-height: 44px;

    padding: 8px 0;

    display: flex;

    align-items: center;

    gap: 10px;

    border-bottom: 1px solid #f0f2f4;

}


.news-v4-recommend-item:last-child {

    border-bottom: 0;

}


.news-v4-number {

    width: 21px;

    height: 21px;

    min-width: 21px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f0f2f4;

    color: #7b828a;

    font-size: 11px;

    line-height: 21px;

}


.news-v4-recommend-item:nth-child(1)
.news-v4-number,

.news-v4-recommend-item:nth-child(2)
.news-v4-number,

.news-v4-recommend-item:nth-child(3)
.news-v4-number {

    background: #e53935;

    color: #ffffff;

}


.news-v4-recommend-text {

    min-width: 0;

    flex: 1;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    color: #505861;

    font-size: 13px;

    line-height: 21px;

}


.news-v4-recommend-item:hover
.news-v4-recommend-text {

    color: #e53935;

}



/* =========================================================
   相关视频
========================================================= */

.news-v4-video-list {

    padding: 7px 15px 10px;

}


.news-v4-video-item {

    min-height: 43px;

    padding: 9px 0;

    display: flex;

    align-items: center;

    gap: 9px;

    border-bottom: 1px solid #f0f2f4;

}


.news-v4-video-item:last-child {

    border-bottom: 0;

}


.news-v4-video-play {

    width: 24px;

    height: 24px;

    min-width: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f4f5f6;

    color: #e53935;

    font-size: 10px;

}


.news-v4-video-text {

    flex: 1;

    min-width: 0;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    color: #505861;

    font-size: 13px;

    line-height: 20px;

}


.news-v4-video-arrow {

    color: #b2b7bd;

    font-size: 14px;

}


.news-v4-video-item:hover
.news-v4-video-text {

    color: #e53935;

}


.news-v4-video-item:hover
.news-v4-video-arrow {

    color: #e53935;

}



/* =========================================================
   热门赛事
========================================================= */

.news-v4-hot {

    padding: 15px;

    display: flex;

    flex-wrap: wrap;

    gap: 9px;

}


.news-v4-hot a {

    padding: 7px 12px;

    border: 1px solid #e5e8eb;

    background: #f8f9fa;

    color: #626a72;

    font-size: 12px;

    line-height: 18px;

}


.news-v4-hot a:hover {

    border-color: #e53935;

    background: #fff5f5;

    color: #e53935;

}



/* =========================================================
   平板
========================================================= */

@media (max-width: 1000px) {

    .news-v4-layout {

        grid-template-columns: 1fr;

    }


    .news-v4-sidebar {

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 14px;

    }


    .news-v4-side-card {

        margin-bottom: 0;

    }

}



/* =========================================================
   手机
========================================================= */

@media (max-width: 680px) {

    .news-v4-container {

        width: auto;

        max-width: calc(100% - 20px);

        padding-top: 10px;

        padding-bottom: 30px;

    }


    .news-v4-breadcrumb {

        height: 40px;

        padding: 0 12px;

        margin-bottom: 10px;

    }


    .news-v4-section-title {

        height: 68px;

        padding: 0 15px;

    }


    .news-v4-section-title h1 {

        font-size: 19px;

    }


    .news-v4-section-title p {

        font-size: 11px;

    }


    .news-v4-list {

        gap: 8px;

    }


    .news-v4-news-link {

        min-height: 0;

        padding: 11px;

        gap: 12px;

    }


    .news-v4-image {

        width: 125px;

        min-width: 125px;

        height: 82px;

    }


    .news-v4-news-title {

        margin: 0 0 4px;

        font-size: 15px;

        line-height: 22px;

    }


    .news-v4-excerpt {

        display: none;

    }


    .news-v4-meta {

        padding-top: 3px;

        gap: 8px;

        font-size: 10px;

    }


    .news-v4-source {

        max-width: 90px;

    }


    .news-v4-sidebar {

        display: block;

    }


    .news-v4-side-card {

        margin-bottom: 10px;

    }


    .news-v4-pagination {

        min-height: 62px;

        padding: 12px 6px;

        justify-content: flex-start;

    }


    .news-v4-pagination .pagination {

        flex-wrap: nowrap;

        justify-content: flex-start;

        margin: 0 auto;

    }


    .news-v4-pagination .pagination li {

        flex: 0 0 auto;

        margin: 0 2px;

    }


    .news-v4-pagination .pagination li a,
    .news-v4-pagination .pagination li span {

        min-width: 31px;

        height: 31px;

        padding: 0 7px;

        font-size: 11px;

        line-height: 29px;

    }

}



/* =========================================================
   超小屏
========================================================= */

@media (max-width: 420px) {

    .news-v4-image {

        width: 105px;

        min-width: 105px;

        height: 72px;

    }


    .news-v4-news-title {

        font-size: 14px;

        line-height: 20px;

    }


    .news-v4-meta {

        font-size: 9px;

    }

}

/* =========================================================
   News Page - Shared Header / Footer
   来源：Live Detail V2 已验证正常样式
   不修改 layout/header.html / layout/footer.html
   ========================================================= */

/* ---------- 基础重置 ---------- */

.news-v4-page,
.news-v4-page *,
.news-v4-page *::before,
.news-v4-page *::after {
    box-sizing: border-box;
}

.news-v4-page {
    margin: 0;
    padding: 0;
    background: #f3f5f8;
    color: #252b31;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "PingFang SC",
        "Hiragino Sans GB",
        "Microsoft YaHei",
        Arial,
        sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.news-v4-page a {
    color: inherit;
    text-decoration: none;
}

.news-v4-page img {
    display: block;
    max-width: 100%;
    border: 0;
}

.news-v4-page h1,
.news-v4-page h2,
.news-v4-page h3,
.news-v4-page h4,
.news-v4-page p {
    margin: 0;
}


/* =========================================================
   Header
   ========================================================= */

.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #10151c;
    color: #fff;
    border-bottom: 1px solid #252c35;
}

.header-main {
    width: 100%;
}

.home-container {
    width: 1200px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
}

.header-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 66px;
}

.site-logo img {
    width: auto;
    max-width: 155px;
    max-height: 46px;
    object-fit: contain;
}

.main-nav {
    flex: 1;
    min-width: 0;
    height: 66px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #cbd1d8;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: .2s;
}

.nav-link:hover {
    color: #fff;
    background: #1d252f;
}

.nav-group {
    position: relative;
    height: 66px;
    display: flex;
    align-items: center;
}

.nav-arrow {
    color: #8d97a3;
    font-size: 13px;
}

.nav-dropdown {
    position: absolute;
    top: 58px;
    left: 50%;
    z-index: 2000;
    min-width: 145px;
    padding: 7px;
    background: #fff;
    border: 1px solid #e3e7eb;
    border-radius: 7px;
    box-shadow: 0 8px 25px rgba(0,0,0,.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -5px);
    transition: .18s;
}

.nav-group:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-dropdown a {
    display: block;
    padding: 8px 11px;
    color: #4c555e;
    border-radius: 5px;
    font-size: 13px;
    white-space: nowrap;
}

.nav-dropdown a:hover {
    color: #e53935;
    background: #f5f6f8;
}

.header-tools {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-live-status {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #aeb6bf;
    font-size: 12px;
    white-space: nowrap;
}

.header-live-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e53935;
    box-shadow: 0 0 0 4px rgba(229,57,53,.12);
}

.header-schedule {
    height: 34px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #e53935;
    border-radius: 5px;
    font-size: 13px;
}

.header-schedule:hover {
    background: #d9322f;
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    width: 100%;
    padding: 36px 0 0;
    background: #10151c;
    color: #a5adb6;
    border-top: 1px solid #252c35;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 28px;
}

.footer-brand {
    min-width: 0;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 10px;
    color: #fff;
    font-size: 19px;
    font-weight: 600;
}

.footer-brand p {
    max-width: 420px;
    color: #858f9a;
    font-size: 12px;
    line-height: 1.8;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column h3 {
    margin: 1px 0 11px;
    color: #e0e5e9;
    font-size: 13px;
    font-weight: 600;
}

.footer-column a {
    margin-bottom: 7px;
    color: #858f99;
    font-size: 12px;
}

.footer-column a:hover {
    color: #fff;
}

.footer-links {
    min-height: 49px;
    padding: 13px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid #252c35;
    border-bottom: 1px solid #252c35;
}

.footer-links span {
    position: relative;
    padding: 0 13px;
    color: #707a85;
    font-size: 11px;
}

.footer-links span:first-child {
    padding-left: 0;
}

.footer-links span + span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 10px;
    background: #343c45;
    transform: translateY(-50%);
}

.footer-bottom {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #68737e;
    font-size: 11px;
}


/* =========================================================
   Header / Footer 响应式
   ========================================================= */

@media (max-width: 1100px) {

    .home-container {
        max-width: calc(100% - 28px);
    }

    .header-inner {
        gap: 15px;
    }

    .nav-link {
        padding: 0 9px;
        font-size: 13px;
    }

    .header-live-status {
        display: none;
    }

    .footer-top {
        gap: 25px;
    }
}


@media (max-width: 900px) {

    .home-container {
        max-width: calc(100% - 20px);
    }

    .header-inner {
        min-height: 58px;
        gap: 9px;
    }

    .site-logo {
        height: 58px;
    }

    .site-logo img {
        max-width: 112px;
        max-height: 38px;
    }

    .main-nav {
        height: 58px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-group {
        height: 58px;
    }

    .nav-link {
        height: 38px;
        padding: 0 8px;
        font-size: 12px;
    }

    .nav-dropdown {
        display: none;
    }

    .header-tools {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
}


@media (max-width: 640px) {

    .home-container {
        max-width: calc(100% - 16px);
    }

    .site-logo img {
        max-width: 100px;
    }

    .nav-link {
        padding: 0 7px;
        font-size: 11px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 23px 18px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand p {
        max-width: none;
    }

    .footer-links {
        align-items: flex-start;
    }

    .footer-links span {
        margin-bottom: 4px;
        padding: 0 8px;
    }

    .footer-links span:first-child {
        padding-left: 0;
    }

    .footer-bottom {
        min-height: auto;
        padding: 14px 0 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
