/* ==========================================================================
 *  样式 1:1 还原自 https://www.phkyc.com/
 *  桌面端 (>=661px) 以 vh 为缩放基准，移动端 (<=660px) 以 vw 为基准
 * ========================================================================== */

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

html, body {
  margin: 0;
  padding: 0;
  background: #04151a;
}

body {
  overflow: hidden auto;
  font-family: -apple-system, "system-ui", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { border: 0; }

/* ---------------- 外层容器 ---------------- */
.home_bg {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.home_bg::-webkit-scrollbar { display: none; }

.home_bg::after {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  content: "";
  background: #04151a;
}

.page-max-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.page-max-wrap::-webkit-scrollbar { display: none; }

.home-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.home-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ---------------- LOGO ---------------- */
.common-logo { object-fit: contain; }

.home-inner-logo {
  position: relative;
  z-index: 1;
  display: block;
}
.home-inner-logo[src=""], .home-inner-logo:not([src]) { display: none; }

/* ---------------- Banner ---------------- */
.page-banner {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.game-banner { position: relative; width: 100%; }

.banner-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.banner-track {
  display: flex;
  width: 100%;
  transition: transform .3s ease;
}

.banner-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
}

.banner-img {
  display: block;
  width: 100%;
  aspect-ratio: 710 / 300;
  object-fit: cover;
  border-radius: 10px;
}

a.banner-slide { cursor: pointer; }

.banner-pagination {
  position: absolute;
  bottom: 10%;
  left: 50%;
  z-index: 11;
  display: flex;
  justify-content: center;
  width: 500px;
  max-width: 100%;
  border-radius: 5px;
  transform: translateX(-50%);
}

.swiper-pagination-bullet {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  cursor: pointer;
  background: #dedede;
  border-radius: 100%;
  opacity: .2;
}

.swiper-pagination-bullet-active {
  background: #fff;
  opacity: 1;
}

/* ---------------- 导航按钮 ---------------- */
.nav-btn-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  color: #fff;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  background: #255757;
}

.nav-btn .nav-btn-icon,
.nav-btn svg {
  flex-shrink: 0;
  overflow: hidden;
  object-fit: contain;
  fill: currentcolor;
}

/* ---------------- 线路卡片 ---------------- */
.toggle-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 32px;
  margin: 0;
  background: #255757;
  border-radius: 20px;
}

.home-title {
  display: flex;
  align-items: center;
  color: transparent;
  background: linear-gradient(#fff, #ffeb87 51.56%, #ffd400);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 700;
  white-space: nowrap;
}

.home-title::before,
.home-title::after {
  display: block;
  content: "";
}

.home-title::before {
  background: linear-gradient(270deg, #ffd400, #ffeb87 48.44%, rgba(255, 255, 255, 0));
}

.home-title::after {
  background: linear-gradient(270deg, rgba(255, 255, 255, 0), #ffeb87 51.56%, #ffd400);
}

/* ---------------- 线路列表 ---------------- */
.domain-wrap {
  position: relative;
  display: grid;
  width: 100%;
  cursor: default;
}

.domain-wrap .domain-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #04151a;
}

.domain-wrap .domain-info {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #21afba;
  flex-shrink: 0;
}

.domain-wrap .arrow {
  flex-shrink: 0;
  overflow: hidden;
  fill: currentcolor;
}

.domain-wrap .speed-wrap {
  display: flex;
  align-items: center;
  color: transparent;
  background: linear-gradient(#ffd945, rgba(255, 216, 116, .75) 25%, rgba(193, 151, 41, .84) 51.27%, #ffeab3);
  -webkit-background-clip: text;
  background-clip: text;
}

.domain-wrap .speed-text {
  display: flex;
  align-items: center;
  font-weight: 800;
  white-space: nowrap;
}

.domain-wrap .speed-text p { margin: 0; font-weight: 800; }

.domain-wrap .btn-enter {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  background: linear-gradient(#ffd945, rgba(255, 216, 116, .75) 25%, rgba(193, 151, 41, .84) 51.27%, #ffeab3);
  text-decoration: none;
}

.domain-wrap .btn-enter span { display: flex; align-items: center; }

/* ---------------- 底部 Copyright ---------------- */
.home-footer {
  position: absolute;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-weight: 900;
  color: #fff;
  background: #071b20;
}

.home-footer span { font-weight: 600; color: #255757; }


/* ==========================================================================
 *  桌面端 (>= 661px) —— 以 vh 为缩放基准
 * ========================================================================== */
@media (width >= 661px) {

  .home_bg {
    width: 81.2808vh;
    max-width: 660px;
    padding-bottom: 5.54187vh;
    margin: 0 auto;
    background: #04151a;
  }

  .home-content {
    padding: 0 1.53941vh;
    margin-top: 1.23153vh;
  }

  .home-inner-logo { height: 7.69704vh; }

  .page-banner { margin-top: 1.23153vh; }

  .nav-btn-group {
    gap: .923645vh .769704vh;
    padding: 1.53941vh 0;
  }

  .nav-btn {
    gap: .615764vh;
    height: 4.37192vh;
    font-size: 1.41626vh;
    border-radius: .738916vh;
  }

  .nav-btn .nav-btn-icon,
  .nav-btn svg {
    width: 2.15517vh;
    height: 2.15517vh;
  }

  .home-title {
    gap: .615764vh;
    margin: 0 0 2.64778vh;
    font-size: 2.46305vh;
  }

  .home-title::before,
  .home-title::after {
    width: 7.88177vh;
    height: .0615764vh;
  }

  .domain-wrap { gap: .923645vh; }

  .domain-wrap .domain-item {
    height: 4.31034vh;
    padding-inline: 3.50985vh .431034vh;
    border-radius: 4.31034vh;
  }

  .domain-wrap .domain-info {
    width: 3.94089vh;
    text-shadow: 0 0 .307882vh #21afba;
  }

  .domain-wrap .arrow {
    width: 1.97044vh;
    height: 1.97044vh;
  }

  .domain-wrap .speed-text {
    min-width: 7.38916vh;
    font-size: 1.78571vh;
  }

  .domain-wrap .btn-enter {
    height: 3.44828vh;
    padding: 0 2.0936vh;
    margin-left: 3.07882vh;
    font-size: 2.03202vh;
    text-shadow: 0 .246305vh .246305vh rgba(4, 21, 26, .25);
    border-radius: 3.44828vh;
  }

  .domain-wrap .btn-enter span { font-size: 1.47783vh; }

  .home-footer {
    height: 4.12562vh;
    font-size: .985222vh;
  }

  .home-footer span { margin-left: .615764vh; }
}


/* ==========================================================================
 *  移动端 (<= 660px) —— 以 vw 为缩放基准
 * ========================================================================== */
@media (width <= 660px) {

  .home_bg {
    padding-bottom: 12vw;
    background: #04151a;
  }

  .home-content {
    padding: 0 3.33333vw;
    margin-top: 2.66667vw;
  }

  .home-inner-logo { height: 16.6667vw; }

  .page-banner { margin-top: 2.66667vw; }

  .nav-btn-group {
    gap: 2vw 1.66667vw;
    padding: 3.33333vw 0;
  }

  .nav-btn {
    gap: 1.33333vw;
    height: 9.46667vw;
    font-size: 3.06667vw;
    border-radius: 1.6vw;
  }

  .nav-btn .nav-btn-icon,
  .nav-btn svg {
    width: 4.66667vw;
    height: 4.66667vw;
  }

  .home-title {
    gap: 1.33333vw;
    margin: 0 0 5.73333vw;
    font-size: 5.33333vw;
  }

  .home-title::before,
  .home-title::after {
    width: 17.0667vw;
    height: .133333vw;
  }

  .domain-wrap { gap: 2vw; }

  .domain-wrap .domain-item {
    height: 9.33333vw;
    padding-inline: 7.6vw .933333vw;
    border-radius: 9.33333vw;
  }

  .domain-wrap .domain-info {
    width: 8.53333vw;
    text-shadow: 0 0 .666667vw #21afba;
  }

  .domain-wrap .arrow {
    width: 4.26667vw;
    height: 4.26667vw;
  }

  .domain-wrap .speed-text {
    min-width: 16vw;
    font-size: 3.86667vw;
  }

  .domain-wrap .btn-enter {
    height: 7.46667vw;
    padding: 0 4.53333vw;
    margin-left: 6.66667vw;
    font-size: 4.4vw;
    text-shadow: 0 .533333vw .533333vw rgba(4, 21, 26, .25);
    border-radius: 7.46667vw;
  }

  .domain-wrap .btn-enter span { font-size: 3.2vw; }

  .home-footer {
    height: 8.93333vw;
    font-size: 2.13333vw;
  }

  .home-footer span { margin-left: 1.33333vw; }
}
