/* ============================================================
   mn52.com - 美女图片网站 统一样式表 v2.0
   重构合并 common.css + index.css + head.css + list.css + picdetail.css
   ============================================================ */

/* ---------- CSS 变量 & 重置 ---------- */
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --primary-gradient: linear-gradient(135deg, #3b82f6, #6366f1);
  --primary-gradient-hover: linear-gradient(135deg, #2563eb, #4f46e5);
  --pink: #f43f5e;
  --pink-gradient: linear-gradient(135deg, #ff6b81, #f43f5e);
  --amber: #f59e0b;
  --amber-gradient: linear-gradient(135deg, #fbbf24, #f59e0b);
  --purple: #8b5cf6;
  --purple-gradient: linear-gradient(135deg, #a78bfa, #8b5cf6);
  --teal: #14b8a6;
  --teal-gradient: linear-gradient(135deg, #2dd4bf, #14b8a6);
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color .2s ease;
}

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

ul, ol { list-style: none; }
i { font-style: normal; }
input, button, textarea {
  outline: none;
  border: none;
  font-family: inherit;
}

::-webkit-input-placeholder { color: var(--text-muted); font-size: 14px; }
:-moz-placeholder { color: var(--text-muted); font-size: 14px; }
::-moz-placeholder { color: var(--text-muted); font-size: 14px; }
:-ms-input-placeholder { color: var(--text-muted); font-size: 14px; }

/* ---------- 布局工具 ---------- */
.layout {
  width: 1200px;
  margin: 0 auto;
}

/* ---------- 首页背景 ---------- */
body.home-page {
  background: url('../images/bgpic.png') center top no-repeat;
  background-size: 100% 867px;
}

/* ---------- 顶部通栏导航 (首页大header) ---------- */
.header-main {
  width: 100%;
  padding-top: 30px;
}

.header-main .nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
}

.header-main .nav .logo {
  height: 50px;
  width: auto;
}

.header-main .nav ul {
  display: flex;
  gap: 48px;
}

.header-main .nav ul li a {
  font-size: 17px;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.header-main .nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  border-radius: 4px;
  background: var(--primary-gradient);
  transition: width .3s ease;
}

.header-main .nav ul li a:hover::after,
.header-main .nav ul li.active a::after {
  width: 24px;
}

/* 首页搜索框 */
.header-main .searchBox {
  width: 680px;
  height: 52px;
  margin: 40px auto 0;
  background: var(--bg-card);
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: box-shadow .3s;
}

.header-main .searchBox:focus-within {
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15), var(--shadow-lg);
}

.searchBox .searchIcon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.searchBox .searchIcon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-main .searchText {
  flex: 1;
  height: 52px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--text-primary);
  background: transparent;
}

.header-main .searchBox .search {
  width: 100px;
  height: 44px;
  margin: 4px;
  border-radius: 40px;
  background: var(--primary-gradient);
  font-size: 15px;
  color: #fff;
  letter-spacing: 2px;
  text-align: center;
  line-height: 44px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .2s, box-shadow .2s;
}

.header-main .searchBox .search:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(59,130,246,0.35);
}

.header-main .hotSearch {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

.header-main .hotSearch a {
  color: var(--text-muted);
  margin-left: 18px;
  font-size: 13px;
  transition: color .2s;
}

.header-main .hotSearch a:hover {
  color: var(--primary) !important;
}

/* ---------- 内页导航 (固定顶部) ---------- */
.header {
  width: 100%;
  height: 64px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .layout {
  display: flex;
  align-items: center;
  height: 64px;
}

.header .logo {
  height: 40px;
  width: auto;
  margin-right: 40px;
}

.header ul.list {
  display: flex;
  gap: 32px;
  flex: 1;
}

.header ul.list li a {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.header ul.list li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width .3s;
}

.header ul.list li a:hover::after,
.header ul.list li.active a::after {
  width: 100%;
}

.header ul.list li.active a {
  color: var(--primary) !important;
  font-weight: 600;
}

.header .searchBox {
  width: 320px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-light);
  transition: border-color .3s, box-shadow .3s;
  flex-shrink: 0;
}

.header .searchBox:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.header .searchBox .searchIcon {
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header .searchBox .searchIcon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header .searchText {
  flex: 1;
  height: 38px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
}

.header .searchBox .search {
  width: 72px;
  height: 32px;
  margin: 3px;
  border-radius: 30px;
  background: var(--primary-gradient);
  font-size: 13px;
  color: #fff;
  text-align: center;
  line-height: 32px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity .2s;
}

.header .searchBox .search:hover {
  opacity: .9;
}

/* ---------- 首页大图英雄区 ---------- */
.picList1 {
  width: 100%;
  margin-top: 30px;
}

.picList1 ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.picList1 ul li {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 215 / 323;
  transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .35s ease;
}

.picList1 ul li:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.picList1 ul li a.picBox {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.picList1 ul li a.picBox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(0.4, 0, 0.2, 1);
}

.picList1 ul li:hover a.picBox img {
  transform: scale(1.08);
}

.picList1 ul li a.picBox p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 14px;
  line-height: 48px;
  text-align: center;
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 轮播区 (热门推荐) ---------- */
.picSwiper {
  margin-top: 50px;
}

.picSwiper .title {
  display: flex;
  gap: 32px;
}

.picSwiper .title li {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding-bottom: 6px;
  border-bottom: 3px solid transparent;
  transition: all .3s;
}

.picSwiper .title li:hover,
.picSwiper .title li.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.picSwiper .ListWrap {
  margin-top: 24px;
  position: relative;
}

.picSwiper .ListWrap .swiper {
  display: none;
  position: static;
}

.picSwiper .ListWrap .swiper:first-child {
  display: block;
}

/* ---------- 卡片样式 (统一) ---------- */
a.picBox {
  display: block;
  width: 215px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .35s;
}

a.picBox:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

a.picBox img {
  width: 100%;
  border-radius: var(--radius-sm);
  transition: transform .6s cubic-bezier(0.4, 0, 0.2, 1);
}

a.picBox:hover img {
  transform: scale(1.08);
}

.picName {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  width: 215px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  line-height: 1.4;
  text-align: center;
}

/* Swiper 导航按钮 */
.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after,
.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after {
  content: '' !important;
}

.swiper-button-prev, .swiper-button-next {
  width: 40px !important;
  height: 40px !important;
  background: var(--bg-card);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.swiper-button-prev:hover, .swiper-button-next:hover {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

.swiper-button-prev svg, .swiper-button-next svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text-secondary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .2s;
}

.swiper-button-prev:hover svg,
.swiper-button-next:hover svg {
  stroke: #fff;
}

.swiper-button-prev { left: -20px !important; }
.swiper-button-next { right: -20px !important; }

/* ---------- 热门分类 ---------- */
.hotGategory {
  margin-top: 60px;
}

.hotGategory .layout {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
}

.hotGategory .title {
  width: 50px;
  min-height: 140px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  padding: 20px 0;
  flex-shrink: 0;
}

.hotGategory .category-wrap {
  flex: 1;
  padding: 22px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.hotGategory .category-item {
  text-align: center;
}

.hotGategory .category-item .cat-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hotGategory .category-item .cat-header i {
  font-size: 24px;
}

.hotGategory .category-item .cat-header span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.hotGategory .category-item .cat-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.hotGategory .category-item .cat-links a {
  font-size: 13px;
  color: var(--text-muted);
  padding: 2px 10px;
  border-radius: 20px;
  background: var(--bg-light);
  transition: all .2s;
}

.hotGategory .category-item .cat-links a:hover {
  background: var(--primary);
  color: #fff !important;
}

/* ---------- 分类图片列表 (flPicBox) ---------- */
.flPicBox {
  margin-top: 50px;
}

.flPicBox .title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.flPicBox .title .section-icon {
  font-size: 28px;
}

.flPicBox .title .section-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.flPicBox .title .section-tabs {
  display: flex;
  gap: 8px;
  margin-left: 20px;
  flex: 1;
}

.flPicBox .title .section-tabs li {
  padding: 6px 22px;
  border-radius: 40px;
  background: var(--bg-light);
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .3s;
}

.flPicBox .title .section-tabs li:hover,
.flPicBox .title .section-tabs li.active {
  background: var(--primary-gradient);
  color: #fff;
}

.flPicBox .title .section-more {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
}

.flPicBox .title .section-more:hover {
  color: var(--primary) !important;
}

.flPicBox .pic_list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.flPicBox .pic_list li {
  text-align: center;
}

/* 各分类颜色主题 */
.mnPic .section-tabs li:hover,
.mnPic .section-tabs li.active { background: var(--pink-gradient); }
.mnPic .section-name { color: var(--pink); }

.mhPic .section-tabs li:hover,
.mhPic .section-tabs li.active { background: var(--amber-gradient); }
.mhPic .section-name { color: var(--amber); }

.ecyPic .section-tabs li:hover,
.ecyPic .section-tabs li.active { background: var(--purple-gradient); }
.ecyPic .section-name { color: var(--purple); }

.fjPic .section-tabs li:hover,
.fjPic .section-tabs li.active { background: var(--teal-gradient); }
.fjPic .section-name { color: var(--teal); }

/* 网名卡片宽一些 */
.fjPic .pic_list li a.picBox { width: 100%; }
.fjPic .pic_list li a.picName { width: 100%; }

/* ---------- 面包屑 ---------- */
.position {
  font-size: 13px;
  color: var(--text-muted);
  padding: 16px 0;
}

.position a { color: var(--text-muted); }
.position a:hover { color: var(--primary) !important; }

/* ---------- 分类筛选 ---------- */
.classification {
  margin-top: 8px;
}

.classification .layout {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow-sm);
}

.classification span {
  font-size: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 10px;
}

.classification-one,
.classification-two {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.classification-one {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.classification-two {
  padding: 12px 0;
}

.classification .cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.classification .cat-list li a {
  display: block;
  padding: 6px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: 40px;
  background: var(--bg-light);
  transition: all .25s;
}

.classification .cat-list li a:hover,
.classification .cat-list li.active a {
  background: var(--primary);
  color: #fff !important;
}

/* ---------- 图片列表 (瀑布流/多列) ---------- */
.classification_list {
  margin-top: 28px;
}

.classification_list ul.classification_listContent {
  column-count: 5;
  column-gap: 24px;
}

.classification_list ul.classification_listContent li {
  width: 100%;
  display: inline-block;
  margin-bottom: 24px;
  break-inside: avoid;
  text-align: center;
}

.classification_list ul.classification_listContent li a.picBox {
  width: 100%;
}

.classification_list ul.classification_listContent li a.picBox img {
  width: 100%;
}

/* 加载更多 */
.load-more-section {
  text-align: center;
  margin-top: 30px;
}

.load-more-btn {
  padding: 12px 40px;
  border-radius: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .3s;
}

.load-more-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(59,130,246,0.25);
}

/* ---------- 分页 ---------- */
.pages {
  text-align: center;
  margin: 30px 0 50px;
}

.pages ul.pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pages ul.pagination li {
  display: inline-block;
  margin: 0;
}

.pages ul.pagination li a,
.pages ul.pagination li span {
  display: inline-block;
  padding: 7px 14px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all .2s;
  text-decoration: none;
  line-height: 1.4;
}

.pages ul.pagination li a:hover {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
}

.pages ul.pagination li.active a,
.pages ul.pagination li.active span {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pages ul.pagination li:first-child a {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: default;
}

/* ---------- Tab 切换 ---------- */
.tab {
  margin-top: 40px;
}

.tab .title {
  display: flex;
  gap: 28px;
}

.tab .title li {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding-bottom: 6px;
  border-bottom: 3px solid transparent;
  transition: all .3s;
}

.tab .title li:hover,
.tab .title li.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tabList ul {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.tabList ul:first-of-type {
  display: grid;
}

.tabList ul li { text-align: center; }

/* ---------- 热门关键词 ---------- */
.hotwords, .hotKeyword {
  margin-top: 50px;
}

.hotwords h2, .hotKeyword {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

.hotwords a, .hotKeyword a {
  display: inline-block;
  padding: 6px 16px;
  margin: 0 6px 10px 0;
  background: var(--bg-light);
  border-radius: 40px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all .25s;
}

.hotwords a:hover, .hotKeyword a:hover {
  background: var(--primary);
  color: #fff !important;
}

.hotKeyword { padding-bottom: 50px; }

/* ---------- 底部 ---------- */
.footer {
  background: #1e293b;
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
}

.footer p {
  color: #94a3b8;
  font-size: 13px;
  line-height: 28px;
}

.footer a {
  color: #64748b;
  font-size: 13px;
  margin: 0 6px;
}

.footer a:hover {
  color: var(--primary-light) !important;
}

.footer p span { padding: 0 8px; }

/* ============================================================
   详情页样式
   ============================================================ */

.detail-body {
  background: #f1f5f9;
}

/* 图集详情 */
.atlasList {
  position: relative;
  padding-bottom: 40px;
}

.atlasList .layout {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.atlasList h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.atlasSwiper {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.atlasSwiper .bigPic {
  flex: 0 0 720px;
  max-width: 720px;
  cursor: pointer;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f1f5f9;
}

.atlasSwiper .bigPic img {
  width: 100%;
  display: block;
  transition: transform .4s;
}

.atlasSwiper .bigPic:hover img {
  transform: scale(1.02);
}

.atlasSwiper .bigPic .tips {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity .3s;
}

.atlasSwiper .bigPic:hover .tips {
  opacity: 1;
}

.atlasSwiper .atlas-info {
  flex: 1;
  min-width: 0;
}

.atlasSwiper .atlas_information {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.atlasSwiper .atlas_information h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.atlasSwiper .atlas_information ul {
  margin-top: 12px;
}

.atlasSwiper .atlas_information li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 30px;
  display: flex;
}

.atlasSwiper .atlas_information li span,
.atlasSwiper .atlas_information li i {
  margin-left: auto;
  color: var(--text-secondary);
}

.atlasSwiper .atlas_information li i { color: var(--primary); font-weight: 600; }

.atlasSwiper .previewPic::-webkit-scrollbar { width: 4px; }
.atlasSwiper .previewPic::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.atlasSwiper .previewPic::-webkit-scrollbar-track { background: var(--bg-light); }
.atlasSwiper .previewPic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 16px;
  max-height: 320px;
  overflow-y: auto;
}

.atlasSwiper .previewPic li {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.atlasSwiper .previewPic li img {
  width: 100%;
  transition: transform .3s;
}

.atlasSwiper .previewPic li:hover img {
  transform: scale(1.1);
}

.atlasSwiper .previewPic li.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(59,130,246,0.3);
  border: 2px solid var(--primary);
}

.picLabel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.picLabel a {
  display: inline-block;
  padding: 6px 14px;
  margin: 6px 6px 0 0;
  background: var(--bg-light);
  border-radius: 40px;
  font-size: 13px;
  transition: all .25s;
}

.picLabel a:hover {
  background: var(--primary);
  color: #fff !important;
}

/* 大图预览浮层 */
.bigPic_fc {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 999;
  display: none;
}

.bigPic_fc .close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}

.bigPic_fc .close:hover { background: rgba(255,255,255,0.2); }

.bigPic_fc .close svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bigPic_fc .swiper {
  width: 100%;
  height: 100%;
}

.bigPic_fc .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bigPic_fc .swiper-slide img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.bigPic_fc .swiper-button-prev,
.bigPic_fc .swiper-button-next {
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.bigPic_fc .swiper-button-prev:hover,
.bigPic_fc .swiper-button-next:hover {
  background: rgba(255,255,255,0.2);
}

.bigPic_fc .swiper-button-prev svg,
.bigPic_fc .swiper-button-next svg {
  stroke: #fff;
}

/* ---------- 相关推荐 & 轮播 (详情页) ---------- */
.xgtj {
  background: var(--bg-card);
  padding: 40px 0;
  margin-top: 30px;
}

.xgtj h2, .swiperBox h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.xgtj ul {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.xgtj ul li { text-align: center; }

.swiperBox {
  background: var(--bg-card);
  padding: 40px 0;
}

.swiperBox .title {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}

.swiperBox .title ul {
  display: flex;
  gap: 10px;
}

.swiperBox .title ul li {
  padding: 8px 24px;
  border-radius: 40px;
  background: var(--bg-light);
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .3s;
}

.swiperBox .title ul li:hover,
.swiperBox .title ul li.active {
  background: var(--primary-gradient);
  color: #fff;
}

.swiperBox .swiper {
  width: 100%;
  position: static;
  display: none;
}

.swiperBox .swiper:first-child { display: block; }

/* ---------- 网名内容样式 ---------- */
.atlasList .atlasSwiper .bigPic.wPic img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ============================================================
   搜索页样式
   ============================================================ */
.search-header .layout {
  padding: 16px 0;
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.search-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.search-header .search-kw {
  color: var(--primary);
}
.search-header .search-total {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .search-header h1 { font-size: 18px; }
}

/* 文章内容区 */
.article-content {
  flex-direction: column;
  gap: 16px;
}
.article-content .layout {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 30px;
}
.article-content h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 12px;
}
.article-content .article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.article-content .article-meta a { color: var(--primary); }
.article-content .article-meta a:hover { text-decoration: underline; }
.article-content .article-summary-box {
  background: #f0f7ff;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
  border-left: 4px solid var(--primary);
}
.article-content .article-summary-box strong {
  color: var(--primary);
}
.article-content .content-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.article-content .content-body p {
  margin-bottom: 12px;
}
.article-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 8px 0;
}
.article-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.article-content table {
  border-collapse: collapse;
  width: 100%;
}
.article-content .article-tags {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-content .article-tags a {
  display: inline-block;
  padding: 5px 14px;
  background: var(--bg-light);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all .25s;
}
.article-content .article-tags a:hover {
  background: var(--primary);
  color: #fff !important;
}

/* ---------- 网名列表样式 (list_wm.html) ---------- */
.wm-list .swiper-wrapper { display: flex; flex-wrap: wrap; gap: 24px; justify-content: flex-start; }
.wm-list .swiper-wrapper li { text-align: center; }
.wm-list .swiper-wrapper li a.picBox { width: 215px; }
.wm-list .swiper-wrapper li a.picBox img { width: 215px; border-radius: var(--radius-sm); }
.wm-list .swiper-wrapper li a.p p {
  background: rgba(0,0,0,0.35);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  border-radius: 0 0 5px 5px;
  font-size: 14px;
  color: #fff;
  line-height: 40px;
  text-align: center;
}

/* ---------- 汉堡菜单按钮 ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  gap: 5px;
  flex-shrink: 0;
  z-index: 101;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all .3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- 响应式 (PC + Mobile) ---------- */
@media (max-width: 1240px) {
  .layout { width: 100%; padding: 0 20px; }
  .picList1 ul { grid-template-columns: repeat(4, 1fr); }
  .hotGategory .category-wrap { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .flPicBox .pic_list { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .classification_list ul.classification_listContent { column-count: 4; }
  .tabList ul { grid-template-columns: repeat(4, 1fr); }
  .atlasSwiper .bigPic { flex: 0 0 55%; max-width: 55%; }
  .header-main .searchBox { width: 90%; }
}

@media (max-width: 992px) {
  .picList1 ul { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .flPicBox .pic_list { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .classification_list ul.classification_listContent { column-count: 3; gap: 16px; }
  .tabList ul { grid-template-columns: repeat(3, 1fr); }
  .atlasSwiper { flex-direction: column; }
  .atlasSwiper .bigPic { flex: none; max-width: 100%; }
  .header-main .nav { gap: 30px; }
  .header-main .nav ul { gap: 24px; }
  .header-main .nav ul li a { font-size: 15px; }
  .picList1 ul li { aspect-ratio: auto; }
  .picList1 ul li a.picBox img { height: auto; }
  .header-main .searchBox { width: 100%; }
  .hotGategory .layout { flex-direction: column; }
  .hotGategory .title { width: 100%; min-height: auto; padding: 12px 0; flex-direction: row; gap: 4px; }
  .picSwiper .title li { font-size: 16px; }
  .flPicBox .title { flex-wrap: wrap; gap: 8px; }
  .flPicBox .title .section-name { font-size: 18px; }
  .flPicBox .title .section-tabs { margin-left: 0; flex-wrap: wrap; }
  .flPicBox .title .section-tabs li { padding: 5px 14px; font-size: 13px; }
  .header .searchBox { width: 200px; }
  .swiper-button-prev, .swiper-button-next { display: none !important; }
}

@media (max-width: 640px) {
  body { background: var(--bg-light) !important; }
  body.home-page { background-size: cover; background-position: top center; }

  .header-main { padding-top: 16px; }
  .header-main .nav { flex-direction: column; gap: 8px; }
  .header-main .nav .logo { height: 36px; }
  .header-main .nav ul { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.92); z-index: 100; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 60px 20px; overflow-y: auto; }
  .header-main .nav ul.open { display: flex; }
  .header-main .nav ul li a { font-size: 18px; color: #fff; font-weight: 500; }
  .header-main .nav ul li.active a { color: var(--primary-light) !important; }
  .header-main .searchBox { height: 42px; margin-top: 20px; border-radius: 40px; }
  .header-main .searchText { height: 42px; font-size: 14px; }
  .header-main .searchBox .search { width: 64px; height: 34px; line-height: 34px; font-size: 13px; margin: 4px; }
  .header-main .hotSearch { margin-top: 12px; font-size: 13px; }
  .header-main .hotSearch a { margin-left: 10px; font-size: 12px; }

  .picList1 { margin-top: 16px; }
  .picList1 ul { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .picList1 ul li { border-radius: var(--radius-sm); }
  .picList1 ul li a.picBox p { font-size: 12px; height: 36px; line-height: 36px; }

  .picSwiper { margin-top: 30px; }
  .picSwiper .title { gap: 14px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .picSwiper .title li { font-size: 14px; padding-bottom: 4px; }
  .picSwiper .ListWrap { margin-top: 14px; }
  .picSwiper .ListWrap .swiper { overflow: hidden; }
  .picSwiper .ListWrap .swiper .swiper-wrapper { display: flex; flex-wrap: nowrap; gap: 0; }
  .picSwiper .ListWrap .swiper .swiper-wrapper li { width: auto; }
  .picSwiper .ListWrap .swiper ul { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .picSwiper .ListWrap .swiper ul li { width: calc(50% - 8px); }
  a.picBox { width: 100%; }
  .picName { width: 100%; }

  .hotGategory { margin-top: 30px; }
  .hotGategory .layout { border-radius: var(--radius); }
  .hotGategory .category-wrap { grid-template-columns: repeat(2, 1fr); padding: 12px 14px; gap: 10px; }
  .hotGategory .category-item .cat-header span { font-size: 13px; }
  .hotGategory .category-item .cat-links a { font-size: 12px; padding: 2px 8px; }

  .flPicBox { margin-top: 30px; }
  .flPicBox .title { flex-wrap: wrap; }
  .flPicBox .title .section-name { font-size: 16px; }
  .flPicBox .title .section-tabs { margin-left: 0; gap: 6px; flex-wrap: wrap; }
  .flPicBox .title .section-tabs li { padding: 4px 12px; font-size: 12px; }
  .flPicBox .title .section-more { font-size: 12px; }
  .flPicBox .pic_list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .flPicBox .pic_list li { margin-top: 0; }
  .flPicBox .pic_list li a.picBox img { border-radius: 6px; }

  .header { height: 52px; }
  .header .layout { height: 52px; gap: 6px; flex-wrap: nowrap; display: flex; align-items: center; }
  .header .logo { height: 30px; margin-right: 6px; }
  .header .logo-link { flex-shrink: 0; }
  .header .menu-toggle { display: flex; }
  .header ul.list {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92); z-index: 100;
    flex-direction: column; align-items: center; justify-content: center; gap: 20px;
    padding: 60px 20px; overflow-y: auto;
    visibility: hidden; opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .header ul.list.open { visibility: visible; opacity: 1; }
  .header ul.list li a { font-size: 18px; color: #fff; font-weight: 500; }
  .header ul.list li.active a { color: var(--primary-light) !important; }
  .header .searchBox { width: 120px; height: 32px; }
  .header .searchText { height: 32px; font-size: 12px; padding: 0 6px; width: 50px; }
  .header .searchBox .search { width: 50px; height: 26px; line-height: 26px; font-size: 11px; }
  .header .searchBox .searchIcon svg { width: 14px; height: 14px; }
  
  .header-main .menu-toggle { display: flex; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
  .header-main .nav ul#navList {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92); z-index: 100;
    flex-direction: column; align-items: center; justify-content: center; gap: 20px;
    padding: 60px 20px; overflow-y: auto;
    visibility: hidden; opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .header-main .nav ul#navList.open { visibility: visible; opacity: 1; }

  .position { padding: 10px 0; font-size: 12px; }

  .classification .layout { padding: 10px 14px; }
  .classification span { font-size: 12px; margin-top: 8px; }
  .classification .cat-list li a { font-size: 12px; padding: 4px 10px; }

  .classification_list ul.classification_listContent { column-count: 2; column-gap: 10px; }
  .classification_list ul.classification_listContent li { margin-bottom: 10px; }

  .tab { margin-top: 24px; }
  .tab .title { gap: 14px; overflow-x: auto; }
  .tab .title li { font-size: 14px; }
  .tabList ul { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .hotwords, .hotKeyword { margin-top: 30px; }
  .hotwords h2, .hotKeyword { font-size: 15px; }
  .hotwords a, .hotKeyword a { font-size: 12px; padding: 4px 10px; }

  .atlasList .layout { padding: 16px; }
  .atlasList h1 { font-size: 20px; }
  .atlasSwiper { flex-direction: column; gap: 16px; }
  .atlasSwiper .bigPic { flex: none; max-width: 100%; }
  .atlasSwiper .bigPic img { width: 100%; }
  .atlasSwiper .atlas-info { width: 100%; }
  .atlasSwiper .previewPic { max-height: 200px; grid-template-columns: repeat(3, 1fr); }

  .xgtj ul { gap: 12px; justify-content: center; }
  .xgtj ul li { width: calc(50% - 12px); }
  .xgtj ul li a.picBox { width: 100%; }
  .xgtj ul li .picName { width: 100%; }

  .swiperBox { padding: 24px 0; }
  .swiperBox h2 { font-size: 18px; }
  .swiperBox .title { flex-wrap: wrap; gap: 10px; }
  .swiperBox .title ul { flex-wrap: wrap; gap: 6px; }
  .swiperBox .title ul li { padding: 5px 14px; font-size: 12px; }
  .swiperBox .swiper ul { flex-wrap: wrap; gap: 10px; justify-content: center; }
  .swiperBox .swiper ul li { width: calc(50% - 10px); }
  .swiperBox .swiper ul li a.picBox { width: 100%; }
  .zxsc .swiper ul li { width: calc(50% - 10px); }

  .footer { padding: 20px 0; margin-top: 30px; }
  .footer p { font-size: 12px; }

  .pages a, .pages span { padding: 4px 10px; font-size: 12px; }
  .load-more-btn { padding: 10px 24px; font-size: 13px; }

  .bigPic_fc .close { top: 10px; right: 10px; width: 36px; height: 36px; }
  .bigPic_fc .swiper-button-prev, .bigPic_fc .swiper-button-next { width: 32px !important; height: 32px !important; }
  .bigPic_fc .swiper-button-prev svg, .bigPic_fc .swiper-button-next svg { width: 18px; height: 18px; }

  .classification_list .swiper-wrapper li, .zxsc .swiper-wrapper li { width: calc(50% - 10px); }
  .classification_list .swiper-wrapper li a.picBox, .zxsc .swiper-wrapper li a.picBox { width: 100%; }
  .classification_list .swiper-wrapper li a.picBox img, .zxsc .swiper-wrapper li a.picBox img { width: 100%; }

  .atlasSwiper .atlas_information li { font-size: 13px; line-height: 26px; }
  .picLabel { font-size: 13px; }
  .picLabel a { font-size: 12px; padding: 4px 10px; }

  .xgtj h2, .swiperBox h2 { font-size: 18px; }
  .article-content .layout { padding: 16px; }
  .article-content h1 { font-size: 18px; }
  .article-content .article-summary-box { font-size: 13px; padding: 12px 14px; }
  .article-content .content-body { font-size: 15px; }
  .article-content p { font-size: 15px; }
  .article-content img { max-width: 100%; height: auto; }
  .article-content table { width: 100% !important; overflow-x: auto; display: block; }
}

@media (max-width: 420px) {
  .picList1 ul { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .flPicBox .pic_list { gap: 6px; }
  .hotGategory .category-wrap { grid-template-columns: repeat(1, 1fr); }
  .classification_list ul.classification_listContent { column-count: 2; }
  .tabList ul { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .header .searchBox { width: 100px; }
  .header .searchText { width: 40px; }
  .header ul.list li { margin: 0; }
  .header ul.list li a { font-size: 12px; }
}

/* ============================================================
   相册浏览模式 (美女/图片)
   ============================================================ */
.gallery-view { padding-bottom: 40px; }
.gallery-view .layout { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }

.gallery-header {
  padding: 24px 30px 0;
}
.gallery-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.gallery-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.gallery-meta a { color: var(--primary); }
.gallery-count { color: var(--primary); font-weight: 600; }
.gallery-category a:hover { text-decoration: underline; }

.gallery-main {
  padding: 20px 30px;
}
.gallery-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0f0f;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  min-height: 400px;
}
.gallery-image-wrapper img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  transition: opacity .3s;
}
.gallery-nav-left, .gallery-nav-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s;
  z-index: 2;
}
.gallery-nav-left:hover, .gallery-nav-right:hover { opacity: 1; }
.gallery-nav-left { left: 0; background: linear-gradient(to right, rgba(0,0,0,0.3), transparent); }
.gallery-nav-right { right: 0; background: linear-gradient(to left, rgba(0,0,0,0.3), transparent); }
.gallery-nav-left span, .gallery-nav-right span {
  font-size: 48px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  line-height: 1;
  user-select: none;
}

.gallery-thumbs {
  padding: 0 30px 20px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.gallery-thumbs ul {
  display: inline-flex;
  gap: 8px;
  padding: 4px 0;
}
.gallery-thumbs .thumb-item {
  flex-shrink: 0;
  width: 90px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all .25s;
  opacity: .6;
}
.gallery-thumbs .thumb-item:hover { opacity: .9; }
.gallery-thumbs .thumb-item.active {
  border-color: var(--primary);
  opacity: 1;
}
.gallery-thumbs .thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-footer {
  padding: 0 30px 24px;
}
.gallery-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}
.gallery-tags a {
  display: inline-block;
  padding: 4px 12px;
  margin: 4px 6px 0 0;
  background: var(--bg-light);
  border-radius: 40px;
  font-size: 12px;
  color: var(--text-muted);
  transition: all .2s;
}
.gallery-tags a:hover { background: var(--primary); color: #fff !important; }

/* ============================================================
   头像网格浏览模式
   ============================================================ */
.avatar-view { padding-bottom: 40px; }
.avatar-view .layout {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 30px;
  box-shadow: var(--shadow-md);
}
.avatar-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.avatar-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.avatar-meta a { color: var(--primary); }
.avatar-count { color: var(--primary); font-weight: 600; }
.avatar-desc {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.avatar-item {
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.avatar-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.avatar-img-box {
  position: relative;
  padding-bottom: 100%; /* 1:1 square */
  background: var(--bg-light);
  overflow: hidden;
}
.avatar-img-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.avatar-item:hover .avatar-img-box img {
  transform: scale(1.08);
}

.avatar-tags {
  margin-top: 20px;
}
.avatar-tags a {
  display: inline-block;
  padding: 4px 12px;
  margin: 4px 6px 0 0;
  background: var(--bg-light);
  border-radius: 40px;
  font-size: 12px;
  color: var(--text-muted);
  transition: all .2s;
}
.avatar-tags a:hover { background: var(--primary); color: #fff !important; }

/* ============================================================
   移动端增强优化(美观大气 v2.0)
   ============================================================ */

/* ---------- 首页菜单:修复汉堡按钮定位 ---------- */
@media (max-width: 640px) {
  .header-main .nav {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    gap: 0;
  }
  .header-main .nav .logo {
    height: 36px;
    margin: 0 auto;
  }
  .header-main .menu-toggle {
    display: flex !important;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 101;
  }
  .header-main .nav ul#navList {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 60px 20px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .header-main .nav ul#navList.open {
    visibility: visible;
    opacity: 1;
  }
  .header-main .nav ul#navList li a {
    font-size: 20px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    letter-spacing: 2px;
  }
  .header-main .nav ul#navList li.active a {
    color: var(--primary-light) !important;
  }

  /* 首页搜索框移动端 */
  .header-main .searchBox {
    width: 92%;
    max-width: 420px;
    height: 44px;
    margin: 20px auto 0;
    border-radius: 40px;
  }
  .header-main .searchText {
    height: 44px;
    font-size: 14px;
    padding: 0 12px;
  }
  .header-main .searchBox .search {
    width: 76px;
    height: 36px;
    line-height: 36px;
    font-size: 13px;
  }
  .header-main .hotSearch {
    margin-top: 12px;
    font-size: 12px;
    padding: 0 16px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .header-main .hotSearch::-webkit-scrollbar {
    display: none;
  }
  .header-main .hotSearch a {
    font-size: 12px;
    margin-left: 10px;
  }
}

/* ---------- 英雄区卡片移动端优化 ---------- */
@media (max-width: 640px) {
  .picList1 ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 4px;
  }
  .picList1 ul li {
    border-radius: 10px;
    aspect-ratio: 215/323;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .picList1 ul li a.picBox p {
    font-size: 13px;
    height: 40px;
    line-height: 40px;
    font-weight: 500;
  }
}

/* ---------- 轮播区移动端优化 ---------- */
@media (max-width: 640px) {
  .picSwiper {
    margin-top: 24px;
  }
  .picSwiper .title {
    gap: 16px;
    padding: 0 12px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .picSwiper .title::-webkit-scrollbar {
    display: none;
  }
  .picSwiper .title li {
    font-size: 15px;
    padding-bottom: 6px;
    flex-shrink: 0;
  }
  .picSwiper .ListWrap {
    margin-top: 12px;
    padding: 0 4px;
  }
  .picSwiper .ListWrap .swiper ul {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .picSwiper .ListWrap .swiper ul li {
    width: 100% !important;
    margin: 0 !important;
  }
  .picSwiper .ListWrap .swiper ul li a.picBox {
    width: 100%;
    border-radius: 10px;
  }
  .picSwiper .ListWrap .swiper ul li a.picBox img {
    width: 100%;
    aspect-ratio: 1/1.4;
    object-fit: cover;
    border-radius: 10px;
  }
  .picSwiper .ListWrap .swiper ul li a.picName {
    width: 100%;
    font-size: 13px;
    margin-top: 6px;
    padding: 0 2px;
  }
}

/* ---------- 首页分类卡片优化 ---------- */
@media (max-width: 640px) {
  .flPicBox {
    margin-top: 24px;
  }
  .flPicBox .title {
    padding: 0 12px;
    gap: 6px;
  }
  .flPicBox .title .section-name {
    font-size: 17px;
  }
  .flPicBox .title .section-tabs {
    gap: 4px;
  }
  .flPicBox .title .section-tabs li {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 30px;
  }
  .flPicBox .title .section-more {
    font-size: 12px;
    margin-left: auto;
  }
  .flPicBox .pic_list {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 4px;
  }
  .flPicBox .pic_list li a.picBox {
    width: 100%;
    border-radius: 10px;
  }
  .flPicBox .pic_list li a.picBox img {
    width: 100%;
    aspect-ratio: 1/1.4;
    object-fit: cover;
    border-radius: 10px;
  }
  .flPicBox .pic_list li a.picName {
    width: 100%;
    font-size: 13px;
    margin-top: 4px;
    padding: 0 2px;
  }
}

/* ---------- 热门分类移动端 ---------- */
@media (max-width: 640px) {
  .hotGategory {
    margin-top: 24px;
    padding: 0 4px;
  }
  .hotGategory .layout {
    border-radius: 14px;
  }
  .hotGategory .title {
    font-size: 14px;
    padding: 10px 0;
    flex-direction: row;
    gap: 2px;
    letter-spacing: 6px;
  }
  .hotGategory .category-wrap {
    padding: 12px 14px;
    gap: 12px;
  }
  .hotGategory .category-item .cat-header {
    margin-bottom: 6px;
  }
  .hotGategory .category-item .cat-header span {
    font-size: 14px;
  }
  .hotGategory .category-item .cat-links a {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 16px;
  }
}

/* ---------- 内页导航移动端(list/show页面) ---------- */
@media (max-width: 640px) {
  .header {
    height: 52px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .header .layout {
    height: 52px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }
  .header a.logo-link {
    flex-shrink: 0;
    margin-right: auto;
  }
  .header .logo {
    height: 28px;
    width: auto;
    margin: 0;
  }
  .header .menu-toggle {
    display: flex !important;
    width: 38px;
    height: 38px;
    background: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    flex-shrink: 0;
    margin: 0 4px;
    z-index: 102;
  }
  .header .searchBox {
    width: auto;
    flex: 1;
    max-width: 200px;
    min-width: 120px;
    height: 34px;
    margin: 0;
    border-radius: 30px;
    flex-shrink: 1;
  }
  .header .searchText {
    flex: 1;
    height: 34px;
    font-size: 13px;
    padding: 0 8px;
    width: auto;
    min-width: 50px;
  }
  .header .searchIcon {
    display: none;
  }
  .header .searchBox .search {
    width: 48px;
    height: 28px;
    line-height: 28px;
    font-size: 12px;
    margin: 3px;
    flex-shrink: 0;
  }
  .header ul.list {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 60px 20px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .header ul.list.open {
    visibility: visible;
    opacity: 1;
  }
  .header ul.list li a {
    font-size: 20px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 2px;
  }
  .header ul.list li.active a {
    color: var(--primary-light) !important;
  }
}

/* ---------- 列表页分类筛选移动端 ---------- */
@media (max-width: 640px) {
  .classification .layout {
    padding: 8px 12px;
    border-radius: 10px;
  }
  .classification_one,
  .classification_two {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .classification span {
    font-size: 12px;
    margin-top: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    width: 40px;
  }
  .classification .cat-list li a,
  .classification ul li a {
    font-size: 12px;
    padding: 4px 10px;
  }
  .classification ul {
    width: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .classification ul li {
    margin: 4px 2px 0;
    float: none;
  }
  .classification .classification_one,
  .classification .classification_two {
    padding-bottom: 8px;
  }
}

/* ---------- 列表页 Tab 切换移动端 ---------- */
@media (max-width: 640px) {
  .tab {
    margin-top: 20px;
  }
  .tab .title {
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 4px;
  }
  .tab .title::-webkit-scrollbar {
    display: none;
  }
  .tab .title li {
    font-size: 14px;
    padding: 0 0 6px;
    flex-shrink: 0;
    float: none;
    margin-right: 0;
  }
  .tabList ul {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 4px;
  }
  .tabList ul li {
    margin-top: 20px;
  }
  .tabList ul li a.picBox {
    width: 100%;
  }
  .tabList ul li a.picBox img {
    width: 100%;
    aspect-ratio: 1/1.3;
    object-fit: cover;
    border-radius: 10px;
  }
  .tabList ul li a.picName {
    width: 100%;
    font-size: 13px;
  }
}

/* ---------- 详情页(美女图集)移动端优化 ---------- */
@media (max-width: 768px) {
  .gallery-view .layout {
    border-radius: 0;
    box-shadow: none;
  }
  .gallery-header h1 {
    font-size: 18px;
    line-height: 1.35;
  }
  .gallery-meta {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
  }
  .gallery-main {
    padding: 10px 0;
  }
  .gallery-image-wrapper {
    min-height: 280px;
    border-radius: 0;
  }
  .gallery-thumbs {
    padding: 0 0 12px;
  }
  .gallery-thumbs .thumb-item {
    width: 60px;
    height: 44px;
    border-width: 2px;
  }
  .gallery-footer {
    padding: 0 0 16px;
  }
  .gallery-desc {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* ---------- 详情页(头像)移动端优化 ---------- */
@media (max-width: 768px) {
  .avatar-view .layout {
    padding: 12px;
    border-radius: 0;
    box-shadow: none;
  }
  .avatar-header h1 {
    font-size: 18px;
  }
  .avatar-meta {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
  }
  .avatar-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .avatar-img-box {
    border-radius: 8px;
  }
}

/* ---------- 详情页灯箱移动端 ---------- */
@media (max-width: 768px) {
  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
  .lightbox-counter {
    display: none;
  }
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 32px;
  }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}

/* ---------- 详情页相关推荐移动端 ---------- */
@media (max-width: 640px) {
  .xgtj {
    padding: 20px 0;
    margin-top: 16px;
  }
  .xgtj h2 {
    font-size: 17px;
    padding: 0 12px;
  }
  .xgtj ul {
    gap: 10px;
    padding: 0 4px;
    justify-content: flex-start;
  }
  .xgtj ul li {
    width: calc(50% - 10px);
    text-align: center;
  }
  .xgtj ul li a.picBox {
    width: 100%;
    border-radius: 10px;
  }
  .xgtj ul li a.picBox img {
    width: 100%;
    aspect-ratio: 1/1.3;
    object-fit: cover;
    border-radius: 10px;
  }
}

/* ---------- 热门关键词移动端 ---------- */
@media (max-width: 640px) {
  .hotwords,
  .hotKeyword {
    margin-top: 20px;
  }
  .hotwords h2,
  .hotKeyword {
    font-size: 15px;
    padding: 0 12px;
  }
  .hotwords a,
  .hotKeyword a {
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* ---------- 面包屑 & 分页移动端 ---------- */
@media (max-width: 640px) {
  .position .layout {
    padding: 8px 12px;
    font-size: 12px;
  }
  .pages {
    margin: 20px 0 30px;
  }
  .pages a,
  .pages span {
    padding: 5px 10px;
    font-size: 12px;
    margin: 0 2px;
  }
  .load-more-btn {
    padding: 10px 28px;
    font-size: 13px;
    border-radius: 30px;
  }
}

/* ---------- 底部移动端 ---------- */
@media (max-width: 640px) {
  .footer {
    padding: 16px 12px;
    margin-top: 24px;
  }
  .footer p {
    font-size: 11px;
    line-height: 22px;
  }
}

/* ---------- 搜索页移动端 ---------- */
@media (max-width: 640px) {
  .article-content .layout {
    padding: 14px;
    border-radius: 0;
  }
  .article-content h1 {
    font-size: 18px;
  }
  .article-content p {
    font-size: 15px;
  }
}

/* ---------- 搜索框输入文字颜色 ---------- */
@media (max-width: 640px) {
  .header .searchText,
  .header-main .searchText {
    color: #333 !important;
  }
}

/* ============================================================
   通用全屏灯箱
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background .2s;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.18); }
.lightbox-counter {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.4);
  padding: 6px 18px;
  border-radius: 40px;
}
.lightbox-image-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lightbox-image {
  max-width: 92%;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  border-radius: 50%;
  transition: all .25s;
  user-select: none;
  z-index: 5;
}
.lightbox-prev:hover, .lightbox-next:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* 灯箱响应式 */
@media (max-width: 768px) {
  .gallery-header { padding: 16px 16px 0; }
  .gallery-header h1 { font-size: 18px; }
  .gallery-main { padding: 12px 12px; }
  .gallery-image-wrapper { min-height: 250px; }
  .gallery-nav-left, .gallery-nav-right { width: 50px; }
  .gallery-thumbs { padding: 0 12px 12px; }
  .gallery-thumbs .thumb-item { width: 64px; height: 44px; }
  .gallery-footer { padding: 0 16px 16px; }

  .avatar-view .layout { padding: 16px; }
  .avatar-header h1 { font-size: 18px; }
  .avatar-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; font-size: 36px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 22px; }
  .lightbox-counter { font-size: 13px; padding: 4px 14px; }
}

/* ============================================================
   旧模板分类样式(兼容新版CSS)
   ============================================================ */
.floatL { float: left; }
.floatR { float: right; }
.clearfix::after { content: ''; clear: both; display: block; }

.classification {
    width: 100%;
    height: 100%;
    margin-top: 25px;
}
.classification .layout {
    width: 1160px;
    background: #fff;
    box-shadow: 0px 0px 10px 5px #f8f8f8;
    padding: 10px 20px 20px 20px;
    border-radius: 10px;
}
.classification span {
    font-size: 16px;
    color: #8d8d8d;
    margin-top: 15px;
    margin-right: 2px;
}
.classification ul {
    width: 1110px;
}
.classification ul li {
    font-size: 16px;
    color: #4b4b4b;
    float: left;
    cursor: pointer;
    border-radius: 20px;
    text-align: center;
    margin: 10px 10px 0px 10px;
}
.classification ul li.active a { color: #fff; }
.classification ul li a {
    font-size: 16px;
    color: #4b4b4b;
    padding: 6px 13px;
    display: block;
}
.classification ul li a:hover { color: #fff !important; }
.classification ul li:hover,
.classification ul li.active {
    background: #39afff;
    color: #fff;
}
.classification ul li:hover a { color: #fff !important; }
.classification_one { border-bottom: 1px solid #f1f1f1; padding-bottom: 15px; }
.classification_two { padding: 10px 0px 15px 0px; border-bottom: 1px solid #f1f1f1; }
.classification_three { padding-top: 10px; }

/* 分类列表 - 支持column-count瀑布流 */
.classification_list {
    width: 100%;
    height: 100%;
    margin-top: 30px;
}
.classification_list ul.classification_listContent {
    column-count: 5;
    column-gap: 24px;
    margin-top: 30px;
}
.classification_list ul.classification_listContent li {
    width: 100%;
    display: inline-block;
    margin-bottom: 24px;
    break-inside: avoid;
    text-align: center;
}
.classification_list ul.classification_listContent li a.picBox {
    width: 100%;
    height: auto;
}
.classification_list ul.classification_listContent li a.picBox img {
    width: 100%;
    border-radius: 5px;
}

/* 分页 */
.pages {
    text-align: center;
    margin: 30px 0 50px;
}
.pages a, .pages span {
    display: inline-block;
    padding: 6px 14px;
    margin: 0 3px;
    font-size: 14px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: all .2s;
}
.pages a:hover {
    background: #3b82f6;
    color: #fff !important;
    border-color: #3b82f6;
}
.pages span {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* Tab切换 */
.tab {
    margin-top: 40px;
}
.tab .title li {
    font-size: 22px;
    color: #666;
    float: left;
    cursor: pointer;
    margin-right: 40px;
}
.tab .title li:hover,
.tab .title li.active { color: #35b6ff; }
.tabList ul {
    display: none;
    justify-content: space-between;
    flex-wrap: wrap;
}
.tabList ul:first-of-type { display: flex; }
.tabList ul li {
    position: relative;
    margin-top: 35px;
    text-align: center;
}
.tabList ul li a img {
    width: 215px;
    border-radius: 5px;
}
.tabList ul li a p {
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 40px;
    position: absolute;
    bottom: 0px;
    border-radius: 0px 0px 5px 5px;
    font-size: 14px;
    color: #fff;
    line-height: 40px;
    text-align: center;
}

/* 热门关键词 */
.hotwords {
    width: 100%;
    margin-top: 50px;
}
.hotwords h2 {
    font-size: 22px;
    color: #35b6ff;
}
.hotwords a, .hotKeyword a {
    display: inline-block;
    padding: 6px 16px;
    margin: 0 6px 10px 0;
    background: #f8fafc;
    border-radius: 40px;
    font-size: 13px;
    color: #94a3b8;
    transition: all .25s;
}
.hotwords a:hover, .hotKeyword a:hover {
    background: #3b82f6;
    color: #fff !important;
}

/* 加载更多 */
.load-more-btn {
    padding: 12px 40px;
    border-radius: 40px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 15px;
    color: #475569;
    cursor: pointer;
    transition: all .3s;
}
.load-more-btn:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}
.load-more-section { text-align: center; margin-top: 30px; }

/* 旧列表中的picBox */
a.picBox {
    display: block;
    overflow: hidden;
    text-align: center;
    border-radius: 5px;
    transition: transform .3s ease-in-out,translateY .3s ease-in-out,box-shadow .3s ease-in-out;
}
a.picBox:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 8px rgba(102,102,102,0.4);
}
a.picBox img {
    border-radius: 5px;
    transition: all 1s;
}
a.picBox img:hover { transform: scale(1.1); }

.picName {
    font-size: 14px;
    color: #666;
    line-height: 14px;
    margin-top: 10px;
    overflow: hidden;
    line-height: 22px;
    white-space: nowrap;
    display: block;
    text-align: center;
}
