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

html,
body {
  width: 100%;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

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

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

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

/* Background */
.bg-picture {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: bg-zoom 24s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes bg-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 120, 40, 0.3)); }
  50% { filter: drop-shadow(0 0 16px rgba(255, 150, 60, 0.65)); }
}

@keyframes glow-pulse-blue {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(60, 140, 255, 0.2)); }
  50% { filter: drop-shadow(0 0 12px rgba(80, 160, 255, 0.45)); }
}

@keyframes glow-pulse-green {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(60, 200, 120, 0.2)); }
  50% { filter: drop-shadow(0 0 12px rgba(80, 220, 140, 0.45)); }
}

@keyframes icon-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(196, 30, 30, 0); }
  50% { box-shadow: 0 0 10px rgba(255, 60, 60, 0.55); }
}

/* Content */
.content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 20px;
  max-width: 750px;
  margin: 0 auto;
}

.header {
  width: 100%;
  padding-top: 2vw;
  animation: fade-up 0.7s ease backwards;
  animation-delay: 0.05s;
}

.slogan-picture,
.slogan-img {
  width: 100%;
}

.choose-wrap {
  width: 100%;
  margin: 8px 0 12px;
  animation: fade-up 0.7s ease backwards;
  animation-delay: 0.15s;
}

.choose-img {
  width: 100%;
}

/* Routes */
.routes {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.route-card {
  position: relative;
  display: block;
  width: 100%;
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), filter 0.3s ease;
  animation: fade-up 0.65s ease backwards;
}

.route-card:nth-child(1) { animation-delay: 0.28s; }
.route-card:nth-child(2) { animation-delay: 0.42s; }
.route-card:nth-child(3) { animation-delay: 0.56s; }

.route-card:active {
  transform: scale(0.97);
}

.route-card__img {
  width: 100%;
  height: auto;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.route-card--recommend .route-card__img {
  animation: glow-pulse 2.8s ease-in-out infinite;
}

.route-card--fast .route-card__img {
  animation: glow-pulse-blue 3.2s ease-in-out infinite;
  animation-delay: 0.4s;
}

.route-card--stable .route-card__img {
  animation: glow-pulse-green 3.4s ease-in-out infinite;
  animation-delay: 0.8s;
}

/* Footer */
.footer {
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
  animation: fade-up 0.7s ease backwards;
  animation-delay: 0.72s;
}

.notice-bar {
  width: 100%;
}

.notice-content {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 8px 12px;
  overflow: hidden;
}

.notice-icon {
  flex-shrink: 0;
  font-size: 14px;
  animation: icon-bounce 2.5s ease-in-out infinite;
}

.marquee-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
}

.marquee span {
  white-space: nowrap;
  padding-right: 60px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.notice-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  background: #c41e1e;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  animation: badge-pulse 2.5s ease-in-out infinite;
}

/* PC */
@media (min-width: 768px) {
  .content {
    max-width: 1200px;
    padding: 24px 32px 32px;
  }

  .header {
    padding-top: 16px;
  }

  .slogan-picture {
    max-width: 640px;
    margin: 0 auto;
  }

  .choose-wrap {
    max-width: 900px;
    margin: 12px auto 24px;
  }

  .routes {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
  }

  .route-card {
    flex: 1;
    max-width: 280px;
  }

  .route-card:hover {
    transform: translateY(-6px) scale(1.02);
  }

  .route-card:hover .route-card__img {
    filter: brightness(1.08);
  }

  .route-card--recommend:hover .route-card__img {
    filter: brightness(1.08) drop-shadow(0 0 20px rgba(255, 150, 60, 0.7));
  }

  .footer {
    display: flex;
    justify-content: center;
    padding-top: 28px;
  }

  .notice-bar {
    width: auto;
    max-width: 680px;
  }

  .notice-content {
    justify-content: center;
    padding: 10px 24px;
    gap: 10px;
  }

  .marquee-wrap {
    overflow: visible;
    flex: none;
    text-align: center;
  }

  .marquee {
    width: auto;
    animation: none;
    transform: none;
    justify-content: center;
  }

  .marquee span:last-child {
    display: none;
  }

  .marquee span {
    padding-right: 0;
    white-space: nowrap;
  }
}

@media (min-width: 1200px) {
  .route-card {
    max-width: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-img,
  .header,
  .choose-wrap,
  .route-card,
  .footer,
  .route-card__img,
  .notice-icon,
  .notice-badge,
  .marquee {
    animation: none !important;
    transition: none !important;
  }
}
