* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Banner 样式 */
.banner {
    height: 600px; /* 修改为100vh，铺满整个视口高度 */
    width: 100%;
    position: relative;
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative; /* 添加相对定位 */
    overflow: hidden; /* 确保背景不会溢出 */
}

.swiper-slide .bg-image {
    position: absolute;
    top: -20px;  /* 负边距使图片更大，以便移动时不会露出边缘 */
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    background-size: cover;
    background-position: center;
    transition: transform 0.2s ease-out;
    z-index: 1;
}

.swiper-slide .content {
    position: relative;
    z-index: 2; /* 确保内容在背景之上 */
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.3); /* 半透明背景使文字更清晰 */
    border-radius: 10px;
    max-width: 80%;
}

.banner h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.banner p {
    font-size: 1.5rem;
}

/* 修改指示器为长方形 */
.swiper-pagination-bullet {
    width: 30px !important;
    height: 5px !important;
    border-radius: 0 !important; /* 移除圆角，变成长方形 */
    background-color: rgba(255, 255, 255, 0.5) !important;
}

.swiper-pagination-bullet-active {
    background-color: white !important;
}

/* Mission 部分样式 */
.mission {
    padding: 5rem 0;
    text-align: center;
}

.mission-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mission h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.mission p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* 产品展示部分样式 */
.products {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.products-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.products h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.product-item h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: #333;
}

.product-item p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
}

/* 关于我们部分样式 */
.about-us {
    padding: 5rem 0;
    background-color: #fff;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.about-us h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.about-us p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.company-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #0066cc;
}

.stat-desc {
    font-size: 1.2rem;
    color: #666;
    margin-top: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner h1 {
        font-size: 2.5rem;
    }
    
    .banner p {
        font-size: 1.2rem;
    }
    
    .company-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}