:root {
  --text: #1f2933;
  --muted: #7a8491;
  --line: #d8dde5;
  --green: #2e7d5b;
  --green-soft: #eef8f2;
  --red: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.page {
  min-height: 100vh;
  padding: 18vh 0 0 20vw;
}

.verify-view,
.welcome-view,
.home-view {
  width: min(520px, calc(100vw - 48px));
}

.dot-label,
.server-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 34px;
  color: #586270;
  font-size: 16px;
}

.dot-label::before,
.server-line::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

h1 {
  margin: 0 0 22px;
  color: #20242a;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: 0;
}

.lead {
  margin: 0 0 42px;
  color: #6b7280;
  font-size: 20px;
  line-height: 1.6;
}

.cf-turnstile {
  min-height: 70px;
}

.turnstile-slot {
  min-height: 70px;
}

.manual-button {
  min-height: 54px;
  min-width: 220px;
  padding: 0 22px;
  border: 1px solid #1f8f64;
  border-radius: 4px;
  background: #1f8f64;
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.manual-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.hint {
  min-height: 24px;
  margin: 24px 0 58px;
  color: #7a8491;
  font-size: 16px;
}

.error {
  margin: -32px 0 0;
  color: var(--red);
  font-size: 15px;
}

.fallback-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
}

.success-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 38px;
  border: 5px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 44px;
  font-weight: 900;
}

.retry {
  display: inline-block;
  margin-top: 16px;
  color: #707987;
  cursor: pointer;
  font-size: 16px;
  text-decoration: none;
}

.retry::before {
  content: "↻";
  margin-right: 10px;
  color: #414852;
}

.home-view {
  width: min(980px, calc(100vw - 48px));
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 36px;
}

.home-grid article {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.home-grid h2 {
  margin: 0 0 12px;
  color: #20242a;
  font-size: 20px;
}

.home-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 760px) {
  .page {
    padding: 14vh 24px 0;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 18px;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }
}
