:root {
  --bg: #0B0F0D;
  --surface: #121A16;
  --primary: #38F2B0;
  --accent: #F2E85C;
  --text: #E6F5EE;
  --muted: #7F9C8E;
  --radius: 22px;
  --radius-sm: 12px;
  --font-heading: "Syne", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", sans-serif;
  --glow: 0 0 18px rgba(56, 242, 176, .45);
  --glow-soft: 0 0 30px rgba(56, 242, 176, .18);
  --line: rgba(56, 242, 176, .14);
}

* { 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% -10%, rgba(56, 242, 176, .07), transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(242, 232, 92, .04), transparent 50%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button, input { font-family: inherit; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; letter-spacing: .02em; }

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

/* ============ 顶部导航 ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 13, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: .6;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.logo::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--primary);
  box-shadow: var(--glow);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}

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

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

.nav a {
  position: relative;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .25s, background .25s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: rgba(56, 242, 176, .08);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 1px;
  width: 16px; height: 2px;
  transform: translateX(-50%);
  background: var(--primary);
  border-radius: 2px;
  box-shadow: var(--glow);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  flex-shrink: 0;
  transition: border-color .25s, box-shadow .25s;
}

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

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

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

.search-box button {
  background: var(--primary);
  color: #06130D;
  border: none;
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow .25s, transform .2s;
}

.search-box button:hover {
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

/* ============ 轮播 Hero ============ */
.hero {
  position: relative;
  margin: 26px 0 40px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .5);
}

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

.hero-slide.active { display: block; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) brightness(.72);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 15, 13, .94) 8%, rgba(11, 15, 13, .55) 46%, transparent 78%),
              linear-gradient(0deg, rgba(11, 15, 13, .85), transparent 55%);
}

.hero-info {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 2;
  padding: 34px 40px;
  max-width: 560px;
}

.hero-info h2 {
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 10px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .7);
}

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

.hero-info .tag-list { margin-bottom: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #06130D;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: box-shadow .25s, transform .2s;
}

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

.btn.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn.ghost:hover { background: rgba(56, 242, 176, .1); }

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

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 16px;
}

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

.sec-title {
  font-size: 21px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-title small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  font-family: var(--font-body);
}

.sec-more {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .25s;
  white-space: nowrap;
}

.sec-more:hover { color: var(--primary); }
.sec-more::after { content: "→"; transition: transform .25s; }
.sec-more:hover::after { transform: translateX(4px); }

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

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s, border-color .3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 242, 176, .5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55), var(--glow-soft);
}

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

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .4s;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 15, 13, .72), transparent 42%);
  pointer-events: none;
}

.card-score {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  background: rgba(11, 15, 13, .78);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(242, 232, 92, .35);
  backdrop-filter: blur(6px);
}

.card-info { padding: 12px 13px 14px; }

.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;
  transition: color .25s;
}

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

.card-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-meta span { white-space: nowrap; }

/* ============ 分类列表 ============ */
.cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.cat-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  transition: border-color .25s, box-shadow .25s, transform .2s;
}

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

.cat-count {
  font-size: 12px;
  color: var(--muted);
  background: rgba(56, 242, 176, .08);
  padding: 2px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

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

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .25s, box-shadow .25s, transform .2s;
}

.rank-item:hover {
  border-color: rgba(56, 242, 176, .5);
  box-shadow: var(--glow-soft);
  transform: translateX(3px);
}

.rank-num {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  color: var(--muted);
  min-width: 34px;
  text-align: center;
  flex-shrink: 0;
}

.rank-item:nth-child(1) .rank-num { color: var(--accent); text-shadow: 0 0 14px rgba(242, 232, 92, .5); }
.rank-item:nth-child(2) .rank-num { color: var(--primary); }
.rank-item:nth-child(3) .rank-num { color: var(--primary); opacity: .75; }

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

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

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

/* ============ 详情页 ============ */
.detail { margin: 30px 0 50px; }

.detail-head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: start;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .35);
}

.detail-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

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

.detail-meta { padding-top: 4px; }

.detail-meta h1 {
  font-size: 27px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.detail-meta h1 .sub {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
  font-family: var(--font-body);
}

.detail-score {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 22px rgba(242, 232, 92, .35);
}

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

.detail-meta .card-meta { font-size: 13px; gap: 12px; margin-bottom: 14px; }

.detail-meta p.intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-body {
  margin-top: 26px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.85;
  color: #C8DED4;
}

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

.detail-body p { margin-bottom: 14px; }
.detail-body img { border-radius: var(--radius-sm); margin: 14px 0; }
.detail-body a { color: var(--primary); }

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

.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  background: rgba(56, 242, 176, .08);
  border: 1px solid rgba(56, 242, 176, .22);
  padding: 3px 12px;
  border-radius: 999px;
  transition: background .25s, box-shadow .25s;
}

.tag:hover {
  background: rgba(56, 242, 176, .18);
  box-shadow: var(--glow-soft);
}

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

.pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 13px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: color .25s, border-color .25s, box-shadow .25s;
}

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

.pg.current {
  color: #06130D;
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: var(--glow);
}

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

/* ============ 友情链接 ============ */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

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

.link-item:hover { color: var(--primary); }

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

.crumbs a { color: var(--muted); transition: color .25s; }
.crumbs a:hover { color: var(--primary); }
.crumbs span { color: var(--muted); opacity: .6; }

/* ============ 搜索高亮 ============ */
.hl {
  color: var(--accent);
  background: rgba(242, 232, 92, .12);
  border-radius: 3px;
  padding: 0 2px;
  font-style: normal;
}

/* ============ 页脚 ============ */
.footer {
  margin-top: 60px;
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(0deg, rgba(18, 26, 22, .9), transparent);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.9;
}

.footer a { color: var(--muted); transition: color .25s; }
.footer a:hover { color: var(--primary); }
.footer .footer-brand {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

/* ============ 移动端 ============ */
@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; }

  .search-box { order: 3; width: 100%; }
  .search-box input { flex: 1; width: auto; }

  .nav {
    order: 4;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

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

  .hero { margin: 16px 0 30px; }
  .hero-slide { aspect-ratio: 4 / 5; min-height: 0; }
  .hero-slide::after {
    background: linear-gradient(0deg, rgba(11, 15, 13, .96) 6%, rgba(11, 15, 13, .5) 55%, transparent 90%);
  }
  .hero-info { padding: 20px; max-width: 100%; }
  .hero-info h2 { font-size: 21px; }
  .hero-info p { font-size: 13px; -webkit-line-clamp: 2; }

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

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

  .card-info { padding: 10px 11px 12px; }
  .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: 10px; }

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

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

  .detail-meta h1 { font-size: 21px; text-align: center; }
  .detail-score { font-size: 26px; display: flex; justify-content: center; }
  .detail-meta .card-meta,
  .detail-meta .tag-list { justify-content: center; }
  .detail-meta p.intro { text-align: left; }

  .detail-body { padding: 18px; font-size: 14px; }

  .pg { min-width: 34px; height: 34px; padding: 0 10px; font-size: 12px; }

  .footer { margin-top: 40px; padding: 26px 0 30px; }
}
</style>