/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: #fff;
}

/* 导航栏动效 */
.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-wrapper .logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.nav-wrapper .logo h1:hover {
    transform: translateY(-2px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-menu li a:hover {
    color: #2196F3;
}

.nav-menu li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Banner样式 */
.banner {
    margin-top: 80px;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 6s ease;
}

.swiper-slide-active img {
    transform: scale(1);
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0));
    z-index: 1;
}

.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    transition: transform 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    transform: scale(1.2);
}

.swiper-pagination-bullet {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #2196F3;
    width: 50px;
}

/* 页脚样式 */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 2rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent);
}

footer p {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

footer p:hover {
    opacity: 1;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .banner {
        height: 400px;
        margin-top: 60px;
    }
}

/* 通用容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cases .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 章节标题通用样式 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.title-main {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.title-main .highlight {
    color: #0e77e7;  /* 亮粉色 */
    font-weight: 700;
}

.title-en {
    font-size: 36px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 5px;
}

.title-sub {
    font-size: 14px;
    color: #666;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 3px;
    margin: 15px 0;
}

.title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.title-divider .line {
    height: 1px;
    width: 300px;
    background: #ddd;
    margin: 0 15px;
}

.title-divider i {
    color: #666;
    font-size: 16px;
}

/* 公司介绍部分 */
.company-intro {
    padding: 100px 0;
    background: #fff;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.intro-text {
    padding-right: 50px;
}

.intro-text .highlight {
    font-size: 1.5rem;
    color: #2196F3;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.intro-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
}

/* 主营产品部分 */
.products {
    padding: 100px 0;
    background: #f9f9f9;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-item h3 {
    padding: 20px;
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.product-item p {
    padding: 0 20px 20px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 视差效果部分 */
.parallax-section {
    position: relative;
    height: 400px;
    overflow: hidden;
    background-image: url('../../static/images/shicha.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    /* 上方深色渐变遮罩 */
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.parallax-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.parallax-content p {
    font-size: 1.5rem;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 成功案例部分 */
.cases {
    padding: 100px 0;
    background: #fff;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-item:hover .case-image img {
    transform: scale(1.1);
}

.case-item h3 {
    padding: 20px;
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.case-item p {
    padding: 0 20px 20px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-grid, .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .intro-content {
        grid-template-columns: 1fr;
    }
    
    .intro-text {
        padding-right: 0;
    }
    
    .product-grid, .case-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .parallax-content h2 {
        font-size: 2rem;
    }
    
    .parallax-content p {
        font-size: 1.2rem;
    }
} 

/* 底部波浪效果 */
@keyframes move_wave {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1)
    }
    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.55)
    }
    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1)
    }
}
.waveWrapper {
    overflow: hidden;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    margin: auto;
}
.waveWrapperInner {
    position: absolute;
    width: 100%;
    overflow: hidden;
    height: 100%;
    bottom: -1px;
    background-image: linear-gradient(to top, #3167ad 20%, #27273c 80%);
}
.bgTop {
    z-index: 15;
    opacity: 0.5;
}
.bgMiddle {
    z-index: 10;
    opacity: 0.75;
}
.bgBottom {
    z-index: 5;
}
.wave {
    position: absolute;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat no-repeat;
    background-position: 0 bottom;
    transform-origin: center bottom;
}
.waveTop {
    background-size: 50% 100px;
}
.waveAnimation .waveTop {
  animation: move-wave 3s;
   -webkit-animation: move-wave 3s;
   -webkit-animation-delay: 1s;
   animation-delay: 1s;
}
.waveMiddle {
    background-size: 50% 120px;
}
.waveAnimation .waveMiddle {
    animation: move_wave 10s linear infinite;
}
.waveBottom {
    background-size: 50% 100px;
}
.waveAnimation .waveBottom {
    animation: move_wave 15s linear infinite;
}

.tech-strength {
    padding: 80px 0;
    background: #f8f9fa;
}

.cert-slider {
    padding: 40px 0;
    max-width: 800px;  /* 控制轮播图最大宽度 */
    margin: 0 auto;
}

.cert-item {
    text-align: center;
    padding: 20px;
}

.cert-item img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.cert-item h3 {
    margin-top: 20px;
    font-size: 1.2em;
    color: #333;
}

/* 自定义导航按钮样式 */
.cert-slider .swiper-button-next,
.cert-slider .swiper-button-prev {
    color: #2196F3;
}

/* 自定义分页器样式 */
.cert-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #2196F3;
    opacity: 0.5;
}

.cert-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

/* 设置根容器的滚动行为 */
html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* banner 设置 */
.swiper-container.banner {
    width: 100%;
    height: 100vh;  /* 保持全屏高度 */
}

.swiper-container.banner .swiper-slide {
    width: 100%;
    height: 100%;
}

.swiper-container.banner .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 内容区域也设置滚动对齐 */
.about-section {
    scroll-snap-align: start;
    min-height: 100vh;  /* 确保内容区域也是整屏高度 */
}

.video-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-banner video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);  /* 半透明遮罩 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.video-overlay h1 {
    font-size: 4em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.3em;  /* 增加中文字间距 */
    font-weight: 600;
}

.video-overlay p {
    font-size: 2em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 0.2em;  /* 增加英文字间距 */
    word-spacing: 0.2em;    /* 增加英文词间距 */
}

/* 为每个字添加动画 */
.video-overlay h1 {
    display: inline-block;
    opacity: 0;
    transform: translateX(-110px);
    animation: slideIn 0.5s forwards;
}

.video-overlay p{
    opacity: 0;
    transform: translateX(-110px);
    animation: slideIn 0.5s forwards;
    animation-delay: 1.5s;  /* 英文标题延迟出现 */
}

/* 为每个字设置不同的延迟 */
.video-overlay h1 span:nth-child(1) { animation-delay: 0.1s; }
.video-overlay h1 span:nth-child(2) { animation-delay: 0.2s; }
.video-overlay h1 span:nth-child(3) { animation-delay: 0.3s; }
.video-overlay h1 span:nth-child(4) { animation-delay: 0.4s; }
.video-overlay h1 span:nth-child(5) { animation-delay: 0.5s; }
.video-overlay h1 span:nth-child(6) { animation-delay: 0.6s; }
.video-overlay h1 span:nth-child(7) { animation-delay: 0.7s; }
.video-overlay h1 span:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .video-banner {
        height: 33vh;
        margin: 0;
        padding: 0;
    }
    
    .video-overlay {
        padding: 0 15px;
    }
    
    .video-overlay h1 {
        font-size: 1.4em;
        letter-spacing: 0.2em;  /* 移动端稍微减小间距 */
    }
    
    .video-overlay p {
        font-size: 0.9em;
        letter-spacing: 0.15em;
        word-spacing: 0.15em;
    }
}

/* 更小屏幕的适配 */
@media screen and (max-width: 375px) {
    .video-overlay h1 {
        font-size: 1.2em;
    }
    
    .video-overlay p {
        font-size: 0.8em;
    }
}

/* 分类按钮组样式 */
.filter-buttons {
    text-align: center;
    margin: 20px 0;
}

.filter-btn {
    display: inline-block;
    padding: 8px 20px;
    margin: 0 5px;
    border: 2px solid #2196F3;
    background: #fff;
    color: #2196F3;
    cursor: pointer;
    font-size: 14px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2196F3;
    color: #fff;
}

.filter-btn:first-child {
    background: #2196F3;
    color: #fff;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .filter-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .filter-btn {
        margin: 0;
        font-size: 13px;
    }
}

/* 小火箭 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background: #2196F3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1976D2;
    transform: translateY(-3px);
}

.rocket-icon {
    font-size: 20px;
    position: relative;
}

.rocket-icon::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0%;
    transform: translateX(-50%) rotate(45deg);  /* 调整火焰角度为45度 */
    width: 4px;
    height: 10px;
    background: #ff4d4d;
    border-radius: 50%/30%;
    animation: flame 0.6s infinite alternate;
}

@keyframes flame {
    0% {
        height: 10px;
        opacity: 0.8;
        background: #ff4d4d;
    }
    100% {
        height: 15px;
        opacity: 0.3;
        background: #ff8533;
    }
}


/* 模态窗样式 */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 1000px;
    margin: 30px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-height: 90vh;  /* 限制最大高度 */
    overflow-y: auto;  /* 添加垂直滚动条 */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 90%;  /* 增加模态窗宽度 */
    max-width: 1200px;  /* 增加最大宽度 */
    margin: 30px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-image-item img {
    width: 100%;
    height: auto;
    max-height: 500px;  /* 增加图片最大高度 */
    object-fit: contain;
    border-radius: 4px;
}

.modal-description {
    text-indent: 2em;  /* 添加首行缩进 */
    line-height: 1.8;  /* 可选：调整行高使文字更易读 */
    color: #333;
}
