:root {
  color-scheme: dark;
  --bg: #09090d;
  --surface: #171720;
  --surface-hover: #1d1d28;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f7f7fb;
  --muted: #aaaaba;
  --gold: #ffdc61;
  --gold-strong: #ffbd2e;
  --purple: #a875ff;
  --green: #67d99b;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -5%, rgba(168, 117, 255, 0.14), transparent 34rem),
    radial-gradient(circle at 92% 8%, rgba(255, 189, 46, 0.11), transparent 28rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

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

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-shell {
  width: min(100% - 32px, 1040px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  border-radius: 10px;
  color: #13100a;
  background: var(--gold);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 13, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 220, 97, 0.48);
  border-radius: 13px;
  color: #17130b;
  background: linear-gradient(145deg, #fff0a7, var(--gold-strong));
  box-shadow: 0 10px 30px rgba(255, 189, 46, 0.16);
  font-size: 20px;
  font-weight: 900;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: 0.04em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.home-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: #e9e9f1;
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.home-link:hover {
  border-color: rgba(255, 220, 97, 0.3);
  background: rgba(255, 220, 97, 0.08);
  transform: translateY(-1px);
}

.hero {
  padding-top: 28px;
}

.hero-link {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #101014;
  box-shadow: var(--shadow);
}

.hero-link::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-link img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.notice {
  position: relative;
  z-index: 2;
  width: min(92%, 760px);
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 14px auto 0;
  padding: 15px 20px;
  border: 1px solid rgba(255, 220, 97, 0.22);
  border-radius: 18px;
  background: rgba(18, 18, 25, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.notice-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(255, 220, 97, 0.11);
}

.notice p,
.security-note p {
  margin: 0;
}

.notice p {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.notice strong {
  color: var(--gold);
  font-size: 15px;
}

.notice span:last-child {
  color: var(--muted);
  font-size: 14px;
}

.routes-section {
  padding: 28px 0 34px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.route-card {
  position: relative;
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.route-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.route-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.route-number {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(168, 117, 255, 0.22);
  border-radius: 13px;
  color: #d7c3ff;
  background: rgba(168, 117, 255, 0.09);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.route-copy {
  min-width: 0;
}

.route-copy h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.route-copy p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-open {
  min-width: 82px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid rgba(255, 220, 97, 0.34);
  border-radius: 13px;
  color: var(--gold);
  background: rgba(255, 220, 97, 0.07);
  font-size: 14px;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.route-open:hover {
  color: #171209;
  background: var(--gold);
  transform: translateY(-1px);
}

.security-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 58px;
  padding: 18px 20px;
  border: 1px solid rgba(103, 217, 155, 0.2);
  border-radius: 17px;
  background: rgba(103, 217, 155, 0.055);
}

.security-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #08150e;
  background: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.security-note p {
  display: grid;
  gap: 4px;
}

.security-note strong {
  font-size: 14px;
}

.security-note span:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 24px, 1040px);
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .home-link {
    min-height: 42px;
    padding-inline: 14px;
  }

  .hero {
    padding-top: 14px;
  }

  .hero-link {
    border-radius: 18px;
  }

  .notice {
    width: calc(100% - 20px);
    min-height: 64px;
    margin-top: 12px;
    padding: 13px 15px;
    border-radius: 15px;
  }

  .notice p {
    display: grid;
    gap: 3px;
  }

  .routes-section {
    padding-top: 22px;
  }

  .route-grid {
    grid-template-columns: 1fr;
  }

  .route-card {
    min-height: 86px;
    padding: 13px;
  }

  .security-note {
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 16px;
  }

}

@media (max-width: 390px) {
  .brand-copy small {
    display: none;
  }

  .home-link {
    padding-inline: 12px;
    font-size: 13px;
  }

  .route-number {
    width: 40px;
    height: 40px;
  }

  .route-main {
    gap: 10px;
  }

  .route-open {
    min-width: 72px;
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
