:root {
  --bg: #08080f;
  --surface: #12121f;
  --primary: #00e5ff;
  --accent: #b06cff;
  --text: #eef1ff;
  --muted: #8890b5;
  --radius: 14px;
  --font-heading: 'Impact', 'Arial Black', 'Helvetica Neue', sans-serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --glow-primary: 0 0 12px rgba(0, 229, 255, .45);
  --glow-accent: 0 0 12px rgba(176, 108, 255, .45);
  --border-soft: 1px solid rgba(136, 144, 181, .18);
}

* {
  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.6;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle at 15% 0%, rgba(0, 229, 255, .06), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(176, 108, 255, .07), transparent 45%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s ease;
}

a:hover {
  color: var(--primary);
}

img {
  display: block;
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0b0b14;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6b4a2e, #a97b4a);
  border-radius: 8px;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 15, .78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-soft);
}

.header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--text);
  text-shadow: var(--glow-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span,
.logo b {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: all .25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: rgba(0, 229, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, .25);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-box input {
  width: 180px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(136, 144, 181, .25);
  background: rgba(18, 18, 31, .8);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all .25s ease;
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.search-box button {
  height: 36px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #05050a;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .25s ease;
}

.search-box button:hover {
  box-shadow: var(--glow-primary);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  margin: 24px auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--border-soft);
  background: var(--surface);
}

.hero-slide {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 15, .92) 0%, rgba(8, 8, 15, .55) 45%, rgba(8, 8, 15, .1) 100%),
    linear-gradient(0deg, rgba(8, 8, 15, .95) 0%, transparent 55%);
}

.hero-info {
  position: relative;
  z-index: 2;
  padding: 32px;
  max-width: 560px;
}

.hero-info h2 {
  font-family: var(--font-heading);
  font-size: 34px;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(0, 229, 255, .35);
}

.hero-info p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #05050a;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
}

.btn:hover {
  color: #05050a;
  transform: translateY(-2px);
  box-shadow: var(--glow-accent);
}

/* Section */
.sec {
  margin: 40px 0;
}

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.sec-title {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 1px;
  position: relative;
  padding-left: 14px;
}

.sec-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: var(--glow-primary);
}

.sec-more {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(136, 144, 181, .25);
  transition: all .25s ease;
}

.sec-more:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

/* Grid & Card */
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--border-soft);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, .4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5), var(--glow-primary);
}

.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0d0d18;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.card:hover .card-cover img {
  transform: scale(1.06);
}

.card-score {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(8, 8, 15, .75);
  backdrop-filter: blur(6px);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(0, 229, 255, .35);
  box-shadow: var(--glow-primary);
}

.card-info {
  padding: 10px 12px 12px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.card-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Categories */
.cat-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(18, 18, 31, .7);
  backdrop-filter: blur(10px);
  border: var(--border-soft);
  transition: all .25s ease;
}

.cat-item:hover {
  border-color: rgba(176, 108, 255, .45);
  box-shadow: var(--glow-accent);
  transform: translateY(-3px);
}

.cat-count {
  font-size: 12px;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 229, 255, .08);
  border: 1px solid rgba(0, 229, 255, .2);
}

/* Rank */
.rank-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(18, 18, 31, .7);
  border: var(--border-soft);
  transition: all .25s ease;
}

.rank-item:hover {
  border-color: rgba(0, 229, 255, .35);
  box-shadow: var(--glow-primary);
  transform: translateX(4px);
}

.rank-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--muted);
  background: rgba(136, 144, 181, .1);
}

.rank-item:nth-child(1) .rank-num {
  color: #05050a;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--glow-primary);
}

.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num {
  color: var(--primary);
  border: 1px solid rgba(0, 229, 255, .4);
}

.rank-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-score {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* Detail */
.detail {
  margin: 30px 0;
}

.detail-head {
  display: flex;
  gap: 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(18, 18, 31, .7);
  backdrop-filter: blur(12px);
  border: var(--border-soft);
}

.detail-cover {
  flex-shrink: 0;
  width: 220px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, .25);
  box-shadow: var(--glow-primary);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta {
  flex: 1;
  min-width: 0;
}

.detail-meta h1 {
  font-family: var(--font-heading);
  font-size: 30px;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 0 18px rgba(0, 229, 255, .3);
}

.detail-meta p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.detail-meta p b {
  color: var(--text);
  font-weight: 600;
  margin-right: 6px;
}

.detail-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 14px;
  padding: 4px 14px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--primary);
  border: 1px solid rgba(0, 229, 255, .4);
  box-shadow: var(--glow-primary);
}

.detail-body {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(18, 18, 31, .7);
  border: var(--border-soft);
  line-height: 1.9;
  color: #c9cfe8;
}

.detail-body h2,
.detail-body h3 {
  font-family: var(--font-heading);
  color: var(--text);
  letter-spacing: 1px;
  margin: 18px 0 10px;
}

.detail-body p {
  margin-bottom: 12px;
}

/* Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(136, 144, 181, .08);
  border: 1px solid rgba(136, 144, 181, .2);
  transition: all .25s ease;
}

.tag:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

/* Pager */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}

.pg {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  background: rgba(18, 18, 31, .8);
  border: 1px solid rgba(136, 144, 181, .2);
  transition: all .25s ease;
}

.pg:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.pg.current {
  color: #05050a;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  box-shadow: var(--glow-accent);
}

.pg.disabled {
  opacity: .35;
  pointer-events: none;
}

/* Links */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(18, 18, 31, .6);
  border: var(--border-soft);
}

.link-item {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(136, 144, 181, .18);
  transition: all .25s ease;
}

.link-item:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* Footer */
.footer {
  margin-top: 50px;
  padding: 32px 0;
  border-top: var(--border-soft);
  background: rgba(8, 8, 15, .7);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--primary);
}

/* Crumbs */
.crumbs {
  margin: 20px 0;
  font-size: 13px;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--primary);
}

.crumbs span {
  margin: 0 6px;
  opacity: .5;
}

/* Highlight */
.hl {
  color: var(--primary);
  font-weight: 700;
  text-shadow: var(--glow-primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cat-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .header .wrap {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 10px;
  }

  .logo {
    font-size: 20px;
  }

  .nav {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav a {
    padding: 6px 12px;
    font-size: 13px;
  }

  .search-box {
    margin-left: auto;
  }

  .search-box input {
    width: 130px;
  }

  .hero-slide {
    min-height: 260px;
  }

  .hero-info {
    padding: 20px;
  }

  .hero-info h2 {
    font-size: 22px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cat-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .sec-title {
    font-size: 18px;
  }

  .detail-head {
    flex-direction: column;
    gap: 18px;
    padding: 18px;
  }

  .detail-cover {
    width: 140px;
    margin: 0 auto;
  }

  .detail-meta h1 {
    font-size: 22px;
    text-align: center;
  }

  .detail-meta p {
    text-align: center;
  }

  .detail-score {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin: 10px auto 14px;
  }

  .detail-body {
    padding: 18px;
  }

  .footer {
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .search-box input {
    width: 100px;
  }
}