/* ====================================================================
   nanciyua.com - 纯手写极简 Vanilla CSS 全端样式引擎 (重构版)
   规范：纯原生标准、零外部境外字体/CDN、移动端 390x844 像素级适配
   ==================================================================== */

:root {
  --bg-base: #0a0c10;
  --bg-card: #131722;
  --bg-card-hover: #1b2130;
  --bg-elevated: #181d2a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(168, 85, 247, 0.45);
  
  --primary: #a855f7;
  --primary-hover: #c084fc;
  --primary-glow: rgba(168, 85, 247, 0.3);
  --accent: #38bdf8;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max-w: 1200px;
}

/* 基础重置与全端防左右晃动 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-base);
  padding-bottom: env(safe-area-inset-bottom);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* 全站统一 1200px 黄金版心（消除页面切换跳动与边缘错位） */
.container, .header-inner, .detail-container, .footer-inner {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

.main-content {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ====================================================================
   1. 头部导航 (Header) - 吸顶半透明磨砂与全端适配
   ==================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition-normal);
  width: 100%;
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 48px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.logo-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 14px var(--primary-glow);
  flex-shrink: 0;
}

.logo-text {
  font-size: 19px;
  font-weight: 700;
  background: linear-gradient(90deg, #fff, #e2e8f0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* PC 端主导航 */
.nav-links-pc {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 15.5px;
  font-weight: 600;
  color: #94a3b8;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* PC 端搜索框 - 锁定 240px 舒展饱满 */
.search-form-pc {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-pc {
  width: 240px;
  height: 36px;
  padding: 0 36px 0 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input-pc:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.search-btn-pc {
  position: absolute;
  right: 10px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.search-btn-pc:hover {
  color: var(--primary);
}

/* 移动端专属控制按键 (PC端默认隐藏) */
.mobile-search-toggle,
.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-search-toggle:active,
.mobile-menu-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

/* 移动端展开式搜索条 */
.mobile-search-bar {
  display: none;
  width: 100%;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
}

.mobile-search-bar.active {
  display: block;
  max-height: 56px;
  opacity: 1;
  padding: 8px 16px;
}

.mobile-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.mobile-search-input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.mobile-search-input:focus {
  border-color: var(--primary);
}

.mobile-search-submit,
.mobile-search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--text-muted);
}

.mobile-search-submit {
  color: var(--primary);
}

/* ====================================================================
   2. 移动端抽屉菜单 (Drawer)
   【铁律】：PC 视口下必须强制 display: none !important 严禁裸露！
   ==================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 80vw;
  height: 100%;
  background: var(--bg-card);
  z-index: 1999;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
}

.drawer-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.drawer-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-nav-item {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.98rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.drawer-nav-item:hover,
.drawer-nav-item.active {
  background: rgba(168, 85, 247, 0.15);
  color: var(--primary-hover);
}

.drawer-footer-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* ====================================================================
   3. 页面标题与结构化排版
   ==================================================================== */
.main-container {
  padding-top: 24px;
  padding-bottom: 48px;
}

.page-main-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-accent-bar {
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.section-title-wrap,
.category-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 15px;
}

.category-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 彻底隐匿前台分类自嗨描述 */
.category-desc {
  display: none !important;
}

/* 子标签筛选行 - 底部预留 16px 呼吸空行留白 */
.sub-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* ====================================================================
   4. Hero Slider 轮播模块 (16:9 比例)
   ==================================================================== */
.hero-slider-section {
  margin-bottom: 30px;
}

.slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 220px;
  max-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
}

.slider-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.slider-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 12, 16, 0.95) 0%, rgba(10, 12, 16, 0.5) 45%, transparent 85%);
  pointer-events: none;
}

.slider-slide.active {
  opacity: 1;
  visibility: visible;
}

.slider-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.slider-overlay-content {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.slider-overlay-content a,
.slider-badge {
  pointer-events: auto;
}

.slider-badge {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slider-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

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

.slider-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 720px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.35);
  transition: all var(--transition-fast);
}

.slider-dot.active {
  width: 24px;
  background: var(--primary);
}

/* ====================================================================
   5. 5 行高密度热门标签矩阵
   ==================================================================== */
.tags-matrix-section {
  margin-bottom: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.tags-matrix-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 200px;
  overflow: hidden;
}

.tag-capsule {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tag-capsule:hover {
  background: var(--primary-glow);
  border-color: var(--border-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* ====================================================================
   6. 图集卡片流 (PC 统一锁定 4 列黄金网格，移动端规范双列)
   ==================================================================== */
.albums-grid-section {
  margin-bottom: 40px;
}

.albums-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px;
}

.album-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.album-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.album-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.album-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #181d2a;
}

.album-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.album-card:hover .album-cover-img {
  transform: scale(1.04);
}

.cover-gradient-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 12, 16, 0.8) 100%);
  pointer-events: none;
}

.badge-photo-count {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.album-info-wrap {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 8px;
}

.album-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.album-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.meta-coser {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 65%;
  color: var(--text-muted);
}

.coser-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-views {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ====================================================================
   7. 详情页长图流与全屏灯箱 (统一 1200px 黄金版心与 100% 严丝合缝大图)
   ==================================================================== */
.detail-container {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

/* 面包屑：左边缘与 Header Logo 绝对垂直齐平，下方与 H1 间距 16px */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-top: 18px;
  margin-bottom: 16px; /* 间距精确设为 16px */
}

.breadcrumb-nav a {
  color: var(--text-muted);
}

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

.crumb-sep {
  color: var(--border-color);
}

.current-crumb {
  color: var(--text-dim);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 图集头部信息区：左侧 100% 平齐 Header Logo，底部与第一张大图间距 24px */
.detail-header {
  margin-bottom: 24px; /* 属性栏与正文第一张大图间距设为 24px */
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.detail-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 12px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-desc {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 核心长图流区域：1200px 版心内 100% 严丝合缝展开，左边缘与 Header Logo/H1/推荐卡片绝对齐平 */
.gallery-stream {
  width: 100%;
  max-width: 100% !important;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  margin-bottom: 48px; /* 正文最后一张大图与下方模块间距设为 48px */
}

.gallery-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px; /* 图片之间纵向间距统一标定为 margin-bottom: 24px */
}

.gallery-item:last-child {
  margin-bottom: 0;
}

.gallery-img-wrap {
  width: 100%;
  max-width: 100% !important; /* 严丝合缝对齐 1200px 版心，左右无内缩错位 */
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  cursor: zoom-in;
}

.gallery-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  transition: transform var(--transition-normal);
  cursor: zoom-in; /* 鼠标悬停统一手势，提示点击放大 */
}

.gallery-img-wrap:hover .gallery-img {
  transform: scale(1.012);
}

.gallery-caption {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100% !important;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 0 4px;
}

.caption-hint {
  font-size: 0.75rem;
}

/* 详情页图集标签模块：正文最后一张大图下方、相关推荐上方，100% 严丝合缝对齐版心 */
.detail-tags,
.detail-tags-section {
  width: 100%;
  max-width: 100% !important;
  margin-left: auto;
  margin-right: auto;
  margin-top: 12px;
  margin-bottom: 48px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.detail-tags-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.detail-tags-header svg {
  color: var(--primary);
  width: 16px;
  height: 16px;
}

.detail-tags-list,
.detail-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 规范圆角胶囊药丸样式 (严格遵循需求参数) */
.detail-tag-pill,
.detail-tags-wrap .tag-capsule {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.detail-tag-pill:hover,
.detail-tags-wrap .tag-capsule:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
}

/* 详情页文末相关推荐：与全站 1200px 黄金版心完美平齐，锁定 4 列卡片 */
.related-section {
  width: 100%;
  margin-top: 48px;
  margin-bottom: 64px;
}

.related-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px;
}

/* ====================================================================
   8. 右下角常驻悬浮控制坞 (半透明磨砂小胶囊)
   ==================================================================== */
.floating-dock {
  position: fixed;
  right: 20px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 990;
}

.dock-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(19, 23, 34, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.dock-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-hover);
  padding-right: 6px;
  border-right: 1px solid var(--border-color);
}

.dock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-main);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ====================================================================
   9. 全屏沉浸式画廊灯箱浮层 (95% 纯黑遮罩)
   ==================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 13, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-shell {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lightbox-topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.lightbox-counter {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.lightbox-close-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.lightbox-img {
  max-width: 95%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background var(--transition-fast);
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav-btn.prev {
  left: 20px;
}

.lightbox-nav-btn.next {
  right: 20px;
}

/* ====================================================================
   10. 分页器与通用空状态
   ==================================================================== */
.pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn, .page-number {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.page-number.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}

.page-btn:hover, .page-number:hover:not(.active) {
  border-color: var(--border-hover);
  color: #fff;
}

.page-dots {
  color: var(--text-dim);
  padding: 0 4px;
}

.empty-tip-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--text-dim);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
}

/* 通用页脚 (左右两栏高级舒展排布，极简纯粹) */
.site-footer {
  background: #07090d;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding: 36px 0 20px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 28px;
}

.footer-col-main {
  max-width: 480px;
}

.footer-col-notice {
  max-width: 440px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.sitemap-link {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.sitemap-link:hover {
  color: var(--primary-hover);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ====================================================================
   11. 响应式规则 (PC 桌面端 vs 移动端 390x844)
   ==================================================================== */

/* --- PC 桌面端 (>= 769px) --- */
@media (min-width: 769px) {
  /* 【核心铁律】：强制对移动端抽屉及遮罩设置 display: none !important，绝不裸露挤压内容 */
  .drawer,
  .drawer-overlay,
  .mobile-search-toggle,
  .mobile-menu-btn,
  .mobile-search-bar {
    display: none !important;
  }
}

/* --- 移动端视口 (<= 768px，含 390x844 标准机型) --- */
@media (max-width: 768px) {
  /* 隐藏 PC 导航与常驻搜索框 */
  .nav-links-pc,
  .search-form-pc {
    display: none !important;
  }

  /* 呈现移动端搜索图标与汉堡包 */
  .mobile-search-toggle,
  .mobile-menu-btn {
    display: flex;
  }

  .site-header {
    height: 54px;
  }

  .header-inner {
    height: 54px;
  }

  .container, .header-inner, .detail-container, .footer-inner {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .main-container {
    padding-top: 16px;
    padding-bottom: 32px;
  }

  .page-main-title {
    font-size: 1.15rem;
    margin-bottom: 14px;
  }

  /* 模块间距统一收紧为 20px~24px */
  .hero-slider-section {
    margin-bottom: 22px;
  }

  .tags-matrix-section {
    padding: 14px 12px;
    margin-bottom: 22px;
    border-radius: var(--radius-md);
  }

  .albums-grid-section {
    margin-bottom: 24px;
  }

  /* 标题与下方内容间距锁定为 10px */
  .section-title-wrap,
  .category-header {
    margin-bottom: 10px;
  }

  .category-title {
    font-size: 1.2rem;
  }

  .sub-tags-wrap {
    margin-bottom: 12px;
  }

  /* Hero Slider 移动端 16:9 比例紧凑 */
  .slider-container {
    aspect-ratio: 16 / 9;
    min-height: 190px;
    border-radius: var(--radius-md);
  }

  .slider-overlay-content {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 0;
  }

  .slider-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
  }

  .slider-heading {
    font-size: 1.02rem;
    line-height: 1.25;
  }

  .slider-summary {
    display: none;
  }

  .tag-capsule {
    padding: 5px 11px;
    font-size: 0.78rem;
  }

  /* 【移动端核心】：图集卡片流规范双列网格 (gap: 10px) */
  .albums-grid,
  .card-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .album-card-title {
    font-size: 0.84rem;
    height: 2.7em;
  }

  .album-info-wrap {
    padding: 8px 10px 10px;
  }

  .album-card-meta {
    font-size: 0.72rem;
  }

  /* 详情页长图流移动端 */
  .detail-title {
    font-size: 1.25rem;
  }

  .gallery-stream {
    gap: 16px;
  }

  .gallery-img-wrap {
    border-radius: var(--radius-sm);
  }

  /* 详情页文末相关推荐在移动端保持 2 行 4 个 (即一行 2 个) */
  .related-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* 悬浮控制坞移动端微调 */
  .floating-dock {
    right: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .dock-pill {
    padding: 4px 10px;
  }

  /* 页脚移动端单列流式 */
  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }
  .footer-col-main,
  .footer-col-notice {
    max-width: 100%;
  }

  /* 灯箱切图箭头缩小防挡图 */
  .lightbox-nav-btn {
    width: 38px;
    height: 38px;
  }

  .lightbox-nav-btn.prev {
    left: 8px;
  }

  .lightbox-nav-btn.next {
    right: 8px;
  }
}

/* ====================================================================
   12. 骨架屏流光占位动画 (Shimmer)
   ==================================================================== */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-loading {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite ease-in-out;
}

