.theme-toggle {
  cursor: pointer;
  color: var(--text);
  background: none;
  width: 48px;
  height: 48px;
  line-height: 0;
  font-size: 28px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
}
.theme-toggle svg {
  width: 27px;
  height: 27px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.theme-toggle[data-theme='dark'] {
  color: #ffd166;
}
.theme-toggle[data-theme='light'] {
  color: var(--theme);
}
body > .theme-toggle {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 999999;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(15,23,42,0.18);
}
:root[data-theme='dark'] {
  color-scheme: dark;
}
:root[data-theme='dark'] body > .sitebg:after {
  background: linear-gradient(180deg, rgba(3,7,18,0.54) 0%, rgba(3,7,18,0.68) 54%, rgba(3,7,18,0.8) 100%);
}
:root[data-theme='dark'] .l_left .sidebg {
  filter: saturate(92%) blur(30px) opacity(0.58) !important;
}
:root[data-theme='dark'] .l_left .leftbar-container:before {
  background: rgba(15,23,42,0.5) !important;
  box-shadow: inset 0 0 30px 1px rgba(255,255,255,0.08) !important;
}
:root[data-theme='dark'] .widget-wrapper.markdown {
  background: linear-gradient(180deg, rgba(15,23,42,0.62), rgba(15,23,42,0.38));
}
:root[data-theme='dark'] .l_main .post-list .post-card {
  background: rgba(15,23,42,0.62);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}
:root[data-theme='dark'] .l_left .logo-wrap img.avatar {
  border-color: rgba(255,255,255,0.38);
}
