/* Tok桥 · 跨桥路线图 */

:root {
  --sea: #0d1b2a;
  --sea-deep: #08131f;
  --sea-up: #152b44;
  --gilt: #c9a45c;
  --gilt-hi: #e4c88d;
  --gilt-lo: #9a783a;
  --mist: #eef1f4;
  --mist-pale: #f6f7f9;
  --ink: #142739;
  --ink-2: #4b5d70;
  --hair: #d9e0e7;
  --gilt-a2: rgba(201, 164, 92, .2);
  --gilt-a4: rgba(201, 164, 92, .42);

  --rail-h: 72px;
  --plate-w: 184px;
  --gutter: 60px;
  --measure: 700px;
  --frame: calc(var(--plate-w) + var(--gutter) + var(--measure));
  --side: max(20px, calc((100% - var(--frame)) / 2));

  --f-head: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --f-num: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 17px/1.85 var(--f-body);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--gilt); color: var(--sea); }

.tq-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 99;
  background: var(--gilt);
  color: var(--sea);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}
.tq-skip:focus { top: 10px; }

:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }

/* ===== 页头 ===== */
.tq-top { background: var(--sea); color: var(--mist); }
.tq-top__in {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.tq-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gilt);
  text-decoration: none;
}
.tq-mark__icon { flex: none; display: block; }
.tq-mark__name {
  font: 900 21px/1 var(--f-head);
  letter-spacing: -.01em;
  color: #fff;
}
.tq-nav { display: flex; gap: 6px; }
.tq-nav a {
  font: 700 15px/1 var(--f-head);
  color: rgba(238, 241, 244, .72);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.tq-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.tq-nav a[aria-current="page"],
body[data-page="about"] .tq-nav a[href="/about/"],
body[data-page="contact"] .tq-nav a[href="/contact/"] {
  color: var(--sea);
  background: var(--gilt);
}

/* ===== 顶部线路图 ===== */
.tq-rail {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--rail-h);
  background: rgba(13, 27, 42, .95);
  border-top: 1px solid rgba(255, 255, 255, .05);
  border-bottom: 1px solid var(--gilt-a2);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}
@supports (backdrop-filter: blur(8px)) {
  .tq-rail { background: rgba(13, 27, 42, .97); backdrop-filter: saturate(140%) blur(12px); }
}
.tq-rail__in {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.tq-rail__tag {
  flex: none;
  font: 700 12px/1 var(--f-head);
  letter-spacing: .26em;
  color: var(--gilt);
  padding-right: 24px;
  border-right: 1px solid var(--gilt-a2);
  line-height: 32px;
}
.tq-rail__line {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
}

/* 无脚本时:目录是一行可横滑的站名 */
.tq-stops {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tq-stops::-webkit-scrollbar { display: none; }
.tq-stops a {
  display: block;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1;
  color: rgba(238, 241, 244, .8);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--gilt-a4);
  border-radius: 999px;
}

/* 有脚本时:生成的地铁线 */
.tq-built .tq-stops {
  position: relative;
  z-index: 1;
  overflow: visible;
  gap: 0;
  align-items: stretch;
}
.tq-built .tq-stop { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }
.tq-built .tq-stop--minor { flex-grow: .7; }
.tq-built .tq-stops a {
  border: 0;
  border-radius: 0;
  padding: 14px 2px 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: rgba(238, 241, 244, .58);
  transition: color .25s;
}
.tq-built .tq-stops a:hover { color: #fff; }
.tq-pinbox { width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
.tq-pin {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sea);
  border: 2px solid rgba(201, 164, 92, .55);
  transition: transform .25s, background .25s, border-color .25s, box-shadow .25s;
}
.tq-stop--major .tq-pin { width: 20px; height: 20px; border-width: 3px; }
.tq-cap {
  font: 700 12.5px/1 var(--f-head);
  letter-spacing: .02em;
}
.tq-cap b {
  font: 500 11px/1 var(--f-num);
  color: var(--gilt);
  margin-right: 5px;
  letter-spacing: .04em;
}
.tq-stop--minor .tq-cap { font-size: 11.5px; font-weight: 700; color: rgba(238, 241, 244, .45); }

.tq-stop.is-past .tq-pin { background: var(--gilt); border-color: var(--gilt); }
.tq-stop.is-past a { color: rgba(238, 241, 244, .8); }
.tq-stop.is-here a, .tq-stop.is-here .tq-cap { color: #fff; }
.tq-stop.is-here .tq-pin {
  background: var(--gilt-hi);
  border-color: #fff;
  transform: scale(1.12);
  box-shadow: 0 0 0 5px rgba(201, 164, 92, .2), 0 0 22px rgba(228, 200, 141, .75);
}

.tq-track {
  position: absolute;
  top: 24.5px;
  height: 3px;
  border-radius: 3px;
  background: rgba(201, 164, 92, .2);
  z-index: 0;
}
.tq-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gilt-lo), var(--gilt-hi));
  box-shadow: 0 0 10px rgba(228, 200, 141, .45);
  transition: width .18s linear;
}

/* ===== 首屏 ===== */
.tq-main { display: grid; grid-template-columns: minmax(0, 1fr); }
.tq-article { display: contents; }

.tq-sky {
  grid-row: 1;
  grid-column: 1;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--sea);
}
.tq-sky img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  display: block;
}
.tq-sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 22%, rgba(13, 27, 42, .45), transparent 70%),
    linear-gradient(180deg, rgba(13, 27, 42, .2) 0%, rgba(13, 27, 42, 0) 40%, rgba(13, 27, 42, 0) 74%, var(--sea) 100%);
}

.tq-article > [data-part="hero"] {
  grid-row: 1;
  grid-column: 1;
  position: relative;
  z-index: 1;
  min-height: 700px;
  padding: 58px 24px 0;
  text-align: center;
  color: #fff;
}
[data-part="kicker"] {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font: 700 13px/1 var(--f-head);
  letter-spacing: .3em;
  color: var(--gilt-hi);
}
[data-part="kicker"]::before,
[data-part="kicker"]::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gilt));
}
[data-part="kicker"]::after { transform: scaleX(-1); }
[data-part="hero"] h1 {
  max-width: 900px;
  margin: 22px auto 20px;
  font: 900 clamp(31px, 3.9vw, 54px)/1.17 var(--f-head);
  letter-spacing: -.03em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(8, 19, 31, .55);
}
[data-part="dek"] {
  max-width: 660px;
  margin: 0 auto;
  font-size: 17.5px;
  line-height: 1.8;
  color: rgba(238, 241, 244, .9);
  text-shadow: 0 1px 12px rgba(8, 19, 31, .6);
}
[data-part="meta"] {
  display: inline-block;
  margin: 24px 0 0;
  padding: 8px 18px;
  font: 400 13px/1.5 var(--f-num), var(--f-body);
  font-family: var(--f-num), var(--f-body);
  letter-spacing: .02em;
  color: var(--gilt-hi);
  background: rgba(8, 19, 31, .55);
  border: 1px solid var(--gilt-a4);
  border-radius: 999px;
}

/* ===== 段落通用版式 ===== */
.tq-article > section {
  padding: 96px var(--side) 92px;
  scroll-margin-top: calc(var(--rail-h) - 1px);
  display: grid;
  grid-template-columns: var(--plate-w) minmax(0, var(--measure));
  column-gap: var(--gutter);
  align-content: start;
}
.tq-article > section > * { grid-column: 2; margin: 0; min-width: 0; }
.tq-article > section > * + * { margin-top: 1.05em; }

/* 站牌(纯 CSS:读 data-station / data-station-name) */
.tq-article > section::before {
  grid-column: 1;
  grid-row: 1 / span 90;
  align-self: start;
  position: sticky;
  top: calc(var(--rail-h) + 30px);
  white-space: pre;
}
section[data-station]::before {
  content: "0" attr(data-station) "\A" attr(data-station-name);
  font: 900 26px/1.32 var(--f-num), var(--f-head);
  font-family: var(--f-num), var(--f-head);
  font-weight: 900;
  letter-spacing: .01em;
  color: var(--sea);
  padding: 22px 20px 18px;
  border-radius: 4px 4px 16px 4px;
  background:
    linear-gradient(var(--sea), var(--sea)) 0 0 / 100% 6px no-repeat,
    linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .55)) 0 10px / 100% 1px no-repeat,
    linear-gradient(160deg, var(--gilt-hi), var(--gilt) 55%, #b8914a);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 18px 34px -20px rgba(13, 27, 42, .7);
  transition: box-shadow .3s, transform .3s;
}
section[data-station].tq-here::before {
  transform: translateX(4px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 0 0 4px rgba(201, 164, 92, .22), 0 22px 40px -18px rgba(13, 27, 42, .8);
}
#route::before, #region::before, #faq::before {
  font: 900 20px/1.3 var(--f-head);
  letter-spacing: .06em;
  padding: 14px 18px;
  border-radius: 4px 4px 14px 4px;
  border: 1.5px solid var(--gilt-a4);
  color: var(--gilt);
}
#route::before { content: "线路图"; }
#region::before { content: "检票口"; color: var(--gilt-lo); }
#faq::before { content: "问讯处"; }

/* 四站连成一条竖线 */
section[data-station] {
  background:
    linear-gradient(var(--gilt-a4), var(--gilt-a4)) no-repeat calc(var(--side) + 26px) 0 / 4px 100%,
    var(--mist);
}
section[data-station]:nth-of-type(even) {
  background:
    linear-gradient(var(--gilt-a4), var(--gilt-a4)) no-repeat calc(var(--side) + 26px) 0 / 4px 100%,
    var(--mist-pale);
}
section[data-station="1"] {
  background:
    linear-gradient(var(--gilt-a4), var(--gilt-a4)) no-repeat calc(var(--side) + 26px) 96px / 4px 100%,
    var(--mist);
}

/* 深色段:线路图总览 / 问讯处 */
#route, #faq {
  background: var(--sea);
  color: rgba(238, 241, 244, .88);
}
#route { padding-top: 40px; }
#faq {
  background:
    radial-gradient(ellipse 50% 60% at 85% 0%, rgba(201, 164, 92, .1), transparent 70%),
    var(--sea-deep);
}
#route h2, #faq h2 { color: #fff; }
#route a, #faq a { color: var(--gilt-hi); text-decoration-color: rgba(228, 200, 141, .5); }
#region { background: var(--mist); }

/* ===== 标题与正文 ===== */
.tq-article h2 {
  font: 900 clamp(26px, 2.5vw, 34px)/1.3 var(--f-head);
  letter-spacing: -.022em;
  color: var(--sea);
  text-wrap: balance;
}
.tq-article h2 + * { margin-top: 1.3em; }
.tq-article h3 {
  position: relative;
  margin-top: 2.5em !important;
  padding-left: 24px;
  font: 700 21px/1.45 var(--f-head);
  letter-spacing: -.01em;
  color: var(--sea);
}
.tq-article h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 3px solid var(--gilt);
  background: var(--mist);
}
.tq-article p a, .tq-article li a, .tq-article dd a {
  text-decoration: underline;
  text-decoration-color: var(--gilt);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color .2s;
}
.tq-article p a:hover, .tq-article li a:hover { color: var(--gilt-lo); }
.tq-article strong { font-weight: 700; color: var(--sea); }

.tq-article ul { list-style: none; padding: 0; }
.tq-article ul > li { position: relative; padding-left: 22px; }
.tq-article ul > li + li { margin-top: .5em; }
.tq-article ul > li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .72em;
  width: 7px;
  height: 7px;
  background: var(--gilt);
  transform: rotate(45deg);
}
.tq-article ol:not([data-part]) { padding-left: 1.6em; }
.tq-article ol:not([data-part]) > li { padding-left: 4px; }
.tq-article ol:not([data-part]) > li::marker { font-family: var(--f-num); color: var(--gilt-lo); font-weight: 500; }

/* 站务牌(dl) */
section[data-station] dl {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  background: linear-gradient(150deg, var(--sea-up), var(--sea) 65%);
  border-radius: 16px;
  padding: 6px 0;
  box-shadow: 0 24px 44px -30px rgba(13, 27, 42, .9);
  overflow: hidden;
}
section[data-station] dt {
  padding: 18px 26px 4px;
  font: 700 12px/1.4 var(--f-head);
  letter-spacing: .2em;
  color: var(--gilt);
  display: flex;
  align-items: center;
  gap: 8px;
}
section[data-station] dt::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gilt);
}
section[data-station] dd {
  margin: 0;
  padding: 2px 26px 18px 40px;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(238, 241, 244, .92);
}
section[data-station] dt:nth-of-type(n+3),
section[data-station] dd:nth-of-type(n+3) { border-left: 1px solid rgba(201, 164, 92, .18); }
section[data-station] dt:nth-of-type(2),
section[data-station] dt:nth-of-type(4) { border-top: 1px solid rgba(201, 164, 92, .18); }

/* 步骤 */
.tq-article ol[data-part="steps"] {
  list-style: none;
  padding: 0;
  counter-reset: tq-step;
  margin-top: 1.5em;
  border-top: 1px solid var(--hair);
}
ol[data-part="steps"] > li {
  counter-increment: tq-step;
  position: relative;
  padding: 16px 4px 16px 62px;
  border-bottom: 1px solid var(--hair);
}
ol[data-part="steps"] > li::before {
  content: counter(tq-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  width: 42px;
  height: 30px;
  display: grid;
  place-items: center;
  font: 500 14px/1 var(--f-num);
  color: var(--gilt-hi);
  background: var(--sea);
  border-radius: 8px 8px 8px 2px;
}
ol[data-part="steps"] > li:last-child::before { background: var(--gilt); color: var(--sea); }

/* 截图 */
figure[data-part="shot"] {
  margin-top: 2em;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(13, 27, 42, .04), 0 26px 46px -32px rgba(13, 27, 42, .55);
}
figure[data-part="shot"] img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 780px;
  object-fit: contain;
  border-radius: 9px;
}
figure[data-part="shot"] figcaption {
  display: flex;
  gap: 10px;
  padding: 12px 8px 4px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
figure[data-part="shot"] figcaption::before {
  content: "";
  flex: none;
  width: 3px;
  margin: 3px 0;
  border-radius: 2px;
  background: var(--gilt);
}
.tq-article > section > figure + p { margin-top: 1.4em; }

/* 表格 */
.tq-article table {
  width: 100%;
  margin-top: 1.6em !important;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.65;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 14px;
  overflow: hidden;
}
.tq-article th {
  text-align: left;
  vertical-align: bottom;
  padding: 13px 16px;
  font: 700 13.5px/1.4 var(--f-head);
  letter-spacing: .04em;
  color: var(--gilt-hi);
  background: var(--sea);
}
.tq-article td {
  vertical-align: top;
  padding: 13px 16px;
  border-top: 1px solid var(--hair);
}
.tq-article td:first-child { font-weight: 700; color: var(--sea); }
.tq-article tbody tr:nth-child(even) td { background: #f9fafb; }

/* 总览里的表 = 站点时刻牌 */
#route table {
  background: rgba(255, 255, 255, .025);
  border-color: rgba(201, 164, 92, .28);
}
#route th {
  background: rgba(201, 164, 92, .08);
  color: var(--gilt);
  border-bottom: 1px solid rgba(201, 164, 92, .3);
}
#route td { border-top: 1px dashed rgba(201, 164, 92, .18); color: rgba(238, 241, 244, .88); }
#route tbody tr:first-child td { border-top: 0; }
#route tbody tr:nth-child(even) td { background: transparent; }
#route td:first-child {
  white-space: nowrap;
  font: 900 16px/1.5 var(--f-head);
  color: var(--gilt-hi);
}
#route td:nth-child(3) { font-family: var(--f-num), var(--f-body); font-size: 14px; color: var(--gilt-hi); }
#route figure[data-part="shot"] { background: var(--sea-up); border-color: rgba(201, 164, 92, .22); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .9); }
#route figure[data-part="shot"] figcaption { color: rgba(238, 241, 244, .66); }
#route h3::before, #faq h3::before { background: var(--sea); }

/* 提示块 */
[data-part="note"] {
  margin-top: 1.9em !important;
  padding: 16px 22px;
  background: linear-gradient(90deg, #f6eedc, #f8f3e8);
  border-left: 4px solid var(--gilt);
  border-radius: 2px 14px 14px 2px;
  font-size: 16px;
}
[data-part="note"] p { margin: 0; }
[data-part="note"] p + p { margin-top: .6em; }
[data-part="note"] strong { color: #7d5d22; }
section[data-station] > [data-part="note"]:last-child {
  background: var(--sea);
  color: rgba(238, 241, 244, .9);
  border-left: 0;
  border-radius: 14px;
  padding: 18px 24px 18px 64px;
  position: relative;
}
section[data-station] > [data-part="note"]:last-child::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--gilt);
  box-shadow: 0 0 0 4px rgba(201, 164, 92, .15);
}
section[data-station] > [data-part="note"]:last-child strong { color: var(--gilt-hi); }

[data-part="warn"] {
  margin-top: 1.9em !important;
  padding: 18px 22px 18px 58px;
  position: relative;
  background: #fbefeb;
  border: 1px solid #ecc9bf;
  border-radius: 14px;
  font-size: 16px;
  color: #3d2620;
}
[data-part="warn"]::before {
  content: "!";
  position: absolute;
  left: 20px;
  top: 19px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #b0452f;
  color: #fff;
  font: 500 14px/1 var(--f-num);
}
[data-part="warn"] p { margin: 0; }
[data-part="warn"] strong { color: #8e2f1c; }

/* ===== 车票:邀请码 CTA ===== */
.tq-article > [data-part="cta"] {
  --stub: 300px;
  width: min(var(--frame), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--stub) minmax(0, 1fr);
  color: rgba(238, 241, 244, .9);
  border-radius: 20px;
  background:
    radial-gradient(circle at var(--stub) 0, var(--mist) 14px, transparent 15px),
    radial-gradient(circle at var(--stub) 100%, var(--mist) 14px, transparent 15px),
    radial-gradient(ellipse 70% 120% at 0% 0%, rgba(201, 164, 92, .16), transparent 60%),
    linear-gradient(135deg, var(--sea-up), var(--sea) 55%, var(--sea-deep));
  box-shadow: 0 34px 60px -34px rgba(13, 27, 42, .85), 0 0 0 1px rgba(201, 164, 92, .25) inset;
}
[data-part="cta"] > p { margin: 0; }
[data-part="cta"] > p:first-child {
  grid-column: 1;
  grid-row: 1 / span 3;
  padding: 36px 32px;
  border-right: 2px dashed rgba(201, 164, 92, .35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  font: 700 13px/1.6 var(--f-head);
  letter-spacing: .12em;
  color: var(--gilt);
}
[data-part="cta"] > p:first-child strong {
  display: block;
  margin-top: 10px;
  font: 500 46px/1 var(--f-num);
  letter-spacing: .07em;
  color: #fff;
  text-shadow: 0 0 26px rgba(228, 200, 141, .35);
  user-select: all;
}
.tq-copy {
  margin-top: 18px;
  padding: 9px 16px;
  font: 700 13.5px/1 var(--f-head);
  letter-spacing: .06em;
  color: var(--gilt-hi);
  background: transparent;
  border: 1.5px solid var(--gilt-a4);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.tq-copy:hover { border-color: var(--gilt); background: rgba(201, 164, 92, .12); }
.tq-copy.is-done { background: var(--gilt); color: var(--sea); border-color: var(--gilt); }
[data-part="cta"] > p:nth-child(2) {
  grid-column: 2;
  padding: 36px 40px 0;
  font-size: 16px;
  line-height: 1.8;
}
[data-part="cta"] > a[data-cta] {
  grid-column: 2;
  justify-self: start;
  margin: 22px 40px 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font: 900 17px/1 var(--f-head);
  letter-spacing: .02em;
  color: var(--sea);
  text-decoration: none;
  background: linear-gradient(180deg, var(--gilt-hi), var(--gilt));
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 14px 28px -14px rgba(201, 164, 92, .9);
  transition: transform .2s, box-shadow .2s;
}
[data-part="cta"] > a[data-cta]::after {
  content: "\2192";
  font: 500 18px/1 var(--f-num);
  transition: transform .2s;
}
[data-part="cta"] > a[data-cta]:hover::after { transform: translateX(3px); }
[data-part="cta"] > a[data-cta]:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 20px 34px -14px rgba(201, 164, 92, 1); }
[data-part="cta"] > p:last-child {
  grid-column: 2;
  margin: 22px 40px 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 164, 92, .2);
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(238, 241, 244, .84);
}

/* ===== 问讯处 FAQ ===== */
#faq details {
  border-bottom: 1px solid rgba(201, 164, 92, .2);
}
#faq h2 + details { margin-top: 1.6em; border-top: 1px solid rgba(201, 164, 92, .2); }
#faq details + details { margin-top: 0; }
#faq summary {
  list-style: none;
  position: relative;
  cursor: pointer;
  padding: 20px 52px 20px 0;
  font: 700 17.5px/1.55 var(--f-head);
  color: #fff;
  transition: color .2s;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  display: grid;
  place-items: center;
  font: 400 20px/1 var(--f-num);
  color: var(--gilt);
  border: 1px solid var(--gilt-a4);
  border-radius: 50%;
  transition: background .2s, color .2s, transform .25s;
}
#faq summary:hover { color: var(--gilt-hi); }
#faq details[open] summary::after { content: "\2212"; background: var(--gilt); color: var(--sea); transform: rotate(180deg); }
#faq details > p {
  margin: -4px 0 24px;
  padding-left: 16px;
  border-left: 2px solid var(--gilt-a4);
  font-size: 16px;
  line-height: 1.85;
  color: rgba(238, 241, 244, .82);
}

/* ===== 页脚 ===== */
.tq-foot {
  position: relative;
  background: var(--sea-deep);
  color: rgba(238, 241, 244, .72);
  font-size: 14.5px;
  line-height: 1.75;
}
.tq-foot::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gilt) 18%, var(--gilt) 82%, transparent);
  opacity: .55;
}
.tq-foot__in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 28px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
.tq-foot__brand p { margin: 16px 0 0; max-width: 420px; }
.tq-foot__links { display: grid; gap: 6px; align-content: start; }
.tq-foot__links a, .tq-foot__mail a {
  color: rgba(238, 241, 244, .86);
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.tq-foot__links a:hover, .tq-foot__mail a:hover { color: var(--gilt-hi); border-color: var(--gilt-a4); }
.tq-foot__mail { margin: 0; }
.tq-foot__mail a { font-family: var(--f-num); font-size: 14px; }
body[data-page="privacy"] .tq-foot__links a[href="/privacy/"],
body[data-page="disclosure"] .tq-foot__links a[href="/disclosure/"],
body[data-page="about"] .tq-foot__links a[href="/about/"],
body[data-page="contact"] .tq-foot__links a[href="/contact/"] { color: var(--gilt-hi); border-color: var(--gilt-a4); }
.tq-foot__base {
  width: calc(100% - 56px);
  max-width: 1144px;
  margin: 0 auto;
  padding: 18px 0 30px;
  border-top: 1px solid rgba(201, 164, 92, .14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.tq-foot__base p { margin: 0; }
.tq-foot__risk { color: rgba(238, 241, 244, .8); }
.tq-foot__copy { font-family: var(--f-num), var(--f-body); font-size: 13px; letter-spacing: .03em; }

/* ===== 站务页 ===== */
.tq-terminus { background: var(--sea); height: 170px; padding: 0 20px; }
.tq-terminus__in {
  max-width: 800px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding-bottom: 54px;
}
.tq-terminus__run {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--gilt), rgba(201, 164, 92, .25));
}
.tq-terminus__dot {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gilt);
  box-shadow: 0 0 0 5px rgba(201, 164, 92, .18);
}
.tq-terminus__dot--end { background: var(--sea); border: 3px solid rgba(201, 164, 92, .5); box-shadow: none; }

.tq-paper { padding: 0 20px 100px; margin-top: -84px; }
.tq-paper__sheet {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 58px 68px 52px;
  background: #fff;
  border-radius: 6px 6px 20px 20px;
  border-top: 6px solid var(--gilt);
  box-shadow: 0 40px 70px -46px rgba(13, 27, 42, .7);
}
.tq-paper h1 {
  margin: 0 0 22px;
  font: 900 clamp(30px, 3.4vw, 40px)/1.25 var(--f-head);
  letter-spacing: -.025em;
  color: var(--sea);
}
.tq-paper h2 {
  margin: 2.1em 0 .6em;
  font: 900 22px/1.4 var(--f-head);
  letter-spacing: -.01em;
  color: var(--sea);
  display: flex;
  align-items: center;
  gap: 12px;
}
.tq-paper h2::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--gilt);
}
.tq-paper p { margin: .9em 0 0; }
.tq-paper ul { list-style: none; padding: 0; margin: .9em 0 0; }
.tq-paper ul > li { position: relative; padding-left: 22px; }
.tq-paper ul > li + li { margin-top: .45em; }
.tq-paper ul > li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .72em;
  width: 7px;
  height: 7px;
  background: var(--gilt);
  transform: rotate(45deg);
}
.tq-paper a {
  color: var(--sea);
  text-decoration: underline;
  text-decoration-color: var(--gilt);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.tq-paper strong { color: var(--sea); }
.tq-paper__back {
  margin-top: 2.6em !important;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  font: 700 15px/1.5 var(--f-head);
}
.tq-paper__back a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.tq-paper__back a::before { content: "\2190"; font-family: var(--f-num); color: var(--gilt-lo); }

/* ===== 404 ===== */
.tq-lost {
  min-height: calc(100vh - 64px);
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(201, 164, 92, .14), transparent 70%),
    var(--sea);
  color: rgba(238, 241, 244, .86);
  display: grid;
  place-items: center;
  padding: 60px 20px 90px;
  text-align: center;
}
.tq-lost__line { display: flex; align-items: center; justify-content: center; margin: 0 auto 34px; max-width: 420px; }
.tq-lost__line i { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--gilt); }
.tq-lost__line i:last-child { background: transparent; border: 3px solid rgba(201, 164, 92, .45); }
.tq-lost__line span { flex: 1; height: 3px; background: var(--gilt); }
.tq-lost__line span.tq-lost__gap {
  background: repeating-linear-gradient(90deg, rgba(201, 164, 92, .5) 0 8px, transparent 8px 16px);
}
.tq-lost__code { margin: 0; font: 500 clamp(64px, 12vw, 120px)/1 var(--f-num); color: var(--gilt); letter-spacing: .04em; }
.tq-lost h1 { margin: 18px 0 12px; font: 900 clamp(24px, 3vw, 34px)/1.3 var(--f-head); color: #fff; letter-spacing: -.02em; }
.tq-lost p { margin: 0 auto; max-width: 460px; }
.tq-lost__go {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 24px;
  font: 900 16px/1 var(--f-head);
  color: var(--sea);
  background: var(--gilt);
  border-radius: 12px;
  text-decoration: none;
}

/* ===== 断点 ===== */
@media (max-width: 1099px) {
  :root { --plate-w: 136px; --gutter: 40px; }
  section[data-station]::before { font-size: 22px; padding: 20px 16px 16px; }
  #route::before, #region::before, #faq::before { font-size: 17px; padding: 12px 14px; }
  .tq-rail__tag { display: none; }
}

@media (max-width: 899px) {
  .tq-article > section {
    grid-template-columns: minmax(0, 1fr);
    padding: 72px var(--side) 70px;
  }
  .tq-article > section > * { grid-column: 1; }
  .tq-article > section::before {
    grid-row: auto;
    position: static;
    justify-self: start;
    margin-bottom: 22px;
  }
  section[data-station]::before {
    content: "0" attr(data-station) "  " attr(data-station-name);
    white-space: pre;
    font-size: 19px;
    padding: 14px 18px 10px;
    background:
      linear-gradient(var(--sea), var(--sea)) 0 0 / 100% 4px no-repeat,
      linear-gradient(160deg, var(--gilt-hi), var(--gilt) 55%, #b8914a);
  }
  section[data-station], section[data-station]:nth-of-type(even), section[data-station="1"] { background: var(--mist); }
  section[data-station]:nth-of-type(even) { background: var(--mist-pale); }
  section[data-station].tq-here::before { transform: none; }
  #route::before, #region::before, #faq::before { font-size: 15px; padding: 8px 14px; }
}

@media (max-width: 760px) {
  :root { --rail-h: 60px; }
  body { font-size: 16.5px; line-height: 1.82; }

  .tq-top__in { height: 58px; padding: 0 16px; }
  .tq-mark__name { font-size: 19px; }
  .tq-nav { gap: 2px; }
  .tq-nav a { font-size: 14px; padding: 8px 11px; }

  .tq-rail__in { padding: 0 8px; }
  .tq-built .tq-stops a { padding-top: 9px; gap: 6px; }
  .tq-track { top: 19.5px; }
  .tq-built .tq-stop--minor { flex-grow: .5; }
  .tq-stop--minor .tq-cap { display: none; }
  .tq-cap { font-size: 11px; letter-spacing: 0; }
  .tq-cap b { display: none; }
  .tq-stop--major .tq-pin { width: 16px; height: 16px; }

  .tq-sky { align-self: end; height: 300px; }
  .tq-sky img { object-position: 50% 70%; }
  .tq-sky::after {
    background: linear-gradient(180deg, var(--sea) 0%, rgba(13, 27, 42, 0) 40%, rgba(13, 27, 42, 0) 70%, var(--sea) 100%);
  }
  .tq-article > [data-part="hero"] {
    min-height: 0;
    padding: 40px 18px 250px;
    text-align: left;
    background: linear-gradient(180deg, var(--sea) 0, var(--sea) calc(100% - 300px), transparent calc(100% - 300px));
  }
  [data-part="kicker"] { letter-spacing: .2em; font-size: 12px; }
  [data-part="kicker"]::before { display: none; }
  [data-part="hero"] h1 { margin: 16px 0 16px; font-size: 29px; line-height: 1.24; letter-spacing: -.02em; }
  [data-part="dek"] { font-size: 16px; margin: 0; }
  [data-part="meta"] { font-size: 12px; padding: 7px 14px; border-radius: 10px; }

  .tq-article > section { padding: 60px 16px 58px; }
  #route { padding-top: 24px; }
  .tq-article h2 { font-size: 25px; }
  .tq-article h3 { font-size: 19px; }

  section[data-station] dl { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  section[data-station] dt:nth-of-type(n+3),
  section[data-station] dd:nth-of-type(n+3) { border-left: 0; }
  section[data-station] dt:nth-of-type(n+2) { border-top: 1px solid rgba(201, 164, 92, .18); }
  section[data-station] dt { padding: 14px 20px 2px; }
  section[data-station] dd { padding: 2px 20px 14px 34px; font-size: 15px; }

  ol[data-part="steps"] > li { padding-left: 54px; }
  ol[data-part="steps"] > li::before { width: 38px; }

  figure[data-part="shot"] { padding: 6px; border-radius: 12px; margin-left: -4px; margin-right: -4px; }
  figure[data-part="shot"] img { max-height: 620px; }

  .tq-article table { display: block; overflow-x: auto; }
  .tq-article table.tq-cards { display: block; overflow: visible; border-radius: 14px; }
  .tq-cards thead { display: none; }
  .tq-cards tbody, .tq-cards tr, .tq-cards td { display: block; }
  .tq-cards tr { padding: 14px 16px 12px; }
  .tq-cards tr + tr { border-top: 1px solid var(--hair); }
  #route .tq-cards tr + tr { border-top: 1px dashed rgba(201, 164, 92, .25); }
  .tq-article .tq-cards td { padding: 2px 0; border: 0; background: transparent !important; }
  .tq-article .tq-cards td + td { margin-top: 8px; }
  .tq-cards td + td::before {
    content: attr(data-th);
    display: block;
    font: 700 12px/1.5 var(--f-head);
    letter-spacing: .08em;
    color: var(--gilt-lo);
  }
  #route .tq-cards td + td::before { color: var(--gilt); }
  .tq-article .tq-cards tbody tr:nth-child(even) { background: #f9fafb; }
  #route .tq-cards tbody tr:nth-child(even) { background: transparent; }

  .tq-article > [data-part="cta"] {
    width: calc(100% - 32px);
    grid-template-columns: minmax(0, 1fr);
    background:
      radial-gradient(ellipse 90% 60% at 0% 0%, rgba(201, 164, 92, .18), transparent 60%),
      linear-gradient(160deg, var(--sea-up), var(--sea) 55%, var(--sea-deep));
  }
  [data-part="cta"] > p:first-child {
    grid-row: auto;
    padding: 28px 22px 22px;
    border-right: 0;
    border-bottom: 2px dashed rgba(201, 164, 92, .35);
  }
  [data-part="cta"] > p:first-child strong { font-size: 40px; }
  [data-part="cta"] > p:nth-child(2) { grid-column: 1; padding: 22px 22px 0; font-size: 15.5px; }
  [data-part="cta"] > a[data-cta] { grid-column: 1; justify-self: stretch; justify-content: center; margin: 20px 22px 0; }
  [data-part="cta"] > p:last-child { grid-column: 1; margin: 20px 22px 26px; }

  #faq summary { font-size: 16.5px; padding: 18px 48px 18px 0; }

  .tq-foot__in { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 44px 16px 26px; }
  .tq-foot__base { width: calc(100% - 32px); padding: 18px 0 28px; flex-direction: column; }

  .tq-lost { min-height: calc(100vh - 58px); }
  .tq-terminus { height: 130px; }
  .tq-terminus__in { padding-bottom: 46px; }
  .tq-paper { padding: 0 12px 70px; margin-top: -62px; }
  .tq-paper__sheet { padding: 36px 22px 34px; }
}
