:root {
  --bg: #08090c;
  --bg2: #10141c;
  --panel: rgba(16, 20, 28, 0.82);
  --line: rgba(79, 142, 247, 0.2);
  --text: #eef3fb;
  --muted: #7e8aa0;
  --accent: #4f8ef7;
  --accent2: #2f6fe0;
  --gold: #d9b64a;
  --green: #37d6a3;
  --red: #ff5d7a;
  --radius: 16px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(79, 142, 247, 0.2), transparent 62%),
    radial-gradient(760px 480px at 82% 8%, rgba(217, 182, 74, 0.08), transparent 60%),
    var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 12, 0.8);
  position: sticky;
  top: 0;
  z-index: 20;
}
.logo { font-size: 20px; font-weight: 800; letter-spacing: 1px; color: var(--text); }
.logo:hover { text-decoration: none; }
.spacer { flex: 1; }
.btn {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.18s;
}
.btn:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); border: none; font-weight: 700; }
.btn-gold { background: linear-gradient(135deg, #d9b64a, #b8912f); border: none; font-weight: 700; color: #1a1508; }

.container { max-width: 880px; margin: 0 auto; padding: 28px 20px 60px; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero h1 { font-size: clamp(26px, 5vw, 42px); font-weight: 800; letter-spacing: 1px; }
.hero p { color: var(--muted); margin-top: 10px; font-size: 15px; line-height: 1.7; }
.price-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(217, 182, 74, 0.18), rgba(79, 142, 247, 0.12));
  border: 1px solid rgba(217, 182, 74, 0.4);
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
}

.list { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.item {
  display: block;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: all 0.18s;
}
.item:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.item-head { display: flex; align-items: center; gap: 10px; }
.item-title { font-size: 19px; font-weight: 700; flex: 1; }
.tag { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.vip { color: var(--gold); border-color: rgba(217, 182, 74, 0.4); }
.tag.pin { color: var(--accent); border-color: rgba(79, 142, 247, 0.4); }
.item-summary { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 10px; }
.item-time { color: var(--muted); font-size: 12px; margin-top: 10px; }

.article { padding: 24px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.article h1 { font-size: clamp(24px, 5vw, 36px); line-height: 1.3; }
.article .meta { color: var(--muted); font-size: 13px; margin-top: 12px; }
.article .content { margin-top: 24px; font-size: 17px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }

.lock {
  text-align: center;
  padding: 60px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.lock .icon { font-size: 44px; }
.lock h2 { margin-top: 16px; font-size: 22px; }
.lock p { color: var(--muted); margin-top: 10px; line-height: 1.7; }
.lock .actions { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.admin-wrap { max-width: 980px; margin: 0 auto; padding: 24px 20px 60px; }
.admin-wrap h2 { font-size: 18px; margin-bottom: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
.field textarea { min-height: 220px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.admin-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(79,142,247,0.1); font-size: 14px; }
.admin-item:last-child { border-bottom: none; }
.admin-item .t { flex: 1; }
.admin-item .t .vip { color: var(--gold); font-size: 12px; }
.empty { color: var(--muted); text-align: center; padding: 30px 0; font-size: 14px; }

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 20px 50px; }

@media (max-width: 640px) {
  .topbar { padding: 10px 14px; }
  .btn { padding: 7px 14px; font-size: 13px; }
}
