/* Nav / 线路导航页 — H5 375 栏，PC 居中同一套内容 */

.nav-page {
  --nav-theme: #ecd227;
  --nav-bg: #0f0f0f;
  --nav-text: #f6f2f9;
  --nav-muted: rgba(255, 255, 255, 0.6);
  --nav-card: rgba(255, 255, 255, 0.1);
  --nav-font: "PingFang SC", "Noto Sans SC", sans-serif;
  --nav-brand-font: "Alimama FangYuanTi VF", "PingFang SC", "Noto Sans SC", sans-serif;
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  background: var(--nav-bg) url("/static/images/nav_bg.png") no-repeat center / cover;
  color: #fff;
  font-family: var(--nav-font);
}

.nav-page__shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  padding-top: max(29px, env(safe-area-inset-top, 0px));
}

.nav-page__main {
  width: 100%;
  max-width: 375px;
  padding: 12px 28px calc(12px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.nav-error {
  align-self: stretch;
  padding: 10px 12px;
  color: var(--nav-theme);
  background: rgba(236, 210, 39, 0.12);
  border-radius: 8px;
  font-size: 12px;
  line-height: 18px;
}

.nav-brand {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.nav-brand__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  background: #1a1a1a;
}

.nav-brand__name {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-family: var(--nav-brand-font);
  font-weight: 600;
  line-height: 1.2;
}

.nav-brand__accent {
  color: var(--nav-theme);
}

.nav-brand__desc {
  margin: 0;
  opacity: 0.6;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.nav-brand__tagline {
  margin: 0;
  text-align: center;
  color: var(--nav-theme);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.nav-route-list:not(:has(a)),
.nav-social-row:not(:has(a)) {
  display: none;
}

.nav-route-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.nav-route {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  box-sizing: border-box;
  background: var(--nav-card);
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.nav-route__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.nav-route__name,
.nav-forever__name {
  color: var(--nav-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.nav-route__url,
.nav-forever__url {
  color: var(--nav-theme);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  word-break: break-all;
}

.nav-route__btn {
  flex-shrink: 0;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  background: rgba(236, 210, 39, 0.2);
  border-radius: 999px;
  border: 1px solid var(--nav-theme);
  color: var(--nav-theme);
  font-size: 10px;
  font-weight: 400;
  line-height: 16px;
}

.nav-route__chevron {
  width: 5px;
  height: 4px;
  display: block;
  flex-shrink: 0;
}

.nav-route__glow {
  position: absolute;
  width: 92px;
  height: 63px;
  left: 156px;
  top: 43.5px;
  background: #9c9c9c;
  border-radius: 9999px;
  filter: blur(50px);
  pointer-events: none;
}

.nav-forever {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 10px 16px;
  box-sizing: border-box;
  background: rgba(236, 210, 39, 0.1);
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: inherit;
}

.nav-forever__name,
.nav-forever__url {
  text-align: center;
}

.nav-app {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 64px;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/static/images/nav_down_bg.png") center / cover no-repeat;
}

.nav-app__text {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--nav-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.nav-contact {
  text-align: center;
  color: var(--nav-theme);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  word-break: break-all;
}

.nav-social-row {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 4px;
}

.nav-social {
  width: 61px;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.nav-social__icon {
  width: 30px;
  height: 30px;
  padding: 7px;
  box-sizing: border-box;
  background: var(--nav-card);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-social__icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.nav-social__icon--app img {
  width: 18px;
  height: 18px;
}

.nav-social__label {
  text-align: center;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
}

.nav-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.nav-footer__notice,
.nav-footer__copy {
  margin: 0;
  width: 100%;
  opacity: 0.6;
  text-align: center;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

@media (min-width: 769px) {
  .nav-page__shell {
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  .nav-page__main {
    padding: 12px 28px;
  }
}
