/* 首页样式：hero 区块、staff pick、分类板块 */

/* ===================== Home H1 ===================== */
.netr-home-h1 {
    text-align: center;
    padding: 18px 0 14px;
    border-bottom: 3px solid var(--netr-primary);
    margin-bottom: 4px;
    position: relative;
}

/* ===================== Home Hero ===================== */
.netr-hero {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.8fr;
    gap: 4px;
    margin-top: 16px;
    min-height: 380px;
}

.netr-hero-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.netr-hero-left-item {
    flex: 1;
    overflow: hidden;
    background: var(--netr-bg-light);
}

.netr-hero-left-item__img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.netr-hero-left-item__body {
    padding: 8px 10px 10px;
}

.netr-hero-left-item__title {
    font-family: var(--netr-font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--netr-text-main);
    line-height: 1.35;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.netr-hero-left-item__title a {
    color: inherit;
    text-decoration: none;
}

.netr-hero-left-item__title a:hover {
    color: var(--netr-primary);
    text-decoration: none;
    opacity: 1;
}

.netr-hero-center {
    position: relative;
    overflow: hidden;
}

.netr-hero-center__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.netr-hero-center__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(var(--netr-overlay-start), var(--netr-overlay-end));
    padding: 40px 18px 20px;
}

.netr-hero-center__title {
    font-family: var(--netr-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 8px;
}

.netr-hero-center__title a {
    color: #ffffff;
    text-decoration: none;
}

.netr-hero-center__title a:hover {
    color: var(--netr-primary-dark);
    opacity: 1;
    text-decoration: none;
}

.netr-hero-center__summary {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.netr-hero-right {
    display: flex;
    flex-direction: column;
    background: var(--netr-bg-light);
}

.netr-hero-right-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border-bottom: 1px solid var(--netr-border);
}

.netr-hero-right-item:last-child {
    border-bottom: none;
}

.netr-hero-right-item__img {
    flex-shrink: 0;
    width: 72px;
    height: 75px;
    overflow: hidden;
    border-radius: 2px;
}

.netr-hero-right-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.netr-hero-right-item__body {
    flex: 1;
    min-width: 0;
}

.netr-hero-right-item__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--netr-text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.netr-hero-right-item__title a {
    color: inherit;
    text-decoration: none;
}

.netr-hero-right-item__title a:hover {
    color: var(--netr-primary);
    opacity: 1;
    text-decoration: none;
}

/* ===================== 4-Column Card Grid ===================== */
.netr-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.netr-card {
    display: flex;
    flex-direction: column;
}

.netr-card__img-wrap {
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 16 / 9;
}

.netr-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.netr-card__img-wrap:hover .netr-card__img {
    transform: scale(1.04);
}

.netr-card__body {
    padding: 10px 0 0;
}

.netr-card__title {
    font-family: var(--netr-font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--netr-text-main);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.netr-card__title a {
    color: inherit;
    text-decoration: none;
}

.netr-card__title a:hover {
    color: var(--netr-primary);
    opacity: 1;
    text-decoration: none;
}

.netr-card__excerpt {
    font-size: 13px;
    color: var(--netr-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================== Category Sections ===================== */
.netr-cat-section {
    margin-top: 36px;
}

.netr-cat-section-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 6px;
}

.netr-cat-feature-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.netr-cat-feature-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.netr-cat-feature-card:hover .netr-cat-feature-card__img {
    transform: scale(1.04);
}

.netr-cat-feature-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(var(--netr-overlay-start), var(--netr-overlay-end));
    padding: 28px 14px 14px;
}

.netr-cat-feature-card__title {
    font-family: var(--netr-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.netr-cat-feature-card__title a {
    color: #ffffff;
    text-decoration: none;
}

.netr-cat-feature-card__title a:hover {
    color: var(--netr-primary-dark);
    opacity: 1;
    text-decoration: none;
}

.netr-cat-section-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.netr-cat-mini-card {
    display: flex;
    flex-direction: column;
}

.netr-cat-mini-card__img-wrap {
    overflow: hidden;
    border-radius: 2px;
    aspect-ratio: 16 / 9;
}

.netr-cat-mini-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.netr-cat-mini-card__img-wrap:hover .netr-cat-mini-card__img {
    transform: scale(1.04);
}

.netr-cat-mini-card__body {
    padding: 7px 0 0;
}

.netr-cat-mini-card__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--netr-text-main);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.netr-cat-mini-card__title a {
    color: inherit;
    text-decoration: none;
}

.netr-cat-mini-card__title a:hover {
    color: var(--netr-primary);
    opacity: 1;
    text-decoration: none;
}

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
    .netr-hero {
        /*grid-template-columns: 1fr 1fr;*/
        min-height: auto;
    }

    .netr-hero-left {
        display: grid;
        /*grid-template-columns: 1fr 1fr;*/
    }

    .netr-hero-right {
        display: grid;
        /*display: none;*/
    }

    .netr-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .netr-cat-section-top {
        grid-template-columns: 1fr;
    }

    .netr-cat-section-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .netr-hero {
        /*grid-template-columns: 1fr;*/
        min-height: auto;
    }

    .netr-hero-left {
        display: flex;
    }

    .netr-hero-right {
        display: flex;
    }

    .netr-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .netr-cat-section-top {
        grid-template-columns: 1fr;
    }

    .netr-cat-section-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .netr-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .netr-grid-4 {
        grid-template-columns: 1fr;
    }

    .netr-cat-section-bottom {
        grid-template-columns: 1fr 1fr;
    }
}

/* Home H1 */
.netr-home-h1 {
    text-align: center;
    padding: 18px 0 14px;
    border-bottom: 3px solid var(--netr-primary);
    margin-bottom: 4px;
    position: relative;
}

.netr-home-h1 h1 {
    font-family: var(--netr-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--netr-text-main);
    letter-spacing: 1.5px;
    /*text-transform: uppercase;*/
    display: inline-block;
    padding: 0 20px;
    position: relative;
}

/*.netr-home-h1 h1::before,*/
/*.netr-home-h1 h1::after {*/
/*    content: '';*/
/*    display: inline-block;*/
/*    width: 32px;*/
/*    height: 2px;*/
/*    background: var(--netr-primary);*/
/*    vertical-align: middle;*/
/*    margin: 0 10px;*/
/*}*/
/* ===================== Category Sections: Split Layout ===================== */

.netr-cat-section--split {
    margin-top: 36px; /* 延续原来 .netr-cat-section 的间距逻辑 */
}

/* 左右分栏容器 */
.netr-cat-split {
    display: grid;
    grid-template-columns: 1.4fr 1fr; /* 左大右小：形成明显主次 */
    gap: 18px;
    align-items: start;
}

/* --------------------- 左侧特写卡 --------------------- */
.netr-cat-feature {
    background: var(--netr-bg-light);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.netr-cat-feature__img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    height:240px;
}

.netr-cat-feature__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.netr-cat-feature__img-wrap:hover .netr-cat-feature__img {
    transform: scale(1.05);
}

.netr-cat-feature__body {
    padding: 14px 16px 16px;
}

.netr-cat-feature__meta {
    margin-bottom: 8px;
}

.netr-cat-feature__title {
    font-family: var(--netr-font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--netr-text-main);
    line-height: 1.35;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.netr-cat-feature__title a {
    color: inherit;
    text-decoration: none;
}

.netr-cat-feature__title a:hover {
    color: var(--netr-primary);
    opacity: 1;
    text-decoration: none;
}

.netr-cat-feature__excerpt {
    margin: 0;
    font-size: 13px;
    color: var(--netr-text-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --------------------- 右侧编号列表 --------------------- */
.netr-cat-list {
    border-left: 1px solid var(--netr-border);
    padding-left: 14px;
}

.netr-cat-list__item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--netr-border);
}

.netr-cat-list__item:last-child {
    border-bottom: none;
}

.netr-cat-list__index {
    flex-shrink: 0;
    width: 34px;
    font-family: var(--netr-font-heading);
    font-size: 20px;
    font-weight: 900;
    color: var(--netr-primary);
    line-height: 1;
    opacity: 0.9;
}

.netr-cat-list__body {
    flex: 1;
    min-width: 0;
}

.netr-cat-list__meta {
    margin-bottom: 4px;
}

.netr-cat-list__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--netr-text-main);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.netr-cat-list__title a {
    color: inherit;
    text-decoration: none;
}

.netr-cat-list__title a:hover {
    color: var(--netr-primary);
    opacity: 1;
    text-decoration: none;
}

/* --------------------- 响应式 --------------------- */
@media (max-width: 1024px) {
    .netr-cat-split {
        grid-template-columns: 1fr; /* 平板/小屏：上下堆叠 */
    }
    .netr-cat-list {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--netr-border);
        padding-top: 12px;
    }
    .netr-cat-feature__img-wrap{
        height:auto;
    }
}

@media (max-width: 480px) {
    .netr-cat-feature__excerpt {
        display: none; /* 手机屏幕隐藏摘要，更紧凑 */
    }
    .netr-cat-list__index {
        width: 28px;
        font-size: 18px;
    }
}