:root {
  --bg-top: #1560aa;
  --bg-mid: #0f427a;
  --bg-bottom: #1e1208;
  --panel: rgba(255, 255, 255, 0.1);
  --panel-strong: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.7);
  --text-faint: rgba(255, 255, 255, 0.48);
  --accent: #ffffff;
  --button-text: #004E97;
  --shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

@font-face {
  font-family: "UnitedSansHeavyLocal";
  src: url("./fonts/UnitedSansSemiCond-Heavy.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 35%, #274f73 55%, #5d4c39 77%, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.page-bg,
.page-noise {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.page-bg {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12), transparent 30%),
    radial-gradient(circle at 80% 28%, rgba(255, 225, 160, 0.14), transparent 24%),
    radial-gradient(circle at 50% 70%, rgba(255, 202, 135, 0.08), transparent 36%);
  background-size: auto, auto, auto;
  background-position: center center, center center, center center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

.page-shell.is-rzr-series .page-bg {
  background:
    linear-gradient(180deg, rgba(9, 50, 96, 0.12), rgba(9, 50, 96, 0.12)),
    url("./image/tidao-bg.jpg"),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.08), transparent 30%),
    radial-gradient(circle at 80% 28%, rgba(255, 225, 160, 0.1), transparent 24%);
  background-size: cover, cover, auto, auto;
  background-position: center center, center center, center center, center center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  opacity: 0.92;
}

.page-noise {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 90%);
}

.mobile-stage {
  position: relative;
  z-index: 1;
  max-width: 430px;
  min-height: 90vh;
  margin: 0 auto;
  padding: 0;
}

.series-strip {
  position: relative;
  z-index: 3;
  margin-bottom: -36px;
  padding: calc(env(safe-area-inset-top, 0px) + 50px) 12px 0;
}

.series-strip__title {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-family: "UnitedSansHeavyLocal", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.series-strip__inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  align-items: flex-start;
  min-height: 108px;
  padding: 0;
  scrollbar-width: none;
}

.series-strip__inner::-webkit-scrollbar {
  display: none;
}

.series-tab {
  flex: 0 0 calc((100% - 20px) / 2.5);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: none;
  padding: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
  transition: opacity 180ms ease, transform 180ms ease;
  opacity: 1;
}

.series-tab.is-active {
  opacity: 1;
  transform: translateY(0);
}

.series-tab__logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  min-height: 64px;
}

.series-tab__logo {
  display: block;
  max-width: 130px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.series-tab__name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
  text-align: center;
  font-family: "UnitedSansHeavyLocal", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.series-tab:not(.is-active) .series-tab__name {
  display: none;
}

.viewer {
  padding: 0 10px 8px;
}

.viewer__badge {
  display: none;
}

.polaris-swiper {
  overflow: visible;
  position: relative;
}

.polaris-card {
  position: relative;
  min-height: calc(100vh - 74px);
  max-height: calc(100vh - 74px);
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.polaris-card__backdrop,
.polaris-card__overlay,
.polaris-card__content {
  position: absolute;
  inset: 0;
}

.polaris-card__backdrop {
  background-size: cover;
  background-position: center 40%;
  transform: scale(1);
  filter: none;
  opacity: 0;
}

.polaris-card__overlay {
  background: transparent;
}

.polaris-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 34px 18px 18px;
}

.polaris-card__visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  min-height: 50vh;
  padding: 6px 0 0;
}

.polaris-card__visual::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 9%;
  height: 30%;
  background:
    radial-gradient(circle at 50% 50%, rgba(220, 184, 131, 0.26), rgba(100, 66, 28, 0) 70%);
  filter: blur(20px);
}

.polaris-card__vehicle {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 auto;
  width: min(96%, 390px);
  max-height: min(44vh, 340px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.24));
}

.polaris-card__footer {
  width: 100%;
  text-align: center;
  margin-top: -36px;
  padding-bottom: 92px;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.polaris-card__eyebrow {
  font-family: "UnitedSansHeavyLocal", "Arial Narrow", "Bahnschrift Condensed", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
}

.polaris-card__title {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  font-family: "UnitedSansHeavyLocal", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.polaris-card__price {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.2;
  font-family: "UnitedSansHeavyLocal", "Arial Narrow", "Bahnschrift Condensed", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.04em;
}

.polaris-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  margin-top: 16px;
  padding: 12px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--button-text);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.swiper-pagination {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  z-index: 6;
}

.swiper-pagination-bullet {
  width: 26px;
  height: 2px;
  margin: 0 !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: rgba(255, 255, 255, 0.9);
}

@media (min-width: 520px) {
  .viewer {
    padding-inline: 18px;
  }

  .polaris-card {
    min-height: calc(100vh - 82px);
    max-height: calc(100vh - 82px);
  }
}
