:root {
  --bg: #0A0C10;
  --surface: #F7F1E8;
  --primary: #00F5C4;
  --accent: #FF7A3D;
  --text: #F2EFEA;
  --muted: #8A8F98;
  --radius: 28px;
  --radius-sm: 16px;
  --font-heading: 'Orbitron', 'ZCOOL KuaiLe', 'PingFang SC', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --shadow-soft: 8px 8px 20px rgba(0,0,0,.55), -6px -6px 18px rgba(255,255,255,.04);
  --shadow-glow: 0 0 18px rgba(0,245,196,.35), 0 0 40px rgba(255,122,61,.15);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,245,196,.025) 0 1px, transparent 1px 4px);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,12,16,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,245,196,.15);
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 68px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0,245,196,.6), 0 0 24px rgba(0,245,196,.3);
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .25s, background .25s, box-shadow .25s;
}
.nav a:hover,
.nav a.active {
  color: var(--bg);
  background: var(--primary);
  box-shadow: 0 0 14px rgba(0,245,196,.55);
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(0,245,196,.25);
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  min-width: 200px;
  transition: box-shadow .25s, border-color .25s;
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(0,245,196,.4);
}
.search-box input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.search-box input::placeholder { color: var(--muted); }
.search-box button {
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #1a0d05;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  transition: box-shadow .25s, transform .2s;
}
.search-box button:hover {
  box-shadow: 0 0 16px rgba(255,122,61,.7);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 46px;
  background: #05070a;
}
.hero-slide {
  position: relative;
  display: none;
  min-height: 420px;
  background-size: cover;
  background-position: center;
}
.hero-slide.active,
.hero-slide:first-child { display: block; }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,12,16,.94) 0%, rgba(10,12,16,.72) 45%, rgba(10,12,16,.25) 100%);
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 2px, transparent 2px 5px);
  opacity: .5;
}
.hero-info {
  position: relative;
  z-index: 3;
  max-width: 560px;
  padding: 64px 40px 56px;
}
.hero-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text);
  text-shadow: 0 0 18px rgba(0,245,196,.35);
}
.hero-info p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-info .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.hero-info .hero-tags span {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,245,196,.4);
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--primary), #00c9a2);
  color: #04110d;
  box-shadow: 0 0 20px rgba(0,245,196,.45), var(--shadow-soft);
  transition: transform .22s, box-shadow .22s;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0,245,196,.7), 0 12px 26px rgba(0,0,0,.6);
}
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 0 14px rgba(255,122,61,.25);
}
.btn.ghost:hover { box-shadow: 0 0 24px rgba(255,122,61,.6); }

/* ---------- Section ---------- */
.sec { margin-bottom: 52px; }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.sec-title {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 1.5px;
  color: var(--text);
  position: relative;
  padding-left: 16px;
}
.sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px rgba(0,245,196,.7);
}
.sec-more {
  font-size: 13px;
  color: var(--muted);
  transition: color .22s;
}
.sec-more:hover { color: var(--primary); }

/* ---------- Grid & Card ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .28s, box-shadow .28s;
  position: relative;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 0 1px rgba(0,245,196,.4), 0 18px 34px rgba(0,0,0,.65), 0 0 26px rgba(255,122,61,.28);
}
.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #1a1d24;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.card:hover .card-cover img { transform: scale(1.06); }
.card-score {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #04110d;
  background: var(--primary);
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(0,245,196,.6);
}
.card-info { padding: 12px 14px 16px; }
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1d24;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.card-meta {
  font-size: 12px;
  color: #7a7266;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- Categories ---------- */
.cat-list {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.cat-list::-webkit-scrollbar { height: 5px; }
.cat-list::-webkit-scrollbar-thumb {
  background: rgba(0,245,196,.4);
  border-radius: 999px;
}
.cat-item {
  flex: 0 0 auto;
  min-width: 120px;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  background: rgba(247,241,232,.06);
  border: 1px solid rgba(0,245,196,.18);
  text-align: center;
  transition: background .25s, box-shadow .25s, transform .25s;
}
.cat-item:hover {
  background: rgba(0,245,196,.12);
  box-shadow: 0 0 18px rgba(0,245,196,.35);
  transform: translateY(-3px);
}
.cat-item strong { display: block; font-size: 15px; color: var(--text); }
.cat-count { font-size: 12px; color: var(--muted); }

/* ---------- Rank ---------- */
.rank-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(247,241,232,.05);
  border: 1px solid rgba(255,255,255,.06);
  transition: background .25s, box-shadow .25s, transform .25s;
}
.rank-item:hover {
  background: rgba(0,245,196,.1);
  box-shadow: 0 0 16px rgba(0,245,196,.28);
  transform: translateX(4px);
}
.rank-num {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  min-width: 34px;
  text-align: center;
  text-shadow: 0 0 10px rgba(255,122,61,.6);
}
.rank-item:nth-child(-n+3) .rank-num {
  color: var(--primary);
  text-shadow: 0 0 12px rgba(0,245,196,.8);
}
.rank-title {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-score {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Detail ---------- */
.detail { margin-bottom: 52px; }
.detail-head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(247,241,232,.05);
  border: 1px solid rgba(0,245,196,.15);
  box-shadow: var(--shadow-soft);
}
.detail-cover {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 0 24px rgba(0,245,196,.25);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-meta h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--text);
  text-shadow: 0 0 16px rgba(0,245,196,.3);
}
.detail-score {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #04110d;
  background: var(--primary);
  padding: 4px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: 0 0 16px rgba(0,245,196,.55);
}
.detail-meta p { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.detail-meta p strong { color: var(--text); font-weight: 600; }
.detail-body {
  margin-top: 28px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--surface);
  color: #2a2a2a;
  box-shadow: var(--shadow-soft);
  line-height: 1.9;
}
.detail-body h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: #1a1d24;
  margin-bottom: 14px;
}

/* ---------- Tags ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  color: var(--primary);
  border: 1px solid rgba(0,245,196,.35);
  background: rgba(0,245,196,.06);
  transition: background .22s, box-shadow .22s;
}
.tag:hover {
  background: rgba(0,245,196,.16);
  box-shadow: 0 0 14px rgba(0,245,196,.45);
}

/* ---------- Pager ---------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}
.pg {
  min-width: 42px;
  padding: 9px 14px;
  text-align: center;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text);
  background: rgba(247,241,232,.06);
  border: 1px solid rgba(255,255,255,.08);
  transition: background .22s, box-shadow .22s, color .22s;
}
.pg:hover {
  background: rgba(0,245,196,.14);
  box-shadow: 0 0 14px rgba(0,245,196,.4);
}
.pg.current {
  background: var(--primary);
  color: #04110d;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(0,245,196,.6);
}
.pg.disabled {
  opacity: .35;
  pointer-events: none;
}

/* ---------- Links ---------- */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(247,241,232,.04);
  border: 1px dashed rgba(0,245,196,.2);
}
.link-item {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 999px;
  transition: color .22s, background .22s;
}
.link-item:hover {
  color: var(--primary);
  background: rgba(0,245,196,.1);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 60px;
  padding: 40px 0 30px;
  border-top: 1px solid rgba(0,245,196,.15);
  background: linear-gradient(180deg, transparent, rgba(0,245,196,.04));
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.footer a { color: var(--primary); }
.footer p { margin-bottom: 6px; }

/* ---------- Crumbs ---------- */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0;
}
.crumbs a { color: var(--primary); }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Highlight ---------- */
.hl {
  color: #1a0d05;
  background: var(--accent);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 700;
}

/* ---------- Utility ---------- */
.page-title {
  font-family: var(--font-heading);
  font-size: 26px;
  margin: 10px 0 6px;
  color: var(--text);
}
.page-sub { font-size: 14px; color: var(--muted); margin-bottom: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .header .wrap {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 10px;
  }
  .logo { font-size: 19px; }
  .nav {
    order: 3;
    width: 100%;
    flex: 1 1 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .search-box { min-width: 0; flex: 1; }

  .hero-slide { min-height: 340px; }
  .hero-info { padding: 40px 22px 40px; max-width: 100%; }
  .hero-info h2 { font-size: 24px; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card { border-radius: 20px; }

  .rank-list { grid-template-columns: 1fr; }

  .detail-head {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }
  .detail-cover { max-width: 200px; margin: 0 auto; }
  .detail-meta h1 { font-size: 22px; }
  .detail-body { padding: 20px; }

  .sec-title { font-size: 18px; }
  .cat-item { min-width: 100px; padding: 12px 16px; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-info { padding: 10px 10px 12px; }
  .card-title { font-size: 13px; }
}