:root {
  color-scheme: light;
  --page-bg: #ecf5fe;
  --text-primary: #264158;
  --text-secondary: #8a8d94;
  --brand-blue: #1b6ae3;
  --brand-blue-dark: #054194;
  --brand-button-start: #25bdff;
  --brand-button-mid: #0a83f7;
  --brand-button-end: #0570eb;
  --neutral-line: #c9cdd4;
}

* {
  box-sizing: border-box;
}

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

html {
  font-size: 13.333333vw;
}

body {
  background:
    linear-gradient(180deg, #f6fbff 0%, var(--page-bg) 30%, var(--page-bg) 100%);
  color: var(--text-primary);
  font-family:
    "PingFang SC",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

button,
a {
  font: inherit;
}

.page {
  width: min(100%, 7.5rem);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page-bg);
  overflow: hidden;
}

.hero {
  position: relative;
  height: 4.56rem;
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content {
  position: relative;
  z-index: 1;
  margin-top: -0.12rem;
  padding: 0 0.28rem 0.36rem;
}

.route-list {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.route-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.16rem;
  min-height: 0.88rem;
  padding: 0.02rem 0.18rem;
  border: 0.02rem solid rgba(225, 245, 255, 0.92);
  border-radius: 0.26rem;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.94) 53%,
      rgba(248, 253, 255, 0.98) 100%
    );
  box-shadow: inset 0 0.02rem 0 rgba(255, 255, 255, 0.96);
}

.route-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.16rem;
  flex-shrink: 0;
  min-width: 1.64rem;
  height: 0.56rem;
  padding: 0 0.16rem;
  border-radius: 0.16rem;
  background:
    linear-gradient(180deg, rgba(240, 249, 255, 0.98) 0%, rgba(227, 244, 255, 0.96) 100%);
  box-shadow:
    0 0.1rem 0.24rem rgba(23, 113, 207, 0.13),
    inset 0 0.02rem 0 rgba(255, 255, 255, 0.98),
    inset 0 -0.02rem 0 rgba(182, 224, 255, 0.42);
}

.route-badge__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 0.2rem;
  background: linear-gradient(180deg, #3db1fe 0%, #1a64cd 100%);
  color: #fff;
  font-size: 0.23334rem;
  font-weight: 600;
  line-height: 0.3rem;
}

.route-badge__label {
  color: var(--brand-blue);
  font-size: 0.28rem;
  font-weight: 600;
  line-height: 0.36rem;
  white-space: nowrap;
}

.route-domain-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.route-domain {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 0.24rem;
  font-weight: 600;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.04rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f70ff;
  cursor: pointer;
}

.icon-button svg {
  width: 0.24rem;
  height: 0.24rem;
}

.enter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.04rem;
  flex-shrink: 0;
  height: 0.56rem;
  padding: 0 0.16rem;
  border-radius: 0.16rem;
  background:
    linear-gradient(
      180deg,
      var(--brand-button-start) 0%,
      var(--brand-button-mid) 58%,
      var(--brand-button-end) 100%
    );
  box-shadow: inset 0 0.02rem 0 rgba(255, 255, 255, 0.42);
  color: #fff;
  font-size: 0.24rem;
  font-weight: 600;
  line-height: 0.24rem;
  text-decoration: none;
  white-space: nowrap;
}

.enter-button svg {
  width: 0.24rem;
  height: 0.24rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 0.04rem;
}

.copy-all-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
  width: 6.46rem;
  max-width: 100%;
  margin: 0.24rem auto 0;
}

.copy-all-button {
  min-width: 1.64rem;
  height: 0.64rem;
  padding: 0 0.24rem;
  border: 0;
  border-radius: 0.38rem;
  background: #6c8ffe;
  color: var(--page-bg);
  cursor: pointer;
  font-size: 0.28rem;
  font-weight: 500;
  line-height: 0.4rem;
}

.copy-all-divider,
.copy-all-hint {
  color: var(--text-secondary);
  font-size: 0.2rem;
  line-height: 0.4rem;
}

.copy-all-hint {
  margin: 0;
}

.brand-strip {
  width: 100%;
  margin-top: 0.24rem;
  border-radius: 0.32rem;
  overflow: hidden;
}

.brand-strip img {
  display: block;
  width: 100%;
  height: auto;
}

.quick-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.24rem;
  width: 100%;
  min-height: 1.6rem;
  margin-top: 0.76rem;
  padding: 0.16rem 0.28rem 0.16rem 0.24rem;
  border-radius: 0.36rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 0.06rem 0.1rem rgba(106, 183, 238, 0.18);
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1.8rem;
  gap: 0.16rem;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.quick-link:visited,
.quick-link:hover,
.quick-link:active {
  color: inherit;
  text-decoration: none;
}

.quick-link__icon {
  width: 0.64rem;
  height: 0.64rem;
  object-fit: contain;
}

.quick-link__text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  text-align: center;
}

.quick-link__text strong {
  color: var(--brand-blue-dark);
  font-size: 0.2rem;
  font-weight: 600;
  line-height: 1.1;
}

.quick-link__text span {
  color: var(--text-secondary);
  font-size: 0.2rem;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 0.48rem;
  transform: translateX(-50%) translateY(0.24rem);
  padding: 0.16rem 0.24rem;
  border-radius: 19.98rem;
  background: rgba(19, 33, 52, 0.88);
  color: #fff;
  font-size: 0.24rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.copy-all-button:focus-visible,
.icon-button:focus-visible,
.enter-button:focus-visible {
  outline: 0.04rem solid rgba(37, 117, 255, 0.45);
  outline-offset: 0.04rem;
}

@media (max-width: 22.5rem) {
  .content {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }

  .route-card {
    gap: 0.12rem;
    padding-left: 0.14rem;
    padding-right: 0.14rem;
  }

  .route-badge {
    min-width: 1.56rem;
    gap: 0.12rem;
    padding: 0 0.12rem;
  }

  .route-badge__label {
    font-size: 0.26rem;
  }

  .enter-button {
    padding: 0 0.14rem;
  }
}

@media (min-width: 46.875rem) {
  html {
    font-size: 625%;
  }
}
