/**
 * 全站首页样式
 */
html {
  scroll-behavior: smooth;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 15, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-header .logo span {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header .search {
  flex: 1;
  max-width: 360px;
  min-width: 200px;
}

.site-header .search input {
  flex: 1;
  width: 100%;
}

.site-header .search button {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: 0;
  color: #fff;
  font-weight: 600;
}

.index-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

.cat-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-bar::-webkit-scrollbar {
  display: none;
}

.cat-link {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(20, 27, 46, 0.6);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.cat-link:hover,
.cat-link.is-home {
  border-color: rgba(91, 140, 255, 0.45);
  color: var(--text);
  background: rgba(91, 140, 255, 0.12);
}

.cat-link strong {
  font-weight: 600;
  color: var(--text);
}

.index-hero {
  margin-top: 16px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: radial-gradient(900px 320px at 10% 0%, rgba(91, 140, 255, 0.28), transparent 55%),
    radial-gradient(700px 280px at 90% 20%, rgba(124, 92, 255, 0.22), transparent 50%),
    linear-gradient(145deg, var(--card), #0c101c);
  padding: 28px 24px 26px;
}

.index-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
}

.index-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 640px;
}

.hero-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags a {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
}

.hero-tags a:hover {
  color: var(--text);
  border-color: rgba(91, 140, 255, 0.4);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .cat-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 640px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 400px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  text-align: center;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}

.cat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 140, 255, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cat-card .icon {
  font-size: 1.5rem;
  line-height: 1;
}

.cat-card .name {
  font-size: 13px;
  font-weight: 700;
}

.cat-card .sub {
  font-size: 11px;
  color: var(--muted);
}

.section {
  margin-top: 28px;
}

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

.sec-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-head h2::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand2));
}

.sec-more {
  font-size: 13px;
  color: var(--brand);
  white-space: nowrap;
}

.sec-more:hover {
  text-decoration: underline;
}

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

@media (max-width: 1100px) {
  .vod-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 720px) {
  .vod-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .vod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vod-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color 0.2s, transform 0.15s;
}

.vod-card:hover {
  border-color: rgba(91, 140, 255, 0.4);
  transform: translateY(-2px);
}

.vod-card .poster {
  position: relative;
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, #1a2238, #0d111c);
  overflow: hidden;
}

.vod-card .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vod-card .poster .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
  padding: 8px;
  text-align: center;
}

.vod-card .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}

.vod-card .body {
  padding: 10px 12px;
}

.vod-card .title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vod-card .desc {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.site-footer {
  margin-top: 40px;
}

/* 首页底部站点地图（SEO 内链） */
.index-sitemap-nav {
  margin-top: 48px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 26, 51, 0.55);
}

.index-sitemap-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.index-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px 28px;
}

.index-sitemap-col h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

.index-sitemap-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-sitemap-col li {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.index-sitemap-col a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.index-sitemap-col a:hover {
  color: var(--brand);
  border-bottom-color: rgba(106, 166, 255, 0.35);
}

.index-sitemap-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
