/* EasyCMS 多栏目首页 / 栏目页样式（沉浸式视频站风格） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0b0b0b;
  color: #fff;
}
a { text-decoration: none; color: inherit; }

/* 顶部导航 */
.top {
  position: fixed; top: 0; left: 0; right: 0; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  background: linear-gradient(rgba(0,0,0,.85), transparent);
  backdrop-filter: blur(8px);
  z-index: 99;
}
.logo { font-size: 26px; font-weight: 700; letter-spacing: .5px; }
.language-switcher {
  display: flex; gap: 5px; padding: 4px;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
}
.language-switcher a { padding: 6px 10px; border-radius: 999px; font-size: 13px; opacity: .72; }
.language-switcher a:hover, .language-switcher a.active { background: #fff; color: #111; opacity: 1; }
.language-short { display: none; }
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav a { opacity: .8; font-size: 15px; }
.nav a:hover { opacity: 1; }
.nav a.active { opacity: 1; font-weight: 700; color: #4ea1ff; }
.search { background: #222; padding: 9px 15px; border-radius: 30px; }

/* Hero */
.hero {
  height: 60vh; min-height: 360px;
  background: #111;
  display: flex; align-items: end; padding: 5%;
  position: relative; overflow: hidden;
}
.hero-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero:after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent, #0b0b0b 88%);
}
.info { position: relative; z-index: 2; max-width: 600px; }
.info h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.15; }
.info p { opacity: .85; margin: 14px 0; line-height: 1.7; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { padding: 12px 24px; border-radius: 30px; cursor: pointer; }
.play { background: #fff; color: #000; }
.more { background: #ffffff20; }

/* 内容区 */
.wrap { padding: 20px; }
.page-head { padding: 84px 20px 0; }
.page-head h1 { font-size: 28px; }
.page-head .sub { opacity: .6; margin-top: 6px; font-size: 14px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 30px 0 16px;
}
.title { font-size: 23px; }
.more-link {
  font-size: 14px; opacity: .85; background: #ffffff14;
  padding: 7px 14px; border-radius: 20px; white-space: nowrap;
}
.more-link:hover { opacity: 1; background: #ffffff26; }

/* 卡片网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.card {
  background: #181818; border-radius: 16px; overflow: hidden;
  transition: transform .25s ease; display: block;
}
.card:hover { transform: translateY(-6px) scale(1.02); }
.thumb {
  aspect-ratio: 16/9; position: relative; background: #222; overflow: hidden;
}
.thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.time {
  position: absolute; right: 8px; bottom: 8px;
  background: #0008; padding: 4px 8px; border-radius: 8px; font-size: 12px;
}
.txt { padding: 13px 14px; }
.txt h3 {
  font-size: 16px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.txt p { opacity: .7; font-size: 13px; margin-top: 8px; }

/* 分页 */
.pager {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  margin: 36px 0 90px; flex-wrap: wrap;
}
.pager a, .pager span {
  padding: 9px 15px; border-radius: 10px; background: #181818; font-size: 14px;
}
.pager a:hover { background: #262626; }
.pager .cur { background: #4ea1ff; color: #000; font-weight: 700; }
.pager .disabled { opacity: .35; }
.empty-block { opacity: .6; padding: 24px 0; }

/* 底部移动端导航 */
.footerNav {
  position: fixed; bottom: 0; left: 0; right: 0; height: 64px;
  background: #111; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
  border-top: 1px solid #333; z-index: 99;
}
.footerNav a {
  min-width: 0; text-align: center; font-size: 12px; opacity: .72; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.footerNav a.active { opacity: 1; color: #4ea1ff; font-weight: 700; }
.nav-dot {
  display: block; width: 6px; height: 6px; margin: 0 auto 6px;
  border-radius: 50%; background: currentColor;
}
.page-body { padding-bottom: 84px; }

.desktop-footer { display: none; }

@media (min-width: 900px) {
  .footerNav { display: none; }
  .page-body { padding-bottom: 30px; }
  .wrap { padding: 30px 5%; }
  .page-head { padding: 94px 5% 0; }
  .desktop-footer {
    display: block; margin-top: 64px; padding: 46px 5% 24px;
    background: var(--theme-surface, #151515); border-top: 1px solid var(--theme-line, #333);
  }
  .footer-grid { display: grid; grid-template-columns: 1.1fr .8fr 1.5fr; gap: 48px; }
  .desktop-footer h2 { margin-bottom: 16px; font-size: 17px; }
  .desktop-footer p { color: var(--theme-muted, #aaa); font-size: 14px; line-height: 1.8; }
  .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px 18px; }
  .footer-links a {
    min-width: 0; color: var(--theme-muted, #aaa); font-size: 14px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .footer-links a:hover, .sitemap-link:hover, .footer-bottom a:hover { color: var(--theme-accent, #4ea1ff); }
  .sitemap-link { display: inline-block; margin-top: 15px; color: var(--theme-accent, #4ea1ff); font-size: 14px; }
  .footer-bottom {
    display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 20px;
    border-top: 1px solid var(--theme-line, #333); color: var(--theme-muted, #aaa); font-size: 13px;
  }
}

.sitemap-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0 70px; }
.sitemap-heading { margin-bottom: 34px; }
.sitemap-heading p { margin-bottom: 8px; color: var(--theme-muted, #aaa); }
.sitemap-heading h1 { font-size: clamp(30px, 5vw, 48px); }
.sitemap-section { margin: 0 0 36px; }
.sitemap-section h2 { margin-bottom: 14px; color: var(--theme-accent, #4ea1ff); }
.sitemap-posts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 24px; }
.sitemap-posts a {
  display: flex; justify-content: space-between; gap: 18px; min-width: 0; padding: 13px 15px;
  background: var(--theme-surface, #181818); border: 1px solid var(--theme-line, #333); border-radius: 10px;
}
.sitemap-posts span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sitemap-posts time { flex: 0 0 auto; color: var(--theme-muted, #aaa); font-size: 13px; }
@media (max-width: 700px) {
  .top { gap: 10px; padding: 0 12px; }
  .logo {
    min-width: 0; max-width: calc(100% - 126px); font-size: 21px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .logo a { display: block; overflow: hidden; text-overflow: ellipsis; }
  .language-switcher { flex: 0 0 auto; gap: 2px; padding: 3px; }
  .language-switcher a {
    display: grid; min-width: 32px; height: 30px; padding: 0 6px;
    place-items: center; font-size: 12px; line-height: 1;
  }
  .language-full { display: none; }
  .language-short { display: inline; }
  .sitemap-main { width: calc(100% - 28px); padding-top: 88px; }
  .sitemap-posts { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .top { padding: 0 9px; }
  .logo { max-width: calc(100% - 114px); font-size: 18px; }
  .language-switcher a { min-width: 29px; padding: 0 5px; }
}
