:root {
  --bg: #0a0b0f;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e9ecf1;
  --muted: #8b93a3;
  --accent: #4ade80;
  --accent-dim: rgba(74, 222, 128, 0.14);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

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

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

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px 400px at 12% -5%, rgba(74, 222, 128, 0.16), transparent 70%),
    radial-gradient(700px 500px at 92% 8%, rgba(59, 130, 246, 0.14), transparent 70%);
}

main, .nav, .foot { position: relative; z-index: 1; }

/* ------------------------------ nav ------------------------------ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.tld { color: var(--muted); font-weight: 400; }

.nav-links { display: flex; gap: 22px; }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.18s ease;
}

.nav-links a:hover { color: var(--text); }

/* ----------------------------- hero ----------------------------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 24px 72px; }

.hero { padding: 68px 0 44px; max-width: 720px; }

.tag {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12.5px;
  letter-spacing: 0.4px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.5px;
  font-weight: 650;
}

.sub { margin: 0; color: var(--muted); font-size: 15.5px; }

.sub code {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.btn.primary {
  background: var(--accent);
  border-color: transparent;
  color: #06220f;
}

.btn.primary:hover { background: #5ee98f; }

.btn.ghost { background: transparent; color: var(--text); }

.btn.ghost:hover { background: var(--panel); border-color: rgba(255,255,255,0.18); }

/* ---------------------------- sections ---------------------------- */
.section { padding: 40px 0 8px; scroll-margin-top: 24px; }

.section-title {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(6px);
}

.card-label { font-size: 13px; color: var(--muted); }

.card-value {
  margin: 8px 0 6px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.card-value.ok { color: var(--accent); }
.card-value.bad { color: #f87171; }

.card-foot { font-size: 12.5px; color: var(--muted); }

.stamp { margin: 14px 0 0; font-size: 12.5px; color: #5f6776; }

/* ----------------------------- form ----------------------------- */
.form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.row { display: flex; gap: 10px; margin-bottom: 10px; }

input, textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input { max-width: 260px; }

input:focus, textarea:focus {
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

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

.form .btn.primary { flex: 0 0 auto; white-space: nowrap; }

.form .btn.primary[disabled] { opacity: 0.55; cursor: not-allowed; }

.hint { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); min-height: 18px; }

.hint.err { color: #f87171; }
.hint.ok { color: var(--accent); }

/* ---------------------------- board ---------------------------- */
.board { list-style: none; margin: 18px 0 0; padding: 0; }

.board li {
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 10px;
  animation: fade 0.3s ease both;
}

.board .meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.board .who { font-size: 13.5px; font-weight: 600; color: var(--accent); }

.board .when { font-size: 12px; color: #5f6776; }

.board .text { font-size: 14.5px; color: #cdd3de; word-break: break-word; }

.board-empty { color: var(--muted); font-size: 14px; text-align: center; }

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

/* ----------------------------- foot ----------------------------- */
.foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 24px 46px;
  border-top: 1px solid var(--line);
  color: #5f6776;
  font-size: 12.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sep { color: #333a46; }

@media (max-width: 560px) {
  .nav-links { gap: 14px; }
  .hero { padding-top: 44px; }
  input { max-width: none; }
  .row { flex-wrap: wrap; }
  .form .btn.primary { width: 100%; }
}
