:root {
  --bg: #0A0A0F;
  --surface: #12121A;
  --primary: #00E5FF;
  --accent: #B44CFF;
  --text: #F0F4F8;
  --muted: #8892A4;
  --radius: 12px;
  --font-heading: Inter, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --glow-primary: 0 0 12px rgba(0, 229, 255, 0.45);
  --glow-accent: 0 0 12px rgba(180, 76, 255, 0.45);
  --border-soft: rgba(136, 146, 164, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* ============ 容器 ============ */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ 头部 ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
}

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

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

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

.nav a {
  flex: 0 0 auto;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

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

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.search-box input {
  width: 180px;
  height: 36px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

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

.search-box button {
  height: 36px;
  padding: 0 16px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: #04121a;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: filter 0.2s, box-shadow 0.2s;
}

.search-box button:hover {
  filter: brightness(1.12);
  box-shadow: var(--glow-primary);
}

/* ============ 通用按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: #04121a;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: filter 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.5);
  transform: translateY(-1px);
}

.btn.ghost {
  color: var(--primary);
  background: transparent;
  border: 1px solid rgba(0, 229, 255, 0.5);
}

.btn.ghost:hover {
  background: rgba(0, 229, 255, 0.08);
}

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

.hero-slide {
  position: relative;
  display: block;
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.55) 55%, rgba(10, 10, 15, 0.15) 100%);
}

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

.hero-info h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

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

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

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

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

.sec-title {
  font-size: 20px;
  font-weight: 700;
  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-accent);
}

.sec-more {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}

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

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 8px 28px rgba(0, 229, 255, 0.16), var(--glow-accent);
}

.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  overflow: hidden;
  background: #05050a;
}

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

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

.card-score {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(10, 10, 15, 0.72);
  border: 1px solid rgba(0, 229, 255, 0.55);
  border-radius: 999px;
  box-shadow: var(--glow-primary);
  backdrop-filter: blur(4px);
}

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

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

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

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

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  background: rgba(18, 18, 26, 0.72);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.cat-item:hover {
  color: var(--primary);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: var(--glow-primary);
}

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

/* ============ 排行榜 ============ */
.rank-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rank-item:hover {
  border-color: rgba(180, 76, 255, 0.5);
  box-shadow: var(--glow-accent);
}

.rank-num {
  flex: 0 0 28px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  color: var(--accent);
  text-shadow: var(--glow-accent);
}

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

.rank-score {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

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

.detail-head {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 24px;
  background: rgba(18, 18, 26, 0.72);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.detail-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: var(--glow-primary);
}

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

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

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

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

.detail-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 14px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  border: 1px solid rgba(0, 229, 255, 0.55);
  border-radius: 999px;
  box-shadow: var(--glow-primary);
}

.detail-body {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

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

.detail-body p {
  margin: 0 0 12px;
  color: var(--muted);
}

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

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

/* ============ 分页 ============ */
.pager {
  display: flex;
  flex-wrap: wrap;
  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;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.pg:hover {
  color: var(--primary);
  border-color: rgba(0, 229, 255, 0.5);
}

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

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

/* ============ 友情链接 ============ */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}

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

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

/* ============ 面包屑 ============ */
.crumbs {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}

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

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

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

/* ============ 页脚 ============ */
.footer {
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.03));
}

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

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

/* ============ 响应式 ============ */
@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;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }
  .logo {
    font-size: 18px;
  }
  .nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  .nav a {
    padding: 5px 10px;
    font-size: 13px;
  }
  .search-box {
    margin-left: auto;
  }
  .search-box input {
    width: 130px;
  }
  .hero-slide {
    min-height: 240px;
  }
  .hero-info {
    padding: 28px 20px;
    max-width: 100%;
  }
  .hero-info h2 {
    font-size: 22px;
  }
  .sec {
    margin: 26px 0;
  }
  .sec-title {
    font-size: 17px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .cat-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .rank-list {
    grid-template-columns: 1fr;
  }
  .detail-head {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }
  .detail-cover {
    max-width: 200px;
    margin: 0 auto;
  }
  .detail-meta h1 {
    font-size: 20px;
  }
  .detail-body {
    padding: 16px;
  }
  .pg {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
  }
}
</style>