/* 配色与控件样式对齐 usdt.renyan77.com（深色 + 绿色强调色） */
:root {
  --bg: #0b0d10;
  --bg2: #0e1116;
  --panel: #14181f;
  --panel2: #0f1318;
  --elev: #1a1f27;
  --line: #242a34;
  --line2: #2c3440;
  --text: #e9edf2;
  --muted: #8b95a5;
  --faint: #6b7482;
  --accent: #3ecf8e;
  --accent-ink: #071510;
  --red: #ff5b6a;
  --shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background:
    radial-gradient(1200px 520px at 18% -8%, rgba(62, 207, 142, 0.06), transparent 60%),
    radial-gradient(900px 480px at 92% -10%, rgba(8, 90, 140, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg) 40%);
}

::selection {
  background: rgba(62, 207, 142, 0.28);
}

.hidden {
  display: none !important;
}

/* ------------------------------------------------------------ 令牌闸门 */

#gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(900px 500px at 30% 0%, rgba(62, 207, 142, 0.08), transparent 55%), var(--bg);
}

#gate .box {
  width: 340px;
  max-width: 100%;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 18px;
  padding: 34px;
  text-align: center;
  box-shadow: var(--shadow);
}

#gate .logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--accent-ink);
  background: linear-gradient(140deg, var(--accent), #2aa46a);
  box-shadow: 0 6px 16px -6px rgba(62, 207, 142, 0.6);
}

#gate h1 {
  font-size: 20px;
  margin: 0 0 6px;
  font-weight: 700;
}

#gate p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}

#gate input {
  width: 100%;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 9px;
  padding: 11px 12px;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.15s;
}

#gate input:focus {
  border-color: var(--accent);
}

#gate input::placeholder {
  color: var(--faint);
}

#gate button.primary {
  width: 100%;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 9px;
  padding: 11px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: filter 0.15s, transform 0.08s;
}

#gate button.primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

#gate button.primary:active:not(:disabled) {
  transform: translateY(1px);
}

#gate button.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#gate .err {
  font-size: 12.5px;
  color: var(--red);
  margin-top: 10px;
  min-height: 17px;
  opacity: 0;
}

#gate .err.show {
  opacity: 1;
  animation: shake 0.32s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* -------------------------------------------------------------- 发送内容 */

.shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 56px 18px 72px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h1 {
  font-size: 20px;
  margin: 0 0 18px;
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: 168px;
  resize: vertical;
  padding: 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  transition: border-color 0.15s;
}

textarea:focus {
  border-color: var(--accent);
}

textarea::placeholder {
  color: var(--faint);
}

.field {
  margin-bottom: 12px;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s, transform 0.08s, background 0.15s;
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn.primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.btn.primary:active:not(:disabled) {
  transform: translateY(1px);
}

.btn.ghost {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line);
}

.btn.ghost:hover:not(:disabled) {
  background: var(--elev);
  border-color: var(--line2);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.block {
  width: 100%;
}

.alert {
  border: 1px solid rgba(255, 91, 106, 0.4);
  background: rgba(255, 91, 106, 0.12);
  color: #ffc9cf;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

/* 蜜罐：真人看不见，机器人会去填 */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

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

.success .tick {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--accent);
  background: rgba(62, 207, 142, 0.12);
  border: 1px solid rgba(62, 207, 142, 0.45);
}

.success h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
}

.success p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 13.5px;
}

@media (max-width: 520px) {
  .shell {
    padding: 24px 14px 56px;
  }
  .card {
    padding: 22px;
  }
  #gate .box {
    padding: 28px 22px;
  }
}
