/* 主题：玻璃网格
   磨砂细线网格 + 顶部弧形高光 + 环境光斑
   营造通透玻璃面板感，配合卡片 backdrop-filter 出磨砂效果 */

/* ===== 主体背景 ===== */
body.theme-glass-grid {
  background-color: #eef2f7;
}

/* 磨砂网格：细线交叉，fixed 定位避免滚动重绘 */
body.theme-glass-grid::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 130, 150, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 130, 150, 0.10) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* 柔和暗角 + 顶部弧形高光，制造玻璃面板深度 */
body.theme-glass-grid::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(255, 255, 255, 0.22) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 50% 100%,
      rgba(120, 140, 170, 0.10) 0%,
      transparent 60%
    );
}

/* ===== 环境光斑 ===== */
body.theme-glass-grid .aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
body.theme-glass-grid .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.8;
}
body.theme-glass-grid .blob-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(0, 113, 227, 0.55) 0%,
    rgba(0, 113, 227, 0.15) 45%,
    transparent 70%
  );
  top: -80px;
  left: -40px;
}
body.theme-glass-grid .blob-2 {
  width: 460px;
  height: 460px;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.5) 0%,
    rgba(168, 85, 247, 0.12) 45%,
    transparent 70%
  );
  top: 25%;
  right: -80px;
}
body.theme-glass-grid .blob-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(52, 199, 89, 0.45) 0%,
    rgba(52, 199, 89, 0.1) 45%,
    transparent 70%
  );
  bottom: -80px;
  left: 42%;
}

/* ===== 暗色模式覆盖 ===== */
@media (prefers-color-scheme: dark) {
  body.theme-glass-grid {
    background-color: #18191b;
  }
  body.theme-glass-grid::before {
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    mask-image:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.15) 100%);
  }
  body.theme-glass-grid::after {
    background:
      radial-gradient(
        ellipse at 50% 0%,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse at 50% 100%,
        rgba(0, 0, 0, 0.35) 0%,
        transparent 60%
      );
  }
  body.theme-glass-grid .blob {
    opacity: 0.7;
  }
}
