/* ============================================================
 * 咪咕悦看 GEO 静态门户 - 全站样式
 * 设计基准：移动端 375px，桌面端 1280px
 * 品牌色：#ff411f / #ff8e29
 * ============================================================ */

:root {
  --primary: #ff411f;
  --primary-light: rgba(255, 65, 31, 0.1);
  --accent: #ff8e29;
  --text: #1f1f1f;
  --text-secondary: #666;
  --text-tertiary: #999;
  --bg: #f5f5f5;
  --bg-card: #fff;
  --border: #eee;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.08);
  --font: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --gradient-btn: linear-gradient(90deg, #ff8e29 12%, #ff411f 70%);
  --hero-dark: #8f7358;
  --hero-mid: #a98f77;
  --hero-light: #daccbf;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

button {
  font-family: var(--font);
  cursor: pointer;
}

/* ============================================================
 * 布局容器
 * ============================================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
 * 顶部导航
 * ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  background: var(--bg-card);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

/* 首页透明头部 — hero 背景延伸到 header 底部 */
.site-header.header-transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* 首页滚动后header添加背景色,使用fixed定位保持在顶部 */
.site-header.header-transparent.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

/* 首页初始状态：显示白色logo，隐藏深色logo */
.site-header.header-transparent .logo-mark:not(.logo-mark-white),
.site-header.header-transparent .logo-text:not(.logo-text-white) {
  display: none;
}

/* 首页滚动后header添加背景色 */
.site-header.header-transparent.header-sticky {
  background: var(--bg-card);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

/* 滚动后隐藏白色logo，显示深色logo */
.site-header.header-transparent.header-sticky .logo-mark-white,
.site-header.header-transparent.header-sticky .logo-text-white {
  display: none;
}

.site-header.header-transparent.header-sticky .logo-mark:not(.logo-mark-white),
.site-header.header-transparent.header-sticky .logo-text:not(.logo-text-white) {
  display: block;
}

.site-header.header-transparent.header-sticky .nav a {
  color: var(--text-secondary);
}

.site-header.header-transparent.header-sticky .nav a.active {
  color: var(--primary);
}

.site-header.header-transparent.header-sticky .nav a:hover {
  color: var(--primary);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 80px;
  gap: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.logo img {
  display: block;
  object-fit: contain;
}

.logo .logo-mark {
  width: 19.2px;
  height: 28px;
}

.logo .logo-text {
  width: 82.3px;
  height: 22.1px;
}

.nav {
  display: flex;
  gap: 50px;
  margin-left: 101px;
  overflow: visible;
  scrollbar-width: none;
}

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

.nav a {
  font-size: 20px;
  line-height: 30px;
  white-space: nowrap;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a.active {
  color: var(--primary);
  font-weight: 600;
}

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

/* 透明头部导航 — 白色文字 */
.site-header.header-transparent .nav a {
  color: rgba(255, 255, 255, 0.6);
}

.site-header.header-transparent .nav a.active {
  color: #fff;
  font-weight: 600;
}

.site-header.header-transparent .nav a:hover {
  color: #fff;
}

/* 下载APP 浮窗 */
.download-tab {
  position: relative;
  height: 30px;
}

.download-popover {
  position: absolute;
  left: 50%;
  top: 49px;
  width: 267px;
  height: 302px;
  transform: translate(-50%, -8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.download-tab:hover .download-popover,
.download-tab.is-open .download-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.download-popover-card {
  position: relative;
  width: 267px;
  height: 302px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(42, 25, 12, 0.16);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  overflow: hidden;
  text-align: center;
}

.download-popover-logo {
  position: absolute;
  left: 50%;
  top: 32px;
  width: 158px;
  height: 40px;
  transform: translateX(-50%);
}

.download-popover-logo img {
  position: absolute;
  display: block;
  object-fit: contain;
}

.download-popover-mark {
  left: 0;
  top: 0;
  width: 28px;
  height: 40px;
}

.download-popover-text {
  left: 40px;
  top: 5px;
  width: 118px;
  height: 31px;
}

.download-popover-card p {
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
  color: #666;
  font: 400 14px/24px "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.download-popover-card p:nth-of-type(1) {
  top: 81px;
}

.download-popover-card p:nth-of-type(2) {
  top: 105px;
}

.download-qr-wrap {
  position: absolute;
  left: 63px;
  top: 136px;
  width: 142px;
  height: 142px;
  border: 1px solid #ff8e29;
  background: #fff;
}

.download-qr-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 移动端详情页后退按钮栏（PC端隐藏） */
.detail-back-bar {
  display: none;
}

/* ============================================================
 * 首页 Hero 封面轮播区
 * ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hero-dark) 0%, var(--hero-mid) 44%, var(--hero-light) 67%, var(--bg) 95%);
  transition: background 0.7s ease, padding-top 0.3s ease;
  padding-top: 80px;
  padding-bottom: 12px;
}

.hero.no-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}

.hero.no-banner h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* 首页站点 H1（SEO 用，视觉隐藏：屏幕阅读器与爬虫可读、浏览器不显示——sr-only 标准模式） */
.hero-brand {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hero.no-banner p {
  font-size: 15px;
  opacity: 0.9;
}

/* 7 封面轮播 */
.cover-carousel {
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: 380px;
  margin: 17px auto 0;
}

.cover-carousel-item {
  position: absolute;
  padding: 0;
  border: 0;
  /* 使用clip-path替代border-radius+overflow:hidden，修复iOS Safari右侧白线 */
  clip-path: inset(0 round 12px);
  background: #f0f0f2 url("../img/placeholder.png") center center / 26% auto no-repeat;
  /* clip-path会裁剪box-shadow，改用filter:drop-shadow */
  filter: drop-shadow(0 5px 15px rgba(40, 20, 8, 0.16));
  cursor: pointer;
  /* 使用transform:translate代替left/top做定位，修复iOS Safari边缘白线 */
  transform: translate(var(--x, 0px), var(--y, 0px));
  width: var(--w, 240px);
  height: var(--h, 319px);
  transition: transform 0.7s cubic-bezier(0.22, 0.72, 0.22, 1),
              width 0.7s cubic-bezier(0.22, 0.72, 0.22, 1),
              height 0.7s cubic-bezier(0.22, 0.72, 0.22, 1);
}

.cover-carousel-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cover-carousel-item img.loaded {
  opacity: 1;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px !important;
  height: 40px !important;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.cover-carousel-item.p4 .play-icon {
  opacity: 1;
}

.carousel-novel-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 10;
}

/* 7 个位置：p4 居中最大，两侧递减对称（CSS变量驱动transform动画） */
.cover-carousel-item.p1 { z-index: 1; --x: 0px;    --y: 56px; --w: 160px; --h: 213px; }
.cover-carousel-item.p2 { z-index: 2; --x: 154px;  --y: 43px; --w: 180px; --h: 239px; }
.cover-carousel-item.p3 { z-index: 3; --x: 324px;  --y: 25px; --w: 206px; --h: 273px; }
.cover-carousel-item.p4 { z-index: 7; --x: 520px;  --y: 0px;  --w: 240px; --h: 319px; }
.cover-carousel-item.p5 { z-index: 4; --x: 750px;  --y: 25px; --w: 206px; --h: 273px; }
.cover-carousel-item.p6 { z-index: 2; --x: 946px;  --y: 43px; --w: 180px; --h: 239px; }
.cover-carousel-item.p7 { z-index: 0; --x: 1120px; --y: 56px; --w: 160px; --h: 213px; }

.cover-carousel-title {
  position: absolute;
  left: 0;
  top: 331px;
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 20px;
  line-height: 36px;
  color: #1f1f1f;
}

/* Inline标签（紧跟在标题文字左边，使用inline-block） */
.carousel-inline-badge {
  display: inline-block;
  width: 42px;
  height: 24px;
  margin-left: 10px;
  vertical-align: middle;
  line-height: 0;
  position: relative;
  top: -2px;
}

.carousel-inline-badge img {
  display: block;
  width: 42px !important;
  height: 24px !important;
  max-width: none !important;
}

/* ============================================================
 * 内容区段
 * ============================================================ */

.section {
  margin-bottom: 28px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  margin-bottom: 12px;
}

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.section-head h2 img {
  width: 20px;
  height: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 24px;
}

.section-title img {
  width: 20px;
  height: 20px;
}

.more-link {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.section-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* 分类切换标签 */
.category-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-tabs button {
  border: 0;
  background: none;
  padding: 0;
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.category-tabs button.active {
  color: var(--primary);
}

.category-tabs span {
  width: 1px;
  height: 14px;
  background: #ddd;
}

/* ============================================================
 * 卡片网格
 * ============================================================ */

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

/* ============================================================
 * 短剧/小说卡片
 * ============================================================ */

.drama-card,
.book-card {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  color: inherit;
}

.drama-card:hover,
.book-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.drama-card .cover,
.book-card .cover {
  position: relative;
  height: 274px;
  overflow: hidden;
  background: #f0f0f2 url("../img/placeholder.png") center center / 26% auto no-repeat;
}

.drama-card .cover img,
.book-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.drama-card .cover img.loaded,
.book-card .cover img.loaded {
  opacity: 1;
}

.drama-card .badge,
.book-card .badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

.drama-card .status,
.book-card .status {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
}

.drama-card .status.finished,
.book-card .status.finished {
  background: rgba(0, 0, 0, 0.5);
}

.drama-card .status.ongoing,
.book-card .status.ongoing {
  background: var(--primary);
}

.drama-card .info,
.book-card .info {
  padding: 10px 14px;
}

.drama-card .info h3,
.book-card .info h3 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 20px;
}

.drama-card .tags,
.book-card .tags {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.tag {
  font-size: 14px;
  color: var(--text-tertiary);
  background: none;
  padding: 0;
  border-radius: 0;
}

.book-card .book-meta {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 5px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 17px;
}

.book-card .book-meta .tag {
  font-size: 14px;
  color: var(--text-tertiary);
}

.book-card .book-meta .meta-dot {
  margin: 0 5px;
  color: var(--text-tertiary);
}

.drama-card .info .desc,
.book-card .info .desc {
  font-size: 14px;
  color: var(--text-tertiary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 17px;
  margin-top: 5px;
}

.book-card .author {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 17px;
  margin-top: 5px;
}

/* ============================================================
 * 详情页（参考 web-detail 设计）
 * ============================================================ */

.detail-page {
  background:
    linear-gradient(180deg, transparent 0%, transparent 50%, #f5f5f5 100%),
    linear-gradient(125deg, #fff5f0 0%, #fff5f0 35%, #e8f4fd 60%, #f5f5f5 100%);
}

/* 详情头部 hero */
.show-hero {
  position: relative;
  height: 358px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(245,245,245,0.08) 72%, rgba(245,245,245,0.28) 100%);
}

.show-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  padding-top: 51px;
}

.main-cover {
  width: 214px;
  height: 283px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f0f2 url("../img/placeholder.png") center center / 26% auto no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.main-cover.loaded {
  opacity: 1;
}

.show-info {
  padding: 0 0 0 26px;
}

.show-info h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 40px;
  font-weight: 600;
}

.show-info .meta {
  margin: 0 0 12px;
  color: #999;
  font-size: 20px;
}

.show-info .tags {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.show-info .tags .tag {
  height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  background: rgba(255, 65, 31, 0.1);
  color: #ff411f;
  font-size: 16px;
  line-height: 28px;
  white-space: nowrap;
}

.show-info .cast {
  margin: 0 0 36px;
  font-size: 18px;
  color: var(--text-secondary);
}

.watch {
  display: flex;
  width: 300px;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 27px;
  background: linear-gradient(90deg, #ff8e29, #ff411f);
  color: #fff;
  font: 500 18px/48px var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.watch:hover {
  opacity: 0.9;
  color: #fff;
}

.watch img {
  width: 20px;
  height: 28px;
}

/* 详情内容区 */
.detail-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}

/* 白色面板通用 */
.intro.panel,
.episodes.panel {
  border-radius: 10px;
  background: #fff;
}

.intro.panel h2,
.episodes.panel h2,
.related > h2 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

/* 简介面板 */
.intro.panel {
  padding: 20px 20px 20px;
}

.intro.panel p {
  margin: 12px 0 0;
  color: #666;
  font-size: 18px;
  line-height: 34px;
  text-align: justify;
}

/* 剧集面板 */
.episodes.panel {
  margin-top: 20px;
  padding: 20px;
}

.episode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.episode-total {
  border: 0;
  background: none;
  color: var(--text-tertiary);
  font-size: 14px;
  cursor: pointer;
}

.episode-ranges {
  display: none;
}

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

.episode-btn {
  height: 50px;
  border: 0;
  border-radius: 7px;
  background: #fafafa;
  color: #1f1f1f;
  font: 400 18px/50px var(--font);
  cursor: pointer;
  transition: background 0.2s;
}

.episode-btn:hover {
  background: #f1f1f1;
}

/* 相关推荐 */
.related {
  margin-top: 35px;
}

.related > h2 {
  height: 39px;
}

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

.related-card {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.18s ease;
  display: block;
  color: inherit;
  text-decoration: none;
}

.related-card:hover {
  transform: translateY(-3px);
}

.related-card .poster {
  position: relative;
  height: 274px;
  overflow: hidden;
  background: #f0f0f2 url("../img/placeholder.png") center center / 26% auto no-repeat;
}

.related-card .poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.related-card .poster img.loaded {
  opacity: 1;
}

.related-card .poster em {
  position: absolute;
  left: 7px;
  bottom: 10px;
  color: #fff;
  font-size: 14px;
  font-style: normal;
}

.related-card .copy {
  height: 68px;
  padding: 10px 14px;
}

.related-card .copy h3,
.related-card .copy p {
  overflow: hidden;
  margin: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.related-card .copy h3 {
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
}

.related-card .copy p {
  margin-top: 5px;
  color: #999;
  font-size: 14px;
}

/* ============================================================
 * 筛选区（参考 web-short 设计）
 * ============================================================ */

.filter-area {
  position: relative;
  background:
    linear-gradient(180deg, transparent 0%, transparent 50%, #f5f5f5 100%),
    linear-gradient(125deg, #fff5f0 0%, #fff5f0 35%, #e8f4fd 60%, #f5f5f5 100%);
  padding-bottom: 16px;
}

.filters {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 15px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  min-height: 56px;
  align-items: flex-start;
  gap: 0;
  row-gap: 4px;
}

/* 折叠状态：限制最多 3 行 */
.filter-row.collapsed {
  max-height: 135px;
  overflow: hidden;
}

.filter-row > button,
.filter-row .options button {
  height: 41px;
  min-width: 72px;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font: 500 18px/41px var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}

.filter-row > button:first-child {
  flex: 0 0 102px;
  width: 102px;
  padding: 0;
}

.filter-row button.selected {
  color: var(--primary);
  font-weight: 600;
  background: url("../img/filter-selected.svg") center / 100% 100% no-repeat;
}

.filter-row .options {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: flex-start;
}

.filter-row .options .line-break {
  flex-basis: 100%;
  width: 0;
  height: 0;
}

.filter-row .options button {
  min-width: 72px;
}

.filter-row button:hover {
  color: var(--primary);
}

/* 筛选行包裹容器（toggle 定位基准） */
.filter-row-wrap {
  position: relative;
}

/* 展开/收起按钮 — 圆形，中心白底向外渐变透明 + 箭头 */
.filter-toggle {
  display: none;
  position: absolute;
  bottom: 0;
  right: 16px;
  width: 41px;
  height: 41px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 30%, rgba(255,255,255,0) 70%);
  cursor: pointer;
  z-index: 10;
  align-items: center;
  justify-content: center;
}

.filter-toggle::after {
  content: '▾';
  font-size: 16px;
  line-height: 1;
  color: var(--text-secondary);
}

.filter-toggle.expanded::after {
  content: '▴';
}

.filter-toggle.visible {
  display: flex;
}

/* 移动端筛选全屏弹层 */
.filter-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
}

.filter-modal-overlay.open {
  display: block;
}

.filter-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 70%;
  background: #fff;
  border-radius: 0 0 12px 12px;
  z-index: 201;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.filter-modal.open {
  display: flex;
}

.filter-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.filter-modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.filter-modal-close {
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  font-size: 20px;
  line-height: 28px;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0;
}

.filter-modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px;
}

.filter-modal-body .filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  row-gap: 8px;
  max-height: none;
  overflow: visible;
  padding-left: 0;
  min-height: 0;
  height: auto;
  white-space: normal;
  scrollbar-width: auto;
}

.filter-modal-body .filter-row::-webkit-scrollbar {
  display: block;
}

.filter-modal-body .filter-row .options {
  flex-wrap: wrap;
}

.filter-modal-body .filter-row > button,
.filter-modal-body .filter-row .options button {
  flex-shrink: 0;
  white-space: nowrap;
}

/* 兼容旧筛选 tabs（短剧列表页） */
.filter-bar {
  margin-bottom: 20px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.filter-panel {
  display: none;
}

.filter-panel.active {
  display: block;
}

/* 网文子分类筛选行（复用 .filter-row 样式，全部展开） */
#novelFilterRow {
  display: none;
}

.novel-filter-sub {
  /* 无额外样式，完全继承 .filter-row */
}

.novel-subpanel {
  display: none;
}

.novel-subpanel.active {
  display: block;
}

.channel-block {
  margin-bottom: 20px;
}

.channel-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}

/* ============================================================
 * 公司简介
 * ============================================================ */

.company-intro {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
}

.company-intro-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.company-intro-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-align: justify;
}

.company-intro-body p:last-child {
  margin-bottom: 0;
}

/* 品牌简介小标题（GEO 品牌区块复用 company-intro 结构） */
.company-intro-body h3 {
  margin: 22px 0 8px;
  font-size: 17px;
  font-weight: 700;
}

/* ============================================================
 * 活动入口卡片
 * ============================================================ */

.activity-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
  padding: 8px 16px;
  background: linear-gradient(135deg, #fff3e6, #ffd9b8);
  border: 1px solid #ffc98f;
  border-radius: var(--radius-lg);
  text-decoration: none;
}

.activity-tag {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff5f2e, #ff9a3c);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.activity-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.activity-title {
  font-size: 14px;
  font-weight: 700;
  color: #e84c1b;
  line-height: 1.25;
}

.activity-sub {
  font-size: 11px;
  color: #b25e2a;
  line-height: 1.25;
}

.activity-arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: #e84c1b;
  line-height: 1;
}

/* ============================================================
 * PC端详情页下载全屏浮层
 * ============================================================ */

.download-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.download-fullscreen-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.download-fullscreen-card {
  position: relative;
  width: 360px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
}

.download-fullscreen-overlay.open .download-fullscreen-card {
  transform: scale(1) translateY(0);
}

.download-fullscreen-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  color: #666;
  font-size: 18px;
  line-height: 32px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}

.download-fullscreen-close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #333;
}

.download-fullscreen-content {
  padding: 48px 32px 40px;
  text-align: center;
}

.download-fullscreen-logo {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.download-fullscreen-logo img:first-child {
  width: 32px;
  height: 46px;
}

.download-fullscreen-logo img:last-child {
  width: 110px;
  height: 30px;
}

.download-fullscreen-content h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  color: #1f1f1f;
}

.download-fullscreen-content > p {
  margin: 0 0 24px;
  font-size: 14px;
  color: #666;
}

.download-fullscreen-qr {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border: 2px solid #ff8e29;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.download-fullscreen-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.download-hint {
  margin: 0;
  font-size: 13px;
  color: #999;
}

/* ============================================================
 * 下载页
 * ============================================================ */

.download-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  margin: 16px 0 28px;
}

.download-info h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-desc {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 14px;
}

.download-stats {
  display: flex;
  gap: 12px;
  font-size: 13px;
}

.download-stats span {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
}

.download-qr {
  text-align: center;
  flex-shrink: 0;
}

.download-qr img {
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
}

.download-qr p {
  font-size: 13px;
  margin-top: 8px;
  opacity: 0.9;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.feature-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.feature-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.download-links {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}

.download-btn {
  display: inline-block;
  padding: 10px 32px;
  background: var(--gradient-btn);
  color: #fff;
  border-radius: 24px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.download-btn:hover {
  opacity: 0.9;
  color: #fff;
}

.download-note {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ============================================================
 * 底部悬浮下载按钮（移动端）
 * ============================================================ */

.download-float {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(245, 245, 245, 0), var(--bg) 40%);
  pointer-events: none;
  z-index: 90;
}

.download-float a {
  display: flex;
  width: 283px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 24px;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  pointer-events: auto;
  box-shadow: 0 4px 12px rgba(255, 65, 31, 0.2);
}

.download-float a img {
  width: 20px;
  height: 28px;
}

/* ============================================================
 * FAQ
 * ============================================================ */

.faq-section {
  margin-bottom: 28px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--bg-card);
  overflow: hidden;
}

.faq-item summary {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 18px;
  color: var(--text-tertiary);
  font-weight: 300;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 16px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
 * 页脚
 * ============================================================ */

.site-footer {
  margin-top: 24px;
  padding: 22px 0 12px;
  background: #fff;
  text-align: center;
  flex-shrink: 0;
}

main {
  flex: 1;
}

.detail-page {
  flex: 1;
}

.site-footer p {
  margin: 0 0 13px;
  font-size: 14px;
  color: #111;
}

.site-footer p:last-child {
  color: #999;
}

/* ============================================================
 * 响应式：桌面端
 * ============================================================ */

@media (min-width: 768px) {
  .drama-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .episode-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .download-float {
    display: none;
  }

  .activity-card {
    display: none;
  }

  .feature-list {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (min-width: 1024px) {
  .drama-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }

  .section-head h2,
  .section-title {
    font-size: 20px;
  }
}

/* ============================================================
 * 响应式：小屏移动端
 * ============================================================ */

@media (max-width: 374px) {
  .drama-grid {
    gap: 6px;
  }

  .drama-card .info,
  .book-card .info {
    padding: 8px 10px;
  }

  .drama-card .info h3,
  .book-card .info h3 {
    font-size: 14px;
  }
}

/* ============================================================
 * 移动端样式（max-width: 767px）
 * 参考 home.css / styles.css / detail.css
 * ============================================================ */

@media (max-width: 767px) {
  /* ---- Header ---- */
  .site-header {
    height: auto;
    padding: 0;
  }

  .site-header .container {
    height: 44px;
    padding: 0 16px;
  }

  .site-header.header-transparent {
    position: absolute;
    background: transparent;
    transition: background 0.3s ease;
  }

  /* 移动端详情页header（detail-back-bar）：保持透明 */
  .detail-back-bar {
    background: transparent;
  }

  .logo .logo-mark {
    width: 16.43px;
    height: 24.09px;
  }

  .logo .logo-text {
    width: 70.46px;
    height: 19.03px;
  }

  .nav {
    margin-left: auto;
    gap: 19px;
    height: 44px;
    align-items: center;
    overflow-x: auto;
  }

  .nav a {
    font-size: 16px;
    line-height: 22px;
  }

  /* 移动端隐藏下载APP按钮及浮窗（hover 不可用） */
  .download-tab {
    display: none !important;
  }

  /* ---- Hero 轮播区 ---- */
  .hero {
    height: 300px;
    padding-top: 44px;
  }

  .cover-carousel {
    height: 210px;
    margin-top: 6px;
  }

  /* 5 封面移动端布局 — JS通过CSS变量设置像素值，驱动transform动画 */
  .cover-carousel-item.p1 { z-index: 1; }
  .cover-carousel-item.p2 { z-index: 2; }
  .cover-carousel-item.p3 { z-index: 5; }
  .cover-carousel-item.p4 { z-index: 2; }
  .cover-carousel-item.p5 { z-index: 1; }
  .cover-carousel-item.p6 { display: none; }
  .cover-carousel-item.p7 { display: none; }

  .cover-carousel-title {
    top: 220px;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
    max-width: 45%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 移动端类型标签 */
  .carousel-type-badge img {
    width: 32px;
    height: 20px;
  }

  /* 移动端inline标签 */
  .carousel-inline-badge {
    width: 32px;
    height: 20px;
    top: -1px;
  }

  .carousel-inline-badge img {
    width: 32px !important;
    height: 20px !important;
    max-width: none !important;
  }

  .play-icon {
    width: 28px !important;
    height: 28px !important;
  }

  .cover-carousel-item.p3 .play-icon {
    width: 36px !important;
    height: 36px !important;
    opacity: 1;
  }

  .cover-carousel-item.p1 .play-icon,
  .cover-carousel-item.p2 .play-icon,
  .cover-carousel-item.p4 .play-icon,
  .cover-carousel-item.p5 .play-icon {
    opacity: 1;
  }

  /* 移动端小说标签尺寸 */
  .carousel-novel-badge {
    font-size: 10px;
    padding: 1px 4px;
  }

  .cover-carousel-item.p3 .carousel-novel-badge {
    font-size: 12px;
    padding: 2px 6px;
  }

  /* ---- 内容区 ---- */
  .container {
    padding: 0 12px;
  }

  .section {
    margin-bottom: 16px;
  }

  .section-head {
    height: 36px;
    margin-bottom: 8px;
  }

  .section-head h2 {
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
  }

  .section-head h2 img {
    width: 20px;
    height: 20px;
  }

  .more-link {
    font-size: 13px;
  }

  /* ---- 卡片网格 ---- */
  .drama-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .drama-card .cover,
  .book-card .cover {
    height: 260px;
  }

  .drama-card .badge,
  .book-card .badge {
    font-size: 12px;
    top: 6px;
    right: 6px;
    line-height: 26px;
  }

  .drama-card .info,
  .book-card .info {
    padding: 8px 12px;
  }

  .drama-card .info h3,
  .book-card .info h3 {
    font-size: 14px;
    line-height: 17px;
    font-weight: 600;
  }

  .drama-card .info .desc,
  .book-card .info .desc {
    font-size: 12px;
    line-height: 17px;
  }

  .book-card .author,
  .book-card .book-meta {
    font-size: 12px;
    line-height: 17px;
  }

  .book-card .book-meta .tag {
    font-size: 12px;
  }

  .tag {
    font-size: 12px;
  }

  /* ---- 筛选区 ---- */
  .filter-area {
    padding-bottom: 8px;
  }

  .filters {
    padding-top: 8px;
  }

  .filter-row {
    height: 38px;
    min-height: 38px;
    padding-left: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: center;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .filter-row > button,
  .filter-row .options button {
    flex-shrink: 0;
  }

  .filter-row .options {
    flex-wrap: nowrap;
  }

  .filter-row.collapsed {
    max-height: 38px;
    overflow: hidden;
  }

  .filter-row > button,
  .filter-row .options button {
    height: 28px;
    min-width: 46px;
    padding: 0 12px;
    font: 400 13px/28px var(--font);
  }

  .filter-row > button:first-child {
    flex: 0 0 72px;
    width: 72px;
    padding: 0;
    margin-right: 2px;
  }

  /* 移动端 toggle：圆形渐变 + 箭头 */
  .filter-toggle {
    width: 28px;
    height: 28px;
    right: 8px;
  }

  .filter-toggle::after {
    font-size: 14px;
  }

  /* ---- 详情页 ---- */
  .detail-page {
    background: #f5f5f5;
  }

  /* 详情页隐藏常规 header，显示后退按钮栏 */
  .detail-body .site-header {
    display: none;
  }

  .detail-back-bar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    z-index: 100;
    background: transparent;
  }

  .detail-back-btn {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 4px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .detail-back-btn img {
    display: block;
    width: 16px;
    height: 16px;
  }

  .show-hero {
    height: auto;
    background: radial-gradient(circle at 85% -10%, rgba(117,211,247,.36), transparent 48%),
                radial-gradient(circle at 8% 10%, rgba(255,191,171,.38), transparent 50%),
                linear-gradient(180deg, #f6f2ef 0, #f5f5f5 100%);
  }

  .show-inner {
    padding: 56px 12px 16px;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
  }

  .main-cover {
    width: 94px;
    height: 124px;
    border-radius: 6px;
  }

  .show-info {
    padding: 0;
    flex: 1;
    min-width: 0;
  }

  .show-info h1 {
    font-size: 19px;
    line-height: 26px;
    font-weight: 500;
    margin-bottom: 4px;
  }

  .show-info .meta {
    font-size: 12px;
    line-height: 17px;
    margin-bottom: 5px;
    color: #666;
  }

  .show-info .tags {
    gap: 4px;
    margin-bottom: 4px;
  }

  .show-info .tags .tag {
    height: 17px;
    padding: 0 5px;
    font-size: 10px;
    line-height: 17px;
    border-radius: 3px;
  }

  .show-info .cast {
    font-size: 12px;
    line-height: 17px;
    margin-bottom: 0;
    color: #666;
  }

  .watch {
    display: none;
  }

  /* 详情内容区 */
  .detail-content {
    padding: 0;
  }

  .intro.panel,
  .episodes.panel {
    margin: 0 12px 10px;
    border-radius: 8px;
  }

  .intro.panel {
    padding: 10px 12px 12px;
  }

  .intro.panel h2,
  .episodes.panel h2,
  .related > h2 {
    font-size: 17px;
    line-height: 24px;
    font-weight: 500;
  }

  .intro.panel p {
    font-size: 13px;
    line-height: 22px;
    margin-top: 3px;
  }

  .episodes.panel {
    padding: 10px 12px 12px;
  }

  .episode-head h2 {
    font-size: 17px;
    line-height: 24px;
    font-weight: 500;
  }

  .episode-total {
    font-size: 12px;
  }

  .episode-ranges {
    display: flex;
    gap: 24px;
    margin-top: 5px;
  }

  .episode-ranges button {
    padding: 0;
    border: 0;
    background: none;
    color: rgba(102, 102, 102, 0.55);
    font-size: 14px;
    cursor: pointer;
  }

  .episode-ranges button.active {
    color: #666;
  }

  /* 剧集列表：横向滚动 */
  .episode-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .episode-grid::-webkit-scrollbar {
    display: none;
  }

  .episode-btn {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 50px;
    text-align: center;
    white-space: nowrap;
  }

  .episode-btn .ep-prefix,
  .episode-btn .ep-suffix {
    display: none;
  }

  /* 相关推荐 */
  .related {
    margin-top: 6px;
    padding: 0 10px;
  }

  .related > h2 {
    height: 28px;
    text-align: center;
    color: #999;
    font-size: 15px;
    font-weight: 400;
    line-height: 28px;
  }

  .related > h2::before,
  .related > h2::after {
    content: '——';
    margin: 0 8px;
  }

  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .related-card .poster {
    height: 260px;
  }

  .related-card .poster em {
    font-size: 12px;
    left: 6px;
    bottom: 9px;
  }

  .related-card .copy {
    height: 58px;
    padding: 8px 12px 6px;
  }

  .related-card .copy h3 {
    font-size: 14px;
    line-height: 17px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .related-card .copy p {
    font-size: 12px;
    line-height: 17px;
    margin-top: 4px;
  }

  /* ---- 底部悬浮下载按钮 ---- */
  .download-float {
    height: 76px;
  }

  .download-float a {
    transform: translateY(-8px);
  }

  /* 移动端隐藏PC端下载全屏浮层 */
  .download-fullscreen-overlay {
    display: none !important;
  }

  .download-float a {
    width: 283px;
    height: 44px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 24px;
    gap: 9px;
  }

  .download-float a img {
    width: 20px;
    height: 29px;
  }

  /* ---- 公司简介 ---- */
  .company-intro {
    margin: 16px 0;
    padding: 16px;
  }

  .company-intro-title {
    font-size: 16px;
  }

  .company-intro-body p {
    font-size: 13px;
  }

  /* ---- 页脚 ---- */
  .site-footer {
    height: auto;
    padding: 16px 12px 80px;
    margin-top: 16px;
  }

  .site-footer p {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 8px;
    word-break: break-all;
    overflow-wrap: break-word;
  }

  .footer-company,
  .footer-report,
  .footer-minor {
    display: block;
  }
}

/* ============================================================
 * 短剧列表页 — 三级联动筛选（主题/角色/情节）
 * ============================================================ */

.filter-groups {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 15px;
}

.filter-group {
  display: flex;
  min-height: 56px;
  align-items: flex-start;
  gap: 0;
  padding: 0;
  border-bottom: none;
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-group-label {
  flex: 0 0 102px;
  width: 102px;
  padding: 0;
  font-size: 18px;
  font-weight: 400;
  color: #666;
  line-height: 41px;
  margin-right: 0;
  text-align: center;
  cursor: pointer;
  border: 0;
  background: none;
  transition: color 0.2s, font-weight 0.2s;
  white-space: nowrap;
}

.filter-group-label.active {
  color: #ff411f;
  font-weight: 600;
  background: url("../img/filter-selected.svg") center/100% 100% no-repeat;
}

.filter-group-options {
  display: block;
  flex: 1;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0;
  overflow: hidden;
  position: relative;
  min-height: 41px;
  max-height: 41px;
  padding-right: 60px;
}

/* PC端：展开状态允许换行 */
.filter-group-options.expanded {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  max-height: none;
  padding-right: 60px;
}

.filter-tag {
  height: 41px;
  min-width: 72px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #666;
  font-size: 18px;
  font-weight: 400;
  line-height: 41px;
  cursor: pointer;
  transition: color 0.2s, font-weight 0.2s;
  white-space: nowrap;
}

.filter-tag:hover {
  color: var(--primary);
  border-color: transparent;
}

.filter-tag.active {
  color: #ff411f;
  font-weight: 600;
  background: url("../img/filter-selected.svg") center/100% 100% no-repeat;
  border-color: transparent;
}

/* 展开按钮 — PC端默认隐藏，超出时显示 */
.filter-expand-btn {
  display: none;
  position: absolute;
  right: 0;
  top: 0;
  height: 41px;
  padding: 0 16px;
  border: 0;
  background: none;
  color: #666;
  font-size: 18px;
  line-height: 41px;
  cursor: pointer;
  z-index: 5;
  transition: color 0.2s;
}

.filter-expand-btn:hover {
  color: var(--primary);
}

.expand-arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: -5px;
  margin-top: -2px;
  vertical-align: middle;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.expand-arrow-down {
  background-image: url('../img/arrow-down.svg');
}

.expand-arrow-up {
  background-image: url('../img/arrow-up.svg');
}

.filter-group.expandable .filter-expand-btn {
  display: block;
}

/* 展开后按钮变为相对定位 */
.filter-group-options.expanded + .filter-expand-btn {
  position: relative;
  right: auto;
  top: auto;
  background: none;
  margin-top: 0;
  margin-left: 0;
  font-size: 18px;
  line-height: 41px;
  width: auto;
}

/* 已选标签栏 */
.filter-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
}

/* 短剧列表页筛选：未命中的卡片隐藏（构建时渲染，前端显隐） */
.drama-card.hide {
  display: none;
}

.filter-empty img {
  width: 200px;
  height: auto;
  margin: 0 auto;
}

/* 移动端筛选样式 */
@media (max-width: 767px) {
  .filter-groups {
    padding-top: 12px;
  }

  .filter-group {
    height: 38px;
    min-height: 38px;
    padding: 0 0 0 12px;
    flex-wrap: nowrap;
    align-items: flex-start;
    border-bottom: none;
  }

  .filter-group-label {
    flex: 0 0 72px;
    width: 72px;
    padding: 0;
    margin-right: 2px;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    line-height: 28px;
    height: 28px;
    text-align: center;
    background: none;
  }

  .filter-group-label.active {
    color: #ff411f;
    font-weight: 600;
    background: url("../img/filter-selected-m.svg") center/100% 100% no-repeat;
  }

  .filter-group-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .filter-group-options::-webkit-scrollbar {
    display: none;
  }

  .filter-tag {
    flex: none;
    height: 28px;
    min-width: 46px;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #666;
    font-size: 13px;
    font-weight: 400;
    line-height: 28px;
  }

  .filter-tag.active {
    color: #ff411f;
    font-weight: 600;
    background: url("../img/filter-selected-m.svg") center/100% 100% no-repeat;
    border-color: transparent;
  }

  /* 超过30个标签时显示展开按钮 */
  .filter-group.expandable .filter-group-options {
    padding-right: 40px;
  }

  .filter-expand-btn {
    display: none;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 30%, rgba(255,255,255,0) 70%);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    z-index: 5;
  }

  .filter-group.expandable .filter-expand-btn {
    display: block;
  }

  .filter-empty img {
    width: 160px;
  }
}

