@font-face {
  font-family: "https://res.cloudinary.com/p0nchg33/raw/upload/v1790447852/Huiwen-mincho.woff2";
  src: url("https://res.cloudinary.com/p0nchg33/raw/upload/v1790447852/Huiwen-mincho.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #8a382d;
  --bg: #f7f6f2;
  --design-width: 1728px;
  --design-height: 1117px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: "https://res.cloudinary.com/p0nchg33/raw/upload/v1790447852/Huiwen-mincho.woff2", serif;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.stage-shell {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

.stage {
  position: relative;
  width: var(--design-width);
  height: var(--design-height);
  flex: 0 0 auto;
  overflow: hidden;
  transform-origin: center center;
}

.home-stage {
  background: #fff;
}

.home-map {
  position: absolute;
  left: 52px;
  top: -200px;
  width: 1729px;
  height: 2560px;
  object-fit: fill;
  z-index: 0;
}

.home-nav {
  position: absolute;
  left: 774px;
  top: 33px;
  width: 904px;
  height: 89px;
  display: flex;
  align-items: flex-start;
  gap: 35px;
  white-space: nowrap;
  font-size: 36px;
  line-height: 1;
  z-index: 20;
}

.home-nav span,
.home-nav a {
  display: inline-block;
}

.hero-title {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
}

.hero-cn {
  position: absolute;
  left: 1120px;
  top: 150px;
  font-size: 200px;
  line-height: 250px;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.hero-en {
  position: absolute;
  left: 1220px;
  top: 350px;
  font-size: 88px;
  line-height: 110px;
  opacity: 0.5;
  white-space: nowrap;
}

.hero-sub {
  position: absolute;
  left: 41px;
  top: 1008px;
  font-size: 64px;
  line-height: 78px;
  white-space: nowrap;
}

.home-line-labels {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.line-label {
  position: absolute;
  display: block;
  padding: 7px 12px;
  font-size: 30px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease, border-color 220ms ease, letter-spacing 220ms ease;
}

.line-label:hover,
.line-label:focus-visible,
.line-label.pressed {
  transform: scale(1.12);
  background: rgba(138, 56, 45, 0.95);
  color: #fff;
  border-color: rgba(138, 56, 45, 0.95);
  letter-spacing: 0.08em;
  outline: none;
}

.line-label-1 { left: 585px; top: 285px; }
.line-label-2 { left: 825px; top: 500px; }
.line-label-3 { left: 515px; top: 600px; }
.line-label-4 { left: 435px; top: 205px; }
.line-label-5 { left: 650px; top: 505px; }
.line-label-6 { left: 850px; top: 645px; }

.home-footer {
  position: absolute;
  left: 17px;
  top: 1038px;
  width: 1728px;
  height: 79px;
  font-size: 64px;
  line-height: 79px;
  opacity: 0.5;
  white-space: nowrap;
  z-index: 15;
}

.hero-item {
  opacity: 0;
  transform: translateY(34px) scale(0.97);
  animation: heroEnter 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.home-nav.hero-item { animation-delay: 0.05s; }
.hero-cn.hero-item { animation-delay: 0.18s; }
.hero-en.hero-item { animation-delay: 0.32s; }
.hero-sub.hero-item { animation-delay: 0.46s; }
.line-label-1 { animation-delay: 0.52s; }
.line-label-2 { animation-delay: 0.58s; }
.line-label-3 { animation-delay: 0.64s; }
.line-label-4 { animation-delay: 0.70s; }
.line-label-5 { animation-delay: 0.76s; }
.line-label-6 { animation-delay: 0.82s; }
.home-footer.hero-item { animation-delay: 0.90s; }

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.97);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.route-stage {
  background: #fff;
}

.route-bg {
  position: absolute;
  inset: 0;
  width: 1728px;
  height: 1117px;
  object-fit: fill;
  z-index: 0;
}

.route1-map {
  position: absolute;
  left: 0;
  top: 0;
  width: 1742.534px;
  height: 1126.399px;
  object-fit: fill;
  opacity: 0.6;
  z-index: 0;
}

.route1-overlay {
  position: absolute;
  left: 206px;
  top: 33px;
  width: 1537px;
  height: 1093px;
  object-fit: fill;
  z-index: 3;
  opacity: 0;
  animation: rasterEnter 1.25s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.route1-stations {
  position: absolute;
  left: 1239px;
  top: 305px;
  width: 320px;
  height: 275px;
  object-fit: fill;
  z-index: 4;
  opacity: 0;
  animation: rasterEnter 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}

@keyframes rasterEnter {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.985);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.route-nav {
  position: absolute;
  left: 748px;
  top: 49px;
  width: 1016px;
  height: 72px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 42px;
  padding: 0 20px;
  font-size: 36px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  animation: navEnter 1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
  transition: background-color 200ms ease, transform 200ms ease;
}

.route-nav:hover {
  background: rgba(138, 56, 45, 0.06);
}

.route-nav .nav-home {
  pointer-events: none;
}

.route-copy {
  position: absolute;
  z-index: 10;
  color: var(--ink);
  pointer-events: none;
}

.route-title {
  position: absolute;
  left: 947px;
  top: 173px;
  width: 700px;
  font-size: 40px;
  line-height: 52px;
  white-space: nowrap;
}

.route-points {
  position: absolute;
  left: 1059px;
  top: 278px;
  width: 600px;
  font-size: 36px;
  line-height: 56px;
}

.route-points p {
  margin: 0;
}

.route-body-cn {
  position: absolute;
  font-size: 24px;
  line-height: 42px;
}

.route-body-en {
  position: absolute;
  font-size: 20px;
  line-height: 34px;
}

.line2 .route-body-cn,
.line2 .route-body-en {
  left: 94px;
  top: 612px;
  width: 600px;
}

.line2 .route-body-en {
  top: 789px;
  left: 92px;
  width: 620px;
}

.line3 .route-body-cn,
.line4 .route-body-cn,
.line5 .route-body-cn {
  left: 1003px;
  top: 640px;
  width: 610px;
}

.line3 .route-body-en,
.line4 .route-body-en,
.line5 .route-body-en {
  left: 1010px;
  top: 793px;
  width: 620px;
}

.line6 .route-body-cn {
  left: 1059px;
  top: 635px;
  width: 590px;
}

.line6 .route-body-en {
  left: 1061px;
  top: 803px;
  width: 610px;
}

.route-copy .animate-text {
  opacity: 0;
  transform: translateY(34px) scale(0.97);
  filter: blur(8px);
  animation: heroEnter 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.route-title .animate-text { animation-delay: 0.35s; }
.route-points .animate-text:nth-child(1) { animation-delay: 0.48s; }
.route-points .animate-text:nth-child(2) { animation-delay: 0.56s; }
.route-points .animate-text:nth-child(3) { animation-delay: 0.64s; }
.route-points .animate-text:nth-child(4) { animation-delay: 0.72s; }
.route-body-cn .animate-text { animation-delay: 0.80s; }
.route-body-en .animate-text { animation-delay: 0.92s; }

.route-footer {
  position: absolute;
  left: 206px;
  top: 1041px;
  width: 1500px;
  z-index: 8;
  font-size: 55px;
  line-height: 70px;
  opacity: 0;
  animation: heroEnter 1.1s cubic-bezier(0.16, 1, 0.3, 1) 1.05s forwards;
  white-space: nowrap;
}

@keyframes navEnter {
  from {
    opacity: 0;
    transform: translateY(-22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .stage {
    transform-origin: center center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}

/* Full-viewport reset: the design stage is scaled with a cover strategy in app.js,
   so the viewport is always fully covered and edge cropping is intentional. */
html,
body,
.stage-shell {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

.stage-shell {
  background: #fff;
}
