@charset "utf-8";
/*=========================================================
 *  NewDown 主题 - 黑暗模式样式
 *  当 <body> 有 class="dark-mode" 时生效
 *=========================================================*/

/* ---------- 整体底色 ---------- */
.dark-mode,
.dark-mode body {
  color: #c8d0d8;
  background-color: #1a1d23 !important;
}

/* ---------- 容器卡片 ---------- */
.dark-mode .header {
  background: rgba(30, 33, 40, 0.92) !important;
  backdrop-filter: blur(20px);
}
.dark-mode .fixedbar {
  box-shadow: 0 0 2px rgba(0,0,0,.5);
}
.dark-mode .focus-bot,
.dark-mode .mtoprt .dt,
.dark-mode .inews,
.dark-mode .cmslist,
.dark-mode .vplist li,
.dark-mode .loglist li.con,
.dark-mode .logbox,
.dark-mode .pagenow,
.dark-mode #sidebar .function,
.dark-mode .list-iamges {
  background: #262a33 !important;
}

/* ---------- 文字颜色 ---------- */
.dark-mode,
.dark-mode .logbox > h1,
.dark-mode .loglist li.con h4 a,
.dark-mode .cdtit h3,
.dark-mode .inews li .b,
.dark-mode .mlogo,
.dark-mode .mlogo a,
.dark-mode .vplist li h4 a,
.dark-mode .cmslist li a.t,
.dark-mode .mtoprt .dt dd h3,
.dark-mode #sidebar .function_t,
.dark-mode .focus-bot .tit h3,
.dark-mode .navbar li a,
.dark-mode .header .mlogo::after,
.dark-mode .commentname,
.dark-mode #divCalendar caption,
.dark-mode .logbox .data {
  color: #c8d0d8 !important;
}

/* ---------- 链接颜色 ---------- */
.dark-mode a {
  color: #7ab8ff;
}
.dark-mode a:hover {
  color: #4a9eff;
}

/* ---------- 输入框 ---------- */
.dark-mode .topsh .sint {
  background: #363a45;
  color: #ccc;
  border-color: transparent;
}
.dark-mode .topsh .sint:focus {
  background: #2d313b;
  border-color: #ff5858;
}

/* ---------- 边框/分割线 ---------- */
.dark-mode .cdtit {
  border-bottom-color: #363a45 !important;
}
.dark-mode .focus-bot .rank li,
.dark-mode .mtoprt .dt dt,
.dark-mode .loglist li.con .des .text,
.dark-mode .nextlog > div,
.dark-mode .vplist li .text,
.dark-mode #sidebar .function_t,
.dark-mode .logbox .data,
.dark-mode .cmslist li,
.dark-mode .cmt-post p {
  border-color: #363a45 !important;
}
.dark-mode .vplist li .text {
  border-top-color: #363a45 !important;
}
.dark-mode .nextlog .prev {
  border-bottom-color: #363a45 !important;
  box-shadow: 0 1px 0 #2a2e38 !important;
}
.dark-mode .mtoprt .dt dt::after {
  border-right-color: #363a45;
}
.dark-mode .pagenow span {
  color: #666;
}

/* ---------- 背景色微差（列表交替） ---------- */
.dark-mode .cmslist li:nth-child(even) {
  background-image: linear-gradient(to right, #262a33, #2d313b, #2d313b, #262a33) !important;
}
.dark-mode .inews li:nth-child(4n+3),
.dark-mode .inews li:nth-child(4n+4) {
  background: rgba(255,255,255,.04) !important;
}
.dark-mode #sidebar .function_c > ul > li {
  border-bottom-color: #2d313b;
  box-shadow: 0 1px 0 #2a2e38;
}

/* ---------- 分页 ---------- */
.dark-mode #pagenavi a {
  color: #7ab8ff;
  border-color: #3a3f4d;
  background: #262a33;
}
.dark-mode #pagenavi a:hover {
  color: #fff;
  border-color: #ff5858;
  background: #ff5858;
}
.dark-mode #pagenavi > span {
  color: #fff;
  border-color: transparent;
  background: #ff5858;
}

/* ---------- 自定义分页 ---------- */
.dark-mode .nd-page-info {
  background: #2d313b;
  color: #888;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* ---------- 首页最新内容翻页 ---------- */
.dark-mode .inpr span {
  background: #2d313b;
  border-color: #3a3f4d;
  color: #b0b8c4;
}
.dark-mode .inpr span:hover {
  background: #363a45;
  border-color: #7ab8ff;
  color: #7ab8ff;
}

/* ---------- 页脚 ---------- */
.dark-mode #footerbar {
  background: #111317;
}

/* ---------- 标签/热门 ---------- */
.dark-mode .mtoprt .dt dd p a {
  background: #2d313b;
  color: #aaa;
}
.dark-mode .mtoprt .dt dd p a:hover {
  color: #fff;
  background: #ff5858;
}

/* ---------- 评论 ---------- */
.dark-mode #sidebar #divComments .function_c>ul>li {
  background: #2d313b;
}
.dark-mode .cmt-post p {
  background: #2d313b;
  border-color: #3a3f4d;
}
.dark-mode .cmt-post p input {
  background: #262a33;
  color: #ccc;
}
.dark-mode .cmt-post .cpost {
  background-image: linear-gradient(to bottom, #2d313b, #262a33);
  border-color: #3a3f4d;
}
.dark-mode .cmt-post .cpost .button,
.dark-mode .cmt-post .cpost i.fa {
  background-image: linear-gradient(#3a3f4d, #3a3f4d 25%, #2d313b);
  border-color: #4a4f5d;
  color: #ccc;
}
.dark-mode #txaArticle {
  background: #262a33;
  border-color: #3a3f4d;
  color: #ccc;
}

/* ---------- 侧边栏 ---------- */
.dark-mode #divCalendar th,
.dark-mode #divCalendar td {
  border-color: #363a45;
}
.dark-mode #divSearchPanel input[type=text] {
  background: #2d313b;
  border-color: #3a3f4d;
  color: #ccc;
}

/* ---------- 轮播图页码 ---------- */
.dark-mode .swiper-pagination-bullet {
  background: rgba(255,255,255,.5);
}

/* ---------- 热门标签颜色保留 ---------- */
.dark-mode #divTags .function_c>ul>li a {
  color: #fff !important;
}

/* ---------- 登录页面 ---------- */
.dark-mode .cate-banner {
  background: #1a1d23;
}

/* ---------- 滚动条 ---------- */
.dark-mode ::-webkit-scrollbar-track {
  box-shadow: 1px 1px 5px rgba(0,0,0,.3) inset;
}
.dark-mode ::-webkit-scrollbar-thumb {
  background-color: #3a3f4d;
}

/* ---------- 黑暗模式切换按钮 ---------- */
.nd-dark-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 8px;
  color: #888;
  font-size: 18px;
  background: #f2f2f2;
  border-radius: 50%;
  cursor: pointer;
  border: 0;
  transition: all .3s ease;
  vertical-align: middle;
  line-height: 1;
}
.nd-dark-toggle:hover {
  color: #ff5858;
  background: #e8e8e8;
  transform: rotate(15deg);
}
.dark-mode .nd-dark-toggle {
  color: #ffd700;
  background: #363a45;
}
.dark-mode .nd-dark-toggle:hover {
  color: #ffed4a;
  background: #4a4f5d;
}

/* ---------- 广告/iframe暗色 ---------- */
.dark-mode .imoney img,
.dark-mode .imoney a img {
  filter: brightness(.85);
}

/* ---------- 搜索框适配 ---------- */
.dark-mode .topsh.mbs::after {
  background: rgba(0,0,0,.8);
}
