/* ==================================================================
   社群人脉 · 资讯中心（按客户效果图 1:1 复刻）
   所有展示型卡片 / 图片容器圆角统一 8px（--nc-r）；
   仅胶囊控件（顶部胶囊、搜索框、热度标签、悬浮按钮）保留圆形。
   class 全部 nc- 前缀，不污染首页 V2 与旧版样式。
   ================================================================== */
:root {
  --nc-r: 8px;
  --nc-bg: #f2f3f7;
  --nc-purple: #6b5bf5;
  --nc-blue: #3d6bff;
  --nc-text: #1b1f2a;
  --nc-sub: #8b91a5;
}

.nc-page { min-height: 100vh; background: var(--nc-bg); padding-bottom: 26px; }

/* ---------- 顶部：导航 + 搜索 + 分类（整块白底） ---------- */
.nc-head { background: #fff; }
.nc-topbar {
  height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; position: relative;
}
.nc-nav-left {
  height: 34px; display: flex; align-items: center; padding: 0 4px;
  background: #f4f5f9; border-radius: 999px;
}
.nc-nav-left a {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  color: #262b3a;
}
.nc-nav-left i { width: 1px; height: 16px; background: #d9dde8; margin: 0 1px; }
.nc-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 17px; font-weight: 800; color: var(--nc-text); white-space: nowrap;
}
.nc-capsule {
  width: 80px; height: 30px; border: 1px solid #e2e6f0; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-evenly; background: #fff;
}
.nc-capsule .nc-cap-dots { display: flex; gap: 2px; }
.nc-capsule .nc-cap-dots b { width: 4px; height: 4px; border-radius: 50%; background: #262b3a; }
.nc-capsule .nc-cap-line { width: 11px; height: 2px; border-radius: 1px; background: #262b3a; }
.nc-capsule .nc-cap-ring { width: 13px; height: 13px; border: 2px solid #262b3a; border-radius: 50%; position: relative; }
.nc-capsule .nc-cap-ring::after {
  content: ''; position: absolute; inset: 2.5px; border-radius: 50%; background: #262b3a;
}
.nc-capsule i { width: 1px; height: 14px; background: #e2e6f0; }

.nc-search {
  margin: 10px 14px 0; height: 44px; border-radius: 999px;
  background: #f5f6fa; display: flex; align-items: center; gap: 9px; padding: 0 16px;
}
.nc-search svg { flex: 0 0 auto; color: #a9afbe; }
.nc-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 14px; color: var(--nc-text);
}
.nc-search input::placeholder { color: #a9afbe; }
.nc-search-btn {
  border: 0; background: transparent; color: var(--nc-purple);
  font-size: 13px; font-weight: 700; padding: 6px 0 6px 8px;
}

.nc-tabs {
  display: flex; gap: 24px; padding: 16px 16px 0; margin-top: 2px;
  overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #f0f1f6;
}
.nc-tabs::-webkit-scrollbar { display: none; }
.nc-tab {
  position: relative; flex: 0 0 auto; padding-bottom: 11px;
  font-size: 14px; color: #6b7288; white-space: nowrap;
}
.nc-tab.on { color: var(--nc-blue); font-weight: 800; }
.nc-tab.on::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 18px; height: 3px; border-radius: 2px; background: var(--nc-purple);
}

/* ---------- 热门排行 ---------- */
.nc-rank {
  margin: 14px 14px 0; padding: 14px 14px 12px;
  background: #fff; border-radius: var(--nc-r);
  box-shadow: 0 2px 12px rgba(31, 45, 92, .04);
}
.nc-rank-head { display: flex; align-items: center; gap: 10px; }
.nc-rank-ic {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--nc-r);
  background: linear-gradient(135deg, #ff9a5a, #ff5b46);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 104, 70, .22);
}
.nc-rank-t { font-size: 19px; font-weight: 800; color: var(--nc-text); line-height: 1.2; }
.nc-rank-s { font-size: 12px; color: var(--nc-sub); margin-top: 4px; }
.nc-dots { display: flex; justify-content: center; gap: 5px; margin: 11px 0 9px; }
.nc-dots i { width: 5px; height: 5px; border-radius: 50%; background: #d8dce8; transition: width .2s, background .2s; cursor: pointer; }
.nc-dots i.on { width: 13px; border-radius: 3px; background: #ff4d4f; }
.nc-rank-line { height: 1px; background: #eef0f6; margin-bottom: 10px; }
.nc-rank-body { background: #f7f9fd; border-radius: var(--nc-r); padding: 2px 10px; }
.nc-rank-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid #ebeff7; cursor: pointer;
}
.nc-rank-row:last-child { border-bottom: 0; }
.nc-rank-no { width: 22px; flex: 0 0 22px; text-align: center; font-size: 17px; font-weight: 800; color: #9aa2b8; }
.nc-rank-mid { flex: 1 1 auto; min-width: 0; }
.nc-rank-title {
  font-size: 13.5px; font-weight: 800; color: var(--nc-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nc-rank-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.nc-tag { background: #e9ecff; color: #5b5bf0; font-size: 10.5px; padding: 1px 6px; border-radius: 4px; }
.nc-date { font-size: 11px; color: #a0a7b8; }
.nc-heat {
  flex: 0 0 auto; background: #fff0f1; border-radius: 999px; padding: 4px 8px;
  font-size: 12px; font-weight: 800; color: #f0444a; white-space: nowrap;
}
.nc-rank-empty { padding: 22px 8px; text-align: center; color: var(--nc-sub); font-size: 13px; }

/* ---------- 资讯列表 ---------- */
.nc-list { margin-top: 2px; }
.nc-card {
  margin: 14px 14px 0; padding: 18px 16px 16px;
  background: #fff; border-radius: var(--nc-r); cursor: pointer;
  box-shadow: 0 2px 12px rgba(31, 45, 92, .04);
}
.nc-card-t { font-size: 21px; font-weight: 800; line-height: 1.45; color: var(--nc-text); }
.nc-card-s {
  font-size: 14px; color: #979db0; line-height: 1.85; margin-top: 11px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nc-card-m { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; font-size: 11.5px; color: #a0a6b6; }
.nc-card-m .nc-m-tag { background: #eef0ff; color: #6b5bf5; padding: 2px 7px; border-radius: 4px; font-weight: 700; }
.nc-card-m .nc-m-sep { color: #d5d9e4; }
.nc-card-cover { width: 100%; max-height: 170px; object-fit: cover; border-radius: var(--nc-r); margin-top: 12px; }
.nc-empty { margin: 26px 14px; padding: 34px 16px; text-align: center; color: var(--nc-sub); font-size: 13.5px; background: #fff; border-radius: var(--nc-r); }
.nc-more {
  margin: 16px 14px 0; height: 40px; line-height: 40px; text-align: center;
  background: #fff; border-radius: var(--nc-r); color: var(--nc-purple);
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.nc-more.done { color: #aab0c0; cursor: default; }

/* ---------- 右下悬浮按钮（回到顶部） ---------- */
.nc-fab {
  position: fixed; right: 16px; bottom: 78px; z-index: 20;
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: linear-gradient(135deg, #7c6bff, #5a4bf0);
  box-shadow: 0 6px 18px rgba(91, 75, 240, .35);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- 详情页 ---------- */
.nc-detail-card { margin: 14px; padding: 20px 16px 24px; background: #fff; border-radius: var(--nc-r); }
.nc-detail-t { font-size: 23px; font-weight: 800; line-height: 1.45; color: var(--nc-text); }
.nc-detail-m { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 12px; color: #a0a6b6; }
.nc-detail-cover { width: 100%; border-radius: var(--nc-r); margin-top: 16px; }
.nc-detail-body { margin-top: 6px; }
.nc-detail-body p { font-size: 15px; line-height: 2; color: #4a5064; margin-top: 14px; }
/* 富文本正文（V3.15.0 后台编辑器 / 公众号采集）：标题、图片、引用、列表、链接 */
.nc-detail-body h1, .nc-detail-body h2, .nc-detail-body h3 {
  font-weight: 800; color: #1f2430; line-height: 1.55; margin: 22px 0 10px;
}
.nc-detail-body h1 { font-size: 19px; }
.nc-detail-body h2 { font-size: 17px; }
.nc-detail-body h3 { font-size: 15.5px; }
.nc-detail-body img { display: block; max-width: 100%; height: auto; margin: 14px auto; border-radius: 10px; }
.nc-detail-body blockquote {
  margin: 14px 0; padding: 10px 14px; border-left: 3px solid #cfd8f5;
  background: #f7f8fc; border-radius: 0 10px 10px 0; color: #4a5064; font-size: 14.5px;
}
.nc-detail-body ul, .nc-detail-body ol { margin: 12px 0; padding-left: 22px; }
.nc-detail-body li { font-size: 15px; line-height: 1.95; color: #4a5064; margin: 6px 0; }
.nc-detail-body a { color: var(--nc-purple); text-decoration: underline; word-break: break-all; }
.nc-detail-body strong, .nc-detail-body b { font-weight: 700; color: #23283a; }
.nc-detail-body hr { border: 0; border-top: 1px solid #eef1f8; margin: 20px 0; }
.nc-detail-foot { margin: 18px 14px 0; display: flex; gap: 10px; }
.nc-back-btn {
  flex: 1; height: 42px; line-height: 42px; text-align: center; border-radius: var(--nc-r);
  background: #fff; color: var(--nc-purple); font-size: 14px; font-weight: 700;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 375px) {
  .nc-tabs { gap: 18px; padding-left: 14px; padding-right: 14px; }
  .nc-tab { font-size: 13px; }
  .nc-card-t { font-size: 19px; }
  .nc-detail-t { font-size: 21px; }
  .nc-rank-title { font-size: 12.5px; }
  .nc-rank { margin-left: 10px; margin-right: 10px; padding-left: 10px; padding-right: 10px; }
  .nc-card { margin-left: 10px; margin-right: 10px; }
}
@media (max-width: 360px) {
  .nc-capsule { width: 68px; }
  .nc-title { font-size: 15.5px; }
  .nc-tabs { gap: 14px; }
  .nc-heat { font-size: 11px; padding: 3px 6px; }
}
