/* 通用样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth; /* 平滑滚动 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
    text-align: center;
}

.section:nth-of-type(even) {
    background-color: #f9f9f9;
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #3498db;
    margin: 10px auto 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* 移除图片底部空白 */
}

a {
    text-decoration: none;
    color: #3498db;
}

a:hover {
    color: #2980b9;
}

/* 页头 */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a{
	display:flex;
	align-items:center;
}
.logo img {
    height: 50px; /* 调整标志高度 */
    width: auto;
    margin-right: 1rem;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    color: #555;
    font-weight: bold;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none; /* 桌面端隐藏 */
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* 横幅广告 */
.hero-banner {
    width: 100%;
    height: 500px;
    background: url('images/002-01.jpg') no-repeat center center/cover; /* 替换为您的设备特写照片 */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-align: center;
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* 半透明遮罩 */
    z-index: 1;
}

.hero-content {
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: white;
}

.hero-content p {
    font-size: 1.5em;
}

/* 公司简介 */
.about-us .about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 40px; /* 两栏之间的间距 */
}

.about-us .about-text {
    flex: 1;
    min-width: 300px; /* 最小宽度，防止内容过窄 */
}

.about-us .about-text p {
    margin-bottom: 15px;
    line-height: 2;
}

.about-carousel-container {
    flex: 1;
    position: relative;
    max-width: 500px; /* 轮播图最大宽度 */
    margin: 0 auto;
    overflow: hidden; /* 隐藏超出部分 */
}

.about-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.about-carousel img {
    min-width: 100%; /* 每张图片占据容器的100% */
    height: auto;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-nav:hover {
    background-color: rgba(0,0,0,0.7);
}

.carousel-nav.prev {
    left: 0px;
    border-radius: 5px;
}

.carousel-nav.next {
    right: 0px;
    border-radius: 5px;
}


/* 主要产品 */
.key-products .product-item {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 对齐到顶部 */
    gap: 50px;
    margin-bottom: 60px;
    text-align: left;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.key-products .product-item:last-child {
    margin-bottom: 0;
}

.key-products .product-item.reversed {
    flex-direction: row-reverse; /* 反转图片和文字的顺序 */
}

.key-products .product-info {
    flex: 1;
    min-width: 300px;
}

.key-products .product-info h3 {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
}

.key-products .product-info ul {
    list-style: disc;
    margin-left: 20px;
    padding: 0;
}

.key-products .product-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.key-products .product-image img {
    border-radius: 8px;
}

/* 公司优势 */
.company-advantages .advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.company-advantages .advantage-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.company-advantages .advantage-item:hover {
    transform: translateY(-5px);
}

.company-advantages .advantage-item h3 {
    color: #3498db;
    font-size: 1.5em;
    margin-top: 0;
}

/* 其他设备展示 */
.other-equipment {
    overflow: hidden; /* 隐藏超出部分以便轮播 */
}

.equipment-carousel-container {
    position: relative;
    margin: 40px auto 0;
    overflow: hidden;
}

.equipment-carousel {
    display: flex;
    transition: transform 0.0s ease-in-out; /* 初始无动画，JS控制动画 */
}

.equipment-slide {
    min-width: 100%; /* 每组幻灯片占据容器100% */
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 0 20px; /* 内部 padding */
    box-sizing: border-box; /* 包含 padding 在宽度内 */
}

.equipment-card {
    flex: 1;
    min-width: 280px; /* 保证每张卡片有最小宽度 */
    max-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-5px);
}

.equipment-card img {
    border-radius: 5px;
    margin-bottom: 10px;
}

.equipment-card p {
    font-weight: bold;
    color: #555;
    margin: 0;
}

.equipment-carousel-container .carousel-nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    padding: 8px 12px;
}


/* 联系信息 */
.contact-info .contact-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 对齐到顶部 */
    gap: 50px;
    text-align: left;
}

.contact-info .contact-details {
    flex: 1;
    min-width: 300px;
}

.contact-info .contact-details h3 {
    margin-top: 0;
    color: #3498db;
}

.contact-info .contact-details p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.contact-info .contact-details p i {
    margin-right: 10px;
    color: #3498db;
}

.contact-info .map-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-info .map-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        position: relative;
		top: -55px;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        background-color: #ffffff;
        position: absolute;
        top: 50px; /* 位于logo下方 */
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
        display: none; /* 默认隐藏 */
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-list.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-list li {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list a {
        display: block;
        padding: 15px 20px;
        color: #555;
    }

    .hamburger-menu {
        display: block; /* 移动端显示 */
        position: absolute;
        right: 20px;
        top: 15px; /* 调整位置 */	
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .about-us .about-content,
    .key-products .product-item,
    .key-products .product-item.reversed,
    .contact-info .contact-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .key-products .product-image,
    .contact-info .map-image {
        order: -1; /* 让图片在手机端显示在上方 */
        margin-bottom: 20px;
    }

    .key-products .product-info ul {
        text-align: left; /* 保持列表左对齐 */
    }

    .company-advantages .advantages-grid {
        grid-template-columns: 1fr; /* 单列显示 */
    }

    .equipment-slide {
        flex-direction: column; /* 手机上垂直堆叠卡片 */
        align-items: center;
    }

    .equipment-card {
        margin-bottom: 20px;
        width: 80%; /* 调整卡片宽度 */
        max-width: 400px; /* 限制最大宽度 */
    }

    .equipment-carousel-container .carousel-nav {
        font-size: 20px;
        padding: 5px 8px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 40px 0;
    }

    h2 {
        font-size: 2em;
    }

    .hero-banner {
        height: 350px; /* 手机端横幅高度 */
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .about-carousel-container {
        max-width: 100%;
    }

    .carousel-nav {
        padding: 5px 10px;
        font-size: 18px;
    }

    .key-products .product-item,
    .contact-info .contact-content {
        padding: 15px;
    }

    .key-products .product-info ul {
        margin-left: 15px;
    }
}