﻿html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

html {
  background-color: #c5d5e1;
  font-size: clamp(10px, calc(16 * 100vw / 390), 21px);
}

div {
  font-size: inherit;
}

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

body {
  font-family:
    PingFang SC,
    Microsoft YaHei,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  border: 0;
  padding: 0;
  font: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

.bg {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  background: url("/images/bg.webp") no-repeat;
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  font-size: 14px;
  position: relative;
  overflow-x: hidden;
}

.header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  position: absolute;
  width: 100%;
  box-sizing: border-box;
  z-index: 3;
  background: #fff;
}

.header::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 50px;
  background: url("/images/header-bg.png") no-repeat;
  background-size: 100% 100%;
}

.header-icon {
  width: 16px;
  height: 16px;
}

.header-text {
  flex: 1;
  min-width: 0;
  height: 14px;
  font-size: 14px;
  font-weight: bold;
  color: #303442;
  line-height: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pwa-btn {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 12px;
  color: #fff;
  line-height: 12px;
  padding: 9px 12px;
  background: #179cff;
  border-radius: 15px;
  z-index: 1;
}

.main {
  width: 100%;
  padding: 8px 24px 0;
  z-index: 2;
  position: relative;
}

.content-img {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  text-align: center;
  padding: 62px 35px 0;
  box-sizing: border-box;
}

.content-img img {
  width: 100%;
}

.lineList,
.browserList {
  width: 100%;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 12px 12px 16px;
  box-sizing: border-box;
  justify-content: center;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(15px);
}

.title {
  height: 14px;
  font-size: 14px;
  font-weight: bold;
  color: #303442;
  line-height: 14px;
  text-align: center;
  position: relative;
  display: inline-flex;
  justify-content: center;
  margin: 0 auto 16px;
}

.title::after,
.title::before {
  content: "";
  display: inline-block;
  position: absolute;
  width: 30px;
  height: 10px;
  background: url("/images/title-tips.webp") no-repeat;
  background-size: 100% 100%;
  top: 50%;
  transform: translateY(-50%);
  right: -42px;
}

.title::before {
  left: -42px;
  transform: translateY(-50%) rotate(180deg);
}

.lineList {
  margin-bottom: 8px;
  margin-top: -35px;
}

.lineList .title {
  margin-bottom: 12px;
}

.lineItem {
  height: 48px;
  display: flex;
  align-items: center;
}

.lineItemText {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #303442;
  height: 100%;
  border-bottom: 1px solid #fff;
  position: relative;
}

.img-tuijian {
  position: absolute;
  top: -3px;
  right: -24px;
}

.enterGame.disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.enterGame {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.browserList .title {
  margin-bottom: 16px;
}

.browserContent {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.browserItem {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.browserItem img {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}

.browserItem .name {
  height: 14px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  color: #303442;
  line-height: 14px;
  margin-bottom: 8px;
}

.browserItem .url {
  font-size: 10px;
  font-weight: bold;
  color: #179cff;
  line-height: 10px;
  cursor: pointer;
}

.contact {
  width: 40px;
  height: 40px;
  background: linear-gradient(180deg, #17e1ff, #0583e1);
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 25px;
  right: 12px;
}

.contact .icon {
  width: 20px;
  height: 20px;
}

.btnGroup {
  padding: 20px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
}

.btn {
  background-size: 100% 100%;
  height: 40px;
}

.lianxiBtn {
  background: url("/images/lianxi.webp") no-repeat;
  background-size: 100% 100%;
}

.xiazaiBtn {
  background: url("/images/xiazai.webp") no-repeat;
  background-size: 100% 100%;
}

.img-size16 {
  height: 16px;
  object-fit: contain;
}

.img-size14 {
  height: 14px;
  object-fit: contain;
}

.signal-strength {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  width: 14px;
}

.signal-bar {
  width: 2px;
  background-color: #e0e0e0;
  border-radius: 1px 1px 0 0;
  transition: background-color 0.3s ease;
}

.signal-bar.active.excellent {
  background-color: #39c524;
}

.signal-bar.active.good {
  background-color: #ff9e00;
}

.signal-bar.active.average {
  background-color: #ff9100;
}

.signal-bar.active.poor {
  background-color: #f53f3f;
}

.signal-bar.active.unavailable {
  background-color: #9e9e9e;
}

.signal-bar.testing {
  animation: pulse 1.5s infinite;
  background-color: #2196f3;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
}

.signal-label {
  font-size: 14px;
  text-align: center;
}

.signal-label.excellent {
  color: #39c524;
}

.signal-label.good {
  color: #ff9e00;
}

.signal-label.average {
  color: #ff9100;
}

.signal-label.poor {
  color: #f53f3f;
}

.signal-label.unavailable {
  color: #9e9e9e;
}

.signal-label.testing {
  color: #2196f3;
}

.adm-mask {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  position: fixed;
  z-index: 1000;
  justify-content: center;
  align-items: flex-end;
  bottom: 0;
  left: 0;
  right: 0;
}

.custom-popup {
  background: #fff;
  border-radius: 16px 16px 0 0;
  width: 100%;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.12);
  transform-origin: center bottom;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.popup-container {
  position: relative;
  padding: 24px 20px 56px;
  text-align: center;
}

.close-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-img {
  width: 18px;
  height: 18px;
}

.text-main {
  font-size: 16px;
  line-height: 16px;
  color: #303442;
}

.text-sub {
  margin-top: 12px;
  font-size: 12px;
  color: #179cff;
  line-height: 12px;
}

.install-img {
  margin-top: 20px;
  width: 100%;
  object-fit: contain;
}

#nprogress {
  pointer-events: none;
}

#nprogress .bar {
  background: #179cff;
  position: fixed;
  z-index: 1031;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  opacity: 0;
  transition:
    width 180ms ease,
    opacity 160ms ease;
}

#nprogress.active .bar {
  opacity: 1;
}

@media (min-width: 640px) {
  .bg {
    max-width: 430px;
    margin: 0 auto;
  }
}
