/* ==========================================================================
   固定背景层 —— 六个业务详情页专用
   --------------------------------------------------------------------------
   取值取自首页：135° 深空渐变 + 50px 蓝色网格 + 两团 600px 模糊光晕。
   整层 position:fixed、尺寸等于视口，所以不随内容滚动、不随页面切换变化，
   也不会因为某个区块有底色而被截断（z-index:-1，永远在所有内容之下）。

   注意：首页（index.html）与坤元页（kunyuan.html）**不使用**这个文件，
   它们保留各自原有的背景实现（.bg-grid / .bg-glow）。

   光晕颜色可按页覆盖：
       body { --site-bg-1: #d4af37; --site-bg-2: #b8942e; --site-bg-glow-opacity: .05; }
   ========================================================================== */

/* 兜底色只放在 html 上。
   如果给 body 也上底色，body 的底色属于「普通块背景」，绘制顺序排在
   z-index:-1 的固定层之后（也就是盖住它），整层背景会失效。 */
html { background-color: #0a0f1a; }

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(135deg, #0a0f1a 0%, #111827 50%, #0a0f1a 100%);
}

/* 网格 */
.site-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* 光晕 */
.site-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: var(--site-bg-glow-opacity, 0.24);
    animation: siteBgFloat 8s ease-in-out infinite;
    will-change: transform;
}
/* 位置与首屏 hero 的 wash 对齐：左下 + 右上，滚动时两团光固定在视口两角 */
.site-bg-glow-1 {
    bottom: -200px;
    left: -200px;
    background: var(--site-bg-1, var(--accent, #0066ff));
}
.site-bg-glow-2 {
    top: -200px;
    right: -200px;
    background: var(--site-bg-2, var(--accent-2, #f97316));
    animation-delay: -4s;
}

@keyframes siteBgFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

/* 小屏：光晕按比例缩小，避免在窄屏上把整个背景糊成一片 */
@media (max-width: 860px) {
    .site-bg-glow {
        width: 420px;
        height: 420px;
        filter: blur(90px);
    }
    .site-bg-glow-1 { bottom: -160px; left: -180px; }
    .site-bg-glow-2 { top: -160px; right: -180px; }
}

@media (prefers-reduced-motion: reduce) {
    .site-bg-glow { animation: none; }
}
