/* ============ 资讯页面样式 ============ */

/* 页面容器（顶部为固定导航，预留高度） */
.news-page-wr {
    padding-top: 80px;
    padding-bottom: 40px;
    min-height: 60vh;
}

/* 顶部横幅（宽度跟随 container--response 全局规则，与内容区对齐） */
.news-banner {
    margin: 0 auto 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4facfe 0%, #00c6ff 100%);
    padding: 34px 30px;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(79, 172, 254, 0.25);
}

.news-banner--sub {
    padding: 20px 30px;
}

.news-banner__title {
    margin: 0;
    font-size: 28px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.news-banner__desc {
    margin: 8px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* 面包屑 */
.news-crumb {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.news-crumb a {
    color: #fff !important;
}

.news-crumb a:hover {
    text-decoration: underline;
}

.news-crumb span {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.7);
}

.news-crumb em {
    font-style: normal;
    color: #fff;
}

/* 内容容器 */
.news-container {
    margin: 0 auto;
    width: 990px;
    max-width: 96%;
}

/* ============ 资讯列表（4列卡片网格） ============ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.news-card__cover {
    display: block;
    height: 180px;
    overflow: hidden;
    background: #f5f7fa;
}

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

.news-card:hover .news-card__cover img {
    transform: scale(1.06);
}

.news-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 16px 14px;
}

.news-card__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.news-card__title a {
    color: #333 !important;
    transition: color 0.2s ease;
}

.news-card__title a:hover {
    color: #4facfe !important;
}

.news-card__desc {
    flex: 1;
    margin: 8px 0 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #999;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
    font-size: 12px;
    color: #bbb;
}

/* 空状态 */
.news-empty {
    background: #fff;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.news-empty p {
    margin: 0;
    font-size: 15px;
    color: #999;
}

/* ============ 资讯详情 ============ */
.news-detail {
    background: #fff;
    border-radius: 8px;
    padding: 30px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.news-detail__title {
    margin: 0;
    font-size: 26px;
    line-height: 1.4;
    color: #333;
}

.news-detail__meta {
    display: flex;
    align-items: center;
    margin: 14px 0 0;
    padding-bottom: 16px;
    font-size: 12px;
    color: #aaa;
    border-bottom: 1px solid #f0f2f5;
}

.news-detail__content {
    padding-top: 20px;
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    word-break: break-word;
}

.news-detail__content p {
    margin: 0 0 16px;
}

.news-detail__content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 上一篇 / 下一篇 */
.news-turn {
    background: #fff;
    border-radius: 8px;
    margin-top: 16px;
    padding: 16px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-size: 13px;
    color: #888;
}

.news-turn p {
    margin: 0;
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-turn a {
    color: #4facfe !important;
}

.news-turn a:hover {
    text-decoration: underline;
}

/* ============ 响应式适配 ============ */
/* 平板：2列 */
@media screen and (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* 手机：1列 */
@media screen and (max-width: 767px) {
    .news-page-wr {
        padding-top: 70px;
    }

    .news-banner {
        padding: 22px 16px;
    }

    .news-banner__title {
        font-size: 22px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .news-card__cover {
        height: 200px;
    }

    .news-detail {
        padding: 20px 16px;
    }

    .news-detail__title {
        font-size: 20px;
    }

    .news-turn {
        padding: 14px 16px;
    }

    .news-turn .fl,
    .news-turn .fr {
        float: none !important;
        max-width: 100%;
        margin-bottom: 6px;
    }
}
