/* 通用标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.title-line {
    width: 50px;
    height: 2px;
    background-color: #333;
    margin: 0 auto;
    margin-top: 10px;
}

.red-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
}

/* 轮播图区域样式 */
.banner {
    position: relative;
    overflow: hidden;
}

.slider {
    position: relative;
    height: 400px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none; 
}

.slide.active {
    opacity: 1;
    pointer-events: auto; /* 新增：允许活动slide接收点击事件 */
    cursor: pointer; /* 添加手形光标 */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
    text-align: left;
    color: #fff;
    max-width: 700px;
    padding: 20px;
    background-color: transparent;
    border-radius: 8px;
    cursor: pointer;
}

.slide-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: bold;
}

.slide-content p {
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.slide-content .btn {
    background-color: var(--primary-color);
    border: none;
    padding: 5px 10px;
    font-size: 12px;
}

.slide-content .btn:hover {
    background-color: #cc0000;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 10;
}

.prev-btn, .next-btn {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.dot.active {
    background-color: #fff;
}

/* 导航下拉菜单样式 */
.has-submenu {
    position: relative;
}

.submenu-wrapper {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 100;
    min-width: 320px;
    margin-top: 0;
    padding-top: 0;
}

.has-submenu:hover > .submenu-wrapper,
.has-submenu:focus-within > .submenu-wrapper,
.submenu-wrapper:hover,
.submenu-wrapper:focus-within {
    display: block;
}

.submenu {
    width: 100%;
    min-width: 600px;
    max-width: 800px;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    background-color: #f9f9f9;
    border-top: 2px solid var(--primary-color);
}

.submenu-content {
    padding: 20px;
}

.submenu-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -10px;
}

.submenu-item {
    flex: 0 0 calc(25% - 20px);
    margin: 0 10px 20px;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.submenu-item:hover {
    transform: translateY(-5px);
}

.submenu-img {
    width: 100%;
    height: 80px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 4px;
}

.submenu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-speed) ease;
}

.submenu-item:hover .submenu-img img {
    transform: scale(1.1);
}

.submenu-title {
    font-size: 12px;
    color: var(--text-color);
    margin-top: 8px;
    white-space: nowrap;        
    overflow: hidden;           
    text-overflow: ellipsis;   
    max-width: 100%;            
    cursor: default;            
}

.submenu-more {
    text-align: right;
    margin-top: 0px;
    padding-top: 0px;
    border-top: 1px solid var(--border-color);
}

.more-link {
    color: var(--primary-color);
    font-size: 12px !important;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    text-decoration: none;
    justify-content: flex-end;
}

.more-link:hover {
    color: var(--primary-color);
}

.arrow {
    margin-left: 5px;
    transition: all var(--transition-speed) ease;
}

.more-link:hover .arrow {
    transform: translateX(5px);
}

/* 通用网格布局样式 */
.grid-section {
    padding: 60px 0;
    background-color: #fff;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -15px;
}

.grid-item {
    flex: 0 0 calc(25% - 30px);
    margin: 0 15px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

.grid-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all var(--transition-speed) ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

.grid-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(144, 143, 143, 0.7);
    color: #fff;
}

.grid-item-info h3 {
    font-size: 16px;
    margin: 0;
    text-align: center;
}

/* 解决方案区域样式 */
.solution-section {
    padding: 60px 0;
}

.solution-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -15px;
}

.solution-item {
    flex: 0 0 calc(25% - 30px);
    margin: 0 15px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.solution-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all var(--transition-speed) ease;
}

.solution-item:hover img {
    transform: scale(1.05);
}

.solution-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(144, 143, 143, 0.7);
    color: #fff;
}

.solution-info h3 {
    font-size: 16px;
    margin: 0;
    text-align: center;
}

/* 数字化制造工程中心区域样式 */
.digital-center-section {
    padding: 30px 0;
}

.digital-center-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.digital-center-item {
    flex: 0 0 calc(25% - 30px);
    margin: 0 15px 30px;
    text-align: center;
    padding: 20px;
    transition: all var(--transition-speed) ease;
    background-color: var(--light-gray); 
    border-radius: 0px; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); 
}

.digital-center-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
}

.digital-center-item .icon {
    width: 240;
    height: 180px;
    margin: 0 auto 20px;
}

.digital-center-item .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.digital-center-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

/* 研究院区域样式 */
.institute-section {
    padding: 60px 0;
}

.institute-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -15px;
}

.institute-item {
    flex: 0 0 calc(25% - 30px);
    margin: 0 15px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.institute-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all var(--transition-speed) ease;
}

.institute-item:hover img {
    transform: scale(1.05);
}

.institute-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(144, 143, 143, 0.7);
    color: #fff;
}

.institute-info h3 {
    font-size: 16px;
    margin: 0;
    text-align: center;
}

.exhibition-section {
    padding: 60px 0;
    background-color: #fff;
}

.exhibition-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -15px;
}

.exhibition-item {
    flex: 0 0 calc(25% - 30px);
    margin: 0 15px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.exhibition-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.exhibition-item:hover img {
    transform: scale(1.05);
}

.exhibition-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(144, 143, 143, 0.7);;
    color: #fff;
}

.exhibition-info h3 {
    font-size: 16px;
    margin: 0;
}

.partners-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.partners-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #777;
    font-size: 14px;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0 -15px;
}

.partner-logo {
    flex: 0 0 calc(14.28% - 30px);
    margin: 0 15px 30px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    transition: all var(--transition-speed) ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 双招双引与新闻动态区域样式 */
.news-recruitment-section {
    padding: 60px 0;
}

.news-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #777;
    font-size: 14px;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -15px;
}

.news-item {
    flex: 0 0 calc(25% - 30px);
    margin: 0 15px 30px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-date {
    font-size: 12px;
    color: #777;
    margin: 15px 15px 5px;
}

.news-item h3 {
    font-size: 16px;
    margin: 0 15px 10px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-item p {
    font-size: 14px;
    color: #666;
    margin: 0 15px 15px;
    line-height: 1.6;
    height: 66px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 统一响应式调整 */
@media (max-width: 992px) {
    .solution-item,
    .digital-center-item,
    .institute-item,
    .exhibition-item,
    .news-item,
    .grid-item {
        flex: 0 0 calc(50% - 30px);
    }
    
    .partner-logo {
        flex: 0 0 calc(25% - 30px);
    }
    
    .submenu {
        min-width: 600px;
    }
    
    .submenu-item {
        flex: 0 0 calc(33.333% - 20px);
    }
    
    .digital-center-grid {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .solution-item,
    .digital-center-item,
    .institute-item,
    .exhibition-item,
    .news-item,
    .grid-item {
        flex: 0 0 calc(100% - 30px);
    }
    
    .partner-logo {
        flex: 0 0 calc(33.33% - 30px);
    }
    
    .has-submenu .submenu-wrapper {
        display: none;
    }
    
    .slider {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .slider {
        height: 300px;
    }
    
    .slide-content {
        width: 90%;
    }
    
    .slide-content h2 {
        font-size: 20px;
    }
    
    .slide-content p {
        font-size: 12px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .partner-logo {
        flex: 0 0 calc(50% - 30px);
    }
}