/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
/* 顶部导航栏样式 */
.header {
    position: fixed; /* 固定在页面顶部 */
    top: 0;
    left: 0;
    width: 100%; /* 占满整个宽度 */
    height: 80px;
    background-color: white; /* 设置背景色为白色 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
    z-index: 1000; /* 确保导航栏始终在顶部 */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* 平滑过渡 */
}

.header img{
    width: auto;
    height: 46px;
}

/* 调整容器的内边距，避免内容被遮挡 */
.header .container {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%; /* 确保子元素占满导航栏高度 */
}

/* 导航栏内部导航菜单 */
.header .nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.header .nav ul li {
    margin: 0 15px;
}

.header .nav ul li a {
    text-decoration: none;
    color: #333; /* 设置文字颜色 */
    font-size: 20px;
    transition: color 0.3s ease;
}

.header .nav ul li a:hover , .header .nav ul li .ahover{
    color: #3F58A6; 
    font-weight: bold;
}

/* 添加占位元素，防止内容被遮挡 */
.body-padding {
    height: 60px; /* 导航栏的高度 */
}


/* .page-hero {
    position: relative;
    height: 300px;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(
        45deg,
        #3F58A6,
        #E899BF,
        #3F58A6
    );
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.page-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.page-hero p {
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0.9;
} */


/* Banner 样式 */
/* 轮播区样式 */
.hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.hero-slider {
    display: flex;
    width: 300%;
    animation: slideAnimation 30s infinite; /* 控制轮播的时间和循环 */
}

.hero-slide {
    width: 33.33%; /* 每个轮播项占1/3宽度 */
    text-align: center;
    padding: 60px 0;
}

.hero-slide h1 {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}

.hero-slide p {
    font-size: 20px;
    color: #555;
}

.cta-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* 轮播动画 */
@keyframes slideAnimation {
    0% {
        transform: translateX(0);
    }
    33.33% {
        transform: translateX(-33.33%);
    }
    66.66% {
        transform: translateX(-66.66%);
    }
    100% {
        transform: translateX(0);
    }
}


/* 核心优势板块样式 */
.core-advantages {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.section-description {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.advantage-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.advantage-item:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon i {
    font-size: 2.2rem;
    color: #3F58A6;  /* 主色调用于图标 */
    z-index: 2;
}

/* 外层呼吸光效使用副色调 */
.advantage-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(232, 153, 191, 0.2) 0%, rgba(232, 153, 191, 0.05) 70%);
    border-radius: 50%;
    animation: iconPulse 2s infinite;
}

/* 内层旋转边框使用主色调 */
.advantage-icon::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 50%;
    border: 2px solid rgba(63, 88, 166, 0.2);
    border-radius: 50%;
    animation: iconRotate 4s linear infinite;
}

@keyframes iconPulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

@keyframes iconRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.advantage-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.advantage-description {
    color: #666;
    line-height: 1.6;
}

/* 动画效果 */
.pulse {
    animation: pulse 2s infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}

.rotate {
    animation: rotate 8s linear infinite;
}

.beat {
    animation: beat 1s ease infinite;
}

.shake {
    animation: shake 3s ease infinite;
}

.bounce {
    animation: bounce 2s ease infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes beat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    40% { transform: scale(1); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0% { transform: rotate(0); }
    15% { transform: rotate(5deg); }
    30% { transform: rotate(-5deg); }
    45% { transform: rotate(4deg); }
    60% { transform: rotate(-4deg); }
    75% { transform: rotate(2deg); }
    85% { transform: rotate(-2deg); }
    92% { transform: rotate(1deg); }
    100% { transform: rotate(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 应用场景板块样式 */
.application-scenarios {
    /* 保持浅灰色背景 */
    background-color: #f8f9fa;
    /* 增加上下内边距 */
    padding: 60px 0;
}

.application-scenarios .section-title {
    /* 加深标题颜色 */
    color: #333;
    margin-bottom: 20px;
    font-size: 2.2em;
    font-weight: 600;
}

.application-scenarios .section-description {
    /* 调整描述文字颜色和大小 */
    color: #666;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.application-scenarios .scenarios-grid {
    display: flex;
    gap: 0;
    margin-top: 40px;
    height: 400px;
}

.scenario-item {
    flex: 0.2;
    position: relative;
    transition: all 0.5s ease;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.8;
}

.scenario-item:hover,
.scenario-item.active {
    flex: 0.6;
    opacity: 1;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.scenario-content {
    position: relative;
    height: 100%;
    width: 100%;
}

.front {
    position: relative;
    height: 100%;
    width: 100%;
}

.scenario-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.7) brightness(0.8);
    transition: all 0.5s ease;
}

.scenario-item:hover .scenario-image,
.scenario-item.active .scenario-image {
    filter: saturate(1.1) brightness(1);
}

.front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.5) 100%);
    transition: opacity 0.3s ease;
}

.scenario-item:hover .front::after,
.scenario-item.active .front::after {
    opacity: 0.7;
}

.front .scenario-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.back {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.7) 20%,
        rgba(0, 0, 0, 0.85) 100%
    );
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.scenario-item:hover .back,
.scenario-item.active .back {
    transform: translateY(0);
}

.back .scenario-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.back .scenario-description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.scenario-item:hover .back .scenario-description,
.scenario-item.active .back .scenario-description {
    opacity: 1;
    transform: translateY(0);
}

/* 合作伙伴区样式 */
.partners {
    padding: 40px 0 120px 0;
    /* 改为白色背景 */
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
}

.section-description {
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
}

.partner-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-item img {
    border: 2px solid #ddd; /* 设置自定义框 */
    border-radius: 8px; /* 圆角效果 */
    padding: 5px; /* 增加间距避免与边框重叠 */
    box-sizing: border-box; /* 确保 padding 和 border 不影响图片大小 */
    outline: none; /* 去掉默认的焦点样式 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 增加平滑过渡 */
}

/* 鼠标悬停时的效果 */
.partner-item img:hover {
    transform: scale(1.05); /* 放大图片 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 增加阴影效果 */
}

/* 去除图片默认边框 */
.partner-item img {
    border: none; /* 去掉图片默认的边框 */
}


/* 整体样式 */
.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 20px 40px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 上部区域 */
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.footer-column {
    color: #ccc;
}

.footer-column-right {
    grid-column: -1 / -1;  /* 这将"关注我们"列放在最右边 */
}

.footer-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
    padding-left: 10px;
    position: relative;
    font-weight: bold;
}

/* 去掉竖线并做出样式优化 */
.footer-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 50%;
    background-color: #00bfff;  /* 蓝色 */
}
.footer-links,
.footer-news {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-news li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-news a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-news a:hover {
    color: #00bfff;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-social img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background-color: #333;
    padding: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer-social img:hover {
    transform: scale(1.1);
    background-color: #00bfff;
}

.qr-code {
    margin-top: 10px;
    width: 100px;
    height: 100px;
}

/* 版权信息区域 */
.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #777;
    margin-top: 30px;
}

.footer-bottom a {
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}
/* 移动菜单按钮默认状态 */
.mobile-menu-btn {
    display: none;
}

/* 其他页面的banner区域 */
.page-hero {
    position: relative;
    height: 400px;
    width: 100%;
    overflow: hidden;
    background-color: rgb(63, 89, 166);  /* 与首页保持一致的背景色 */
}

.page-hero-inner {
    position: relative;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    background-image: url('../imgs/banner-bg.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: fadeInBg 1.5s ease-out;
}

.page-hero-content {
    position: relative;
    text-align: center;
    color: white;
    padding-top: 100px;  /* 调整文字垂直位置 */
    animation: fadeInContent 1.5s ease-out 0.3s backwards;
}

.page-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);  /* 添加文字阴影提高可读性 */
}

.page-hero p {
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInBg {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 移动端适配样式 (@media max-width: 768px) */
@media (max-width: 768px) {
    /* 头部导航相关 */
    .header {
        height: 60px;
    }
    
    .header img {
        height: 36px;
    }
    
    .header .nav {
        position: fixed;
        top: 50px;          /* 更靠近菜单按钮 */
        right: 15px;        /* 更靠右 */
        width: 160px;
        height: auto;
        background: rgba(255, 255, 255, 0.98);  /* 白色背景 */
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        display: none;
        z-index: 1000;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(64, 158, 255, 0.2);  /* 主色调边框 */
    }

    /* 添加小三角 */
    .header .nav::before {
        content: '';
        position: absolute;
        top: -8px;
        right: 15px;        /* 对齐菜单按钮 */
        width: 16px;
        height: 16px;
        background: white;
        transform: rotate(45deg);
        border-left: 1px solid rgba(64, 158, 255, 0.2);
        border-top: 1px solid rgba(64, 158, 255, 0.2);
    }

    .header .nav.active {
        display: block;
    }

    .header .nav ul {
        display: flex;
        flex-direction: column;
        padding: 8px 0;
        margin: 0;
        list-style: none;
        width: 100%;
    }

    .header .nav ul li {
        width: 100%;
        margin: 0;
    }

    .header .nav ul li a {
        color: #333;         /* 深色文字 */
        font-size: 15px;
        text-decoration: none;
        padding: 12px 20px;  /* 增加左右内边距 */
        display: block;
        transition: all 0.3s ease;
    }

    .header .nav ul li a:hover {
        color: #409EFF;      /* 主色调文字 */
        background: rgba(64, 158, 255, 0.1);  /* 主色调背景 */
    }

    /* 保持动画效果 */
    @keyframes slideIn {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }

    /* 移动菜单按钮 */
    .mobile-menu-btn {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }



    /* 核心优势板块 */
    .advantages-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .advantage-item {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }

    /* 应用场景板块的移动端样式 */
    .application-scenarios {
        padding: 30px 0;
        background: #1a1a1a;
    }

    .application-scenarios .section-title {
        color: white;
        text-align: center;
        margin-bottom: 15px;
    }

    .application-scenarios .section-description {
        color: rgba(255,255,255,0.7);
        text-align: center;
        margin-bottom: 30px;
        padding: 0 20px;
    }

    .application-scenarios .scenarios-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }

    .application-scenarios .scenario-item {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        height: 200px;
    }

    .application-scenarios .scenario-content {
        position: relative;
        height: 100%;
    }

    .application-scenarios .front {
        position: relative;
        height: 100%;
    }

    .application-scenarios .scenario-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .application-scenarios .front .scenario-title {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 15px;
        background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
        color: white;
        font-size: 18px;
        margin: 0;
        transition: opacity 0.3s ease;  /* 添加过渡效果 */
    }

    /* 点击时隐藏前面的标题 */
    .application-scenarios .scenario-item:focus .front .scenario-title {
        opacity: 0;
    }

    .application-scenarios .back {
        position: absolute;
        top: 0;
        left: 0;
        width: 95%;
        height: 100%;
        background: rgba(0,0,0,0.85);
        padding: 8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        transform: translateY(-15px);  /* 整体往上移动 */
    }

    .application-scenarios .scenario-item:focus .back {
        opacity: 1;
    }

    .application-scenarios .back .scenario-title {
        color: #409EFF;
        font-size: 20px;
        margin-bottom: 10px;
    }

    .application-scenarios .back .scenario-description {
        color: rgba(255,255,255,0.9);
        font-size: 14px;
        line-height: 1.6;
    }

    /* 合作伙伴区域 */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .partner-item img {
        max-width: 120px;
    }

    /* 页脚 */
    .footer-top {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 30px 0;
    }

    /* 隐藏快速链接和产品列表 */
    .footer-column:nth-child(2),
    .footer-column:nth-child(3) {
        display: none;
    }

    /* 关于我们样式 */
    .footer-column:first-child {
        text-align: center;
    }

    .footer-column:first-child p {
        font-size: 14px;
        line-height: 1.6;
        margin: 8px 0;
    }

    /* 关注我们样式 */
    .footer-column-right {
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 20px;
    }

    .footer-social {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin: 15px 0;
    }

    .footer-social img {
        width: 100px;
        height: 100px;
        border-radius: 8px;
    }

    .footer-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    /* 版权信息 */
    .footer-bottom {
        text-align: center;
        padding: 15px 0;
        font-size: 12px;
    }

    .footer-bottom p {
        line-height: 1.5;
    }
}


