:root {
  --bg: #0B0714;
  --surface: #17102A;
  --primary: #FF3CAC;
  --accent: #784BA0;
  --text: #F2E9FF;
  --muted: #9A8BB3;
  --radius: 14px;
  --font-heading: 'Orbitron', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --line: rgba(255, 60, 172, 0.18);
  --glass: rgba(23, 16, 42, 0.72);
  --glow: 0 0 18px rgba(255, 60, 172, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

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:
    linear-gradient(rgba(120, 75, 160, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 75, 160, 0.08) 1px, transparent 1px),
    radial-gradient(ellipse at 50% -10%, rgba(255, 60, 172, 0.18), transparent 60%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  background-attachment: fixed;
  min-height: 100vh;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0;
  letter-spacing: 0.04em;
  color: var(--text);
}

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

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 7, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff 0%, #d9b3f5 45%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 60, 172, 0.55));
}

.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: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  border-color: var(--primary);
  box-shadow: var(--glow);
  background: rgba(255, 60, 172, 0.08);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  min-width: 220px;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  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: 0;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--glow);
  transition: filter 0.2s;
}

.search-box button:hover { filter: brightness(1.15); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--glow);
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--primary);
  box-shadow: none;
}

.btn.ghost:hover { box-shadow: var(--glow); }

/* ===== Hero ===== */
.hero {
  position: relative;
  margin: 26px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(120, 75, 160, 0.15);
  background: var(--surface);
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 7, 20, 0.95) 0%, rgba(11, 7, 20, 0.55) 45%, rgba(11, 7, 20, 0.15) 100%),
              linear-gradient(0deg, rgba(11, 7, 20, 0.9) 0%, transparent 60%);
}

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

.hero-info h2 {
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 12px;
  text-shadow: 0 0 22px rgba(255, 60, 172, 0.55);
}

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

.hero-info .btn { margin-right: 10px; }

/* ===== Sections ===== */
.sec {
  margin: 44px 0;
}

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

.sec-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  box-shadow: var(--glow);
}

.sec-title {
  font-size: 20px;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-title::before {
  content: "";
  width: 6px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  box-shadow: var(--glow);
}

.sec-more {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

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

/* ===== Grid & Cards ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
}

.card {
  display: block;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), 0 0 22px rgba(255, 60, 172, 0.35);
}

.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #1d1436, #2a1a4a);
}

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

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

.card-score {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--glow);
}

.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(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 14px;
  transition: all 0.2s;
}

.cat-item:hover {
  border-color: var(--primary);
  box-shadow: var(--glow);
  transform: translateY(-3px);
  color: var(--primary);
}

.cat-count {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--muted);
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(120, 75, 160, 0.2);
}

/* ===== Ranking ===== */
.rank-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  transition: all 0.2s;
}

.rank-item:hover {
  border-color: var(--primary);
  box-shadow: var(--glow);
  transform: translateX(4px);
}

.rank-num {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  min-width: 42px;
  text-align: center;
  background: linear-gradient(180deg, #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 60, 172, 0.5));
}

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

.rank-score {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--primary);
}

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

.detail-head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}

.detail-cover {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--glow);
}

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

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

.detail-meta h1 {
  font-size: 28px;
  line-height: 1.3;
  text-shadow: 0 0 18px rgba(255, 60, 172, 0.4);
}

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

.detail-meta p strong { color: var(--text); font-weight: 600; }

.detail-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 16px rgba(255, 60, 172, 0.6);
}

.detail-body {
  margin-top: 26px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  line-height: 1.85;
  color: var(--text);
  font-size: 15px;
}

.detail-body h2 {
  font-size: 18px;
  margin: 22px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}

.detail-body p { margin: 0 0 14px; color: #d8cbe8; }

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

.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(120, 75, 160, 0.16);
  border: 1px solid var(--line);
  transition: all 0.2s;
}

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

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

.pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all 0.2s;
}

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

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

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

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

.link-item {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.link-item:hover {
  color: var(--primary);
  border-color: var(--line);
  background: rgba(255, 60, 172, 0.06);
}

/* ===== Footer ===== */
.footer {
  margin-top: 60px;
  padding: 34px 0 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(23, 16, 42, 0.6));
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  line-height: 1.9;
}

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

/* ===== Crumbs ===== */
.crumbs {
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

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

/* ===== Highlight ===== */
.hl {
  color: var(--primary);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 60, 172, 0.6);
}

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

  .logo { font-size: 18px; }

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

  .search-box {
    flex: 1;
    min-width: 0;
  }

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

  .hero-info { padding: 22px; }

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

  .sec { margin: 30px 0; }

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

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

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

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

  .detail-head {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
  }

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

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

  .detail-body { padding: 18px; }

  .wrap { padding: 0 16px; }
}
</style>