:root {
  color-scheme: light;
  --page: #f7fbff;
  --paper: rgba(255, 255, 255, 0.92);
  --paper-strong: #ffffff;
  --ink: #142033;
  --muted: #65758b;
  --soft-line: rgba(92, 127, 173, 0.16);
  --blue: #2e8bff;
  --sky: #66d7ff;
  --pink: #ff5aa6;
  --gold: #ffbf4d;
  --green: #30c974;
  --shadow: 0 22px 60px rgba(80, 118, 168, 0.16);
  --canvas-width: 1104px;
  --canvas-height: 940px;
  --page-scale: 1;
  --scaled-width: var(--canvas-width);
  --scaled-height: var(--canvas-height);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(142deg, rgba(102, 215, 255, 0.28) 0 22%, transparent 22%),
    linear-gradient(32deg, transparent 0 66%, rgba(255, 90, 166, 0.12) 66% 100%),
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.95) 0 150px, transparent 151px),
    linear-gradient(180deg, #fbfdff 0%, var(--page) 54%, #ffffff 100%);
  color: var(--ink);
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

button,
a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

button {
  appearance: none;
  cursor: pointer;
}

.page-stage {
  display: grid;
  width: 100%;
  min-height: 100dvh;
  place-items: center;
  padding: 0;
  overflow: visible;
  isolation: isolate;
}

.page-scale-frame {
  position: relative;
  width: var(--scaled-width);
  height: var(--scaled-height);
  overflow: visible;
}

.lulu-page {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: var(--canvas-width);
  height: var(--canvas-height);
  align-content: center;
  gap: 14px;
  padding: 22px 18px 16px;
  transform: scale(var(--page-scale));
  transform-origin: top left;
}

.top-hero,
.route-section,
.utility-section {
  position: relative;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.top-hero {
  overflow: hidden;
}

.route-section,
.utility-section {
  overflow: visible;
}

.top-hero {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  min-height: 350px;
  padding: 24px;
}

.top-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(46, 139, 255, 0.1) 0 28%, transparent 28%),
    linear-gradient(135deg, transparent 0 58%, rgba(255, 191, 77, 0.16) 58% 100%);
  content: "";
  pointer-events: none;
}

.top-hero > * {
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-logo {
  display: block;
  width: 300px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(67, 102, 170, 0.13));
  user-select: none;
}

.topbar-pill,
.eyebrow,
.section-heading small,
.entry-mark,
.route-badge {
  font-family: Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.topbar-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(46, 139, 255, 0.18);
  border-radius: 999px;
  padding: 0 14px;
  color: #1f6fd8;
  background: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 24px;
  align-items: center;
  min-height: 0;
}

.hero-copy {
  display: grid;
  gap: 10px;
  max-width: 560px;
}

.eyebrow {
  margin: 0;
  color: var(--pink);
  font-size: 14px;
  font-weight: 950;
}

h1 {
  margin: 0;
  color: #13213a;
  font-size: 64px;
  font-weight: 950;
  line-height: 1;
}

.lead {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.42;
}

.primary-entry,
.route-card,
.notice-card,
.utility-card {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--paper-strong);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.primary-entry {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 32px;
  gap: 16px;
  align-items: center;
  min-height: 92px;
  padding: 14px;
  text-align: left;
}

.primary-entry:hover,
.route-card:hover,
.notice-card:hover,
.utility-card:hover {
  border-color: rgba(46, 139, 255, 0.32);
  box-shadow: 0 18px 38px rgba(46, 139, 255, 0.12);
  transform: translateY(-2px);
}

.primary-entry:active,
.route-card:active,
.notice-card:active,
.utility-card:active {
  transform: translateY(0);
}

.primary-entry:focus-visible,
.route-card:focus-visible,
.notice-card:focus-visible,
.utility-card:focus-visible {
  outline: 3px solid rgba(46, 139, 255, 0.38);
  outline-offset: 3px;
}

.entry-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(145deg, var(--blue), var(--pink));
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(46, 139, 255, 0.2);
}

.entry-text,
.route-copy,
.notice-copy {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.entry-text strong {
  color: #10203a;
  font-size: 26px;
  font-weight: 950;
  line-height: 1.1;
}

.entry-text small,
.route-copy small,
.notice-copy small,
.utility-card small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.28;
}

.entry-arrow,
.notice-arrow {
  display: grid;
  min-height: 32px;
  place-items: center;
  color: var(--blue);
  font-size: 24px;
  font-weight: 950;
}

.route-section,
.utility-section {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 2px 4px;
}

.section-heading span {
  color: #13213a;
  font-size: 28px;
  font-weight: 950;
  line-height: 1.12;
}

.section-heading small {
  color: #2e74d9;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

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

.route-card {
  display: grid;
  min-height: 150px;
  align-content: start;
  gap: 9px;
  overflow: visible;
  padding: 14px;
  text-align: left;
}

.route-icon {
  position: relative;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  overflow: visible;
  outline: 0;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 3px rgba(20, 32, 51, 0.1),
    0 10px 18px rgba(37, 82, 146, 0.16),
    inset 0 -8px 12px rgba(20, 32, 51, 0.13);
}

.route-icon::before,
.utility-symbol::before {
  display: none;
}

.route-icon .icon-svg {
  width: 66%;
  height: 66%;
  filter: none;
  shape-rendering: geometricPrecision;
}

.route-main .route-icon {
  background: linear-gradient(145deg, #48c8ff, var(--blue));
}

.route-spare .route-icon {
  background: linear-gradient(145deg, #caa4ff, #724cff);
}

.route-world .route-icon {
  background: linear-gradient(145deg, #ff8bc5, var(--pink));
}

.route-copy strong {
  color: #142033;
  font-size: 21px;
  font-weight: 950;
  line-height: 1.16;
}

.route-badge {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 11px;
  color: #0f6a3a;
  background: rgba(48, 201, 116, 0.12);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.notice-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  text-align: left;
}

.notice-copy strong,
.utility-card strong {
  color: #142033;
  font-size: 19px;
  font-weight: 950;
  line-height: 1.18;
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.utility-card {
  display: grid;
  min-height: 92px;
  align-content: center;
  justify-items: start;
  gap: 6px;
  padding: 14px;
  text-align: left;
}

.utility-symbol {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(145deg, var(--blue), var(--sky));
  overflow: visible;
  outline: 0;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 3px rgba(20, 32, 51, 0.1),
    0 9px 15px rgba(37, 82, 146, 0.14),
    inset 0 -7px 11px rgba(20, 32, 51, 0.12);
}

.utility-symbol .icon-svg {
  width: 68%;
  height: 68%;
  filter: none;
  shape-rendering: geometricPrecision;
}

.notice-card .utility-symbol,
.utility-card:nth-child(2) .utility-symbol {
  background: linear-gradient(145deg, #b887ff, #724cff);
}

.utility-card:nth-child(3) .utility-symbol {
  background: linear-gradient(145deg, #ff87c4, #ff2f91);
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.page-footer p {
  margin: 0;
}

.page-footer small {
  color: #527098;
  font-size: 13px;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 20;
  max-width: min(380px, calc(100vw - 40px));
  border: 1px solid rgba(46, 139, 255, 0.2);
  border-radius: 999px;
  padding: 12px 17px;
  color: #ffffff;
  background: rgba(20, 32, 51, 0.92);
  box-shadow: 0 18px 38px rgba(80, 118, 168, 0.2);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.36;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 520px) {
  :root {
    --canvas-width: 430px;
    --canvas-height: 932px;
  }

  body {
    background:
      linear-gradient(118deg, rgba(102, 215, 255, 0.26) 0 28%, transparent 28% 68%, rgba(255, 90, 166, 0.12) 68% 100%),
      linear-gradient(75deg, transparent 0 18%, rgba(255, 255, 255, 0.78) 18% 19%, transparent 19% 100%),
      linear-gradient(160deg, #eaf8ff 0%, #ffffff 44%, #f8fbff 64%, #eef8ff 100%);
  }

  .lulu-page {
    align-content: start;
    gap: 13px;
    padding: 20px 22px 14px;
  }

  .top-hero {
    grid-template-rows: auto minmax(0, 1fr);
    justify-items: center;
    min-height: 314px;
    gap: 9px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    padding: 2px 0 0;
  }

  .top-hero::before {
    display: none;
  }

  .topbar {
    justify-content: center;
  }

  .topbar-pill {
    display: none;
  }

  .brand-logo {
    width: 306px;
    max-width: 100%;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    width: 100%;
  }

  .hero-copy {
    display: contents;
    justify-items: center;
    gap: 5px;
    text-align: center;
  }

  .eyebrow {
    display: none;
  }

  h1 {
    order: 1;
    justify-self: center;
    color: #ffffff;
    font-size: 43px;
    text-align: center;
    text-shadow:
      0 2px 0 rgba(64, 92, 190, 0.34),
      0 8px 20px rgba(46, 139, 255, 0.2);
  }

  .lead {
    order: 3;
    justify-self: center;
    max-width: 370px;
    color: #1d7dff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.18;
    text-align: center;
  }

  .primary-entry {
    order: 2;
    grid-template-columns: 46px minmax(0, 1fr) 36px;
    width: 326px;
    min-height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 6px 13px;
    background: linear-gradient(96deg, #18a7ff 0%, #6b5bff 46%, #ff3d9c 100%);
    box-shadow:
      0 12px 24px rgba(50, 116, 255, 0.24),
      inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  }

  .entry-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #2e8bff;
    background: #ffffff;
    box-shadow: inset 0 -4px 8px rgba(46, 139, 255, 0.12);
    font-size: 13px;
  }

  .entry-text {
    justify-items: center;
    text-align: center;
  }

  .entry-text strong {
    color: #ffffff;
    font-size: 30px;
    text-shadow: 0 2px 6px rgba(56, 45, 160, 0.24);
  }

  .entry-text small {
    display: none;
  }

  .entry-arrow {
    color: #ffffff;
    font-size: 28px;
  }

  .route-section,
  .utility-section {
    border-radius: 17px;
    padding: 11px 12px;
  }

  .section-heading {
    display: none;
  }

  .route-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .route-card {
    grid-template-columns: 72px minmax(0, 1fr) 24px;
    align-items: center;
    align-content: center;
    min-height: 88px;
    gap: 10px;
    border-radius: 16px;
    padding: 10px 14px;
    box-shadow: 0 12px 24px rgba(80, 118, 168, 0.12);
  }

  .route-card::after {
    content: ">";
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    color: var(--blue);
    font-size: 34px;
    font-weight: 950;
    line-height: 1;
  }

  .route-spare::after {
    color: #724cff;
  }

  .route-world::after {
    color: var(--pink);
  }

  .route-icon {
    grid-column: 1;
    grid-row: 1;
    width: 62px;
    height: 62px;
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 3px rgba(20, 32, 51, 0.12),
      0 10px 16px rgba(37, 82, 146, 0.14),
      inset 0 -9px 13px rgba(20, 32, 51, 0.14);
  }

  .route-icon::before,
  .utility-symbol::before {
    display: none;
  }

  .route-icon .icon-svg,
  .utility-symbol .icon-svg {
    width: 68%;
    height: 68%;
    filter: none;
    shape-rendering: geometricPrecision;
  }

  .route-copy {
    grid-column: 2;
    grid-row: 1;
    gap: 4px;
  }

  .route-copy strong {
    font-size: 25px;
  }

  .route-copy small {
    color: #1b63ca;
    font-size: 14px;
    font-weight: 800;
  }

  .route-badge {
    display: none;
  }

  .notice-card {
    grid-template-columns: 52px minmax(0, 1fr) 26px;
    min-height: 53px;
    border-color: rgba(255, 191, 77, 0.55);
    border-radius: 12px;
    padding: 6px 9px;
  }

  .notice-copy strong {
    font-size: 16px;
  }

  .notice-copy small {
    display: none;
  }

  .utility-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .utility-card {
    min-height: 86px;
    justify-items: center;
    align-content: center;
    gap: 5px;
    border-radius: 12px;
    padding: 9px 4px;
    text-align: center;
  }

  .utility-symbol {
    width: 44px;
    height: 44px;
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 3px rgba(20, 32, 51, 0.1),
      0 8px 13px rgba(37, 82, 146, 0.13),
      inset 0 -8px 11px rgba(20, 32, 51, 0.13);
  }

  .utility-card strong {
    font-size: 16px;
    line-height: 1.12;
  }

  .utility-card small {
    color: #2564bd;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.12;
  }

  .page-footer {
    display: grid;
    justify-content: center;
    justify-items: center;
    gap: 5px;
    padding: 0;
    color: #ff3a9a;
    font-size: 14px;
    line-height: 1.16;
    text-align: center;
  }

  .page-footer p {
    display: block;
    margin: 0;
    font-weight: 900;
  }

  .page-footer small {
    color: #1e55de;
    font-size: 10px;
    font-weight: 800;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
