:root {
  --bg: #0a0a0c;
  --surface: #141418;
  --primary: #00f5d4;
  --accent: #ff8a3d;
  --text: #eaeaea;
  --muted: #7a7a8a;
  --radius: 16px;
  --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --shadow: 0 8px 30px rgba(0, 0, 0, .55);
  --glow-primary: 0 0 18px rgba(0, 245, 212, .45);
  --glow-accent: 0 0 18px rgba(255, 138, 61, .45);
  --gradient: linear-gradient(135deg, var(--accent), var(--primary));
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(0, 245, 212, .06), transparent 55%),
    radial-gradient(ellipse at 85% 10%, rgba(255, 138, 61, .07), transparent 50%);
  background-attachment: fixed;
}

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

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

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

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

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

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(0, 245, 212, .25);
}

.logo:hover {
  color: transparent;
}

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

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

.nav a {
  display: inline-block;
  padding: 6px 12px;
  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, 245, 212, .1);
  box-shadow: var(--glow-primary);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(0, 245, 212, .2);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  min-width: 200px;
  transition: border-color .25s, box-shadow .25s;
}

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

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  min-width: 0;
}

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

.search-box button {
  background: var(--gradient);
  border: none;
  color: #0a0a0c;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font);
  transition: box-shadow .25s;
}

.search-box button:hover {
  box-shadow: var(--glow-accent);
}

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

.hero-slide {
  position: relative;
  aspect-ratio: 21 / 9;
  min-height: 260px;
  overflow: hidden;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 12, .92) 0%, rgba(10, 10, 12, .55) 45%, transparent 80%);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 245, 212, .04) 0px,
    rgba(0, 245, 212, .04) 1px,
    transparent 1px,
    transparent 4px
  );
}

.hero-info {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  padding: 32px;
  max-width: 60%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-info h2,
.hero-info .hero-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  text-shadow: 0 0 20px rgba(0, 245, 212, .35);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--gradient);
  color: #0a0a0c;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: box-shadow .25s, transform .25s;
}

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

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

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

.sec-title {
  position: relative;
  font-size: 20px;
  font-weight: 800;
  padding-left: 14px;
  letter-spacing: .5px;
}

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

.sec-more {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .25s;
}

.sec-more:hover {
  color: var(--accent);
}

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

.card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .04);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 245, 212, .35);
  box-shadow: var(--shadow), var(--glow-primary);
}

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

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

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

.card-score {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #0a0a0c;
  background: var(--accent);
  box-shadow: var(--glow-accent);
}

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

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .25s;
}

.card:hover .card-title {
  color: var(--primary);
}

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

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

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 18px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .04);
  font-weight: 600;
  transition: all .3s;
}

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

.cat-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(0, 245, 212, .08);
  padding: 1px 8px;
  border-radius: 999px;
}

/* ===== Rank list ===== */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .04);
  transition: all .3s;
}

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

.rank-num {
  flex: 0 0 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
}

.rank-item:nth-child(1) .rank-num {
  color: #0a0a0c;
  background: var(--accent);
  box-shadow: var(--glow-accent);
}

.rank-item:nth-child(2) .rank-num {
  color: #0a0a0c;
  background: var(--primary);
  box-shadow: var(--glow-primary);
}

.rank-item:nth-child(3) .rank-num {
  color: #0a0a0c;
  background: #ffb877;
}

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

.rank-score {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}

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

.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

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

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

.detail-head {
  display: flex;
  gap: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .04);
  box-shadow: var(--shadow);
}

.detail-cover {
  flex: 0 0 240px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

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

.detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 212, .25);
  pointer-events: none;
}

.detail-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-meta h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
}

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

.detail-meta p b,
.detail-meta p span {
  color: var(--text);
  font-weight: 500;
}

.detail-score {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  text-shadow: var(--glow-accent);
}

.detail-score small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.detail-body {
  margin-top: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .04);
  line-height: 1.9;
  font-size: 14px;
  color: var(--text);
}

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

.detail-body h2,
.detail-body h3 {
  margin: 18px 0 10px;
  font-size: 17px;
  color: var(--primary);
}

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

.tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--primary);
  background: rgba(0, 245, 212, .08);
  border: 1px solid rgba(0, 245, 212, .22);
  transition: all .25s;
}

.tag:hover {
  color: #0a0a0c;
  background: 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 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: all .25s;
}

.pg:hover {
  color: var(--primary);
  border-color: rgba(0, 245, 212, .4);
  box-shadow: var(--glow-primary);
}

.pg.current {
  color: #0a0a0c;
  font-weight: 800;
  background: var(--gradient);
  border-color: transparent;
  box-shadow: var(--glow-accent);
}

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

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

.link-item {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .05);
  transition: all .25s;
}

.link-item:hover {
  color: var(--accent);
  border-color: rgba(255, 138, 61, .4);
}

/* ===== Footer ===== */
.footer {
  margin-top: 48px;
  padding: 28px 0;
  border-top: 1px solid rgba(0, 245, 212, .12);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}

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

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

/* ===== Highlight ===== */
.hl {
  color: #0a0a0c;
  background: var(--accent);
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 700;
}

/* ===== Fault text title ===== */
.sec-title:hover {
  animation: glitch .5s steps(2) infinite;
}

@keyframes glitch {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  25% { text-shadow: 2px 0 var(--accent), -2px 0 var(--primary); }
  50% { text-shadow: -2px 0 var(--accent), 2px 0 var(--primary); }
  75% { text-shadow: 1px 0 var(--primary), -1px 0 var(--accent); }
}

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

@media (max-width: 768px) {
  .wrap {
    padding: 0 14px;
  }
  .header .wrap {
    height: auto;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }
  .logo {
    font-size: 18px;
  }
  .nav {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .search-box {
    flex: 1;
    min-width: 0;
  }
  .hero {
    border-radius: 12px;
    margin: 16px 0;
  }
  .hero-slide {
    aspect-ratio: 4 / 5;
    min-height: 0;
  }
  .hero-slide::after {
    background: linear-gradient(0deg, rgba(10, 10, 12, .95) 0%, rgba(10, 10, 12, .5) 55%, transparent 85%);
  }
  .hero-info {
    max-width: 100%;
    padding: 20px;
  }
  .hero-info h2,
  .hero-info .hero-title {
    font-size: 22px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .cat-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .sec {
    margin: 24px 0;
  }
  .sec-title {
    font-size: 17px;
  }
  .detail-head {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }
  .detail-cover {
    flex: none;
    width: 150px;
    align-self: center;
  }
  .detail-meta h1 {
    font-size: 20px;
  }
  .detail-score {
    font-size: 26px;
  }
  .detail-body {
    padding: 16px;
  }
  .rank-item {
    padding: 10px 12px;
    gap: 10px;
  }
  .pg {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .footer {
    margin-top: 32px;
    padding: 20px 0;
  }
}
</parameter>