/**
 * 新闻列表页样式 (Newslist Styles)
 * @version 1.0.0
 * @description 企业官网新闻资讯列表页 - 卡片式布局，4:3图片
 * @updated 2026-01-05
 */

/* ============================================
   主容器布局
   ============================================ */
.news-main {
    padding: 40px 0 60px;
    background: #f8f9fa;
}

.news-main__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   新闻列表容器 - 4列网格
   ============================================ */
.news-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ============================================
   新闻卡片 - 垂直布局
   ============================================ */
.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.news-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

/* ============================================
   新闻图片 (4:3比例)
   ============================================ */
.news-card__image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

.news-card:hover .news-card__image img {
    transform: scale(1.05);
}

/* ============================================
   新闻内容区
   ============================================ */
.news-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card__date {
    font-size: 13px;
    color: var(--color-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card__date::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-primary);
}

.news-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-card:hover .news-card__title {
    color: var(--color-primary);
}

.news-card__excerpt {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-top: 8px;
}

.news-card__more {
    display: none;  /* 4列布局空间有限，隐藏阅读更多 */
}

/* ============================================
   分页器间距
   ============================================ */
.news-main .pagination {
    margin-top: 40px;
}

.news-main .empty-state {
    margin-top: 40px;
}

/* 响应式样式已迁移至 responsive.css */
