/**
 * republic-page.css — 民国纪事专题页样式
 *
 * 来源：/_legacy/republic.html 内联 <style>（约 800 行）抽取并保留视觉一致性
 * Session 8: republic.html → React 完整重写
 */

/* ── 局部 CSS 变量（不影响全站）─────────────────────────────── */
.republic-page {
  --paper: #f2ece3;
  --paper-2: #f8f5ef;
  --ink: #121a24;
  --ink-muted: #4f5964;
  --line: #d8cebf;
  --line-strong: #c6b89f;
  --accent: #c5a059;
  --accent-soft: rgba(197, 160, 89, 0.12);
  --bronze: #a4854a;
  --hero-bg: #0b1e34;
  --hero-fg: #f8f2e6;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  background: #ece8df;
  color: #2f2a24;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.republic-page a { color: inherit; text-decoration: none; }
.republic-page .font-song { font-family: "Ma Shan Zheng", "Noto Serif SC", serif; }

/* ── 主壳：与首页 magazine-page 同宽（1400）──────────────────── */
.republic-page .read-shell {
  max-width: var(--fsmag-shell-max);
  margin: 0 auto;
  padding: 0 var(--fsmag-space-read-pad) 3.5rem;
  background: #f5f1e8;
  border-left: 1px solid rgba(122, 104, 80, 0.14);
  border-right: 1px solid rgba(122, 104, 80, 0.14);
}

/* ── Hero ─────────────────────────────────────────────────── */
.republic-page .hero {
  /* 与 read-shell 同宽容器，让内容块在版心内左对齐 */
  max-width: var(--fsmag-shell-max);
  margin: 0 auto;
}
.republic-page .hero-inner,
.republic-page .fsmag-roc-hero-inner {
  /* 内容块约束在版心内、左对齐 */
  padding: 3rem var(--fsmag-space-read-pad) 2.5rem;
  text-align: left;
}
.republic-page .hero--republic-xuan .hero-title {
  font-size: clamp(3.5rem, 11vw, 6rem);
  letter-spacing: 0.14em;
  line-height: 1.03;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;  /* "民國" 黑色 */
}
.republic-page .hero--republic-xuan .hero-en {
  font-size: 10px;
  letter-spacing: 3px;
  margin-bottom: 10px;
  color: #6b5b47;
}
.republic-page .hero--republic-xuan .hero-desc {
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.7;
  max-width: 420px;
  color: #333;
  white-space: pre-line;
}
.republic-page .hero--republic-xuan .hero-date {
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: #6b5b47;
}
/* "紀事" 红色（民国主调红，对比黑色"民國"） */
.republic-page .hero--republic-xuan .accent { color: #8f2a24; }

/* ── 刊首语 ───────────────────────────────────────────────── */
.republic-page .opening-note {
  border: 1px solid rgba(129, 112, 90, 0.2);
  background: #fffdfa;
  padding: 0.78rem 0.86rem 0.86rem;
  margin: 0.75rem 0 0.95rem;
}
.republic-page .opening-kicker {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a7c6f;
}
.republic-page .opening-text {
  margin: 0;
  font-size: 13px;
  color: #3d3832;
  line-height: 2;
  white-space: pre-line;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  text-align: justify;
}

/* ── 梅贻琦日记区 ─────────────────────────────────────────── */
.republic-page .diary-zone {
  margin-top: 0;
  margin-bottom: 1rem;
  border: 1px solid rgba(128, 110, 88, 0.18);
  background: #fffdf9;
  padding: 0.65rem;
}
.republic-page .diary-zone-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}
.republic-page .diary-zone-head h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: #7a121d;
  font-weight: 700;
}
.republic-page .diary-zone-head span {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #6b7280;
  text-transform: uppercase;
}
.republic-page .diary-layout {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}
@media (max-width: 719px) {
  .republic-page .diary-layout { grid-template-columns: 1fr; }
}
.republic-page .diary-profile {
  border: 1px solid rgba(128, 110, 88, 0.18);
  background: linear-gradient(180deg, #faf4e9, #f3ecde);
  padding: 0.8rem;
  text-align: center;
}
.republic-page .diary-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid rgba(122, 18, 29, 0.18);
}
.republic-page .diary-name {
  margin: .5rem 0 .3rem;
  font-size: 15px;
  color: #6e1f20;
  font-weight: 700;
  letter-spacing: .08em;
}
.republic-page .diary-bio {
  margin: 0;
  text-align: left;
  font-size: 12px;
  line-height: 1.72;
  color: #5b5146;
}
.republic-page .diary {
  border: 1px solid rgba(130, 113, 90, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.56), rgba(244,236,223,0.62));
  padding: 0.45rem;
  min-height: 0;
}
.republic-page .diary-year-jump {
  display: flex;
  flex-wrap: wrap;
  gap: .36rem;
  margin: 0 0 .55rem;
}
.republic-page .diary-year-btn {
  border: 1px solid #d8ccba;
  background: #f8f3e8;
  color: #5a4b3d;
  font-size: 11px;
  letter-spacing: .08em;
  padding: 3px 9px;
  cursor: pointer;
  font-family: inherit;
}
.republic-page .diary-year-btn.active {
  border-color: #8f2a24;
  color: #8f2a24;
  background: rgba(143, 42, 36, .07);
  font-weight: 700;
}
.republic-page .diary-head {
  padding: 0.5rem 0.5rem 0.4rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.republic-page .seal {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  background: rgba(107, 44, 44, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5e6c8;
  font-size: 16px;
  flex-shrink: 0;
}
.republic-page .diary-title {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #3b2d1f;
  font-weight: 700;
}
.republic-page .diary-tag {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #7b6a57;
}
.republic-page .diary-body {
  min-height: 220px;
  max-height: 240px;
  overflow: auto;
  padding: 0.7rem 0.8rem 0.85rem;
  font-size: 14px;
  line-height: 1.85;
  color: #111111;
  font-family: "KaiTi", "STKaiti", "Kaiti SC", "Noto Serif SC", serif;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 29px, rgba(122,104,80,0.05) 29px, rgba(122,104,80,0.05) 30px);
}
.republic-page .diary-foot {
  padding: 0.4rem 0.6rem 0.5rem;
  border-top: 1px solid rgba(197, 160, 89, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.republic-page .diary-btn {
  border: 1px solid rgba(143, 42, 36, 0.25);
  background: transparent;
  color: #7a121d;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.republic-page .diary-btn:hover {
  border-color: rgba(122,18,29,0.4);
  color: #7a121d;
  background: rgba(122,18,29,0.07);
}
.republic-page .diary-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.republic-page .diary-counter {
  color: rgba(120, 98, 72, 0.7);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.republic-page .diary-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.republic-page .diary-date-pill {
  font-size: 10px;
  color: #6b5b47;
  border: 1px solid rgba(122, 104, 80, 0.25);
  padding: 1px 8px;
  background: rgba(248, 242, 231, 0.9);
}
.republic-page .diary-title-inline {
  font-size: 11px;
  color: #7b6a57;
  letter-spacing: 0.06em;
}
.republic-page .diary-text {
  margin: 0;
  font-size: 16px;
  line-height: 2.02;
  color: #111;
  font-family: KaiTi, STKaiti, "Kaiti SC", "Noto Serif SC", serif;
}

/* ── 页面网格 + 年份导航 + 主题芯片 ────────────────────────── */
.republic-page .page-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 2rem;
  padding-top: 0.8rem;
}
@media (max-width: 719px) {
  .republic-page .page-grid {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
  }
}
.republic-page .read-main-top { min-width: 0; }

.republic-page .year-nav {
  position: sticky;
  top: 72px;
  align-self: start;
  padding-right: 0.5rem;
  border-right: 1px solid var(--line);
}
@media (max-width: 1023px) {
  .republic-page .year-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    border-right: none;
    border-bottom: 1px solid rgba(129, 112, 90, 0.18);
    padding: 0 0 0.45rem;
    margin-bottom: 0.75rem;
  }
}
.republic-page .year-nav a {
  display: block;
  padding: 0.45rem 0 0.45rem 0.75rem;
  font-size: 13px;
  color: var(--ink-muted);
  position: relative;
  transition: color 0.2s;
  cursor: pointer;
}
@media (max-width: 1023px) {
  .republic-page .year-nav a {
    font-size: 10px;
    border: 1px solid rgba(129, 112, 90, 0.2);
    padding: 0.2rem 0.46rem;
  }
}
.republic-page .year-nav a:hover { color: var(--ink); }
.republic-page .year-nav a.active {
  color: var(--accent);
  font-weight: 600;
}
.republic-page .year-nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: var(--accent);
}
@media (max-width: 1023px) {
  .republic-page .year-nav a.active {
    background: rgba(134, 40, 33, 0.08);
    color: #7e2d24;
  }
  .republic-page .year-nav a.active::before { display: none; }
}

.republic-page .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.republic-page .chip {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  margin-right: 0.5rem;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.republic-page .chip:hover { color: var(--ink); }
.republic-page .chip.active {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* ── 通用 section-head（小型）───────────────────────────────── */
.republic-page .section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.48rem;
  padding-bottom: 0.26rem;
  border-bottom: 1px solid var(--line);
}
.republic-page .section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--ink);
}
.republic-page .section-head span {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
}

/* ── 论与纪 ───────────────────────────────────────────────── */
.republic-page .lunyu-section {
  margin: 0.15rem 0 1.25rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(129, 112, 90, 0.15);
}
.republic-page .lunyu-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}
.republic-page .lunyu-heading {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: #1c355e;
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  font-weight: 700;
}
.republic-page .lunyu-section-sub {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #7a6f63;
  text-transform: uppercase;
}
.republic-page .lunyu-lead {
  margin: 0 0 0.75rem;
  font-size: 12px;
  line-height: 1.72;
  color: #5d5347;
}
.republic-page .lunyu-subnav { margin: 0 0 0.9rem; }
.republic-page .lunyu-tags-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a7c6f;
  margin: 0 0 0.35rem;
}
.republic-page .lunyu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin-bottom: 0.7rem;
  align-items: center;
}
.republic-page .lunyu-tag {
  border: 1px solid rgba(129, 112, 90, 0.22);
  background: #fffdf9;
  color: #5b5146;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.55rem;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), color 0.2s;
}
.republic-page .lunyu-tag:hover {
  border-color: #8f2a24;
  color: #7e2d24;
}
.republic-page .lunyu-tag.active {
  background: rgba(143, 42, 36, 0.09);
  border-color: rgba(143, 42, 36, 0.42);
  color: #7e2d24;
  font-weight: 700;
}
.republic-page .lunyu-theme-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 720px) {
  .republic-page .lunyu-theme-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .republic-page .lunyu-theme-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.republic-page .lunyu-theme-card {
  border: 1px solid rgba(129, 112, 90, 0.18);
  background: #fcfaf5;
  padding: 0.55rem 0.62rem 0.58rem 0.72rem;
  position: relative;
  text-align: left;
  cursor: pointer;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.2s var(--ease-out), border-color 0.2s;
}
.republic-page .lunyu-theme-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--theme-accent, #8f2a24);
}
.republic-page .lunyu-theme-card:hover {
  border-color: rgba(143, 42, 36, 0.32);
}
.republic-page .lunyu-theme-card--active {
  box-shadow: 0 0 0 1px rgba(143, 42, 36, 0.2);
  border-color: rgba(143, 42, 36, 0.38);
  background: #fffdf9;
}
.republic-page .lunyu-theme-title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  display: block;
  letter-spacing: 0.02em;
}
.republic-page .lunyu-theme-desc {
  margin: 0.22rem 0 0;
  font-size: 11px;
  color: #5f5549;
  line-height: 1.55;
  display: block;
}
.republic-page .lunyu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .republic-page .lunyu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .republic-page .lunyu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.republic-page .lunyu-card {
  border: 1px solid rgba(129, 112, 90, 0.18);
  background: #fcfaf5;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s var(--ease-out);
}
.republic-page .lunyu-card:hover {
  box-shadow: 0 8px 24px rgba(28, 53, 94, 0.08);
}
.republic-page .lunyu-card .pic {
  aspect-ratio: 16 / 10;
  background: #e8e2d8;
  position: relative;
  overflow: hidden;
}
.republic-page .lunyu-card .pic.fsmag-cover-frame {
  max-height: min(220px, 52vw);
}
.republic-page .lunyu-card .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.republic-page .lunyu-card-body {
  padding: 0.65rem 0.72rem 0.8rem;
}
.republic-page .lunyu-card-title {
  margin: 0 0 0.35rem;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #111;
  line-height: 1.35;
  font-family: "Noto Serif SC", serif;
}
.republic-page .lunyu-card-dek {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: #5d5347;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.republic-page .lunyu-card-date {
  margin-top: 0.45rem;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #8a7c6f;
}
.republic-page .lunyu-empty {
  margin: 0;
  padding: 1rem;
  font-size: 13px;
  color: #857463;
  background: #faf6f0;
  border: 1px dashed rgba(129, 112, 90, 0.25);
}

/* ── 本期选读 trio（1 大 2 小）─────────────────────────────── */
.republic-page .trio {
  display: grid;
  gap: 0;
  margin-bottom: 0;
  border: 1px solid rgba(128, 110, 88, 0.18);
  background: #fdfbf7;
}
@media (min-width: 720px) {
  .republic-page .trio {
    grid-template-columns: minmax(0, 1.72fr) minmax(0, 0.88fr);
    grid-template-rows: auto auto;
  }
  .republic-page .trio-card.large { grid-column: 1; grid-row: 1 / span 2; }
  .republic-page .trio-card.small:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  .republic-page .trio-card.small:nth-of-type(3) { grid-column: 2; grid-row: 2; }
}
.republic-page .trio-card {
  background: var(--paper-2);
  overflow: hidden;
  border-right: 1px solid rgba(128, 110, 88, 0.15);
  border-bottom: 1px solid rgba(128, 110, 88, 0.15);
  transition: background 0.25s var(--ease-out);
  display: block;
  text-decoration: none;
  color: inherit;
}
.republic-page .trio-card:hover { background: #fff; }
.republic-page .trio-card .pic {
  position: relative;
  background: #0c0c0c;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.republic-page .trio-card.large .pic {
  aspect-ratio: 3 / 2;
  max-height: 250px;
}
.republic-page .trio-card.large .pic.fsmag-cover-frame {
  max-height: 250px;
}
.republic-page .trio-card.small .pic {
  min-height: 86px;
}
.republic-page .trio-card.small .pic.fsmag-cover-frame {
  max-height: min(200px, 48vw);
}
.republic-page .trio-card .pic.fsmag-cover-frame {
  max-height: min(240px, 56vw);
}
.republic-page .trio-card .pic img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.republic-page .trio-card .pic.fsmag-cover-frame .fsmag-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.republic-page .trio-body {
  padding: 0.55rem 0.65rem 0.7rem;
}
.republic-page .trio-date {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #7c6e60;
  margin-bottom: 0.2rem;
}
.republic-page .trio-card.large .trio-title,
.republic-page .trio-card.small .trio-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.46;
  margin: 0;
  letter-spacing: 0.04em;
}
.republic-page .trio-dek {
  font-size: 11px;
  color: #6b6053;
  line-height: 1.6;
  margin: 0;
}

/* ── 下半区 + Topic Strips（人物志/风物志/联大/李庄/潜伏）────── */
.republic-page .read-lower {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.republic-page .topic-strip {
  --strip-accent: #8f2a24;
  margin-top: 0.62rem;
  padding: 0.52rem 0.58rem 0.58rem;
  border: 1px solid rgba(128, 110, 88, 0.18);
  background: #f7f3eb;
  position: relative;
  border-radius: 0;
}
.republic-page .topic-strip::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  /* 居中在标题字高的上半 */
  top: 1.1rem;
  width: 4px;
  height: 1.6rem;
  border-radius: 99px;
  background: var(--strip-accent);
}
.republic-page .topic-strip::after {
  content: "";
  position: absolute;
  left: 1.08rem;
  right: 0.58rem;
  /* 移到标题下方（h2 约 36px 高 + 上 padding 0.52rem，避免与文字交叉）*/
  top: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--strip-accent) 45%, transparent), transparent 68%);
}
@media (max-width: 719px) {
  .republic-page .topic-strip::after {
    top: 3rem;  /* 移动端 h2 28px */
  }
}
.republic-page .topic-strip:nth-of-type(1) { background: #f8f5ee; }
.republic-page .topic-strip:nth-of-type(2) { background: #f6f7f3; }
.republic-page .topic-strip:nth-of-type(3) { background: #f2f5f8; }
.republic-page .topic-strip:nth-of-type(4) { background: #f8f6ef; }
.republic-page .topic-strip:nth-of-type(5) { background: #f6f1f3; }
.republic-page .topic-strip[data-tone="fig"] { --strip-accent: #8f2a24; }
.republic-page .topic-strip[data-tone="scn"] { --strip-accent: #355a8a; }
.republic-page .topic-strip[data-tone="ld"]  { --strip-accent: #6b7280; }
.republic-page .topic-strip[data-tone="lz"]  { --strip-accent: #a16207; }
.republic-page .topic-strip[data-tone="lk"]  { --strip-accent: #7c3a58; }

.republic-page .topic-strip .section-head {
  border-bottom: none;
  margin-bottom: 0.9rem;
  padding: 0 0.25rem 0 0.58rem;
  justify-content: space-between;
}
.republic-page .topic-strip h2 {
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: #111;
}
@media (min-width: 720px) {
  .republic-page .topic-strip h2 { font-size: 36px; }
}
.republic-page .topic-strip .section-head span {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(143, 42, 36, 0.85);
}
.republic-page .topic-strip h2 a,
.republic-page .topic-strip .section-head span a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.republic-page .topic-strip h2 a:hover,
.republic-page .topic-strip .section-head span a:hover {
  color: var(--strip-accent, #8f2a24);
  border-bottom-color: rgba(143, 42, 36, 0.35);
}

/* rail（人物志/风物志/潜伏）*/
.republic-page .rail-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.42rem;
}
@media (min-width: 720px) {
  .republic-page .rail-track {
    grid-template-columns: repeat(4, 1fr);
  }
}
.republic-page .rail-card {
  border-radius: 2px;
  border: 1px solid rgba(127, 109, 87, 0.18);
  background: #fffdf9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}
.republic-page .rail-card:hover {
  box-shadow: 0 8px 18px rgba(28, 53, 94, 0.08);
}
.republic-page .rail-thumb {
  aspect-ratio: 16 / 10;
  max-height: min(220px, 42vw);
  background: #ded5c8;
  overflow: hidden;
  position: relative;
}
.republic-page .rail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.republic-page .rail-card:hover .rail-thumb img {
  transform: scale(1.035);
}
.republic-page .rail-meta {
  padding: 0.34rem 0.46rem 0.42rem;
  border-top: 1px solid rgba(127, 109, 87, 0.16);
  background: #fffdf9;
}
.republic-page .rail-kicker {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #8a7c6f;
  text-transform: uppercase;
}
.republic-page .rail-title {
  font-size: 12px;
  line-height: 1.45;
  color: #111;
  margin-top: 0.1rem;
}
.republic-page .rail-empty {
  padding: 12px;
  color: #857463;
  font-size: 13px;
  margin: 0;
}

/* 联大 / 李庄：左侧圆形头像 + 右侧 featured cards */
.republic-page .rep-topic-layout {
  display: grid;
  gap: 0.75rem 1rem;
  margin-top: 0.35rem;
  align-items: start;
}
@media (min-width: 840px) {
  .republic-page .rep-topic-layout {
    grid-template-columns: minmax(132px, 168px) minmax(0, 1fr);
  }
}
.republic-page .rep-topic-avatar {
  margin: 0;
  padding: 0.5rem 0.35rem 0.65rem;
  background: linear-gradient(180deg, #faf4e9, #f3ecde);
  border: 1px solid rgba(128, 110, 88, 0.18);
  border-radius: 4px;
  text-align: center;
  grid-column: 1 / -1;
  align-self: start;
}
@media (min-width: 840px) {
  .republic-page .rep-topic-avatar {
    grid-column: 1;
    grid-row: 1;
  }
}
.republic-page .rep-topic-avatar-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  margin: 0 auto;
  border: 2px solid rgba(176, 112, 102, 0.55);
  box-shadow: 0 2px 10px rgba(28, 53, 94, 0.06);
}
.republic-page .rep-topic-avatar--lizhuang .rep-topic-avatar-img {
  object-position: center 12%;
}
.republic-page .rep-topic-avatar-name {
  margin: 0.42rem 0 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #6e1f20;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
}
.republic-page .rep-topic-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.42rem;
  min-width: 0;
  grid-column: 1 / -1;
}
@media (min-width: 640px) {
  .republic-page .rep-topic-featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 840px) {
  .republic-page .rep-topic-featured {
    grid-column: 2;
    grid-row: 1;
  }
}
.republic-page .rep-topic-rail--full {
  grid-column: 1 / -1;
  margin-top: 0.15rem;
}
.republic-page .rep-topic-empty {
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-size: 12px;
  line-height: 1.65;
  color: #857463;
  background: #faf6f0;
  border: 1px dashed rgba(129, 112, 90, 0.28);
}

/* ── footer ───────────────────────────────────────────────── */
.republic-page .republic-foot {
  margin-top: 1rem;
  padding: 0.9rem var(--fsmag-space-read-pad) 1.35rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #7a6f63;
  max-width: var(--fsmag-shell-max);
  margin-left: auto;
  margin-right: auto;
}
