/* ========== 风格8：科技网格（tech-grid） ========== */
.tech-grid {
    position: relative;
    perspective: 500px;
}
.tech-grid::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(0, 255, 255, 0.15) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    transform: rotateX(45deg) scale(0.8);
    animation: gridMove 20s linear infinite;
}
.tech-grid .scan {
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ffff, #00ffff, transparent);
    animation: scanMove 3s linear infinite;
}
.tech-grid .core {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #00ffff, #0088aa);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(0,255,255,0.6);
    animation: coreGrid 2s ease-in-out infinite alternate;
}
@keyframes gridMove {
    0% { background-position: 0 0; transform: rotateX(45deg) scale(0.8); }
    100% { background-position: 30px 30px; transform: rotateX(45deg) scale(0.8); }
}
@keyframes scanMove {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}
@keyframes coreGrid {
    0% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 20px rgba(0,255,255,0.4); }
    100% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 60px rgba(0,255,255,0.9); }
}


/* ========== 代码雨样式（通过类名触发） ========== */
.tech-rain {
    position: relative;
}

/* 代码雨容器 */
.tech-rain .rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

/* 代码粒子（单个字符） */
.tech-rain .rain-particle {
    position: absolute;
    top: 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 0 8px currentColor;
    pointer-events: none;
    opacity: 0;
    animation: particleFall 1.5s linear forwards;
}

/* 核心发光 */
.tech-rain .rain-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0, 255, 100, 0.15), transparent);
    border-radius: 50%;
    z-index: 1;
    animation: corePulse 2s ease-in-out infinite alternate;
}

/* 扫描线效果 */
.tech-rain .scan-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff64, #00ff64, transparent);
    animation: scanUp 3s linear infinite;
    z-index: 2;
}

/* 粒子掉落动画 */
@keyframes particleFall {
    0% { 
        transform: translateY(0); 
        opacity: 0;
    }
    10% { 
        opacity: 1; 
    }
    90% { 
        opacity: 1; 
    }
    100% { 
        transform: translateY(calc(100vh + 50px)); 
        opacity: 0;
    }
}
@keyframes scanUp {
        0% { bottom: 0; opacity: 0; }
        10% { opacity: 1; }
        90% { opacity: 1; }
        100% { bottom: 100%; opacity: 0; }
    }
@keyframes corePulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}
/* ========== 火焰样式（通过类名触发） ========== */
.tech-fire {
    position: relative;
    overflow: hidden;
}
.tech-fire .flame {
    position: absolute;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ff6600, #ff3300, #ff0000);
    border-radius: 2px;
    animation: flameRise 1.5s ease-in infinite;
    pointer-events: none;
}
@keyframes flameRise {
    0% { height: 10px; opacity: 0; transform: translateY(0); }
    20% { opacity: 0.9; }
    80% { opacity: 0.9; }
    100% { height: 120px; opacity: 0; transform: translateY(-80px); }
}
/* ========== 流星雨+星空（通过类名触发） ========== */
.tech-stars {
    /*background: linear-gradient(180deg, #0a0a2a, #1a1a3a);*/
    position: relative;
    overflow: hidden;
}
.tech-stars .star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: starTwinkle 2s ease-in-out infinite alternate;
}
.tech-stars .shooting-star {
    position: absolute;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, white, transparent);
    border-radius: 2px;
    animation: shootingStar 4s linear infinite;
    opacity: 0;
}
@keyframes starTwinkle {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.5); }
}
@keyframes shootingStar {
    0% { transform: translate(-50px, -50px) rotate(45deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(600px, 600px) rotate(45deg); opacity: 0; }
}
/* ========== 几何风格（通过类名触发） ========== */
.tech-geometric {
    /*background: linear-gradient(135deg, #1a1a2e, #16213e);*/
    position: relative;
    overflow: hidden;
}
.tech-geometric .shape {
    position: absolute;
    border: 2px solid rgba(255, 100, 50, 0.6);
    animation: shapeFloat 5s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes shapeFloat {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
    100% { transform: translate(30px, 30px) rotate(30deg); opacity: 0.8; }
}
/* ========== 能量场风格（通过类名触发） ========== */
.tech-energy {
    /*background: radial-gradient(circle at center, #0a1a2a, #03080f);*/
    position: relative;
    overflow: hidden;
}
.tech-energy .energy-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 200, 0.4);
    box-shadow: 0 0 20px rgba(0,255,200,0.3);
    animation: energyExpand 2s ease-out infinite;
}
.tech-energy .energy-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ffcc;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffcc;
    animation: energyFlow 3s linear infinite;
    pointer-events: none;
}
@keyframes energyExpand {
    0% { width: 40px; height: 40px; opacity: 0.8; transform: translate(-50%, -50%); }
    100% { width: 280px; height: 280px; opacity: 0; transform: translate(-50%, -50%); }
}
@keyframes energyFlow {
    0% { transform: rotate(0deg) translateX(100px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: rotate(360deg) translateX(100px); opacity: 0; }
}
/* ========== 水晶棱镜风格（通过类名触发） ========== */
.tech-crystal {
    /*background: linear-gradient(135deg, #0a0a2a, #1a1a4a);*/
    position: relative;
    overflow: hidden;
}
.tech-crystal .crystal {
    position: absolute;
    background: linear-gradient(135deg, rgba(0,255,200,0.15), rgba(0,100,200,0.05));
    backdrop-filter: blur(2px);
    border: 1px solid rgba(0,255,200,0.3);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: crystalFloat 6s ease-in-out infinite;
}
.tech-crystal .prism-ray {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(0,255,200,0.08), transparent);
    animation: rayRotate 8s linear infinite;
}
@keyframes crystalFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.5; }
    50% { transform: translateY(-20px) rotate(10deg); opacity: 0.9; }
}
@keyframes rayRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* ========== 全息投影风格（通过类名触发） ========== */
.tech-hologram {
    /*background: linear-gradient(135deg, #0a0a2a, #0a0a1a);*/
    position: relative;
    overflow: hidden;
}
.tech-hologram .holo-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(0,255,255,0.3);
    animation: ringExpand 3s ease-out infinite;
}
.tech-hologram .holo-scan {
    position: absolute;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, #00ffff, transparent);
    animation: scanRotate 4s linear infinite;
}
.tech-hologram .holo-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #00ffff;
    border-radius: 50%;
    animation: particleFloat 2s linear infinite;
    opacity: 0;
}
@keyframes ringExpand {
    0% { width: 40px; height: 40px; opacity: 0.8; transform: translate(-50%, -50%); }
    100% { width: 280px; height: 280px; opacity: 0; transform: translate(-50%, -50%); }
}
@keyframes scanRotate {
    0% { transform: rotate(0deg); top: 50%; left: 50%; margin-left: -100px; margin-top: -1px; }
    100% { transform: rotate(360deg); top: 50%; left: 50%; margin-left: -100px; margin-top: -1px; }
}
@keyframes particleFloat {
    0% { transform: translate(0, 0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translate(40px, -30px); opacity: 0; }
}
/* ========== 科幻面板风格（通过类名触发） ========== */
.tech-scifi {
    /*background: #05080f;*/
    position: relative;
    overflow: hidden;
}
.tech-scifi .target-box {
    position: absolute;
    border: 1px solid rgba(0, 255, 100, 0.6);
    background: rgba(0, 255, 100, 0.03);
    animation: targetPulse 2s ease-in-out infinite alternate;
}
.tech-scifi .scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff64, #00ff64, transparent);
    animation: scanMove 3s linear infinite;
}
.tech-scifi .data-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ff64;
    border-radius: 50%;
    animation: dataBlink 1.5s ease-in-out infinite alternate;
}
@keyframes targetPulse {
    0% { box-shadow: 0 0 0px rgba(0,255,100,0.3); }
    100% { box-shadow: 0 0 15px rgba(0,255,100,0.6); }
}
@keyframes scanMove {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}
@keyframes dataBlink {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.5); }
}
/* ========== 数据景观（通过类名触发） ========== */
/* 数据景观 - tech-data-landscape */
.tech-data-landscape {
    /*background: linear-gradient(180deg, #0a0a2a, #030614);*/
    position: relative;
    overflow: hidden;
}
.tech-data-landscape .data-bar {
    position: absolute;
    bottom: 0;
    background: linear-gradient(180deg, #00ffcc, #0066aa);
    animation: barRise 2s ease-in-out infinite alternate;
}
@keyframes barRise {
    0% { height: 20px; opacity: 0.5; }
    100% { height: 150px; opacity: 1; }
}
/* ========== 水晶洞穴（通过类名触发） ========== */
/* 水晶洞穴 - tech-crystal-cave */
.tech-crystal-cave {
    /*background: linear-gradient(135deg, #0a0a2a, #0a0a4a);*/
    position: relative;
    overflow: hidden;
}
.tech-crystal-cave .crystal {
    position: absolute;
    background: linear-gradient(135deg, rgba(0,255,200,0.15), rgba(0,100,200,0.05));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: crystalGlow 3s ease-in-out infinite alternate;
}
@keyframes crystalGlow {
    0% { transform: scale(0.8); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.8; }
}
/* 量子泡沫风格 - tech-quantum-foam */
.tech-quantum-foam {
    /*background: radial-gradient(circle at center, #0a0a2a, #000000);*/
    position: relative;
    overflow: hidden;
}
.tech-quantum-foam .foam-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 255, 200, 0.08);
    border: 1px solid rgba(0, 255, 200, 0.3);
    animation: bubblePulse 3s ease-in-out infinite alternate;
}
@keyframes bubblePulse {
    0% { transform: scale(0.5); opacity: 0.2; }
    100% { transform: scale(1.2); opacity: 0.6; }
}
/* 粒子洪流风格 - tech-particle-flood */
.tech-particle-flood {
    /*background: #0a0a0f;*/
    position: relative;
    overflow: hidden;
}
.tech-particle-flood .flood-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #00ffcc;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ffcc;
    animation: floodFlow 2s linear infinite;
}
@keyframes floodFlow {
    0% { transform: translate(0, 0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translate(200px, 200px); opacity: 0; }
}
/* 数字暴雨风格 - tech-digital-storm（白色文字版） */
.tech-digital-storm {
    /*background: #000000;*/
    position: relative;
    overflow: hidden;
    font-family: monospace;
    padding:  0 20px;
}
.tech-digital-storm .storm-digit {
    position: absolute;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
    animation: stormFall 1.5s linear infinite;
    opacity: 0;
}
@keyframes stormFall {
    0% { transform: translateY(-50px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(calc(100% + 50px)); opacity: 0; }
}
/* 能量护盾风格 - tech-energy-shield */
.tech-energy-shield {
    /*background: radial-gradient(circle at center, #0a0a2a, #030614);*/
    position: relative;
    overflow: hidden;
}
.tech-energy-shield .shield-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 200, 0.4);
    box-shadow: 0 0 30px rgba(0,255,200,0.3);
    animation: shieldPulse 2s ease-out infinite;
}
@keyframes shieldPulse {
    0% { width: 50px; height: 50px; opacity: 0.8; transform: translate(-50%, -50%); }
    100% { width: 300px; height: 300px; opacity: 0; transform: translate(-50%, -50%); }
}
/* 激光网阵风格 - tech-laser-matrix */
.tech-laser-matrix {
   /* background: #05080f;*/
    position: relative;
    overflow: hidden;
}
.tech-laser-matrix .laser-h {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff0066, #ff0066, transparent);
    animation: laserHSweep 2.5s linear infinite;
}
.tech-laser-matrix .laser-v {
    position: absolute;
    width: 2px;
    background: linear-gradient(180deg, transparent, #00ffcc, #00ffcc, transparent);
    animation: laserVSweep 3s linear infinite;
}
@keyframes laserHSweep {
    0% { left: -20%; width: 20%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 120%; width: 30%; opacity: 0; }
}
@keyframes laserVSweep {
    0% { top: -20%; height: 20%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: 120%; height: 30%; opacity: 0; }
}
/* 雷达扫描风格 - tech-radar-scan */
.tech-radar-scan {
    /*background: radial-gradient(circle at center, #0a1a2a, #030614);*/
    position: relative;
    overflow: hidden;
}
.tech-radar-scan .radar-bg {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 280px;
    height: 280px;
    margin-left: -140px;
    margin-top: -140px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0, transparent 69px, rgba(0,255,100,0.1) 70px);
    border: 1px solid rgba(0,255,100,0.3);
}
.tech-radar-scan .sweep {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 280px;
    height: 280px;
    margin-left: -140px;
    margin-top: -140px;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(0,255,100,0.3) 30deg, transparent 60deg);
    border-radius: 50%;
    animation: radarSweep 3s linear infinite;
}
@keyframes radarSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 螺旋波风格 - tech-spiral-wave */
.tech-spiral-wave {
    /*background: radial-gradient(circle at center, #0a0a2a, #000000);*/
    position: relative;
    overflow: hidden;
}
.tech-spiral-wave .spiral {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #00ffff, 0 0 0 6px rgba(0,255,255,0.2), 0 0 0 12px rgba(0,255,255,0.1);
    animation: spiralExpand 2.5s ease-out infinite;
}
@keyframes spiralExpand {
    0% { width: 20px; height: 20px; margin-left: -10px; margin-top: -10px; opacity: 1; }
    100% { width: 300px; height: 300px; margin-left: -150px; margin-top: -150px; opacity: 0; }
}
/* 3D球体风格 - tech-3d-sphere */
.tech-3d-sphere {
    /*background: radial-gradient(circle at center, #0a0a2a, #000000);*/
    position: relative;
    overflow: hidden;
    perspective: 800px;
}
.tech-3d-sphere .sphere {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    height: 300px;
    margin-left: -150px;
    margin-top: -150px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0,255,200,0.3), rgba(0,100,200,0.1));
    box-shadow: 0 0 50px rgba(0,255,200,0.3), inset -20px -20px 30px rgba(0,0,0,0.3), inset 20px 20px 30px rgba(255,255,255,0.1);
    animation: sphereRotate 8s linear infinite;
}
.tech-3d-sphere .sphere-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    height: 300px;
    margin-left: -150px;
    margin-top: -150px;
    border-radius: 50%;
    border: 1px solid rgba(0,255,200,0.4);
}
@keyframes sphereRotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}
/* 粒子闪烁动画 */
@keyframes particleGlow {
    0% { 
        opacity: 0.3; 
        box-shadow: 0 0 2px #00ffcc; 
    }
    100% { 
        opacity: 1; 
        box-shadow: 0 0 12px #00ffcc; 
        transform: translate(-50%, -50%) scale(1.5);
    }
}
/* 流星环风格 - tech-meteor-ring */
.tech-meteor-ring {
    /*background: radial-gradient(circle at center, #0a0a2a, #000000);*/
    position: relative;
    overflow: hidden;
}
.tech-meteor-ring .ring-track {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 220px;
    height: 220px;
    margin-left: -110px;
    margin-top: -110px;
    border-radius: 50%;
    border: 1px solid rgba(255,100,0,0.3);
}
.tech-meteor-ring .meteor {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffaa00, #ff4400);
    border-radius: 50%;
    box-shadow: 0 0 15px #ff6600;
    animation: meteorOrbit 3s linear infinite;
}
@keyframes meteorOrbit {
    0% { transform: rotate(0deg) translateX(110px); opacity: 0.3; }
    50% { opacity: 1; }
    100% { transform: rotate(360deg) translateX(110px); opacity: 0.3; }
}
/* 原子模型风格 - tech-atomic */
.tech-atomic {
   /* background: radial-gradient(circle at center, #0a0a2a, #000000);*/
    position: relative;
    overflow: hidden;
    perspective: 700px;
}
.tech-atomic .nucleus {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 30px;
    margin-left: -15px;
    margin-top: -15px;
    background: radial-gradient(circle, #ff0066, #990033);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255,0,102,0.6);
    animation: nucleusPulse 1s ease-in-out infinite alternate;
}
.tech-atomic .orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 1px solid rgba(0,255,200,0.3);
    transform-style: preserve-3d;
    animation: orbitRotate 4s linear infinite;
}
.tech-atomic .electron {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #00ffcc, #0066aa);
    border-radius: 50%;
    box-shadow: 0 0 15px #00ffcc;
}
@keyframes nucleusPulse {
    0% { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1.2); opacity: 1; }
}
@keyframes orbitRotate {
    0% { transform: rotateX(0deg) rotateZ(0deg); }
    100% { transform: rotateX(0deg) rotateZ(360deg); }
}