/* 日夜模式全局变量 - 原版默认 */
: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;
}

/* 全局适配日夜模式 */
body {
  background-color: var(--body-bg) !important;
  transition: background 0.3s ease;
}

/* ==============================================
   【修复BUG】日夜切换按钮 - 原版还原+日间可见
   解决：日间透明看不见、太阳图标不显示
   ============================================== */
.theme-switch {
  position: absolute;
  right: 30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 99;
  font-family: layui-icon !important;
}

/* 日间模式：头部橙色背景，白色图标，正常可见 */
.page-header .theme-switch {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}
.page-header .theme-switch:hover {
  background: rgba(255, 255, 255, 0.45) !important;
}


/* 面包屑导航 */
.breadcrumb-box {
  padding: 20px 0;
  font-size: 14px;
}
.breadcrumb-box a {
  color: var(--text-gray);
  text-decoration: none;
}
.breadcrumb-box a:hover {
  color: var(--theme-color);
}
.breadcrumb-box span {
  margin: 0 8px;
  color: var(--text-gray);
}
.breadcrumb-box .current {
  color: var(--theme-color);
}

/* ==============================================
   【原版样式还原】图集信息白色圆角面板
   ============================================== */
.detail-info-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  transition: all 0.3s;
}
.detail-title {
  font-size: 24px;
  color: var(--text-color);
  margin-bottom: 15px;
  font-weight: bold;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.meta-item {
  font-size: 14px;
  color: var(--text-gray);
}
.meta-item i {
  margin-right: 5px;
  color: var(--theme-color);
}
.tag-item {
  background: rgba(255,106,0,0.1);
  color: var(--theme-color) !important;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ==============================================
   【原版样式还原】图片白色圆角面板
   ============================================== */
.detail-img-box {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
  margin-bottom: 25px;
  transition: all 0.3s;
}
.detail-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  object-fit: contain;
}

/* 图片分页按钮 */
.detail-page-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 30px 0;
}
.page-btn {
  display: inline-block;
  padding: 10px 25px;
  background: var(--card-bg);
  color: var(--text-color);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
}
.page-btn:hover {
  background: #ff6a00;
  color: #fff;
}
.page-tips {
  font-size: 16px;
  color: var(--text-gray);
  font-weight: 500;
}

/* 返回按钮 */
.back-list-box {
  text-align: center;
  margin: 40px 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);
}
