﻿/* ==============================
   News Channel Page Responsive
   Main Color: #30c1b4
   Accent Color: #239f94
============================== */

.news-page {
    width: 100%;
    background: #fff;
    color: #333;
}

.news-content {
    padding: 55px 0 80px;
}

/* ==============================
   Page Heading
============================== */
.news-page-title {
    text-align: center;
    margin-bottom: 34px;
}

    .news-page-title h1 {
        margin: 0;
        font-size: 38px;
        line-height: 1.3;
        color: #222;
        font-weight: bold;
        position: relative;
        padding-bottom: 18px;
    }

        .news-page-title h1::after {
            content: "";
            width: 66px;
            height: 4px;
            border-radius: 4px;
            background: #30c1b4;
            position: absolute;
            left: 50%;
            bottom: 0;
            margin-left: -33px;
        }

    .news-page-title p {
        margin: 14px 0 0;
        color: #777;
        font-size: 15px;
        line-height: 26px;
    }

/* ==============================
   Category Navigation
============================== */
.news-category {
    margin-bottom: 36px;
    padding: 15px;
    background: #f2fbfa;
    border: 1px solid #dcefeb;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

    .news-category a {
        min-width: 140px;
        height: 46px;
        line-height: 46px;
        padding: 0 22px;
        border-radius: 12px;
        text-align: center;
        background: #fff;
        color: #333;
        font-size: 15px;
        text-decoration: none;
        transition: all .25s ease;
        box-shadow: 0 6px 18px rgba(48, 193, 180, .06);
    }

        .news-category a:hover,
        .news-category a.active {
            background: #30c1b4;
            color: #fff;
            box-shadow: 0 10px 24px rgba(48, 193, 180, .22);
            transform: translateY(-2px);
        }

/* ==============================
   Main Layout
============================== */
.news-main {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

/* ==============================
   News List
============================== */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.news-card {
    background: #fff;
    border: 1px solid #dcefeb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(48, 193, 180, .08);
    transition: all .28s ease;
}

    .news-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 18px 42px rgba(48, 193, 180, .16);
        border-color: #30c1b4;
    }

.news-card-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

    .news-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: all .45s ease;
    }

.news-card:hover .news-card-img img {
    transform: scale(1.08);
}

.news-card-info {
    padding: 22px 22px 24px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #888;
    font-size: 13px;
    margin-bottom: 12px;
}

    .news-card-meta span {
        display: inline-flex;
        align-items: center;
    }

        .news-card-meta span i {
            margin-right: 8px;
            color: #30c1b4;
        }

.news-card-info h2 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.45;
    font-weight: bold;
}

    .news-card-info h2 a {
        color: #222;
        text-decoration: none;
        transition: all .25s ease;
    }

        .news-card-info h2 a:hover {
            color: #239f94;
        }

.news-card-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 26px;
    height: 52px;
    overflow: hidden;
}

.news-card-more {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    color: #30c1b4;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: all .25s ease;
}

    .news-card-more:hover {
        color: #239f94;
        padding-left: 6px;
    }

/* ==============================
   Sidebar
============================== */
.news-side {
    position: sticky;
    top: 90px;
}

.news-side-box {
    background: #fff;
    border: 1px solid #dcefeb;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 26px;
    box-shadow: 0 10px 30px rgba(48, 193, 180, .08);
}

.news-side-title {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e3f2ef;
    position: relative;
}

    .news-side-title h3 {
        margin: 0;
        font-size: 22px;
        line-height: 1.3;
        color: #222;
        font-weight: bold;
    }

    .news-side-title::after {
        content: "";
        width: 42px;
        height: 3px;
        border-radius: 3px;
        background: #30c1b4;
        position: absolute;
        left: 0;
        bottom: -1px;
    }

/* Popular News */
.news-hot-list {
    counter-reset: hotNum;
}

.news-hot-item {
    counter-increment: hotNum;
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #e3f2ef;
}

    .news-hot-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.news-hot-num {
    width: 32px;
    height: 32px;
    line-height: 32px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #e9faf7;
    color: #30c1b4;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
}

    .news-hot-num::before {
        content: counter(hotNum);
    }

.news-hot-item:nth-child(1) .news-hot-num,
.news-hot-item:nth-child(2) .news-hot-num,
.news-hot-item:nth-child(3) .news-hot-num {
    background: #30c1b4;
    color: #fff;
}

.news-hot-text h4 {
    margin: 0;
    font-size: 15px;
    line-height: 24px;
    font-weight: bold;
}

    .news-hot-text h4 a {
        color: #333;
        text-decoration: none;
        transition: all .25s ease;
    }

        .news-hot-text h4 a:hover {
            color: #239f94;
        }

.news-hot-text span {
    display: block;
    margin-top: 6px;
    color: #999;
    font-size: 13px;
}

/* Recommended News */
.news-recommend-item {
    display: flex;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid #e3f2ef;
}

    .news-recommend-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.news-recommend-img {
    width: 98px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

    .news-recommend-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: all .35s ease;
    }

.news-recommend-item:hover .news-recommend-img img {
    transform: scale(1.08);
}

.news-recommend-text h4 {
    margin: 0;
    font-size: 15px;
    line-height: 23px;
    max-height: 46px;
    overflow: hidden;
}

    .news-recommend-text h4 a {
        color: #333;
        text-decoration: none;
        transition: all .25s ease;
    }

        .news-recommend-text h4 a:hover {
            color: #239f94;
        }

.news-recommend-text span {
    display: block;
    margin-top: 8px;
    color: #999;
    font-size: 13px;
}


/* ==============================
   News Detail Page Responsive
   Main Color: #30c1b4
   Accent Color: #239f94
============================== */

.news-detail-page {
    width: 100%;
    background: #fff;
    color: #333;
}

.news-detail-content {
    padding: 55px 0 80px;
}

.news-detail-main {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

/* Article Content */
.news-detail-left {
    min-width: 0;
}

.news-detail-box {
    background: #fff;
    border: 1px solid #dcefeb;
    border-radius: 22px;
    padding: 42px 46px 46px;
    box-shadow: 0 14px 38px rgba(48, 193, 180, .08);
}

.news-detail-title {
    margin-bottom: 18px;
}

    .news-detail-title h1 {
        margin: 0;
        font-size: 34px;
        line-height: 1.45;
        color: #222;
        font-weight: bold;
    }

.news-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-bottom: 24px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e3f2ef;
    color: #888;
    font-size: 14px;
}

    .news-detail-meta span {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }

    .news-detail-meta i {
        margin-right: 6px;
        color: #30c1b4;
        font-size: 14px;
    }

/* Article Summary */
.news-detail-summary {
    margin-bottom: 28px;
    padding: 20px 24px;
    border-left: 4px solid #30c1b4;
    background: #f2fbfa;
    border-radius: 0 14px 14px 0;
    color: #555;
    font-size: 15px;
    line-height: 28px;
}

/* Article Body */
.news-detail-body {
    color: #444;
    font-size: 16px;
    line-height: 32px;
}

    .news-detail-body p {
        margin: 0 0 18px;
    }

    .news-detail-body img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 24px auto;
        border-radius: 14px;
    }

    .news-detail-body h2,
    .news-detail-body h3,
    .news-detail-body h4 {
        margin: 30px 0 16px;
        color: #222;
        line-height: 1.45;
    }

    .news-detail-body h2 {
        font-size: 26px;
    }

    .news-detail-body h3 {
        font-size: 22px;
    }

    .news-detail-body ul,
    .news-detail-body ol {
        margin: 0 0 20px 22px;
        padding: 0;
    }

    .news-detail-body li {
        margin-bottom: 8px;
    }

/* ==============================
   Previous and Next Articles
============================== */

.news-detail-prevnext {
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid #e3f2ef;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px 12px;
    align-items: stretch;
}

    .news-detail-prevnext > span {
        min-height: 50px;
        padding: 0 16px;
        border-radius: 12px;
        background: #e9faf7;
        color: #30c1b4;
        font-size: 15px;
        font-weight: bold;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }

    .news-detail-prevnext > a {
        min-height: 50px;
        padding: 13px 18px;
        border-radius: 12px;
        background: #f6fcfb;
        color: #444;
        font-size: 15px;
        line-height: 24px;
        text-decoration: none;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        transition: all .25s ease;
    }

        .news-detail-prevnext > a:hover {
            background: #30c1b4;
            color: #fff;
            transform: translateX(6px);
            box-shadow: 0 10px 24px rgba(48, 193, 180, .18);
        }

/* Back Button */
.news-detail-back {
    margin-top: 28px;
}

    .news-detail-back a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 150px;
        height: 46px;
        border-radius: 999px;
        background: #30c1b4;
        color: #fff;
        font-size: 15px;
        font-weight: bold;
        text-decoration: none;
        transition: all .25s ease;
        box-shadow: 0 10px 24px rgba(48, 193, 180, .22);
    }

        .news-detail-back a:hover {
            background: #239f94;
            transform: translateY(-2px);
            box-shadow: 0 14px 30px rgba(35, 159, 148, .28);
        }

/* Sidebar */
.news-detail-side {
    position: sticky;
    top: 90px;
}

.news-detail-category-list a {
    display: block;
    height: 44px;
    line-height: 44px;
    padding: 0 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #f2fbfa;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all .25s ease;
}

    .news-detail-category-list a:hover,
    .news-detail-category-list a.active {
        background: #30c1b4;
        color: #fff;
        padding-left: 22px;
    }

/* Sidebar Meta Icons */
.news-hot-text span {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 12px;
    margin-top: 8px;
    color: #999;
    font-size: 13px;
}

    .news-hot-text span em {
        display: inline-flex;
        align-items: center;
        font-style: normal;
    }

.news-hot-text i {
    margin-right: 5px;
    color: #30c1b4;
}

.news-recommend-text span {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 12px;
    margin-top: 8px;
    color: #999;
    font-size: 13px;
}

    .news-recommend-text span em {
        display: inline-flex;
        align-items: center;
        font-style: normal;
    }

.news-recommend-text i {
    margin-right: 5px;
    color: #30c1b4;
}


/* ==============================
   Responsive Layout and Refinements
============================== */
.news-page,
.news-detail-page {
    width: 100%;
    min-width: 0;
}
.news-page *,
.news-detail-page * {
    box-sizing: border-box;
}
.news-main,
.news-detail-main,
.news-list,
.news-card,
.news-card-info,
.news-side,
.news-detail-left,
.news-detail-side,
.news-side-box,
.news-detail-box,
.news-hot-text,
.news-recommend-text {
    min-width: 0;
}
.news-card-info h2 a,
.news-hot-text h4 a,
.news-recommend-text h4 a,
.news-detail-title h1,
.news-detail-body {
    overflow-wrap: anywhere;
}
.news-detail-body iframe,
.news-detail-body video,
.news-detail-body embed,
.news-detail-body object {
    max-width: 100%;
}
.news-detail-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    -webkit-overflow-scrolling: touch;
}
.news-detail-body pre {
    max-width: 100%;
    overflow-x: auto;
}
.news-detail-body img {
    max-width: 100%;
    height: auto;
}

/* ==============================
   Mobile Layout - 767px and Below
============================== */
@media screen and (max-width: 767px) {
    .news-content,
    .news-detail-content {
        padding: 30px 0 45px;
    }

    /* Page Heading */
    .news-page-title {
        margin-bottom: 25px;
    }
    .news-page-title h1 {
        font-size: 27px;
        line-height: 1.35;
        padding-bottom: 15px;
    }
    .news-page-title p {
        margin-top: 12px;
        font-size: 14px;
        line-height: 23px;
    }

    /* Category Navigation */
    .news-category {
        justify-content: flex-start;
        gap: 9px;
        padding: 10px;
        margin-bottom: 25px;
        border-radius: 12px;
    }
    .news-category a {
        flex: 1 1 calc(50% - 9px);
        min-width: 0;
        height: auto;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 10px;
        line-height: 22px;
        font-size: 14px;
        border-radius: 8px;
        overflow-wrap: anywhere;
    }

    /* News Grid and Sidebar */
    .news-main,
    .news-detail-main {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
    .news-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .news-card {
        border-radius: 12px;
    }
    .news-card:hover {
        transform: none;
    }
    .news-card-img {
        height: auto;
        aspect-ratio: 432 / 240;
    }
    .news-card-img img {
        width: 100%;
        height: 100%;
    }
    .news-card-info {
        padding: 18px 16px 20px;
    }
    .news-card-meta {
        flex-wrap: wrap;
        gap: 7px 12px;
        font-size: 12px;
    }
    .news-card-info h2 {
        font-size: 18px;
        line-height: 1.45;
    }
    .news-card-info p {
        font-size: 14px;
        line-height: 24px;
        height: 48px;
    }
    .news-card-more {
        margin-top: 15px;
        font-size: 14px;
    }
    .news-side,
    .news-detail-side {
        position: static;
        top: auto;
        width: 100%;
    }
    .news-side-box {
        padding: 20px 16px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    .news-side-title {
        margin-bottom: 12px;
    }
    .news-side-title h3 {
        font-size: 19px;
    }
    .news-hot-item,
    .news-recommend-item {
        gap: 12px;
        padding: 12px 0;
    }
    .news-hot-num {
        width: 30px;
        height: 30px;
        line-height: 30px;
    }
    .news-hot-text h4,
    .news-recommend-text h4 {
        font-size: 14px;
        line-height: 22px;
    }
    .news-recommend-img {
        width: 88px;
        height: 66px;
        border-radius: 8px;
    }

    /* News Detail */
    .news-detail-box {
        padding: 24px 16px 28px;
        border-radius: 12px;
    }
    .news-detail-title {
        margin-bottom: 16px;
    }
    .news-detail-title h1 {
        font-size: 25px;
        line-height: 1.45;
    }
    .news-detail-meta {
        gap: 8px 14px;
        padding-bottom: 17px;
        margin-bottom: 20px;
        font-size: 12px;
    }
    .news-detail-meta span {
        white-space: normal;
    }
    .news-detail-summary {
        padding: 15px 16px;
        margin-bottom: 20px;
        border-radius: 0 9px 9px 0;
        font-size: 14px;
        line-height: 24px;
    }
    .news-detail-body {
        font-size: 14px;
        line-height: 26px;
    }
    .news-detail-body p {
        margin-bottom: 16px;
    }
    .news-detail-body h2 {
        font-size: 22px;
    }
    .news-detail-body h3 {
        font-size: 19px;
    }
    .news-detail-body h4 {
        font-size: 17px;
    }
    .news-detail-body h2,
    .news-detail-body h3,
    .news-detail-body h4 {
        margin: 24px 0 12px;
    }
    .news-detail-body img {
        margin: 18px auto;
        border-radius: 8px;
    }
    .news-detail-prevnext {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
        margin-top: 27px;
        padding-top: 22px;
    }
    .news-detail-prevnext > span {
        min-height: 36px;
        padding: 7px 12px;
        border-radius: 8px;
        font-size: 13px;
    }
    .news-detail-prevnext > a {
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 14px;
        line-height: 23px;
    }
    .news-detail-back {
        margin-top: 24px;
    }
    .news-detail-back a {
        min-width: 135px;
        height: 44px;
        font-size: 14px;
    }
    .news-detail-category-list a {
        height: auto;
        min-height: 42px;
        line-height: 23px;
        padding: 9px 13px;
    }
}
