/* XKING navigation page optimization
   Load this file after style.css, theme-overrides.css and animations.css. */

:root {
  --bg-page: #0a1d3a;
  --bg-wraper: linear-gradient(180deg, #0a1d3a 0%, #0a1d3a 30%, #15294a 100%);
  --text-primary: #ff9000;
  --text-accent: #ff9000;
  --marquee-color: #ff9000;
  --copyright-color: #ff9000;
  --glow-color: 91, 184, 255;
  --glow-strong: 0.6;
  --glow-soft: 0.2;
  --btn-filter: hue-rotate(71deg) saturate(1.4) brightness(1);
  --nav-bg: #07172f;
  --nav-panel: rgba(10, 28, 58, 0.86);
  --nav-panel-soft: rgba(255, 255, 255, 0.07);
  --nav-border: rgba(126, 205, 255, 0.22);
  --nav-text: #f5fbff;
  --nav-muted: rgba(245, 251, 255, 0.68);
  --nav-gold: #ffb23e;
  --nav-cta-start: #ffd36a;
  --nav-cta-mid: #ff9a2f;
  --nav-cta-end: #e94b21;
  --nav-cta-ring: rgba(255, 230, 154, 0.72);
  --nav-green: #22e27a;
  --nav-green-dark: #0c9f4a;
  --nav-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

html,
body {
  max-width: none;
  overflow-x: hidden;
  background: var(--nav-bg) !important;
}

body {
  width: 100%;
  min-height: 100vh;
  color: var(--nav-text);
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -8%, rgba(79, 171, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #07172f 0%, #0a1d3a 44%, #102542 100%);
}

.wraper {
  box-sizing: border-box;
  width: min(100%, 7.5rem);
  max-width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 0.28rem 0.34rem;
  background: transparent !important;
}

.header {
  height: auto !important;
  padding: 0.22rem 0 0.12rem;
  margin: 0 !important;
  background: transparent !important;
}

.wraper .logo {
  width: min(3.72rem, 68vw);
  filter: drop-shadow(0 0.1rem 0.18rem rgba(255, 153, 42, 0.25));
}

.swiper-banner {
  box-sizing: border-box;
  width: 100%;
  max-width: 6.9rem;
  margin: 0 auto 0.22rem;
  border-radius: 0.18rem;
  box-shadow: var(--nav-shadow);
}

.swiper-container,
.swiper-slide,
.swiper-slide img {
  border-radius: 0.18rem;
}

.swiper-slide img {
  display: block;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

.spacer {
  display: none;
}

.main-content {
  box-sizing: border-box;
  width: 100%;
  max-width: 6.9rem;
  margin: 0 auto;
}

.notice {
  min-height: 0.58rem;
  margin: 0 0 0.18rem;
  padding: 0.08rem 0.18rem;
  color: var(--nav-gold);
  background: rgba(255, 178, 62, 0.08);
  border: 1px solid rgba(255, 178, 62, 0.18);
  border-radius: 0.16rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.notice .gg {
  width: 0.34rem;
  height: 0.34rem;
  margin-right: 0.12rem;
  flex: 0 0 auto;
}

.marquee-wrap {
  font-size: 0.22rem;
  line-height: 1.35;
}

.marquee-wrap p {
  color: var(--nav-gold) !important;
}

.net-wrapper {
  box-sizing: border-box;
  position: relative;
  margin: 0;
  padding: 0.22rem;
  background: var(--nav-panel);
  border: 1px solid var(--nav-border);
  border-radius: 0.22rem;
  box-shadow: var(--nav-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.main-content > .net-wrapper::before {
  content: "Best Access Routes";
  display: block;
  margin-bottom: 0.16rem;
  color: var(--nav-text);
  font-size: 0.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.footer.net-wrapper::before {
  content: none;
}

.footer.net-wrapper {
  box-sizing: border-box;
  width: 100%;
  max-width: 6.9rem;
  min-height: auto;
  margin: 0.26rem auto 0;
  padding: 0.18rem 0.22rem;
}

.net-wrapper ul {
  display: grid;
  gap: 0.12rem;
}

.net-wrapper ul li {
  min-height: 0.82rem;
  margin: 0;
  padding: 0.13rem 0.16rem;
  gap: 0.14rem;
  background: var(--nav-panel-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.16rem;
  color: var(--nav-text);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.net-wrapper ul li:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(126, 205, 255, 0.38);
}

.net-wrapper ul li:first-child {
  min-height: 1.02rem;
  background:
    linear-gradient(135deg, rgba(34, 226, 122, 0.16), rgba(255, 178, 62, 0.13)),
    rgba(255, 255, 255, 0.08);
  border-color: rgba(34, 226, 122, 0.45);
  box-shadow: 0 0.12rem 0.28rem rgba(34, 226, 122, 0.14);
}

.net-wrapper ul li:first-child::after {
  content: "RECOMMENDED";
  position: absolute;
  top: -0.12rem;
  right: 0.18rem;
  z-index: 4;
  padding: 0.04rem 0.12rem;
  color: #052515;
  font-size: 0.12rem;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(180deg, #8bffb8, #22e27a);
  border-radius: 999px;
  box-shadow: 0 0.08rem 0.18rem rgba(34, 226, 122, 0.25);
}

.net-wrapper .flex {
  width: 1.34rem;
  flex: 0 0 1.34rem;
  justify-content: flex-start;
}

.net-wrapper .img1 {
  width: 0.3rem;
  height: 0.3rem;
  margin-right: 0.08rem;
}

.net-wrapper ul li p {
  color: var(--nav-green) !important;
  font-size: 0.2rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.net-wrapper ul li p i {
  color: inherit !important;
  font-style: normal;
}

.net-wrapper ul li a {
  min-width: 2.18rem;
  min-height: 0.52rem;
  margin-left: auto;
  padding: 0 0.08rem 0 0.18rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(135deg, var(--nav-cta-start) 0%, var(--nav-cta-mid) 48%, var(--nav-cta-end) 100%);
  border: 1px solid var(--nav-cta-ring);
  box-shadow:
    0 0.08rem 0.18rem rgba(255, 154, 47, 0.24),
    0 0 0 1px rgba(109, 35, 4, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.net-wrapper ul li a span {
  color: #ffffff !important;
  font-size: 0.2rem;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.net-wrapper .button {
  width: 0.94rem;
  margin-left: 0.08rem !important;
  filter: none !important;
}

body[data-theme] .main-content > .net-wrapper .button {
  filter: none !important;
}

body[data-theme]:not([data-theme="classic"]):not([data-theme="p222"]):not([data-theme="neon"]):not([data-theme="lux"]) .main-content > .net-wrapper .button {
  filter: none !important;
}

body[data-theme]:not([data-theme="classic"]):not([data-theme="p222"]):not([data-theme="neon"]):not([data-theme="lux"]) .main-content > .net-wrapper ul li a span {
  color: #ffffff !important;
}

.slot-reel {
  width: 1.12rem;
  height: 0.44rem;
  border-radius: 0.08rem;
  opacity: 0.92;
}

.net-wrapper > p {
  margin-top: 0.16rem;
  color: var(--nav-muted) !important;
  font-size: 0.19rem;
  line-height: 1.35;
}

.main-content > br {
  display: none;
}

.links {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.14rem;
  margin-top: 0.18rem !important;
}

.links::before {
  content: "Official Downloads";
  grid-column: 1 / -1;
  margin: 0.02rem 0 0.02rem;
  color: var(--nav-text);
  font-size: 0.23rem;
  font-weight: 700;
}

.links + .links::before {
  content: "Support & Community";
  margin-top: 0.04rem;
}

.links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0.82rem;
  padding: 0.04rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.16rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.links a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 178, 62, 0.34);
}

.links img {
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 0.12rem;
}

.copyright,
.footer p {
  color: var(--nav-muted) !important;
  margin: 0;
  line-height: 1.35;
}

@media (max-width: 540px) {
  .wraper {
    padding-right: 0.18rem;
    padding-left: 0.18rem;
  }

  .swiper-banner {
    margin-bottom: 0.16rem;
  }

  .notice {
    border-radius: 0.14rem;
  }

  .net-wrapper {
    padding: 0.18rem;
    border-radius: 0.2rem;
  }

  .footer.net-wrapper {
    width: 100%;
    margin-top: 0.22rem;
    padding: 0.16rem 0.18rem;
  }

  .net-wrapper ul li {
    min-height: 0.76rem;
    padding: 0.12rem 0.1rem;
    gap: 0.06rem;
  }

  .net-wrapper .flex {
    width: 1rem;
    flex-basis: 1rem;
  }

  .slot-reel {
    display: inline-flex;
    width: 0.9rem;
    height: 0.34rem;
    border-radius: 0.07rem;
  }

  .net-wrapper ul li a {
    min-width: 1.58rem;
    min-height: 0.5rem;
    padding-left: 0.12rem;
  }

  .net-wrapper ul li a span {
    font-size: 0.18rem;
  }

  .net-wrapper .button {
    width: 0.78rem;
  }

  .links {
    gap: 0.12rem;
  }
}

@media (max-width: 390px) {
  .net-wrapper ul li a {
    min-width: 1.48rem;
  }
}
