/* ============ 首页专属样式 Smart Telehealth Hub ============ */

/* ============ Hero 杂志网格（Full-Bleed 大图沉浸） ============ */
.c9bb5a-hero {
  padding: 40px 0 20px;
}

.c9bb5a-hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

.c9bb5a-hero-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 520px;
  box-shadow: var(--shadow);
}

.c9bb5a-hero-main .c9bb5a-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.c9bb5a-hero-main:hover .c9bb5a-card-bg { transform: scale(1.04); }

.c9bb5a-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,15,13,0.05) 20%, rgba(17,15,13,0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  min-height: 520px;
}

.c9bb5a-hero-main .c9bb5a-card-cat {
  color: var(--accent);
  margin-bottom: 12px;
}

.c9bb5a-hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  max-width: 520px;
}

.c9bb5a-hero-title a { color: #fff; }
.c9bb5a-hero-title a:hover { color: var(--accent); opacity: 1; }

.c9bb5a-hero-meta { color: rgba(255,255,255,0.82); font-size: 13px; }

.c9bb5a-hero-side {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 24px;
}

.c9bb5a-hero-side .c9bb5a-card { min-height: 0; }
.c9bb5a-hero-side .c9bb5a-card-title { font-size: 17px; }

/* ============ 区块标题 ============ */
.c9bb5a-section { padding: 40px 0; }

.c9bb5a-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 28px;
}

.c9bb5a-section-head h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0;
}

.c9bb5a-section-head a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
}

/* ============ Trending 侧边置顶（左最新 | 右榜单） ============ */
.c9bb5a-trending-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
}

.c9bb5a-trending-list { display: flex; flex-direction: column; }

.c9bb5a-trending-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.c9bb5a-trending-rank {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 32px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  line-height: 1;
}

.c9bb5a-trending-item:first-child .c9bb5a-trending-rank { color: var(--accent); }

.c9bb5a-trending-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}

.c9bb5a-trending-title a { color: var(--text); }
.c9bb5a-trending-title a:hover { color: var(--accent); opacity: 1; }

/* ============ 辅助页面快捷链接（横向居中） ============ */
.c9bb5a-quicklinks {
  padding: 28px 0;
  display: flex;
  justify-content: center;
  gap: 14px 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.c9bb5a-quicklinks a {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.c9bb5a-quicklinks a:hover { color: var(--accent); opacity: 1; }
.c9bb5a-quicklinks-sep { color: var(--border); align-self: center; }

/* ============ Main Feed 3 列卡片网格 ============ */
.c9bb5a-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* ============ 标签云与话题索引（分类网格图卡） ============ */
.c9bb5a-topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.c9bb5a-topic-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 130px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--border);
  transition: border-color 0.25s ease;
}

.c9bb5a-topic-card:hover { border-color: var(--accent); }

.c9bb5a-topic-card .c9bb5a-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.c9bb5a-topic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,15,13,0.1) 0%, rgba(17,15,13,0.85) 100%);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.c9bb5a-topic-name { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.c9bb5a-topic-count { color: rgba(255,255,255,0.75); font-size: 11px; }

/* ============ 作者/创始人简介（嵌入式 Banner） ============ */
.c9bb5a-founder-banner {
  display: flex;
  align-items: center;
  gap: 26px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}

.c9bb5a-founder-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--accent);
}

.c9bb5a-founder-intro { flex: 1; }

.c9bb5a-founder-hi {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  margin: 0 0 8px;
}

.c9bb5a-founder-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 14px;
}

.c9bb5a-founder-socials {
  display: flex;
  gap: 12px;
}

.c9bb5a-founder-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
}

.c9bb5a-founder-socials a:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* ============ Editor's Choice 大卡片焦点 ============ */
.c9bb5a-ec-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
}

.c9bb5a-ec-featured {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow);
}

.c9bb5a-ec-featured .c9bb5a-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.c9bb5a-ec-featured:hover .c9bb5a-card-bg { transform: scale(1.05); }

.c9bb5a-ec-featured .c9bb5a-hero-overlay { min-height: 360px; }

.c9bb5a-ec-featured .c9bb5a-hero-title { font-size: 26px; }

.c9bb5a-ec-list { display: flex; flex-direction: column; }

.c9bb5a-ec-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.c9bb5a-ec-item:last-child { border-bottom: none; }

.c9bb5a-ec-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  min-width: 22px;
}

.c9bb5a-ec-item a {
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
}

.c9bb5a-ec-item a:hover { color: var(--accent); opacity: 1; }

/* 首页响应式 */
@media (max-width: 960px) {
  .c9bb5a-hero-grid { grid-template-columns: 1fr; }
  .c9bb5a-hero-main { min-height: 420px; }
  .c9bb5a-hero-main .c9bb5a-hero-overlay { min-height: 420px; }
  .c9bb5a-hero-title { font-size: 28px; }
  .c9bb5a-hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .c9bb5a-trending-wrap { grid-template-columns: 1fr; }
  .c9bb5a-feed-grid { grid-template-columns: repeat(2, 1fr); }
  .c9bb5a-topics-grid { grid-template-columns: repeat(2, 1fr); }
  .c9bb5a-ec-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .c9bb5a-hero-side { grid-template-columns: 1fr; }
  .c9bb5a-feed-grid { grid-template-columns: 1fr; }
  .c9bb5a-topics-grid { grid-template-columns: 1fr; }
  .c9bb5a-hero-main { min-height: 340px; }
  .c9bb5a-hero-main .c9bb5a-hero-overlay { min-height: 340px; }
  .c9bb5a-founder-banner { flex-direction: column; text-align: center; }
}
