/* WPS Office www · 车站时刻表 / Split-flap Destination Board */
:root {
  --bg: #12110e;
  --board: #1b1914;
  --board-deep: #14120e;
  --amber: #f5c518;
  --amber-dim: #c9a014;
  --cream: #f4efe3;
  --muted: #a39a86;
  --ink: #0a0907;
  --line: #2d2a22;
  --rail: #16140f;
  --glow: 0 0 10px rgba(245, 197, 24, 0.22);
  --rail-w: 92px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(18, 17, 14, 0.88), rgba(18, 17, 14, 0.94)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(245, 197, 24, 0.035) 2px,
      rgba(245, 197, 24, 0.035) 3px
    );
  color: var(--cream);
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--amber);
  text-underline-offset: 3px;
}

a:hover {
  color: #ffe47a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  background: var(--amber);
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

.mono {
  font-family: Tahoma, Consolas, "Segoe UI", monospace;
  letter-spacing: 0.04em;
}

/* 左侧窄轨 */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--rail);
  border-right: 1px solid var(--line);
  box-shadow: 4px 0 0 rgba(245, 197, 24, 0.08);
}

.rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;
  width: 8px;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--ink) 0 7px,
    var(--amber) 7px 14px
  );
}

.rail-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 18px 8px 8px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--amber);
  text-decoration: none;
}

.brand:hover {
  color: #ffe47a;
}

.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--amber);
  filter: drop-shadow(var(--glow));
}

.brand-text {
  writing-mode: vertical-rl;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--amber);
  background: var(--board);
  color: var(--amber);
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: var(--amber);
  color: var(--ink);
}

.nav-toggle svg {
  margin: auto;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding: 0 10px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  padding: 10px 4px;
  border: 1px solid var(--line);
  background:
    linear-gradient(#262218, #16140f 48%, #0e0d0a 50%, #1a1812);
  color: var(--muted);
  text-decoration: none;
  writing-mode: vertical-rl;
  letter-spacing: 0.22em;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rail-nav a:hover {
  color: var(--amber);
  border-color: var(--amber-dim);
}

.rail-nav a.is-on,
.rail-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
  font-weight: 700;
  box-shadow: var(--glow);
}

.rail-meta {
  margin-top: auto;
  padding: 16px 0 20px;
  color: var(--amber);
  font-size: 12px;
  writing-mode: vertical-rl;
  letter-spacing: 0.18em;
}

/* 主看板 */
.stage {
  margin-left: calc(var(--rail-w) + 8px);
  min-height: 100vh;
}

.hazard {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ink) 0 11px,
    var(--amber) 11px 22px
  );
}

.board-mast {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px 28px 16px;
  background: var(--board);
  border-bottom: 1px solid var(--line);
}

.mast-kicker {
  margin: 0 0 6px;
  color: var(--amber);
  font-family: Tahoma, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mast-title {
  margin: 0;
  color: var(--cream);
  font-size: 15px;
  font-weight: 600;
}

.clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--amber);
  font-family: Tahoma, Consolas, monospace;
  text-shadow: var(--glow);
}

.clock-date {
  font-size: 12px;
  color: var(--muted);
}

.clock-time {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.flap-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.flap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2em;
  height: 1.7em;
  padding: 0 0.15em;
  background:
    linear-gradient(#2a261c, #14120e 49%, #0c0b09 50%, #1a1812);
  border: 1px solid #2e2a22;
  color: var(--amber);
  font-family: Tahoma, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.panel {
  margin-bottom: 28px;
  padding: 26px 28px 28px;
  background: var(--board);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #3a3428;
}

.panel-code {
  color: var(--amber);
  font-family: Tahoma, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.status {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: Tahoma, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.status.is-wait {
  color: var(--muted);
  border-color: #5c5648;
}

h1,
h2,
h3 {
  color: var(--amber);
  text-shadow: var(--glow);
  line-height: 1.35;
}

h1 {
  margin: 0 0 16px;
  font-size: 30px;
  font-weight: 700;
}

h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

h3 {
  margin: 18px 0 8px;
  font-size: 17px;
}

.panel p,
.lead,
.note {
  margin: 0 0 12px;
  color: var(--cream);
}

.panel p:last-child,
.quote p:last-child,
.faq-a:last-child {
  margin-bottom: 0;
}

.muted,
.note {
  color: var(--muted);
}

.lead {
  font-size: 17px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--amber);
  background: var(--amber);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:hover {
  background: #ffe47a;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--amber);
}

.btn-ghost:hover {
  background: rgba(245, 197, 24, 0.12);
  color: #ffe47a;
}

/* 到站行 */
.dest {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.dest th,
.dest td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.dest th {
  color: var(--muted);
  font-family: Tahoma, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.dest td {
  color: var(--cream);
}

.dest .code {
  color: var(--amber);
  font-family: Tahoma, Consolas, monospace;
  font-weight: 700;
}

.dest-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.track-grid,
.card-grid,
.quote-grid {
  display: grid;
  gap: 16px;
}

.track-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
}

.track,
.mini,
.quote {
  padding: 16px;
  background: var(--board-deep);
  border: 1px solid var(--line);
}

.track h3,
.mini h3,
.quote h3 {
  margin-top: 0;
}

.quote-grid {
  grid-template-columns: 1fr;
}

.quote-meta {
  margin: 0 0 8px;
  color: var(--amber);
  font-family: Tahoma, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.compare {
  width: 100%;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare th {
  background: var(--board-deep);
  color: var(--amber);
  font-size: 14px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin: 0 0 14px;
  padding: 14px 16px 14px 64px;
  background: var(--board-deep);
  border: 1px solid var(--line);
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 16px;
  color: var(--amber);
  font-family: Tahoma, Consolas, monospace;
  font-size: 18px;
  font-weight: 700;
}

.faq {
  margin: 0;
}

.faq + .faq {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #3a3428;
}

.faq h3 {
  margin: 0 0 8px;
}

.hero-board {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  margin-top: 18px;
}

.sidecard {
  padding: 16px;
  background: var(--board-deep);
  border: 1px solid var(--line);
}

.sidecard p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--amber-dim);
  background: rgba(245, 197, 24, 0.06);
}

footer {
  padding: 22px 28px 36px;
  background: var(--board-deep);
  border-top: 1px solid var(--line);
}

.foot-hazard {
  height: 8px;
  margin: -22px -28px 18px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ink) 0 9px,
    var(--amber) 9px 18px
  );
}

footer p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

footer p:last-child {
  margin-bottom: 0;
}

/* 移动端顶栏 + 汉堡 */
@media (max-width: 900px) {
  .rail {
    position: sticky;
    top: 0;
    inset: auto;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail::after {
    display: none;
  }

  .rail-head {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0;
  }

  .brand {
    flex-direction: row;
    gap: 8px;
  }

  .brand-text {
    writing-mode: horizontal-tb;
    letter-spacing: 0.06em;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .rail-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px;
    background: var(--rail);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
  }

  .rail-nav.is-open {
    display: flex;
  }

  .rail-nav a {
    min-height: 0;
    writing-mode: horizontal-tb;
    letter-spacing: 0.08em;
    padding: 12px 14px;
  }

  .rail-meta {
    display: none;
  }

  .stage {
    margin-left: 0;
  }

  .board-mast,
  .panel,
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 19px;
  }

  .hero-board,
  .track-grid {
    grid-template-columns: 1fr;
  }

  main {
    width: calc(100% - 24px);
  }
}

@media (max-width: 640px) {
  .clock-time {
    font-size: 22px;
  }

  .dest th,
  .dest td,
  .compare th,
  .compare td {
    padding: 8px;
    font-size: 13px;
  }
}
