:root {
  --bg: #111315;
  --surface: #1a1d20;
  --surface-2: #23272b;
  --text: #f2f4f6;
  --muted: #a8b0b8;
  --line: #343a40;
  --accent: #7ee2c0;
  --accent-ink: #0b2b22;
  --err: #ff8f8f;
  --radius: 12px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5vw; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: 0.08em; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; display: block; }
.topbar nav { display: flex; gap: 22px; font-size: 14px; }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px 80px; }
.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; padding: 72px 0 48px; }
.kicker { color: var(--accent); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { font-size: 58px; line-height: 1.1; margin: 8px 0 16px; }
h2 { font-size: 26px; margin: 0 0 20px; }
.lead { color: var(--muted); font-size: 16px; max-width: 680px; }
.version-line { margin: 20px 0; color: var(--muted); font-size: 13px; }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 4px; font-size: 12px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 18px; font-size: 15px; cursor: pointer; background: var(--surface-2); color: var(--text);
}
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.ghost { background: transparent; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.hint { color: var(--muted); font-size: 12px; }

.section { padding: 52px 0; border-top: 1px solid var(--line); }
.changelog { padding-left: 20px; color: var(--muted); }
.changelog li { margin: 8px 0; }
.changelog b { color: var(--text); }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.shots figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shots img { width: 100%; height: 180px; object-fit: cover; display: block; }
.shots figcaption { padding: 10px 12px; font-size: 13px; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 640px; }
label { display: block; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
input, select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font: inherit; font-size: 14px;
}
.result { white-space: pre-wrap; word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-top: 18px; color: var(--accent); font-size: 13px; }
.admin .card { max-width: 720px; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.tab.active { background: var(--surface-2); color: var(--text); }

.qr-wrap { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
#qrcode { width: 200px; height: 200px; margin: 0 auto 14px; background: #fff; padding: 8px; border-radius: 8px; }
.qr-wrap .hint { text-align: center; }
.qr-wrap .btn { margin-top: 10px; }

footer { border-top: 1px solid var(--line); padding: 24px 5vw; color: var(--muted); font-size: 13px; }
.site-footer { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  h1 { font-size: 42px; }
  .shots { grid-template-columns: 1fr; }
}
