/*
* 一米资讯（news.html）页面专用样式
* 公共头部、banner、底部样式沿用 main.css / mobile_main.css
*/

.news_main {
    width: 100%;
    background: #FFFFFF;
    padding: 113px 0 96px;
    box-sizing: border-box;
}

.news_banxin {
    width: 1160px;
    max-width: 86%;
    margin: 0 auto;
}

/* 分类标签 */
.news_tabs {
    display: flex;
    align-items: center;
    gap: 56px;
    border-bottom: 1px solid #E7E4E1;
    margin-bottom: 48px;
}

.news_tab {
    position: relative;
    flex: 0 0 auto;
    padding: 0 2px 15px;
    border: 0;
    background: transparent;
    font-weight: 400;
    font-size: 22px;
    color: #3D3D3D;
    line-height: 28px;
    cursor: pointer;
    transition: color 0.25s;
    -webkit-appearance: none;
    appearance: none;
}

.news_tab:hover {
    color: #8A4B26;
}

.news_tab.active {
    color: #8A4B26;
    font-weight: 600;
}

.news_tab.active:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #8A4B26;
}

/* 文章卡片 */
.news_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 46px;
}

.news_card {
    background: #F5F5F5;
    border-radius: 20px;
    overflow: hidden;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(70, 62, 57, 0.13);
}

/* 绑定了 HTML 详情页的卡片整块可点击，外观沿用 .news_card */
.news_card_link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.news_card_link:hover,
.news_card_link:focus {
    color: inherit;
    text-decoration: none;
}

.news_card_imgbox {
    width: 100%;
    height: 185px;
    overflow: hidden;
    background: #EDEAE7;
}

.news_card_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.news_card:hover .news_card_img {
    transform: scale(1.05);
}

.news_card_body {
    padding: 18px 24px;
}

.news_card_title {
    min-height: 52px;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 18px;
    color: #252525;
    line-height: 26px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.news_card_summary {
    min-height: 52px;
    margin-bottom: 9px;
    font-weight: 400;
    font-size: 16px;
    color: #444444;
    line-height: 26px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.news_card_date {
    font-weight: 400;
    font-size: 14px;
    color: #999999;
    line-height: 26px;
}

.news_empty {
    grid-column: 1 / -1;
    padding: 60px 0;
    text-align: center;
    font-size: 14px;
    color: #999999;
}

/* 分页 */
.news_pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}

.news_page {
    width: 60px;
    height: 60px;
    padding: 0;
    border: 1px solid #999999;
    border-radius: 4px;
    background: #FFFFFF;
    color: #763B1B;
    font-size: 18px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.news_page:hover:not(.active):not(.disabled) {
    border-color: #763B1B;
    color: #763B1B;
}

.news_page.active {
    background: #7B3F1D;
    border-color: #7B3F1D;
    color: #FFFFFF;
}

.news_page.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.news_page_arrow {
    font-size: 26px;
    line-height: 1;
}

/* 移动端 */
@media screen and (max-width: 768px) {
    #mobile-banner.news_mobile_banner {
        height: 78vw;
        min-height: 300px;
        max-height: 480px;
        overflow: hidden;
    }

    .news_mobile_banner .mobile_video_banner {
        height: 100%;
        object-fit: cover;
    }

    .news_mobile_banner:after {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.55) 100%);
        z-index: 2;
        pointer-events: none;
    }

    .news_mobile_banner .mobile_banner_other {
        bottom: 36px;
        z-index: 13;
    }

    .news_main {
        padding: 24px 0 40px;
    }

    .news_banxin {
        width: 92%;
        max-width: 92%;
    }

    .news_tabs {
        gap: 28px;
        margin-bottom: 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .news_tabs::-webkit-scrollbar {
        display: none;
    }

    .news_tab {
        font-size: 15px;
        padding-bottom: 12px;
    }

    .news_grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* 移动端列表：左图右文 */
    .news_card {
        display: flex;
        align-items: stretch;
        gap: 12px;
        padding: 8px;
        background: #F7F7F7;
        border-radius: 10px;
    }

    .news_card:hover {
        transform: none;
        box-shadow: none;
    }

    .news_card_imgbox {
        flex: 0 0 40%;
        width: 40%;
        height: 26vw;
        min-height: 84px;
        max-height: 104px;
        border-radius: 6px;
    }

    .news_card_img {
        border-radius: 6px;
    }

    .news_card:hover .news_card_img {
        transform: none;
    }

    .news_card_body {
        flex: 1;
        min-width: 0;
        padding: 4px 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .news_card_title {
        min-height: 0;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
        color: #333333;
        line-clamp: 2;
        -webkit-line-clamp: 2;
    }

    .news_card_summary {
        display: none;
    }

    .news_card_date {
        font-size: 12px;
        line-height: 16px;
        color: #A8A8A8;
    }

    .news_pagination {
        margin-top: 26px;
        gap: 8px;
    }

    .news_page {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-color: #DED9D5;
    }

    .news_page_arrow {
        font-size: 16px;
    }
}
