/* =========================================================
   波奇大王 · 博客皮肤
   ① 两侧独立立绘（已定稿：贴边、原尺寸、透明边缘）
   ② 中间用同一张画的模糊色调 → 尽量无缝
   ③ 卡片毛玻璃 / 胶囊菜单 / 暗色适配
   ========================================================= */

:root {
  --accent-color: #e86a9a;
  --accent-color-darker: #d4557f;
  --accent-color-text: #fff;
  --card-border-radius: 16px;
}

/* ---------- ① 中间：同一张画的模糊色调 ---------- */
body {
  background: #D8D4D7 !important;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/images/tone-light.jpg') center center / cover no-repeat !important;
  filter: blur(10px) saturate(1.02);
  transform: scale(1.08);
  z-index: -2;
  pointer-events: none;
}
/* 中间偏亮一点，保证内容可读；两侧不做任何遮挡 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(252, 250, 253, 0) 0%,
      rgba(252, 250, 253, .18) 20%,
      rgba(252, 250, 253, .46) 32%,
      rgba(252, 250, 253, .52) 68%,
      rgba(252, 250, 253, .18) 80%,
      rgba(252, 250, 253, 0) 100%);
  z-index: -1;
  pointer-events: none;
}

/* ---------- ② 两侧独立立绘（定稿，勿动） ---------- */
.side-art {
  display: block !important;
  position: fixed;
  bottom: 0;
  width: clamp(340px, 32vw, 620px);
  height: 100vh;
  background-repeat: no-repeat;
  background-size: auto 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 1;
  mix-blend-mode: normal;
  filter: none;
}
.side-art-left {
  left: 0;
  background-image: url('/images/side-left-v6.webp');
  background-position: left bottom;
  -webkit-mask-image: linear-gradient(to right, #000 55%, rgba(0,0,0,.6) 80%, transparent 100%);
  mask-image: linear-gradient(to right, #000 55%, rgba(0,0,0,.6) 80%, transparent 100%);
}
.side-art-right {
  right: 0;
  background-image: url('/images/side-right-v6.webp');
  background-position: right bottom;
  -webkit-mask-image: linear-gradient(to left, #000 55%, rgba(0,0,0,.6) 80%, transparent 100%);
  mask-image: linear-gradient(to left, #000 55%, rgba(0,0,0,.6) 80%, transparent 100%);
}

/* ---------- ③ Banner ---------- */
.home-banner {
  position: relative;
  height: 340px;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  background: transparent;
}
/* 亮色：蓝图也显示（你要求保留），左侧加白雾保证深色标题可读 */
.home-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/banner-dark.jpg') center 42% / cover no-repeat;
  z-index: 0;
}
.home-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, .92) 0%,
      rgba(255, 255, 255, .72) 26%,
      rgba(255, 255, 255, .18) 52%,
      rgba(255, 255, 255, 0) 70%),
    linear-gradient(0deg,
      rgba(255, 255, 255, .55) 0%,
      rgba(255, 255, 255, 0) 26%);
}
.home-banner-inner {
  position: relative;
  z-index: 2;
  padding: 18px 26px;
  text-align: left;
  max-width: 560px;
  border-radius: 18px;
  background: radial-gradient(closest-side,
      rgba(255, 255, 255, .5), rgba(255, 255, 255, .16) 70%, transparent 100%);
}
.home-banner-title {
  font-size: 30px; font-weight: 700; color: #2a2333;
  letter-spacing: 1px; line-height: 1.45; margin: 0;
}
.home-banner-sub { margin-top: 12px; font-size: 13.5px; color: #5b5068; }

[data-scheme="dark"] .home-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/images/banner-dark.jpg') center 42% / cover no-repeat;
  z-index: 0;
}
[data-scheme="dark"] .home-banner::after {
  content: '';
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,13,22,.90) 0%, rgba(14,13,22,.55) 30%, rgba(14,13,22,0) 60%),
    linear-gradient(0deg, rgba(14,13,22,.85) 0%, rgba(14,13,22,0) 32%);
}
[data-scheme="dark"] .home-banner-inner { background: none; padding-left: 0; }
[data-scheme="dark"] .home-banner-title { color: #fff; }
[data-scheme="dark"] .home-banner-sub { color: rgba(255,255,255,.82); }

/* ---------- ④ 卡片毛玻璃 ---------- */
.article-list article,
.widget,
.home-notice,
.sidebar .widget {
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .7);
}
.article-list article { transition: transform .25s ease, box-shadow .25s ease; }
.article-list article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(90, 70, 120, .16);
}

/* ---------- ⑤ 菜单胶囊化 ---------- */
.menu a, #main-menu a {
  border-radius: 999px !important;
  padding: 6px 14px !important;
  transition: background .2s, color .2s;
}
.menu a:hover, #main-menu a:hover {
  background: rgba(232, 106, 154, .12);
  color: var(--accent-color) !important;
}
.menu li.current a, #main-menu li.current a {
  background: linear-gradient(135deg, #e86a9a, #f08fb4) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(232, 106, 154, .30);
}

/* ---------- ⑥ 暗色 ---------- */
[data-scheme="dark"] {
  --body-background: #1b1720;
  --card-background: rgba(26, 24, 38, .70);
}
[data-scheme="dark"] body { background: #1B1720 !important; }
[data-scheme="dark"] body::before {
  background: url('/images/tone-dark.jpg') center center / cover no-repeat !important;
  filter: blur(10px) saturate(1.05);
}
[data-scheme="dark"] body::after {
  background: linear-gradient(90deg,
      rgba(10, 9, 15, 0) 0%,
      rgba(10, 9, 15, .16) 20%,
      rgba(10, 9, 15, .46) 32%,
      rgba(10, 9, 15, .52) 68%,
      rgba(10, 9, 15, .16) 80%,
      rgba(10, 9, 15, 0) 100%) !important;
}
[data-scheme="dark"] .side-art-left { filter: brightness(.82) contrast(1.04); }
[data-scheme="dark"] .side-art-right { filter: brightness(.58) contrast(1.02); }

/* ---------- ⑦ 窄屏 ---------- */
@media (max-width: 1200px) {
  .side-art { display: none !important; }
}