:root {
  --nx-navy: #1a005d;
  --nx-green: #8ec300;
  --paper: #f4f4f2;
  --ink: #333333;
  --muted: #77727f;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Microsoft YaHei UI",
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--nx-navy);
}

.skip-link:focus {
  top: 12px;
}

.site {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #ffffff;
}

.site-header {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(180px, 230px) 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(24px, 4.5vw, 72px);
  border-bottom: 4px solid var(--nx-green);
  background: var(--paper);
}

.brand-logo {
  width: min(210px, 100%);
  max-height: 48px;
  object-fit: contain;
}

.site-name {
  padding-left: 22px;
  border-left: 1px solid #c9c6ce;
  color: var(--nx-navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.site-code {
  color: var(--nx-navy);
  font: 700 10px/1.5 Arial, sans-serif;
  letter-spacing: 0.17em;
  text-align: right;
}

.hero {
  min-height: calc(100svh - 130px);
  display: grid;
  grid-template-columns: 52% 48%;
  overflow: hidden;
}

.hero-copy {
  padding:
    clamp(52px, 8vh, 92px)
    clamp(40px, 7.5vw, 120px)
    48px;
  background: #ffffff;
}

.kicker {
  margin: 0;
  color: var(--nx-green);
  font: 800 12px/1.4 Arial, sans-serif;
  letter-spacing: 0.19em;
}

h1 {
  margin: 18px 0 17px;
  color: var(--nx-navy);
  font-size: clamp(52px, 5.4vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h1 span {
  display: block;
}

.branch {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.tagline {
  margin: 9px 0 0;
  color: var(--muted);
  font: 400 13px/1.4 Arial, sans-serif;
  letter-spacing: 0.18em;
}

.portal {
  margin-top: 47px;
  padding: 15px 20px 15px 17px;
  border: 0;
  border-left: 7px solid var(--nx-green);
  color: #ffffff;
  background: var(--nx-navy);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.portal:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.portal span {
  margin-left: 28px;
}

.portal-note {
  margin: 9px 0 0;
  color: #8a8690;
  font-size: 11px;
}

.route-stage {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #c8eaf5;
}

.route-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.site-footer {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4.5vw, 72px);
  color: var(--muted);
  background: var(--paper);
  font-size: 10px;
}

.site-footer strong {
  color: var(--nx-navy);
  font-family: Arial, sans-serif;
  letter-spacing: 0.13em;
}

@media (max-width: 900px) {
  .site-header {
    min-height: 68px;
    grid-template-columns: 158px 1fr;
    gap: 12px;
  }

  .site-name {
    padding-left: 12px;
    font-size: 11px;
  }

  .site-code {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(240px, 40svh);
  }

  .hero-copy {
    padding: 48px 8% 42px;
  }

  h1 {
    font-size: clamp(46px, 11vw, 68px);
  }
}

@media (max-width: 480px) {
  .site-header {
    grid-template-columns: 130px 1fr;
    padding-inline: 18px;
  }

  .brand-logo {
    width: 128px;
  }

  .site-name {
    font-size: 10px;
  }

  .hero-copy {
    padding-inline: 7%;
  }

  .branch {
    font-size: 15px;
  }

  .site-footer {
    padding-inline: 18px;
  }
}
