* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  color-scheme: light;
}

html {
  font-size: calc(100vw / 414 * 100);
}

@media (min-width: 750px) {
  html {
    font-size: calc(750px / 414 * 100);
  }
}

body {
  font-size: 14px;
  color: #000;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

input {
  -webkit-appearance: none;
  border: none;
  outline: none;
}

.page {
  display: none;
  min-height: 100vh;
}

.page.active {
  display: flex;
}

.page-home {
  background: #f5f8fc;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.home-logo {
  padding: 1.29rem 0 0.4rem;
}

.home-logo img {
  width: 1.62rem;
  height: 0.47rem;
}

.bank-grid {
  display: grid;
  width: 3.7rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0.2rem;
  position: relative;
  z-index: 1;
}

.bank-item {
  text-align: center;
  font-size: 0.13rem;
  color: #178aff;
  font-weight: 400;
  line-height: 0.2rem;
  margin: 0.04rem 0;
}

.search-card {
  width: 3.7rem;
  height: 0.51rem;
  display: flex;
  align-items: center;
  border-radius: 0.08rem;
  border: 1px solid #0069ff;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0.04rem 0.04rem 0 rgba(151, 151, 151, 0.22);
  overflow: hidden;
  position: relative;
  z-index: 1;
  padding-right: 0.02rem;
  text-align: center;
}

.search-input {
  flex: 1;
  height: 100%;
  padding: 0 0.16rem;
  font-size: 0.15rem;
  color: #4a6b8c;
  background: transparent;
}

.search-input::placeholder {
  color: #787878;
}

.search-button {
  height: 0.43rem;
  width: 1.2rem;
  background: #0069ff;
  color: #fff;
  font-size: 0.15rem;
  font-weight: 500;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0.3rem;
}

.search-button img {
  width: 0.16rem;
  height: 0.16rem;
  margin-right: 0.04rem;
}

.page-go {
  background: #f3f5f9;
  justify-content: center;
}

.go-content {
  width: 100%;
  max-width: 4.14rem;
  padding: 0 0.3rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.go-logo {
  padding: 0.47rem 0 0.26rem;
}

.go-logo img {
  width: 1.62rem;
  height: 0.47rem;
}

.card {
  width: 100%;
  background: #fff;
  border-radius: 0.22rem;
  box-shadow: 0 12px 28px rgba(20, 24, 40, 0.1);
  padding: 0.32rem 0.24rem;
}

.line-item + .line-item {
  margin-top: 0.24rem;
  padding-top: 0.24rem;
  border-top: 1px solid #edf0f5;
}

.line-title {
  font-size: 0.18rem;
  font-weight: 600;
  color: #15171f;
  margin-bottom: 0.04rem;
  line-height: 0.27rem;
}

.latency {
  font-size: 0.12rem;
  color: #6f7a90;
  font-weight: 500;
  margin-left: 0.04rem;
}

.line-input {
  display: flex;
  align-items: center;
  background: #f3f7ff;
  border-radius: 0.06rem;
  border: 1px solid #0274de;
  overflow: hidden;
  padding: 0.02rem;
  height: 0.3rem;
}

.line-input input {
  flex: 1;
  background: transparent;
  padding: 0 0.06rem;
  font-size: 0.14rem;
  color: #1a7ed6;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.go-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 0.26rem;
  width: 0.59rem;
  background: #2f7de1;
  color: #fff;
  font-size: 0.12rem;
  border-radius: 0 5px 5px 0;
  border-left: 0.02rem solid #4b91de;
}

.back-button {
  margin-top: 0.2rem;
  font-size: 0.14rem;
  color: #2f7de1;
  background: transparent;
  border: none;
  cursor: pointer;
}

.loading-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.loading-mask.active {
  display: flex;
}

.loading-box {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.12rem;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.13rem;
  gap: 0.12rem;
}

.loading-spinner {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  border: 0.03rem solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
