:root {
  --bg: #071012;
  --surface: #0E1A1C;
  --primary: #2BE8C8;
  --accent: #C9A15A;
  --text: #EAF4F1;
  --muted: #6E8A87;
  --radius: 2px;
  --font-head: 'Helvetica Neue', Arial, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Helvetica Neue', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --line: rgba(43, 232, 200, 0.18);
  --line-soft: rgba(234, 244, 241, 0.08);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary); }
img { display: block; max-width: 100%; border: 0; }
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(7, 16, 18, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

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

.logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  vertical-align: middle;
}
.logo:hover { color: var(--primary); }

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

.nav a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  border-radius: var(--radius);
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--primary); border-bottom-color: var(--primary); }

.search-box {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.search-box input {
  width: 160px;
  padding: 7px 10px;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}
.search-box input::placeholder { color: var(--muted); }
.search-box button {
  padding: 7px 14px;
  background: var(--primary);
  color: #04100E;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.search-box button:hover { filter: brightness(1.1); }

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

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

.hero-info {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 48px 32px 24px;
  background: linear-gradient(to top, rgba(7,16,18,.96), rgba(7,16,18,0));
}
.hero-info h2 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.hero-info p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  max-width: 640px;
}

.btn {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 24px;
  background: var(--primary);
  color: #04100E;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all .2s ease;
}
.btn:hover {
  color: #04100E;
  box-shadow: 0 0 18px rgba(43, 232, 200, .5);
  transform: translateY(-1px);
}

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

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.sec-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
  padding-left: 14px;
}
.sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.sec-more {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sec-more:hover { color: var(--primary); }

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

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5), 0 0 0 1px var(--line);
}

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

.card-score {
  position: absolute;
  top: 0;
  right: 0;
  padding: 3px 10px;
  background: var(--accent);
  color: #1a1206;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-head);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%);
}

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

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

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

/* ---------- Cat list ---------- */
.cat-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--primary);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: all .2s ease;
}
.cat-item:hover {
  border-left-color: var(--accent);
  background: #122224;
  transform: translateX(2px);
}

.cat-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  font-family: var(--font-head);
}

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

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .2s ease;
}
.rank-item:hover { background: rgba(43, 232, 200, .04); }

.rank-num {
  flex-shrink: 0;
  width: 34px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}
.rank-item:nth-child(-n+3) .rank-num { color: var(--primary); }

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

.rank-score {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}

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

.detail-head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.detail-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a1416;
}
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta { padding-top: 4px; }
.detail-meta h1 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.detail-meta p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.detail-meta p strong { color: var(--text); font-weight: 600; }

.detail-score {
  display: inline-block;
  margin: 12px 0;
  padding: 6px 16px;
  background: var(--accent);
  color: #1a1206;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.detail-body {
  padding: 28px 0;
  font-size: 14px;
  line-height: 1.9;
  color: #c8d8d5;
}
.detail-body h2 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 24px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}
.detail-body p { margin-bottom: 12px; }

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

.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: all .2s ease;
}
.tag:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(43, 232, 200, .25);
}

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

.pg {
  display: inline-block;
  min-width: 38px;
  padding: 8px 12px;
  text-align: center;
  font-size: 13px;
  font-family: var(--font-head);
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: all .2s ease;
}
.pg:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.pg.current {
  color: #04100E;
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 800;
}
.pg.disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Links ---------- */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
}

.link-item {
  font-size: 12px;
  color: var(--muted);
}
.link-item:hover { color: var(--primary); }

/* ---------- Footer ---------- */
.footer {
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--primary); }

/* ---------- Crumbs ---------- */
.crumbs {
  padding: 16px 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .5px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs span { color: var(--text); }

/* ---------- Highlight ---------- */
.hl {
  color: var(--primary);
  background: rgba(43, 232, 200, .12);
  padding: 0 2px;
  border-radius: 1px;
}

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

@media (max-width: 768px) {
  .wrap { padding: 0 14px; }

  .header .wrap {
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .logo { font-size: 18px; }
  .nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    border-top: 1px solid var(--line-soft);
    padding-top: 8px;
  }
  .search-box { margin-left: auto; }
  .search-box input { width: 110px; }

  .hero-slide { aspect-ratio: 4 / 3; }
  .hero-info { padding: 32px 18px 18px; }
  .hero-info h2 { font-size: 22px; }
  .hero-info p { font-size: 12px; }

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

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

  .card-info { padding: 8px 8px 10px; }
  .card-title { font-size: 13px; }
  .card-meta { font-size: 11px; gap: 6px; }

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

  .rank-list { grid-template-columns: 1fr; gap: 0; }
  .rank-num { width: 28px; font-size: 17px; }

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

  .pg { min-width: 32px; padding: 6px 9px; font-size: 12px; }
}

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