/*! 基础工具类 */
/* Animations */
@keyframes shine {
  100% {
    left: 125%;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes layer-bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes layer-bounceOut {
  100% {
    opacity: 0;
    transform: scale(0.7);
  }
  30% {
    transform: scale(1.05);
  }
  0% {
    transform: scale(1);
  }
}
body {
  font-size: var(--font-size-base);
  color: var(--color-text);
  font-family: Penrose, "PingFang SC", "Hiragino Sans GB", Tahoma, Roboto, Arial, "Lantinghei SC", "Microsoft YaHei", "simsun", sans-serif;
}
body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-track {
  background: #f1f1f1;
}
body::-webkit-scrollbar-thumb {
  background: #c1c1c1 url('images/scrollbar-01.png') no-repeat center center;
  border-radius: 4px;
}
body::-webkit-scrollbar-thumb:vertical:hover {
  background-color: #a8a8a8;
}
body::-webkit-scrollbar-thumb:vertical:active {
  background-color: #787878;
}
a,
img,
button,
input,
textarea {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: background-color 0.15s linear, color 0.15s linear;
}
a:hover {
  color: var(--color-primary-hover);
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  transform: translateZ(0px);
  transition: transform 0.2s ease 0s;
}
@font-face {
  font-family: 'zblog';
  src: url('fonts/zblog.eot');
  src: url('fonts/zblog.eot?#iefix') format('embedded-opentype'), url('fonts/zblog.woff2') format('woff2'), url('fonts/zblog.woff') format('woff'), url('fonts/zblog.ttf') format('truetype'), url('fonts/zblog.svg#zblog') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
  /* 可选：防止文字闪烁 */
}
@font-face {
  font-family: 'din-bold';
  src: url('fonts/DINPro-Bold.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
.ico {
  width: 16px;
  height: 16px;
  margin-right: 14px;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
}
.ico::before {
  content: "\ed0f";
  font-size: 21px;
  color: var(--color-text);
  font-family: zblog;
}
.ico.ico-home::before {
  content: "\ec10";
}
.ico.ico-newpost::before {
  content: "\ec86";
}
.ico.ico-article::before {
  content: "\ecd3";
}
.ico.ico-page::before {
  content: "\eac2";
}
.ico.ico-category::before {
  content: "\f181";
}
.ico.ico-tag::before {
  content: "\f023";
}
.ico.ico-cmt::before {
  content: "\ef44";
}
.ico.ico-file::before {
  content: "\ea86";
}
.ico.ico-user::before {
  content: "\ea09";
}
.ico.ico-module::before {
  content: "\ee7f";
}
.ico.ico-theme::before {
  content: "\f1d5";
}
.ico.ico-plugin::before {
  content: "\f019";
}
.ico.ico-setting::before {
  content: "\f0e4";
}
.ico.ico-appstore::before {
  content: "\f3a7";
}
/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
.hide,
.hidden {
  display: none !important;
}
.zoom,
.inline-block {
  display: inline-block;
}
.nowrap {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.shadow {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
:root {
  --font-size-base: 16px;
  --color-primary: #0188fb;
  --color-primary-strong: #1d4ed8;
  --color-primary-hover: #3b82f6;
  --color-surface: #ffffff;
  --color-surface-muted: #f9fafb;
  --color-background: #ecedee;
  --color-text-strong: #111827;
  --color-text-muted: #6b7280;
  --color-border: #eaeaea;
  --color-border-input: #d1d5db;
  --color-border-hover: #9ca3af;
  --color-table-border: #eaeaea;
  --color-text: #333;
  --color-focus-ring: rgba(59, 130, 246, 0.15);
  --color-switch-off: #e5e7eb;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-btn: 0 4px 6px -1px rgba(37, 99, 235, 0.3), 0 2px 4px -1px rgba(37, 99, 235, 0.15);
  --shadow-btn-hover: 0 6px 8px -1px rgba(37, 99, 235, 0.4), 0 3px 6px -1px rgba(37, 99, 235, 0.2);
  --shadow-btn-active: 0 2px 4px -1px rgba(37, 99, 235, 0.3);
  --shadow-switch: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-switch-knob: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}
/* 显式强制暗色 */
.night {
  --color-primary: #2563eb;
  --color-primary-strong: #1d4ed8;
  --color-primary-hover: #3b82f6;
  --color-surface: #161616;
  --color-surface-muted: #242424;
  --color-background: #161616;
  --color-text: #d6d6d6;
  --color-text-strong: #f9fafb;
  --color-text-muted: #9ca3af;
  --color-border: #434343;
  --color-border-input: #475569;
  --color-border-hover: #64748b;
  --color-table-border: #334155;
  --color-focus-ring: rgba(59, 130, 246, 0.45);
  --color-switch-off: #374151;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-btn: 0 4px 6px -1px rgba(37, 99, 235, 0.35), 0 2px 4px -1px rgba(37, 99, 235, 0.2);
  --shadow-btn-hover: 0 6px 12px -2px rgba(37, 99, 235, 0.45), 0 3px 8px -2px rgba(37, 99, 235, 0.25);
  --shadow-btn-active: 0 2px 4px -1px rgba(37, 99, 235, 0.35);
  --shadow-switch: inset 0 2px 4px rgba(0, 0, 0, 0.35);
  --shadow-switch-knob: 0 1px 3px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
}
/*! 布局相关 */
.side {
  width: 180px;
  height: 100vh;
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
  position: fixed;
  display: flex;
  flex-direction: column;
  flex: none;
  transition: all 0.2s ease;
}
.side.on {
  width: 72px;
}
.side.on .menutitle {
  margin: 0;
  font-size: 0;
}
.side.on .menu li a {
  padding: 12px 0;
  font-size: 0;
  text-align: center;
}
.side.on .menu li a .ico {
  width: auto;
  height: auto;
  margin: 0;
}
.side.on .menu li a .ico::before {
  font-size: 24px;
}
.side.on .copyright {
  display: none;
}
.sideclose {
  display: none;
  cursor: pointer;
}
.sideclose::before {
  content: "\eb99";
  font-size: 30px;
  color: var(--color-text-muted);
  font-family: zblog;
}
.fademask.on {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: none;
}
.logo {
  height: 60px;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
  z-index: 99;
  flex: none;
}
.logo a {
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all ease 0.3s;
}
.logo a:before {
  content: '';
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 100%);
  position: absolute;
  top: 0;
  left: -75%;
  z-index: 2;
  display: block;
  transform: skewX(-17deg);
  pointer-events: none;
}
.logo a:hover::before {
  animation: shine 1s;
}
.logo a img {
  height: 33px;
  vertical-align: middle;
}
.logo a img:not(:first-child) {
  margin-left: 6px;
}
.logo a img.logolight {
  display: inline-block;
}
.night .logo a img.logolight {
  display: none;
}
.logo a img.logodark {
  display: none;
}
.night .logo a img.logodark {
  display: inline-block;
}
@media screen and (860px < width) {
  .on .logo a img:not(:first-child) {
    display: none;
  }
}
.menu {
  overflow-y: auto;
  scrollbar-width: none;
  flex: 1;
}
.menu ul {
  padding: 10px 16px;
}
.menu ul li:first-child {
  margin-top: 0;
}
.menu .menutitle {
  margin: 20px 0 8px;
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: bold;
  cursor: default;
  display: block;
}
.menu li {
  margin-bottom: 4px;
}
.menu li a {
  height: 40px;
  padding: 12px 10px 12px 20px;
  font-size: 16px;
  color: var(--color-text);
  line-height: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  border-radius: 14px;
  box-sizing: border-box;
  position: relative;
  display: block;
  transition: all 0.2s ease;
}
.menu li a:hover {
  background: var(--color-surface-muted);
}
.menu li.on a {
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 15%, var(--color-surface));
}
.menu li.on .ico::before {
  color: var(--color-primary);
}
.menuico {
  width: 38px;
  height: 38px;
  float: right;
  display: inline;
  border-radius: 2px;
  cursor: pointer;
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 28px;
  transform: translateY(-50%);
  transition: all 0.2s ease-in;
}
.menuico span {
  width: 21px;
  height: 2px;
  background-color: var(--color-text);
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  transform: translateX(-50%) translateY(-50%);
  transition: all 0.1s ease-in;
}
.menuico span:first-child {
  margin-top: -6px;
}
.menuico span:last-child {
  margin-top: 6px;
}
.menuico.on span {
  background-color: var(--color-text);
  transform-origin: 0;
}
.menutip {
  padding: 0 12px;
  font-size: 14px;
  color: var(--color-text);
  line-height: 32px;
  white-space: nowrap;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 1px 2px -1px rgba(0, 0, 0, 0.15);
  background: var(--color-surface);
  position: fixed;
  left: 66px;
  z-index: 10000;
  pointer-events: none;
  display: none;
}
.menutip::before {
  content: '';
  border-width: 6px;
  border-style: solid;
  border-color: transparent var(--color-border) transparent transparent;
  position: absolute;
  top: 50%;
  left: -12px;
  transform: translateY(-50%);
}
.menutip::after {
  content: '';
  border-width: 6px;
  border-style: solid;
  border-color: transparent var(--color-surface) transparent transparent;
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
}
.copyright {
  padding: 8px 16px;
  text-align: center;
  border-top: 1px solid var(--color-border);
  position: relative;
}
.copyright p {
  font-size: 12px;
  color: var(--color-text-muted);
}
@media screen and (max-width: 860px) {
  .side {
    position: fixed;
    top: 0;
    left: -100%;
    z-index: 999;
  }
  .side.on {
    width: 180px;
    left: 0;
  }
  .side.on .logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 16px;
    padding-right: 12px;
  }
  .side.on .menutitle {
    margin: 20px 0 8px;
    font-size: 12px;
  }
  .side.on .menutitle:first-child {
    margin-top: 8px;
  }
  .side.on .menu li a {
    padding: 12px 10px 12px 20px;
    font-size: 16px;
    text-align: left;
  }
  .side.on .menu li a .ico {
    margin-right: 14px;
  }
  .sideclose {
    display: block;
  }
  .fademask.on {
    display: block;
  }
  .menu::-webkit-scrollbar {
    width: 0;
  }
  .menuico {
    cursor: default;
    left: 10px;
  }
  .menutip {
    display: none !important;
  }
}
.night .menu::-webkit-scrollbar {
  width: 8px;
}
.night .menu::-webkit-scrollbar-track {
  background: #222;
}
.night .menu::-webkit-scrollbar-thumb {
  background: #555 url('images/scrollbar-02.png') no-repeat center center;
  border-radius: 4px;
}
.night .menu::-webkit-scrollbar-thumb:vertical:hover {
  background-color: rgba(255, 255, 255, 0.3);
}
.night .menu::-webkit-scrollbar-thumb:vertical:active {
  background-color: rgba(255, 255, 255, 0.4);
}
.head {
  height: 60px;
  padding-right: 40px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  position: relative;
  z-index: 99;
  display: flex;
  justify-content: end;
  align-items: center;
}
.backhome,
.theme-toggler {
  height: 28px;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin-right: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.backhome::before,
.theme-toggler::before {
  font-family: zblog;
  font-size: 16px;
  color: var(--color-text);
}
.backhome:hover,
.theme-toggler:hover {
  color: var(--color-text-muted);
  border-color: var(--color-border-hover);
}
.backhome:hover::before,
.theme-toggler:hover::before {
  color: var(--color-text-muted);
}
.backhome {
  padding: 0 10px;
}
.backhome::before {
  content: "\ee21";
  margin-right: 6px;
}
.theme-toggler {
  width: 28px;
}
.theme-toggler.light::before {
  content: "\ef6f";
}
.theme-toggler.dark::before {
  content: "\f1bf";
}
.user {
  position: relative;
}
.userlink {
  cursor: pointer;
  display: flex;
}
.userlink::after {
  content: "\ea4e";
  margin-left: 10px;
  font-size: 18px;
  color: var(--color-text);
  font-family: zblog;
  display: flex;
  align-items: center;
}
.userlink.on::after {
  content: "\ea78";
}
.userimg {
  margin-right: 10px;
}
.userimg img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.username {
  line-height: 1;
}
.username strong {
  margin-top: 2px;
  font-size: 14px;
  color: var(--color-text);
  display: block;
}
.username em {
  font-size: 12px;
  color: #999;
  font-style: normal;
}
.usermenu {
  width: 100%;
  padding: 8px 0;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  position: absolute;
  top: 40px;
  left: 0;
  z-index: 1;
  display: none;
}
.usermenu.on {
  display: block;
}
.usermenu li {
  line-height: 36px;
}
.usermenu li a {
  padding: 0 0 0 14px;
  font-size: 14px;
  color: var(--color-text);
  display: flex;
  align-items: center;
}
.usermenu li a::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 4px;
  font-size: 16px;
  color: var(--color-text);
  font-family: zblog;
  line-height: 16px;
}
.usermenu li a:hover {
  background: var(--color-surface-muted);
}
.usermenu li a.ico-set::before {
  content: "\f0e4";
}
.usermenu li a.ico-user::before {
  content: "\ea09";
}
.usermenu li a.ico-logout::before {
  content: "\f126";
}
@media screen and (max-width: 860px) {
  .head {
    padding-right: 14px;
  }
  .backhome {
    width: 28px;
    padding: 0;
    font-size: 0;
    text-align: center;
  }
  .backhome::before {
    margin: 0;
    font-size: 18px;
  }
  .user {
    margin-left: 10px;
  }
  .userlink {
    cursor: default;
  }
}
.wrapper {
  background-color: var(--color-surface-muted, #f9fafb);
  height: 100vh;
}
.main {
  padding-left: 181px;
  flex: 1;
  transition: all 0.2s ease;
}
.main.on {
  padding-left: 73px;
}
@media screen and (max-width: 860px) {
  .main {
    padding-left: 0;
  }
  .main.on {
    padding-left: 0;
  }
}
.content {
  height: calc(100vh - 24px - 60px);
  padding: 24px 36px;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}
.content::-webkit-scrollbar {
  width: 8px;
}
.content::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.content::-webkit-scrollbar-thumb {
  background: #c1c1c1 url('images/scrollbar-01.png') no-repeat center center;
  border-radius: 4px;
}
.content::-webkit-scrollbar-thumb:vertical:hover {
  background-color: #a8a8a8;
}
.content::-webkit-scrollbar-thumb:vertical:active {
  background-color: #787878;
}
.content .title {
  margin-bottom: 14px;
}
.content .title h2 {
  margin-bottom: 8px;
  font-size: 32px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
}
.content .title h2 ul#topmenu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.content .title h2 ul#topmenu a {
  padding: 0 12px;
}
.content .title h2 ul#topmenu a:last-child {
  margin-left: 0;
}
.content .title h2 a {
  height: 32px;
  margin-top: 4px;
  padding: 0 12px 0 8px;
  font-size: 14px;
  color: #fff;
  font-weight: normal;
  line-height: 32px;
  border: 1px solid #0188fb;
  border-radius: 4px;
  box-shadow: 0 4px 10px 0 rgba(1, 136, 251, 0.3);
  background: #0188fb;
  display: inline-block;
}
.content .title h2 a.rebuild::before {
  content: "\ec28";
  margin-right: 4px;
  font-family: zblog;
}
.content .title h2 a:hover {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.content .title p {
  font-size: 16px;
  color: var(--color-text);
}
.content .sub {
  margin-bottom: 16px;
  padding: 12px 22px;
  font-size: 14px;
  line-height: 32px;
  white-space: nowrap;
  border: 1px solid var(--color-border, #eaeaea);
  border-radius: 14px;
  box-shadow: 0 4px 2px -2px rgba(23, 35, 59, 0.06), 0 2px 8px rgba(23, 35, 59, 0.04);
  transition-duration: 300ms;
}
.content .sub form > * {
  height: 32px;
}
.content .sub form > *:not(:last-child) {
  margin-right: 12px;
}
.content .sub label {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
}
.content .sub label.filter {
  margin-right: 6px;
}
.content .sub .nice-select {
  display: inline-block;
}
.content .sub .nice-select.open,
.content .sub .nice-select:hover {
  border-color: var(--color-border-hover, #9ca3af);
}
.content .sub a.filter {
  margin: 6px 10px 0 0;
  padding: 0 4px 0 10px;
  font-size: 14px;
  color: #0188fb;
  line-height: 28px;
  border: 1px solid #0188fb;
  border-radius: 4px;
  background: #e8f6ff;
  display: inline-block;
}
.content .sub a.filter::after {
  content: "\eb99";
  margin-left: 4px;
  font-size: 16px;
  color: #0188fb;
  font-family: zblog;
  display: inline-block;
}
@media screen and (max-width: 860px) {
  .content {
    height: calc(100vh - 89px);
    padding: 14px;
  }
  .title h2 {
    font-size: 26px;
  }
  .title p {
    font-size: 14px;
  }
}
.night .content::-webkit-scrollbar {
  width: 8px;
}
.night .content::-webkit-scrollbar-track {
  background: #222;
}
.night .content::-webkit-scrollbar-thumb {
  background: #555 url('images/scrollbar-02.png') no-repeat center center;
  border-radius: 4px;
}
.night .content::-webkit-scrollbar-thumb:vertical:hover {
  background-color: rgba(255, 255, 255, 0.3);
}
.night .content::-webkit-scrollbar-thumb:vertical:active {
  background-color: rgba(255, 255, 255, 0.4);
}
/*! 通用组件 */
input[type="text"],
select,
textarea {
  font-family: Roboto;
  padding: 8px 14px;
  background-color: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border-input, #d1d5db);
  border-radius: var(--radius-input, 4px);
  color: var(--color-text, #333);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  line-height: 1.5;
}
input[type="text"]:hover,
select:hover,
textarea:hover {
  border-color: var(--color-border-hover, #9ca3af);
}
input[type="text"]:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary, #0188fb);
  box-shadow: 0 0 0 3px var(--color-focus-ring, rgba(59, 130, 246, 0.15));
}
.input-90,
.textarea-90,
.select-90 {
  width: 90%;
  max-width: 600px;
}
.textarea {
  min-height: 120px;
  resize: vertical;
}
input.button,
input[type="submit"],
button[type="submit"],
#btnPost {
  background: linear-gradient(135deg, var(--color-primary, #0188fb) 0%, var(--color-primary-strong, #1d4ed8) 100%);
  color: var(--color-text-btn, #ffffff);
  border: none;
  height: 38px;
  min-width: 100px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-button, 6px);
  cursor: pointer;
  box-shadow: var(--shadow-btn, 0 4px 6px -1px rgba(37, 99, 235, 0.3), 0 2px 4px -1px rgba(37, 99, 235, 0.15));
  transition: all 0.2s ease;
}
input.button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
#btnPost:hover {
  background: linear-gradient(135deg, var(--color-primary-hover, #3b82f6) 0%, var(--color-primary, #0188fb) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover, 0 6px 8px -1px rgba(37, 99, 235, 0.4), 0 3px 6px -1px rgba(37, 99, 235, 0.2));
}
input.button:active,
input[type="submit"]:active,
button[type="submit"]:active,
#btnPost:active {
  transform: translateY(0);
  box-shadow: var(--shadow-btn-active, 0 4px 6px -1px rgba(37, 99, 235, 0.3), 0 2px 4px -1px rgba(37, 99, 235, 0.15));
}
span.imgcheck {
  width: 48px;
  height: 24px;
  background-color: var(--color-switch-off, #e5e7eb);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: var(--shadow-switch, inset 0 2px 4px rgba(0, 0, 0, 0.05));
}
span.imgcheck::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: var(--color-surface, #ffffff);
  border-radius: 50%;
  box-shadow: var(--shadow-switch-knob, 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
span.imgcheck.imgcheck-on {
  background-color: var(--color-primary, #0188fb);
}
span.imgcheck.imgcheck-on::after {
  transform: translateX(24px);
}
span.imgcheck.imgcheck-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
input[type=checkbox] {
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-border-input, #d1d5db);
  border-radius: var(--radius-input, 4px);
  appearance: none;
}
input[type=checkbox]:checked {
  border-color: #0188fb;
  background: #0188fb url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}
input[type=file] {
  border: 1px solid var(--color-border-input, #d1d5db);
  border-radius: var(--radius-input, 4px);
}
input[type=file]::file-selector-button {
  border: 1px solid var(--color-border-input, #d1d5db);
  background-color: var(--color-primary, #0188fb);
  color: var(--color-text-btn, #ffffff);
  height: 100%;
  transition: all 0.15s ease-in-out;
}
input[type=file]:hover {
  border-color: var(--color-border-hover, #9ca3af);
}
input[type=file]:hover::file-selector-button {
  background-color: var(--color-primary-hover, #3b82f6);
}
.listcard {
  margin-bottom: 16px;
}
.listcard.one dl,
.listcard.two dl {
  padding: 20px 22px;
  border: 1px solid #e1e4ea;
  border-radius: 14px;
  box-shadow: 0 4px 2px -2px rgba(23, 35, 59, 0.06), 0 2px 8px rgba(23, 35, 59, 0.04);
  background: #fff;
  transition-duration: 300ms;
}
.listcard.one dl dt,
.listcard.two dl dt {
  margin-bottom: 14px;
  font-size: 18px;
  color: #333;
  font-weight: bold;
}
.listcard.one dl:hover,
.listcard.two dl:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.listcard.two {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.listcard.two dl {
  box-shadow: 0 4px 2px -2px rgba(23, 35, 59, 0.06), 0 2px 8px rgba(23, 35, 59, 0.04);
  box-sizing: border-box;
  overflow: hidden;
  flex: 0 0 calc(50% - 8px);
}
.listcard.two dt a.refresh {
  height: 28px;
  float: right;
  display: inline;
  margin-top: -3px;
  padding: 0 12px;
  font-size: 14px;
  color: #fff;
  font-weight: normal;
  line-height: 28px;
  border: 1px solid #0188fb;
  border-radius: 4px;
  background: #0188fb;
  display: inline-block;
}
.listcard.two dt a.refresh::before {
  content: "\f33d";
  margin: 0 4px 0 0;
  font-size: 14px;
  color: #fff;
  font-family: zblog;
  font-weight: normal;
  display: inline-block;
}
.listcard.two dt a.refresh:hover {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.listcard.two ul {
  margin-bottom: 8px;
  border-radius: 4px;
}
.listcard.two ul li {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.listcard.two ul li em {
  font-size: 14px;
  color: #86909c;
  font-style: normal;
}
.listcard.two ul li a {
  font-size: 14px;
  color: #333;
  line-height: 38px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  border-bottom: 1px dotted #eaeaea;
  border-radius: 4px;
  position: relative;
  display: block;
}
.listcard.two ul li a:hover {
  color: #0188fb;
}
.listcard.two ul li span {
  font-size: 14px;
  color: #86909c;
  font-family: arial;
  background: #fff;
  position: absolute;
  right: 0;
}
.listcard.two ul.configinfo {
  margin: 0;
  border: none;
}
.listcard.two ul.configinfo li {
  line-height: 32px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.listcard.two ul.configinfo li em {
  width: 10%;
  margin-right: 10%;
  cursor: default;
  display: inline-block;
}
.listcard.two ul.configinfo li span {
  width: 80%;
  float: none;
  color: #333;
  position: relative;
}
.listcard.two ul.configinfo li span.on {
  color: #0188fb;
}
.listcard.two ul.configinfo li span.on::before {
  content: "\eb81";
  margin: 0 4px 0 -2px;
  font-size: 16px;
  color: #0188fb;
  font-family: zblog;
  line-height: 34px;
  display: inline-block;
}
.listcard.two ul.configinfo li span a {
  line-height: 32px;
  border: 0;
  display: inline-block;
}
.listcard.two p {
  font-size: 14px;
  color: #86909c;
  line-height: 32px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.listcard.two p em {
  width: 70px;
  color: #86909c;
  font-style: normal;
  cursor: default;
  display: inline-block;
}
.listcard.two p a {
  margin: 0 8px;
  font-size: 14px;
  color: #333;
}
.listcard.two p a:hover {
  color: #0188fb;
}
.listcard.four ul {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.listcard.four li {
  padding: 16px 22px;
  border: 1px solid #e1e4ea;
  border-radius: 14px;
  box-shadow: 0 4px 2px -2px rgba(23, 35, 59, 0.06), 0 2px 8px rgba(23, 35, 59, 0.04);
  box-sizing: border-box;
  cursor: default;
  background: #fff;
  overflow: hidden;
  position: relative;
  flex: 0 0 calc(25% - 12px);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}
.listcard.four li p {
  margin-top: 4px;
  font-size: 16px;
  color: #333;
}
.listcard.four li p:first-child {
  margin: 0;
}
.listcard.four li p.num {
  font-size: 28px;
  font-weight: bold;
  font-family: din-bold;
}
.listcard.four li p.mom {
  font-size: 12px;
  color: #666;
  line-height: 16px;
}
.listcard.four li p.mom em {
  font-size: 13px;
  font-family: arial;
  font-style: normal;
}
.listcard.four li p.mom em.up {
  color: #0188fb;
}
.listcard.four li p.mom em.up::before {
  content: "\ea76";
  font-size: 15px;
  color: #0188fb;
  font-family: zblog;
  display: inline-block;
}
.listcard.four li p.mom em.down {
  color: red;
}
.listcard.four li p.mom em.down::before {
  content: "\ea4c";
  font-size: 15px;
  color: red;
  font-family: zblog;
  display: inline-block;
}
.listcard.four li p.mom em.nc::before {
  content: "\f5dc";
  font-size: 12px;
  color: #666;
  font-family: zblog;
  display: inline-block;
}
.listcard.four li .icon {
  width: 60px;
  height: 60px;
  background: url(images/icobg.svg) no-repeat center;
  background-size: cover;
  position: absolute;
  right: 22px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.listcard.four li .icon.ico-newpost::before {
  content: "";
  width: 100%;
  height: 100%;
  background-image: url(images/cardico-article.svg);
  background-repeat: no-repeat;
  background-position: center;
}
.listcard.four li .icon.ico-page::before {
  content: "";
  width: 100%;
  height: 100%;
  background-image: url(images/cardico-page.svg);
  background-repeat: no-repeat;
  background-position: center;
}
.listcard.four li .icon.ico-view::before {
  content: "";
  width: 100%;
  height: 100%;
  background-image: url(images/cardico-view.svg);
  background-repeat: no-repeat;
  background-position: center;
}
.listcard.four li .icon.ico-cmt::before {
  content: "";
  width: 100%;
  height: 100%;
  background-image: url(images/cardico-cmt.svg);
  background-repeat: no-repeat;
  background-position: center;
}
.listcard.four li .icon.ico-user::before {
  content: "";
  width: 100%;
  height: 100%;
  background-image: url(images/cardico-user.svg);
  background-repeat: no-repeat;
  background-position: center;
}
.listcard.four li .icon.ico-category::before {
  content: "";
  width: 100%;
  height: 100%;
  background-image: url(images/cardico-category.svg);
  background-repeat: no-repeat;
  background-position: center;
}
.listcard.four li .icon.ico-tag::before {
  content: "";
  width: 100%;
  height: 100%;
  background-image: url(images/cardico-tag.svg);
  background-repeat: no-repeat;
  background-position: center;
}
.listcard.four li .icon.ico-file::before {
  content: "";
  width: 100%;
  height: 100%;
  background-image: url(images/cardico-file.svg);
  background-repeat: no-repeat;
  background-position: center;
}
.listcard.four li:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.listcard table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
  border-spacing: 0;
}
.listcard .th {
  width: 100px;
  background: #ebebeb;
}
.listcard td {
  padding: 5px 10px;
  color: #666;
  line-height: 24px;
  word-break: break-word;
  border: 1px solid #ebebeb;
}
.listcard td.thank-label {
  text-align: center;
  cursor: default;
  background: #f5f5f5;
}
.listcard td.thank-link a {
  margin: 0 8px;
  font-size: 14px;
  color: #333;
}
.listcard td.thank-link a:hover {
  color: #0188fb;
}
.listcard:last-child {
  margin: 0;
}
.postlist {
  font-size: 14px;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  box-shadow: 0 4px 2px -2px rgba(23, 35, 59, 0.06), 0 2px 8px rgba(23, 35, 59, 0.04);
  overflow: hidden;
}
.tr {
  padding: 16px 15px;
  border-bottom: 1px solid #ebeef5;
  position: relative;
  display: flex;
  align-items: center;
}
.tr.thead {
  padding: 6px 15px;
  color: #333;
  font-weight: bold;
  line-height: 28px;
  white-space: nowrap;
  background: #f9f9f9;
}
.tr:last-child {
  border: 0;
}
.tr:not(.thead):hover {
  background: #f9f9f9;
}
.tr a {
  color: #333;
}
.tr a:hover {
  color: #0188fb;
}
.tr a.order_button {
  visibility: hidden;
}
.tr a.order_button::before {
  content: "\ea76";
  font-size: 12px;
  color: #666;
  font-family: zblog;
  font-weight: normal;
  display: inline-block;
}
.tr a.order_button.element-visibility-visible-always::before {
  content: "\ea4c";
}
.tr.thead:hover a.order_button {
  visibility: visible;
}
.td-5 {
  width: 5%;
  flex-shrink: 0;
}
.td-10 {
  width: 10%;
  min-width: 60px;
  flex-shrink: 0;
}
.td-15 {
  width: 15%;
  flex-shrink: 0;
}
.td-20 {
  width: 20%;
  min-width: 140px;
  flex-shrink: 0;
}
.td-25 {
  width: 25%;
  flex-shrink: 0;
}
.td-30 {
  width: 30%;
  flex-shrink: 0;
}
.td-full {
  min-width: 0;
  flex: 1;
}
.td-cate,
.td-author,
.td-action {
  flex-shrink: 0;
}
.td-title {
  padding-right: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.td-date {
  flex-shrink: 0;
}
.td-status span {
  padding: 2px 8px;
  font-size: 12px;
  color: #139c5f;
  font-weight: 500;
  border-radius: 4px;
  background: #e8fff0;
  display: inline-block;
}
.td-status span.draft {
  color: #854d0e;
  background: #fef9c3;
}
.td-status span.review {
  color: #991b1b;
  background: #fee2e2;
}
.td-action a {
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  border-radius: 6px;
  display: inline-block;
}
.td-action .edit {
  margin-right: 14px;
  font-size: 0;
}
.td-action .edit::before {
  content: "\ec5c";
  font-size: 18px;
  color: #333;
  font-family: zblog;
}
.td-action .edit:hover::before {
  color: #0188fb;
}
.td-action .del {
  font-size: 0;
}
.td-action .del::before {
  content: "\ec24";
  font-size: 18px;
  color: #333;
  font-family: zblog;
}
.td-action .del:hover::before {
  color: #0188fb;
}
@media screen and (max-width: 1200px) {
  .listcard.two dl {
    flex: 0 0 100%;
  }
  .listcard.four li {
    flex: 0 0 calc(50% - 8px);
  }
  .sub button {
    margin: 0;
  }
  .sub label.filter::before {
    content: "";
    display: block;
  }
  .td-id,
  .td-author,
  .td-view,
  .td-cmt {
    display: none;
  }
}
@media screen and (max-width: 860px) {
  .listcard.four ul {
    gap: 10px;
  }
  .listcard.four li {
    padding: 10px 22px;
    flex: 0 0 calc(50% - 5px);
  }
  .listcard.four li .icon {
    right: 16px;
    bottom: 10px;
  }
  .listcard table {
    border-bottom: 1px solid #f5f5f5;
  }
  .listcard td {
    border-bottom: 0;
    box-sizing: border-box;
  }
  .listcard td,
  .listcard .thank-label {
    width: 100%;
    display: block;
  }
  .listcard td.thank-label {
    text-align: left;
  }
  .sub {
    height: auto;
    padding: 14px 18px 10px;
    white-space: normal;
  }
  .sub select,
  .sub .nice-select {
    width: 100%;
    margin: 0 0 12px;
  }
  .sub input[name=search] {
    margin-right: 10px;
    width: calc(100% - 143px);
  }
  .sub input[type=submit] {
    margin: 0 0 6px;
  }
  .td-cate,
  .td-author {
    width: 80px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .td-action {
    width: 60px;
  }
}
@media screen and (max-width: 480px) {
  .listcard.one dl {
    padding: 14px 16px;
  }
  .listcard.two dl {
    padding: 14px 16px 10px;
  }
  .listcard.two ul li a {
    line-height: 42px;
  }
  .listcard.two p {
    padding: 2px 0 8px;
    line-height: 24px;
    white-space: normal;
    border-bottom: 1px dotted #eaeaea;
  }
  .listcard.two p:last-child {
    padding: 8px 0 0;
    border-bottom: 0;
  }
  .listcard.two p em {
    width: auto;
  }
  .listcard.two ul:not(.configinfo) li a {
    padding-right: 70px;
  }
  .listcard.two ul.configinfo li {
    padding: 10px 0;
    line-height: 24px;
    border-bottom: 1px dotted #eaeaea;
  }
  .listcard.two ul.configinfo li:first-child {
    padding-top: 0;
  }
  .listcard.two ul.configinfo li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .listcard.two ul.configinfo li em {
    width: 90px;
    margin: 0;
  }
  .listcard.two ul.configinfo li span {
    width: 100%;
    white-space: normal;
    display: block;
  }
  .listcard.two ul.configinfo li span a {
    display: inline;
    vertical-align: inherit;
  }
  .listcard.two ul.configinfo li span.on::before {
    line-height: 24px;
  }
  .listcard.four li {
    padding: 10px 16px;
    flex: 0 0 100%;
  }
  .listcard td a {
    display: inline-block;
  }
  .sub .search {
    width: 100%;
    margin: 0;
  }
  .tr {
    flex-direction: column;
  }
  .tr.thead {
    display: none;
  }
  .tr:not(.thead):hover {
    background: none;
  }
  .tr:nth-child(odd) {
    background: #f9f9f9;
  }
  .td-cate {
    width: 100%;
    position: relative;
    z-index: 1;
    order: 2;
  }
  .td-title {
    width: 100%;
    margin-bottom: 8px;
    padding: 0;
    font-size: 18px;
    line-height: 1.5;
    white-space: normal;
    overflow: inherit;
    position: relative;
    order: 1;
  }
  .td-title::before {
    content: "";
    width: 3px;
    height: 100%;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    background: #0188fb;
    position: absolute;
    top: 0;
    left: -15px;
  }
  .td-date {
    order: 3;
    position: absolute;
    left: 16px;
    bottom: 28px;
  }
  .td-status {
    width: 100%;
    margin: -20px 0 10px;
    text-align: right;
    order: 2;
  }
  .td-action {
    width: 100%;
    padding-top: 10px;
    text-align: right;
    border-top: 1px dotted #eaeaea;
    order: 3;
  }
}
.night .listcard li {
  border-color: #434343;
  background-color: #242424;
}
.night .listcard.one dl,
.night .listcard.two dl {
  border-color: #434343;
  background-color: #242424;
}
.night .listcard.one dl dt,
.night .listcard.two dl dt {
  color: #fff;
}
.night .listcard.two dt a.refresh {
  border-color: #0188fb;
  color: #fff;
  background-color: #0188fb;
}
.night .listcard.two dt a.refresh::before {
  color: #fff;
}
.night .listcard.two ul li a {
  color: #fff;
  border-color: #333;
}
.night .listcard.two ul li a:hover {
  color: #0188fb;
}
.night .listcard.two ul li span {
  background-color: #242424;
}
.night .listcard.two ul.configinfo li span {
  color: #fff;
}
.night .listcard.two ul.configinfo li span.on {
  color: #0188fb;
}
.night .listcard.two p a {
  color: #fff;
}
.night .listcard.two p a:hover {
  color: #0188fb;
}
.night .listcard.four li p {
  color: #fff;
}
.night .listcard.four li p.mom {
  color: #999;
}
.night .listcard.four li .icon {
  background-image: url(images/icobg-dark.svg);
}
.night .listcard td {
  color: #ccc;
  border-color: #434343;
}
.night .listcard td.thank-label {
  color: #86909c;
  background-color: #2a2a2a;
}
.night .listcard td.thank-link a {
  color: #fff;
}
.night .listcard td.thank-link a:hover {
  color: #0188fb;
}
.night .postlist {
  border-color: #434343;
  background-color: #161616;
}
.night .sub a.filter {
  background-color: #242424;
}
.night .tr {
  color: #ccc;
  border-color: #434343;
}
.night .tr.thead {
  background-color: #242424;
}
.night .tr:not(.thead):hover {
  background-color: #1e1e1e;
}
.night .tr a {
  color: #ccc;
}
.night .tr a:hover {
  color: #0188fb;
}
.night .td-status span {
  color: #a0fba0;
  background-color: #13321d;
}
.night .td-status span.draft {
  color: orange;
  background-color: #3b3600;
}
.night .td-status span.review {
  color: #ff6a6a;
  background: #3f0000;
}
.night .td-action .edit::before,
.night .td-action .del::before {
  color: #ccc;
}
.night .td-action .edit:hover::before,
.night .td-action .del:hover::before {
  color: #0188fb;
}
@media screen and (max-width: 860px) {
  .night .listcard table {
    border-color: #424242;
  }
}
@media screen and (max-width: 480px) {
  .night .listcard.two p {
    border-color: #333;
  }
  .night .listcard.two ul.configinfo li {
    border-color: #333;
  }
  .night .postlist {
    background: #242424;
  }
  .night .tr:nth-child(odd) {
    background: #1e1e1e;
  }
  .night .td-action {
    border-color: #434343;
  }
}
.content-box {
  background: var(--color-surface, #ffffff);
  border-radius: var(--radius-card, 8px);
  box-shadow: var(--shadow-card, 0 4px 20px rgba(0, 0, 0, 0.05));
  border: 1px solid var(--color-border, #eaeaea);
  margin-bottom: 25px;
  overflow: visible;
}
.content-box .content-box-header {
  background-color: var(--color-surface-muted, #f9fafb);
  border-bottom: 1px solid var(--color-border, #eaeaea);
  padding: 0 var(--padding-tab-x, 24px);
}
.content-box .content-box-tabs {
  display: flex;
  gap: var(--gap-tab, 25px);
}
.content-box .content-box-tabs li a {
  display: inline-block;
  padding: var(--padding-tab-y, 18px) 0;
  color: var(--color-text-muted, #6b7280);
  border-bottom: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.content-box .content-box-tabs li a:hover {
  color: var(--color-primary, #0188fb);
}
.content-box .content-box-tabs li a.current {
  color: var(--color-primary, #0188fb);
  border-bottom-color: var(--color-primary, #0188fb);
}
.content-box .content-box-content {
  padding: var(--padding-tab-y, 18px) var(--padding-tab-x, 24px);
}
@media (max-width: 768px) {
  .content-box .content-box-header {
    padding: 0 15px;
    overflow-x: auto;
  }
  .content-box .content-box-header::-webkit-scrollbar {
    width: 0;
  }
  .content-box .content-box-tabs {
    min-width: max-content;
  }
  .content-box .content-box-content {
    padding: 9px 15px;
  }
}
table.tableFull {
  width: 100%;
}
table.thCenter th {
  text-align: center;
}
table th,
table td {
  padding: 16px 12px;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-table-border, #eaeaea);
  color: var(--color-text, #333);
  font-size: 14px;
}
table th.td5,
table td.td5 {
  width: 5%;
}
table th.td10,
table td.td10 {
  width: 10%;
}
table th.td15,
table td.td15 {
  width: 15%;
}
table th.td20,
table td.td20 {
  width: 20%;
}
table th.td25,
table td.td25 {
  width: 25%;
}
table th.td30,
table td.td30 {
  width: 30%;
}
table th.td35,
table td.td35 {
  width: 35%;
}
table th.bold,
table td.bold {
  font-weight: 600;
  color: var(--color-text-strong, #111827);
}
table th.center,
table td.center {
  text-align: center;
}
table tr:last-child td {
  border-bottom: none;
}
@media (max-width: 768px) {
  table td {
    display: block;
    width: 100%;
    padding: 8px 0;
    border: none;
  }
  table td.bold {
    color: var(--color-text-muted, #6b7280);
    font-size: 13px;
  }
  table tr {
    display: block;
    padding-bottom: 7px;
  }
  table tr:not(:last-child) {
    border-bottom: 1px solid var(--color-table-border, #eaeaea);
    margin-bottom: 8px;
  }
}
.pagebar {
  margin-top: 20px;
  color: var(--color-text-strong);
  display: flex;
  justify-content: center;
  align-items: center;
}
.pagebar span,
.pagebar a {
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  border-radius: 6px;
}
.pagebar span:not(:last-child),
.pagebar a:not(:last-child) {
  margin-right: 8px;
}
.pagebar .now-page {
  color: #fff;
  background: #0188fb;
}
.pagebar a {
  color: #999;
}
.pagebar a:hover {
  color: #0188fb;
  border: 1px solid var(--color-border-hover);
}
/* select */
.nice-select {
  min-width: 120px;
  height: 36px;
  margin-right: 10px;
  padding-left: 12px;
  padding-right: 24px;
  font-size: 14px;
  font-family: inherit;
  font-weight: normal;
  text-align: left !important;
  line-height: 34px;
  white-space: nowrap;
  border: 1px solid var(--color-border-input, #d1d5db);
  outline: none;
  border-radius: 4px;
  box-sizing: border-box;
  cursor: pointer;
  background-color: var(--color-surface, #ffffff);
  position: relative;
  clear: both;
  display: block;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  transition: all 0.2s ease-in-out;
  user-select: none;
}
.nice-select:hover {
  border-color: var(--color-border-hover, #9ca3af);
}
.nice-select:active,
.nice-select:focus {
  border-color: #999;
}
.nice-select:after {
  content: '';
  width: 5px;
  height: 5px;
  margin-top: -4px;
  border-bottom: 2px solid #999;
  border-right: 2px solid #999;
  position: absolute;
  top: 50%;
  right: 12px;
  pointer-events: none;
  transform-origin: 66% 66%;
  transform: rotate(45deg);
  display: block;
}
.nice-select.open:after {
  transform: rotate(-135deg);
}
.nice-select.open .list {
  border: 1px solid var(--color-border-input, #d1d5db);
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}
.nice-select.disabled {
  border-color: #d7dadf;
  color: #999;
  pointer-events: none;
}
.nice-select.disabled:after {
  border-color: #cccccc;
}
.nice-select.wide {
  width: 100%;
}
.nice-select.wide .list {
  right: 0 !important;
  left: 0 !important;
}
.nice-select.right {
  float: right;
}
.nice-select.right .list {
  right: 0;
  left: auto;
}
.nice-select .list {
  width: 100%;
  max-height: 400px;
  margin-top: 4px;
  padding: 0;
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--color-border-hover);
  box-sizing: border-box;
  opacity: 0;
  overflow: hidden;
  overflow-y: auto;
  background-color: var(--color-surface-muted, #f9fafb);
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9;
  pointer-events: none;
  transform-origin: 50% 0;
  transform: scale(0.75) translateY(- 36px / 2);
  transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
}
.nice-select .list:hover .option:not(:hover) {
  background-color: transparent !important;
}
.nice-select .option {
  width: 100% !important;
  min-height: 34px;
  margin: 0 !important;
  padding-left: 12px;
  padding-right: 12px;
  font-weight: 400;
  text-align: left;
  line-height: 34px;
  list-style: none;
  box-sizing: border-box;
  outline: none;
  cursor: pointer;
  display: block !important;
  transition: all 0.2s;
}
.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus {
  background-color: var(--color-background, #ecedee);
}
.nice-select .option.selected {
  color: #0188fb;
  font-weight: bold;
}
.nice-select .option.disabled {
  color: #999;
  background-color: transparent;
  cursor: default;
}
.nice-select.multiple .option::before {
  content: "";
  width: 12px;
  height: 12px;
  margin: 13px 10px 0 0;
  border: 1px solid #ccc;
  display: inline-block;
  vertical-align: top;
}
.nice-select.multiple .option.selected::before {
  border-color: #006c68;
  border-radius: 50%;
  background-color: #006c68;
}
.nice-select.small {
  height: 36px;
  font-size: 12px;
  line-height: 34px;
}
.nice-select.small:after {
  width: 4px;
  height: 4px;
}
.nice-select.small .option {
  min-height: 34px;
  line-height: 34px;
}
.nice-select.small.multiple .option::before {
  width: 9px;
  height: 9px;
  margin: 12px 10px 0 0;
}
.no-csspointerevents .nice-select .list {
  display: none;
}
.no-csspointerevents .nice-select.open .list {
  display: block;
}
/*! Toast & Hint */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10000;
  transform: translate(-50%, -50%);
}
.toast.top {
  top: 10px;
  transform: translate(-50%, 0);
}
.toast.bottom {
  top: auto;
  bottom: 10px;
  transform: translate(-50%, 0);
}
.toasttext {
  padding: 10px 20px;
  font-size: 14px;
  color: #fff;
  text-align: center;
  line-height: 22px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.6);
  animation-name: layer-bounceIn;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  animation-duration: 0.3s;
}
.toastclose {
  animation-name: layer-bounceOut;
  animation-fill-mode: both;
  animation-duration: 0.2s;
}
.night .toasttext {
  background: rgba(60, 60, 60, 0.8);
}
/* Hint */
.hint {
  --color-info-text: #333;
  --color-info-background: #e0eaf6;
  --color-good-text: green;
  --color-good-background: #e8fff0;
  --color-bad-text: #991b1b;
  --color-bad-background: #fee2e2;
}
.hint p {
  line-height: 20px;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--color-info-text);
  background: var(--color-info-background);
  display: flex;
  justify-content: start;
  align-items: center;
}
.hint p::before {
  content: "\eca1";
  width: 20px;
  height: 20px;
  margin-right: 6px;
  font-size: 20px;
  color: var(--color-info-text);
  font-family: zblog;
  display: inline-block;
}
.hint .hint_good {
  background: var(--color-good-background);
  color: var(--color-good-text);
}
.hint .hint_good::before {
  content: "\eb81";
  color: var(--color-good-text);
}
.hint .hint_bad {
  background: var(--color-bad-background);
  color: var(--color-bad-text);
}
.hint .hint_bad::before {
  content: "\eb97";
  color: var(--color-bad-text);
}
.night .hint {
  --color-info-text: #8fdaff;
  --color-info-background: #002c52;
  --color-good-text: #a0fba0;
  --color-good-background: #13321d;
  --color-bad-text: #ff6a6a;
  --color-bad-background: #3f0000;
}
/*! 独立页面 */
/* 使用 Grid 布局：主内容 + 侧栏 */
form.post-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  padding-right: 5px;
}
form.post-edit .editmod {
  margin: 1em 0;
}
form.post-edit .editmod label {
  max-width: 65px;
  text-overflow: ellipsis;
}
form.post-edit .editmod .editinputname {
  vertical-align: middle;
  padding: 0 2px 0 3px;
  line-height: 1em;
  font-size: 1.05em;
  font-weight: bold;
}
form.post-edit #edtTitle,
form.post-edit #edtAlias,
form.post-edit #edtTag {
  max-width: 520px;
  width: 99% !important;
}
#divEditLeft {
  /* 主栏内元素占据第一列 (默认) */
}
#divEditLeft #ulTag {
  margin: 0 3em;
}
#divEditLeft #ulTag #ajaxtags {
  background: #f8f8f8;
  box-shadow: 0 0 10px #aaa;
  padding: 1em;
}
#divEditLeft #ulTag #ajaxtags a {
  margin-right: 1em;
}
#divEditLeft #ulTag #ajaxtags a.selected {
  color: black;
  background: #f8f889;
}
#divEditLeft #carea,
#divEditLeft #tarea,
#divEditLeft #editor_content,
#divEditLeft #editor_intro {
  width: 100%;
}
#divEditLeft #carea,
#divEditLeft #tarea {
  margin: 5px 0 0;
}
#divEditLeft #editor_content {
  min-height: 320px;
}
#divEditLeft #editor_intro {
  min-height: 160px;
}
#divEditRight {
  /* 侧栏在第二列 */
  justify-self: end;
  text-align: right;
}
#divEditRight .editmod select,
#divEditRight .editmod input[type="text"],
#divEditRight #btnPost {
  width: 180px;
  height: 38px;
}
#divEditRight .editmod#istop select {
  width: 80px;
}
#divEditAIHelper #yt-ai-helper-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #3a6ea5;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  font-size: 20px;
}
#divEditAIHelper #yt-ai-helper-box {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  z-index: 999;
  flex-direction: column;
}
#divEditAIHelper #yt-ai-header {
  padding: 10px;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#divEditAIHelper #yt-ai-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #fff;
}
#divEditAIHelper #yt-ai-input-area {
  padding: 10px;
  border-top: 1px solid #ddd;
  display: flex;
}
#divEditAIHelper #yt-ai-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: none;
  height: 40px;
}
#divEditAIHelper #yt-ai-send {
  margin-left: 10px;
  padding: 0 15px;
  background: #3a6ea5;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#divEditAIHelper .ai-msg,
#divEditAIHelper .user-msg {
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 5px;
  word-wrap: break-word;
}
#divEditAIHelper .ai-msg {
  background: #eef;
  align-self: flex-start;
}
#divEditAIHelper .user-msg {
  background: #efe;
  align-self: flex-end;
  text-align: right;
}
#divEditAIHelper .insert-btn {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 8px;
  font-size: 12px;
  background: #28a745;
  color: #fff;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
}
.theme-img {
  margin-right: 10px;
}
.theme-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: wrap;
}
.theme-info {
  line-height: 1.5;
}
.theme-info h4 {
  color: var(--color-primary);
  font-size: 18px;
}
.theme-info h4 small {
  font-size: 14px;
  color: var(--color-text-muted);
}
.theme p {
  margin-top: 5px;
  font-size: 14px;
  letter-spacing: -1px;
}
.theme-style {
  display: grid;
  grid-template-rows: 1fr;
  gap: 5px;
}
.icon-tools::before {
  font-family: zblog;
  content: "\f0e4";
}
.icon-pencil-square::before {
  font-family: zblog;
  content: "\ec86";
}
.icon-download::before {
  font-family: zblog;
  content: "📥︎";
}
.icon-grid-fill::before {
  content: "\ee7f";
  font-family: zblog;
}
.icon-cloud-arrow-up-fill::before {
  content: "📤︎";
  font-family: zblog;
}
.icon-trash::before {
  content: "\ec24";
  font-family: zblog;
}
.button.disabled {
  background-color: #f5f5f5;
  color: var(--color-text-muted);
  border: none;
  height: 38px;
  min-width: 100px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-button, 6px);
  cursor: pointer;
  box-shadow: 0 5px 5px 0px #999;
  transition: all 0.2s ease;
}
@media screen and (max-width: 480px) {
  .theme-desc {
    order: 2;
  }
  .tr {
    margin-bottom: 10px;
  }
  .theme-img {
    width: 100%;
    margin: 0;
    aspect-ratio: 5/3;
    object-fit: cover;
  }
  .theme-style {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  .theme p {
    margin-top: 10px;
    font-size: 18px;
    letter-spacing: 2px;
  }
}
.admin-login {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8f9fa;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-container {
  max-width: 400px;
  width: 100%;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.login-form h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #2d3748;
  font-weight: 600;
  font-size: 1.5em;
}
.login-form label {
  display: block;
  margin: 0.5rem 0;
  color: #2d3748;
  font-weight: 500;
}
.login-form .checkbox {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}
.login-form .checkbox input {
  margin-right: 0.5rem;
  flex-shrink: 0;
}
.login-form .checkbox label {
  display: inline;
  cursor: pointer;
}
.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 1rem;
  margin: 0.5rem 0;
  transition: border-color 0.2s;
  height: 40px;
  line-height: 40px;
}
.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  outline: none;
  border-color: #4299e1;
}
.login-form .submit {
  text-align: center;
}
.login-form .button:hover {
  background: #3182ce;
}
.validcode-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.validcode-input-wrapper input {
  flex: 1;
  margin-bottom: 0;
  height: 40px;
  padding: 0 0.75rem;
  line-height: 40px;
}
.captcha-img {
  vertical-align: middle;
  cursor: pointer;
  height: 40px;
}
@media (max-width: 480px) {
  .login-container {
    margin: 1rem;
    padding: 1.5rem;
  }
  .validcode-input-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .validcode-input-wrapper input {
    height: auto;
    padding: 0.75rem;
    line-height: normal;
  }
  .captcha-img {
    width: 100%;
    height: auto;
  }
}
