/* 首页（打开短链接）样式，仅作用于 .page-home */

body.page-home {
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 10% -12%, rgba(36, 89, 186, .16), transparent 62%),
    radial-gradient(900px 480px at 92% -4%, rgba(56, 189, 200, .16), transparent 58%),
    #f5f7fb;
}

body.page-home .topbar {
  background: transparent;
  border-bottom: 0;
}

body.page-home .topbar-inner {
  min-height: 84px;
}

body.page-home .brand span {
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.page-home .container.home-main {
  max-width: none;
  min-height: calc(100vh - 84px);
  padding: 16px 24px 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-card {
  width: min(560px, 100%);
  padding: clamp(28px, 5vw, 48px);
  background: #fff;
  border: 1px solid #e3e9f3;
  border-radius: 24px;
  box-shadow:
    0 1px 2px rgba(23, 40, 76, .04),
    0 28px 60px -28px rgba(23, 44, 90, .35);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(36, 89, 186, .1);
  color: #2459ba;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-card h1 {
  margin: 18px 0 8px;
  font-size: clamp(26px, 4.4vw, 34px);
  line-height: 1.25;
  letter-spacing: -.02em;
  color: #101a2c;
}

.hero-sub {
  margin: 0 0 28px;
  color: #5b6779;
  font-size: 15px;
}

.hero-form {
  display: grid;
  gap: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.code-field {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 5px 5px 18px;
  background: #fbfcfe;
  border: 1px solid #d6dde8;
  border-radius: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.code-field:hover {
  border-color: #b7c4d6;
}

.code-field:focus-within {
  background: #fff;
  border-color: #2459ba;
  box-shadow: 0 0 0 4px rgba(36, 89, 186, .14);
}

.code-prefix {
  color: #9aa6b8;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 15px;
  white-space: nowrap;
}

.code-field .code-entry {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: #1a2436;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .3em;
}

.code-field .code-entry:hover,
.code-field .code-entry:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
}

.code-field .code-entry::placeholder {
  color: #c3ccd9;
  font-weight: 500;
  letter-spacing: .3em;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #2f6ae0, #2450b0);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 12px 26px -14px rgba(36, 89, 186, .9);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.hero-button svg {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}

.hero-button:hover {
  filter: saturate(1.05) brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -14px rgba(36, 89, 186, .85);
}

.hero-button:hover svg {
  transform: translateX(3px);
}

.hero-button:active {
  transform: translateY(0);
}

.hero-help {
  margin: 4px 0 0;
  color: #8792a4;
  font-size: 13px;
}

.hero-help code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef2f8;
  color: #45536b;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
}

@media (max-width: 560px) {
  body.page-home .container.home-main {
    padding: 8px 16px 64px;
  }

  .hero-card {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .code-field {
    padding-left: 14px;
  }

  .code-prefix {
    font-size: 13px;
  }

  .code-field .code-entry {
    font-size: 18px;
    letter-spacing: .22em;
  }
}

@media (prefers-color-scheme: dark) {
  body.page-home {
    background:
      radial-gradient(1100px 520px at 10% -12%, rgba(58, 110, 214, .24), transparent 62%),
      radial-gradient(900px 480px at 92% -4%, rgba(34, 145, 160, .2), transparent 58%),
      #0d1420;
    color: #e6ecf5;
  }

  body.page-home .brand {
    color: #e9eff8;
  }

  body.page-home .brand span,
  body.page-home .topbar nav a {
    color: #9aa8bd;
  }

  .hero-card {
    background: #141d2c;
    border-color: #22303f;
    box-shadow: 0 28px 60px -30px rgba(0, 0, 0, .8);
  }

  .hero-eyebrow {
    background: rgba(96, 148, 240, .16);
    color: #93b7f2;
  }

  .hero-card h1 {
    color: #f0f5fc;
  }

  .hero-sub {
    color: #9aa8bd;
  }

  .code-field {
    background: #101927;
    border-color: #263445;
  }

  .code-field:focus-within {
    background: #121c2b;
    border-color: #4a86e8;
    box-shadow: 0 0 0 4px rgba(74, 134, 232, .2);
  }

  .code-field .code-entry {
    color: #eef3fa;
  }

  .hero-help {
    color: #8494a9;
  }

  .hero-help code {
    background: #1c2739;
    color: #b7c6da;
  }
}