/* MRC theme — page styles for NewsDetail (delta over base.css) */

/* ============================================================
        News 内页专属样式
        ============================================================ */
        /* ---- Hero ---- */
        .news-hero {

            position: relative;
            overflow: hidden;
            padding-top: var(--nav-height);
            background: url('../images/hero-cat.webp') center 20% / cover no-repeat;
            color: var(--white);
            text-align: center;
            padding-bottom: 56px;
}

.news-hero::before {

            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(100deg, rgba(0, 60, 22, 0.93) 0%, rgba(0, 78, 29, 0.76) 50%, rgba(0, 122, 43, 0.38) 100%);
}

.news-hero .container {

            position: relative;
            z-index: 1;
            padding-top: 76px;
}

.news-hero h1 {

            font-family: 'Fredoka One', cursive;
            font-size: 56px;
            font-weight: 400;
            letter-spacing: 1px;
            margin-bottom: 16px;
}

.news-hero .hero-sub {

            font-size: 18px;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.88);
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.75;
}

/* ---- 面包屑 ---- */
        .news-breadcrumb {

            background: var(--white);
            border-bottom: 1px solid #ececec;
}

.news-breadcrumb .container {

            display: flex;
            align-items: center;
            gap: 10px;
            padding-top: 14px;
            padding-bottom: 14px;
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-500);
}

.news-breadcrumb a {

            color: var(--green-dark);
            transition: color 0.25s;
}

.news-breadcrumb a:hover {

            color: var(--green);
}

.news-breadcrumb .sep {

            color: var(--gray-300);
}

.news-breadcrumb .current {

            color: var(--gray-900);
}

/* ---- 新闻列表 ---- */
        .news-list {

            padding: 72px 0;
            background: var(--gray-100);
}

.news-item {

            display: grid;
            grid-template-columns: 1fr 1.35fr;
            grid-template-rows: 1fr;
            align-items: stretch;
            background: var(--white);
            border-radius: 20px;
            overflow: hidden;
            margin-bottom: 36px;
            height: 320px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            border: 1px solid #eef0ee;
}

.news-item.expanded {

            height: auto;
}

.news-thumb {

            position: relative;
            min-height: 0;
            height: 100%;
            padding: 20px;
            box-sizing: border-box;
            overflow: hidden;
}

.news-thumb a {

            display: block;
            width: 100%;
            height: 100%;
            border-radius: 12px;
            overflow: hidden;
}

.news-thumb img {

            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.4s var(--ease);
}

.news-thumb a:hover img {

            transform: scale(1.05);
}

.news-item .date-badge {

            display: inline-flex;
            align-items: center;
            align-self: flex-start;
            gap: 8px;
            padding: 5px 12px;
            background: var(--green);
            color: var(--white);
            border-radius: 60px;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.3px;
}

.news-item h2 {

            font-size: 22px;
            font-weight: 700;
            color: var(--gray-900);
            line-height: 1.4;
            margin: 12px 0 10px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-height: 62px;
}

.news-item .news-desc {

            font-size: 14.5px;
            line-height: 1.7;
            color: var(--gray-600);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
}

.news-item .news-desc.expanded {

            -webkit-line-clamp: unset;
            display: block;
}

.news-readmore {

            margin-top: 14px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--green);
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            letter-spacing: 0.3px;
            transition: color 0.3s;
            background: none;
            border: none;
            padding: 0;
}

.news-readmore:hover {

            color: var(--green-dark);
            text-decoration: underline;
}

.news-body {

            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 30px 44px 30px 50px;
            overflow: hidden;
}

.news-item:nth-child(even) {

            grid-template-columns: 1.35fr 1fr;
}

.news-item:nth-child(even) .news-thumb {

            order: 2;
}

.news-item:nth-child(even) .news-body {

            order: 1;
            padding: 30px 50px 30px 44px;
}

@media (max-width: 768px) {

            .news-hero h1 {
                font-size: 38px;
            }
            .news-item {
                grid-template-columns: 1fr;
                height: auto;
            }
            .news-thumb {
                min-height: 220px;
                height: auto;
            }
            .news-body {
                padding: 22px;
            }
            .news-item:nth-child(even) .news-body {
                padding: 22px;
            }
            .news-item h2 {
                font-size: 19px;
                min-height: 0;
            }
}

@media (max-width: 480px) {

            .news-hero h1 {
                font-size: 32px;
            }
}

/* ============================================================
        新闻详情页
        ============================================================ */
        .nd-breadcrumb {

            background: var(--white);
            padding: calc(var(--nav-height) + 24px) 0 24px;
            border-bottom: 1px solid #eef0ee;
            font-size: 14px;
            color: var(--gray-500);
}

.nd-breadcrumb a {

            color: var(--green);
            text-decoration: none;
}

.nd-breadcrumb a:hover {

            text-decoration: underline;
}

.nd-breadcrumb .current {

            color: var(--gray-900);
}

.news-detail {

            padding: 56px 0 72px;
            background: var(--white);
}

.nd-head {

            margin-bottom: 36px;
            max-width: 100%;
}

.nd-head h1 {

            font-size: 34px;
            font-weight: 700;
            color: var(--gray-900);
            line-height: 1.35;
            margin: 18px 0 0;
}

.nd-gallery {

            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 18px;
            margin-bottom: 44px;
}

.nd-gallery a {

            border-radius: 16px;
            overflow: hidden;
            display: block;
}

.nd-gallery img {

            width: 100%;
            aspect-ratio: 4 / 3;
            object-fit: cover;
            display: block;
            transition: transform 0.4s var(--ease);
}

.nd-gallery a:hover img {

            transform: scale(1.04);
}

/* 导语：优先取 ACF 长摘要，为空时用文章摘要 */
.nd-lead {

            max-width: 100%;
            margin: 14px 0 0;
            padding-left: 16px;
            border-left: 3px solid var(--green);
            font-size: 17px;
            line-height: 1.8;
            color: var(--gray-600);
}

.nd-content {

            max-width: 100%;
            margin: 0 auto;
}

.nd-content p {

            font-size: 16px;
            line-height: 2;
            color: var(--gray-600);
}

.nd-back {

            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 44px;
            padding: 13px 30px;
            background: var(--green);
            color: var(--white);
            border-radius: 60px;
            font-weight: 700;
            font-size: 15px;
            text-decoration: none;
            transition: background 0.3s;
}

.nd-back:hover {

            background: var(--green-dark);
}

@media (max-width: 768px) {

            .nd-gallery {
                grid-template-columns: 1fr;
            }
            .nd-head h1 {
                font-size: 26px;
            }
}

/* 详情页顶部无深色 Hero：导航默认白底黑字 */
        .navbar {

            background: rgba(255, 255, 255, 0.94);
            backdrop-filter: blur(14px);
            box-shadow: 0 1px 30px rgba(0, 0, 0, 0.05);
}

.navbar .logo .logo-white {

            display: none;
}

.navbar .logo .logo-green {

            display: block;
}

.navbar .nav-links {

            color: var(--gray-700);
}

.navbar .search-btn {

            color: var(--gray-700);
}

.navbar .lang-switch {

            color: var(--gray-500);
            background: rgba(0, 0, 0, 0.03);
}

.navbar .nav-toggle span {

            background: var(--gray-900);
}
