:root {
  --bg: #0A0B10;
  --surface: #15171E;
  --primary: #00E5FF;
  --accent: #FFB300;
  --text: #F2F4F8;
  --muted: #8A8F9C;
  --radius: 16px;
  --font-heading: 'Impact', 'Arial Black', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --glow-primary: 0 0 12px rgba(0, 229, 255, 0.45);
  --glow-accent: 0 0 12px rgba(255, 179, 0, 0.45);
  --glass: rgba(21, 23, 30, 0.65);
  --border: rgba(255, 255, 255, 0.08);
}

* { 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, 0.08), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(255, 179, 0, 0.06), transparent 45%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; transition: color .25s, opacity .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 20px;
}

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--text);
  white-space: nowrap;
  text-shadow: var(--glow-primary);
}
.logo span, .logo em { color: var(--primary); font-style: normal; }
.logo:hover { color: var(--text); }

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

.nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: all .25s;
}
.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: rgba(0, 229, 255, 0.1);
  box-shadow: var(--glow-primary);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  min-width: 220px;
}
.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  min-width: 0;
}
.search-box input::placeholder { color: var(--muted); }
.search-box button {
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), #00a8c4);
  color: #04121a;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--font-body);
  transition: box-shadow .25s, transform .25s;
}
.search-box button:hover { box-shadow: var(--glow-primary); transform: translateY(-1px); }

/* ============ Hero ============ */
.hero {
  position: relative;
  margin: 28px auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-slide {
  position: relative;
  display: block;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.hero-slide:hover img { transform: scale(1.04); }

.hero-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 32px 28px;
  background: linear-gradient(to top, rgba(10, 11, 16, 0.96), rgba(10, 11, 16, 0.55) 55%, transparent);
}
.hero-info h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: .5px;
  margin-bottom: 8px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}
.hero-info p {
  color: var(--muted);
  font-size: 14px;
  max-width: 640px;
  margin-bottom: 16px;
  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;
  font-size: 14px;
  font-weight: 700;
  color: #04121a;
  background: linear-gradient(135deg, var(--primary), #00a8c4);
  box-shadow: var(--glow-primary);
  transition: transform .25s, box-shadow .25s;
}
.btn:hover {
  color: #04121a;
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.7);
}
.btn.accent {
  background: linear-gradient(135deg, var(--accent), #ff8f00);
  box-shadow: var(--glow-accent);
}
.btn.accent:hover { box-shadow: 0 0 22px rgba(255, 179, 0, 0.7); }

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

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-left: 14px;
  position: relative;
}
.sec-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) skewY(-12deg);
  width: 5px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(var(--primary), var(--accent));
  box-shadow: var(--glow-primary);
}

.sec-title {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: .5px;
  color: var(--text);
}
.sec-title em { color: var(--primary); font-style: normal; }

.sec-more {
  font-size: 13px;
  color: var(--muted);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: all .25s;
}
.sec-more:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

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

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), var(--glow-primary);
}

.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0d0f15;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.card:hover .card-cover img { transform: scale(1.06); }

.card-score {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: .5px;
  color: #1a1200;
  background: linear-gradient(135deg, var(--accent), #ff8f00);
  padding: 3px 10px;
  border-radius: 8px;
  box-shadow: var(--glow-accent);
}

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

.card-title {
  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;
  margin-bottom: 6px;
}
.card:hover .card-title { color: var(--primary); }

.card-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  white-space: nowrap;
  overflow: hidden;
}
.card-meta span { overflow: hidden; text-overflow: ellipsis; }

/* ============ Cat List ============ */
.cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cat-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  transition: all .25s;
}
.cat-item:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

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

/* ============ Rank List ============ */
.rank-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .25s;
}
.rank-item:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: var(--glow-primary);
  transform: translateX(4px);
}

.rank-num {
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 15px;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}
.rank-item:nth-child(1) .rank-num,
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num {
  color: #1a1200;
  background: linear-gradient(135deg, var(--accent), #ff8f00);
  box-shadow: var(--glow-accent);
}

.rank-title {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-item:hover .rank-title { color: var(--primary); }

.rank-score {
  flex: none;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 179, 0, 0.4);
}

/* ============ Detail ============ */
.detail { margin: 28px auto; }

.detail-head {
  display: flex;
  gap: 32px;
  padding: 28px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.detail-cover {
  flex: none;
  width: 240px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.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;
  line-height: 1.25;
  letter-spacing: .5px;
  margin-bottom: 10px;
}

.detail-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 20px;
  color: #1a1200;
  background: linear-gradient(135deg, var(--accent), #ff8f00);
  padding: 4px 16px;
  border-radius: 10px;
  box-shadow: var(--glow-accent);
  margin-bottom: 16px;
}

.detail-meta ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.detail-meta ul li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-meta ul li b { color: var(--text); font-weight: 500; }

.detail-body {
  margin-top: 24px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.9;
  color: #cfd4de;
}
.detail-body h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text);
  margin: 20px 0 10px;
  letter-spacing: .5px;
}
.detail-body h2:first-child { margin-top: 0; }
.detail-body p { margin-bottom: 12px; }

/* ============ Tag List ============ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.18);
  transition: all .25s;
}
.tag:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

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

.pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all .25s;
}
.pg:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}
.pg.current {
  color: #04121a;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #00a8c4);
  border-color: transparent;
  box-shadow: var(--glow-primary);
}
.pg.disabled {
  opacity: .35;
  pointer-events: none;
  cursor: not-allowed;
}

/* ============ Links ============ */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 20px 0;
}

.link-item {
  font-size: 13px;
  color: var(--muted);
  transition: color .25s;
}
.link-item:hover { color: var(--primary); }

/* ============ Footer ============ */
.footer {
  margin-top: 60px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: rgba(10, 11, 16, 0.7);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 2;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--primary); }

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

/* ============ Highlight ============ */
.hl {
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 179, 0, 0.45);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .rank-list { grid-template-columns: 1fr; }
  .hero-info h2 { font-size: 26px; }
}

@media (max-width: 768px) {
  body { font-size: 14px; }

  .header .wrap {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 10px;
  }
  .logo { font-size: 20px; }
  .nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .nav a { padding: 6px 12px; font-size: 13px; }
  .search-box { flex: 1; min-width: 0; }

  .wrap { padding: 0 16px; }

  .hero { margin: 18px auto; }
  .hero-slide { aspect-ratio: 4 / 5; }
  .hero-info { padding: 28px 18px 20px; }
  .hero-info h2 { font-size: 20px; }
  .hero-info p { font-size: 13px; -webkit-line-clamp: 2; }
  .btn { padding: 8px 20px; font-size: 13px; }

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

  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card-cover { aspect-ratio: 2 / 3; }

  .cat-list { gap: 8px; }
  .cat-item { padding: 8px 14px; font-size: 13px; }

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

  .detail-head {
    flex-direction: column;
    gap: 18px;
    padding: 18px;
  }
  .detail-cover { width: 100%; max-width: 220px; margin: 0 auto; }
  .detail-meta h1 { font-size: 22px; text-align: center; }
  .detail-score { display: flex; justify-content: center; width: fit-content; margin: 0 auto 14px; }
  .detail-meta ul { grid-template-columns: 1fr; }
  .detail-body { padding: 18px; font-size: 14px; }

  .pager { gap: 6px; }
  .pg { min-width: 34px; height: 34px; padding: 0 10px; font-size: 13px; }

  .footer { margin-top: 40px; padding: 24px 0; }
}