:root {
  --bg: #08070C;
  --surface: #12101A;
  --primary: #00F5D4;
  --accent: #A855F7;
  --text: #E8E6F0;
  --muted: #6B6880;
  --radius: 14px;
  --font-heading: 'Orbitron', 'Rajdhani', 'Noto Sans SC', sans-serif;
  --font-body: 'Rajdhani', 'Noto Sans SC', sans-serif;
}

* { 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.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(0,245,212,0.06), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(168,85,247,0.07), transparent 50%);
  background-attachment: fixed;
}

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(8,7,12,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,245,212,0.14);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(0,245,212,0.6);
}

.logo::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  vertical-align: middle;
}

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

.nav a {
  padding: 6px 12px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 8px;
  white-space: nowrap;
  transition: color .2s, background .2s, text-shadow .2s;
}
.nav a:hover {
  color: var(--primary);
  background: rgba(0,245,212,0.08);
  text-shadow: 0 0 8px rgba(0,245,212,0.6);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.search-box input {
  width: 180px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,245,212,0.22);
  background: rgba(18,16,26,0.9);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0,245,212,0.15);
}
.search-box button {
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: rgba(0,245,212,0.1);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.search-box button:hover {
  background: rgba(0,245,212,0.2);
  box-shadow: 0 0 14px rgba(0,245,212,0.4);
}

/* ============ Hero 轮播 ============ */
.hero {
  position: relative;
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,245,212,0.2);
  box-shadow: 0 0 30px rgba(0,245,212,0.08), inset 0 0 40px rgba(168,85,247,0.05);
}

.hero-slide {
  position: relative;
  display: block;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, rgba(8,7,12,0.92) 100%),
    repeating-linear-gradient(0deg, rgba(0,245,212,0.04) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.hero-info {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 32px;
  max-width: 640px;
}
.hero-info h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--text);
  text-shadow: 0 0 16px rgba(0,245,212,0.5);
}
.hero-info p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: rgba(0,245,212,0.12);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .2s;
}
.btn:hover {
  background: rgba(0,245,212,0.22);
  box-shadow: 0 0 18px rgba(0,245,212,0.45);
  transform: translateY(-1px);
}

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

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(168,85,247,0.18);
}

.sec-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  position: relative;
  padding-left: 14px;
}
.sec-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: 0 0 10px rgba(0,245,212,0.6);
}

.sec-more {
  font-size: 13px;
  color: var(--muted);
  transition: color .2s, text-shadow .2s;
}
.sec-more:hover {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(0,245,212,0.6);
}

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

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(0,245,212,0.1);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,245,212,0.4);
  box-shadow: 0 8px 28px rgba(0,245,212,0.15), 0 0 0 1px rgba(168,85,247,0.2);
}

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

.card-score {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--bg);
  background: var(--primary);
  box-shadow: 0 0 10px rgba(0,245,212,0.6);
}

.card-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.card:hover .card-title { color: var(--primary); }

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

/* ============ Cat 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;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(18,16,26,0.7);
  border: 1px solid rgba(168,85,247,0.18);
  backdrop-filter: blur(8px);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cat-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(168,85,247,0.3);
  transform: translateY(-2px);
}
.cat-item span:first-child { font-size: 14px; color: var(--text); }
.cat-count {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--primary);
}

/* ============ Rank List ============ */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(18,16,26,0.65);
  border: 1px solid rgba(0,245,212,0.08);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.rank-item:hover {
  border-color: rgba(0,245,212,0.35);
  background: rgba(0,245,212,0.05);
  box-shadow: 0 0 14px rgba(0,245,212,0.12);
}
.rank-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
}
.rank-item:nth-child(1) .rank-num { color: var(--bg); background: var(--primary); box-shadow: 0 0 12px rgba(0,245,212,0.6); }
.rank-item:nth-child(2) .rank-num { color: var(--bg); background: var(--accent); box-shadow: 0 0 12px rgba(168,85,247,0.6); }
.rank-item:nth-child(3) .rank-num { color: var(--primary); border: 1px solid var(--primary); }
.rank-title {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-score {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--primary);
  text-shadow: 0 0 8px rgba(0,245,212,0.4);
}

/* ============ Detail ============ */
.detail {
  margin: 32px 0;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(18,16,26,0.6);
  border: 1px solid rgba(0,245,212,0.14);
  backdrop-filter: blur(10px);
}

.detail-head {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
}
.detail-cover {
  flex-shrink: 0;
  width: 220px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,245,212,0.25);
  box-shadow: 0 0 24px rgba(0,245,212,0.12);
}
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.detail-meta h1 {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.3;
  color: var(--text);
  text-shadow: 0 0 14px rgba(0,245,212,0.4);
}
.detail-meta p {
  font-size: 14px;
  color: var(--muted);
  word-break: break-word;
}
.detail-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 14px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0,245,212,0.08);
  border: 1px solid rgba(0,245,212,0.35);
  box-shadow: 0 0 14px rgba(0,245,212,0.2);
}

.detail-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  padding-top: 20px;
  border-top: 1px solid rgba(168,85,247,0.16);
}
.detail-body p { margin-bottom: 14px; }
.detail-body a { color: var(--primary); }

/* ============ Tag List ============ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.22);
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(168,85,247,0.35);
}

/* ============ Pager ============ */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 36px 0;
}
.pg {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--muted);
  background: rgba(18,16,26,0.8);
  border: 1px solid rgba(0,245,212,0.14);
  transition: color .2s, border-color .2s, box-shadow .2s, background .2s;
}
.pg:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0,245,212,0.3);
}
.pg.current {
  color: var(--bg);
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(0,245,212,0.55);
}
.pg.disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}

/* ============ Links ============ */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
}
.link-item {
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(18,16,26,0.6);
  border: 1px solid rgba(0,245,212,0.1);
  transition: color .2s, border-color .2s;
}
.link-item:hover {
  color: var(--primary);
  border-color: rgba(0,245,212,0.4);
}

/* ============ Footer ============ */
.footer {
  margin-top: 60px;
  padding: 32px 0;
  border-top: 1px solid rgba(0,245,212,0.12);
  background: rgba(8,7,12,0.9);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}
.footer a { color: var(--primary); }
.footer a:hover { text-shadow: 0 0 8px rgba(0,245,212,0.6); }

/* ============ Crumbs ============ */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0 0;
}
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--primary); }
.crumbs span { color: var(--text); }

/* ============ Highlight ============ */
.hl {
  color: var(--bg);
  background: var(--primary);
  padding: 0 3px;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(0,245,212,0.5);
}

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

@media (max-width: 768px) {
  .header .wrap {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }
  .nav {
    order: 3;
    width: 100%;
    flex: none;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .search-box { margin-left: auto; }
  .search-box input { width: 130px; }

  .hero-slide { aspect-ratio: 16 / 10; }
  .hero-info { padding: 16px 18px; }
  .hero-info h2 { font-size: 18px; }
  .hero-info p { display: none; }

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

  .sec { margin: 28px 0; }
  .sec-title { font-size: 17px; }

  .detail { padding: 16px; }
  .detail-head { flex-direction: column; gap: 16px; }
  .detail-cover { width: 100%; max-width: 240px; margin: 0 auto; }
  .detail-meta h1 { font-size: 20px; text-align: center; }
  .detail-score { align-self: center; }

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

  .pg { min-width: 34px; height: 34px; font-size: 13px; }
}
</style>