/* =========================================================
 * 慢直播聚合平台 · 全站样式
 * ---------------------------------------------------------
 * 目录
 *   01. 主题变量
 *   02. 全局基础
 *   03. 滚动条 & 选中
 *   04. 顶部导航
 *   05. 页脚
 *   06. 返回顶部
 *   07. 首页 · Banner 轮播
 *   08. 首页 · 焦点直播 Hero
 *   09. 首页 · 分类区块
 *   10. 列表页 · 栏目导航
 *   11. 响应式
 *   12. 浅色主题微调
 * ========================================================= */


/* =========================================================
 * 01. 主题变量
 * ========================================================= */
:root,
html[data-theme="dark"] {
  --c-bg: #0e1116;
  --c-bg-deep: #0b0e13;
  --c-panel: #161a22;
  --c-card: #1b2029;
  --c-card-hover: #1f2530;
  --c-border: #262c38;
  --c-border-hover: #3a4761;
  --c-text: #e7eaf0;
  --c-text-sub: #8b93a7;
  --c-text-mute: #525b6e;
  --c-accent: #4f8cff;
  --c-accent-hover: #77a5ff;
  --c-ok: #22c55e;
  --c-err: #ef4444;
  --c-header-bg: rgba(14, 17, 22, .88);
  --c-scroll-thumb: #262c38;
  --c-scroll-track: #0e1116;
  --c-selection: rgba(79, 140, 255, .35);
  --c-shadow: rgba(0, 0, 0, .42);
  --c-live-msg-bg: rgba(0, 0, 0, .62);
  --c-live-flag-bg: rgba(0, 0, 0, .6);
  --c-badge-bg: #1e2532;
  --c-badge-text: #cfd6e4;
  --c-code-bg: #0d1117;
  --c-code-border: #1f2530;
}

html[data-theme="light"] {
  --c-bg: #f5f7fa;
  --c-bg-deep: #eef1f6;
  --c-panel: #ffffff;
  --c-card: #ffffff;
  --c-card-hover: #fafbfd;
  --c-border: #e5e9f0;
  --c-border-hover: #c8d0de;
  --c-text: #1a1f2b;
  --c-text-sub: #6b7487;
  --c-text-mute: #9aa2b1;
  --c-accent: #2f6fe4;
  --c-accent-hover: #1f57c4;
  --c-ok: #16a34a;
  --c-err: #dc2626;
  --c-header-bg: rgba(255, 255, 255, .9);
  --c-scroll-thumb: #c8d0de;
  --c-scroll-track: #f5f7fa;
  --c-selection: rgba(47, 111, 228, .25);
  --c-shadow: rgba(20, 30, 50, .12);
  --c-live-msg-bg: rgba(255, 255, 255, .82);
  --c-live-flag-bg: rgba(0, 0, 0, .55);
  --c-badge-bg: #e6ebf4;
  --c-badge-text: #4a5365;
  --c-code-bg: #f0f2f6;
  --c-code-border: #e5e9f0;
}

/* 主题切换过渡 */
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: background-color .25s ease,
    border-color .25s ease,
    color .25s ease !important;
}


/* =========================================================
 * 02. 全局基础
 * ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  transition: background-color .25s ease, color .25s ease;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color .15s ease;
}

a:hover {
  color: var(--c-accent-hover);
}

img {
  border: 0;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button {
  font-family: inherit;
}


/* =========================================================
 * 03. 滚动条 & 选中
 * ========================================================= */
::selection {
  background: var(--c-selection);
  color: var(--c-text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--c-scroll-track);
}

::-webkit-scrollbar-thumb {
  background: var(--c-scroll-thumb);
  border-radius: 5px;
  border: 2px solid var(--c-scroll-track);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--c-border-hover);
}


/* =========================================================
 * 04. 顶部导航
 * ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  transition: background .25s ease, border-color .25s ease;
}

.site-header .header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ---------- Logo ---------- */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: .3px;
  white-space: nowrap;
}

.site-logo:hover {
  color: var(--c-text);
}

.site-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.site-logo .logo-dot {
  color: var(--c-accent);
}

/* ---------- 主导航（顶级 + 下拉） ---------- */
.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: visible;
  scrollbar-width: none;
}

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

.site-nav a {
  flex: none;
  display: inline-block;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--c-text-sub);
  border-radius: 8px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.site-nav a:hover {
  background: var(--c-card);
  color: var(--c-text);
}

.site-nav a.active {
  background: var(--c-card);
  color: var(--c-accent);
  font-weight: 500;
}

/* 带下拉的导航项 */
.nav-item {
  position: relative;
  flex: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--c-text-sub);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.nav-item:hover .nav-link,
.nav-link:hover {
  background: var(--c-card);
  color: var(--c-text);
}

.nav-arrow {
  width: 12px;
  height: 12px;
  flex: none;
  opacity: .6;
  transition: transform .2s;
}

.nav-item:hover .nav-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown {
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 110;
  min-width: 160px;
  max-width: 260px;
  padding: 6px;
  margin-top: 4px;
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  transform: translateX(-50%) translateY(-6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--c-text-sub);
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .15s, color .15s, padding-left .15s;
}

.nav-dropdown-link:hover {
  background: var(--c-card);
  color: var(--c-accent);
  padding-left: 18px;
}

/* ---------- 右侧操作区 ---------- */
.site-header .header-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 搜索框 */
.site-header .header-search {
  display: flex;
  align-items: center;
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 0 4px 0 12px;
  height: 36px;
  transition: border-color .15s;
}

.site-header .header-search:focus-within {
  border-color: var(--c-accent);
}

.site-header .header-search input {
  width: 150px;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  color: var(--c-text);
  font-size: 13px;
  outline: none;
}

.site-header .header-search input::placeholder {
  color: var(--c-text-mute);
}

.site-header .header-search button {
  height: 28px;
  padding: 0 10px;
  border: none;
  border-radius: 6px;
  background: var(--c-accent);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: filter .15s;
}

.site-header .header-search button:hover {
  filter: brightness(1.1);
}

/* ---------- 主题切换按钮 ---------- */
.theme-toggle {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-panel);
  color: var(--c-text-sub);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, color .15s, transform .2s;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--c-card-hover);
  border-color: var(--c-border-hover);
  color: var(--c-text);
}

.theme-toggle:active {
  transform: scale(.94);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1),
    opacity .25s ease;
  position: absolute;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(.5);
}

html[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(.5);
}

html[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* ---------- 移动端搜索图标 ---------- */
.search-toggle {
  display: none;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-panel);
  color: var(--c-text-sub);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
}

.search-toggle:hover {
  background: var(--c-card-hover);
  border-color: var(--c-border-hover);
  color: var(--c-text);
}

.search-toggle svg {
  width: 18px;
  height: 18px;
}

/* ---------- 移动端汉堡按钮 ---------- */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-panel);
  color: var(--c-text-sub);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, color .15s;
}

.nav-toggle:hover {
  background: var(--c-card-hover);
  color: var(--c-text);
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}


/* =========================================================
 * 05. 页脚
 * ========================================================= */
.site-footer {
  margin-top: auto;
  background: var(--c-bg-deep);
  border-top: 1px solid var(--c-border);
  color: var(--c-text-sub);
  font-size: 13px;
  line-height: 1.7;
  width: 100%;
}

.site-footer .footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px 24px;
}

.site-footer .footer-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--c-border);
}

.site-footer .footer-col {
  min-width: 0;
}

.site-footer .footer-title {
  margin: 0 0 14px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: .3px;
  background: none;
  border: none;
}

.site-footer .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .footer-links li {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.site-footer .footer-links a {
  color: var(--c-text-sub);
  text-decoration: none;
  transition: color .15s;
}

.site-footer .footer-links a:hover {
  color: var(--c-accent);
}

.site-footer .footer-contact-line {
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  gap: 8px;
  color: var(--c-text-sub);
}

.site-footer .footer-contact-line .label {
  flex: none;
  width: 40px;
  color: var(--c-text-mute);
}

.site-footer .footer-contact-line a {
  color: var(--c-text-sub);
  word-break: break-all;
}

.site-footer .footer-contact-line a:hover {
  color: var(--c-accent);
}

.site-footer .footer-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 12px;
}

.site-footer .links-label {
  flex: none;
  color: var(--c-text-mute);
}

.site-footer .links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.site-footer .links-list a {
  color: var(--c-text-sub);
}

.site-footer .links-list a:hover {
  color: var(--c-accent);
}

.site-footer .footer-bottom {
  text-align: center;
  font-size: 12px;
  line-height: 1.9;
  color: var(--c-text-mute);
}

.site-footer .footer-bottom p {
  margin: 0;
  padding: 0;
}

.site-footer .copyright {
  color: var(--c-text-sub);
}

.site-footer .copyright a {
  color: var(--c-text-sub);
}

.site-footer .copyright a:hover {
  color: var(--c-accent);
}

.site-footer .meta a {
  color: var(--c-text-mute);
}

.site-footer .meta a:hover {
  color: var(--c-accent);
}

.site-footer .meta .sep {
  margin: 0 8px;
  color: var(--c-border);
}

/* ---------- 搜索头：一行布局 ---------- */
.search-bar {
  max-width: 1400px;
  margin: 24px auto 0;
  padding: 0 20px;
  font-size: 14px;
  color: var(--c-text-sub);
}
.search-bar strong { color: var(--c-accent); }
.search-bar .count { color: var(--c-text-mute); margin-left: 8px; font-size: 12.5px; }

.search-wrap {
  max-width: 1400px;
  margin: 20px auto 40px;
  padding: 0 20px;
}

.loading, .empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--c-text-mute);
  font-size: 13px;
}
.loading .spinner {
  width: 28px; height: 28px; margin: 0 auto 12px;
  border: 2px solid var(--c-border);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty h3 { color: var(--c-text); font-size: 17px; margin: 0 0 8px; }
.empty p { margin: 0; }
.empty a { color: var(--c-accent); }

.live-grid mark {
  background: rgba(79,140,255,.35);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}
.search-result-bar {
  max-width: 1400px;
  margin: 24px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 14px;
  color: var(--c-text-sub);
}

.search-result-bar strong {
  color: var(--c-accent);
  font-weight: 600;
}

.search-result-bar .count {
  color: var(--c-text-mute);
  font-size: 12.5px;
}

@media (max-width: 640px) {
  .search-result-bar {
    padding: 0 12px;
    margin-top: 16px;
    font-size: 13px;
  }
}

/* 统计：自动靠右 */
.search-meta {
  margin-left: auto;
  /* 关键：把统计推到右边 */
  display: flex;
  align-items: baseline;
  gap: 8px 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--c-text-sub);
  white-space: nowrap;
}

.search-meta strong {
  color: var(--c-accent);
  font-weight: 600;
}

.search-meta .count {
  color: var(--c-text-mute);
  font-size: 12.5px;
}

/* ---------- 移动端：搜索框和统计换行 ---------- */
@media (max-width: 720px) {
  .search-meta {
    margin-left: 0;
    padding: 0 2px;
    font-size: 13px;
  }
}

.search-section {
  max-width: 1400px;
  margin: 20px auto 40px;
  padding: 0 20px;
}

.search-empty {
  max-width: 1400px;
  margin: 60px auto;
  padding: 40px 20px;
  text-align: center;
  min-height: 280px;
}

.search-empty .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-card);
  color: var(--c-text-mute);
}

.search-empty .icon svg {
  width: 34px;
  height: 34px;
}

.search-empty h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--c-text);
}

.search-empty p {
  margin: 0;
  font-size: 13.5px;
  color: var(--c-text-sub);
}

/* 隐藏不匹配的卡片 */
.live-grid .card.hide {
  display: none !important;
}

/* 高亮关键词 */
.live-grid mark {
  background: rgba(79, 140, 255, .35);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}

/* =========================================================
 * 06. 返回顶部
 * ========================================================= */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 90;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-panel);
  color: var(--c-text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease,
    background .15s ease, color .15s ease, border-color .15s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.back-top svg {
  width: 20px;
  height: 20px;
}

.back-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-top:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}


/* =========================================================
 * 07. 首页 · Banner 轮播
 * ========================================================= */
.home-banner {
  position: relative;
  max-width: 1400px;
  margin: 20px auto 0;
  padding: 0 20px;
  overflow: hidden;
}

.banner-track {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 21 / 8;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0c10;
  border: 1px solid var(--c-border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .35);
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

@supports not (aspect-ratio: 21 / 8) {
  .banner-track {
    height: 0;
    padding-bottom: 38.1%;
  }

  .banner-track .banner-slide {
    position: absolute;
    inset: 0;
  }
}

.banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.banner-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s ease;
}

.banner-slide:hover .banner-media img {
  transform: scale(1.04);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(0, 0, 0, .78) 0%,
      rgba(0, 0, 0, .55) 40%,
      rgba(0, 0, 0, .15) 70%,
      rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.banner-info {
  position: relative;
  z-index: 2;
  width: 55%;
  max-width: 620px;
  padding: 40px 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
}

.banner-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  color: #fff;
  background: var(--c-accent);
}

.banner-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.banner-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

.banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--c-accent);
  border-radius: 10px;
  transition: filter .15s, transform .15s;
}

.banner-slide:hover .banner-btn {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.banner-btn svg {
  width: 15px;
  height: 15px;
}

/* 左右箭头 */
.banner-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .2s, background .15s, transform .15s, border-color .15s;
}

.banner-arrow svg {
  width: 20px;
  height: 20px;
}

.banner-prev {
  left: 32px;
}

.banner-next {
  right: 32px;
}

.home-banner:hover .banner-arrow {
  opacity: 1;
}

.banner-arrow:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  transform: scale(1.08);
}

.banner-arrow:active {
  transform: scale(.96);
}

@media (hover: none) {
  .banner-arrow {
    opacity: 1;
  }
}

/* 指示点 */
.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.banner-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  transition: width .3s, background .2s, border-radius .3s;
  outline: none;
}

.banner-dot:hover {
  background: rgba(255, 255, 255, .7);
}

.banner-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #fff;
}


/* =========================================================
 * 08. 首页 · 焦点直播 Hero
 * ========================================================= */
.home-hero {
  max-width: 1400px;
  margin: 24px auto 0;
  padding: 0 20px;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}

.hero-card:hover {
  border-color: var(--c-border-hover);
}

.hero-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0c10;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.hero-card:hover .hero-media img {
  transform: scale(1.03);
}

.hero-media .hero-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--c-text-sub);
  font-size: 13px;
  background: linear-gradient(135deg, var(--c-panel) 0%, #0a0c10 100%);
  pointer-events: none;
}

.hero-media .spinner {
  width: 26px;
  height: 26px;
  border: 2px solid var(--c-border);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: lg-spin .8s linear infinite;
}

/* LIVE 角标 */
.hero-live {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  color: #fff;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-live .live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3b3b;
  animation: hero-pulse 1.6s ease-out infinite;
}

@keyframes hero-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 59, 59, .55);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(255, 59, 59, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 59, 59, 0);
  }
}

.hero-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .25);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}

.hero-card:hover .hero-play {
  opacity: 1;
}

.hero-play svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .55));
}

.hero-info {
  padding: 32px 30px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.hero-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--c-text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12px;
  color: var(--c-text-mute);
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
  margin-top: 4px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-meta svg {
  width: 13px;
  height: 13px;
  opacity: .75;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--c-accent);
  border-radius: 10px;
  text-decoration: none;
  align-self: flex-start;
  transition: filter .15s, transform .15s;
}

.hero-btn:hover {
  filter: brightness(1.1);
  color: #fff;
  transform: translateY(-1px);
}

.hero-btn svg {
  width: 16px;
  height: 16px;
}


/* =========================================================
 * 09. 首页 · 分类区块
 * ========================================================= */
.home-section {
  max-width: 1400px;
  margin: 44px auto 0;
  padding: 0 20px;
}

.home-section+.home-section {
  margin-top: 40px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
}

.section-title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: .2px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--c-accent);
}

.section-more {
  flex: none;
  font-size: 13px;
  color: var(--c-text-sub);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .15s, gap .15s;
}

.section-more:hover {
  color: var(--c-accent);
  gap: 8px;
}

.home-section .live-grid {
  padding: 0;
  gap: 16px;
}


/* =========================================================
 * 10. 列表页 · 栏目导航
 * ========================================================= */
.cat-nav {
  max-width: 1400px;
  margin: 20px auto 0;
  padding: 0 20px;
  display: flex;
  gap: 10px;
}

.cat-nav-title {
  flex: none;
  font-size: 12.5px;
  color: var(--c-text-mute);
  padding-right: 14px;
  border-right: 1px solid var(--c-border);
  line-height: 1.4;
}

.cat-nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.cat-nav-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13.5px;
  color: var(--c-text-sub);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}

.cat-nav-item:hover {
  background: var(--c-card-hover);
  color: var(--c-text);
  border-color: var(--c-border);
}

.cat-nav-item.active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  font-weight: 500;
}

.cat-nav-item.active:hover {
  background: var(--c-accent);
  color: #fff;
  filter: brightness(1.08);
}


/* =========================================================
 * 11. 响应式
 * ========================================================= */
@media (max-width: 900px) {

  /* ---------- 顶部 ---------- */
  .site-header .header-inner {
    height: 55px;
    justify-content: space-between;
  }

  .site-header .header-search {
    display: none;
  }

  .search-toggle {
    display: inline-flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* 搜索展开态 */
  .site-header.search-open .header-search {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 12px;
    background: var(--c-panel);
    border-radius: 0;
    border: none;
    align-items: center;
    gap: 8px;
  }

  .site-header.search-open .header-search input {
    flex: 1;
    width: auto;
    height: 38px;
    padding: 0 14px;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: 8px;
  }

  .site-header.search-open .header-search button[type="submit"] {
    height: 38px;
    padding: 0 16px;
    border-radius: 8px;
  }


  .site-header.search-open .site-logo,
  .site-header.search-open .site-nav,
  .site-header.search-open .search-toggle,
  .site-header.search-open .theme-toggle,
  .site-header.search-open .nav-toggle {
    visibility: hidden;
  }

  /* 导航栏移动端：竖排下拉 */
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 55px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: var(--c-panel);
    border-bottom: 1px solid var(--c-border);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .22s ease, opacity .22s ease;
  }

  .site-nav.open {
    max-height: 70vh;
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    display: block;
    padding: 11px 14px;
    border-radius: 8px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 14px;
    justify-content: space-between;
    border-radius: 8px;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    max-width: none;
    margin: 2px 0 8px;
    padding: 4px 0 4px 16px;
    background: transparent;
    border: none;
    box-shadow: none;
    display: none;
  }

  .nav-item.open .nav-dropdown {
    display: block;
  }

  .nav-item.open .nav-arrow {
    transform: rotate(180deg);
  }

  .nav-dropdown-link {
    padding: 9px 12px;
    font-size: 13px;
    border-radius: 6px;
  }

  /* ---------- 首页 Banner ---------- */
  .banner-track {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
  }

  .banner-info {
    width: 75%;
    padding: 30px 32px 34px;
  }

  .banner-title {
    font-size: 22px;
  }

  .banner-desc {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .banner-prev {
    left: 14px;
  }

  .banner-next {
    right: 14px;
  }

  .banner-arrow {
    width: 38px;
    height: 38px;
    margin-top: -19px;
  }

  /* ---------- 首页 Hero ---------- */
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-info {
    padding: 22px 20px 24px;
  }

  .hero-title {
    font-size: 18px;
  }

  .hero-desc {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  /* ---------- 页脚 ---------- */
  .site-footer .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .cat-nav {
    padding: 0 12px;
    margin-top: 14px;
  }

  .cat-nav-title {
    width: 100%;
    padding-right: 0;
    padding-bottom: 8px;
    border-right: none;
    border-bottom: 1px solid var(--c-border);
  }

  .cat-nav-list {
    gap: 5px;
  }

  .cat-nav-item {
    padding: 5px 11px;
    font-size: 12.5px;
    border-radius: 6px;
  }
}

@media (max-width: 560px) {

  /* ---------- 首页 Banner ---------- */
  .home-banner {
    padding: 0 12px;
    margin-top: 14px;
  }

  .banner-track {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .banner-info {
    width: 100%;
    padding: 20px 18px 26px;
    gap: 8px;
  }

  .banner-title {
    font-size: 17px;
    -webkit-line-clamp: 2;
  }

  .banner-desc {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .banner-btn {
    padding: 9px 16px;
    font-size: 12.5px;
  }

  .banner-tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  .banner-arrow {
    display: none;
  }

  .banner-dots {
    bottom: 12px;
    gap: 6px;
  }

  .banner-dot {
    width: 6px;
    height: 6px;
  }

  .banner-dot.active {
    width: 18px;
  }

  /* ---------- 首页 Hero / Section ---------- */
  .home-hero,
  .home-section {
    padding: 0 12px;
  }

  .home-hero {
    margin-top: 14px;
  }

  .home-section {
    margin-top: 32px;
  }

  .section-title {
    font-size: 16px;
  }

  .hero-card {
    border-radius: 12px;
  }

  .hero-info {
    padding: 18px 16px 20px;
    gap: 10px;
  }

  .hero-title {
    font-size: 16px;
  }

  .hero-btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  /* ---------- 页脚 ---------- */

  .site-footer .footer-inner {
    padding: 28px 14px 18px;
  }

  .site-footer .footer-main {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 20px;
  }

  .site-footer .footer-links-row {
    padding: 16px 0;
  }

  .back-top {
    right: 14px;
    bottom: 18px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .site-header .header-inner {
    height: 54px;
    padding: 0 14px;
    gap: 12px;
    justify-content: space-between;
  }

  .site-logo {
    font-size: 15px;
  }

  .site-logo img {
    height: 26px;
  }

  .theme-toggle,
  .nav-toggle {
    width: 34px;
    height: 34px;
  }

  .theme-toggle svg {
    width: 16px;
    height: 16px;
  }
}



/* =========================================================
 * 12. 浅色主题微调
 * ========================================================= */
html[data-theme="light"] .banner-track {
  box-shadow: 0 10px 28px rgba(20, 30, 50, .18);
}

html[data-theme="light"] .cat-nav-item.active {
  color: #fff;
}