/*
  健康课堂专属样式。
  结构：头条 → 直播 → 分类段 → 名医 → 热门榜 → 最新
  调性：杂志内页。图大、字压在图上、栏目名用宋体竖排小标。
*/

/* 轮播 banner 的样式在 components.css（.banner）—— 首页与本页都可能用。
   banner 上压的文字沿用 .ph-cap，不另起一套。 */

/* banner 里的栏目小标：竖排贴左上，压在图上。 */
.banner-rail {
  position: absolute; top: var(--sp-3); left: calc(var(--page-x) + var(--sp-3));
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--ff-serif); font-size: var(--fs-sm);
  letter-spacing: 0.24em; color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ---------- 直播 ---------- */

.live-card {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-3); padding: var(--sp-3);
  background: var(--c-dark);
  background-color: #1d4d36;
  color: var(--c-dark-ink);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.live-card .lc-thumb { width: 5.5rem; flex: none; border-radius: var(--r-md); }
.live-card .lc-t {
  font-family: var(--ff-serif); font-size: var(--fs-md); font-weight: 600;
  line-height: 1.3;
}
.live-card .lc-s { font-size: var(--fs-xs); color: var(--c-dark-sub); margin-top: 3px; }

/*
  进行中的徽标：朱砂底 + 呼吸点。用「直播中」三个字而不只是一个红点 ——
  只有红点的表现是用户以为那是未读消息标记。
*/
.live-now {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-cap); font-weight: 600; line-height: 1;
  padding: 4px 6px; border-radius: var(--r-sm);
  background: var(--c-cinnabar); color: #fff;
}
.live-now::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #fff; animation: live-pulse 1.6s var(--ease) infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* 倒计时。等宽数字，冒号不参与跳动 —— 用比例数字的表现是
   秒数从 9 跳到 10 时整行宽度变一下，看着在抖。 */
.countdown {
  font-family: var(--ff-num); font-variant-numeric: tabular-nums;
  font-size: var(--fs-sm); color: var(--c-gold); letter-spacing: 0.04em;
}

/* 分类段（.seg / .seg-item）已上移到 components.css —— 商城排序条也用它。
   留在这里的表现是商城页写了 class="seg-item" 却拿不到样式。 */

/* ---------- 名医 ---------- */

.expert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.expert-cell {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--c-surface);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-lg);
  color: inherit;
}
.expert-cell .ph {
  width: 3rem; height: 3rem; flex: none; border-radius: 50%;
}
/* 头像兜底不要回纹（圆形里的方纹很怪），换纯渐变。 */
.expert-cell .ph::after { display: none; }
.expert-cell .ex-n {
  font-family: var(--ff-serif); font-size: var(--fs-md); font-weight: 600;
}
.expert-cell .ex-s {
  font-size: var(--fs-cap); color: var(--c-ink-sub); margin-top: 2px;
  line-height: 1.35;
}

/*
  内容卡（.cont-grid / .cont-card / .cc-* / .lock-hint）已迁到
  components.css 的组件层 —— 它是全站唯一一种内容版式，八个页面在用，
  留在这里会让每个用到它的页面都被迫加载本文件。
*/
