/* ============================================
   睿库软件 - 科技未来风增强样式
   Enhanced Tech-Futuristic Style
   ============================================ */

/* 额外的CSS变量 - 科技未来风配色 */
:root {
    /* 霓虹渐变色 */
    --neon-blue: #00D4FF;
    --neon-purple: #7C3AED;
    --neon-pink: #EC4899;
    --neon-cyan: #06B6D4;

    /* 科技光效 */
    --tech-glow-blue: 0 0 20px rgba(0, 212, 255, 0.6);
    --tech-glow-purple: 0 0 20px rgba(124, 58, 237, 0.6);
    --tech-glow-pink: 0 0 20px rgba(236, 72, 153, 0.6);

    /* 增强的渐变 */
    --gradient-neon: linear-gradient(135deg, #00D4FF 0%, #7C3AED 50%, #EC4899 100%);
    --gradient-tech: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #334155 100%);
    --gradient-cyber: linear-gradient(90deg, #00D4FF, #7C3AED, #EC4899, #00D4FF);

    /* 动画时长 */
    --animation-fast: 0.2s;
    --animation-normal: 0.4s;
    --animation-slow: 0.8s;
}

/* ============================================
   ENHANCED HERO SECTION - 增强首屏区域
   ============================================ */

.hero {
    background: var(--gradient-tech);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

/* 动态星空背景 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255, 255, 255, 0.9), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: star-twinkle 5s ease-in-out infinite;
    z-index: 1;
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* 流动的极光效果 */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(120deg, transparent 30%, rgba(0, 212, 255, 0.1) 50%, transparent 70%),
        linear-gradient(240deg, transparent 30%, rgba(124, 58, 237, 0.1) 50%, transparent 70%);
    animation: aurora-flow 8s ease-in-out infinite;
    z-index: 2;
}

@keyframes aurora-flow {
    0%, 100% {
        transform: translateX(-20%) translateY(-10%) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateX(20%) translateY(10%) rotate(5deg);
        opacity: 0.8;
    }
}

/* Hero内容区域增强 */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Hero文字增强 */
.hero-text {
    animation: hero-fade-in 1s ease-out;
}

@keyframes hero-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.label-text {
    color: var(--neon-blue);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.label-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: var(--tech-glow-blue);
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--tech-glow-blue);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    }
}

/* Hero标题增强 - 霓虹文字效果 */
.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
}

.title-line {
    display: block;
    margin-bottom: var(--spacing-sm);
}

.title-line.highlight {
    background: var(--gradient-neon);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 3s linear infinite;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

@keyframes gradient-flow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Hero描述增强 */
.hero-description {
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hero统计卡片增强 */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    animation: stat-rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes stat-rotate {
    100% { transform: rotate(360deg); }
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
    box-shadow: var(--tech-glow-blue);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-xs);
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

/* Hero按钮增强 */
.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.btn-hero {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-hero-primary {
    background: var(--gradient-neon);
    color: white;
    box-shadow: var(--tech-glow-blue);
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--neon-blue);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--neon-cyan);
    transform: translateY(-3px);
    box-shadow: var(--tech-glow-blue);
}

/* ============================================
   ENHANCED PRODUCT CARDS - 增强产品卡片
   ============================================ */

.product-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* 产品卡片光效边框 */
.product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-neon);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    animation: border-rotate 3s linear infinite;
}

@keyframes border-rotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(0, 212, 255, 0.05);
}

/* 产品图标增强 */
.product-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-neon);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: var(--tech-glow-blue);
}

.product-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-neon);
    border-radius: inherit;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.product-card:hover .product-icon {
    transform: scale(1.15) rotateY(360deg);
}

.product-card:hover .product-icon::after {
    opacity: 0.6;
}

/* 产品标签增强 */
.product-badge {
    background: var(--gradient-neon);
    color: white;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--tech-glow-blue);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Premium卡片特殊样式 */
.product-card.premium {
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.05),
        rgba(124, 58, 237, 0.05),
        rgba(255, 255, 255, 0.95)
    );
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.product-card.premium::before {
    background: linear-gradient(135deg, #00D4FF, #7C3AED, #EC4899);
}

/* ============================================
   SCROLL ANIMATIONS - 滚动动画
   ============================================ */

.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* 不同的动画延迟 */
.scroll-animate.delay-1 { transition-delay: 0.1s; }
.scroll-animate.delay-2 { transition-delay: 0.2s; }
.scroll-animate.delay-3 { transition-delay: 0.3s; }
.scroll-animate.delay-4 { transition-delay: 0.4s; }

/* 从左进入 */
.scroll-animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-animate-left.animated {
    opacity: 1;
    transform: translateX(0);
}

/* 从右进入 */
.scroll-animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-animate-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* 缩放进入 */
.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   ENHANCED INTERACTIONS - 增强交互效果
   ============================================ */

/* 磁性按钮效果增强 */
.magnetic-btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.magnetic-btn:hover {
    transform: scale(1.05);
}

.magnetic-btn:active {
    transform: scale(0.95);
}

/* 卡片悬停光效 */
.card-glow:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 60px rgba(0, 212, 255, 0.3),
        inset 0 0 30px rgba(0, 212, 255, 0.05);
}

/* 文字发光效果 */
.text-glow {
    text-shadow:
        0 0 10px rgba(0, 212, 255, 0.8),
        0 0 20px rgba(0, 212, 255, 0.6),
        0 0 30px rgba(0, 212, 255, 0.4);
}

/* ============================================
   ENHANCED ADVANTAGE CARDS - 增强优势卡片
   ============================================ */

.advantage-item {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.9)
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-neon);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.advantage-item:hover::before {
    transform: scaleX(1);
}

.advantage-item:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(0, 212, 255, 0.2);
}

/* Featured优势卡片 */
.advantage-item.featured {
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.08),
        rgba(124, 58, 237, 0.05),
        rgba(255, 255, 255, 0.95)
    );
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.advantage-item.featured::before {
    height: 6px;
    transform: scaleX(1);
}

/* 优势图标增强 */
.advantage-item .icon-bg {
    width: 90px;
    height: 90px;
    background: var(--gradient-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: white;
    font-size: 36px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--tech-glow-blue);
    position: relative;
}

.advantage-item .icon-bg::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-neon);
    border-radius: 50%;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.4s ease;
    z-index: -1;
}

.advantage-item:hover .icon-bg {
    transform: scale(1.15) rotateY(360deg);
}

.advantage-item:hover .icon-bg::after {
    opacity: 0.7;
}

/* ============================================
   LOADING ANIMATIONS - 加载动画
   ============================================ */

/* 页面加载遮罩 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-tech);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

/* 加载动画 - 科技旋转环 */
.loader-ring {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: loader-spin 1s linear infinite;
    position: relative;
}

.loader-ring::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid transparent;
    border-top-color: var(--neon-purple);
    border-radius: 50%;
    animation: loader-spin 1.5s linear infinite reverse;
}

@keyframes loader-spin {
    100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE ENHANCEMENTS - 响应式增强
   ============================================ */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 140px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .btn-hero {
        width: 100%;
        text-align: center;
    }

    .product-card,
    .advantage-item {
        padding: var(--spacing-lg);
    }

    /* 移动端减少动画 */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-label {
        font-size: 12px;
    }

    .section-title {
        font-size: 28px;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS - 性能优化
   ============================================ */

/* GPU加速 */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* 减少重绘 */
.optimized-element {
    contain: layout style paint;
}

/* 延迟加载占位 */
.lazy-load {
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.05) 25%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   ACCESSIBILITY - 可访问性增强
   ============================================ */

/* 聚焦状态清晰可见 */
:focus-visible {
    outline: 3px solid var(--neon-blue);
    outline-offset: 3px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .product-card,
    .advantage-item {
        border-width: 2px;
    }

    .btn-hero {
        border: 2px solid currentColor;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .product-card,
    .advantage-item {
        background: rgba(30, 41, 59, 0.9);
        color: white;
    }
}
