/* 文章详情页整体样式 */
.article-list {
    width: 100%;
    margin: 0px;
    font-size: 20px;
    border: solid 1px #cccccc;
    padding: 5px 0px;
}

/* 文章标题样式 */
.title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px 12px;
}

.title span:first-child {
    font-weight: bold;
    color: #1890ff;
    min-width: 30px;
}

.title span:nth-child(2) {
    color: #666;
    font-size: 16px;
    margin-left: 5px;
}

.title span:nth-child(3) {
    font-size: 16px;
    color: #999;
    margin: 0 5px;
}

.title span:nth-child(4) {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

.title a {
    font-size: 18px;
    color: #333;
    text-decoration: none;
    margin-left: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.title a:hover {
    color: #1890ff;
    text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .article-list {
        font-size: 16px;
        padding: 3px 0;
    }

    .title {
        padding: 10px 8px;
        /* 保持水平布局，不改为垂直 */
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }

    .title span:first-child {
        font-size: 14px;
        margin-bottom: 0;
        min-width: 25px;
    }

    /* 手机端隐藏类型名称和子类型信息 */
    .title span:nth-child(2),
    .title span:nth-child(3) {
        display: none;
    }

    .title span:nth-child(4) {
        font-size: 13px;
        margin: 0 5px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .title a {
        font-size: 16px;
        margin-left: 5px;
        margin-top: 0;
        width: auto;
        flex: 1;
        /* 确保标题过长时显示省略号 */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
    .article-list {
        font-size: 14px;
        border-width: 1px;
    }

    .title {
        padding: 8px 6px;
    }

    .title span:first-child {
        font-size: 13px;
        min-width: 22px;
    }

    .title span:nth-child(4) {
        font-size: 12px;
        margin: 0 3px;
    }

    .title a {
        font-size: 14px;
        line-height: 1.3;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .title {
        padding: 6px 4px;
    }

    .title span:first-child {
        font-size: 12px;
        min-width: 20px;
    }

    .title span:nth-child(4) {
        font-size: 11px;
        margin: 0 2px;
    }

    .title a {
        font-size: 13px;
    }
}

/* 内容区域容器样式 - 与 header 保持一致 */
.container-content {
    max-width: 1200px; /* 与 header 容器相同的最大宽度 */
    margin: 0 auto; /* 居中显示 */
    padding: 0 15px; /* 与 header 相同的左右内边距 */
    width: 100%;
    box-sizing: border-box; /* 确保 padding 包含在宽度内 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container-content {
        padding: 0 10px; /* 移动端减少内边距 */
        margin: 0 auto;
    }
}