/* ===== 霓虹暗色定制 ===== */

/* 顶部横幅：极光渐变 + 呼吸变色 */
#page-header {
  background-color: #08070f !important;
  background-image:
    radial-gradient(ellipse 900px 620px at 12% 12%, rgba(124, 58, 237, .95), transparent 68%),
    radial-gradient(ellipse 820px 560px at 88% 18%, rgba(6, 182, 212, .85), transparent 66%),
    radial-gradient(ellipse 900px 700px at 55% 100%, rgba(236, 72, 153, .80), transparent 70%) !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  animation: bf-breathe 14s ease-in-out infinite alternate;
}

@keyframes bf-breathe {
  from { filter: saturate(1) hue-rotate(0deg); }
  to   { filter: saturate(1.25) hue-rotate(28deg); }
}

/* 网格 + 中心辉光（赛博感） */
#page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 46%, rgba(168, 85, 247, .38), transparent 62%),
    linear-gradient(rgba(168, 85, 247, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, .14) 1px, transparent 1px);
  background-size: 100% 100%, 46px 46px, 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 78%);
  animation: bf-grid 16s linear infinite;
}

@keyframes bf-grid {
  to { background-position: 0 0, 46px 46px, 46px 46px; }
}

/* 星空画布 */
#page-header .dsh-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#page-header::after { z-index: 0; }

#site-info { z-index: 2; }

/* 整页背景：两团静态辉光，避免纯黑发闷 */
body {
  background-image:
    radial-gradient(700px 500px at 92% 8%, rgba(124, 58, 237, .16), transparent 70%),
    radial-gradient(800px 600px at 4% 62%, rgba(6, 182, 212, .12), transparent 70%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* 站点标题发光 */
#site-title {
  text-shadow: 0 0 16px rgba(168, 85, 247, .95), 0 0 52px rgba(6, 182, 212, .65);
}

#site-subtitle {
  text-shadow: 0 0 12px rgba(6, 182, 212, .7);
}

/* 卡片：玻璃质感 + 悬浮发光 */
.card-widget,
.recent-post-item {
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(168, 85, 247, .20);
  transition: box-shadow .35s ease, border-color .35s ease;
}

.card-widget:hover,
.recent-post-item:hover {
  border-color: rgba(168, 85, 247, .6);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, .35), 0 18px 45px rgba(88, 28, 135, .5);
}

/* 滚动进场动画（Chrome/Edge 支持） */
@supports (animation-timeline: view()) {
  .recent-post-item {
    animation: bf-in both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
}

@keyframes bf-in {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: none; }
}

/* 文章标题渐变字 */
.recent-post-item .article-title,
#post-info .post-title {
  background-image: linear-gradient(92deg, #c084fc, #67e8f9 55%, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 光标光晕 */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, .22), rgba(6, 182, 212, .09) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity .45s ease;
  filter: blur(6px);
}

/* 滚动条霓虹 */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a855f7, #06b6d4);
}
