/* ==========================================================================
   剧情站 - shuoju 模板样式
   深色主题 · 响应式 · 动感卡片
   ========================================================================== */

/* ========== 基础变量 ========== */
:root {
  --bg-primary: #0f1116;
  --bg-elevated: #16181f;
  --bg-card: #1c1f28;
  --bg-card-hover: #232732;
  --bg-input: #1a1d25;
  --text-primary: #f2f3f5;
  --text-secondary: #a8adb8;
  --text-muted: #6b7280;
  --accent: #e50914;
  --accent-glow: rgba(229, 9, 20, 0.35);
  --accent-soft: rgba(229, 9, 20, 0.12);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
          'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.45);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 800px 600px at 15% -10%, rgba(229, 9, 20, 0.06), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 0%, rgba(80, 100, 180, 0.05), transparent 60%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   顶栏
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 22, 0.6);      /* ★ 80% 不透明，能透出后面内容 */
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 75px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 73px;
  width: auto;
  max-width: 300px;
  display: block;
}

.search-form {
  flex: 0 1 400px;
  margin-left: auto;
  display: flex;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  transition: var(--transition);
  height: 46px;
}

.search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-input {
  flex: 1;
  height: 100%;
  padding: 0 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  min-width: 0;
}

.search-input::placeholder { color: var(--text-muted); }

.search-btn {
  height: 100%;
  padding: 0 24px;
  background: linear-gradient(135deg, #ff2a35, #c50912);
  border: none;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.search-btn:hover { background: linear-gradient(135deg, #ff3b46, #e50914); }

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}

.topnav a:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.topnav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ==========================================================================
   通用区块
   ========================================================================== */
.section { padding: 48px 0; }

#detail { padding-top: 8px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, #ff2a35, #b0060e);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--accent-glow);
}

.section-count { color: var(--text-muted); font-size: 0.82rem; }

/* ==========================================================================
   卡片网格（首页）
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease,
              transform 0.5s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  will-change: transform, opacity;
}

.card.enter {
  opacity: 1;
  transform: translateY(0);
}

.card.enter:hover {
  transform: translateY(-12px) scale(1.035);
  border-color: rgba(229, 9, 20, 0.55);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(229, 9, 20, 0.3),
              0 0 60px rgba(229, 9, 20, 0.18);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.card.enter:active {
  transform: translateY(-4px) scale(1.01);
  transition: transform 0.12s ease;
}

.card-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #1c1f28, #232732);
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card.enter:hover .card-poster img { transform: scale(1.08); }

.card-ep {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 3px 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.card-body { padding: 14px 14px 16px; }

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.card-cast {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.card-cast .cast-label { color: var(--text-muted); }

/* ==========================================================================
   内容页大模块
   ========================================================================== */
.hero-module {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 40px;
  padding: 24px;
  align-items: stretch;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.08) 0%, rgba(80, 100, 180, 0.06) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-module::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.15), transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.hero-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(140deg, #4a1e18, #6a2f24);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.7));
  pointer-events: none;
}

.hero-poster .hero-ep {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: rgba(229, 9, 20, 0.95);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
  min-width: 76px;
  letter-spacing: 0.3px;
  z-index: 1;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 2px 0;
}

.hero-head { flex-shrink: 0; }

.hero-title {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.hero-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-line span::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

.hero-meta-line span:first-child::before { display: none; }

.hero-synopsis {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding-top: 20px;
  min-height: 0;
}

.hero-synopsis p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.95;
}

.cast-row {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}

.cast-row .cast-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.cast-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ==========================================================================
   内容页下半区
   ========================================================================== */
.detail-bottom {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

.content-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.content-block:last-child { margin-bottom: 0; }

.block-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 15px;
  letter-spacing: -0.3px;
}

.block-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, #ff2a35, #b0060e);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
}

.block-content {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.block-content p { margin-bottom: 14px; }
.block-content p:last-child { margin-bottom: 0; }

/* ==========================================================================
   分集导航（对接帝国CMS [!--title.select--]）
   ========================================================================== */
.episode-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px dashed var(--border);
  list-style: none;
  padding-left: 0;
}

/* ★ 清掉 ul/li 默认样式：帝国CMS的 title.select 经常输出 li 结构 */
.episode-nav ul,
.episode-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: contents;   /* 让 ul 不占位，里面的 a 直接参与 flex */
}

.episode-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: contents;   /* 让 li 不占位 */
}

/* ★ 每个数字方块 */
.episode-nav a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

.episode-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* 当前集高亮 */
.episode-nav a.cur,
.episode-nav a.active,
.episode-nav a.on,
.episode-nav a.current {
  background: linear-gradient(135deg, #ff2a35, #c50912);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px var(--accent-glow);
  transform: translateY(-2px);
}

.ep-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ep-subtitle::before {
  content: '●';
  color: var(--accent);
  font-size: 0.65rem;
}

/* 正文内的图片、段落美化 */
.block-content img {
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

/* ==========================================================================
   相关推荐（内容页右侧）
   ========================================================================== */
.sidebar-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 91px;
}

.sidebar-block .block-title { margin-bottom: 16px; }

.related-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.related-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  align-items: center;
}

.related-item:hover { background: var(--bg-card-hover); }

.related-thumb {
  width: 54px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(140deg, #262644, #3e3e70);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-info { flex: 1; min-width: 0; }

.related-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   面包屑
   ========================================================================== */
.breadcrumb {
  padding: 12px 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-secondary); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-muted); }
.breadcrumb .current { color: var(--text-primary); }

/* ==========================================================================
   页脚
   ========================================================================== */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 38px 0 24px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
  width: 100%;
}

/* ==========================================================================
   滚动淡入动画
   ========================================================================== */
.fade-section {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-section.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-module { grid-template-columns: 250px 1fr; gap: 36px; padding: 22px; }
  .detail-bottom { grid-template-columns: 1fr 300px; gap: 22px; }
}

@media (max-width: 768px) {
  .topbar-inner { min-height: 64px; gap: 12px; }
  .brand img { height: 62px; }
  .search-form { flex: 1 1 auto; max-width: 300px; height: 42px; }
  .search-input { padding: 0 14px; font-size: 0.85rem; }
  .search-btn { padding: 0 16px; font-size: 0.85rem; }
  .topnav { gap: 0; }
  .topnav a { padding: 8px 10px; font-size: 0.85rem; }

  .section { padding: 36px 0; }
  #detail { padding-top: 6px; }
  .section-title { font-size: 1.2rem; }
  .breadcrumb { padding: 8px 0 12px; }
  .sidebar-block { top: 80px; }

  .hero-module {
    grid-template-columns: 160px 1fr;
    gap: 16px;
    padding: 18px;
    align-items: start;
  }
  .hero-content { min-height: 0; }
  .hero-title { font-size: 1.25rem; margin-bottom: 10px; }
  .hero-meta-line { font-size: 0.78rem; gap: 6px 12px; }
  .hero-synopsis { flex: 0 0 auto; padding-top: 14px; }
  .hero-synopsis p { font-size: 0.85rem; line-height: 1.8; }
  .cast-row { padding-top: 14px; align-items: flex-start; flex-direction: column; gap: 6px; }
  .cast-names { font-size: 0.92rem; }

  .card-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .card-body { padding: 10px; }
  .card-title { font-size: 0.85rem; margin-bottom: 5px; }
  .card-cast { font-size: 0.72rem; }
  .card-ep { font-size: 0.62rem; padding: 2px 8px; }

  .detail-bottom { grid-template-columns: 1fr; gap: 18px; margin-top: 22px; }
  .sidebar-block { position: static; }
  .content-block, .sidebar-block { padding: 20px; }

  .episode-nav a { width: 42px; height: 42px; font-size: 0.9rem; }
}

@media (max-width: 560px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px; padding: 6px 0; min-height: auto; }
  .brand img { height: 46px; }
  .topnav { order: 2; }
  .topnav a { padding: 6px 10px; font-size: 0.82rem; }
  .search-form { flex-basis: 100%; max-width: 100%; order: 3; margin: 4px 0 0; height: 42px; }
  .search-input { padding: 0 16px; font-size: 0.85rem; }
  .search-btn { padding: 0 16px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }

  .hero-module { grid-template-columns: 120px 1fr; padding: 14px; gap: 12px; }
  .hero-title { font-size: 1.05rem; }
  .hero-meta-line { font-size: 0.72rem; }
  .hero-synopsis { padding-top: 10px; }
  .hero-synopsis p { font-size: 0.8rem; }
  .cast-names { font-size: 0.85rem; }

  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .episode-nav a { width: 38px; height: 38px; font-size: 0.85rem; }
}
/* ==========================================================================
   主演 tags 链接
   ========================================================================== */
.cast-names a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

.cast-names a:hover {
  color: var(--accent);
}

.cast-names .cast-sep {
  display: inline-block;
  padding: 0 10px;
  color: var(--text-muted);
  font-weight: 400;
  user-select: none;
}

/* ==========================================================================
   Tags 页分页
   ========================================================================== */
.showpage,
#showpage {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 40px;
  font-size: 0.88rem;
}

.showpage a,
.showpage b,
.showpage span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
}

.showpage a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-card-hover);
}

.showpage b {
  background: linear-gradient(135deg, #ff2a35, #c50912);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

/* 兼容帝国CMS常见分页 class */
.listpage a,
.listpage b,
.pageinfo a,
.pageinfo b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  margin: 0 3px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 0.88rem;
}

.listpage a:hover,
.pageinfo a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-card-hover);
}

.listpage b,
.pageinfo b {
  background: linear-gradient(135deg, #ff2a35, #c50912);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}
/* ==========================================================================
   Tags 页分页
   ========================================================================== */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 42px;
}

.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.pager a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.pager .pg-current {
  background: linear-gradient(135deg, #ff2a35, #c50912);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px var(--accent-glow);
}

.pager .pg-dots {
  border: none;
  background: transparent;
  color: var(--text-muted);
  min-width: auto;
  padding: 0 4px;
}

.pager .pg-prev,
.pager .pg-next {
  padding: 0 18px;
}
/* ==========================================================================
   栏目列表页分页（帝国CMS [!--show.listpage--]）
   ========================================================================== */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 42px;
}

.pager a,
.pager b,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.pager a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.pager b,
.pager .current {
  background: linear-gradient(135deg, #ff2a35, #c50912);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px var(--accent-glow);
}

/* 帝国CMS自带分页的常见class兼容 */
.pager .pageinfo,
.pager .listpage {
  display: contents;
}

.pager .disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* ==========================================================================
   搜索结果页
   ========================================================================== */

/* 搜索结果信息栏 */
.search-info {
  padding: 4px 0 28px;
  margin-bottom: 4px;
}

.search-info-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.search-info-title .kw {
  color: var(--accent);
  font-weight: 800;
  position: relative;
  padding: 0 2px;
}

/* 关键词下方加下划线装饰 */
.search-info-title .kw::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.search-info-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.search-info-count strong {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0 3px;
}

/* 无结果状态 */
.search-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.search-empty svg {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  opacity: 0.25;
  display: block;
}

.search-empty p {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.7;
}

.search-empty p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.search-empty .hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* 搜索页分页（复用 .pager） */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 42px;
}

.pager a,
.pager b,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.pager a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.pager b,
.pager .current {
  background: linear-gradient(135deg, #ff2a35, #c50912);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px var(--accent-glow);
}

/* 手机端 */
@media (max-width: 768px) {
  .search-info { padding: 2px 0 20px; }
  .search-info-title { font-size: 1.2rem; }
  .search-info-count { font-size: 0.85rem; }
  .search-empty { padding: 60px 20px; }
  .search-empty svg { width: 44px; height: 44px; margin-bottom: 16px; }
}