/* enhanced-style.css - 增强的现代化样式与交互效果，参考vmta.com */

/* ===== 全局样式增强 ===== */
:root {
    /* 阴影增强 */
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 10px 20px rgba(0, 0, 0, 0.08);
    
    /* 动画时间 */
    --animation-slow: 0.8s;
    --animation-medium: 0.5s;
    --animation-fast: 0.3s;
}

body {
    overflow-x: hidden;
}



/* ===== 英雄区域增强 ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-size: cover;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-banner);
    background-size: 200% 200%;
    animation: gradientAnimation 15s ease infinite alternate;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    padding: 180px 0 100px;
}

.hero-section h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.2s;
}

.hero-section .subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.4s;
}

.hero-section .cta-button {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.6s;
}

/* ===== 页面横幅增强 ===== */
.page-banner {
    position: relative;
    overflow: hidden;
    background-attachment: scroll;
    padding: 160px 0 100px;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-banner);
    background-size: 200% 200%;
    animation: gradientAnimation 15s ease infinite alternate;
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h2 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.2s;
}

.page-banner p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.4s;
}

/* ===== 卡片样式增强 ===== */
.service-item,
.feature-item,
.area-item,
.service-module,
.case-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
    background-color: white;
}

.service-item:hover,
.feature-item:hover,
.area-item:hover,
.service-module:hover,
.case-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.service-item::after,
.feature-item::after,
.area-item::after,
.service-module::after,
.case-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2;
}

.service-item:hover::after,
.feature-item:hover::after,
.area-item:hover::after,
.service-module:hover::after,
.case-card:hover::after {
    transform: scaleX(1);
}

/* ===== 按钮样式增强 ===== */
.cta-button {
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-button:hover::before {
    left: 100%;
}

/* ===== 图标样式增强 ===== */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    margin-bottom: 15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-item:hover .icon,
.service-item:hover .icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* ===== 动画效果 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 滚动触发动画 */
.scroll-animate {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-animate.from-bottom {
    transform: translateY(50px);
}

.scroll-animate.from-left {
    transform: translateX(-50px);
}

.scroll-animate.from-right {
    transform: translateX(50px);
}

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

/* ===== 响应式调整 ===== */
@media (max-width: 992px) {
    .hero-section h2 {
        font-size: 2.8rem;
    }
    
    .page-banner h2 {
        font-size: 2.5rem;
    }
    
    .service-item:hover,
    .feature-item:hover,
    .area-item:hover,
    .service-module:hover,
    .case-card:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .hero-section h2 {
        font-size: 2.2rem;
    }
    
    .hero-section .subtitle,
    .page-banner p {
        font-size: 1.1rem;
    }
    
    .page-banner h2 {
        font-size: 2rem;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .main-navigation.active {
        max-height: 500px;
        padding: 20px 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    
    .menu-toggle {
        display: block;
    }
}