/* ============================================================
 * news-list.css  -  通用新闻样式（首页/列表页/详情页/新闻列表/新闻详情共用）
 * ------------------------------------------------------------
 * 适用范围：
 *   - 首页          /index/index       （新闻三栏 + 图片新闻）
 *   - 列表页        /list/index        （网址列表 + 子栏目筛选 + 新闻）
 *   - 列表页(新闻)  /list/list_news    （新闻列表 + 5列卡片 + 标签云 + 推荐网址）
 *   - 详情页        /show/show         （网址详情 + 新闻三栏）
 *   - 详情页(新闻)  /show/show_news    （新闻 Hero + 内容 + 标签 + 分享 + 边栏）
 *
 * 命名空间（统一规范）：
 *   .home-ad-*       广告位（独立文件 home-ad.css 也含）
 *   .cat-hero-*      栏目页头部
 *   .site-hero-*     网址详情头部
 *   .news-hero-*     新闻详情头部
 *   .news-block-*    通用新闻块容器
 *   .news-list-*     最新资讯列表
 *   .news-hot-*      热门排行
 *   .news-meta-grid  元数据小卡片
 *   .news-cover-*    新闻封面图
 *   .news-content    新闻正文
 *   .news-tags       新闻标签
 *   .news-share      新闻分享
 *   .news-prev-next  新闻上下篇
 *   .news-grid       新闻卡片网格（5 列）
 *   .news-card-*     新闻卡片
 *   .news-tag-cloud  标签云
 *   .news-sidebar    详情页/列表页边栏
 *   .related-news    相关新闻
 *   .news-filter-bar 子分类筛选
 *   .toolbar-*       排序工具栏
 *   .pagination-*    分页
 *   .empty-state     空状态
 *   .news-row-equal  两栏等高
 * ============================================================ */

/* ============================================================
 * 第一节：通用容器与卡片
 * ============================================================ */

/* ---------- 通用新闻块容器（最新资讯 + 热门排行 + 图片新闻） ---------- */
.news-block {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.news-block .news-block-head {
    padding: .75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border-radius: 8px 8px 0 0;
    flex-shrink: 0;
}
.news-block .news-block-head.bg-warning-50 {
    background: #fef3c7;
    border-bottom-color: #fde68a;
}
.news-block .news-block-head.bg-danger-50 {
    background: #fee2e2;
    border-bottom-color: #fecaca;
}
.news-block .news-block-head h2 {
    font-size: .9375rem;
    font-weight: 600;
    margin: 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.news-block .news-block-head h2 i { margin-right: .5rem; }
.news-block .news-block-head h2 small {
    font-size: .75rem;
    color: #94a3b8;
    font-weight: 300;
    margin-left: .5rem;
}
.news-block .news-block-head .head-action {
    font-size: .8125rem;
    color: #94a3b8;
    text-decoration: none;
    flex-shrink: 0;
}
.news-block .news-block-head .head-action:hover {
    color: var(--theme-primary-500, #4f46e5);
    text-decoration: none;
}
.news-block .news-block-body {
    flex: 1;
    overflow: hidden;
}

/* ---------- 网址/新闻通用元数据小卡片（4 宫格） ---------- */
.news-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: .75rem;
    margin-bottom: 1.5rem;
}
.news-meta-grid .meta-cell {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: .875rem;
    text-align: center;
}
.news-meta-grid .meta-cell i {
    font-size: 1.125rem;
    color: var(--theme-primary-500, #4f46e5);
    display: block;
    margin-bottom: .375rem;
}
.news-meta-grid .meta-cell .meta-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}
.news-meta-grid .meta-cell .meta-label {
    font-size: .6875rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* ---------- 通用文章正文面板（详情页 / 新闻详情共用） ---------- */
.news-content-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.news-content-panel h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: .625rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
}
.news-content-panel h3 i { margin-right: .5rem; color: var(--theme-primary-500, #4f46e5); }
.news-content-panel .article-body {
    font-size: .9375rem;
    line-height: 1.85;
    color: #334155;
}
.news-content-panel .article-body p { margin-bottom: 1rem; }
.news-content-panel .article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: .5rem 0;
}
.news-content-panel .article-body h1,
.news-content-panel .article-body h2,
.news-content-panel .article-body h3 {
    margin: 1.25rem 0 .625rem;
    padding: 0;
    border: none;
    font-size: 1.0625rem;
}
.news-content-panel .article-body a {
    color: var(--theme-primary-500, #4f46e5);
    text-decoration: none;
}
.news-content-panel .article-body a:hover { text-decoration: underline; }
.news-content-panel .article-body .lead {
    font-size: 1.0625rem;
    color: #1e293b;
    font-weight: 500;
    padding: .75rem 1rem;
    background: var(--theme-primary-50, #eef2ff);
    border-left: 3px solid var(--theme-primary-500, #4f46e5);
    border-radius: 4px;
}

/* ---------- 元数据小卡片状态变体（GFW/直连 等） ---------- */
.news-meta-grid .meta-cell.meta-cell-warn {
    background: #fef3c7;
    border-color: #fbbf24;
}
.news-meta-grid .meta-cell.meta-cell-warn .meta-cell-icon {
    color: #d97706;
}
.news-meta-grid .meta-cell.meta-cell-warn .meta-value {
    font-size: .875rem;
    color: #92400e;
}
.news-meta-grid .meta-cell.meta-cell-success {
    background: #f0fdf4;
    border-color: #86efac;
}
.news-meta-grid .meta-cell.meta-cell-success .meta-cell-icon {
    color: #16a34a;
}
.news-meta-grid .meta-cell.meta-cell-success .meta-value {
    font-size: .875rem;
    color: #166534;
}
.news-meta-grid .meta-cell .meta-value.text-sm {
    font-size: .875rem;
}

/* ---------- 详情页 GFW 徽章（标题旁） ---------- */
.site-hero .site-hero-title .badge-gfw {
    font-size: .625rem;
    padding: .25rem .5rem;
    font-weight: 500;
    background: var(--theme-warning, #fbbf24);
    color: #fff;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    vertical-align: middle;
}

/* ---------- 详情页分隔区工具类 ---------- */
.section-gap { margin-top: 1.5rem; }
.section-gap-lg { margin-top: 2rem; }

/* ============================================================
 * 第二节：列表 + 排行
 * ============================================================ */

/* ---------- 最新资讯（list-group 行式布局） ---------- */
.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.news-list .news-list-item {
    display: flex;
    align-items: center;
    padding: .625rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color .15s;
    text-decoration: none;
    color: inherit;
    gap: .5rem;
}
.news-list .news-list-item:last-child { border-bottom: 0; }
.news-list .news-list-item:hover {
    background-color: var(--theme-primary-50, #eef2ff);
    text-decoration: none;
    color: var(--theme-primary-700, #4338ca);
}
.news-list .news-list-item .news-cat-tag {
    flex-shrink: 0;
    font-size: .6875rem;
    padding: .15em .5em;
    font-weight: 500;
    border-radius: 3px;
    background: var(--theme-primary-500, #4f46e5);
    color: #fff;
}
.news-list .news-list-item .news-title {
    flex: 1;
    min-width: 0;
    font-size: .875rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-list .news-list-item:hover .news-title {
    color: var(--theme-primary-700, #4338ca);
}
.news-list .news-list-item .news-date {
    flex-shrink: 0;
    font-size: .75rem;
    color: #94a3b8;
    min-width: 32px;
    text-align: right;
}
.news-list .news-list-item .news-badge-new {
    flex-shrink: 0;
    font-size: .625rem;
    padding: .15em .4em;
    background: #ef4444;
    color: #fff;
    border-radius: 3px;
    font-weight: 700;
    line-height: 1.2;
}

/* ---------- 热门排行（编号列表） ---------- */
.news-hot {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: hot-rank;
}
.news-hot .news-hot-item {
    display: flex;
    align-items: center;
    padding: .625rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color .15s;
    text-decoration: none;
    color: inherit;
    counter-increment: hot-rank;
    position: relative;
}
.news-hot .news-hot-item:last-child { border-bottom: 0; }
.news-hot .news-hot-item:hover {
    background-color: #fef3c7;
    text-decoration: none;
    color: #92400e;
}
.news-hot .news-hot-item::before {
    content: counter(hot-rank);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    font-weight: 700;
    font-size: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: .75rem;
}
.news-hot .news-hot-item:nth-child(1)::before {
    background: #fef3c7;
    color: #d97706;
}
.news-hot .news-hot-item:nth-child(2)::before {
    background: #e0e7ff;
    color: #4f46e5;
}
.news-hot .news-hot-item:nth-child(3)::before {
    background: #fce7f3;
    color: #db2777;
}
.news-hot .news-hot-item .news-title {
    flex: 1;
    min-width: 0;
    font-size: .875rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: .75rem;
}
.news-hot .news-hot-item:hover .news-title {
    color: #92400e;
}
.news-hot .news-hot-item .news-views {
    flex-shrink: 0;
    font-size: .75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    min-width: 38px;
    justify-content: flex-end;
}
.news-hot .news-hot-item .news-views i {
    margin-right: 3px;
    font-size: .6875rem;
}

/* ---------- 空状态 ---------- */
.news-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: .875rem;
}
.news-empty i {
    font-size: 1.75rem;
    margin-right: .375rem;
    opacity: .5;
}

/* ============================================================
 * 第三节：栏目头部 / 面包屑 / 排序工具栏 / 分页
 * ============================================================ */

/* ---------- 栏目页面头部（栏目首页 + 列表页共用） ---------- */
.cat-hero {
    background: linear-gradient(135deg, var(--theme-primary-50, #eef2ff) 0%, #fff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}
.cat-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: .5rem;
    font-size: .8125rem;
}
.cat-hero .breadcrumb-item + .breadcrumb-item::before { color: #94a3b8; }
.cat-hero .breadcrumb-item a { color: #64748b; text-decoration: none; }
.cat-hero .breadcrumb-item a:hover { color: var(--theme-primary-500, #4f46e5); }
.cat-hero .breadcrumb-item.active { color: var(--theme-primary-700, #4338ca); font-weight: 500; }
.cat-hero h1 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--theme-primary-900, #312e81);
    margin-bottom: .125rem;
    display: flex;
    align-items: center;
}
.cat-hero h1 i { margin-right: .5rem; }
.cat-hero .cat-desc {
    font-size: .8125rem;
    color: #64748b;
    margin: .375rem 0 0;
}

/* ---------- 排序工具栏（推荐 / 最热 / 最新） ---------- */
.toolbar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: .625rem 1rem;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}
.toolbar-left { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: .25rem; }
.toolbar .toolbar-label {
    font-size: .8125rem;
    color: #64748b;
    margin-right: .25rem;
}
.sort-btn {
    padding: .2rem .625rem;
    border-radius: 4px;
    font-size: .75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
}
.sort-btn:hover {
    color: var(--theme-primary-500, #4f46e5);
    border-color: var(--theme-primary-300, #a5b4fc);
    text-decoration: none;
}
.sort-btn.active {
    background: var(--theme-primary-500, #4f46e5);
    color: #fff;
    border-color: var(--theme-primary-500, #4f46e5);
}
.sort-btn i { margin-right: .25rem; }

/* ---------- 新闻子分类筛选条（按 categoryid 切换） ---------- */
.news-filter-bar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: .625rem .875rem;
    margin-bottom: .875rem;
}
.news-filter-bar .filter-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--theme-primary-900, #312e81);
    margin-right: .5rem;
    display: inline-flex;
    align-items: center;
}
.news-filter-bar .filter-label i { margin-right: .25rem; }
.news-filter-bar .filter-tag {
    display: inline-block;
    padding: .2rem .625rem;
    margin: .15rem .15rem .15rem 0;
    font-size: .75rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    text-decoration: none;
    transition: all .15s;
}
.news-filter-bar .filter-tag:hover {
    color: var(--theme-primary-500, #4f46e5);
    border-color: var(--theme-primary-300, #a5b4fc);
    background: var(--theme-primary-50, #eef2ff);
    text-decoration: none;
}
.news-filter-bar .filter-tag.active {
    background: var(--theme-primary-500, #4f46e5);
    color: #fff;
    border-color: var(--theme-primary-500, #4f46e5);
}
.news-filter-bar .filter-tag .count {
    opacity: .65;
    font-size: .75rem;
    margin-left: .25rem;
}

/* ---------- 分页 ---------- */
.pagination-bar {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}
.pagination {
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
}
.page-link {
    color: var(--theme-primary-500, #4f46e5);
    border-color: #e2e8f0;
    padding: .5rem .75rem;
}
.page-link:hover {
    color: var(--theme-primary-700, #4338ca);
    background-color: var(--theme-primary-50, #eef2ff);
    border-color: var(--theme-primary-300, #a5b4fc);
}
.page-item.active .page-link {
    background-color: var(--theme-primary-500, #4f46e5);
    border-color: var(--theme-primary-500, #4f46e5);
    color: #fff;
}
.page-item.disabled .page-link {
    color: #94a3b8;
    background-color: #f8fafc;
}

/* ---------- 通用空状态（复用现有结构） ---------- */
.empty-state {
    padding: 4rem 1rem;
    text-align: center;
    color: #94a3b8;
}
.empty-state i { font-size: 4rem; margin-bottom: 1rem; display: block; opacity: .5; }
.empty-state h4 { color: #64748b; font-weight: 500; }

/* ---------- 两栏等高布局 ---------- */
.news-row-equal {
    display: flex;
    flex-wrap: wrap;
}
.news-row-equal > [class*="col-"] {
    display: flex;
}
.news-row-equal .news-block {
    width: 100%;
}

/* ============================================================
 * 第四节：网址详情专属（site-hero）
 * ============================================================ */

/* ---------- 网址详情头部（与列表页 cat-hero 风格不同：大头像 + 操作按钮） ---------- */
.site-hero {
    background: linear-gradient(135deg, var(--theme-primary-50, #eef2ff) 0%, #fff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.site-hero .site-hero-favicon {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, #f1f5f9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
}
.site-hero .site-hero-favicon .site-favicon-inner {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-hero .site-hero-favicon .site-favicon-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    position: relative;
    z-index: 2;
    background: transparent;
}
.site-hero .site-hero-favicon .site-favicon-inner i {
    font-size: 2.5rem;
    color: #94a3b8;
    position: relative;
    z-index: 2;
}
.site-hero .site-hero-favicon .site-favicon-inner .site-favicon-default {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #f1f5f9;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0%25' stop-color='%23e0e7ff'/><stop offset='100%25' stop-color='%23c7d2fe'/></linearGradient></defs><rect width='64' height='64' rx='12' fill='url(%23g)'/><circle cx='32' cy='32' r='14' fill='none' stroke='%234f46e5' stroke-width='2'/><ellipse cx='32' cy='32' rx='6' ry='14' fill='none' stroke='%234f46e5' stroke-width='1.5'/><line x1='18' y1='32' x2='46' y2='32' stroke='%234f46e5' stroke-width='1.5'/></svg>");
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
}
.site-hero .site-hero-favicon .site-gfw-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 32px;
    height: 22px;
    padding: 0 6px;
    background: linear-gradient(135deg, #f87171, #dc2626);
    color: #fff;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .6875rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .3px;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(220, 38, 38, .4);
    border: 2px solid #fff;
    cursor: help;
}
.site-hero .site-hero-favicon .site-gfw-badge i {
    font-size: .75rem;
    margin-right: 3px;
    line-height: 1;
}
.site-hero .site-hero-info { flex: 1; min-width: 0; }
.site-hero .site-hero-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--theme-primary-900, #312e81);
    margin: 0 0 .5rem;
    word-break: break-all;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .625rem;
}
.site-hero .site-hero-desc {
    font-size: .9375rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.site-hero .site-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    margin-bottom: 1rem;
}
.site-hero .site-hero-tag {
    display: inline-block;
    padding: .25rem .625rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: .75rem;
    color: #475569;
    text-decoration: none;
    transition: all .15s;
}
.site-hero .site-hero-tag:hover {
    background: var(--theme-primary-500, #4f46e5);
    color: #fff;
    border-color: var(--theme-primary-500, #4f46e5);
    text-decoration: none;
}
.site-hero .site-hero-tag i { margin-right: 2px; opacity: .7; }
.site-hero .site-hero-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.site-hero .site-hero-actions .btn {
    border-radius: 6px;
    font-weight: 500;
    padding: .5rem 1rem;
    font-size: .875rem;
}
.site-hero .site-hero-url {
    margin-top: .875rem;
    padding: .5rem .75rem;
    background: rgba(255, 255, 255, .6);
    border-radius: 6px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: .8125rem;
    color: #64748b;
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.site-hero .site-hero-url i { color: var(--theme-primary-500, #4f46e5); }
.site-hero .site-hero-url a { color: inherit; text-decoration: none; flex: 1; }

/* ============================================================
 * 第五节：新闻详情专属（news-hero / news-cover / news-tags / news-share / news-prev-next）
 * ============================================================ */

/* ---------- 新闻详情头部（大标题 + 摘要 + 元数据 + 子栏目标签） ---------- */
.news-hero {
    background: linear-gradient(135deg, var(--theme-primary-50, #eef2ff) 0%, #fff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
}
.news-hero .news-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .625rem;
    font-size: .75rem;
    font-weight: 500;
    color: var(--theme-primary-700, #4338ca);
    background: rgba(79, 70, 229, .12);
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: .625rem;
    transition: all .15s;
}
.news-hero .news-cat-tag:hover {
    color: #fff;
    background: var(--theme-primary-500, #4f46e5);
    text-decoration: none;
}
.news-hero .news-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--theme-primary-900, #312e81);
    line-height: 1.4;
    margin: 0 0 .75rem;
    word-break: break-word;
}
.news-hero .news-summary {
    font-size: .9375rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: .875rem;
    padding: .625rem .875rem;
    background: rgba(255, 255, 255, .6);
    border-left: 3px solid var(--theme-primary-500, #4f46e5);
    border-radius: 4px;
}
.news-hero .news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: .8125rem;
    color: #64748b;
    padding-top: .625rem;
    border-top: 1px solid rgba(226, 232, 240, .5);
}
.news-hero .news-meta > span {
    display: inline-flex;
    align-items: center;
}
.news-hero .news-meta i { margin-right: .25rem; color: var(--theme-primary-500, #4f46e5); }
.news-hero .news-meta .news-meta-source {
    color: var(--theme-primary-700, #4338ca);
    font-weight: 500;
}

/* ---------- 新闻封面图 ---------- */
.news-cover {
    margin-bottom: 1.25rem;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    position: relative;
    aspect-ratio: 16 / 9;
}
.news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-cover .news-cover-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-primary-50, #eef2ff), var(--theme-primary-100, #e0e7ff));
    color: var(--theme-primary-400, #818cf8);
    font-size: 4rem;
}

/* ---------- 新闻标签区 ---------- */
.news-tags-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: .875rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}
.news-tags-section .tags-label {
    font-size: .875rem;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
}
.news-tags-section .tags-label i { margin-right: .375rem; color: var(--theme-primary-500, #4f46e5); }
.news-tag-chip {
    display: inline-block;
    padding: .2rem .75rem;
    background: var(--theme-primary-50, #eef2ff);
    color: var(--theme-primary-700, #4338ca);
    border-radius: 14px;
    font-size: .8125rem;
    text-decoration: none;
    transition: all .15s;
}
.news-tag-chip:hover {
    background: var(--theme-primary-500, #4f46e5);
    color: #fff;
    text-decoration: none;
}
.news-tag-chip i { margin-right: 2px; opacity: .7; }

/* ---------- 分享按钮条 ---------- */
.news-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: .625rem 1.25rem;
    margin-bottom: 1.25rem;
}
.news-share-bar .share-label {
    font-size: .875rem;
    color: #475569;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}
.news-share-bar .share-label i { margin-right: .375rem; color: var(--theme-primary-500, #4f46e5); }
.news-share-bar .share-buttons { display: flex; gap: .375rem; }
.news-share-bar .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .15s, transform .15s;
    font-size: .875rem;
}
.news-share-bar .share-btn:hover { opacity: .85; transform: translateY(-1px); color: #fff; text-decoration: none; }
.news-share-bar .share-btn.wechat { background: #07c160; }
.news-share-bar .share-btn.weibo { background: #e6162d; }
.news-share-bar .share-btn.qq { background: #12b7f5; }
.news-share-bar .share-btn.link { background: #64748b; }
.news-share-bar .share-btn i { margin: 0; }

/* ---------- 上下篇导航 ---------- */
.news-prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.news-prev-next .pn-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: .75rem 1rem;
    text-decoration: none;
    color: #475569;
    transition: all .15s;
    display: flex;
    flex-direction: column;
    min-height: 64px;
}
.news-prev-next .pn-card:hover {
    border-color: var(--theme-primary-300, #a5b4fc);
    background: var(--theme-primary-50, #eef2ff);
    color: var(--theme-primary-700, #4338ca);
    text-decoration: none;
}
.news-prev-next .pn-card .pn-label {
    font-size: .75rem;
    color: #94a3b8;
    margin-bottom: .25rem;
}
.news-prev-next .pn-card .pn-label i { margin-right: .25rem; }
.news-prev-next .pn-card .pn-title {
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-prev-next .pn-card.disabled {
    opacity: .5;
    pointer-events: none;
}

/* ============================================================
 * 第六节：新闻卡片网格（5 列 - 列表页主列表）
 * ============================================================ */

/* ---------- 5 列新闻卡片网格（响应式：大屏5列 / 中屏3列 / 小屏2列 / 移动1列） ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .625rem;
}
@media (max-width: 1399px) {
    .news-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1199px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479px) {
    .news-grid { grid-template-columns: 1fr; }
}

/* ---------- 新闻卡片（紧凑布局，类别从封面移到正文顶部） ---------- */
.news-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    transition: all .2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.news-card:hover {
    border-color: var(--theme-primary-300, #a5b4fc);
    box-shadow: 0 4px 14px rgba(79, 70, 229, .08);
    transform: translateY(-1px);
}
/* 【修复圆角一致】封面图继承卡片顶部圆角，避免与边框出现间隙 */
.news-card .news-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    overflow: hidden;
    display: block;
    text-decoration: none;
    border-radius: 5px 5px 0 0;
    /* 防止内部元素突破卡片圆角 */
    isolation: isolate;
}
.news-card .news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
    border-radius: 5px 5px 0 0;
}
.news-card:hover .news-cover img { transform: scale(1.04); }
.news-card .news-cover .news-cover-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-primary-50, #eef2ff), var(--theme-primary-100, #e0e7ff));
    color: var(--theme-primary-400, #818cf8);
    font-size: 2rem;
    border-radius: 5px 5px 0 0;
}
/* 【优化】类别角标从封面移至正文顶部，避免遮挡封面图 */
.news-card .news-body {
    padding: .625rem .75rem .75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-card .news-card-cat {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    font-size: .625rem;
    font-weight: 500;
    color: var(--theme-primary-600, #4f46e5);
    background: var(--theme-primary-50, #eef2ff);
    padding: .1rem .5rem;
    border-radius: 3px;
    text-decoration: none;
    margin-bottom: .375rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
}
.news-card .news-card-cat:hover {
    background: var(--theme-primary-100, #e0e7ff);
    text-decoration: none;
}
.news-card .news-card-cat i {
    margin-right: 2px;
    font-size: .625rem;
}
.news-card .news-title {
    font-size: .875rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    margin-bottom: .375rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-card .news-title a {
    color: inherit;
    text-decoration: none;
}
.news-card .news-title a:hover { color: var(--theme-primary-600, #4f46e5); }
.news-card .news-desc {
    font-size: .75rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-card .news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: .375rem;
    font-size: .6875rem;
    color: #94a3b8;
}
.news-card .news-meta .news-meta-left {
    display: flex;
    align-items: center;
    gap: .5rem;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}
.news-card .news-meta .news-meta-left > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-card .news-meta i { margin-right: 2px; font-size: .6875rem; }
.news-card .news-meta .news-tag {
    display: inline-block;
    padding: 1px 5px;
    font-size: .625rem;
    background: var(--theme-primary-50, #eef2ff);
    color: var(--theme-primary-700, #4338ca);
    border-radius: 3px;
    white-space: nowrap;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-card .news-meta .news-tag:hover {
    background: var(--theme-primary-100, #e0e7ff);
    text-decoration: none;
}
.news-card .news-meta .news-meta-readmore {
    flex-shrink: 0;
    font-size: .6875rem;
    color: #94a3b8;
    text-decoration: none;
    white-space: nowrap;
    margin-left: .375rem;
}
.news-card .news-meta .news-meta-readmore:hover {
    color: var(--theme-primary-500, #4f46e5);
    text-decoration: none;
}

/* ---------- 相关新闻网格（详情页底部） ---------- */
.related-news {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}
@media (max-width: 1199px) {
    .related-news { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .related-news { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479px) {
    .related-news { grid-template-columns: 1fr; }
}

/* ============================================================
 * 第七节：标签云（边栏用 + 列表页用）
 * ============================================================ */

.news-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
    padding: .25rem 0;
}
.news-tag-cloud .cloud-tag {
    display: inline-block;
    padding: .25rem .625rem;
    font-size: .75rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all .15s;
    line-height: 1.4;
}
.news-tag-cloud .cloud-tag:hover {
    color: #fff;
    background: var(--theme-primary-500, #4f46e5);
    border-color: var(--theme-primary-500, #4f46e5);
    text-decoration: none;
}
.news-tag-cloud .cloud-tag.is-active {
    color: #fff;
    background: var(--theme-primary-500, #4f46e5);
    border-color: var(--theme-primary-500, #4f46e5);
}
.news-tag-cloud .cloud-tag .count {
    margin-left: 3px;
    opacity: .65;
    font-size: .6875rem;
}
.news-tag-cloud .cloud-tag-lg {
    font-size: .9375rem;
    font-weight: 600;
    padding: .35rem .75rem;
}
.news-tag-cloud .cloud-tag-md {
    font-size: .8125rem;
}
.news-tag-cloud .cloud-tag-sm {
    font-size: .6875rem;
    padding: .15rem .5rem;
}

/* ============================================================
 * 第八节：详情页 / 列表页右侧边栏
 * ============================================================ */

.news-sidebar { display: flex; flex-direction: column; }
.news-sidebar > * + * { margin-top: 1rem; }
.news-sidebar .news-block { margin-bottom: 0; }

/* 边栏小标题 */
.news-sidebar .news-block-head h2 { font-size: .875rem; }
.news-sidebar .news-block-head h2 i { font-size: 1rem; }

/* 边栏内的网址推荐列表（用 site-grid 网格 + 与首页 site-card 完全一致结构） */
.news-sidebar .news-recommend-sites {
    padding: 1rem;
}
.news-sidebar .news-recommend-sites .site-grid {
    gap: .625rem;
}
/* 边栏内的 site-card 缩小尺寸但保留首页所有元素：favicon + title + desc + detail-icon + GFW */
.news-sidebar .news-recommend-sites .site-card {
    padding: .625rem .75rem;
    min-height: 48px;
}
.news-sidebar .news-recommend-sites .site-card .site-favicon {
    width: 30px;
    height: 30px;
    margin-right: .625rem;
}
.news-sidebar .news-recommend-sites .site-card .site-favicon i { font-size: .8125rem; }
.news-sidebar .news-recommend-sites .site-card .site-info {
    flex: 1;
    min-width: 0;
}
.news-sidebar .news-recommend-sites .site-card .site-info .site-title {
    font-size: .8125rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-sidebar .news-recommend-sites .site-card .site-info .site-desc {
    font-size: .6875rem;
    color: #94a3b8;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}
.news-sidebar .news-recommend-sites .site-card .site-detail-icon {
    width: 22px;
    height: 22px;
    font-size: .75rem;
    margin-left: .375rem;
}

/* 边栏内的热门新闻（小行式列表） */
.news-sidebar .news-block-body { padding: 0; }
.news-sidebar .news-list .news-list-item {
    padding: .5rem .875rem;
    font-size: .8125rem;
}
.news-sidebar .news-list .news-list-item .news-cat-tag {
    font-size: .625rem;
    padding: .1em .4em;
}

/* ============================================================
 * 第九节：响应式适配
 * ============================================================ */
@media (max-width: 991px) {
    .news-meta-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .news-list .news-list-item,
    .news-hot .news-hot-item {
        padding: .5rem .75rem;
    }
    .news-list .news-list-item .news-cat-tag,
    .news-hot .news-hot-item::before {
        width: 18px;
        height: 18px;
        font-size: .625rem;
        margin-right: .5rem;
    }
    .site-hero { flex-direction: column; text-align: center; padding: 1.25rem; }
    .site-hero .site-hero-title { justify-content: center; font-size: 1.5rem; }
    .site-hero .site-hero-actions { justify-content: center; }
    .site-hero .site-hero-tags { justify-content: center; }
    .news-hero { padding: 1.25rem; }
    .news-hero .news-title { font-size: 1.375rem; }
    .news-prev-next { grid-template-columns: 1fr; }
    .news-cover { aspect-ratio: 4 / 3; }
    .news-filter-bar { padding: .5rem .75rem; }
    .news-filter-bar .filter-tag { font-size: .6875rem; padding: .15rem .5rem; }
    .toolbar { padding: .5rem .75rem; }
    .sort-btn { font-size: .6875rem; padding: .15rem .5rem; }
    .cat-hero { padding: 1rem 1.25rem; }
    .cat-hero h1 { font-size: 1.125rem; }
}
@media (max-width: 479px) {
    .news-hero { padding: 1rem; }
    .news-hero .news-title { font-size: 1.125rem; }
    .news-meta-grid { grid-template-columns: repeat(2, 1fr); }
}
