/* WenYin homepage palette override; layout and content stay unchanged. */
:root,
:root[data-theme="light"] {
  --side-content-width: 252px;
  --hue: 263deg;
  --sat: 48%;
  --light: 51%;
  --theme: #6f42c1;
  --theme-a10: rgba(111,66,193,0.1);
  --theme-a20: rgba(111,66,193,0.2);
  --theme-a30: rgba(111,66,193,0.3);
  --accent: #667eea;
  --link: #6f42c1;
  --link-a20: rgba(111,66,193,0.2);
  --background: #f5f0ff;
  --card: #fbf8ff;
  --block: rgba(111,66,193,0.08);
  --block-border: rgba(111,66,193,0.14);
}
:root[data-theme="dark"] {
  --theme: #8e6ed8;
  --accent: #667eea;
  --link: #b69cff;
  --background: #1a1a2e;
  --card: #2d1b4e;
}
body>.sitebg {
  background: linear-gradient(135deg, #f5f0ff 0%, #fbf8ff 52%, #f0e6ff 100%) !important;
}
.l_left .sidebg {
  background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}
.navbar-blur:before {
  background: rgba(240,230,255,0.75);
}
.navbar nav a.active,
.navbar nav a:hover {
  color: #4a2c82;
}
.navbar nav a.active {
  background: #f0e6ff;
}
.logo-wrap a.title .main,
.widgets .widget-wrapper .widget-header,
.l_main .post-list .post-title:hover,
.md-text.content h2:not([class]),
.md-text.content h3:not([class]) {
  color: #4a2c82;
}
.logo-wrap {
  min-height: 60px;
}
.logo-wrap a.avatar {
  width: 56px;
  height: 56px;
  margin-right: 1.1rem;
}
.logo-wrap a.title {
  line-height: 1.18;
}
.logo-wrap a.title .main {
  font-size: 1.36rem;
  white-space: nowrap;
}
.logo-wrap a.title .sub {
  font-size: 0.9rem;
}
:root[data-theme="light"] .post-list .post-card,
:root:not([data-theme]) .post-list .post-card {
  box-shadow: 0 2px 10px rgba(74,44,130,0.08);
}
:root[data-theme="light"] .post-list .post-card:hover,
:root:not([data-theme]) .post-list .post-card:hover {
  box-shadow: 0 12px 28px rgba(74,44,130,0.16);
}
.md-text.content p>code:not([class]),
.md-text.content li>code:not([class]) {
  font-size: 95%;
}
.md-text.content pre,
.md-text.content .highlight figcaption {
  font-size: 0.875rem;
}
.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 32;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(111,66,193,0.22);
  border-radius: 999px;
  background: rgba(251,248,255,0.92);
  color: #4a2c82;
  box-shadow: 0 6px 18px rgba(74,44,130,0.14);
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.theme-toggle:hover {
  background: #f0e6ff;
}
.theme-toggle[data-mode="dark"] {
  border-color: rgba(182,156,255,0.3);
  background: rgba(45,27,78,0.9);
  color: #f5f0ff;
}
.theme-toggle-icon {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  box-shadow: inset -0.25rem -0.2rem 0 0 currentColor;
}
.theme-toggle[data-mode="dark"] .theme-toggle-icon {
  background: currentColor;
  box-shadow: 0 0 0 0.16rem rgba(182,156,255,0.45);
}
@media screen and (max-width: 667px) {
  .theme-toggle {
    top: 12px;
    right: 12px;
  }
  .logo-wrap {
    min-height: 54px;
  }
  .logo-wrap a.avatar {
    width: 50px;
    height: 50px;
    margin-right: 0.85rem;
  }
  .logo-wrap a.title .main {
    font-size: 1.05rem;
  }
  .logo-wrap a.title .sub {
    font-size: 0.82rem;
  }
}
.widget-wrapper.markdown .widget-body [id="快捷导航"] {
  margin-bottom: 0.35rem;
  font-size: 1rem;
  line-height: 1.3;
}
.widget-wrapper.markdown .widget-body [id="快捷导航"] + p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0.25rem 0 0;
  line-height: 1.2;
}
.widget-wrapper.markdown .widget-body [id="快捷导航"] + p br {
  display: none;
}
.widget-wrapper.markdown .widget-body [id="快捷导航"] + p a {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0;
  font-size: 0.92rem !important;
  white-space: nowrap;
}
