/* ============================================================
   news 页面（帮助中心 - 资讯）样式
   仅供 build_news 生成的 news 页面引用，
   不改动 help/index.css，避免影响 help.html / detail.html 等其它页面
   ============================================================ */

/* ---------- 两栏布局：左侧资讯列表 + 右侧推荐阅读 ---------- */
.news-wrap {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding-bottom: 40px;
}

.news-content {
    flex: 1 1 auto;
    min-width: 0;
}

.news-aside {
    flex: 0 0 300px;
    width: 300px;
}

/* ---------- 资讯列表 ---------- */
.news-list {
    background: #fff;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0 20px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.news-item__thumb-link {
    flex: 0 0 180px;
    width: 180px;
    height: 120px;
    display: block;
}

.news-item__thumb {
    width: 180px;
    height: 120px;
    display: block;
    object-fit: cover;
    border-radius: 6px;
    background: #f2f4f5;
}

.news-item__thumb--empty {
    background: #f2f4f5;
    border-radius: 6px;
}

.news-item__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.news-item__title {
    margin: 0;
    font-size: 18px;
    line-height: 26px;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-item__title a {
    color: #333;
}

.news-item__title a:hover {
    color: #21a07d;
}

.news-item__desc {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 24px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-item__time {
    margin: 10px 0 0;
    font-size: 13px;
    color: #bbb;
}

.news-item__time::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: -2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bbbbbb' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- 推荐阅读 ---------- */
.news-recommend {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 20px 24px 10px;
}

.news-recommend__title {
    margin: 0 0 14px;
    padding-bottom: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.news-recommend__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-recommend__list li {
    border-bottom: 1px dashed #f0f0f0;
}

.news-recommend__list li:last-child {
    border-bottom: none;
}

.news-recommend__list a {
    display: block;
    padding: 9px 0;
    font-size: 14px;
    line-height: 22px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-recommend__list a:hover {
    color: #21a07d;
}

/* 两个「推荐阅读」卡片之间的间距 */
.news-aside .news-recommend + .news-recommend {
    margin-top: 20px;
}

/* ---------- 详情页正文与上一篇/下一篇 ---------- */
.news-detail {
    background: #fff;
}

.news-prevnext {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0 0;
    font-size: 15px;
}

.news-prevnext dd {
    flex: 1 1 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-prevnext__next {
    text-align: right;
}

.news-prevnext a {
    color: #21a07d;
}

.news-prevnext a:hover {
    color: #36d07c;
}

/* ---------- 分页 ---------- */
.news-pagination {
    margin: 30px 0 0;
    text-align: center;
    font-size: 0;
}

.news-pagination span,
.news-pagination a {
    display: inline-block;
    box-sizing: border-box;
    min-width: 36px;
    height: 36px;
    line-height: 34px;
    padding: 0 12px;
    margin: 0 4px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.news-pagination a:hover {
    border-color: #21a07d;
    color: #21a07d;
}

.news-pagination .page-num.is-active {
    background: #21a07d;
    border-color: #21a07d;
    color: #fff;
}

.news-pagination .is-disabled {
    color: #ccc;
    background: #fafafa;
    border-color: #f0f0f0;
}

/* ---------- 移动端 ---------- */
@media screen and (max-width: 800px) {
    .news-wrap {
        display: block;
        padding-bottom: 30px;
    }

    .news-aside {
        width: auto;
        margin-top: 24px;
    }

    .news-item {
        gap: 12px;
    }

    .news-item__thumb-link,
    .news-item__thumb {
        flex: 0 0 110px;
        width: 110px;
        height: 80px;
    }

    .news-item__title {
        font-size: 16px;
        line-height: 24px;
    }

    .news-prevnext {
        flex-direction: column;
        gap: 8px;
    }

    .news-prevnext__next {
        text-align: left;
    }
}
