/*
Theme Name: B2 Child
Theme URI: https://7b2.com/
Description: B2 PRO主题的企业网站子主题
Author: Your Name
Author URI: https://yourwebsite.com/
Template: b2
Version: 1.0.0
Text Domain: b2-child
Tags: b2, child, enterprise
*/

/* 企业网站自定义样式 */

/* 全局样式 */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}
h1{
    font-size: 3rem;
}
/* 保留必要的动画关键帧 */
/*@keyframes backgroundMove {*/
/*    0% { background-position: 0 0; }*/
/*    100% { background-position: 100px 100px; }*/
/*}*/

/*@keyframes fadeInUp {*/
/*    from {*/
/*        opacity: 0;*/
/*        transform: translateY(50px);*/
/*    }*/
/*    to {*/
/*        opacity: 1;*/
/*        transform: translateY(0);*/
/*    }*/
/*}*/

/*@keyframes pulse {*/
/*    0% {*/
/*        transform: scale(1);*/
/*    }*/
/*    50% {*/
/*        transform: scale(1.05);*/
/*    }*/
/*    100% {*/
/*        transform: scale(1);*/
/*    }*/
/*}*/

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

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

/*@keyframes fadeIn {*/
/*    from {*/
/*        opacity: 0;*/
/*    }*/
/*    to {*/
/*        opacity: 1;*/
/*    }*/
/*}*/

/* 滚动动画效果 - 保留自定义动画类 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* 英雄区域样式 */
.enterprise-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

/* 英雄区域内容垂直居中 */
.enterprise-hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.enterprise-hero .container > div {
    text-align: center;
    max-width: 800px;
    width: 100%;
}
/* 英雄区域背景动画 */
.enterprise-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://random-api.czl.net/pic/fj') center no-repeat;
    animation: backgroundMove 20s linear infinite;
}

/* 渐变按钮效果 */
.btn-gradient {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #34495e 0%, #4a6582 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(44, 62, 80, 0.4);
}

.btn-gradient::after {
    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;
}

.btn-gradient:hover::after {
    width: 300px;
    height: 300px;
}

/* 服务卡片动画延迟 */
.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card:nth-child(5) {
    animation-delay: 0.5s;
}

.service-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* 悬停缩放效果 */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
}
