:root {
  --bg: #0b1220;
  --panel: #111a2d;
  --panel-2: #16213a; /*编辑框 */
  --text: #e5edf9;
  --muted: #9fb1cc;
  --line: #233250; /*边框 */
  --primary: #4da3ff;
  --danger: #ff6b6b;
  --success: #4cd4a6;
  --warning: #ffd166;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0c182e 0%, #022755 100%); /*背景 */
}
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 40px;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: 32px;
}
.sub {
  margin: 0;
  color: var(--muted);
}
.hero-actions, .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.card {
  background: rgba(17, 26, 45, .95);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}
.card h2 {
  margin: 0 0 16px;
  font-size: 20px;
}
label {
  display: block;
  margin: 14px 0 8px;
  color: var(--muted);
  font-size: 14px;
}
input, textarea, button {
  font: inherit;
}
input, textarea {
  width: 100%;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid #294166;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
input:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, .18);
}
button {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  background: var(--primary);
  color: #06111f;
  font-weight: 700;
}
button.secondary {
  background: #203455;
  color: var(--text);
}
button.danger {
  background: var(--danger);
  color: #2a0909;
}
button.danger.ghost {
  background: #40222a;
  color: #ffd2d7;
}
button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.captcha-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}
.captcha-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  background: #0e1930;
  border: 1px dashed #35517d;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .05em;
}
.hint {
  min-height: 18px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.hint.ok { color: var(--success); }
.hint.warn { color: var(--warning); }
.hint.error { color: #ff9c9c; }
.policy-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.policy-list li + li {
  margin-top: 8px;
}
.kv-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.kv-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #101b31;
  border: 1px solid var(--line);
}
.kv-key {
  color: var(--muted);
}
pre {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: #0a1120;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  color: #d6e6ff;
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column; }
}
