/* ============================================================
   明升历典 · 劝善故事频道 样式
   ------------------------------------------------------------
   设计原则：
     1. 只做「增量」——不重定义 header.site / footer.site / .wrap
     2. 全部类名加 gs- 前缀（gushi story），与工具站零冲突
     3. 配色沿用站点紫色变量，另加赭金/朱砂作为频道识别色
     4. 正文用衬线字体，营造书卷气；UI 沿用无衬线
   依赖：site.css（提供 :root 变量与 header/footer 骨架）
   ============================================================ */

:root {
  --gs-gold: #b8873f;
  --gs-gold-soft: #d9b877;
  --gs-red: #a8443a;
  --gs-ink: #2f2a3a;
  --gs-ink-2: #5f5866;
  --gs-ink-3: #8d8794;
  --gs-paper: #fffdf9;
  --gs-line: #ece5f5;
  --gs-serif: "Songti SC", "Source Han Serif SC", "SimSun", Georgia, serif;
}

/* ---------------- 通用容器 ---------------- */
.gs-main { max-width: 880px; margin: 0 auto; padding: 26px 0 0; }
.gs-wide { max-width: 1080px; }

/* ---------------- 频道头图 ---------------- */
.gs-hero {
  position: relative;
  border-radius: var(--r-lg);
  padding: 44px 34px 40px;
  margin-bottom: 26px;
  color: #fff;
  background: linear-gradient(135deg, #3d2557 0%, #5b3a83 55%, #8a5cc0 100%);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.gs-hero::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 196, 15, .22), transparent 68%);
}
.gs-hero .gs-h1 {
  font-size: 32px; font-weight: 700; letter-spacing: 6px;
  font-family: var(--gs-serif); margin: 0 0 14px;
}
.gs-hero .gs-sub {
  font-size: 14.5px; line-height: 1.9; opacity: .93; max-width: 620px;
  margin: 0; letter-spacing: .6px;
}
.gs-hero .gs-divider {
  width: 54px; height: 2px; margin: 20px 0 18px;
  background: linear-gradient(90deg, var(--gs-gold-soft), transparent);
}
.gs-hero .gs-hstats { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; opacity: .9; }
.gs-hero .gs-hstats b { font-size: 17px; color: var(--gs-gold-soft); }

/* ---------------- 分类导航 ---------------- */
.gs-catnav { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.gs-catnav a {
  display: inline-block; padding: 7px 15px; border-radius: 999px;
  background: var(--c-paper); border: 1px solid var(--gs-line);
  font-size: 13.5px; color: var(--c-text); text-decoration: none;
  transition: all .22s var(--ease);
}
.gs-catnav a:hover, .gs-catnav a.on {
  background: linear-gradient(135deg, var(--c-purple-2), var(--c-purple-3));
  color: #fff; border-color: transparent; box-shadow: var(--shadow-1);
}

/* ---------------- 区块标题 ---------------- */
.gs-sec { display: flex; align-items: center; gap: 10px; margin: 30px 0 16px; }
.gs-sec .bar { width: 4px; height: 19px; border-radius: 2px; background: var(--gs-red); }
.gs-sec h2 { font-size: 19px; margin: 0; font-weight: 700; letter-spacing: 1px; color: var(--gs-ink); }
.gs-sec .tip { font-size: 12.5px; color: var(--gs-ink-3); margin-left: auto; }

/* ---------------- 故事列表 ---------------- */
.gs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(316px, 1fr)); gap: 18px; }
.gs-card {
  display: block; background: var(--c-paper); border: 1px solid var(--gs-line);
  border-radius: var(--r-md); padding: 22px 22px 18px; text-decoration: none;
  color: inherit; transition: all .25s var(--ease); position: relative; overflow: hidden;
}
.gs-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gs-gold), transparent);
  opacity: 0; transition: opacity .25s var(--ease);
}
.gs-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #ded0ee;
}
.gs-card:hover::before { opacity: 1; }
.gs-card .c-cat {
  display: inline-block; font-size: 11.5px; letter-spacing: 1.5px;
  color: var(--gs-red); background: #fdf2f0; border: 1px solid #f4dcd8;
  border-radius: 4px; padding: 2px 8px; margin-bottom: 12px;
}
.gs-card .c-title {
  font-size: 18px; font-weight: 700; line-height: 1.55; margin-bottom: 10px;
  font-family: var(--gs-serif); color: var(--gs-ink);
}
.gs-card .c-truth {
  font-size: 13.5px; color: var(--gs-ink-2); line-height: 1.85;
  min-height: 50px; margin-bottom: 14px;
}
.gs-card .c-foot {
  font-size: 12px; color: var(--gs-ink-3); border-top: 1px dashed var(--gs-line);
  padding-top: 11px; display: flex; gap: 14px; flex-wrap: wrap;
}

/* ---------------- 面包屑 ---------------- */
.gs-crumb { font-size: 13px; color: var(--gs-ink-3); margin-bottom: 18px; }
.gs-crumb a { color: var(--c-purple-3); text-decoration: none; }
.gs-crumb a:hover { text-decoration: underline; }
.gs-crumb span { margin: 0 7px; opacity: .5; }

/* ---------------- 文章头部 ---------------- */
.gs-head { margin-bottom: 24px; }
.gs-head h1 {
  font-size: 27px; line-height: 1.6; font-weight: 700; letter-spacing: .5px;
  font-family: var(--gs-serif); color: var(--gs-ink); margin: 0 0 16px;
}
.gs-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--gs-ink-3); }
.gs-meta .m-cat {
  color: var(--gs-red); background: #fdf2f0; border: 1px solid #f4dcd8;
  border-radius: 4px; padding: 2px 9px;
}

/* ---------------- 音频播放器 ---------------- */
.gs-player {
  background: var(--c-paper); border: 1px solid var(--gs-line);
  border-left: 3px solid var(--gs-gold); border-radius: var(--r-md);
  padding: 16px 20px; margin-bottom: 28px;
}
.gs-player .p-label {
  font-size: 13px; color: var(--gs-ink-2); margin-bottom: 10px;
  display: flex; align-items: center; gap: 7px;
}
.gs-player .p-label .p-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gs-gold);
  box-shadow: 0 0 0 3px rgba(184, 135, 63, .16);
}
.gs-player audio { width: 100%; height: 38px; display: block; }
.gs-player .p-hint { font-size: 12px; color: var(--gs-ink-3); margin-top: 9px; }

/* ---------------- 正文 ---------------- */
.gs-article {
  font-family: var(--gs-serif);
  font-size: 17px; line-height: 2.05; color: #3b3545;
}
.gs-article p { margin: 0 0 20px; text-indent: 2em; }
.gs-article p.lead {
  text-indent: 0; font-size: 16.5px; color: var(--gs-ink-2);
  padding-left: 14px; border-left: 3px solid var(--gs-line);
  line-height: 1.95;
}

/* ---------------- 人间真理 ---------------- */
.gs-truth {
  margin: 34px 0; padding: 24px 26px; border-radius: var(--r-md);
  background: linear-gradient(180deg, #fffdf8, #fdf6e9);
  border: 1px solid #eee0c6; position: relative;
}
.gs-truth .t-label {
  font-size: 11.5px; letter-spacing: 4px; color: var(--gs-gold);
  margin-bottom: 12px; font-weight: 700;
}
.gs-truth p {
  margin: 0; font-size: 16.5px; line-height: 2; color: #55452a;
  font-family: var(--gs-serif);
}

/* ---------------- 问答 ---------------- */
.gs-qa { margin-bottom: 12px; background: var(--c-paper); border: 1px solid var(--gs-line); border-radius: var(--r-md); padding: 17px 20px; }
.gs-qa .q {
  margin: 0 0 8px; font-weight: 700; font-size: 15.5px; color: var(--gs-ink);
  line-height: 1.7;
}
.gs-qa .q::before {
  content: "问"; display: inline-block; margin-right: 9px;
  font-size: 11.5px; color: #fff; background: var(--gs-red);
  border-radius: 4px; padding: 1px 6px; vertical-align: 2px; font-weight: 400;
}
.gs-qa .a {
  margin: 0; font-size: 14.5px; color: var(--gs-ink-2); line-height: 1.9;
}
.gs-qa .a::before {
  content: "答"; display: inline-block; margin-right: 9px;
  font-size: 11.5px; color: var(--gs-ink-2); background: #f1eef7;
  border-radius: 4px; padding: 1px 6px; vertical-align: 2px; font-weight: 400;
}

/* ---------------- 工具推荐（故事 → 工具站 导流） ---------------- */
.gs-tools {
  margin: 40px 0 0; padding: 24px 24px 20px;
  background: linear-gradient(180deg, #faf8ff, #f4f1fc);
  border: 1px solid #e9e1f8; border-radius: var(--r-lg);
}
.gs-tools .bt-title {
  font-size: 14px; font-weight: 700; color: var(--c-purple-2);
  margin-bottom: 6px; letter-spacing: .6px;
}
.gs-tools .bt-sub { font-size: 12.5px; color: var(--gs-ink-3); margin-bottom: 16px; line-height: 1.8; }
.gs-tools .bt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.gs-tools .bt-item {
  display: block; background: #fff; border: 1px solid #e9e1f8; border-radius: var(--r-sm);
  padding: 14px 16px; text-decoration: none; color: inherit; transition: all .22s var(--ease);
}
.gs-tools .bt-item:hover { border-color: var(--c-purple-4); box-shadow: var(--shadow-1); transform: translateY(-2px); }
.gs-tools .bt-item b { display: block; font-size: 14.5px; color: var(--c-purple-1); margin-bottom: 5px; }
.gs-tools .bt-item span { font-size: 12.5px; color: var(--gs-ink-3); line-height: 1.75; display: block; }

/* ---------------- 上下篇 ---------------- */
.gs-pager { display: flex; gap: 12px; margin: 30px 0 0; }
.gs-pager a {
  flex: 1; min-width: 0; background: var(--c-paper); border: 1px solid var(--gs-line);
  border-radius: var(--r-md); padding: 15px 18px; text-decoration: none;
  color: inherit; transition: all .22s var(--ease);
}
.gs-pager a:hover { border-color: #ded0ee; box-shadow: var(--shadow-1); }
.gs-pager .pg-dir { font-size: 12px; color: var(--gs-ink-3); margin-bottom: 6px; }
.gs-pager .pg-title {
  font-size: 14.5px; color: var(--gs-ink); font-family: var(--gs-serif);
  line-height: 1.6; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.gs-pager a.next { text-align: right; }

/* ---------------- 标签 ---------------- */
.gs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.gs-tags .tag {
  font-size: 12.5px; color: var(--c-purple-3); background: #f6f2fd;
  border: 1px solid #ece3fa; border-radius: 999px; padding: 4px 13px;
  text-decoration: none;
}
.gs-tags .tag:hover { background: #eee6fb; }

/* ---------------- 合规声明 ---------------- */
.gs-note {
  margin: 32px 0 0; padding: 18px 20px; border-radius: var(--r-md);
  background: #f8f7fb; border: 1px dashed #e2dcee;
  font-size: 12.5px; color: var(--gs-ink-3); line-height: 1.95;
}
.gs-note b { color: var(--gs-ink-2); }

/* ---------------- 空态 ---------------- */
.gs-empty {
  text-align: center; padding: 60px 20px; color: var(--gs-ink-3);
  font-size: 14px; background: var(--c-paper); border: 1px dashed var(--gs-line);
  border-radius: var(--r-lg);
}

/* ---------------- 上一篇下一篇 移动端 ---------------- */
@media (max-width: 720px) {
  .gs-hero { padding: 32px 22px 30px; border-radius: var(--r-md); }
  .gs-hero .gs-h1 { font-size: 25px; letter-spacing: 4px; }
  .gs-main { padding-top: 18px; }
  .gs-list { grid-template-columns: 1fr; }
  .gs-head h1 { font-size: 22px; }
  .gs-article { font-size: 16.5px; line-height: 2; }
  .gs-pager { flex-direction: column; }
  .gs-pager a.next { text-align: left; }
  .gs-tools { padding: 20px 18px 16px; }
}


/* ================================================================
   穿插解读（gs-inter）
   用户要求「解读必须落在情节中间，不是文末总结」——正文 body 数组里
   以 {"k":"i"} 标记的解读块，按幕序嵌在段落之间渲染成这种旁批卡片。
   ================================================================ */
.gs-inter {
  margin: 24px 0 26px;
  padding: 16px 20px 14px;
  background: linear-gradient(180deg, #fdf8ee 0%, #faf1e2 100%);
  border-left: 3px solid var(--gs-gold);
  border-radius: 0 10px 10px 0;
}
.gs-inter .i-tag {
  display: inline-block; font-size: 11px; letter-spacing: 2px;
  color: var(--gs-gold); font-weight: 700; margin-bottom: 7px;
}
.gs-inter .i-tag::before { content: "◆ "; font-size: 9px; }
.gs-inter .i-h {
  font-size: 15.5px; font-weight: 700; color: var(--gs-ink);
  margin: 0 0 8px; line-height: 1.55;
}
.gs-article .gs-inter p, .gs-inter p {
  text-indent: 0; margin: 0; font-size: 14.5px; line-height: 1.9; color: var(--gs-ink-2);
}
/* 分页（首页承载 639 篇，按 60 篇/页切分） */
.gs-page {
  display: flex; flex-wrap: wrap; gap: 7px; justify-content: center;
  margin: 30px 0 8px;
}
.gs-page a {
  min-width: 34px; height: 34px; line-height: 34px; text-align: center;
  padding: 0 10px; font-size: 13.5px; border-radius: 8px;
  border: 1px solid var(--gs-line); color: var(--gs-ink-2);
  text-decoration: none; background: #fff;
}
.gs-page a:hover { border-color: var(--gs-gold-soft); color: var(--gs-gold); }
.gs-page a.on { background: var(--gs-gold); border-color: var(--gs-gold); color: #fff; font-weight: 700; }
.gs-page-info { text-align: center; font-size: 12.5px; color: var(--gs-ink-3); margin-bottom: 26px; }
@media (max-width: 560px) {
  .gs-inter { padding: 14px 14px 12px; margin: 20px 0 22px; }
  .gs-inter .i-h { font-size: 14.5px; }
  .gs-article .gs-inter p, .gs-inter p { font-size: 14px; }
  .gs-page a { min-width: 30px; height: 30px; line-height: 30px; font-size: 12.5px; }
}
