/* OpenClaw 消息桥官网 · 深色单主题 · 原生 CSS
   半径系统：容器 12px / 交互元素 8px；强调色仅 --accent 一个 */
:root {
  --bg: #0f1214;
  --surface: #16191d;
  --surface-2: #1c2026;
  --border: #262c33;
  --text: #e8eaed;
  --muted: #9aa3ad;
  --accent: #34d399;
  --accent-ink: #062b1d;
  --danger: #f87171;
  --radius: 12px;
  --radius-s: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
nav {
  position: sticky; top: 0; z-index: 10;
  height: 64px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand .claw { color: var(--accent); }
nav .links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
nav .links a:hover { color: var(--text); }
nav .spacer { flex: 1; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px; font-weight: 550;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .06s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: #333b44; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.btn-primary:hover { background: #2cc78a; border-color: #2cc78a; }
.btn-danger { color: var(--danger); border-color: #4a2a2a; background: transparent; }
.btn-danger:hover { background: #241416; border-color: #6b3434; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- 表单 ---------- */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 550; }
.field input {
  height: 42px; padding: 0 12px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: var(--bg); color: var(--text);
  font-size: 15px;
}
.field input::placeholder { color: #5c656f; }
.field input:focus {
  outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent;
}
.form-error { color: var(--danger); font-size: 14px; min-height: 22px; }

/* ---------- 卡片/面板 ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0; margin-top: 96px;
  color: var(--muted); font-size: 14px;
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- 状态 ---------- */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.dot.on { background: var(--accent); }
.dot.off { background: #57606a; }

.skeleton {
  border-radius: var(--radius-s);
  background: linear-gradient(90deg, var(--surface-2) 25%, #242a31 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.fade-in { animation: fadeUp .5s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  .fade-in, .skeleton { animation: none; }
  .btn { transition: none; }
}

@media (max-width: 768px) {
  nav .links { display: none; }
  .panel { padding: 20px; }
}
