:root {
  --bg: #08090c;
  --panel: #0f1217;
  --field: #0a0c10;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9ecf2;
  --muted: #8b93a3;
  --muted-dim: #6b7383;
  --accent: #7c8cff;
  --ok: #3ddc97;
  --warn: #f0b45c;
  --radius: 20px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(124, 140, 255, 0.32);
}

[hidden] {
  display: none !important;
}

/* ---------------- 背景装饰 ---------------- */

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.glow-a {
  width: 560px;
  height: 560px;
  top: -260px;
  left: 50%;
  transform: translateX(-58%);
  background: radial-gradient(circle, rgba(96, 110, 255, 0.22), transparent 68%);
}

.glow-b {
  width: 420px;
  height: 420px;
  right: -160px;
  bottom: -240px;
  background: radial-gradient(circle, rgba(45, 190, 170, 0.1), transparent 72%);
}

.grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 25%, transparent 78%);
}

/* ---------------- 布局 ---------------- */

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  margin: auto;
  padding: 44px 24px 56px;
}

.shell > * {
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.shell > *:nth-child(2) {
  animation-delay: 0.05s;
}
.shell > *:nth-child(3) {
  animation-delay: 0.1s;
}
.shell > *:nth-child(4) {
  animation-delay: 0.15s;
}
.shell > *:nth-child(5) {
  animation-delay: 0.2s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------------- 顶栏 ---------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 54px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(124, 140, 255, 0.22), rgba(124, 140, 255, 0.04));
  color: #b9c2ff;
}

.mark svg {
  width: 18px;
  height: 18px;
}

.brand-name {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: #d6dbe6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12.5px;
  color: #c3cad6;
  white-space: nowrap;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(240, 180, 92, 0.16);
  animation: pulse 2.6s ease-in-out infinite;
}

.status[data-status="online"] .dot {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.16);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ---------------- 标题区 ---------------- */

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8f9bff;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 46px);
  line-height: 1.12;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.accent {
  color: var(--accent);
}

.lead {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: #a4adbd;
  max-width: 52ch;
}

.notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 30px 0 30px;
  padding: 0;
}

.notes > div {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.notes dt {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #7b8496;
  margin-bottom: 6px;
}

.notes dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #b6bfcd;
}

.applink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(61, 220, 151, 0.28);
  background: rgba(61, 220, 151, 0.08);
  color: #8ff0c4;
  font-size: 13.5px;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.applink:hover {
  background: rgba(61, 220, 151, 0.14);
  border-color: rgba(61, 220, 151, 0.45);
}

.applink svg {
  width: 15px;
  height: 15px;
}

.noscript {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #c2c9d6;
  font-size: 13.5px;
  line-height: 1.65;
}

/* ---------------- 卡片 / 表单 ---------------- */

.card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),
    var(--panel);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.field + .field {
  margin-top: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #c2c9d6;
}

.optional {
  margin-left: 6px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted-dim);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #232833;
  background: var(--field);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  appearance: none;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #565e6d;
}

input:hover,
textarea:hover {
  border-color: #2c323e;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(124, 140, 255, 0.75);
  background: #0b0d12;
  box-shadow: 0 0 0 4px rgba(124, 140, 255, 0.13);
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(124, 140, 255, 0.9);
  outline-offset: 2px;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: rgba(255, 107, 107, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.12);
}

.hint {
  margin: 7px 0 0;
  font-size: 12px;
  color: var(--muted-dim);
}

/* 蜜罐字段：对用户不可见，对脚本可填 */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile {
  margin-top: 18px;
}

.form-error {
  margin: 16px 0 0;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 107, 107, 0.28);
  background: rgba(255, 107, 107, 0.09);
  color: #ffb4b4;
  font-size: 13px;
  line-height: 1.6;
}

.submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin-top: 22px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #8a97ff, #5f6ff8);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 30px -14px rgba(95, 111, 248, 0.9);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.submit svg {
  width: 18px;
  height: 18px;
  transition: transform 0.16s ease;
}

.submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px -16px rgba(95, 111, 248, 0.95);
}

.submit:hover:not(:disabled) svg {
  transform: translateX(3px);
}

.submit:active:not(:disabled) {
  transform: translateY(0);
}

.submit:disabled {
  cursor: progress;
  opacity: 0.65;
  box-shadow: none;
}

.micro {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: #5f6776;
}

/* ---------------- 成功态 ---------------- */

.success {
  text-align: center;
  padding: 34px 26px;
}

.tick {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid rgba(61, 220, 151, 0.35);
  background: rgba(61, 220, 151, 0.11);
  color: var(--ok);
}

.tick svg {
  width: 22px;
  height: 22px;
}

.success h2 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.success p {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.75;
  color: #a4adbd;
}

.success b {
  color: #e9ecf2;
  font-weight: 550;
  word-break: break-all;
}

.ghost {
  margin-top: 22px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: #c9d0dd;
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.24);
}

/* ---------------- 页脚 ---------------- */

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 38px;
  font-size: 12.5px;
  color: #5f6776;
}

.sep {
  opacity: 0.5;
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 540px) {
  .shell {
    padding: 28px 18px 48px;
  }

  .topbar {
    margin-bottom: 42px;
  }

  .notes {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .success {
    padding: 30px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
