/* 全站黑暗模式 */
html.mhf-dark {
	background: #111 !important;
	color: #ddd !important;
	color-scheme: dark;
}
html.mhf-dark body {
	background: #111 !important;
	color: #ddd !important;
}
html.mhf-dark table,
html.mhf-dark tbody,
html.mhf-dark thead,
html.mhf-dark tfoot {
	background-color: #181818 !important;
	color: #ddd !important;
	border-color: #555 !important;
}
html.mhf-dark tr {
	background-color: transparent !important;
	color: #ddd !important;
}
html.mhf-dark th {
	background-color: #262626 !important;
	color: #eee !important;
	border-color: #555 !important;
}
html.mhf-dark td {
	background-color: #181818 !important;
	color: #ddd !important;
	border-color: #555 !important;
}
html.mhf-dark div,
html.mhf-dark span,
html.mhf-dark p,
html.mhf-dark ul,
html.mhf-dark ol,
html.mhf-dark li,
html.mhf-dark dl,
html.mhf-dark dt,
html.mhf-dark dd,
html.mhf-dark form,
html.mhf-dark fieldset,
html.mhf-dark legend,
html.mhf-dark center {
	background-color: transparent !important;
	color: inherit !important;
}
html.mhf-dark h1,
html.mhf-dark h2,
html.mhf-dark h3,
html.mhf-dark h4,
html.mhf-dark h5,
html.mhf-dark h6,
html.mhf-dark strong,
html.mhf-dark b {
	color: #f2f2f2 !important;
}
html.mhf-dark a {
	color: #8ab4f8 !important;
}
html.mhf-dark a:visited {
	color: #c7a8ff !important;
}
html.mhf-dark a:hover {
	color: #b9d2ff !important;
}
html.mhf-dark input,
html.mhf-dark select,
html.mhf-dark textarea,
html.mhf-dark button {
	background-color: #222 !important;
	color: #eee !important;
	border-color: #666 !important;
}
html.mhf-dark option {
	background-color: #222 !important;
	color: #eee !important;
}
html.mhf-dark optgroup {
	background-color: #1f3a1f !important;
	color: #cfeccf !important;
}
html.mhf-dark optgroup option {
	background-color: #222 !important;
	color: #eee !important;
}
html.mhf-dark #f_con1 optgroup,
html.mhf-dark #f_con2 optgroup {
	background-color: #1f3a1f !important;
	color: #cfeccf !important;
}
html.mhf-dark #f_con1 optgroup option,
html.mhf-dark #f_con2 optgroup option {
	background-color: #222 !important;
	color: #eee !important;
}
html.mhf-dark hr {
	border-color: #555 !important;
}
html.mhf-dark img {
	background: transparent !important;
}

/* 通用颜色类在深色背景下的可读性 */
html.mhf-dark .r { color: #ff7b7b !important; }
html.mhf-dark .b { color: #7cb7ff !important; }
html.mhf-dark .g { color: #8ee88e !important; }
html.mhf-dark .y { color: #ffe36e !important; }
html.mhf-dark .a { color: #8ff3f3 !important; }
html.mhf-dark .p { color: #ff9cf3 !important; }
html.mhf-dark .w { color: #fff !important; }

/* 技能模拟器弹窗 */
html.mhf-dark #seriesWindow,
html.mhf-dark #decoWindow,
html.mhf-dark #nameSearchBox {
	background: #1e1e1e !important;
	color: #ddd !important;
	border-color: #666 !important;
	box-shadow: 0 6px 24px rgba(0,0,0,.7) !important;
}
html.mhf-dark #seriesClose,
html.mhf-dark #decoClose {
	background: #333 !important;
	color: #eee !important;
	border-color: #666 !important;
}
html.mhf-dark .series-cat {
	color: #f0c674 !important;
	border-left-color: #f0c674 !important;
}
html.mhf-dark .series-item {
	background: #2a2a2a !important;
	color: #9fc4ff !important;
	border-color: #555 !important;
}
html.mhf-dark .series-item:hover {
	background: #35435a !important;
	border-color: #7c9ccf !important;
}
html.mhf-dark .series-item.reset {
	background: #333 !important;
	color: #ddd !important;
}
html.mhf-dark #decoWindow input.decoRemove {
	background: #3a2020 !important;
	color: #ff9b9b !important;
	border-color: #8a4a4a !important;
}
html.mhf-dark #seriesPicker {
	background: #222 !important;
	color: #eee !important;
	border-color: #666 !important;
}
html.mhf-dark #nameSearchInput {
	background: #222 !important;
	color: #eee !important;
	border-color: #666 !important;
}
html.mhf-dark #nameSearchInput::placeholder {
	color: #999 !important;
}

/* 左亮右暗切换开关 */
#mhf-dark-switch {
	display: flex;
	width: max-content;
	margin: 3px 0 2px 2px;
	clear: both;
	border: 1px solid #888;
	overflow: hidden;
	vertical-align: middle;
	white-space: nowrap;
}
#mhf-dark-switch button {
	display: inline-block;
	flex: 0 0 auto;
	margin: 0;
	padding: 1px 3px;
	border: 0;
	border-right: 1px solid #aaa;
	background: #f2f2f2;
	color: #333;
	font-size: 11px;
	line-height: 17px;
	cursor: pointer;
}
#mhf-dark-switch button:last-child { border-right: 0; }
#mhf-dark-switch button.active {
	background: #3b6ea5;
	color: #fff;
	font-weight: bold;
}
html.mhf-dark #mhf-dark-switch { border-color: #777; }
html.mhf-dark #mhf-dark-switch button {
	background: #222 !important;
	color: #ddd !important;
	border-right-color: #555;
}
html.mhf-dark #mhf-dark-switch button.active {
	background: #f0c674 !important;
	color: #111 !important;
}
#mhf-dark-switch.mhf-dark-switch-floating {
	position: fixed;
	right: 8px;
	bottom: 8px;
	z-index: 2147483647;
	margin: 0;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
html.mhf-dark #mhf-dark-switch.mhf-dark-switch-floating { background: #222; }

/* 武器一览：保留近战武器斩味条颜色 */
html.mhf-dark table#ken ul {
	background-color: slategray !important;
}
html.mhf-dark table#ken li.R { background-color: red !important; }
html.mhf-dark table#ken li.O { background-color: orange !important; }
html.mhf-dark table#ken li.Y { background-color: yellow !important; }
html.mhf-dark table#ken li.G { background-color: lime !important; }
html.mhf-dark table#ken li.B { background-color: blue !important; }
html.mhf-dark table#ken li.W { background-color: white !important; }
html.mhf-dark table#ken li.P { background-color: violet !important; }
