/* ========================
   内容区域和文章列表
   ======================== */

/* 列表区域顶部"最新文章 + 更多"行 */
.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 16px 0;
    /* 顶部无外边距，因为content-main已有padding-top */
}

.content-title {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #111111;
}

.content-more {
    font-size: 14px;
    color: #888888;
    text-decoration: none;
}

.content-more:hover {
    color: #750a20;
}

/* 整体文章列表容器 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 单条文章卡片（左图右文） */
.article-card {
    display: flex;
    background-color: #ffffff;
    border-radius: 0;
    border: 1px solid #e5e5e5;
    overflow: hidden;
}

/* 左侧图片占位区域，可后续替换为 <img> */
.article-image {
    height: 200px;
    /* 固定高度 */
    width: auto;
    /* 宽度自适应 */
    max-width: 267px;
    /* 最大宽度：200px * 4/3 = 266.67px，约267px，满足4:3比例 */
    flex-shrink: 0;
    /* 不允许收缩 */
    aspect-ratio: 4 / 3;
    /* 保持4:3的长宽比 */
    background-color: #d8d8d8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 文稿卡片图片：自动调整大小，保持宽高比 */
.article-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 填满容器，保持比例，裁剪多余部分 */
    display: block;
}

/* 右侧文字区 */
.article-body {
    flex: 1;
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-title {
    order: 1;
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.4;
    color: #222222;
}

/* 文稿区标题链接：默认无下划线，悬停时显示下划线并可点击 */
.article-title-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.article-title-link:hover {
    text-decoration: underline;
}

.article-summary {
    order: 3;
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #444444;
    /* 最多显示三行，超出用省略号 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* 标准属性 */
    overflow: hidden;
    text-overflow: ellipsis;
    /* 确保即使内容不足三行，高度也按三行计算 */
    min-height: calc(1.8em * 3);
    /* line-height * 3行 */
    height: calc(1.8em * 3);
}

/* 日期 + 阅读量 信息行（放在文字区域底部） */
.article-meta {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    font-size: 13px;
    color: #999999;
}

.meta-left,
.meta-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-icon {
    font-size: 14px;
}

/* 日历图标样式：3D风格的日历图标，显示日期数字 */
.calendar-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 4px;
    border-radius: 6px;
    background: linear-gradient(180deg, #4e6cff 0%, #7f8dff 40%, #f6f0ff 40%, #f6f0ff 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
}

.calendar-day {
    font-size: 11px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1;
    text-align: center;
}

/* 分页区域整体容器 */
.pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.page-item {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    background-color: #ffffff;
    font-size: 14px;
    color: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.page-item.active {
    background-color: #005fe6;
    border-color: #005fe6;
    color: #ffffff;
}

.page-item.disabled {
    color: #cccccc;
    cursor: default;
}

/* ========================
   移动端响应式适配（手机等小屏幕）
   - 断点：768px 及以下
   ======================== */
@media (max-width: 768px) {

    /* 文章卡片：小屏幕时保持横向布局，图片在右侧 */
    .article-card {
        flex-direction: row;
    }

    /* 图片占卡片宽度 1/4，放右侧，保持4:3长宽比 */
    .article-image {
        width: 25%;
        min-width: 25%;
        max-width: 25%;
        aspect-ratio: 4 / 3;
        /* 保持4:3的长宽比 */
        order: 2;
        overflow: hidden;
        background-color: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 16px 0;
        /* 上下边距与文字区域的 padding 一致（16px） */
        height: auto;
        /* 自动高度，由 aspect-ratio 决定 */
    }

    /* 图片填满容器宽度和高度，不允许任何空白或背景显示 */
    .article-image-img {
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
        /* 填满容器，保持比例，裁剪多余部分 */
        display: block;
        object-position: center;
        /* 居中裁剪 */
        flex-shrink: 0;
        /* 不允许收缩 */
    }

    /* 文字区在小屏幕时显示在左侧 */
    .article-body {
        padding: 16px 18px;
        order: 1;
        /* 将文字区移到左侧 */
        flex: 1;
    }

    /* 标题在小屏幕时字体稍小 */
    .article-title {
        font-size: 18px;
    }

    /* 内容标题在小屏幕时字体稍小 */
    .content-title {
        font-size: 18px;
    }

    /* 内容头部在小屏幕时可能需要调整 */
    .content-header {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ========================
   超小屏幕适配（手机竖屏等）
   - 断点：600px 及以下
   - 增材新闻/增材文章等列表页：隐藏右侧图片，仅保留文字
   ======================== */
@media (max-width: 600px) {

    /* 文章卡片在超小屏幕时仅显示文字区 */
    .article-card {
        flex-direction: column;
    }

    /* 隐藏右侧图片/占位 */
    .article-image,
    .article-image-placeholder {
        display: none;
    }
}