
.top-header-section {width: 100%;padding-left:10%; padding-top:30px}
.top-header-title {font-size: 28px; font-weight: bold; color: #000;text-align: left;margin-bottom: 10px;}
.top-header-underline {height: 3px;width: 110px;background-color: #E70012;}
.top-btn {width: 180px;height: 50px;background-color: #E70012;color: white;border: none;border-radius: 5px;font-size: 16px;font-weight: 500;cursor: pointer;transition: all 0.3s ease;}
.top-btn:hover {background-color: #c40010;}
/* 1. 首页轮播样式 */
#home {
    padding-top:80px;
}

#about {
    height: auto;
    overflow: hidden;
    position: relative;
    background-color: #fff;
}

/* 内部容器 - 控制整体宽度和居中 */
.about-inner {
    width: 80%;
    height: 100%;
    margin: 0 auto;
    position: relative;
}

/* 顶部留白150px */
.top-spacing {
    height: 50px;
}

/* 导航菜单容器 */
.nav-container {
    position: relative;
    margin-bottom: 30px;
}

/* 左右箭头按钮 */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background-color: #E70012;
    color: white;
    border-color: #E70012;
}

.arrow-left {
    left: -20px;
}

.arrow-right {
    right: -20px;
}

/* 菜单滚动容器 */
.menu-scroll {
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 5px 20px;
    margin: 0 10px;
    width: 100%;
}

.menu-scroll::-webkit-scrollbar {
    display: none;
}

/* 菜单列表 */
.menu-list {
text-align: center;
    min-width: max-content;
    padding: 10px 0;
    white-space: nowrap;
}

/* 菜单项 */
.menu-item {
    white-space: nowrap;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.menu-item.active {
    background-color: #E70012;
    color: white;
}

.menu-item:hover:not(.active) {
    background-color: #e0e0e0;
}

/* 内容区域 - 确保在剩余高度内显示 */
.content-container {
    display: flex;
    gap: 30px;
    padding-bottom: 50px;
    align-items: center; /* 垂直居中对齐 */
    
}

/* 左侧文字内容 (40%宽度) */
.text-content {
    width: 40%;
}

.text-content h2 {
    margin-bottom: 20px;
    font-size: clamp(24px, 2.5vw - 18px, 28px);
    text-align: center;
    font-weight:700;
}

.text-content li {
    line-height: 2;
    color: #666;
    margin-bottom: clamp(10px, 6.25vw - 65px, 25px);
    font-size: clamp(14px, 2.5vw - 18px, 18px);
}

.text-content .button1 {
    text-align: center;
}

/* 右侧图片内容 (60%宽度) */
.image-content {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* 内容项与图片的显示控制 */
.content-item {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-item.active {
    display: block;
}

.product-image {
    display: none;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    animation: fadeIn 0.5s ease;
}

.product-image.active {
    display: block;
}

/* 淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式调整 - 确保在小屏幕仍为一屏显示 */
@media (max-width: 1200px) {
    .content-container {
        flex-direction: column;
        height: auto;
        gap: 20px;
    }

    .text-content,
    .image-content {
        width: 100%;
    }

    .image-content {
        height: 50%;
    }
}

@media (max-width: 768px) {
    /* 调整内部容器宽度，让手机端显示更宽 */
    #home{
        padding-top: 30px;
    }
    
    .about-inner {
        width: 95%; 
    }

    /* 调整菜单项字体和内边距，适配手机端点击 */
    .menu-item {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* 顶部留白根据手机端适当调整 */
    .top-spacing {
        height: 60px; 
    }

    /* 调整内容容器高度计算，适配手机端 */
    .content-container {
        height: calc(100% - 60px - 60px); 
        padding: 0 10px; 
    }

    /* 文字内容区域调整，让标题和列表更适配手机端 */
    .text-content h2 {
        font-size: 20px; 
        text-align: center; 
    }

    .text-content li {
        font-size: 14px; 
        line-height: 1.8; 
        margin-bottom: 15px;
    }

    /* 查看详情按钮调整，让其在手机端更易点击 */
    .detail-btn {
        margin: 0 auto; 
        display: block; 
    }

    /* 图片内容区域调整，适配手机端高度 */
    .image-content {
        height: auto; 
    }

    /* 箭头按钮位置调整，避免超出屏幕 */
    .arrow-left {
        left: 0; 
    }

    .arrow-right {
        right: 0; 
    }
}


/* 4. 案例页面样式 */
.case-content {
    padding: 30px 10%;
    display: flex;
    justify-content: space-between; 
    box-sizing: border-box;
    gap: 4%; /* 左右容器间距 */
    align-items: center; /* 垂直居中对齐 */
    min-height: 400px; /* 确保有足够高度 */
}

/* 左侧图片容器 - 移除所有动画相关样式 */
.case-image-container {
    width: 48%; 
    padding: 0;
    margin: 0;
    /* 已移除 opacity 和 transform 相关属性 */
}

/* 图片样式 */
.case-img {
    width: 100%;
    height: auto; /* 保持图片比例 */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
}

/* 右侧文字容器 - 移除所有动画相关样式 */
.case-text-container {
    width: 48%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 已移除 opacity、transform 和 transition 相关属性 */
}

/* 标题样式 */
.case-subtitle {
    font-size: clamp(20px, 2vw, 28px);
    color: #000;
    margin-bottom: clamp(16px, 3vw, 30px);
    font-weight: 700;
}

/* 描述文字样式 */
.case-desc p {
    font-size: clamp(14px, 1.2vw, 18px);
    color: #000;
    line-height: clamp(24px, 2vw, 30px);
    margin-bottom: 40px;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .case-content {
        flex-direction: column;
        padding: 20px 5%;
        gap: 20px;
    }
    .case-image-container, .case-text-container {
        width: 100%;
    }
    .case-desc p {
        font-size: 14px;
        color: #000;
        line-height: 20px;
        margin-bottom: 10px;
    }
}



.in-link-container {padding: 50px 10%;margin: 0 auto;}
.title-section {margin-bottom: 50px;text-align: center;}
.main-title {font-size: 34px;font-weight: bold;color: #000;margin-bottom: 20px;position: relative;display: inline-block;}
.main-title::after {content: '';position: absolute;left: 50%;bottom: -20px;transform: translateX(-50%);width: 120px;height: 3px;background-color: #E70012;}
.link-scroll-container {white-space: nowrap;overflow: hidden;position: relative;padding: 16px;}
.link-scroll-content {display: inline-block;}
.link-item {width: 200px;height: 200px;background-color: white;border-radius: 0.5rem;box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);overflow: hidden;transition: all 0.3s ease;display: inline-block;margin-right: 16px;}
.link-item:hover {box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);}
.link-img-container {width: 100%;height: 150px;display: flex;align-items: center;justify-content: center;}
.link-img {max-width: 80%;max-height: 80%;object-fit: contain;transition: transform 0.3s ease;}
.link-img:hover {transform: scale(1.05);}
.link-name {text-align: center;padding: 8px 0;font-size: 16px;font-weight: 700;color: #000;}
@keyframes frdLinkScroll {0% {transform: translateX(0);} 100% {transform: translateX(-50%);}}
.animate-frd-scroll {animation: frdLinkScroll 60s linear infinite;}
.link-scroll-container:hover .link-scroll-content {animation-play-state: paused !important;}

@media (max-width: 768px) {
    .in-link-container {padding: 30px 5%;}
    .main-title {font-size: 24px;}
    .main-title::after {width: 80px;bottom: -15px;}
    .link-item {width: 140px;height: 140px;margin-right: 12px;}
    .link-img-container {height: 100px;}
    .link-name {font-size: 14px;padding: 6px 0;}
    .animate-frd-scroll {animation-duration: 20s;}
    .link-scroll-content {gap: 12px;}
}

.link-scroll-content {display: inline-flex;gap: 16px;}
.link-group {display: inline-block;}
@keyframes frdLinkScroll {
    0% {transform: translateX(0);} 
    100% {transform: translateX(-50%);} /* 滚动距离=一组内容宽度，刚好衔接 */
}

