@font-face {
  font-family: "Huiwen-mincho";
  src: url("../assets/fonts/Huiwen-mincho.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

html {
  font-size: 1px;
  font-size: max(calc(100vw / 1728), calc(100vh / 1117));
  -webkit-text-size-adjust: 100%;
}

@supports (height: 100dvh) {
  html {
    font-size: max(calc(100vw / 1728), calc(100dvh / 1117));
  }
}

@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  html {
    font-size: min(calc(100vw / 402), calc(100vh / 874));
  }
}

@supports (height: 100dvh) {
  @media (max-width: 900px), (max-aspect-ratio: 1/1) {
    html {
      font-size: min(calc(100vw / 402), calc(100dvh / 874));
    }
  }
}

:root {
  --ink: #8a382d;
  --ink-soft: rgba(138, 56, 45, 0.72);
  --paper: #fff;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--paper);
}

body {
  overflow: hidden;
  font-size: 16rem;
  color: var(--ink);
  font-family: "Huiwen-mincho", serif;
  -webkit-font-smoothing: antialiased;
}

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

img { display: block; }

.stage {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: #fff;
}

.pc-stage { width: 1728rem; height: 1117rem; }

.mo-stage { width: 402rem; height: 874rem; display: none; }

@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .pc-stage { display: none; }
  .mo-stage { display: block; }
}

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

.pc-stage .home-nav {
  position: absolute;
  right: 50rem;
  top: 33rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 35rem;
  white-space: nowrap;
  font-size: 36rem;
  line-height: 1;
  z-index: 20;
}

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

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

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

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

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

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

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

.pc-stage .line-label:hover,
.pc-stage .line-label:focus-visible {
  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;
}

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

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

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

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

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

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

.pc-stage .route-nav {
  position: absolute;
  right: 50rem;
  top: 49rem;
  height: 72rem;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 42rem;
  padding: 0 20rem;
  font-size: 36rem;
  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;
}

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

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

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

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

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

.pc-stage .route-points p { margin: 0; }

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

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

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

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

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

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

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

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

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

.mo-stage .home-map-layer {
  position: absolute;
  z-index: 1;
  top: 0;
  left: -43rem;
  width: 590rem;
  height: 874rem;
  object-fit: fill;
  opacity: 0.6;
  pointer-events: none;
}

.mo-stage .home-nav {
  position: absolute;
  z-index: 6;
  top: 14.5rem;
  left: -2rem;
  width: 100%;
  font-size: 20rem;
  line-height: 21rem;
  text-align: center;
}

.mo-stage .nav-row {
  display: flex;
  justify-content: center;
  gap: 26rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mo-stage .nav-row + .nav-row { margin-top: 9rem; }

.mo-stage .nav-row a {
  display: inline-block;
  white-space: nowrap;
  transition: color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.mo-stage .nav-row a:hover,
.mo-stage .nav-row a:focus-visible {
  color: #5c231c;
  outline: none;
}

.mo-stage .line-selector {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.mo-stage .line-link {
  position: absolute;
  display: block;
  font-size: 14rem;
  line-height: 14rem;
  letter-spacing: 1.9rem;
  color: #a91f24;
  opacity: 0;
  white-space: nowrap;
  pointer-events: auto;
  animation: line-fade 700ms ease forwards;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.mo-stage .line-link:nth-child(1) { left: 169rem; top: 109rem; }
.mo-stage .line-link:nth-child(2) { left: 270rem; top: 308rem; }
.mo-stage .line-link:nth-child(3) { left: 255rem; top: 179rem; }
.mo-stage .line-link:nth-child(4) { left: 90rem; top: 87rem; }
.mo-stage .line-link:nth-child(5) { left: 223rem; top: 362rem; }
.mo-stage .line-link:nth-child(6) { left: 57rem; top: 239rem; }

.mo-stage .line-link:hover,
.mo-stage .line-link:focus-visible {
  color: #7a1416;
  outline: none;
  transform: scale(1.06);
}

.mo-stage .line-link:active { transform: scale(0.94); }

.mo-stage .home-seal {
  position: absolute;
  z-index: 3;
  inset: 0;
  margin: 0;
  pointer-events: none;
}

.mo-stage .seal-image {
  position: absolute;
  top: 437rem;
  left: 141rem;
  width: 244.5rem;
  height: 115.5rem;
}

.mo-stage .seal-english {
  position: absolute;
  font-family: Georgia, "Times New Roman", serif;
  top: 536rem;
  left: 63rem;
  font-size: 62.5rem;
  line-height: 1;
  letter-spacing: -3.5rem;
  color: var(--ink);
  opacity: 0.26;
}

.mo-stage .home-title {
  position: absolute;
  z-index: 5;
  top: 634rem;
  left: 16rem;
  margin: 0;
  font-size: 48rem;
  line-height: 48rem;
  font-weight: 400;
  letter-spacing: 0;
}

.mo-stage .home-title span { display: block; }

.mo-stage .home-footer {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
}

.mo-stage .footer-ghost {
  position: absolute;
  top: 710rem;
  left: 22rem;
  font-size: 56rem;
  line-height: 1;
  font-style: italic;
  letter-spacing: -4rem;
  color: var(--ink);
  opacity: 0.15;
  white-space: nowrap;
}

.mo-stage .footer-metropolitan {
  position: absolute;
  font-family: Georgia, "Times New Roman", serif;
  top: 736rem;
  left: 18rem;
  font-size: 34rem;
  line-height: 1;
  letter-spacing: 3rem;
  color: var(--ink);
  opacity: 0.5;
  white-space: nowrap;
}

.mo-stage .footer-line {
  position: absolute;
  left: 16rem;
  font-size: 48rem;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
  opacity: 0.5;
  white-space: nowrap;
}

.mo-stage .footer-rail { top: 763.5rem; }

.mo-stage .footer-network { top: 811.5rem; }

.mo-stage.route-page {
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
}

.mo-stage.line-1 { background-image: url("../assets/maps/line-1.png"); }
.mo-stage.line-2 { background-image: url("../assets/maps/line-2.png"); }
.mo-stage.line-3 { background-image: url("../assets/maps/line-3.png"); }
.mo-stage.line-4 { background-image: url("../assets/maps/line-4.png"); }
.mo-stage.line-5 { background-image: url("../assets/maps/line-5.png"); }
.mo-stage.line-6 { background-image: url("../assets/maps/line-6.png"); }

.mo-stage .top-navigation {
  position: absolute;
  z-index: 5;
  top: 14rem;
  right: 14rem;
  display: flex;
  min-width: 104rem;
  min-height: 36rem;
  align-items: center;
  justify-content: center;
  gap: 8rem;
  padding: 5rem 10rem;
  border: 1rem solid rgba(138, 56, 45, 0.5);
  background: rgba(255, 255, 255, 0.88);
  font-size: 15rem;
  transition: color 180ms ease, background-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.mo-stage .top-navigation:hover,
.mo-stage .top-navigation:focus-visible,
.mo-stage .top-navigation:active {
  color: #fff;
  background: var(--ink);
  outline: none;
}

.mo-stage .nav-arrow { font-size: 17rem; }

.mo-stage .route-heading {
  position: absolute;
  top: 18rem;
  left: 22rem;
  right: 128rem;
  z-index: 2;
  text-shadow: 0 1rem 4rem rgba(255, 255, 255, 0.9);
}

.mo-stage .route-kicker {
  margin: 0 0 5rem;
  font-size: 10rem;
  letter-spacing: 2rem;
  color: var(--ink-soft);
}

.mo-stage .route-heading h1 {
  margin: 0;
  font-size: 29rem;
  line-height: 1.18;
  font-weight: 400;
}

.mo-stage .route-endpoints {
  margin: 4rem 0 0;
  font-size: 13rem;
  line-height: 1.3;
}

.mo-stage .route-description {
  position: absolute;
  z-index: 2;
  top: 475rem;
  left: 18rem;
  right: 18rem;
  padding: 10rem 12rem;
  background: rgba(255, 255, 255, 0.88);
  border-left: 2rem solid rgba(138, 56, 45, 0.62);
}

.mo-stage .route-description h2,
.mo-stage .scenic-list h2 {
  margin: 0 0 6rem;
  font-size: 16rem;
  font-weight: 400;
  letter-spacing: 2rem;
}

.mo-stage .route-description p {
  margin: 0;
  font-size: 12rem;
  line-height: 1.65;
  text-align: justify;
}

.mo-stage .scenic-list {
  position: absolute;
  z-index: 2;
  top: 655rem;
  left: 18rem;
  right: 18rem;
  padding: 8rem 12rem 10rem;
  background: rgba(255, 255, 255, 0.88);
}

.mo-stage .scenic-list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem 10rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mo-stage .scenic-list li {
  font-size: 11rem;
  line-height: 1.45;
}

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

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

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

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

.mo-stage .hero-item {
  opacity: 0;
  transform: translateY(22rem);
  animation: hero-enter 850ms cubic-bezier(0.2, 0.72, 0.25, 1) forwards;
}

.mo-stage .home-nav { animation-delay: 60ms; }
.mo-stage .home-map-layer { animation-delay: 0ms; }
.mo-stage .seal-image { animation-delay: 300ms; }
.mo-stage .seal-english { animation-delay: 420ms; }
.mo-stage .home-title { animation-delay: 560ms; }
.mo-stage .home-footer { animation-delay: 720ms; }
.mo-stage .route-heading { animation-delay: 100ms; }
.mo-stage .route-description { animation-delay: 300ms; }
.mo-stage .scenic-list { animation-delay: 500ms; }
.mo-stage .top-navigation { animation-delay: 0ms; }

.mo-stage .line-link:nth-child(1) { animation-delay: 200ms; }
.mo-stage .line-link:nth-child(2) { animation-delay: 260ms; }
.mo-stage .line-link:nth-child(3) { animation-delay: 320ms; }
.mo-stage .line-link:nth-child(4) { animation-delay: 380ms; }
.mo-stage .line-link:nth-child(5) { animation-delay: 440ms; }
.mo-stage .line-link:nth-child(6) { animation-delay: 500ms; }

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

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

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

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(22rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes line-fade {
  from { opacity: 0; }
  to { opacity: 0.8; }
}

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