/* ==========================================================================
   China Expresses — Train detail page components
   --------------------------------------------------------------------------
   统一 12 个列车介绍页（src/trains/*.html）反复出现的碎片化内联样式。
   基准页面：丝路梦享 / 锦绣天府 / 白云号。

   加载顺序：build 时置于 style.20260831.css 之后，同优先级下覆盖全局
   section / h2 的默认值，让列车页拥有一致的视觉骨架。
   必要差异（每列车的独特章节、文案、表格数据、价格）保留在页面内联。
   ========================================================================== */

/* ---- 正文包裹：覆盖全局 section 的大 padding ---- */
.train-section { padding: clamp(48px, 7vw, 88px) 0; }

/* ---- 导语段落 ---- */
.train-lead {
  max-width: 68ch;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 2.5rem;
}
.train-lead--short { margin-bottom: 1.4rem; }

/* ---- 规格卡网格（关键参数 / At a Glance） ---- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  padding: 2rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  margin-bottom: 3rem;
}
.spec span {
  display: block;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.32rem;
  color: var(--gold-3);
  font-weight: 600;
}

/* ---- 章节标题（h2 + 金色短线） ---- */
.sec-title { margin: 3.5rem 0 1.75rem; }
.sec-title h2 {
  margin: 0 0 .9rem;
  font-family: var(--serif-display);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  color: var(--ink);
  line-height: 1.12;
}
.sec-title::after {
  content: '';
  display: block;
  width: 54px;
  height: 2px;
  background: var(--gold);
}

/* ---- 子标题（表格 / 小节前，h3 层级） ---- */
.sec-sub { margin: 2rem 0 1rem; font-size: 1.15rem; }

/* ---- 卡片网格（骨架统一；列宽是各车必要差异，用修饰类精确覆盖） ---- */
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.tgrid--240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tgrid--300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tgrid--320 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---- 卡片（仅容器骨架；卡内标题/正文文字排版保留页面内联，作为渐进优化项） ---- */
.tcard {
  background: var(--cream);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}
.tcard--paper { background: var(--paper-2); border: none; }
.tcard--accent { border-left: 3px solid var(--gold); }

/* ---- 目的地编号卡（容器复用 .tgrid，仅卡样式单列） ---- */
.dest-card {
  background: var(--cream);
  padding: 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  position: relative;
}
.dest-num {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-family: var(--serif-display);
  font-size: 2.3rem;
  color: var(--gold);
  opacity: .38;
  line-height: 1;
}
.dest-card h3 { font-size: 1.05rem; margin-bottom: .5rem; padding-right: 3rem; }
.dest-card p { font-size: .84rem; color: var(--text-2); line-height: 1.65; }

/* ---- 表格 ---- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  margin-bottom: .7rem;
}
.train-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
  background: var(--paper-2);
  min-width: 640px;
}
.train-table thead tr { background: var(--ink); color: var(--ivory); }
.train-table th { padding: .9rem 1rem; font-weight: 600; }
.train-table tbody tr { border-top: 1px solid var(--line-soft); }
.train-table td { padding: .8rem 1rem; }

/* ---- 图库 ---- */
.gallery-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-bottom: 1rem;
}
.gallery-zoom { display: block; }
.gallery-zoom img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
}

/* ---- FAQ（列车页 onclick 折叠结构） ---- */
.faq-list { margin-bottom: 3rem; }
.faq-list .faq { border-bottom: 1px solid var(--line-soft); }
.faq-list .faq-q { padding: 1.1rem 0; font-size: 1.05rem; }
.faq-list .faq-q span:last-child { font-size: 1.3rem; }
.faq-list .faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-list .faq-a-inner { padding: 0 0 1.5rem; color: var(--text-2); line-height: 1.7; font-size: 1rem; }

/* ---- 文末 CTA ---- */
.train-cta { text-align: center; padding: 2rem 0; }
.train-cta p { margin: 0 auto 2rem; max-width: 56ch; }
.train-cta .cta-row { display: inline-flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

/* ---- 独库提示 ---- */
.duku-note {
  background: #f5faf5;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid #c8e6c9;
  font-size: .84rem;
  color: #2e7d32;
  line-height: 1.65;
  margin: 0 0 2rem;
  max-width: 70ch;
}
.duku-note a { color: #2e7d32; text-decoration: underline; }

/* ---- 引用块 ---- */
.train-quote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.4rem;
  margin: 2rem 0 3rem;
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 68ch;
}
.train-quote p { font-family: var(--serif); font-size: 1.18rem; font-style: italic; color: var(--ink); line-height: 1.55; margin: 0; }
.train-quote footer { font-size: .78rem; color: var(--muted); margin-top: .6rem; }

/* ---- 图表 / 数据注脚 ---- */
.train-note { font-size: .78rem; color: var(--muted); }
