/* 文章页面移动端样式 - 简体中文 */

/* 移动端样式 (宽度小于等于768px) */
@media (max-width: 768px) {
    .main-content {
    padding-top: 60px;  /* 根据页眉实际高度调整，通常50-70px */
}
    /* 第一部分：标题和文字区域 */
    .article-header {
        display: flex;
        flex-direction: column;
        margin: 16px 16px 0 16px;  /* 完全匹配第一份文件 */
        padding: 16px;             /* 完全匹配第一份文件 */
    }

    .article-header h1 {
        font-size: 28px;
        font-weight: 700;
        color: #000000;
        margin: 0 0 8px 0;
        line-height: 1.4;
        word-wrap: break-word;
        text-align: center;
    }

    .article-header p {
        font-size: 20px;
        font-weight: 400;
        color: #666666;
        margin: 0;
        line-height: 1.5;
        text-align: center;
    }

        /* 第二部分：文章卡片区域 - 使用 CSS Grid 单列布局 */
    .article-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 20px 20px 20px;
    }

    /* 单个卡片内部布局 - 改为垂直排列 */
    .article-card {
        display: flex;
        flex-direction: column; /* 改为垂直方向 */
        height: 450px; /* 增加高度以适应上下结构 */
        background-color: #ffffff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    /* 图片区域 - 占2/3高度 */
    .article-image {
        flex: 2;
        padding: 12px 12px 0 12px;
    }

    .article-image img {
        width: 100%;
        height: 100%;
        border-radius: 6px;
        object-fit: cover;
    }


    /* 文本内容区域 - 占1/3高度 */
    .article-card .card-content {
        flex: 1; /* 占1份高度，即1/3 */
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

    .article-card .card-content h3 {
        font-size: 24px;
        font-weight: bold;
        color: #000000;
        margin: 0 0 15px 0px;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        line-clamp: 2; /* 添加标准属性 */
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-align: center;
    }

    .article-card .card-content p {
        font-size: 22px;
        color: #000000;
        margin: 0;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        line-clamp: 2; /* 添加标准属性 */
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    /* 交互设计 - 点击反馈效果 */
    .article-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-1px);
    }

    .article-card:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    /* 响应式优化 - 确保容器不会过度拉伸 */
    .main-content {
        max-width: 768px;
        margin: 0 auto;
    }
}