/* ================================
   Hero区域科幻风格增强
   大胆、未来感、高性能
   ================================ */

/* ========== Hero Section 整体样式 ========== */
.hero-section {
    background: linear-gradient(135deg, 
        rgba(245, 127, 23, 0.08) 0%, 
        rgba(255, 184, 0, 0.05) 25%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 235, 59, 0.05) 75%,
        rgba(255, 255, 255, 0.95) 100%) !important;
    position: relative !important;
    overflow: visible !important;
    box-shadow: 
        0 10px 60px rgba(245, 127, 23, 0.15),
        inset 0 -2px 30px rgba(255, 184, 0, 0.1) !important;
    /* 确保右侧面板正确定位 */
    min-height: 600px !important;
}

/* 科幻网格背景 */
.hero-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: 
        linear-gradient(rgba(245, 127, 23, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 127, 23, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.6 !important;
    animation: gridMove 30s linear infinite;
    z-index: 0 !important;
}

/* 粒子效果背景 */
.hero-section::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 184, 0, 0.1) 1px, transparent 1px),
                      radial-gradient(circle at 60% 70%, rgba(255, 149, 0, 0.08) 1px, transparent 1px),
                      radial-gradient(circle at 80% 20%, rgba(255, 235, 59, 0.06) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    animation: particleFloat 60s linear infinite;
    opacity: 0.8 !important;
    z-index: 0 !important;
}

/* ========== Hero容器增强 ========== */
.hero-container {
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
}

.hero-content {
    position: relative !important;
    z-index: 2 !important;
    overflow: visible !important;
}

/* Hero文字区域 */
.hero-text {
    overflow: visible !important;
    padding: 20px 0 !important;
}

/* ========== 标题科幻效果 ========== */
.hero-title {
    position: relative !important;
    text-shadow: 
        2px 2px 4px rgba(255, 107, 0, 0.2),
        0 0 20px rgba(255, 184, 0, 0.3),
        0 0 40px rgba(255, 184, 0, 0.1) !important;
    animation: titleGlow 4s ease-in-out infinite !important;
    /* 放大容器，确保跳动时有足够空间 */
    padding: 60px 0 40px 0 !important;
    overflow: visible !important;
    min-height: 200px !important;
}

.title-main {
    background: linear-gradient(135deg, 
        #F57F17 0%, 
        #FFB800 50%, 
        #FF9500 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: drop-shadow(0 2px 8px rgba(245, 127, 23, 0.3));
    animation: mainTitleShine 6s ease-in-out infinite;
    /* 放大容器，确保跳动时不显示边界 */
    display: inline-block !important;
    padding: 50px 40px !important;
    overflow: visible !important;
    /* 移除任何边框效果 */
    border: none !important;
    box-shadow: none !important;
}

.title-sub {
    background: linear-gradient(90deg, 
        #FBC02D 0%, 
        #FDD835 50%, 
        #FFEB3B 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    position: relative !important;
    display: inline-block !important;
}

/* 副标题光效 */
.title-sub::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(251, 192, 45, 0.8) 50%, 
        transparent 100%);
    animation: underlineGlow 3s ease-in-out infinite;
}

/* ========== 描述文字增强 ========== */
.hero-description {
    position: relative !important;
    color: #5D4037 !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8) !important;
    letter-spacing: 1px !important;
    line-height: 1.8 !important;
    font-weight: 500 !important;
}

/* ========== 按钮科幻增强 ========== */
.hero-btn {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

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

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

.hero-btn-primary {
    box-shadow: 
        0 8px 25px rgba(245, 127, 23, 0.4),
        0 0 40px rgba(255, 107, 0, 0.2),
        inset 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
    animation: buttonPulse 3s ease-in-out infinite;
}

.hero-btn-primary:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 
        0 12px 35px rgba(245, 127, 23, 0.5),
        0 0 60px rgba(255, 107, 0, 0.3),
        inset 0 -2px 15px rgba(0, 0, 0, 0.15) !important;
}

.hero-btn-secondary {
    box-shadow: 
        0 4px 15px rgba(245, 127, 23, 0.2),
        inset 0 0 20px rgba(245, 127, 23, 0.05) !important;
}

.hero-btn-secondary:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 
        0 8px 25px rgba(245, 127, 23, 0.3),
        inset 0 0 30px rgba(245, 127, 23, 0.1) !important;
}

/* 按钮图标增强 */
.hero-btn i {
    display: inline-block !important;
    transition: transform 0.3s ease !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.hero-btn:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* ========== 统计数据增强 ========== */
.hero-stats {
    position: relative !important;
}

.stat-item {
    position: relative !important;
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 16px !important;
    border: 2px solid rgba(245, 127, 23, 0.2) !important;
    box-shadow: 
        0 8px 25px rgba(245, 127, 23, 0.1),
        inset 0 0 30px rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 184, 0, 0.2), 
        transparent);
    animation: statShine 3s ease-in-out infinite;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(245, 127, 23, 0.4);
    box-shadow: 
        0 12px 35px rgba(245, 127, 23, 0.2),
        inset 0 0 40px rgba(255, 255, 255, 0.7) !important;
}

.stat-number {
    background: linear-gradient(135deg, 
        #F57F17 0%, 
        #FF9500 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 800 !important;
    font-size: 2.5rem !important;
    text-shadow: 0 2px 10px rgba(245, 127, 23, 0.3);
    animation: numberCount 2s ease-out;
}

.stat-label {
    color: #6D4C41 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}

/* ========== 漂浮元素增强 ========== */
.floating-book {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 235, 59, 0.5) 100%) !important;
    border: 2px solid rgba(245, 127, 23, 0.3) !important;
    box-shadow: 
        0 10px 30px rgba(245, 127, 23, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
}

.floating-book i {
    background: linear-gradient(135deg, #F57F17, #FF9500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(245, 127, 23, 0.4));
}

/* ========== 动画定义 ========== */

/* 网格移动 */
@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* 粒子漂浮 */
@keyframes particleFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, -50px); }
}

/* 标题光效 */
@keyframes titleGlow {
    0%, 100% {
        text-shadow: 
            2px 2px 4px rgba(255, 107, 0, 0.2),
            0 0 20px rgba(255, 184, 0, 0.3),
            0 0 40px rgba(255, 184, 0, 0.1);
    }
    50% {
        text-shadow: 
            2px 2px 4px rgba(255, 107, 0, 0.3),
            0 0 30px rgba(255, 184, 0, 0.5),
            0 0 60px rgba(255, 184, 0, 0.2);
    }
}

/* 主标题闪耀 */
@keyframes mainTitleShine {
    0%, 100% { filter: drop-shadow(0 2px 8px rgba(245, 127, 23, 0.3)); }
    50% { filter: drop-shadow(0 4px 16px rgba(245, 127, 23, 0.6)); }
}

/* 下划线光效 */
@keyframes underlineGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* 按钮脉动 */
@keyframes buttonPulse {
    0%, 100% { 
        box-shadow: 
            0 8px 25px rgba(245, 127, 23, 0.4),
            0 0 40px rgba(255, 107, 0, 0.2),
            inset 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    50% { 
        box-shadow: 
            0 10px 30px rgba(245, 127, 23, 0.5),
            0 0 50px rgba(255, 107, 0, 0.3),
            inset 0 -2px 15px rgba(0, 0, 0, 0.15);
    }
}

/* 统计闪耀 */
@keyframes statShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* 数字计数 */
@keyframes numberCount {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 响应式优化 ========== */

@media (max-width: 992px) {
    .stat-number {
        font-size: 2rem !important;
    }
    
    .hero-btn {
        font-size: 0.95rem !important;
    }
    
    .hero-title {
        padding: 50px 0 30px 0 !important;
        min-height: 180px !important;
    }
    
    .title-main {
        padding: 40px 30px !important;
    }
}

@media (max-width: 768px) {
    .hero-section::before {
        background-size: 30px 30px;
    }
    
    .stat-number {
        font-size: 1.8rem !important;
    }
    
    .stat-label {
        font-size: 0.8rem !important;
    }
    
    .hero-title {
        padding: 40px 0 25px 0 !important;
        min-height: 160px !important;
    }
    
    .title-main {
        padding: 30px 20px !important;
    }
    
    .hero-text {
        padding: 15px 0 !important;
    }
}

/* ========== 性能优化 ========== */

/* GPU加速 */
.hero-title,
.hero-btn,
.stat-item,
.floating-book {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 减少重绘 */
.hero-section,
.hero-container,
.stat-item {
    contain: layout style paint;
}

/* 减弱动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before,
    .hero-section::after,
    .hero-title,
    .title-main,
    .stat-item::before,
    .stat-number,
    .hero-btn-primary {
        animation: none !important;
    }
}

