/**
 * 夜间模式
 * 仅作用于夜间模式
 */
/** 夜间按钮 **/
.m-moon {
	position: relative;
	width: 12px;
	height: 12px;
	display: block;
	margin: 16px auto;
	overflow: hidden;
	background: #777;
	border-radius: 50%;
	border: 1px solid #777;
}

.m-moon span {
	position: absolute;
	top: 0;
	right: -7px;
	width: 12px;
	height: 12px;
	background: #fff;
}

.night .m-moon span {
	background: #e1e1e1;
	right: -6px;
}

.night-day .m-moon {
	background: #666;
}

.night .night-day .m-moon {
	background: #fbc02d;
}

.m-moon span {
	background: #fff;
}

.night-day:hover .m-moon {
	background: var(--be-fd-white);
	border: none;
}

.night-day:hover .m-moon span {
	right: -6px;
	background: #fbc02d;
	border: 1px solid #fbc02d;
}

.d-moon {
	position: absolute;
	width: 12px;
	height: 12px;
	margin: 16px auto;
	left: 50%;
	border-radius: 50%;
	transform: translateX(-50%);
	background: #fbc02d;
}

.night .m-moon {
	background: #ffffff;
	border: none;
}

/** 主菜单夜间按钮 **/
.nav-theme-toggle {
	width: 30px;
	height: 18px;
	border-radius: 18px;
	border: none;
	background: rgba(0, 0, 0, 0.3);
	position: relative;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	margin: 0 5px;
	padding: 0;
	transition: background-color 0.3s ease;
	will-change: background-color;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	outline: none;
	z-index: 5;
}

.nav-theme-toggle::before {
	content: "";
	position: absolute;
	left: 3px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--be-bg-white);
	transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), background-color 0.3s ease;
	will-change: transform, background-color;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

body.night .nav-theme-toggle {
	background: var(--be-bg-body);
}

body.night .nav-theme-toggle::before {
	-webkit-transform: translate3d(12px, 0, 0);
	transform: translate3d(12px, 0, 0);
	background: #fbc02d;
}

/** 过渡动画 **/
.night-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 9999;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.night-wrapper.active {
	opacity: 1;
}

.night-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transition: transform 0.6s ease-in-out;
	transform: translateX(-100%);
	background: rgba(185, 194, 201, 0.85);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.night-slide.slide-in {
	transform: translateX(0);
}

.night-slide.slide-out {
	transform: translateX(100%);
}

.night-slide.to-night {
	background: rgba(43, 48, 52, 0.85);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

/* 夜间模式背景图变暗 */
.night .g-row[style*="background"] {
	box-shadow: inset 0 0 0 9999px rgba(38, 38, 38, 0.9);
}

/** 夜间全局 **/
.night {
	--be-bg-glass: rgba(54, 60, 65, 0.8);
	--be-bg-glass-3: rgba(54, 60, 65, 0.3);
	--be-bg-glass-m: rgba(43, 48, 52, 0.85);
	--be-glass-std: rgba(43, 48, 52, 0.85);
	--be-bg-grey-top-std: rgba(43, 48, 52, 0.5);
	--be-bg-user-info: linear-gradient(to bottom, #3c4247, rgba(43, 48, 52, 0.8), rgba(43, 48, 52, 0.8));
	--be-bg-cover: linear-gradient(to right, rgba(43, 48, 52, .3) 0%, rgba(30, 95, 116, .1) 100%);
	--be-bg-glass-s: rgba(0, 0, 0, 0.95);
	--be-bg-glass-g: rgba(0, 0, 0, 0.2);
	--be-bg-glass-t: rgba(54, 60, 65, 0.8);
	--be-light: rgba(54, 60, 65, 0);
	--be-real: rgba(54, 60, 65, 0.65);
	--be-bg-fo: rgba(54, 60, 65, 0.8);
	--be-bg-search: rgba(43, 48, 52, 0.8);
	--be-shadow: rgba(72, 80, 87, 0.3) inset;
	--be-shadow-white: rgba(255, 255, 255, 0.3) inset;
	--be-bg-fancybox: rgba(43, 48, 52);
	--be-body: #aab2b8;
	--be-m-arrow: #aab2b8;
	--be-m-sdt-arrow: #aab2b8;
	--be-m-sdt-a: #aab2b8;
	--be-m-a: #aab2b8;
	--be-bg-body: #2b3034;
	--be-bg-nav-white: #3c4247;
	--be-bg-white: #3c4247;
	--line-odd-bg: #3c4247;
	--line-even-bg: #2b3034;
	--be-bg-white-l: #3c4247;
	--be-bg-eye: #3c4247;
	--be-bg-reading: #2b3034;
	--be-bg-grey-top: #2b3034;
	--be-grey-top: #aab2b8;
	--be-bg-grey-f8: #30353a;
	--be-bg-grey-tab: #30353a;
	--be-bg-white-b: #2b3034;
	--be-bg-white-s: #3c4247;
	--be-bg-gradual: #3c4247;
	--be-border-grey: #3c4247;
	--be-border-white-at: #3c4247;
	--be-border-white-ak: #3c4247;
	--be-border-white-tab: #2b3034;
	--be-border-white-tab-t: #2b3034;
	--be-border-white: #3c4247;
	--be-border-fd: #3c4247;
	--be-border-z: #2b3034;
	--be-border-t: #2b3034;
	--be-border-x: #3c4247;
	--be-bg-pink-fd: #2b3034;
	--be-bg-pre: #2a2a2a;
	--be-border-dashed: #2b3034;
	--be-grey-3: #aab2b8;
	--be-grey-4: #aab2b8;
	--be-grey-5: #aab2b8;
	--be-grey-6: #aab2b8;
	--be-grey-7: #aab2b8;
	--be-grey-8: #aab2b8;
	--be-grey-9: #5e6870;
	--be-grey-c: #aab2b8;
	--be-bread: #aab2b8;
	--be-bg-grey-f1: #2b3034;
	--be-bg-grey-input: #2b3034;
	--be-border-grey-f1: #2b3034;
	--be-border-grey-d: #2b3034;
	--be-border-grey-be: #3d3d3d;
	--be-bg-search-wp: #2b3034;
	--be-site-n: #aab2b8;
	--be-site-d: #aab2b8;
	--be-arrow-w: #2b3034;
	--be-arrow-n: #3c4247;
	--be-white-fw: #aab2b8;
	--be-bg-grey-9: #3c4247;
	--be-bg-grey-a: #aab2b8;
	--be-white-a: #2b3034;
	--be-white: #f5f5f5;
	--be-fd-white: #f5f5f5;
	--be-std-top-white: #aab2b8;
	--be-bg-grey-3: #aab2b8;
	--be-bg-white-n: #2b3034;
	--be-bg-white-h: #2b3034;
	--be-pay-red: #884643;
	--be-search: #aab2b8;
	--be-bg-blue-d: #2b3034;
	--be-bg-grey-h: #2b3034;
	--be-bg-grey-e: #3c4247;
	--be-bg-grey-on: #000000;
	--be-bg-f9: #2b3034;
	--be-bg-btn26: #2b3034;
	--be-border-grey-9: #2b3034;
	--be-bg-tou: #2b3034;
	--be-bg-blue-r: #2b3034;
	--be-grey-coy: #2b3034;
	--be-grey-co: #2b3034;
	--be-grey-coh: #2b3034;
	--be-bg-nav-std: #3c4247;
	--be-admin: #aab2b8;
	--be-admin-btn: #f5f5f5;
	--be-admin-name: #aab2b8;
	--be-grey-nav-3: #aab2b8;
	--be-border-nav-b: #3c4247;
	--be-border-inf: #2b3034;
	--be-bg-cf: #2b3034;
	--be-bg-inf: #2b3034;
	--be-bg-cyan: #aab2b8;
	--be-footer-widget: rgba(43, 48, 52, 0.8);
	--be-wave-0: rgba(54, 60, 65, 0.7);
	--be-wave-3: rgba(54, 60, 65, 0.5);
	--be-wave-5: rgba(54, 60, 65, 0.3);
	--be-wave-7: rgba(54, 60, 65, 1);
}

body.night.custom-background {
	background-color: var(--be-bg-body);
}

.night .login-overlay {
	background: rgba(43, 48, 52, 0.85);
}

.night .entry-content .sharing-box .be-btn-beshare,
.night .reg-login-but:hover,
.night .menu-login-btu .nav-reg a,
.night .nice-select .list {
	background: var(--be-bg-body);
	color: var(--be-body) !important;
}

.night .menu-glass .menu-login-btu .nav-login-l a, 
.night .menu-glass .menu-login-btu .nav-login .show-layer {
	background: transparent;
	color: var(--be-body);
}

.night .entry-content .sharing-box .be-btn-beshare:hover,
.night .reg-login-but:hover,
.night .menu-login-btu .nav-reg a:hover,
.night .nice-select .list:hover,	
.night .menu-glass .menu-login-btu .nav-login-l a:hover, 
.night .menu-glass .menu-login-btu .nav-login .show-layer:hover {
	background: var(--be-bg-body);
}

.night .add-link-loading,
.night .add-link-tip {
	background: var(--be-bg-body) !important;
}

.night .off-search, .night .off-down {
	background: var(--be-bg-white);
}

.night .becclose,
.night .off-login {
	background: var(--be-bg-white);
}

.night .s-weixin-one {
	background: var(--be-bg-body);
}

.night .down-poster,
.night .shar-close {
	background: var(--be-bg-body);
	color: var(--be-white);
}

.night li.comment.buried {
	background: #2c2c2c;
}

.night .be-share-list a.share-logo,
.night .be-share-btn {
	background: var(--be-bg-body);
}

.night .logo-site img {
	-webkit-filter: brightness(1.8);
	filter: brightness(1.8);
}

.night .sign input[type="submit"],
.night .be-menu-widget .widget .menu-item-has-children>a i,
.night a.filter-tag:hover {
	color: #eff0f2;
}

.night .cat-rec-icon {
	color: #fff;
}

.night .meta-author-inf {
	background: var(--be-bg-white);
}

.night #sidr-main ul a {
	border-bottom: 1px solid var(--be-border-fd);
}

@media only screen and (min-width: 1025px) {
	.night .menu-mix>ul.sub-menu,
	.night .be-menu-code-small>ul.sub-menu,
	.night .be-menu-two-list>ul.sub-menu {
		background: linear-gradient(to right, #3c4247 50%, #2b3034 50%);
	}
}

/** 图片 **/
.night .owl-lazy,
.night .entry-content img,
.night .post-thumbnail img,
.night .thumbnail img,
.night a.thumbs-back {
	filter: brightness(0.85) saturate(0.85) contrast(0.95);
}

/* 编辑器夜间 */
.night .mce-container {
	background: var(--be-bg-body) !important;
}

.night .quicktags-toolbar,
.night .mce-container,
.night .mce-container *,
.night .mce-widget,
.night .mce-widget *,
.night .mce-reset,
.night .wp-switch-editor,
.night .tmce-active .switch-tmce,
.night .wp-core-ui .button {
	background: var(--be-bg-body) !important;
}

.night .mce-container::before {
	position: absolute;
	top: 0;
	left: 0;
	content: '';
	width: 100%;
	height: 100%;
	z-index: 1;
	opacity: 0.06;
	background: var(--be-bg-body);
	pointer-events: none;
}

.night .wp-core-ui .button,
.night .wp-core-ui .button-secondary {
	color: var(--be-body);
	border-color: var(--be-bg-body) !important;
}

.night .wp-editor-container {
	border: 1px solid var(--be-bg-body);
}

.night .mce-toolbar .mce-btn-group .mce-btn.mce-listbox {
	border: 1px solid var(--be-bg-body);
}

.night .wp-switch-editor {
	border: 1px solid var(--be-bg-body);
}

.night .html-active .switch-html,
.night .tmce-active .switch-tmce {
	border-bottom-color: var(--be-bg-body);
}

.night .wp-editor-area {
	background: var(--be-bg-body);
}

.night .quicktags-toolbar {
	border-bottom: 1px solid var(--be-bg-body);
}

.night #tinymce {
	background: #fff !important;
}

.night .mce-btn-group:not(:first-child) {
	border-left: 1px solid var(--be-bg-body);
}

.night .group-contact-more a,
.night .user-profile .bet-btn.submit,
.night a.bind-btn:hover {
	color: var(--be-white);
}

.night .apc-navigation .page-numbers:hover {
	background: var(--be-bg-body);
}

.night .placard-close,
.night .mark {
	background: var(--be-bg-body);
}

.night.group-nav .be-menu-main {
	background: var(--be-bg-glass);
}

.night .title-i span {
	background: var(--be-body);
	opacity: 0.6;
}

.night .grid-cat-title:hover .title-i span,
.night .cat-title:hover .title-i span,
.night .cat-square-title:hover .title-i span,
.night .widget-title:hover .title-i span,
.night .cat-grid-title:hover .title-i span,
.night .child-title:hover .title-i span {
	background: var(--be-body);
	opacity: 0.9;
}

.night .each-item-small .each-img .each-line {
	background: var(--be-body);
}

/* 原生控件跟随夜间 */
html[data-theme="dark"] {
	color-scheme: dark;
}

/* 键盘焦点可见 */
.nav-theme-toggle:focus-visible,
.night-main:focus-visible {
	outline: 2px solid #fbc02d;
	outline-offset: 2px;
}

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
	.night-wrapper,
	.night-slide,
	.nav-theme-toggle,
	.nav-theme-toggle::before {
		transition: none !important;
	}
}

/* 打印时恢复浅色 */
@media print {
	body.night,
	body.night * {
		background: transparent !important;
		color: #000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
	}

	body.night img {
		filter: none !important;
	}
}