:root {
  --bg: #0b0d12;
  --panel: #14171f;
  --panel-2: #1a1e29;
  --line: #262b38;
  --text: #e8eaf0;
  --muted: #8e94a6;
  --gold: #e8b45a;
  --ok: #34c77b;
  --bad: #ef5350;
}

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

body {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(232, 180, 90, .10), transparent 60%),
    radial-gradient(800px 400px at 0% 0%, rgba(90, 130, 232, .08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

.nav {
  max-width: 1080px; margin: 0 auto; padding: 24px 24px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .5px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #f0c274, #c98f33);
  color: #1a1206; font-size: 15px; font-weight: 800;
  display: grid; place-items: center;
}
.brand small { color: var(--muted); font-weight: 400; font-size: 11px; margin-left: 2px; }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

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

/* ── 首页 ── */
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.25; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: var(--muted); margin-top: 16px; font-size: 15px; line-height: 1.8; max-width: 620px; }
.hero .meta { display: flex; gap: 18px; margin-top: 22px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.hero .meta span::before { content: "·"; margin-right: 8px; color: var(--line); }
.hero .meta span:first-child::before { content: ""; margin: 0; }

.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.dl-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .18s, transform .18s;
}
.dl-card:hover { border-color: #3a4053; transform: translateY(-2px); }
.dl-card .ico { font-size: 22px; }
.dl-card h3 { font-size: 16px; }
.dl-card .desc { color: var(--muted); font-size: 13px; line-height: 1.7; }
.dl-card .row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dl-card .size { font-size: 11px; color: var(--muted); font-family: ui-monospace, monospace; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 9px; font-size: 13px; font-weight: 600;
  background: var(--gold); color: #1a1206; border: none; cursor: pointer;
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }

.section-title { margin: 44px 0 16px; font-size: 13px; color: var(--muted); letter-spacing: 2px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.step { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.step b { display: block; font-size: 22px; color: var(--gold); margin-bottom: 8px; font-family: ui-monospace, monospace; }
.step h4 { font-size: 14px; margin-bottom: 6px; }
.step p { font-size: 12px; color: var(--muted); line-height: 1.7; }

footer { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── 登录页 ── */
.login-wrap { max-width: 460px; margin: 60px auto 0; }
.login-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.login-card h1 { font-size: 21px; margin-bottom: 6px; }
.login-card .hint { color: var(--muted); font-size: 13px; line-height: 1.7; margin-bottom: 20px; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
textarea {
  width: 100%; min-height: 96px; resize: vertical;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 12px; font-size: 12px; line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  outline: none; transition: border-color .15s;
}
textarea:focus { border-color: var(--gold); }
.login-card .btn { width: 100%; justify-content: center; margin-top: 14px; padding: 11px; }
.result { margin-top: 18px; border-radius: 10px; padding: 14px; font-size: 13px; line-height: 1.8; display: none; }
.result.ok { display: block; background: rgba(52, 199, 123, .1); border: 1px solid rgba(52, 199, 123, .35); }
.result.bad { display: block; background: rgba(239, 83, 80, .1); border: 1px solid rgba(239, 83, 80, .35); }
.result .who { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.result .kv { color: var(--muted); font-size: 12px; }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); margin-left: 6px; }
.tag.admin { border-color: rgba(232, 180, 90, .5); color: var(--gold); }
.login-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; }
.login-foot a { color: var(--gold); }
