/* ============================================
   新闻列表模块（News List）
   用途：category-news.html 右侧内容区内的新闻卡片列表
   布局：一行 3 列卡片网格，每张卡片包含标题 / 简介 / 时间
   作用域：仅作用于 .about__content 内的 .news__list，
           通过祖先选择器限定，避免影响页面其他区域
   ============================================ */


.about__content {
    padding-top: 0px;
}

/* --------------------------------------------
   列表容器 - .news__list
   作用：定义 3 列网格布局与卡片间距
   -------------------------------------------- */
.about__content .news__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}


/* --------------------------------------------
   新闻卡片 - .news__item
   作用：单条新闻的容器，整体作为可点击链接
   -------------------------------------------- */
.about__content .news__item {
    display: flex;
    flex-direction: column;
    background-color: var(--header-color-white);
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 24px 22px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease;
    box-sizing: border-box;
}

/* 卡片悬停效果：上浮 + 加深阴影 + 边框变深 */
.about__content .news__item:hover {
    border-color: #e0e0e0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}


/* --------------------------------------------
   新闻标题 - .news__item-title
   作用：卡片顶部新闻标题，限制最多 2 行
   -------------------------------------------- */
.about__content .news__item-title {
    font-size: var(--header-font-size-md);
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 0 0 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 标题悬停时强调色彩 */
.about__content .news__item:hover .news__item-title {
    color: var(--header-color-accent-2);
}


/* --------------------------------------------
   新闻简介 - .news__item-desc
   作用：标题下方的描述文字，限制最多 3 行
   -------------------------------------------- */
.about__content .news__item-desc {
    font-size: var(--header-font-size-base);
    color: #777777;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


/* --------------------------------------------
   卡片元信息区 - .news__item-meta
   作用：卡片底部的时间等元信息展示区
   -------------------------------------------- */
.about__content .news__item-meta {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #999999;
    line-height: 1.4;
    border-top: 1px dashed #f0f0f0;
    padding-top: 12px;
}

/* 时间文本 - .news__item-date */
.about__content .news__item-date {
    display: inline-flex;
    align-items: center;
}

/* 时间文本前缀小圆点（视觉装饰） */
.about__content .news__item-date::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--header-color-accent-2);
    margin-right: 8px;
}


/* ============================================
   响应式适配（Responsive）
   ============================================ */

/* 平板端：≤1024px 降为 2 列布局，缩小间距 */
@media screen and (max-width: 1024px) {
    .about__content .news__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 移动端：≤600px 降为 1 列布局，压缩内边距与字号 */
@media screen and (max-width: 600px) {
    .about__content .news__list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about__content .news__item {
        padding: 20px 18px;
    }

    .about__content .news__item-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .about__content .news__item-desc {
        font-size: 14px;
        margin-bottom: 12px;
    }
}