/* ============================================
   炮炮星球 - 全局特效样式
   ============================================ */

:root {
    --neon-green: #ccff00;
    --deep-black: #050505;
    --dark-gray: #1a1a1a;
    --accent-glow: rgba(204, 255, 0, 0.5);
    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   视差背景层
   ============================================ */
.parallax-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    will-change: transform;
}

.parallax-layer-1 {
    z-index: 1;
    opacity: 0.8;
}

.parallax-layer-2 {
    z-index: 2;
    opacity: 0.6;
}

.parallax-layer-3 {
    z-index: 3;
    opacity: 0.4;
}

/* ============================================
   浮动粒子效果
   ============================================ */
.floating-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-green);
    border-radius: 50%;
    opacity: 0.6;
    animation: float-particle 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: 4s; }
.particle:nth-child(4) { left: 50%; top: 60%; animation-delay: 6s; }
.particle:nth-child(5) { left: 70%; top: 30%; animation-delay: 8s; }
.particle:nth-child(6) { left: 80%; top: 70%; animation-delay: 10s; }
.particle:nth-child(7) { left: 90%; top: 50%; animation-delay: 12s; }
.particle:nth-child(8) { left: 15%; top: 90%; animation-delay: 14s; }

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) translateX(10px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-50px) translateX(-10px) scale(1);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-20px) translateX(20px) scale(1.1);
        opacity: 0.7;
    }
}

/* ============================================
   磁吸按钮效果
   ============================================ */
.magnetic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: var(--neon-green);
    color: var(--deep-black);
    font-weight: 700;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s var(--transition-smooth);
    will-change: transform;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.magnetic-btn:hover::before {
    width: 300px;
    height: 300px;
}

.magnetic-btn-outline {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 38px;
    background: transparent;
    color: var(--neon-green);
    font-weight: 700;
    font-size: 16px;
    border: 2px solid var(--neon-green);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s var(--transition-smooth), background-color 0.3s;
    will-change: transform;
}

.magnetic-btn-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(204, 255, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.magnetic-btn-outline:hover::before {
    width: 300px;
    height: 300px;
}

.magnetic-btn-outline:hover {
    background: rgba(204, 255, 0, 0.1);
}

.magnetic-btn-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(204, 255, 0, 0.1);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.magnetic-btn-icon:hover {
    background: var(--neon-green);
    color: var(--deep-black);
    transform: scale(1.1);
}

/* ============================================
   光晕扫过效果
   ============================================ */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 60%
    );
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s;
}

.shine-effect:hover::after {
    transform: translateX(100%) rotate(45deg);
}

/* ============================================
   导航栏下拉菜单特效
   ============================================ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    min-width: 220px;
    padding: 16px 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(204, 255, 0, 0.2);
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition-smooth);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.nav-dropdown-item {
    display: block;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.nav-dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--neon-green);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.nav-dropdown-item:hover {
    background: rgba(204, 255, 0, 0.1);
    color: var(--neon-green);
    padding-left: 32px;
}

.nav-dropdown-item:hover::before {
    transform: scaleY(1);
}

/* ============================================
   卡片3D倾斜效果
   ============================================ */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.3s var(--transition-smooth);
}

.tilt-card-inner {
    transform: translateZ(20px);
    transition: transform 0.3s;
}

.tilt-card:hover .tilt-card-inner {
    transform: translateZ(40px);
}

/* ============================================
   3D悬浮倾斜特效 - 通用类
   ============================================ */
.float-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s;
    will-change: transform;
}

.float-3d:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(204, 255, 0, 0.1);
}

.float-3d-inner {
    transform: translateZ(0);
    transition: transform 0.4s;
}

.float-3d:hover .float-3d-inner {
    transform: translateZ(30px);
}

/* 3D悬浮卡片 */
.card-3d {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.6));
    border: 1px solid rgba(204, 255, 0, 0.1);
    border-radius: 16px;
    padding: 24px;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.4s var(--transition-smooth);
    will-change: transform;
}

.card-3d:hover {
    transform: translateY(-12px) rotateX(3deg) rotateY(-3deg);
    border-color: rgba(204, 255, 0, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(204, 255, 0, 0.08);
}

/* 数据卡片3D效果 */
.data-card-3d {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transform-style: preserve-3d;
    transition: all 0.3s var(--transition-smooth);
}

.data-card-3d:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(204, 255, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================
   文字渐变效果
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--neon-green) 0%, #fff 50%, var(--neon-green) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shine 3s linear infinite;
}

@keyframes text-shine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ============================================
   脉冲光晕效果
   ============================================ */
.pulse-glow {
    position: relative;
}

.pulse-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--neon-green);
    border-radius: inherit;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: -1;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* ============================================
   滚动显示动画
   ============================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s var(--transition-smooth);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s var(--transition-smooth);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

.reveal-rotate {
    opacity: 0;
    transform: rotateY(90deg);
    transition: all 1s var(--transition-smooth);
}

.reveal-rotate.revealed {
    opacity: 1;
    transform: rotateY(0);
}

/* ============================================
   鼠标轨迹粒子
   ============================================ */
.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
}

/* ============================================
   优雅文字效果（替代故障效果）
   ============================================ */
.elegant-text {
    position: relative;
    display: inline-block;
}

.elegant-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-green);
    transition: width 0.6s var(--transition-smooth);
}

.elegant-text:hover::after {
    width: 100%;
}

/* 文字拆分动画 */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    animation: split-reveal 0.6s forwards;
}

@keyframes split-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   霓虹发光文字
   ============================================ */
.neon-glow {
    animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% {
        text-shadow: 0 0 5px var(--neon-green), 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
    }
    50% {
        text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green), 0 0 40px var(--neon-green);
    }
}

/* ============================================
   加载动画
   ============================================ */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(204, 255, 0, 0.3);
    border-top-color: var(--neon-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   数字滚动动画
   ============================================ */
.counter-number {
    font-variant-numeric: tabular-nums;
}

/* ============================================
   图片悬停缩放
   ============================================ */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.6s var(--transition-smooth);
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* ============================================
   边框流动效果
   ============================================ */
.border-flow {
    position: relative;
    background: var(--dark-gray);
    border-radius: 16px;
    overflow: hidden;
}

.border-flow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, var(--neon-green), transparent, var(--neon-green));
    background-size: 200% 100%;
    border-radius: inherit;
    z-index: -1;
    animation: border-flow 3s linear infinite;
}

@keyframes border-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ============================================
   玻璃拟态效果
   ============================================ */
.glass {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   霓虹发光文字
   ============================================ */
.neon-text {
    color: var(--neon-green);
    text-shadow: 
        0 0 5px var(--neon-green),
        0 0 10px var(--neon-green),
        0 0 20px var(--neon-green),
        0 0 40px var(--accent-glow);
    animation: neon-flicker 2s infinite alternate;
}

@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

/* ============================================
   波浪动画
   ============================================ */
.wave-animation {
    position: relative;
}

.wave-animation::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ccff00' fill-opacity='0.1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% { background-position-x: 0; }
    100% { background-position-x: 1440px; }
}

/* ============================================
   Hero轮播图样式
   ============================================ */
.hero-carousel {
    position: relative;
}

.carousel-container {
    position: relative;
    min-height: 60vh;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* 轮播图控制 */
.carousel-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.carousel-dots {
    display: flex;
    gap: 12px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--neon-green);
    transform: scale(1.2);
}

.carousel-progress {
    width: 0%;
    transition: width 0.1s linear;
}

/* ============================================
   产品展示卡片（第二张幻灯片）
   ============================================ */
.product-showcase-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(204, 255, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-showcase-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.2);
}

.product-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.product-showcase-card:hover .product-image {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.9), transparent);
}

/* ============================================
   数据网格（第三张幻灯片）
   ============================================ */
.data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.data-grid-item {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(204, 255, 0, 0.3);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.data-grid-item:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
    transform: translateY(-5px);
}

.data-grid-item .data-number {
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 0 0 10px var(--neon-green);
}

.data-grid-item .data-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-top: 8px;
}

/* 霓虹边框效果 */
.neon-border {
    position: relative;
}

.neon-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--neon-green), transparent, var(--neon-green));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.neon-border:hover::before {
    opacity: 1;
}

/* ============================================
   大型数据展示
   ============================================ */
.big-stat-display {
    position: relative;
}

.stat-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    margin-top: 8px;
}

/* 扫描线效果 */
.scan-line-effect {
    position: relative;
}

.scan-line-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(204, 255, 0, 0.3), transparent);
    animation: scan-line 3s infinite;
}

@keyframes scan-line {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}
