:root {
  --bg: #070A0B;
  --surface: #101617;
  --primary: #00F0B5;
  --accent: #B26BFF;
  --text: #E8F4F1;
  --muted: #6E8380;
  --radius: 14px;
  --font-heading: 'Noto Serif SC', 'Songti SC', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', sans-serif;
  --line: rgba(0, 240, 181, 0.12);
  --glass: rgba(16, 22, 23, 0.72);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(0, 240, 181, 0.06), transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(178, 107, 255, 0.07), transparent 50%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: var(--primary); }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

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

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  white-space: nowrap;
  position: relative;
}
.logo::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  opacity: .7;
}
.logo:hover { color: var(--primary); }

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 6px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 999px;
  white-space: nowrap;
  transition: all .25s;
}
.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: rgba(0, 240, 181, 0.08);
  text-shadow: 0 0 12px rgba(0, 240, 181, 0.45);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  transition: border-color .25s, box-shadow .25s;
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 240, 181, 0.12);
}
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  width: 140px;
  font-family: var(--font-body);
}
.search-box input::placeholder { color: var(--muted); }
.search-box button {
  background: var(--primary);
  color: #04110D;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: box-shadow .25s;
}
.search-box button:hover { box-shadow: 0 0 16px rgba(0, 240, 181, 0.55); }

/* ============ Hero ============ */
.hero {
  position: relative;
  margin: 28px auto 48px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 0 40px rgba(0, 240, 181, 0.06), inset 0 0 60px rgba(0, 0, 0, 0.5);
}
.hero-slide {
  position: relative;
  display: none;
  aspect-ratio: 21 / 9;
  min-height: 320px;
}
.hero-slide.active { display: block; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.6) saturate(1.1);
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,10,11,.92) 0%, rgba(7,10,11,.55) 45%, transparent 80%),
              linear-gradient(0deg, rgba(7,10,11,.85), transparent 55%);
}
.hero-info {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 2;
  padding: 40px;
  max-width: 560px;
}
.hero-info h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text);
  text-shadow: 0 0 24px rgba(0, 240, 181, 0.25);
  animation: glitch 4s infinite;
}
.hero-info p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-info .meta-line {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #00c99a);
  color: #04110D;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform .25s, box-shadow .25s;
}
.btn:hover {
  color: #04110D;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 240, 181, 0.45);
}
.btn.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn.ghost:hover { background: rgba(0, 240, 181, 0.1); color: var(--primary); }

@keyframes glitch {
  0%, 92%, 100% { transform: translate(0); }
  93% { transform: translate(-2px, 1px); }
  94% { transform: translate(2px, -1px); }
  95% { transform: translate(-1px, 0); }
  96% { transform: translate(0); }
}

/* ============ Section ============ */
.sec { margin-bottom: 52px; }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.sec-head::before {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 64px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.sec-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
}
.sec-title span {
  color: var(--primary);
  font-size: 13px;
  margin-left: 10px;
  font-family: var(--font-body);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.sec-more {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .25s;
}
.sec-more:hover { color: var(--primary); }
.sec-more::after { content: ' →'; }

/* ============ Grid & Card ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 181, 0.4);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 22px rgba(0, 240, 181, 0.18);
}
.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0b1011;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s, filter .45s;
}
.card:hover .card-cover img {
  transform: scale(1.06);
  filter: saturate(1.25) hue-rotate(-6deg) brightness(1.05);
}
.card-score {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 2;
  background: rgba(7, 10, 11, 0.78);
  backdrop-filter: blur(6px);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 181, 0.4);
  text-shadow: 0 0 10px rgba(0, 240, 181, 0.5);
}
.card-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .25s;
}
.card:hover .card-title { color: var(--primary); }
.card-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.card-meta span { white-space: nowrap; }

/* ============ Category list ============ */
.cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  transition: all .25s;
}
.cat-item:hover {
  border-color: rgba(0, 240, 181, 0.4);
  background: rgba(0, 240, 181, 0.05);
  transform: translateY(-3px);
}
.cat-item:hover .cat-count { color: var(--primary); }
.cat-count {
  font-size: 12px;
  color: var(--muted);
  background: rgba(0, 240, 181, 0.08);
  padding: 1px 9px;
  border-radius: 999px;
  transition: color .25s;
}

/* ============ Rank list ============ */
.rank-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px 26px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .25s;
}
.rank-item:hover {
  border-color: rgba(178, 107, 255, 0.4);
  background: rgba(178, 107, 255, 0.06);
  transform: translateX(4px);
}
.rank-num {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  min-width: 34px;
  text-align: center;
  color: var(--muted);
  transition: color .25s;
}
.rank-item:nth-child(1) .rank-num,
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num {
  color: var(--primary);
  text-shadow: 0 0 14px rgba(0, 240, 181, 0.55);
}
.rank-title {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .25s;
}
.rank-item:hover .rank-title { color: var(--primary); }
.rank-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(178, 107, 255, 0.4);
}

/* ============ Detail ============ */
.detail { margin: 32px auto 52px; }
.detail-head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  padding: 32px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 0 60px rgba(0, 240, 181, 0.03);
}
.detail-cover {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 0 30px rgba(0, 240, 181, 0.12);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-meta h1 {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
}
.detail-meta .subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.detail-score {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 22px rgba(0, 240, 181, 0.5);
  margin-bottom: 18px;
}
.detail-score small { font-size: 13px; color: var(--muted); font-family: var(--font-body); }
.detail-meta ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 24px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}
.detail-meta ul li span { color: var(--text); }
.detail-body {
  margin-top: 28px;
  padding: 30px 32px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}
.detail-body h2 {
  font-family: var(--font-heading);
  font-size: 19px;
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
  color: var(--text);
}
.detail-body p { margin-bottom: 14px; color: #c6d6d2; }

/* ============ Tags ============ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.tag {
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(0, 240, 181, 0.07);
  border: 1px solid rgba(0, 240, 181, 0.2);
  color: var(--primary);
  transition: all .25s;
}
.tag:hover {
  background: rgba(0, 240, 181, 0.16);
  box-shadow: 0 0 14px rgba(0, 240, 181, 0.3);
  color: var(--primary);
}

/* ============ Pager ============ */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0 10px;
}
.pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all .25s;
}
.pg:hover {
  color: var(--primary);
  border-color: rgba(0, 240, 181, 0.4);
  box-shadow: 0 0 14px rgba(0, 240, 181, 0.15);
}
.pg.current {
  background: linear-gradient(135deg, var(--primary), #00c99a);
  color: #04110D;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(0, 240, 181, 0.45);
}
.pg.disabled {
  opacity: .35;
  pointer-events: none;
  cursor: not-allowed;
}

/* ============ Links ============ */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.link-item {
  font-size: 13px;
  color: var(--muted);
  transition: color .25s;
}
.link-item:hover { color: var(--primary); }

/* ============ Footer ============ */
.footer {
  margin-top: 40px;
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
  background: linear-gradient(0deg, rgba(0, 240, 181, 0.03), transparent);
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--primary); }
.footer p { margin: 0; }

/* ============ Crumbs ============ */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0 0;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs span { color: var(--text); }

/* ============ Highlight ============ */
.hl {
  color: var(--primary);
  font-weight: 700;
  background: rgba(0, 240, 181, 0.1);
  padding: 0 3px;
  border-radius: 4px;
  text-shadow: 0 0 10px rgba(0, 240, 181, 0.4);
}

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

/* ============ Mobile ============ */
@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  .header .wrap {
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 12px;
  }
  .logo { font-size: 18px; }
  .nav {
    order: 3;
    width: 100%;
    flex: none;
    gap: 2px;
    padding-bottom: 2px;
  }
  .nav a { padding: 5px 11px; font-size: 13px; }
  .search-box { margin-left: auto; }
  .search-box input { width: 90px; }

  .hero { margin: 18px auto 34px; }
  .hero-slide { aspect-ratio: 4 / 5; min-height: 0; }
  .hero-info { padding: 22px 20px; }
  .hero-info h2 { font-size: 22px; }
  .hero-info p { font-size: 13px; -webkit-line-clamp: 2; }
  .btn { padding: 9px 20px; font-size: 13px; }

  .sec { margin-bottom: 38px; }
  .sec-title { font-size: 18px; }
  .sec-title span { display: none; }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .card-info { padding: 10px 11px 12px; }
  .card-title { font-size: 14px; }
  .card-meta { font-size: 11px; gap: 3px 8px; }

  .cat-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-item { padding: 11px 14px; font-size: 13px; }

  .rank-list { grid-template-columns: 1fr; gap: 8px; }
  .rank-item { padding: 10px 14px; }
  .rank-num { font-size: 17px; min-width: 28px; }

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

  .pg { min-width: 34px; height: 34px; padding: 0 10px; font-size: 13px; }
  .footer { padding: 26px 0 32px; font-size: 12px; }
}