/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 导航栏样式更新 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 48px;
    margin-right: 1rem;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav-menu a {
    margin-left: 2rem;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #3498db;
}

/* 首页部分 */
.hero-section {
    height: 100vh;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 产品简介部分 */
.product-section {
    padding: 4rem 0.4rem;
    padding-top: calc(4rem + 80px);
    background: white;
}

/* 产品展示区域 */
.product-showcase {
    position: relative;
    width: 96%;
    max-width: 1800px;
    margin: 0 auto 3rem;
    border-radius: 15px;
    overflow: hidden;
}

/* 轮播图样式更新 */
.product-slider {
    width: 100%;
    height: 500px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

/* 文字叠加层 */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none; /* 允许点击穿透到轮播图 */
}

/* 产品介绍文字部分 */
.product-intro {
    text-align: center;
    color: white;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    max-width: 600px;
    margin: 0 auto;
}

.product-intro h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.product-intro p {
    font-size: 1.4rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 轮播图样式 */
.swiper-slide {
    width: 100%;
    height: 100%;
    background: #000;
    transition: transform 0.3s;
    opacity: 0.4;
}

.swiper-slide-active,
.swiper-slide-next {
    opacity: 1;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .product-slider {
        height: 400px;
    }
    
    .product-intro h2 {
        font-size: 2.4rem;
    }
    
    .product-intro p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .product-slider {
        height: 300px;
    }
    
    .product-intro h2 {
        font-size: 2rem;
    }
    
    .product-intro p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }
    
    .product-section {
        padding-top: calc(4rem + 70px);
    }
    
    .nav-menu a {
        margin-left: 1rem;
        font-size: 1rem;
    }
}

/* 视频容器样式更新 */
.video-container {
    display: flex;
    justify-content: space-between;
    width: 96%; /* 设置为96%宽度 */
    max-width: 1800px; /* 增加最大宽度 */
    margin: 0 auto;
    padding: 0 0.4rem; /* 减少内边距80% */
}

.video-wrapper {
    width: 32%; /* 设置为32%以保持3*1布局并留有间距 */
    height: 300px; /* 增加视频高度 */
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 添加响应式支持 */
@media (max-width: 768px) {
    .video-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .video-wrapper {
        width: 100%;
        height: 250px;
    }
}

/* 应用场景部分更新 */
.scenarios-section {
    padding: 4rem 0.4rem; /* 减少左右内边距80% */
    background: #f8f9fa;
}

.scenarios-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 96%; /* 设置为96%宽度 */
    max-width: 1800px; /* 增加最大宽度 */
    margin: 0 auto;
    padding: 2rem 0;
}

.scenario-card {
    background: white;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 400px; /* 固定高度 */
    display: flex;
    flex-direction: column;
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.scenario-image {
    width: 100%;
    height: 250px; /* 固定图片区域高度 */
    padding: 0; /* 移除内边距 */
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.scenario-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 改为cover以确保图片填充整个区域 */
    transition: transform 0.3s ease;
}

.scenario-card:hover .scenario-image img {
    transform: scale(1.05); /* 悬停时图片轻微放大 */
}

.scenario-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.scenario-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.scenario-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .scenario-card {
        height: 350px;
    }
    
    .scenario-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .scenario-card {
        height: 300px;
    }
    
    .scenario-image {
        height: 180px;
    }
}

/* 技术优势部分更新 */
.advantages-section {
    padding: 4rem 0.4rem; /* 减少左右内边距80% */
    background: white;
}

.advantages-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 96%; /* 设置为96%宽度 */
    max-width: 1800px; /* 增加最大宽度 */
    margin: 0 auto;
    padding: 2rem 0;
}

.advantage-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.advantage-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.advantage-card p {
    color: #666;
    font-size: 0.9rem;
}

/* 联系我们部分 */
.contact-section {
    padding: 4rem 0.4rem; /* 减少左右内边距80% */
    background: #f8f9fa;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 96%; /* 设置为96%宽度 */
    max-width: 1800px; /* 增加最大宽度 */
    margin: 0 auto;
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
}

#map {
    width: 100%;
    height: 100%;
}

/* 联系方式样式更新 */
.contact-item {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.contact-item i {
    font-size: 1.2rem;
    color: #3498db;
    margin-right: 1rem;
    width: 24px;
}

.contact-info h3 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem;
}

/* 页脚 */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
}

footer a {
    color: white;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .scenarios-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }
} 