:root {
  --bg: #0f0f10;
  --fg: #e8e8e8;
  --muted: #9b9b9b;
  --accent: #ff8c42;
  --card: #1a1a1c;
  --border: #2a2a2c;
  --beian: #666;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); font-family: -apple-system, "Segoe UI", "PingFang SC", sans-serif; line-height: 1.6; }

/* 顶部假登录条 */
.topbar {
  background: #000;
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  font-size: 12px;
  color: var(--muted);
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-title { flex: 1; color: #ffae5a; }
.topbar-version { font-family: ui-monospace, monospace; }

/* hero */
.hero {
  padding: 56px 24px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.subtitle { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.meta { color: var(--muted); font-size: 12px; }
.dot { color: var(--accent); }

/* filter tabs */
.filters {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.filter {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter:hover { color: var(--fg); border-color: var(--accent); }
.filter.active { color: var(--bg); background: var(--accent); border-color: var(--accent); }

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  display: block;
  background: #2a2a2c;
}
.card-meta { padding: 10px 14px; font-size: 13px; }
.card-title { color: var(--fg); font-weight: 500; margin-bottom: 4px; }
.card-info { color: var(--muted); font-size: 11px; display: flex; gap: 10px; }
.tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: #2a2a2c;
  color: var(--muted);
  font-size: 10px;
  font-family: ui-monospace, monospace;
}

/* beian */
.beian {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  color: var(--beian);
  font-size: 12px;
}
.beian-line a {
  color: var(--beian);
  text-decoration: none;
}
.beian-line a:hover { color: var(--muted); }
.beian-host { margin-top: 6px; color: #4a4a4a; }

/* login modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  width: 360px;
  max-width: 92vw;
}
.modal-card h2 { font-size: 18px; margin-bottom: 8px; }
.modal-hint { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.modal-card label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.modal-card input {
  width: 100%;
  background: #0a0a0b;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--fg);
  font-size: 14px;
  margin-top: 4px;
  font-family: inherit;
}
.modal-card input:focus { outline: none; border-color: var(--accent); }
.modal-actions { display: flex; gap: 8px; margin-top: 14px; }
.btn-primary, .btn-ghost {
  flex: 1;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #0a0a0b; font-weight: 600; }
.btn-primary:hover { background: #ff9e5e; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--fg); }
.modal-err { color: #ff5555; font-size: 12px; margin-top: 10px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 24px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); padding: 14px; }
}
