:root {
  --bg: #0B0714;
  --surface: #1A1330;
  --primary: #D4AF37;
  --accent: #FF6EC7;
  --text: #F5E9FF;
  --muted: #8A7A9E;
  --radius: 16px;
  --font-heading: 'Playfair Display', 'Noto Serif SC', 'Times New Roman', serif;
  --font-body: 'Inter', 'Noto Sans SC', 'Helvetica Neue', sans-serif;
  --glow: 0 0 18px rgba(255, 110, 199, 0.35);
  --glow-gold: 0 0 16px rgba(212, 175, 55, 0.4);
}

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

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

body {
  background-image:
    linear-gradient(rgba(11, 7, 20, 0.92), rgba(11, 7, 20, 0.96)),
    repeating-linear-gradient(0deg, rgba(255, 110, 199, 0.05) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 0%, rgba(255, 110, 199, 0.12), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}

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(11, 7, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  background: linear-gradient(120deg, #FFE9A8, var(--primary) 45%, #FFF6D6 60%, var(--primary) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.35));
}

.logo img { height: 34px; width: auto; }

.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: 8px 14px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 999px;
  white-space: nowrap;
  transition: color .25s, background .25s, box-shadow .25s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 110, 199, 0.12);
  box-shadow: var(--glow);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 19, 48, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  transition: border-color .25s, box-shadow .25s;
}

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

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  width: 150px;
}
.search-box input::placeholder { color: var(--muted); }

.search-box button,
.search-box .btn {
  border: none;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #1A1330;
  background: linear-gradient(120deg, var(--primary), #F5DFA0);
  transition: filter .25s, box-shadow .25s;
}

.search-box button:hover,
.search-box .btn:hover {
  filter: brightness(1.1);
  box-shadow: var(--glow-gold);
}

/* ============ Hero 轮播 ============ */
.hero {
  position: relative;
  margin: 24px 0 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), var(--glow);
}

.hero-slide {
  position: relative;
  display: block;
  aspect-ratio: 21 / 9;
  background: var(--surface);
  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-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11, 7, 20, 0.92));
  pointer-events: none;
}

.hero-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-info h2,
.hero-info .hero-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

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

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #1A1330;
  background: linear-gradient(120deg, var(--primary), #F5DFA0);
  border: none;
  cursor: pointer;
  align-self: flex-start;
  transition: transform .25s, box-shadow .25s, filter .25s;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: var(--glow-gold);
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: var(--glow);
}

/* ============ 区块 ============ */
.sec { margin-bottom: 48px; }

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

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

.sec-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .5px;
  background: linear-gradient(120deg, #FFE9A8, var(--primary) 55%, #FFF6D6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sec-more {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .25s, text-shadow .25s;
}
.sec-more:hover { color: var(--accent); text-shadow: var(--glow); }

/* ============ 卡片网格 ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: rgba(26, 19, 48, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.15);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 110, 199, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), var(--glow);
}

.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--surface);
}

.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: 8px;
  right: 8px;
  z-index: 2;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 700;
  color: #1A1330;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--primary), #F5DFA0);
  box-shadow: var(--glow-gold);
}

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

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

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

/* ============ 分类列表 ============ */
.cat-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(26, 19, 48, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

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

.cat-item .cat-name,
.cat-item span:first-child {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.cat-count {
  font-size: 12px;
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 110, 199, 0.45);
  background: rgba(255, 110, 199, 0.08);
  white-space: nowrap;
}

/* ============ 排行榜 ============ */
.rank-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: rgba(26, 19, 48, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(255, 110, 199, 0.5);
  box-shadow: var(--glow);
}

.rank-num {
  flex: 0 0 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  border-radius: 10px;
  background: rgba(11, 7, 20, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.rank-item:nth-child(1) .rank-num,
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num {
  color: #1A1330;
  background: linear-gradient(120deg, var(--primary), #F5DFA0);
  box-shadow: var(--glow-gold);
}

.rank-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .25s;
}
.rank-item:hover .rank-title { color: var(--accent); }

.rank-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* ============ 详情页 ============ */
.detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  margin: 32px 0 48px;
}

.detail-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-cover {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--glow);
}

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

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(26, 19, 48, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  color: var(--muted);
}

.detail-meta strong,
.detail-meta span { color: var(--text); }

.detail-score {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, #FFE9A8, var(--primary) 55%, #FFF6D6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-body h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1.25;
  color: var(--text);
}

.detail-body h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 8px;
}

.detail-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

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

.tag {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  color: var(--accent);
  border-radius: 999px;
  border: 1px solid rgba(255, 110, 199, 0.4);
  background: rgba(255, 110, 199, 0.08);
  transition: background .25s, box-shadow .25s, color .25s;
}

.tag:hover {
  background: rgba(255, 110, 199, 0.2);
  box-shadow: var(--glow);
  color: var(--text);
}

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

.pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 10px;
  background: rgba(26, 19, 48, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.22);
  transition: color .25s, border-color .25s, box-shadow .25s, background .25s;
}

.pg:hover {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.pg.current {
  color: #1A1330;
  font-weight: 700;
  background: linear-gradient(120deg, var(--primary), #F5DFA0);
  border-color: transparent;
  box-shadow: var(--glow-gold);
}

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

/* ============ 友情链接 ============ */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 20px 0;
}

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

.link-item:hover {
  color: var(--accent);
  text-shadow: var(--glow);
}

/* ============ 面包屑 ============ */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 20px 0 4px;
  font-size: 13px;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
  transition: color .25s;
}
.crumbs a:hover { color: var(--accent); }

/* ============ 搜索高亮 ============ */
.hl {
  color: var(--accent);
  font-weight: 700;
  text-shadow: var(--glow);
}

/* ============ 页脚 ============ */
.footer {
  margin-top: 60px;
  padding: 36px 0 28px;
  border-top: 1px solid rgba(212, 175, 55, 0.22);
  background: linear-gradient(180deg, transparent, rgba(26, 19, 48, 0.5));
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 2;
}

.footer a {
  color: var(--muted);
  transition: color .25s;
}
.footer a:hover { color: var(--accent); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .cat-list { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 240px 1fr; gap: 24px; }
  .hero-info h2, .hero-info .hero-title { font-size: 26px; }
}

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

  .header .wrap {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 10px;
  }

  .logo { font-size: 20px; }

  .nav {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    gap: 2px;
    padding-bottom: 4px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding-top: 8px;
  }

  .nav a { padding: 6px 12px; font-size: 13px; }

  .search-box { margin-left: auto; padding: 4px 4px 4px 12px; }
  .search-box input { width: 110px; font-size: 13px; }
  .search-box button, .search-box .btn { padding: 5px 12px; font-size: 12px; }

  .hero { margin: 16px 0 28px; }
  .hero-slide { aspect-ratio: 4 / 3; }
  .hero-info { padding: 20px 16px; gap: 8px; }
  .hero-info h2, .hero-info .hero-title { font-size: 20px; }
  .hero-info p { font-size: 12px; }

  .sec { margin-bottom: 32px; }
  .sec-title { font-size: 19px; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-info { padding: 8px 10px 10px; }
  .card-title { font-size: 13px; }
  .card-meta { font-size: 11px; }

  .cat-list { grid-template-columns: 1fr; gap: 10px; }
  .cat-item { padding: 12px 16px; }

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

  .detail {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0 32px;
  }

  .detail-cover { max-width: 220px; margin: 0 auto; }
  .detail-meta { grid-template-columns: 1fr; }
  .detail-body h1 { font-size: 22px; }
  .detail-score { font-size: 30px; }

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

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