@font-face {
  font-family: "JinbeiText";
  src: url("../fonts/LXGWWenKaiScreen.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "JinbeiDisplay";
  src: url("../fonts/FZBWKSJW.TTF") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "JinbeiDomain";
  src: url("../fonts/方正兰亭中黑_GBK.TTF") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  font-family: "JinbeiText", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #f4d1b7;
}

body {
  display: flex;
  justify-content: center;
}

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

.page {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100vh;
  overflow: hidden;
  background: #f6d6bf url("../images/page-bg.jpg") top center / 100% auto no-repeat;
}

.content {
  position: relative;
  z-index: 1;
  padding: 0 6.5% 124px;
}

.logo {
  display: block;
  width: 70.9%;
  margin: 0 auto;
}

.hero-frame {
  width: 100%;
  margin: 42px auto 0;
  padding: 2px;
  border-radius: 24px;
  background: linear-gradient(90deg, #7b351c 0%, #b06a2c 42%, #f6c35f 72%, #fff0aa 100%);
  box-shadow: 0 3px 8px rgba(142, 68, 18, 0.22);
}

.hero {
  display: block;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
}

.welcome {
  display: block;
  width: 93%;
  margin: 48px auto 18px;
}

.routes {
  display: grid;
  gap: 6px;
}

.route {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 39%;
  align-items: center;
  gap: 1.8%;
  min-height: 76px;
}

.route-card {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 78px;
  overflow: hidden;
  border: 1px solid #ff7900;
  border-radius: 999px;
  background: #fff8ef;
}

.route-badge {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 13px;
  width: max-content;
  min-width: 42%;
  padding: 0 24px 0 28px;
  background: #963629;
  color: #fff;
  font-family: "JinbeiDisplay", "JinbeiText", "PingFang SC", sans-serif;
  font-size: clamp(14px, 2.9vw, 25px);
  line-height: 1;
  white-space: nowrap;
}

.route-badge img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.route-url {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 18px;
  color: #111;
  overflow: hidden;
  font-family: "JinbeiDomain", Arial, "Helvetica Neue", sans-serif;
  font-size: clamp(16px, 3.25vw, 29px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.route-button {
  display: block;
  width: 104%;
  max-width: none;
  justify-self: center;
  animation: buttonPulse 1.8s ease-in-out infinite;
  filter: drop-shadow(0 3px 5px rgba(82, 27, 12, 0.28));
  transform-origin: center;
}

.route::after {
  content: "";
  position: absolute;
  top: 10%;
  right: -7%;
  width: 14%;
  height: 80%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.72) 48%, transparent 100%);
  animation: buttonShine 2.4s ease-in-out infinite;
}

.route:active .route-button {
  transform: scale(0.96);
}

.girls {
  display: block;
  width: 98%;
  margin: 76px auto 0;
}

@keyframes buttonPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.045);
  }
}

@keyframes buttonShine {
  0%,
  45% {
    opacity: 0;
    transform: translateX(-155%) skewX(-18deg);
  }

  58% {
    opacity: 0.85;
  }

  78%,
  100% {
    opacity: 0;
    transform: translateX(125%) skewX(-18deg);
  }
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100vw, 430px);
  height: 124px;
  transform: translateX(-50%);
  border-top: 1px solid rgba(255, 220, 150, 0.85);
  background: linear-gradient(180deg, #7b5737 0%, #5b351d 100%);
  color: #fff4e8;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  border-left: 1px solid rgba(255, 224, 159, 0.86);
  font-family: "JinbeiDisplay", "JinbeiText", "PingFang SC", sans-serif;
  font-size: clamp(18px, 3vw, 32px);
  line-height: 1;
}

.bottom-nav a:first-child {
  border-left: 0;
}

.bottom-nav img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

@media (min-width: 0) {
  .content {
    padding-right: 6%;
    padding-left: 6%;
    padding-bottom: 76px;
  }

  .hero-frame {
    margin-top: 22px;
    padding: 1px;
    border-radius: 13px;
  }

  .hero {
    border-radius: 12px;
  }

  .welcome {
    margin-top: 28px;
    margin-bottom: 8px;
  }

  .routes {
    gap: 3px;
  }

  .route {
    grid-template-columns: minmax(0, 66%) minmax(0, 32%);
    gap: 2%;
    min-height: 34px;
  }

  .route-card {
    height: clamp(28px, 7vw, 32px);
  }

  .route-badge {
    gap: 4px;
    min-width: 41%;
    padding: 0 7px 0 8px;
    font-size: clamp(12px, 2.8vw, 14px);
  }

  .route-badge img {
    width: clamp(16px, 4.6vw, 20px);
    height: clamp(16px, 4.6vw, 20px);
  }

  .route-url {
    padding: 0 6px;
    font-size: clamp(13px, 3.2vw, 15px);
  }

  .route-button {
    width: 106%;
    max-width: none;
  }

  .girls {
    margin-top: 44px;
  }

  .bottom-nav {
    height: 72px;
  }

  .bottom-nav a {
    gap: 5px;
    font-size: 18px;
  }

  .bottom-nav img {
    width: 48px;
    height: 48px;
  }
}
