/* MRC theme — page styles for News (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;
            /* min-width:0 让网格单元不被内容撑破（390 下曾比卡片宽 4px，被裁掉） */
            min-width: 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,
            .news-item:nth-child(even) {
                grid-template-columns: 1fr;
                height: auto;
            }
            .news-thumb {
                /* 单列布局：宽度跟随列宽，高度按 16/10 反算。
                   原先的 min-height:220px + height:auto 会让 16/10 反过来把宽度
                   算成 220×1.6 = 352px，比卡片内容盒宽 4px 而被裁掉。 */
                aspect-ratio: 16/10;
                min-height: 0;
                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;
            }
}
