/* 方志诗文专题页 —— gz-shiwen.html 专属样式
   设计语言沿用 gz-zhanluan / gz-fuzhi / gz-jidu / gz-hequ：酸绿强调 + 像素数字 + CSS 竖线分隔（不用 U+00B7） */

/* ---------- 一、艺文谱系尺（先秦→清，五段） ---------- */
.gz-sh-line { margin: 0 0 30px; }
.gz-sh-line__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 26px 0 0;
  padding: 22px 0 0;
  border-top: 2px solid color-mix(in srgb, var(--wb-ink) 30%, transparent);
}
.gz-sh-line__track::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  right: 0;
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--wb-ink) 0 2px, transparent 2px 20%);
  opacity: .35;
}
.gz-sh-ln { position: relative; padding: 0 12px 0 0; }
.gz-sh-ln::before {
  content: "";
  position: absolute;
  top: -27px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wb-acid, var(--wb-ink));
}
.gz-sh-ln__era {
  display: block;
  color: var(--wb-ink);
  font-family: var(--wb-pixel, inherit);
  font-size: 12px;
  letter-spacing: .5px;
}
.gz-sh-ln__t { display: block; margin: 5px 0 6px; color: var(--wb-ink); font-size: 15px; font-weight: 700; line-height: 1.5; }
.gz-sh-ln__d { margin: 0; color: var(--wb-muted); font-size: 12.5px; line-height: 1.8; }
.gz-sh-ln__d b { color: var(--wb-ink); font-weight: 700; }
.gz-sh-ln--now .gz-sh-ln__t { color: var(--wb-accent, var(--wb-ink)); }

/* ---------- 二、总览 ---------- */
.gz-sh-overview {
  margin: 0 0 30px;
  padding: 20px 22px 18px;
  border: 1px solid var(--wb-line);
  border-radius: 10px;
  background: var(--wb-surface);
}
.gz-sh-h3 {
  margin: 30px 0 6px;
  padding-left: 10px;
  border-left: 4px solid var(--wb-accent, var(--wb-ink));
  color: var(--wb-ink);
  font-size: 17px;
  font-weight: 700;
}
.gz-sh-overview .gz-sh-h3 { margin-top: 0; }
.gz-sh-h4 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 22px 0 10px;
  color: var(--wb-ink);
  font-size: 14.5px;
  font-weight: 700;
}
.gz-sh-h4 em { color: var(--wb-muted); font-size: 12px; font-style: normal; font-weight: 400; }
.gz-sh-cap { margin: 0 0 16px; color: var(--wb-muted); font-size: 13.5px; line-height: 1.75; }
.gz-sh-cap b { color: var(--wb-ink); font-weight: 700; }
.gz-sh-note {
  margin: 14px 0 0;
  padding: 13px 15px;
  border-left: 4px solid var(--wb-acid, var(--wb-ink));
  border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--wb-ink) 3%, transparent);
  color: var(--wb-muted);
  font-size: 13px;
  line-height: 1.85;
}
.gz-sh-note b { color: var(--wb-ink); font-weight: 700; }

/* 题材 chip */
.gz-sh-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.gz-sh-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, var(--wb-line));
  background: color-mix(in srgb, var(--c) 9%, var(--wb-surface));
  color: var(--wb-ink);
  font-size: 13px;
  font-weight: 600;
}
.gz-sh-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

/* 分布条（题材密度 / 县域 / 朝代） */
.gz-sh-ov { margin: 0; padding: 0; list-style: none; }
.gz-sh-ov li {
  display: grid;
  grid-template-columns: 96px 1fr 44px;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
.gz-sh-ov__k { color: var(--wb-ink); font-size: 13px; font-weight: 600; }
.gz-sh-ov__bar {
  position: relative;
  height: 14px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--wb-ink) 6%, transparent);
  overflow: hidden;
}
.gz-sh-ov__bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--wb-accent, var(--wb-ink)), color-mix(in srgb, var(--wb-accent, var(--wb-ink)) 70%, #fff));
}
.gz-sh-ov li b {
  color: var(--wb-ink);
  font-family: var(--wb-pixel, inherit);
  font-size: 12.5px;
  font-weight: 700;
  text-align: right;
}
.gz-sh-ov li.is-top .gz-sh-ov__k { color: var(--wb-accent, var(--wb-ink)); }
.gz-sh-ov li.is-top .gz-sh-ov__bar > i { background: linear-gradient(90deg, var(--wb-acid, var(--wb-ink)), color-mix(in srgb, var(--wb-acid, var(--wb-ink)) 60%, #fff)); }
.gz-sh-ov--kind li { grid-template-columns: 106px 1fr 44px; }
.gz-sh-ov--kind .gz-sh-ov__bar > i { background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 62%, #fff)); }

/* 九志来源表 */
.gz-sh-src { margin: 4px 0 0; padding: 0; list-style: none; }
.gz-sh-src li {
  display: grid;
  grid-template-columns: 132px 1fr 92px;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--wb-line);
}
.gz-sh-src li:last-child { border-bottom: 0; }
.gz-sh-src__n { color: var(--wb-ink); font-size: 13px; font-weight: 700; }
.gz-sh-src__j { color: var(--wb-muted); font-size: 12.5px; line-height: 1.7; }
.gz-sh-src__c {
  color: var(--wb-ink);
  font-family: var(--wb-pixel, inherit);
  font-size: 12.5px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.gz-sh-src li.is-top .gz-sh-src__n { color: var(--wb-accent, var(--wb-ink)); }

/* 作者榜 */
.gz-sh-au { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.gz-sh-au li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--wb-line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--wb-ink) 3%, transparent);
  color: var(--wb-ink);
  font-size: 12.5px;
}
.gz-sh-au li b { font-family: var(--wb-pixel, inherit); font-size: 12px; color: var(--wb-accent, var(--wb-ink)); }
.gz-sh-au li.is-top { border-color: color-mix(in srgb, var(--wb-acid, var(--wb-ink)) 55%, var(--wb-line)); }

/* ---------- 三、前代名篇（卡片） ---------- */
.gz-sh-mp { margin: 0 0 30px; }
.gz-sh-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
  margin: 16px 0 0;
}
.gz-sh-card {
  display: flex;
  flex-direction: column;
  padding: 15px 17px 13px;
  border: 1px solid var(--wb-line);
  border-top: 3px solid var(--c, var(--wb-accent, var(--wb-ink)));
  border-radius: 0 10px 10px 0;
  background: var(--wb-surface);
  transition: border-color .2s, transform .2s;
}
.gz-sh-card:hover { border-color: var(--wb-acid, var(--wb-ink)); transform: translateY(-2px); }
.gz-sh-card__hd {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 4px;
}
.gz-sh-card__t { color: var(--wb-ink); font-size: 15px; font-weight: 700; }
.gz-sh-card__au { color: var(--wb-muted); font-size: 12px; }
.gz-sh-card__tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--c, var(--wb-accent, var(--wb-ink))) 14%, transparent);
  color: var(--wb-ink);
  font-size: 11px;
  font-weight: 600;
}
.gz-sh-card__text {
  margin: 6px 0 8px;
  padding: 9px 12px;
  border-left: 3px solid color-mix(in srgb, var(--c, var(--wb-accent, var(--wb-ink))) 50%, transparent);
  border-radius: 0 6px 6px 0;
  background: color-mix(in srgb, var(--wb-ink) 3%, transparent);
  color: var(--wb-ink);
  font-size: 13px;
  line-height: 2;
  letter-spacing: .2px;
}
.gz-sh-card__note { flex: 1 1 auto; margin: 0; color: var(--wb-muted); font-size: 12.5px; line-height: 1.8; }
.gz-sh-card__note b { color: var(--wb-ink); font-weight: 700; }
.gz-sh-card__ft {
  margin-top: auto;
  padding-top: 9px;
  color: var(--wb-muted);
  font-size: 11px;
  opacity: .85;
}

/* ---------- 四、诗选（按题材分组） ---------- */
.gz-sh-po { margin: 0 0 30px; }
.gz-sh-po__grp { margin: 0 0 26px; }
.gz-sh-po__g {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: var(--wb-ink);
  font-size: 15px;
  font-weight: 700;
}
.gz-sh-po__g i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.gz-sh-po__g em { color: var(--wb-muted); font-size: 12px; font-style: normal; font-weight: 400; }

/* ---------- 五、文录（表） ---------- */
.gz-sh-pr { margin: 0 0 30px; }
.gz-sh-pr__tablewrap { overflow-x: auto; margin: 4px 0 0; }
.gz-sh-pr__table { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--wb-muted); }
.gz-sh-pr__table th, .gz-sh-pr__table td {
  padding: 8px 11px;
  border-bottom: 1px solid var(--wb-line);
  text-align: left;
  vertical-align: top;
}
.gz-sh-pr__table thead th {
  position: sticky;
  top: 0;
  background: var(--wb-surface);
  color: var(--wb-ink);
  font-size: 12.5px;
  font-weight: 700;
  border-bottom: 2px solid color-mix(in srgb, var(--wb-ink) 25%, transparent);
}
.gz-sh-pr__table .dm { white-space: nowrap; color: var(--wb-ink); font-size: 12px; font-weight: 600; }
.gz-sh-pr__table .tt { color: var(--wb-ink); font-size: 12.5px; font-weight: 600; min-width: 170px; }
.gz-sh-pr__table .au { white-space: nowrap; color: var(--wb-muted); font-size: 12px; }
.gz-sh-pr__table .gn { white-space: nowrap; text-align: center; }
.gz-sh-pr__table .gn span {
  display: inline-block;
  min-width: 22px;
  padding: 1px 6px;
  border: 1px solid var(--wb-line);
  border-radius: 3px;
  color: var(--wb-ink);
  font-size: 11.5px;
}
.gz-sh-pr__table .nt { color: var(--wb-muted); line-height: 1.75; min-width: 260px; }
.gz-sh-pr__table .nt b { color: var(--wb-ink); font-weight: 700; }
.gz-sh-pr__table .ft { white-space: nowrap; }
.gz-sh-pr__table .ft i { font-style: normal; color: var(--wb-muted); font-size: 11px; }

/* ---------- 六、艺文存目 ---------- */
.gz-sh-ct { margin: 0 0 30px; }
.gz-sh-ct__tablewrap { overflow-x: auto; margin: 4px 0 0; max-height: 620px; overflow-y: auto; }
.gz-sh-ct__table { width: 100%; border-collapse: collapse; font-size: 12.5px; color: var(--wb-muted); }
.gz-sh-ct__table th, .gz-sh-ct__table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--wb-line);
  text-align: left;
  vertical-align: top;
}
.gz-sh-ct__table thead th {
  position: sticky;
  top: 0;
  background: var(--wb-surface);
  color: var(--wb-ink);
  font-size: 12px;
  font-weight: 700;
  border-bottom: 2px solid color-mix(in srgb, var(--wb-ink) 25%, transparent);
}
.gz-sh-ct__table .dm { white-space: nowrap; color: var(--wb-ink); font-size: 12px; font-weight: 600; }
.gz-sh-ct__table .tt { color: var(--wb-ink); font-size: 12.5px; }
.gz-sh-ct__table .au { white-space: nowrap; color: var(--wb-muted); font-size: 11.5px; }
.gz-sh-ct__table .yr { white-space: nowrap; color: var(--wb-muted); font-size: 11.5px; font-family: var(--wb-pixel, inherit); }
.gz-sh-ct__table .gn { white-space: nowrap; text-align: center; color: var(--wb-ink); font-size: 11.5px; }

/* ---------- 七、深度解析 ---------- */
.gz-sh-deep {
  margin: 30px 0 0;
  padding: 22px 22px 18px;
  border: 1px solid var(--wb-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--wb-acid, var(--wb-ink)) 6%, var(--wb-surface));
}
.gz-sh-deep__hd { margin: 0 0 16px; }
.gz-sh-deep__badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 20px;
  background: var(--wb-acid, var(--wb-ink));
  color: var(--wb-on-acid, var(--wb-ink));
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
}
.gz-sh-deep__t { margin: 12px 0 8px; color: var(--wb-ink); font-size: 18px; font-weight: 800; }
.gz-sh-deep__cap { margin: 0; color: var(--wb-muted); font-size: 13.5px; line-height: 1.8; }
.gz-sh-deep__cap b { color: var(--wb-ink); font-weight: 700; }
.gz-sh-deep__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin: 16px 0 0;
}
.gz-sh-deep__c {
  padding: 14px 16px;
  border: 1px solid var(--wb-line);
  border-radius: 10px;
  background: var(--wb-surface);
}
.gz-sh-deep__c h5 { margin: 0 0 7px; color: var(--wb-ink); font-size: 14.5px; font-weight: 700; }
.gz-sh-deep__c h5 em { font-style: normal; color: var(--wb-acid, var(--wb-ink)); margin-right: 6px; }
.gz-sh-deep__c p { margin: 0; color: var(--wb-muted); font-size: 13px; line-height: 1.85; }
.gz-sh-deep__c p b { color: var(--wb-ink); font-weight: 700; }
.gz-sh-deep__hl { margin: 20px 0 0; }
.gz-sh-deep__hl-t { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--wb-ink); font-size: 15px; font-weight: 700; }
.gz-sh-deep__hl-t span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--wb-ink);
  color: var(--wb-surface);
  font-size: 12px;
}
.gz-sh-deep__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.gz-sh-deep__cell {
  padding: 14px 14px;
  border: 1px solid var(--wb-line);
  border-radius: 10px;
  background: var(--wb-surface);
}
.gz-sh-deep__cell b {
  display: block;
  color: var(--wb-ink);
  font-family: var(--wb-pixel, inherit);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
}
.gz-sh-deep__cell span { display: block; margin: 6px 0 4px; color: var(--wb-ink); font-size: 12px; font-weight: 600; line-height: 1.5; }
.gz-sh-deep__cell em { display: block; color: var(--wb-muted); font-size: 11.5px; font-style: normal; line-height: 1.6; }
.gz-sh-deep__hl-note { margin: 14px 0 0; color: var(--wb-muted); font-size: 13px; line-height: 1.9; }
.gz-sh-deep__hl-note b { color: var(--wb-ink); font-weight: 700; }

/* ---------- 窄屏适配 ---------- */
@media (max-width: 760px) {
  .gz-sh-line__track { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .gz-sh-line__track::before { background: repeating-linear-gradient(90deg, var(--wb-ink) 0 2px, transparent 2px 25%); }
  .gz-sh-ov li, .gz-sh-ov--kind li { grid-template-columns: 78px 1fr 40px; }
  .gz-sh-src li { grid-template-columns: 104px 1fr 78px; gap: 8px; }
  .gz-sh-cards { grid-template-columns: 1fr; }
  /* 文录表：手机上藏「域」，作者允许换行、提要放开最小宽，让表格收进一屏 */
  .gz-sh-pr__table .ft, .gz-sh-pr__table .gn, .gz-sh-pr__table .dm { display: none; }
  .gz-sh-pr__table .au { white-space: normal; }
  .gz-sh-pr__table .nt { min-width: 0; }
  .gz-sh-ct__table .yr { display: none; }
  .gz-sh-ct__table .au { white-space: normal; }
  .gz-sh-deep__row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .gz-sh-line__track { grid-template-columns: 1fr; }
  .gz-sh-ln { padding-bottom: 14px; }
  .gz-sh-src li { grid-template-columns: 88px 1fr; }
  .gz-sh-src__c { grid-column: 1 / -1; text-align: left; }
  .gz-sh-deep__row { grid-template-columns: 1fr 1fr; }
  .gz-sh-deep__cell b { font-size: 20px; }
}

/* ========== 2026-10-13 专题卡片统一精修（全站统一：末行填满 + 等高 + 来源右下角高亮） ========== */
/* 1) 卡片流改 flex：末行自动拉伸填满整行（消除右下空缺），同行卡片等高 */
.gz-sh-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}
.gz-sh-card {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.gz-sh-card p { flex: 1 1 auto; }
/* 2) 来源统一右下角高亮胶囊 */
.gz-sh-card .gz-sh-card__ft {
  margin: auto 0 0;
  padding: 3px 11px;
  align-self: flex-end;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--wb-acid, var(--wb-ink)) 40%, var(--wb-line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--wb-acid, var(--wb-ink)) 12%, var(--wb-surface));
  color: var(--wb-on-acid, var(--wb-accent-deep, var(--wb-ink)));
  font-size: 11px;
  line-height: 1.7;
  opacity: 1;
}
.gz-sh-card .gz-sh-card__ft::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--wb-acid, var(--wb-ink));
}
html.dark .gz-sh-card .gz-sh-card__ft { color: var(--wb-ink); }
.gz-sh-deep__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
}
.gz-sh-deep__c {
  flex: 1 1 290px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.gz-sh-deep__c p { flex: 1 1 auto; }

/* 大号数字衬线体：数字（含千分位/百分号/年份连接符）→ Georgia；
   其余字符不命中 unicode-range，按原字体栈回退（汉字保持原样）。
   local() 缺字体（如安卓无 Georgia）时整段失效，安全回退。 */
@font-face {
  font-family: "WBNumSerif";
  font-style: normal;
  font-weight: 400 900;
  src: local("Georgia"), local("Times New Roman");
  unicode-range: U+0030-0039, U+002C, U+002E, U+002F, U+0025, U+002B,
                 U+002D, U+2013, U+2014, U+00D7;
}

/* ========== 2026-10-13 排版美化（步哥） ==========
   表格：字号 12.5→13.5、内边距→9/12px、行高→1.75、正文微字距 +0.01em；
   大号统计数字换 Georgia 系古典衬线（unicode-range 只命中数字，汉字字体不变）；
   三处行高过密的小标题放宽。 */
table[class*="table"] { font-size: 13.5px; }
table[class*="table"] th,
table[class*="table"] td {
  padding-top: 9px;
  padding-right: 12px;
  padding-bottom: 9px;
  padding-left: 12px;
  line-height: 1.75;
  letter-spacing: .01em;
}
table[class*="table"] thead th { padding-top: 10px; padding-bottom: 10px; letter-spacing: .04em; }
.wb-topic__seal b,
.wb-gz-hub__met b,
.wb-gz-facts__num,
.wb-gz-dyn__n b,
div[class*="-deep__cell"] b,
ul[class*="__figs"] b,
div[class*="fu__hi"] b,
div[class*="__lvhi"] b {
  font-family: "WBNumSerif", var(--wb-pixel, inherit);
}
[class*="-deep__t"] { line-height: 1.55; }
[class*="why__t"] { line-height: 1.55; }
[class*="ln__t"] { line-height: 1.6; }
