/* ==========================================================================
   iliuye.com — 江湖夜雨十年灯 内页（夜雨 / 孤灯）
   深靛蓝底 / 琥珀灯光 / 雨线与十年刻度；不与其他页共用骨架。
   ========================================================================== */

.page-jianghu {
  --j-bg: #0b1220;
  --j-deep: #070d18;
  --j-panel: #101a2b;
  --j-ink: #e9e2d2;
  --j-muted: #8e9cb0;
  --j-amber: #f0b45a;
  --j-amber-soft: #f7d49a;
  --j-rain: #8fa4c4;
  --j-line: rgba(240, 180, 90, .2);
  --j-line-soft: rgba(240, 180, 90, .09);
  background: var(--j-bg);
  color: var(--j-ink);
}
.page-jianghu .site-footer { background: #050a12; }

/* ---------- Hero ---------- */
.jh-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 0 62px;
  border-bottom: 1px solid var(--j-line);
  background:
    radial-gradient(circle at 74% 28%, rgba(240, 180, 90, .13), transparent 46%),
    var(--j-bg);
}
.jh-rain {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(105deg, transparent 0 48%, rgba(143, 164, 196, .14) 48% 49%, transparent 49% 100%);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  opacity: .5;
  pointer-events: none;
}
.jh-lamp {
  position: absolute;
  right: 16%;
  bottom: 8%;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 180, 90, .18), transparent 70%);
  pointer-events: none;
}
.jh-crumb { position: relative; padding-bottom: 28px; color: var(--j-muted); }
.jh-crumb span:last-child { color: var(--j-amber); opacity: 1; }
.jh-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.jh-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2.6px;
  color: var(--j-amber);
}
.jh-hero h1 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 2px;
  color: #f5ecd9;
}
.jh-hero h1 em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-family: var(--font);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--j-muted);
}
.jh-lead {
  margin-top: 20px;
  max-width: 520px;
  font-size: 15px;
  line-height: 2.1;
  color: #b9c3d2;
}
.jh-lead strong { color: var(--j-amber-soft); }
.jh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.jh-actions .btn-primary { background: var(--j-amber); color: #1b1305; border-radius: 2px; box-shadow: 0 12px 26px rgba(240, 180, 90, .18); }
.jh-actions .btn-primary:hover { background: #f5c777; }
.jh-actions .btn-room { border-radius: 2px; color: #e9e2d2; border-color: rgba(255, 255, 255, .28); }
.jh-actions .btn-room b { color: var(--j-amber); }
.jh-figure {
  padding: 9px;
  background: #070d18;
  border: 1px solid var(--j-line);
  box-shadow: 0 30px 64px rgba(0, 0, 0, .5);
}
.jh-figure img { width: 100%; }
.jh-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #6f7f99;
}

/* ---------- 诗作信息 ---------- */
.jh-meta { background: var(--j-deep); border-bottom: 1px solid var(--j-line); }
.jh-meta-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.jh-meta-inner > div { padding: 15px 16px; border-left: 1px solid var(--j-line-soft); }
.jh-meta-inner > div:first-child { border-left: 0; padding-left: 0; }
.jh-meta-inner span { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: 1.8px; color: #6f7f99; }
.jh-meta-inner strong { display: block; margin-top: 3px; font-family: var(--serif); font-size: 13.5px; font-weight: 600; color: #eadfc8; }

/* ---------- section ---------- */
.jh-section { padding: 74px 0; }
.jh-section + .jh-section { border-top: 1px solid var(--j-line-soft); }
.jh-section.is-night { background: var(--j-deep); }
.jh-section .container.narrow { max-width: 900px; }
.jh-head { max-width: 760px; margin-bottom: 36px; }
.jh-head.center { margin-inline: auto; text-align: center; }
.jh-head h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(27px, 3.1vw, 38px);
  line-height: 1.34;
  font-weight: 700;
  color: #f5ecd9;
}
.jh-head p { margin-top: 10px; font-size: 13.5px; line-height: 1.95; color: var(--j-muted); }

/* ---------- 全诗 ---------- */
.poem-night {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 42px 40px;
  background: #0d1626;
  border: 1px solid var(--j-line);
  box-shadow: 0 26px 54px rgba(0, 0, 0, .4);
}
.poem-night-lines p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 2.1;
  letter-spacing: 2px;
  color: #cfd6e0;
  text-align: center;
}
.poem-night-lines p.is-key { color: var(--j-amber-soft); font-weight: 600; }
.night-seal {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--j-amber);
  color: var(--j-amber);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 1px;
  writing-mode: vertical-rl;
  transform: rotate(3deg);
  opacity: .8;
}
.jh-source { margin-top: 18px; text-align: center; font-size: 11.5px; color: #6f7f99; }

/* ---------- 位置 ---------- */
.jh-position-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.jh-position-grid h2 { margin-top: 10px; font-family: var(--serif); font-size: clamp(27px, 3.1vw, 38px); font-weight: 700; color: #f5ecd9; }
.jh-position-grid > div > p { margin-top: 14px; font-size: 14px; line-height: 2.05; color: #b9c3d2; }
.position-night { background: var(--j-panel); border: 1px solid var(--j-line-soft); }
.pn-row { display: flex; align-items: baseline; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--j-line-soft); }
.pn-row:last-child { border-bottom: 0; }
.pn-row span { flex: none; width: 62px; font-family: var(--mono); font-size: 9px; letter-spacing: 1.2px; color: #6f7f99; }
.pn-row p { font-family: var(--serif); font-size: 15px; color: #b9c3d2; }
.pn-row.is-key { background: rgba(240, 180, 90, .1); border-left: 3px solid var(--j-amber); }
.pn-row.is-key p { color: var(--j-amber-soft); font-weight: 600; }

/* ---------- 逐句 ---------- */
.jh-gloss { border-top: 1px solid var(--j-line); }
.jh-gloss > div { display: grid; grid-template-columns: 210px 1fr; gap: 26px; padding: 13px 0; border-bottom: 1px solid var(--j-line-soft); }
.jh-gloss dt { font-family: var(--serif); font-size: 16.5px; font-weight: 600; color: #eadfc8; letter-spacing: 1px; }
.jh-gloss dd { font-size: 13px; line-height: 1.95; color: #b9c3d2; }
.jh-gloss > div.is-key dt { color: var(--j-amber-soft); }

/* ---------- 意象 ---------- */
.image-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--j-line); border: 1px solid var(--j-line); }
.image-grid article { padding: 24px 20px; background: var(--j-panel); text-align: center; }
.img-glyph {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto 12px;
  border: 1px solid rgba(240, 180, 90, .4);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--j-amber);
  background: rgba(240, 180, 90, .06);
}
.image-grid h3 { font-family: var(--serif); font-size: 18px; font-weight: 700; color: #f5ecd9; letter-spacing: 2px; }
.image-grid p { margin-top: 6px; font-size: 12px; line-height: 1.9; color: var(--j-muted); text-align: left; }
.jh-quote {
  max-width: 720px;
  margin: 30px auto 0;
  padding: 22px 26px;
  border-left: 3px solid var(--j-amber);
  background: rgba(240, 180, 90, .05);
}
.jh-quote p { font-family: var(--serif); font-size: 19px; line-height: 1.9; color: #eadfc8; }
.jh-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 11px; color: #6f7f99; }

/* ---------- 结构 ---------- */
.jh-struct-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.jh-struct-grid h2 { margin-top: 10px; font-family: var(--serif); font-size: clamp(27px, 3.1vw, 38px); font-weight: 700; color: #f5ecd9; }
.jh-struct-grid > div > p { margin-top: 14px; font-size: 14px; line-height: 2.05; color: #b9c3d2; }
.struct-night { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sn-col { padding: 24px 20px; text-align: center; border: 1px solid var(--j-line-soft); }
.sn-col.is-warm { background: #f3e6cf; }
.sn-col.is-cold { background: #0d1626; }
.sn-col span { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: #8a7a5a; }
.sn-col.is-cold span { color: #6f7f99; }
.sn-col b { display: block; margin-top: 8px; font-family: var(--serif); font-size: 15px; color: #2f2418; }
.sn-col.is-cold b { color: var(--j-amber-soft); }
.sn-col em { display: block; margin-top: 8px; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; color: #9d2f3f; }
.sn-col.is-cold em { color: var(--j-amber); }

/* ---------- 背景 ---------- */
.context-night { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--j-line); border: 1px solid var(--j-line); }
.context-night > div { padding: 20px 18px; background: var(--j-panel); }
.context-night span { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: var(--j-amber); }
.context-night p { margin-top: 6px; font-size: 12.5px; line-height: 1.9; color: var(--j-muted); }

/* ---------- 表 ---------- */
.jh-table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--j-line); background: var(--j-panel); }
.jh-table { min-width: 560px; font-size: 13px; }
.jh-table th, .jh-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--j-line-soft); }
.jh-table tbody tr:last-child th, .jh-table tbody tr:last-child td { border-bottom: 0; }
.jh-table thead th { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.4px; font-weight: 400; color: #1b1305; background: var(--j-amber); }
.jh-table tbody th { font-family: var(--serif); color: #eadfc8; font-weight: 600; white-space: nowrap; }
.jh-table tbody td { color: #b9c3d2; }

/* ---------- 今用 ---------- */
.modern-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.modern-grid article { padding: 22px; background: var(--j-panel); border: 1px solid var(--j-line-soft); }
.modern-grid span { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: var(--j-amber); }
.modern-grid h3 { margin-top: 7px; font-family: var(--serif); font-size: 18px; font-weight: 700; color: #f5ecd9; }
.modern-grid p { margin-top: 5px; font-size: 12.5px; line-height: 1.9; color: var(--j-muted); }

/* ---------- 上句 ---------- */
.jh-pair-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.jh-pair-grid h2 { margin-top: 10px; font-family: var(--serif); font-size: clamp(27px, 3.1vw, 38px); font-weight: 700; color: #f5ecd9; }
.jh-pair-grid > div > p { margin-top: 14px; font-size: 14px; line-height: 2.05; color: #b9c3d2; }
.jh-pair-link {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--j-amber);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--j-amber-soft);
}
.pair-warm {
  padding: 30px 26px;
  background: #f3e6cf;
  color: #43262a;
  text-align: center;
}
.pair-warm span { font-family: var(--mono); font-size: 9px; letter-spacing: 2.4px; color: #8a6a44; }
.pair-warm b { display: block; margin-top: 10px; font-family: var(--serif); font-size: 24px; letter-spacing: 3px; }
.pair-warm em { display: block; margin-top: 10px; font-style: normal; font-family: var(--mono); font-size: 8.5px; letter-spacing: 1.6px; color: #9d2f3f; }

/* ---------- 折叠 ---------- */
.page-jianghu .acc-list { border-top-color: var(--j-line); }
.page-jianghu .acc-item { border-bottom-color: var(--j-line-soft); }
.page-jianghu .acc-trigger { font-family: var(--serif); font-size: 16.5px; font-weight: 600; color: #eadfc8; }
.page-jianghu .acc-trigger::after { color: #6f7f99; }
.page-jianghu .acc-item.is-open .acc-trigger::after { color: var(--j-amber); }
.page-jianghu .acc-panel { color: var(--j-muted); }
.page-jianghu .acc-panel p { font-size: 13px; line-height: 1.95; }

/* ---------- 相关 ---------- */
.jh-rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--j-line); border: 1px solid var(--j-line); }
.jh-rel-grid a { padding: 20px 22px; background: var(--j-panel); transition: background .2s; }
.jh-rel-grid a:hover { background: #142033; }
.jh-rel-grid span { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: #6f7f99; }
.jh-rel-grid h3 { margin-top: 7px; font-family: var(--serif); font-size: 17px; font-weight: 700; color: #f5ecd9; }
.jh-rel-grid p { margin-top: 4px; font-size: 12px; color: var(--j-muted); }

/* ---------- CTA ---------- */
.jh-cta { padding: 62px 0; background: #0d1626; border-top: 1px solid var(--j-line); }
.jh-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.jh-cta h2 { margin-top: 10px; font-family: var(--serif); font-size: clamp(24px, 3vw, 35px); font-weight: 700; color: #f5ecd9; }
.jh-cta p { margin-top: 10px; max-width: 560px; font-size: 13.5px; color: var(--j-muted); }
.jh-cta p strong { color: var(--j-amber-soft); }
.jh-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.jh-cta-actions .btn-primary { background: var(--j-amber); color: #1b1305; border-radius: 2px; box-shadow: none; }
.jh-cta-actions .btn-room { border-radius: 2px; color: #e9e2d2; border-color: rgba(255, 255, 255, .28); }
.jh-cta-actions .btn-room b { color: var(--j-amber); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .jh-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .jh-figure { max-width: 640px; }
  .jh-meta-inner { grid-template-columns: repeat(3, 1fr); }
  .jh-meta-inner > div:nth-child(4) { border-left: 0; }
  .jh-position-grid, .jh-struct-grid, .jh-pair-grid { grid-template-columns: 1fr; gap: 26px; }
  .image-grid { grid-template-columns: 1fr 1fr; }
  .context-night { grid-template-columns: 1fr 1fr; }
  .modern-grid { grid-template-columns: 1fr; }
  .jh-gloss > div { grid-template-columns: 170px 1fr; gap: 18px; }
  .jh-rel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .jh-section { padding: 50px 0; }
  .jh-hero { padding: 20px 0 46px; }
  .jh-hero h1 { letter-spacing: 1px; }
  .jh-actions { flex-direction: column; }
  .jh-actions .btn { width: 100%; }
  .jh-meta-inner { grid-template-columns: 1fr 1fr; }
  .jh-meta-inner > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .poem-night { padding: 28px 18px; }
  .poem-night-lines p { font-size: 17px; letter-spacing: 1px; }
  .jh-gloss > div { grid-template-columns: 1fr; gap: 4px; }
  .image-grid { grid-template-columns: 1fr; }
  .context-night { grid-template-columns: 1fr; }
  .struct-night { grid-template-columns: 1fr; }
  .jh-cta-actions { width: 100%; }
  .jh-cta-actions .btn { width: 100%; }
}
