/* 新闻中心 · 列表 + 详情样式（由原静态页 article.html / article/show.html 内联样式抽取） */

/* ========== 列表页 ========== */

/* ===== 页头 ===== */
.news-hero { position:relative; padding:88px 0 72px; background:linear-gradient(135deg,#020617 0%,#0f1e4a 55%,#0f172a 100%); overflow:hidden; }
.news-hero::before { content:''; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,.05) 1px,transparent 1px); background-size:28px 28px; pointer-events:none; }
.news-hero::after { content:''; position:absolute; top:-110px; right:-90px; width:460px; height:460px; background:radial-gradient(circle,rgba(56,189,248,.28),transparent 70%); pointer-events:none; }
.news-hero__inner { position:relative; z-index:2; }
.news-hero__eyebrow { margin:0 0 16px; font-size:11px; letter-spacing:4px; font-weight:600; color:#38bdf8; text-transform:uppercase; }
.news-hero__title { margin:0 0 16px; font-size:clamp(30px,4vw,46px); font-weight:800; color:#fff; letter-spacing:-.5px; }
.news-hero__desc { margin:0; max-width:620px; font-size:15px; line-height:1.8; color:rgba(255,255,255,.7); }

/* ===== 页面布局 ===== */
.news-page { padding:24px 0 88px; background:linear-gradient(180deg,#f6f8fc 0%,#fff 100%); }
.news-crumbbar { margin-bottom:18px; }
.news-crumb { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:12.5px; color:#94a3b8; }
.news-crumb a { color:#64748b; }
.news-crumb a:hover { color:#2563eb; }
.news-crumb span { color:#cbd5e1; }
.news-layout { display:grid; grid-template-columns:180px minmax(0,1fr) 300px; gap:24px; align-items:start; }
.news-side { display:flex; flex-direction:column; gap:20px; position:sticky; top:96px; }
.news-side--right { position:static; }

/* 侧栏面板 */
.news-panel { background:#fff; border:1px solid #e8edf5; border-radius:16px; padding:20px; box-shadow:0 4px 20px rgba(15,23,42,.04); }
.news-panel__head { margin-bottom:14px; }
.news-panel__title { margin:0; font-size:16px; font-weight:700; color:#0f172a; display:flex; align-items:center; gap:8px; }
.news-panel__title::before { content:''; width:4px; height:16px; border-radius:2px; background:linear-gradient(180deg,#38bdf8,#2563eb); }

/* 搜索 */
.news-search { position:relative; display:flex; margin-bottom:16px; }
.news-search input { flex:1; min-width:0; height:38px; padding:0 40px 0 12px; border:1px solid #e2e8f0; border-radius:10px; font-size:13px; color:#0f172a; background:#f8fafc; outline:none; transition:all .2s ease; }
.news-search input:focus { border-color:#93c5fd; background:#fff; box-shadow:0 0 0 3px rgba(59,130,246,.12); }
.news-search button { position:absolute; right:4px; top:4px; width:30px; height:30px; border:none; border-radius:8px; background:transparent; color:#64748b; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.news-search button:hover { background:#eff6ff; color:#2563eb; }
.news-search button svg { width:16px; height:16px; }
.news-panel--search .news-search { margin-bottom:0; }

/* 分类 */
.news-cate { display:flex; flex-direction:column; gap:4px; }
.news-cate__item { display:flex; align-items:center; justify-content:flex-start; padding:9px 12px; border-radius:9px; font-size:13.5px; color:#475569; transition:all .2s ease; }
.news-cate__item span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.news-cate__item:hover { background:#f5f8ff; color:#2563eb; }
.news-cate__item.is-active { background:linear-gradient(135deg,#eff6ff,#e0edff); color:#1d4ed8; font-weight:600; }

/* 侧栏 CTA */
.news-side__cta { background:linear-gradient(135deg,#0f1e4a 0%,#1e3a8a 100%); border-radius:16px; padding:22px 20px; color:#fff; position:relative; overflow:hidden; }
.news-side__cta::after { content:''; position:absolute; right:-50px; bottom:-60px; width:160px; height:160px; background:radial-gradient(circle,rgba(56,189,248,.35),transparent 70%); }
.news-side__cta p { margin:0 0 6px; font-size:15px; font-weight:700; position:relative; z-index:1; }
.news-side__cta span { display:block; margin-bottom:16px; font-size:12.5px; color:rgba(255,255,255,.65); position:relative; z-index:1; }
.news-side__cta a { position:relative; z-index:1; display:inline-flex; align-items:center; padding:9px 16px; border-radius:8px; background:#fff; color:#1d4ed8; font-size:13px; font-weight:600; }
.news-side__cta a:hover { background:#eff6ff; color:#1d4ed8; }

/* ===== 列表 ===== */
.news-list { min-width:0; }
.news-list__bar { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:18px; padding:0 4px; }
.news-list__bar h2 { margin:0; font-size:24px; font-weight:800; color:#0f172a; letter-spacing:-.3px; }
.news-list__count { font-size:13px; color:#94a3b8; }
.news-items { display:flex; flex-direction:column; gap:14px; }

.news-item { display:flex; gap:20px; align-items:center; background:#fff; border:1px solid #e8edf5; border-radius:14px; padding:22px 24px; transition:all .28s ease; position:relative; overflow:hidden; }
.news-item::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:linear-gradient(180deg,#38bdf8,#6366f1); transform:scaleY(0); transform-origin:top; transition:transform .28s ease; }
.news-item:hover { border-color:#c7dcff; box-shadow:0 14px 36px rgba(15,23,42,.08); transform:translateY(-2px); }
.news-item:hover::before { transform:scaleY(1); }
.news-item__main { flex:1; min-width:0; }
.news-item__meta { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:8px; font-size:12px; color:#94a3b8; }
.news-item__views { display:inline-flex; align-items:center; gap:5px; }
.news-item__views svg { width:14px; height:14px; }
.news-item__cate { padding:2px 10px; border-radius:6px; background:#eff6ff; color:#2563eb; font-weight:600; }
.news-item__title { margin:0 0 8px; font-size:17.5px; line-height:1.5; font-weight:700; color:#0f172a; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.news-item:hover .news-item__title { color:#1d4ed8; }
.news-item__desc { margin:0 0 10px; font-size:13.5px; line-height:1.75; color:#64748b; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.news-item__more { font-size:12.5px; color:#2563eb; font-weight:600; }
.news-item__thumb { flex-shrink:0; width:172px; height:116px; border-radius:10px; overflow:hidden; background:#f1f5f9; }
.news-item__thumb img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.news-item:hover .news-item__thumb img { transform:scale(1.06); }

/* 空状态 */
.news-empty { background:#fff; border:1px dashed #dbe4f0; border-radius:16px; padding:64px 24px; text-align:center; color:#94a3b8; }
.news-empty svg { width:46px; height:46px; margin:0 auto 14px; color:#cbd5e1; }
.news-empty p { margin:0 0 14px; font-size:14px; }
.news-empty a { font-size:13px; color:#2563eb; font-weight:600; }

/* 分页 */
.news-pager { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:30px; }
.news-pager__num, .news-pager__nav { min-width:38px; height:38px; padding:0 12px; display:inline-flex; align-items:center; justify-content:center; border-radius:10px; border:1px solid #e2e8f0; background:#fff; font-size:13px; color:#475569; transition:all .2s ease; }
.news-pager__num:hover, .news-pager__nav:hover { border-color:#93c5fd; color:#2563eb; }
.news-pager__num.is-active { background:linear-gradient(135deg,#3b82f6,#1d4ed8); border-color:transparent; color:#fff; font-weight:600; }

/* ===== 右侧列表 ===== */
.news-latest { display:flex; flex-direction:column; gap:11px; }
.news-latest__item { display:flex; align-items:baseline; gap:10px; font-size:13px; color:#475569; line-height:1.5; }
.news-latest__item:hover { color:#2563eb; }
.news-latest__date { flex-shrink:0; font-size:11.5px; color:#94a3b8; font-variant-numeric:tabular-nums; }
.news-latest__title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

.news-rank { display:flex; flex-direction:column; gap:12px; }
.news-rank__item { display:flex; align-items:flex-start; gap:10px; font-size:13px; color:#475569; line-height:1.5; }
.news-rank__item:hover { color:#2563eb; }
.news-rank__idx { flex-shrink:0; width:20px; height:20px; border-radius:6px; background:#f1f5f9; color:#94a3b8; font-size:11.5px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.news-rank__idx.is-top { background:linear-gradient(135deg,#3b82f6,#1d4ed8); color:#fff; }
.news-rank__txt { flex:1; min-width:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.news-rank__views { flex-shrink:0; font-size:11px; color:#cbd5e1; }

/* ===== 响应式 ===== */
@media (max-width:1200px){
  .news-layout { grid-template-columns:180px minmax(0,1fr); }
  .news-side--right { display:flex; flex-direction:row; grid-column:1/-1; order:-1; }
  .news-side--right .news-panel:not(.news-panel--search) { display:none; }
  .news-side--right .news-panel--search { flex:1; }
}
@media (max-width:1024px){
  .news-hero { padding:64px 0 56px; }
  .news-layout { grid-template-columns:1fr; }
  .news-side { position:static; }
  .news-cate { flex-direction:row; flex-wrap:wrap; gap:8px; }
  .news-cate__item { flex:0 0 auto; background:#f8fafc; }
}
@media (max-width:640px){
  .news-page { padding:28px 0 64px; }
  .news-panel { padding:16px; border-radius:12px; }
  .news-item { padding:18px; gap:14px; }
  .news-item__thumb { width:104px; height:78px; }
  .news-item__title { font-size:15.5px; }
  .news-item__desc { display:none; }
  .news-list__bar h2 { font-size:20px; }
  .news-side__cta { display:none; }
}


/* ========== 详情页 ========== */

/* ===== 页头 ===== */
.news-hero { position:relative; padding:88px 0 72px; background:linear-gradient(135deg,#020617 0%,#0f1e4a 55%,#0f172a 100%); overflow:hidden; }
.news-hero::before { content:''; position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,.05) 1px,transparent 1px); background-size:28px 28px; pointer-events:none; }
.news-hero::after { content:''; position:absolute; top:-110px; right:-90px; width:460px; height:460px; background:radial-gradient(circle,rgba(56,189,248,.28),transparent 70%); pointer-events:none; }
.news-hero__inner { position:relative; z-index:2; }
.news-hero__eyebrow { margin:0 0 14px; font-size:11px; letter-spacing:4px; font-weight:600; color:#38bdf8; text-transform:uppercase; }
.news-hero--article { padding:38px 0 42px; }
.news-hero--article::after { top:auto; bottom:-160px; right:auto; left:-120px; background:radial-gradient(circle,rgba(99,102,241,.26),transparent 70%); }
.news-hero__slogan { margin:0; max-width:980px; font-size:clamp(15px,1.5vw,19px); line-height:1.75; color:rgba(255,255,255,.78); }
.art-crumbbar { margin-bottom:18px; }
.art-crumb { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:12.5px; color:#94a3b8; }
.art-crumb a { color:#64748b; }
.art-crumb a:hover { color:#2563eb; }
.art-crumb span { color:#cbd5e1; }


/* ===== 布局 ===== */
.news-page { padding:24px 0 80px; background:linear-gradient(180deg,#f6f8fc 0%,#fff 100%); }
.art-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:28px; align-items:start; }
.art-main { display:flex; flex-direction:column; gap:24px; min-width:0; }

/* ===== 正文卡片 ===== */
.art-card { background:#fff; border:1px solid #e8edf5; border-radius:16px; padding:36px 40px 28px; box-shadow:0 4px 20px rgba(15,23,42,.04); min-width:0; }
.art-meta { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:14px; padding-bottom:20px; margin-bottom:24px; border-bottom:1px solid #f1f5f9; font-size:12.5px; color:#94a3b8; }
.art-meta__cate { padding:3px 12px; border-radius:6px; background:#eff6ff; color:#2563eb; font-weight:600; }
.art-meta__views { display:inline-flex; align-items:center; gap:5px; }
.art-meta__views svg { width:14px; height:14px; }
.art-title { margin:0 0 18px; font-size:clamp(26px,3vw,34px); line-height:1.45; font-weight:800; color:#0f172a; letter-spacing:-.4px; text-align:center; }
.art-cover { margin:0 0 28px; }
.art-cover img { display:block; width:100%; height:auto; border-radius:12px; }

/* 富文本正文（后台 TinyMCE 录入内容）：全站唯一一份，勿再追加重复规则 */
.art-content { font-size:15.5px; line-height:1.95; color:#334155; word-break:break-word; }
.art-content > p:first-child { font-size:16px; line-height:1.95; color:#1e293b; }
.art-content p { margin:0 0 18px; text-indent:2em; }
.art-content img { display:block; max-width:100%; height:auto; border-radius:10px; margin:12px auto; }
.art-content h2, .art-content h3, .art-content h4, .art-content h5 { margin:28px 0 14px; color:#0f172a; line-height:1.5; }
.art-content h2 { font-size:20px; padding-left:12px; border-left:3px solid #3b82f6; }
.art-content h3 { font-size:18px; } .art-content h4 { font-size:16px; } .art-content h5 { font-size:15px; }
.art-content a { color:#2563eb; text-decoration:underline; }
.art-content ul { margin:0 0 18px; padding-left:22px; list-style:disc; }
.art-content ol { margin:0 0 18px; padding-left:22px; list-style:decimal; }
.art-content li { margin:4px 0; }
.art-content table { width:100%; border-collapse:collapse; margin:0 0 18px; font-size:14px; }
.art-content td, .art-content th { border:1px solid #e2e8f0; padding:8px 12px; text-align:left; }
.art-content th { background:#f1f5f9; font-weight:700; }
.art-content blockquote { margin:0 0 18px; padding:12px 18px; background:#f8fafc; border-left:3px solid #93c5fd; color:#475569; }
.art-content pre { margin:0 0 18px; padding:12px 14px; background:#f1f5f9; border-radius:8px; overflow:auto; }
.art-content code { padding:2px 6px; background:#f1f5f9; border-radius:4px; font-size:.92em; }
.art-content iframe, .art-content video { display:block; max-width:100%; margin:12px auto; border:0; border-radius:8px; }
.art-content hr { margin:1.6em 0; border:0; border-top:1px solid #e2e8f0; }

.art-author { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-top:30px; padding:20px 22px; background:#f8fafc; border:1px solid #eef2f7; border-radius:14px; }
.art-author__avatar { flex-shrink:0; width:48px; height:48px; border-radius:12px; background:linear-gradient(135deg,#0f1e4a,#1e3a8a); color:#fff; font-size:13px; font-weight:700; letter-spacing:1px; display:flex; align-items:center; justify-content:center; }
.art-author__body { flex:1; min-width:180px; }
.art-author__body h3 { margin:0 0 5px; font-size:14.5px; font-weight:700; color:#0f172a; }
.art-author__body p { margin:0; font-size:12.5px; line-height:1.7; color:#64748b; }
.art-author__cta { flex-shrink:0; padding:9px 16px; border-radius:9px; background:#eff6ff; color:#2563eb; font-size:13px; font-weight:600; transition:all .2s ease; }
.art-author__cta:hover { background:#2563eb; color:#fff; }

.art-share { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:24px; padding-top:20px; border-top:1px solid #f1f5f9; }
.art-share__label { font-size:13px; color:#94a3b8; margin-right:2px; }
.art-share__btn { padding:7px 14px; border-radius:8px; border:1px solid #e2e8f0; background:#fff; color:#475569; font-size:12.5px; font-weight:600; cursor:pointer; transition:all .2s ease; }
.art-share__btn:hover { border-color:#bfdbfe; background:#eff6ff; color:#2563eb; }
.art-share__btn--primary { border-color:#2563eb; background:#2563eb; color:#fff; }
.art-share__btn--primary:hover { background:#1d4ed8; border-color:#1d4ed8; color:#fff; }

.art-tags { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:28px; padding-top:22px; border-top:1px solid #f1f5f9; }
.art-tags__label { font-size:13px; color:#94a3b8; }
.art-tags__item { padding:4px 12px; border-radius:20px; background:#f1f5f9; font-size:12.5px; color:#475569; }

.art-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:24px; }
.art-nav__item { display:flex; flex-direction:column; gap:6px; padding:14px 18px; border-radius:12px; background:#f8fafc; border:1px solid #eef2f7; transition:all .2s ease; }
.art-nav__item:hover { background:#eff6ff; border-color:#bfdbfe; }
.art-nav__label { font-size:12px; color:#94a3b8; }
.art-nav__title { font-size:13.5px; color:#334155; font-weight:600; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.art-nav__item.is-disabled { color:#cbd5e1; pointer-events:none; }
.art-nav__item--next { text-align:right; }

/* ===== 右侧栏 ===== */
.art-side { display:flex; flex-direction:column; gap:20px; }
.art-panel { background:#fff; border:1px solid #e8edf5; border-radius:16px; padding:20px; box-shadow:0 4px 20px rgba(15,23,42,.04); }
.art-panel__head { margin-bottom:14px; }
.art-panel__head h2 { margin:0; font-size:16px; font-weight:700; color:#0f172a; display:flex; align-items:center; gap:8px; }
.art-panel__head h2::before { content:''; width:4px; height:16px; border-radius:2px; background:linear-gradient(180deg,#38bdf8,#2563eb); }

.art-cate { display:flex; flex-direction:column; gap:4px; }
.art-cate__item { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 12px; border-radius:9px; font-size:13.5px; color:#475569; }
.art-cate__item:hover { background:#f5f8ff; color:#2563eb; }
.art-cate__item.is-active { background:linear-gradient(135deg,#eff6ff,#e0edff); color:#1d4ed8; font-weight:600; }
.art-cate__item em { font-style:normal; font-size:11.5px; color:#94a3b8; background:#f1f5f9; border-radius:20px; padding:1px 8px; }
.art-cate__item.is-active em { background:#dbeafe; color:#1d4ed8; }

.art-latest, .art-rank { display:flex; flex-direction:column; gap:11px; }
.art-latest__item, .art-rank__item { display:flex; align-items:baseline; gap:10px; font-size:13px; line-height:1.5; color:#475569; }
.art-latest__item:hover, .art-rank__item:hover { color:#2563eb; }
.art-latest__date { flex-shrink:0; font-size:11.5px; color:#94a3b8; font-variant-numeric:tabular-nums; }
.art-latest__title, .art-rank__txt { flex:1; min-width:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.art-rank__idx { flex-shrink:0; width:20px; height:20px; border-radius:6px; background:#f1f5f9; color:#94a3b8; font-size:11.5px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.art-rank__idx.is-top { background:linear-gradient(135deg,#3b82f6,#1d4ed8); color:#fff; }
.art-rank__views { flex-shrink:0; font-size:11px; color:#cbd5e1; }

.art-side__cta { background:linear-gradient(135deg,#0f1e4a 0%,#1e3a8a 100%); border-radius:16px; padding:22px 20px; color:#fff; position:relative; overflow:hidden; }
.art-side__cta::after { content:''; position:absolute; right:-50px; bottom:-60px; width:160px; height:160px; background:radial-gradient(circle,rgba(56,189,248,.35),transparent 70%); }
.art-side__cta p { margin:0 0 14px; font-size:15px; font-weight:700; position:relative; z-index:1; }
.art-side__cta a { position:relative; z-index:1; display:inline-flex; padding:9px 16px; border-radius:8px; background:#fff; color:#1d4ed8; font-size:13px; font-weight:600; }
.art-side__cta a:hover { background:#eff6ff; }

/* ===== 相关阅读 ===== */
.art-related { background:#fff; border:1px solid #e8edf5; border-radius:16px; padding:26px 30px 28px; box-shadow:0 4px 20px rgba(15,23,42,.04); }
.art-related__head { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.art-related__head h2 { margin:0; font-size:18px; font-weight:800; color:#0f172a; display:flex; align-items:center; gap:8px; }
.art-related__head h2::before { content:''; width:4px; height:16px; border-radius:2px; background:linear-gradient(180deg,#38bdf8,#2563eb); }
.art-related__head a { font-size:12.5px; color:#2563eb; font-weight:600; }
.art-related__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.art-related__item { display:flex; align-items:center; gap:12px; padding:14px 16px; border:1px solid #eef2f7; border-radius:12px; background:linear-gradient(180deg,#fbfcff 0%,#f7f9fd 100%); transition:all .2s ease; }
.art-related__item:hover { border-color:#bfdbfe; background:#fff; box-shadow:0 8px 24px rgba(15,23,42,.08); transform:translateY(-2px); }
.art-related__icon { flex-shrink:0; width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:#e8f1ff; color:#2563eb; }
.art-related__grid > .art-related__item:nth-child(3n+2) .art-related__icon { background:#e6f7fb; color:#0891b2; }
.art-related__grid > .art-related__item:nth-child(3n+3) .art-related__icon { background:#eef0ff; color:#4f46e5; }
.art-related__icon svg { width:18px; height:18px; }
.art-related__body { min-width:0; display:flex; flex-direction:column; gap:5px; }
.art-related__title { font-size:13.5px; line-height:1.55; font-weight:600; color:#1e293b; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.art-related__item:hover .art-related__title { color:#1d4ed8; }
.art-related__date { font-size:11.5px; color:#94a3b8; }
.art-related__arrow { flex-shrink:0; margin-left:auto; font-size:14px; color:#cbd5e1; transition:all .2s ease; }
.art-related__item:hover .art-related__arrow { color:#2563eb; transform:translateX(2px); }

/* ===== 响应式 ===== */
@media (max-width:1024px){
  .art-layout { grid-template-columns:1fr; }
  .art-side { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .art-related__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px){
  .news-hero--article { padding:28px 0 32px; }
  .news-hero__slogan { font-size:13.5px; line-height:1.7; }
  .art-title { font-size:24px; margin-bottom:14px; }
  .news-page { padding:20px 0 56px; }
  .art-card { padding:20px 18px 16px; border-radius:12px; }
  .art-related { padding:20px 18px 22px; border-radius:12px; }
  .art-main { gap:18px; }
  .art-content { font-size:15px; }
  .art-nav { grid-template-columns:1fr; }
  .art-side { grid-template-columns:1fr; }
  .art-related__grid { grid-template-columns:1fr; }
  .art-side__cta { display:none; }
}
