:root {
  --bg: #0a0a0c;
  --card: #16161a;
  --card-hover: #1d1d22;
  --border: #2a2a31;
  --accent: #ff8a00;
  --accent-2: #ffb340;
  --accent-glow: rgba(255, 138, 0, 0.35);
  --text: #f4f4f5;
  --muted: #9a9aa3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scrollbar-color: #333 #0a0a0c; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

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

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 22px; letter-spacing: 0.5px;
}
.logo-dot { color: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav-link {
  padding: 6px 14px; border-radius: 8px; font-size: 14px; color: var(--muted);
  transition: color .15s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--accent); }

/* hero */
.hero {
  padding: 56px 24px 36px;
  background: radial-gradient(ellipse at 18% 0%, rgba(255, 138, 0, 0.14), transparent 55%);
}
.hero-inner { max-width: 1240px; margin: 0 auto; }
.hero-kicker {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent); font-size: 13px; letter-spacing: 3px; font-weight: 600;
  margin-bottom: 12px;
}
.hero-title { font-size: 42px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; }
.hero-title .accent { color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 16px; margin-top: 12px; }

/* layout */
.layout {
  max-width: 1240px; margin: 0 auto; padding: 8px 24px 60px;
  display: grid; grid-template-columns: 1fr 320px; gap: 28px;
  align-items: start;
}

/* filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-btn {
  background: var(--card); color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 18px; font-size: 14px; cursor: pointer;
  transition: all .15s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.active {
  background: var(--accent); color: #0a0a0c; border-color: var(--accent); font-weight: 600;
}

/* grid */
.grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; cursor: pointer; transition: all .18s ease; display: block;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px -14px var(--accent-glow);
}
.card-cover {
  aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1c1c22, #101014);
}
.card-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.cover-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: "Space Grotesk", sans-serif; font-size: 44px; font-weight: 700;
  color: rgba(255, 255, 255, 0.22); letter-spacing: 2px;
}
.badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #fff;
}
.card-body { padding: 14px 16px 16px; }
.card-title {
  font-size: 15px; font-weight: 500; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 44px;
}
.card-meta {
  margin-top: 10px; display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.card-creator { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }

/* sidebar */
.sidebar { position: sticky; top: 84px; }
.sidebar-head { margin-bottom: 14px; }
.sidebar-head h2 {
  font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.sidebar-head h2::before {
  content: ""; width: 4px; height: 18px; background: var(--accent); border-radius: 2px;
}
.promos { display: flex; flex-direction: column; gap: 14px; }
.promo {
  background: linear-gradient(160deg, #1a1610, var(--card));
  border: 1px solid var(--border); border-radius: 14px; padding: 18px;
  position: relative; overflow: hidden;
}
.promo::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.promo-badge {
  display: inline-block; padding: 2px 10px; border-radius: 6px;
  background: rgba(255, 138, 0, 0.15); color: var(--accent);
  font-size: 12px; font-weight: 600; margin-bottom: 10px;
}
.promo-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.promo-desc { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.promo-btn {
  display: inline-block; width: 100%; text-align: center;
  background: var(--accent); color: #0a0a0c; font-weight: 600; font-size: 14px;
  padding: 10px 0; border-radius: 10px; transition: all .15s ease;
}
.promo-btn:hover { background: var(--accent-2); }

/* empty */
.empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 15px; }

/* footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 24px; text-align: center;
  color: var(--muted); font-size: 13px;
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-title { font-size: 30px; }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
}
