/* 皮肤名称: 波普 */
/* ============================================================
   主题皮肤：波普律动（Pop）
   移植自桌面「波普律动.html」：暖白渐变基底 + 浮动几何图形
   + 脉冲圆点 + 彩色条纹 + 噪点纹理（纯 CSS 动画）。
   DOM 背景层由同目录 pop.js 创建（window.SkinEffects.pop），
   本文件只负责样式与动画。类名均以 .pop-bg 限定作用域，
   避免与其他主题/页面样式冲突。
   ============================================================ */

/* ----- 基础背景：body 渐变（含 background-color 兜底） ----- */
body.theme-pop {
    background-color: #faf6ef;
    background-image: radial-gradient(circle at 70% 20%, #fff5e6, #f0e8d8 60%, #e0d6c4 100%);
    background-attachment: fixed;
}

/* ----- 整页背景容器 (fixed 全屏) ----- */
.pop-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* 负层级：绘制在 body 背景之上、所有页面内容之下 */
    overflow: hidden;
    pointer-events: none;
}

/* 1. 基础渐变 (明亮活力) */
.pop-bg .pop-base {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, #fff5e6, #f0e8d8 60%, #e0d6c4 100%);
}

/* 2. 波普几何图形 (动态拼贴) */
.pop-bg .pop-geo {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.pop-bg .geo {
    position: absolute;
    will-change: transform, opacity;
    animation: popGeoFloat 20s infinite alternate ease-in-out;
    opacity: 0.7;
}

.pop-bg .geo--circle { border-radius: 50%; }

.pop-bg .geo--rounded { border-radius: 30% 70% 40% 60% / 50% 40% 60% 50%; }

.pop-bg .geo--diamond {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(15deg);
}

.pop-bg .geo:nth-child(1) {
    width: 180px; height: 180px; left: 5%; top: 10%;
    background: rgba(255, 200, 50, 0.25);
    border: 3px solid rgba(255, 180, 30, 0.20);
    animation-duration: 22s; animation-delay: 0s;
}

.pop-bg .geo:nth-child(2) {
    width: 240px; height: 240px; right: 8%; bottom: 15%;
    background: rgba(255, 120, 150, 0.20);
    border: 3px solid rgba(255, 80, 120, 0.15);
    border-radius: 40% 60% 30% 70% / 50% 40% 60% 50%;
    animation-duration: 26s; animation-delay: 1.2s;
}

.pop-bg .geo:nth-child(3) {
    width: 160px; height: 160px; left: 25%; top: 55%;
    background: rgba(100, 200, 255, 0.20);
    border: 3px solid rgba(60, 180, 240, 0.15);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-duration: 24s; animation-delay: 0.6s;
}

.pop-bg .geo:nth-child(4) {
    width: 300px; height: 300px; right: -50px; top: -80px;
    background: rgba(255, 220, 80, 0.12);
    border: 4px solid rgba(255, 200, 60, 0.08);
    border-radius: 50%;
    animation-duration: 28s; animation-delay: 2s;
}

.pop-bg .geo:nth-child(5) {
    width: 140px; height: 140px; left: 70%; bottom: 8%;
    background: rgba(150, 220, 150, 0.22);
    border: 3px solid rgba(100, 200, 100, 0.15);
    border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
    animation-duration: 20s; animation-delay: 0.3s;
}

.pop-bg .geo:nth-child(6) {
    width: 200px; height: 200px; left: 45%; top: 10%;
    background: rgba(255, 160, 80, 0.18);
    border: 3px solid rgba(255, 140, 60, 0.12);
    border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%;
    animation-duration: 25s; animation-delay: 1.8s;
}

.pop-bg .geo:nth-child(7) {
    width: 120px; height: 120px; left: 10%; bottom: 30%;
    background: rgba(200, 150, 255, 0.20);
    border: 3px solid rgba(180, 120, 240, 0.12);
    border-radius: 30% 70% 50% 50% / 50% 40% 60% 50%;
    animation-duration: 23s; animation-delay: 0.9s;
}

.pop-bg .geo:nth-child(8) {
    width: 260px; height: 260px; right: 15%; top: 30%;
    background: rgba(255, 100, 100, 0.10);
    border: 4px solid rgba(255, 70, 70, 0.06);
    border-radius: 60% 40% 70% 30% / 40% 60% 30% 70%;
    animation-duration: 27s; animation-delay: 2.5s;
}

.pop-bg .geo:nth-child(9) {
    width: 100px; height: 100px; left: 55%; bottom: 40%;
    background: rgba(50, 200, 220, 0.18);
    border: 3px solid rgba(30, 180, 200, 0.12);
    border-radius: 50%;
    animation-duration: 19s; animation-delay: 0.5s;
}

.pop-bg .geo:nth-child(10) {
    width: 220px; height: 220px; left: 80%; bottom: -30px;
    background: rgba(255, 180, 180, 0.12);
    border: 3px solid rgba(255, 150, 150, 0.08);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-duration: 29s; animation-delay: 1.5s;
}

@keyframes popGeoFloat {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.5; }
    25%  { transform: translate(30px, -25px) scale(1.06) rotate(8deg); opacity: 0.8; }
    50%  { transform: translate(-20px, 35px) scale(0.94) rotate(-5deg); opacity: 0.6; }
    75%  { transform: translate(25px, 15px) scale(1.03) rotate(10deg); opacity: 0.9; }
    100% { transform: translate(-10px, -15px) scale(0.97) rotate(-3deg); opacity: 0.7; }
}

/* 3. 波普圆点 (装饰) */
.pop-bg .pop-dots {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.pop-bg .dot {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 200, 100, 0.20), rgba(255, 180, 80, 0.05));
    animation: popDotPulse 6s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

.pop-bg .dot:nth-child(1) { width: 12px; height: 12px; left: 8%; top: 25%; animation-delay: 0s; background: radial-gradient(circle, rgba(255, 150, 50, 0.25), transparent); }
.pop-bg .dot:nth-child(2) { width: 20px; height: 20px; left: 75%; top: 15%; animation-delay: 0.8s; background: radial-gradient(circle, rgba(255, 80, 120, 0.20), transparent); }
.pop-bg .dot:nth-child(3) { width: 8px; height: 8px; left: 45%; top: 80%; animation-delay: 0.4s; background: radial-gradient(circle, rgba(60, 200, 240, 0.25), transparent); }
.pop-bg .dot:nth-child(4) { width: 16px; height: 16px; left: 90%; top: 55%; animation-delay: 1.2s; background: radial-gradient(circle, rgba(150, 220, 100, 0.20), transparent); }
.pop-bg .dot:nth-child(5) { width: 10px; height: 10px; left: 20%; top: 70%; animation-delay: 0.6s; background: radial-gradient(circle, rgba(200, 150, 255, 0.20), transparent); }
.pop-bg .dot:nth-child(6) { width: 14px; height: 14px; left: 60%; top: 35%; animation-delay: 1.0s; background: radial-gradient(circle, rgba(255, 180, 80, 0.20), transparent); }
.pop-bg .dot:nth-child(7) { width: 6px; height: 6px; left: 35%; top: 20%; animation-delay: 0.2s; background: radial-gradient(circle, rgba(255, 100, 150, 0.25), transparent); }
.pop-bg .dot:nth-child(8) { width: 18px; height: 18px; left: 50%; top: 60%; animation-delay: 1.4s; background: radial-gradient(circle, rgba(100, 200, 220, 0.15), transparent); }
.pop-bg .dot:nth-child(9) { width: 8px; height: 8px; left: 82%; top: 80%; animation-delay: 0.3s; background: radial-gradient(circle, rgba(255, 140, 60, 0.20), transparent); }
.pop-bg .dot:nth-child(10) { width: 22px; height: 22px; left: 15%; top: 45%; animation-delay: 0.9s; background: radial-gradient(circle, rgba(180, 130, 255, 0.12), transparent); }

@keyframes popDotPulse {
    0%   { transform: scale(0.6); opacity: 0.3; }
    100% { transform: scale(1.4); opacity: 0.9; }
}

/* 4. 彩色条纹 (动态) */
.pop-bg .pop-stripes {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.15;
}

.pop-bg .stripe {
    position: absolute;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(255, 200, 50, 0.3) 20%,
        rgba(255, 100, 150, 0.4) 40%,
        rgba(60, 200, 240, 0.3) 60%,
        rgba(150, 220, 100, 0.3) 80%,
        transparent 100%
    );
    animation: popStripeSweep 12s ease-in-out infinite alternate;
    filter: blur(3px);
}

.pop-bg .stripe:nth-child(1) { left: 15%; animation-delay: 0s; animation-duration: 14s; }
.pop-bg .stripe:nth-child(2) { left: 35%; animation-delay: 0.8s; animation-duration: 16s; width: 3px; }
.pop-bg .stripe:nth-child(3) { left: 55%; animation-delay: 0.4s; animation-duration: 12s; }
.pop-bg .stripe:nth-child(4) { left: 75%; animation-delay: 1.2s; animation-duration: 18s; width: 1.5px; }
.pop-bg .stripe:nth-child(5) { left: 90%; animation-delay: 0.6s; animation-duration: 15s; }

@keyframes popStripeSweep {
    0%   { transform: translateX(-20px) scaleY(0.5); opacity: 0.3; }
    50%  { opacity: 1; }
    100% { transform: translateX(20px) scaleY(1.2); opacity: 0.2; }
}

/* 5. 噪点 (增加质感) */
.pop-bg .pop-noise {
    position: absolute;
    inset: 0;
    z-index: 4;
    opacity: 0.02;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.7"/></svg>');
    background-size: 300px 300px;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* 响应式：小屏缩小大图形 */
@media (max-width: 640px) {
    .pop-bg .geo:nth-child(1) { width: 120px; height: 120px; }
    .pop-bg .geo:nth-child(2) { width: 160px; height: 160px; }
    .pop-bg .geo:nth-child(4) { width: 200px; height: 200px; }
    .pop-bg .geo:nth-child(6) { width: 140px; height: 140px; }
}
/* 皮肤徽章（用户管理页皮肤列自动识别） */
.badge-theme-pop {
    background-color: #F9E79F;
    color: #92400e;
}
