@charset "UTF-8";

:root {
  --primary-color: #1678ff;
  --text-title: #000000;
  --text-subtitle: #666666;
  --bg-color: #ffffff;
  --button-text: #ffffff;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg-color);
  color: var(--text-title);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  overflow-x: hidden;
}

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

.safe-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg-color);
  overflow: hidden;
}

.safe-content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) clamp(24px, 6vw, 40px)
    max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 背景蓝色光晕 */
.safe-visual {
  position: relative;
  width: clamp(122px, 20vw, 240px);
  height: clamp(122px, 20vw, 240px);
  margin: 0 auto clamp(42px, 8.8vh, 88px);
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.safe-visual::before {
  content: "";
  position: absolute;
  inset: -62%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(216, 233, 255, 0.95) 0%,
      rgba(216, 233, 255, 0.82) 35%,
      rgba(216, 233, 255, 0.28) 60%,
      rgba(255, 255, 255, 0) 76%
    );
}

.safe-img {
  display: block;
  width: clamp(74px, 10.9vw, 130px);
  height: auto;
  user-select: none;
  pointer-events: none;
}

.safe-title {
  width: 100%;
  margin: 0;
  color: var(--text-title);
  font-size: clamp(20px, 2.95vw, 36px);
  line-height: 1.38;
  font-weight: 700;
}

.safe-subtitle {
  width: 100%;
  margin: clamp(3px, 0.8vh, 8px) 0 0;
  color: var(--text-subtitle);
  font-size: clamp(16px, 2.42vw, 30px);
  line-height: 1.55;
  font-weight: 400;
}

.go-link {
  width: clamp(200px, 32.4vw, 400px);
  height: clamp(40px, 6.48vw, 80px);
  margin: clamp(40px, 8.7vh, 88px) auto 0;
  border-radius: clamp(6px, 0.9vw, 10px);
  background: var(--primary-color);
  color: var(--button-text);
  font-size: clamp(16px, 2.42vw, 30px);
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.go-link:active {
  transform: scale(0.985);
}

.go-link.disabled {
  opacity: 0.62;
  cursor: wait;
}

.online-service {
  margin: clamp(44px, 8.1vh, 76px) auto 0;
  color: var(--primary-color);
  font-size: clamp(16px, 2.42vw, 30px);
  line-height: 1.5;
  text-decoration-line: underline;
  text-decoration-thickness: 7.5%;
  text-underline-offset: 25%;
  text-underline-position: from-font;
}

.status-text {
  display: none;
  width: min(100%, 520px);
  margin: 20px auto 0;
  color: #999999;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-all;
}

.status-text.show {
  display: block;
}

/* 手机端微调，让布局接近截图 */
@media (max-width: 480px) {
  .safe-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .safe-visual {
    margin-bottom: 42px;
  }

  .go-link {
    margin-top: 40px;
  }

  .online-service {
    margin-top: 44px;
  }
}

/* 横屏或高度较小时，避免内容被挤出屏幕 */
@media (max-height: 640px) {
  .safe-content {
    justify-content: flex-start;
    padding-top: 34px;
  }

  .safe-visual {
    width: clamp(110px, 26vh, 180px);
    height: clamp(110px, 26vh, 180px);
    margin-bottom: 26px;
  }

  .safe-img {
    width: clamp(66px, 15vh, 100px);
  }

  .go-link {
    margin-top: 30px;
  }

  .online-service {
    margin-top: 30px;
  }
}
