/* 全局重置与基础样式 */
:root {
  --body-bg: #f5f5f5;
  --card-bg: #ffffff;
  --text-color: #333333;
  --text-gray: #666666;
  --border-color: #eeeeee;
  --theme-color: #ff6a00;
  /* 页脚专属深色变量 */
  --footer-bg: #1a1a1a;
  --footer-text: #cccccc;
  --footer-title: #ffffff;
}
/* 夜间模式变量 */
body.dark-mode {
  --body-bg: #121212;
  --card-bg: #1e1e1e;
  --text-color: #eeeeee;
  --text-gray: #aaaaaa;
  --border-color: #2d2d2d;
  /* 夜间页脚加深适配 */
  --footer-bg: #0f0f0f;
  --footer-text: #b0b0b0;
  --footer-title: #f5f5f5;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--body-bg) !important;
  transition: background 0.3s ease;
}

/* 页面头部 */
.page-header {
  background: linear-gradient(135deg, #ff7a2f, #ff5500);
  color: #fff;
  text-align: center;
  padding: 40px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-desc {
  font-size: 16px;
  opacity: 0.9;
}

/* 夜间模式按钮适配 */
body.dark-mode .theme-switch {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}

/* 筛选栏 */
.filter-bar {
  margin-bottom: 25px;
}

.filter-label {
  font-size: 16px;
  color: #333;
  line-height: 38px;
  margin-right: 10px;
}

#categoryBtns .layui-btn {
  border-radius: 20px;
  padding: 0 20px;
  text-decoration: none;
}

#categoryBtns .layui-btn.active {
  background-color: #ff5500 !important;
  border-color: #ff5500 !important;
}

/* 图片列表容器 */
.gallery-wrapper {
  min-height: 500px;
}

/* 图片卡片样式 */
.gallery-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 15);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-title {
  padding: 12px 15px;
  font-size: 15px;
  color: #333;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 分页样式 */
.page-container {
  text-align: center;
  margin: 40px 0;
}

/* 懒加载图片过渡 */
.lazy-img {
  transition: opacity 0.5s ease;
  opacity: 0.8;
}
.lazy-img.loaded {
  opacity: 1;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .page-title {
    font-size: 26px;
  }
  
  .card-img {
    height: 160px;
  }
  
  #categoryBtns .layui-btn {
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (max-width: 450px) {
  .filter-label {
    display: block;
    margin-bottom: 10px;
  }
}
/* ======================
   ThinkPHP5.1 分页样式美化（橙色主题，直接生效）
====================== */
.pagination {
  margin: 30px 0;
  text-align: center;
  list-style: none;
  padding: 0;
}
.pagination li {
  display: inline-block;
  margin: 0 4px;
  vertical-align: middle;
}
.pagination li a,
.pagination li span {
  display: inline-block;
  min-width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  text-decoration: none;
  padding: 0 10px;
  border: none;
}

/* 当前页高亮 */
.pagination li.active span {
  background: #ff6a00 !important;
  color: #fff !important;
  font-weight: bold;
  box-shadow: 0 3px 8px rgba(255,106,0,0.3);
}

/* 悬浮效果 */
.pagination li a:hover {
  background: #ff6a00;
  color: #fff;
}

/* 禁用状态 */
.pagination li.disabled span {
  background: #f5f5f5;
  color: #ccc;
  box-shadow: none;
}

/* 响应式：手机端 */
@media (max-width: 768px) {
  .pagination li a,
  .pagination li span {
    min-width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 12px;
    margin: 0 2px;
    padding: 0 6px;
  }
  .pagination {
    margin: 20px 0;
  }
}
/* ==============================================
   全新升级 全屏深色Footer页脚（带图标、高端质感）
   全屏通宽、日夜适配、图标点缀、全站统一
   ============================================== */
.footer {
  width: 100%;
  margin-top: 60px;
  padding: 40px 0;
  background: var(--footer-bg);
  border-top: none;
  text-align: center;
  transition: all 0.3s ease;
  /* 强制全屏通宽，消除边距 */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
}
.footer .footer-text {
  font-size: 14px;
  color: var(--footer-text);
  line-height: 2;
}
.footer .footer-text .footer-logo {
  font-size: 28px;
  color: var(--theme-color);
  margin-bottom: 10px;
  display: block;
}
.footer .footer-text .footer-desc {
  color: var(--footer-text);
  margin-bottom: 15px;
  font-size: 13px;
}
.footer .footer-text a {
  color: var(--theme-color);
  text-decoration: none;
  margin: 0 5px;
}
.footer .footer-text a:hover {
  text-decoration: underline;
}
.footer .footer-icon {
  display: inline-block;
  font-size: 16px;
  margin-right: 6px;
  color: var(--theme-color);
}

/* 响应式适配 */
@media (max-width: 768px) {
  .theme-switch {
    right: 15px;
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 16px;
  }
  .detail-title {
    font-size: 20px;
  }
  .detail-meta {
    gap: 10px;
  }
  .detail-page-box {
    gap: 15px;
  }
  .page-btn {
    padding: 8px 15px;
    font-size: 14px;
  }
  .footer {
    margin-top: 40px;
    padding: 25px 0;
  }
  .footer .footer-text {
    font-size: 12px;
    line-height: 1.8;
  }
  .footer .footer-text .footer-logo {
    font-size: 24px;
  }
}

/* 夜间模式面板阴影加深 */
body.dark-mode .detail-info-card,
body.dark-mode .detail-img-box,
body.dark-mode .page-btn {
  box-shadow: 0 3px 15px rgba(0,0,0,0.3);
}
/* 头部顶部区域重构 */
.page-header {
  position: relative;
  padding: 30px 0;
  background: linear-gradient(135deg, #ff6a00, #ff8833);
  overflow: hidden;
}
.header-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-title-box {
  color: #fff;
}
.page-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 8px 0;
  color: #fff;
}
.page-desc {
  font-size: 15px;
  margin: 0;
  color: rgba(255,255,255,0.9);
}

/* 日夜按钮专属定位优化 */
.theme-switch {
  position: relative;
  right: 0;
  top: 0;
  transform: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  text-align: center;
  line-height: 42px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 99;
  font-family: layui-icon !important;
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}
.theme-switch:hover {
  background: rgba(255, 255, 255, 0.45) !important;
  transform: scale(1.05);
}
body.dark-mode .theme-switch {
  background: rgba(255,255,255,0.2) !important;
}

/* ========== 全新热搜导航栏【醒目独立分区】 ========== */
.header-nav {
  width: 100%;
  margin-bottom: 30px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: relative;
  z-index: 10;
}
.nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 15px 15px;
}
.nav-item {
  display: inline-block;
  padding: 7px 18px;
  color: #333;
  font-size: 14px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.25s ease;
  font-weight: 500;
}
/* 选中/悬浮高亮（主题色强化，超高辨识度） */
.nav-item.active,
.nav-item:hover {
  background: #ff6a00;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(255, 106, 0, 0.25);
}

/* ========== 夜间模式导航适配 ========== */
body.dark-mode .header-nav {
  background: #1e1e1e;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
body.dark-mode .nav-item {
  color: #eeeeee;
}

/* ========== 响应式手机端优化（杜绝拥挤凌乱） ========== */
@media (max-width: 768px) {
  .page-header {
    padding: 20px 0;
  }
  .page-title {
    font-size: 22px;
  }
  .page-desc {
    font-size: 13px;
  }
  .theme-switch {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 16px;
  }
  .nav-inner {
    gap: 6px;
    padding: 12px 10px;
  }
  .nav-item {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
  }
}