.news-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
}
html, body {
    font-size: 14px;
}
/* 壹连同款统一灰底（页面整体背景，卡片为白色浮于其上） */
body {
    background: #f5f5f7;
}
/* 顶部 hero banner（公司新闻主图 + 深色遮罩 + 标题叠加，全宽） */
.news-hero {
    position: relative;
    width: 100%;
    /* 充满屏幕：视口高 - 导航(7.14rem) - 底部一小条(72px) peek，提示下方还有内容 */
    height: calc(100vh - 7.14rem - 72px);
    height: calc(100svh - 7.14rem - 72px);
    min-height: 420px;
    overflow: hidden;
    background: #1a1a1a;
}
.news-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .30) 50%, rgba(0, 0, 0, .10) 100%);
}
.news-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    padding: 0 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-hero-title {
    margin: 0 0 14px;
    font-weight: bold;
    font-size: 46px;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.news-hero-sub {
    margin: 0;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .82);
}

/* 选项卡样式 */
.tabs {
    display: flex;
    margin-bottom: 5.1429rem;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 0.7143rem;
}

.tab {
    padding: 0.9286rem 1.7143rem;
    text-align: center;
    margin: 0 0.5714rem;
    cursor: pointer;
    font-size: 1rem;
    color: #000000;
    border-radius: 7.1429rem;
    border: 0.0714rem solid #E5E5E5;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.tab:hover {
    background: #f0f0f0;
}

.tab.active {
    background: #039CEA;
    color: #fff;
    border-color: #039CEA;
}

/* 新闻列表样式 */
.news-list {
    margin-bottom: 2.2143rem;
}

.news-item {
    display: flex;
    background: #fff;
    border-radius: 0.5714rem;
    overflow: hidden;
    margin-bottom: 1.4286rem;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
    transition: box-shadow .3s ease, transform .3s ease;
}

.news-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.news-image {
    width: 22.8571rem;
    height: 17.1429rem;
}

.news-image img {
    width: 100%;
    height: 100%;
}

.news-content {
    padding: 1.7857rem 2.5714rem 0 2.5714rem;
    flex: 1;
}

.news-title {
    margin-bottom: 0.7143rem;
    font-weight: 500;
    font-size: 1.0714rem;
    color: #333333;
    line-height: 1.7143rem;
    height: 1.7143rem;
}

.news-desc {
    height: 5.1429rem;
    font-size: 1.1429rem;
    color: #999999;
    line-height: 1.7143rem;
    margin-bottom: 3.5714rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8571rem;
    color: #999999;
}

.news-time {
    margin-right: 1.0714rem;
}

.news-time i,
.news-views i {
    margin-right: 0.3571rem;
}

/* 分页器样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 76px 0;
}

.page-item {
    margin: 0 8px;
}

/*.page-link {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    text-decoration: none;*/
/*    width: 28px;*/
/*    height: 28px;*/
/*    background: #FFFFFF;*/
/*    border-radius: 100px;*/
/*    font-size: 16px;*/
/*    color: #333333;*/
/*    transition: all 0.3s ease;*/
/*}*/

/*.page-link:hover {*/
/*    background: #E0F4FE;*/
/*    color: #039CEA;*/
/*}*/

/*.page-link.active {*/
/*    background: #039CEA;*/
/*    color: #FFFFFF;*/
/*}*/

/*.page-link.disabled {*/
/*    opacity: 0.5;*/
/*    cursor: not-allowed;*/
/*}*/

/* 加载动画 */
.loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading p {
    margin-top: 15px;
    color: #7f8c8d;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(234, 91, 21, 0.2);
    border-radius: 50%;
    border-top-color: #039CEA;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 0;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #bdc3c7;
}

.empty-state p {
    font-size: 1.2rem;
}

/* ====================================================================
   新闻列表 响应式 — Step 4
   ==================================================================== */
@media (max-width: 1024px) {
    .news-container {
        padding: 16px;
    }
    /* hero 移动端也充满屏幕（底部留一小条 peek）*/
    .news-hero {
        height: 82svh;
        min-height: 360px;
    }
    .news-hero-inner {
        padding: 0 20px;
    }
    .news-hero-title {
        font-size: 30px;
    }
    .news-hero-sub {
        font-size: 15px;
    }
    /* tabs 紧凑 + 允许换行 */
    .tabs {
        gap: 8px;
        margin-bottom: 24px;
    }
    .tab {
        padding: 8px 14px;
        margin: 0;
        font-size: 13px;
    }
    /* 新闻卡片：图 + 文 左右 → 上下堆叠 */
    .news-item {
        flex-direction: column;
        margin-bottom: 16px;
    }
    .news-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: 300px;
    }
    .news-image img {
        object-fit: cover;
    }
    .news-content {
        padding: 16px 20px;
    }
    .news-title {
        font-size: 16px;
        line-height: 1.4;
        height: auto;
        margin-bottom: 8px;
    }
    .news-desc {
        font-size: 14px;
        line-height: 1.5;
        height: auto;
        max-height: 60px;
        margin-bottom: 16px;
        -webkit-line-clamp: 2;
    }
    .news-meta {
        font-size: 12px;
    }
    .pagination {
        margin: 32px 0;
        flex-wrap: wrap;
        gap: 4px;
    }
    .page-item {
        margin: 0 2px;
    }
}

@media (max-width: 768px) {
    .news-hero-title {
        font-size: 24px;
    }
    .news-hero-sub {
        font-size: 13px;
    }
    .news-content {
        padding: 12px 14px;
    }
    .news-title {
        font-size: 15px;
    }
    .news-desc {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-container {
        padding: 12px;
    }
    .news-hero-title {
        font-size: 20px;
    }
    .news-image {
        max-height: 220px;
    }
}

