:root {
  --bg: #0c0712;
  --fg: #f6f1fb;
  --muted: #b5a4c6;
  --line: rgba(198, 146, 255, 0.22);
  --surface: #160d20;
  --accent: #b026ff;
  --ok: #6ddea8;
  --err: #ff7a9c;
  color: var(--fg);
  background: var(--bg);
  font-family: "Segoe UI", "Microsoft JhengHei UI", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
.bloom {
  position: fixed; z-index: 0; left: 50%; top: -180px;
  width: min(980px, 92vw); height: 520px; transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(176, 70, 255, 0.34), rgba(88, 28, 140, 0.12) 42%, transparent 70%);
}
.nav {
  position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 16px;
  min-height: 64px; padding: 10px 28px; flex-wrap: wrap;
  background: rgba(12, 7, 18, 0.84); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 560; }
.brand svg { width: 22px; height: 22px; }
.nav .spacer { margin-left: auto; }
.nav a.muted { color: var(--muted); font-size: 13px; padding: 6px 12px; }
.nav a.muted:hover { color: var(--fg); }
.wrap { position: relative; z-index: 1; width: min(720px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 80px; }
.wrap.wide { width: min(960px, calc(100% - 40px)); }
h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 48px); font-weight: 520; letter-spacing: -0.04em; line-height: 1.1; }
.lead { margin: 0 0 28px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.card {
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 24px;
}
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #100818; color: var(--fg); font: inherit;
}
textarea { height: auto; min-height: 100px; padding: 12px 14px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(176, 38, 255, 0.45); outline-offset: 1px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 560; cursor: pointer;
}
.pill:hover { background: #c44dff; }
.pill:disabled { opacity: 0.4; cursor: not-allowed; }
.pill.ghost {
  background: transparent; border: 1px solid var(--line); color: var(--fg);
}
.pill.ghost:hover { border-color: rgba(210, 160, 255, 0.55); }
.msg { margin-top: 14px; font-size: 14px; line-height: 1.5; min-height: 1.2em; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }
.ann { margin-top: 28px; display: grid; gap: 12px; }
.ann article {
  border: 1px solid var(--line); border-radius: 12px; background: #120a18; padding: 16px 18px;
}
.ann h3 { margin: 0 0 6px; font-size: 16px; font-weight: 520; }
.ann p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.ann time { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; opacity: 0.8; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.list { margin-top: 20px; display: grid; gap: 10px; }
.list a, .list .item {
  display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #120a18;
}
.list a:hover { border-color: rgba(210, 160, 255, 0.55); }
.list strong { display: block; margin-bottom: 4px; }
.list span { color: var(--muted); font-size: 14px; }
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  background: rgba(176, 38, 255, 0.18); color: #e2b8ff; font-size: 12px;
}
.fine { color: var(--muted); font-size: 13px; margin-top: 12px; }
footer { position: relative; z-index: 1; padding: 22px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }
@media (max-width: 720px) {
  .nav { padding: 10px 16px; }
  .wrap { width: calc(100% - 32px); padding-top: 36px; }
  .grid2 { grid-template-columns: 1fr; }
}
