/* ============================================
   News & Media Page
   Independent stylesheet (news.css)
   ============================================ */

/* ---------- Page base offset (fixed header) ---------- */
.news-page { margin-top: 132px; }

/* ============================================
   1. Hero - News & Media
   ============================================ */
.news-hero {
    position: relative;
    height: 400px;
    background: #faf6f3;
    overflow: hidden;
    display: flex;
    align-items: center;
  	background: url('../images/new-bg.jpg') center/cover no-repeat;
}



.news-hero-content {
    position: relative;
    z-index: 2;
    padding: 30px 0;
}

.news-hero-content h1 {
    font-size: 54px;
    font-weight: 700;
    color:var(--dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.news-hero-content p {
    font-size: 18px;
    color: #333;
}

/* ============================================
   2. Breadcrumb
   ============================================ */
.news-breadcrumb {
    background: var(--white);
    border-bottom: 1px solid #eee;
    padding: 14px 0;
    font-size: 15px;
    color: #666;
}

.news-breadcrumb i { margin-right: 8px; }
.news-breadcrumb a { color: #333; }
.news-breadcrumb a:hover { color: var(--primary); }
.news-breadcrumb .sep { margin: 0 8px; color: #999; }
.news-breadcrumb .current { color: var(--primary); }

/* ============================================
   3. News List
   ============================================ */
.news-list-section {
    padding: 36px 0 60px;
    background: var(--white);
}

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-item {
    display: grid;
    grid-template-columns: 100px 1fr 200px;
    gap: 30px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.news-item:first-child { border-top: 1px solid #eee; }

.news-item:hover { background: #fafaf7; }

/* ---------- Date block (left) ---------- */
.news-date {
    width: 100px;
    height: 110px;
    background: linear-gradient(135deg, #3a9540 0%, #49aa3d 60%, #5cbb52 100%);
    color: var(--white);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.news-date .day {
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    margin-top: 10px;
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0.95;
}

/* ---------- Content (middle) ---------- */
.news-content {
    min-width: 0;
}

.news-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--transition);
}

.news-item:hover .news-content h3 { color: var(--primary); }

.news-content .news-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}

.news-content p {
    font-size: 18px;
    color: #666;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Thumbnail (right) ---------- */
.news-thumb {
    width: 200px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-thumb img { transform: scale(1.05); }

/* ============================================
   4. Pagination
   ============================================ */
.news-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0 0;
    font-size: 15px;
    color: #666;
}

.news-pager {
    display: flex;
    align-items: center;
    gap: 14px;
}

.news-pager .info { color: #333; }

.news-pager .nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: var(--white);
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.news-pager .nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.news-pager .nav-btn:disabled,
.news-pager .nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.news-total { color: #333; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1230px) {
    .news-hero-content h1 { font-size: 54px; }
}

@media (max-width: 992px) {
    .news-item:first-child{
        border-top:none;
    }
    .news-page { margin-top: 64px; }

    /* 移动端面包屑统一尺寸：14px 字号 + 1.5 行高 = 21px 行盒，上下 12px padding，
       加 1px 下边框 = 46px 条高。新闻列表页与详情页共用 .news-breadcrumb，
       与 about / contact / policy / products / rd 完全一致。 */
    .news-breadcrumb { padding: 12px 0; font-size: 14px; line-height: 1.5; }

    .news-hero { height: auto; padding: 40px 0; }
    .news-hero::after { width: 100%; opacity: 0.25; -webkit-mask-image: none; mask-image: none; }
    /* 移动端 hero 文案一律左对齐（客户要求，中英文一致）。新闻列表页与详情页共用
       .news-hero-content：.news-hero 是 flex 容器，内容块会被 margin:0 auto 居中成
       fit-content（详情页短标题中文时左侧空 105px），这里铺满一行并清掉左右 auto 外边距。
       只影响 ≤992，桌面 hero 位置不变。 */
    .news-hero .news-hero-content {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }
    .news-hero-content h1 { font-size: 28px; }
    /* 移动端统一：副标题 16px、段落 16px（577-992 区间原会继承 PC 基准字号） */
    .news-hero-content p { font-size: 16px; }
    .news-content p { font-size: 16px; }
    /* 四档字号：日期数字 28、分页 14 */
    .news-date .day { font-size: 28px; }
    .news-pagination { font-size: 14px; }

    .news-item {
        grid-template-columns: 80px 1fr 140px;
        gap: 20px;
        padding: 22px 0;
    }
    .news-date { width: 80px; height: 90px; }
    .news-thumb { width: 140px; height: 90px; }
}

@media (max-width: 768px) {
    .news-item:first-child{
        border-top:none;
    }
    /* 移动端卡片：紧凑竖排日期徽章在左（缩小版桌面样式），
       标题/摘要在右，封面图通栏压在两列之下。整条横绿幅
       在窄屏上空洞且基线难对齐，弃用。 */
    .news-item {
        grid-template-columns: 62px 1fr;
        gap: 14px;
        padding: 20px 0;
        align-items: start;
    }
    .news-date {
        flex-direction: column;
        width: 62px;
        height: 74px;
        padding: 0;
        gap: 2px;
    }
    .news-date .day { font-size: 28px; line-height: 1; }
    .news-date .month { margin-top: 0; font-size: 14px; letter-spacing: 0.5px; }

    .news-content h3 {
        white-space: normal;
        font-size: 20px;
    }

    .news-thumb {
        grid-column: 1 / -1;
        width: 100%;
        height: 180px;
    }

    .news-pagination { flex-direction: column; gap: 14px; }
}

@media (max-width: 576px) {
    .news-hero-content h1 { font-size: 28px; }
    .news-hero-content p { font-size: 16px; }
    .news-content h3 { font-size: 20px; }
    .news-content p { font-size: 16px; }
}
