/* 产业板块页面样式 */

/* 页面头部和二级菜单 */
.page-header {
    background-color: #f5f5f5;
}

.submenu-container {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    width: 100%;
}

.submenu-list {
    display: flex;
    list-style: none;
    padding: 0 40px;
    margin: 0;
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
    box-sizing: border-box;
    gap: 0;
}

.submenu-item {
    flex: 1 1 auto;
    max-width: 200px;
    min-width: 120px;
    padding: 10px 5px;
    position: relative;
    min-height: 60px;
    height: auto;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.submenu-item a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    /* 允许换行，支持长标题显示 */
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
    text-align: center;
    line-height: 1.4;
}

.submenu-item:hover a {
    color: rgba(28, 142, 199, 1);
}

.submenu-item.active a {
    color: rgba(28, 142, 199, 1);
}

.submenu-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: rgba(28, 142, 199, 1);
}

/* 主内容区域 */
.industry-content {
    padding: 0;
    background-color: #F5F8FA;
}

.industry-container {
    width: 100%;
    margin: 0 auto;
}

/* 产业简介区域 */
.industry-intro-section {
    margin-bottom: 0;
    width: 100%;
    min-height: 690px;
    background-size: cover;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro-title-bar {
    text-align: center;
    margin-bottom: 50px;
}

.intro-title {
    font-size: 32px;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}


.intro-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    align-items: center;
}

.intro-image {
    width: 800px;
    height: 450px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border: none;
    outline: none;
}

.intro-text {
    flex: 1;
    min-width: 0;
    height: 450px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.intro-text > * {
    flex: 1;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    text-align: justify;
    text-indent: 2em;
    display: -webkit-box;
    -webkit-line-clamp: 14;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.intro-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    text-align: justify;
    text-indent: 2em;
}

/* ===== 旧的主营业务样式已废弃 =====
 * 现在使用 main-business-new.css 中的Swiper三联动样式
 * 保留此注释以供参考
 */

/* 旧样式已注释 - 使用新的Swiper三联动布局 */

/* 内容区块 */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background-color: #1C8EC7;
}

/* 产业介绍卡片 */
.industry-card {
    display: flex;
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.industry-card-image {
    width: 400px;
    height: 300px;
    overflow: hidden;
}

.industry-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.industry-card:hover .industry-card-image img {
    transform: scale(1.05);
}

.industry-card-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.industry-card-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
}

.industry-card-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    flex: 1;
}

.industry-card-more {
    align-self: flex-start;
    padding: 10px 25px;
    background-color: #1C8EC7;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.industry-card-more:hover {
    background-color: #166d9a;
}

/* 产业动态列表 */
.dynamic-list {
    margin-bottom: 40px;
}

.dynamic-item {
    display: flex;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dynamic-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dynamic-date {
    width: 120px;
    padding: 20px;
    background-color: #1C8EC7;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dynamic-day {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 5px;
}

.dynamic-month {
    font-size: 14px;
}

.dynamic-content {
    flex: 1;
    padding: 25px;
}

.dynamic-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.dynamic-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.dynamic-more {
    display: inline-block;
    color: #1C8EC7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.dynamic-more:hover {
    color: #166d9a;
}


/* 经典案例部分 */
.classic-cases {
    padding: 80px 0;
    background-color: #fff;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.cases-main-title {
    color: #333;
    font-size: 32px;
    position: relative;
    padding-bottom: 15px;
    font-family: 'ALBB';
    text-align: center;
}

/* Swiper 经典案例轮播样式 - 三张图片并排带3D效果 */
.cases-carousel {
    width: 100%;
    max-width: 1520px;
    position: relative;
    margin: 0 auto;
    padding: 0 40px;
    perspective: 1500px;
}

.cases-swiper {
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.cases-swiper .swiper-wrapper {
    display: flex;
    align-items: center ;
}

/* 3个以内时居中显示 */
.cases-swiper .swiper-wrapper.centered {
    justify-content: center !important;
    gap: 30px !important;
    transform: none !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

.cases-swiper .swiper-wrapper.centered .swiper-slide {
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.cases-swiper .swiper-slide {
    width: 410px !important;
    height: auto;
}

/* 移除放大效果，保持所有案例大小一致 */
/*.cases-swiper .swiper-slide-active .case-item {
    transform: scale(1.15);
}*/

.case-item {
    transition: all 0.5s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.case-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.case-item-title {
    padding: 20px 0;
    text-align: center;
    font-size: 18px;
    color: #333;
    font-weight: 500;
    width: 100%;
    /* 固定高度，确保1行和2行标题的容器高度一致 */
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-all;
}


/* 响应式设计 */
@media (max-width: 1400px) {
    .intro-content {
        gap: 40px;
    }
    
    .intro-image {
        max-width: 50%;
    }
}

@media (max-width: 1200px) {
    .intro-content {
        gap: 30px;
    }
    
    .intro-image {
        height: 350px;
    }
    
    .intro-text {
        height: 350px;
        -webkit-line-clamp: 11;
    }
}

@media (max-width: 992px) {
    .industry-card {
        flex-direction: column;
    }

    .industry-card-image {
        width: 100%;
        height: 250px;
    }
    
    .intro-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .intro-image {
        width: 100%;
        max-width: 100%;
        height: 300px;
    }
    
    .intro-text {
        width: 100%;
        height: auto;
        -webkit-line-clamp: 8;
    }
}

@media (max-width: 768px) {
    .dynamic-item {
        flex-direction: column;
    }

    .dynamic-date {
        width: 100%;
        padding: 15px;
        flex-direction: row;
        justify-content: flex-start;
    }

    .dynamic-day {
        margin-bottom: 0;
        margin-right: 10px;
    }

    .industry-card-image {
        height: 200px;
    }

    .industry-card-content {
        padding: 20px;
    }

    .industry-card-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .industry-card-desc {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .submenu-list {
        padding: 10px;
        gap: 5px;
        flex-wrap: wrap;
    }

    .submenu-item {
        flex: 0 1 auto;
        min-width: auto;
        padding: 10px 15px;
        height: auto;
        min-height: 40px;
    }

    .submenu-item a {
        font-size: 14px;
    }
    
    .cases-carousel {
        padding: 0 10px;
    }
    
    .cases-swiper .swiper-slide {
        width: 300px !important;
    }
    
    .case-item img {
        aspect-ratio: 16 / 9;
    }
}
