/* ==========================================================================
   PC 图文资讯（新闻模块）样式 · news.css
   页面：#/news（列表） #/news/{id}（详情）
   视觉：白底 + 主题绿(#10b981)点缀，新闻门户式的头条大图 + 卡片网格 + 右侧榜单
   ========================================================================== */

.news-page { max-width: 1220px; margin: 0 auto; padding: 26px 18px 60px; }

/* ---------- 顶部与导航贴紧 ----------
   外层 main.page 有 22px 上内边距，本页再加 26px，合成 48px 的空档（栏目卡片条离导航太远）。
   这里抵消掉外层那 22px，只保留 9px 呼吸位；详情页同样处理，保持两个图文页顶部一致。 */
#page > .news-page { margin-top: -22px; padding-top: 9px; }
#page > .news-detail { margin-top: -22px; padding-top: 9px; }

/* ---------- 页头 ----------
   原「图文资讯」深色大块已按要求移除；列表页直接从筛选栏开始。 */

/* ---------- 筛选栏（栏目 chips + 排序） ---------- */
.news-bar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: 0 0 18px; padding: 12px 16px;
  background: #fff; border: 1px solid #e8eef4; border-radius: 14px;
}
.news-cols { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
.news-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 15px; border-radius: 999px; font-size: 13px;
  color: #475569; background: #f6f8fb; border: 1px solid #e6ecf3;
  text-decoration: none; cursor: pointer; transition: all .16s;
}
.news-chip:hover { color: #0f766e; border-color: #a7f3d0; background: #f0fdf9; }
.news-chip.on {
  color: #fff; font-weight: 700; border-color: transparent;
  background: linear-gradient(135deg, #10b981, #0f766e);
  box-shadow: 0 8px 16px -10px rgba(16, 185, 129, .9);
}
.news-chip .cnt { font-size: 11px; opacity: .75; }
.news-sort { display: flex; gap: 6px; }
.news-sort a {
  padding: 6px 14px; border-radius: 9px; font-size: 13px; color: #64748b;
  text-decoration: none; background: #f6f8fb; border: 1px solid #e6ecf3;
}
.news-sort a.on { color: #0f766e; background: #ecfdf5; border-color: #a7f3d0; font-weight: 700; }

/* ---------- 两栏布局 ---------- */
.news-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
@media (max-width: 1080px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- 头条大图 ---------- */
.news-featured {
  display: block; position: relative; overflow: hidden; border-radius: 18px;
  height: 360px; text-decoration: none; color: #fff;
  box-shadow: 0 20px 44px -34px rgba(15, 23, 42, .95);
}
.news-featured img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.news-featured:hover img { transform: scale(1.03); }
.news-featured .nf-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 110px; font-weight: 800; color: rgba(255, 255, 255, .9);
  background: linear-gradient(135deg, #0f766e, #0e7490);
}
.news-featured .nf-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3, 22, 18, .05) 30%, rgba(3, 22, 18, .86) 100%);
}
.news-featured .nf-body { position: absolute; left: 30px; right: 30px; bottom: 26px; }
.news-featured .nf-title {
  font-size: 27px; font-weight: 800; line-height: 1.38; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-featured .nf-meta { margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 13px; color: rgba(255, 255, 255, .82); }
.news-featured .nf-meta > * { flex: 0 0 auto; white-space: nowrap; }
.news-featured .nf-excerpt {
  margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, .78);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 卡片网格 ---------- */
.news-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
@media (max-width: 760px) { .news-cards { grid-template-columns: 1fr; } }
.news-card {
  display: flex; gap: 16px; padding: 14px; background: #fff;
  border: 1px solid #e9eff5; border-radius: 16px; text-decoration: none; color: inherit;
  transition: all .2s;
}
.news-card:hover { transform: translateY(-3px); border-color: #bbf7d0; box-shadow: 0 18px 34px -26px rgba(6, 95, 70, .8); }
.news-card .nc-thumb {
  flex: 0 0 156px; width: 156px; height: 108px; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f766e, #0e7490);
}
.news-card .nc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card .nc-ph { font-size: 40px; font-weight: 800; color: rgba(255, 255, 255, .92); }
.news-card .nc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.news-card .nc-title {
  font-size: 15.5px; font-weight: 700; line-height: 1.5; color: #0f172a;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .nc-excerpt {
  margin-top: 6px; font-size: 12.5px; line-height: 1.65; color: #8494a5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .nc-meta {
  margin-top: auto; padding-top: 10px;
  /* 拆成两行（徽标行 / 日期·阅读），每行都放得下；子项不收缩、不折行，避免被挤压错位 */
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  font-size: 12px; color: #9aa8b6;
}
.news-card .nc-meta .nc-mrow { display: flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; }
.news-card .nc-meta .nc-mrow > * { flex: 0 0 auto; white-space: nowrap; }
.news-card .nc-meta .nc-sep { color: #cbd5e1; }

/* 徽标 */
.news-tag {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 700; line-height: 1.6;
  padding: 1px 9px; border-radius: 6px; white-space: nowrap;
}
.news-tag.vip { color: #b45309; background: #fef3c7; }
.news-tag.free { color: #047857; background: #d1fae5; }
.news-tag.col { color: #0f766e; background: #ccfbf1; }

/* ---------- 右侧栏 ---------- */
.news-aside { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 18px; }
.news-panel { background: #fff; border: 1px solid #e9eff5; border-radius: 16px; padding: 18px 18px 12px; }
.news-panel h3 {
  margin: 0 0 12px; font-size: 15px; font-weight: 800; color: #0f172a;
  display: flex; align-items: center; gap: 8px;
}
.news-panel h3::before { content: ''; width: 4px; height: 15px; border-radius: 3px; background: linear-gradient(180deg, #10b981, #0ea5e9); }
.news-rank { list-style: none; margin: 0; padding: 0; }
.news-rank li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eef2f7; }
.news-rank li:last-child { border-bottom: none; }
.news-rank .rk-no {
  flex: 0 0 20px; text-align: center; font-size: 13px; font-weight: 800; color: #c3ccd6; line-height: 1.5;
}
.news-rank li:nth-child(-n+3) .rk-no { color: #ef4444; }
.news-rank a {
  flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.5; color: #334155; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-rank a:hover { color: #0f766e; }
.news-rank .rk-sub { display: block; margin-top: 4px; font-size: 11.5px; color: #a8b3c0; }
/* 推荐阅读榜单沿用 .news-rank（序号前 3 自动标红），.rec 仅作语义标记 */

/* ---------- 加载 / 空态 / 更多 ---------- */
.news-loading { padding: 70px 0; text-align: center; color: #9aa5b1; font-size: 14px; }
.news-empty { padding: 70px 0; text-align: center; color: #9aa5b1; font-size: 14px; }
.news-more { margin-top: 22px; text-align: center; }
.news-more button {
  padding: 10px 34px; border-radius: 999px; border: 1px solid #d7e3ec; background: #fff;
  color: #0f766e; font-size: 14px; font-weight: 600; cursor: pointer;
}
.news-more button:hover { background: #f0fdf9; border-color: #a7f3d0; }
.news-more span { font-size: 13px; color: #b6c0cb; }

/* ==========================================================================
   详情页
   ========================================================================== */
.news-detail { max-width: 1220px; margin: 0 auto; padding: 22px 18px 70px; }
.news-crumb { font-size: 13px; color: #94a3b8; margin-bottom: 14px; }
.news-crumb a { color: #64748b; text-decoration: none; }
.news-crumb a:hover { color: #0f766e; }
.news-crumb em { font-style: normal; margin: 0 7px; color: #cbd5e1; }

.news-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
@media (max-width: 1080px) { .news-detail-grid { grid-template-columns: 1fr; } }

.news-article { background: #fff; border: 1px solid #e9eff5; border-radius: 18px; overflow: hidden; }
.news-article-cover { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.news-article-in { padding: 34px 44px 40px; }
@media (max-width: 700px) { .news-article-in { padding: 24px 20px 30px; } }
.news-article h1 { margin: 0; font-size: 32px; line-height: 1.42; font-weight: 800; color: #0f172a; letter-spacing: .3px; }
.news-article-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 16px 0 22px; padding-bottom: 18px; border-bottom: 1px solid #eef2f7;
  font-size: 13px; color: #93a1af;
}
.news-article-meta > * { flex: 0 0 auto; white-space: nowrap; }
.news-article-intro {
  margin: 0 0 22px; padding: 16px 20px; font-size: 14.5px; line-height: 1.85; color: #475569;
  background: #f8fafc; border-left: 4px solid #10b981; border-radius: 8px;
}

/* 正文排版：阅读友好的行距与字号 */
.news-body { font-size: 16.5px; line-height: 2; color: #26313d; word-break: break-word; }
.news-body p { margin: 0 0 20px; }
.news-body h2 { margin: 34px 0 14px; font-size: 21px; font-weight: 800; color: #0f172a; }
.news-body h3 { margin: 26px 0 12px; font-size: 18px; font-weight: 700; color: #16202c; }
.news-body img { max-width: 100%; height: auto; border-radius: 12px; display: block; margin: 18px auto; }
.news-body ul, .news-body ol { margin: 0 0 20px 22px; padding: 0; }
.news-body li { margin: 8px 0; }
.news-body blockquote {
  margin: 22px 0; padding: 14px 20px; border-left: 4px solid #a7f3d0; border-radius: 8px;
  background: #f0fdf9; color: #33606f;
}
.news-body strong, .news-body b { color: #0f172a; }
.news-body a { color: #0f766e; }
.news-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.news-body th, .news-body td { border: 1px solid #e6ecf3; padding: 9px 12px; text-align: left; }
.news-body th { background: #f8fafc; }
.news-body pre {
  background: #0f172a; color: #e2e8f0; padding: 16px 18px; border-radius: 12px;
  overflow-x: auto; font-size: 13.5px; line-height: 1.8;
}

/* 会员付费墙 */
.news-paywall {
  position: relative; margin-top: 10px; padding: 30px 30px 26px;
  background: linear-gradient(160deg, #f0fdfa, #ecfeff 58%, #eef2ff);
  border: 1px solid #99f6e4; border-radius: 18px; text-align: center;
}
.news-paywall .np-badge {
  display: inline-block; font-size: 12px; font-weight: 800; color: #b45309;
  background: #fef3c7; padding: 4px 14px; border-radius: 999px;
}
.news-paywall .np-t { margin-top: 14px; font-size: 19px; font-weight: 800; color: #0f172a; }
.news-paywall .np-s { margin-top: 8px; font-size: 13.5px; line-height: 1.8; color: #64748b; }
.news-paywall .np-btns { margin-top: 20px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.news-paywall .np-btn {
  padding: 11px 30px; border-radius: 999px; border: none; cursor: pointer;
  font-size: 14.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #10b981, #0f766e);
  box-shadow: 0 14px 26px -16px rgba(16, 185, 129, 1);
}
.news-paywall .np-btn.ghost {
  background: #fff; color: #0f766e; border: 1px solid #a7f3d0; box-shadow: none;
}
.news-fade {
  position: absolute; left: 0; right: 0; bottom: 100%; height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
}

/* 上一篇 / 下一篇 */
.news-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.news-nav a {
  display: block; padding: 14px 18px; border-radius: 14px; background: #f8fafc;
  border: 1px solid #eef2f7; text-decoration: none; color: #334155; font-size: 13.5px;
}
.news-nav a:hover { background: #f0fdf9; border-color: #a7f3d0; }
.news-nav .nn-k { display: block; font-size: 12px; color: #9aa8b6; margin-bottom: 6px; }
.news-nav .nn-t {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6;
}
.news-nav a.next { text-align: right; }

/* 详情页底部推荐 */
.news-related { margin-top: 26px; }
.news-related h3 { margin: 0 0 14px; font-size: 16px; font-weight: 800; color: #0f172a; }
.news-related .nr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .news-related .nr-list { grid-template-columns: 1fr; } }

/* ===== 读者评价入口（图文评论）===== */
.news-cm {
  margin-top: 26px; padding: 22px 24px; border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #f0f9ff);
  border: 1px solid #dbeafe;
}
.news-cm-hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.news-cm-t { font-size: 17px; font-weight: 700; color: #0f172a; }
.news-cm-n { font-size: 13px; color: #94a3b8; }
.news-cm-btn {
  width: 100%; height: 44px; border: none; border-radius: 10px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  transition: filter .2s ease;
}
.news-cm-btn:hover { filter: brightness(1.06); }
.news-cm-btn i { font-style: normal; margin-right: 6px; }
