/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: white;
    color: #333;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    background: white;
    color: black;
    display: flex;
    justify-content: space-between;
	flex-direction: column;
	position: relative;
}

.title{
	background: white;
	color: black;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 2rem;
	flex-direction: row;
}

.logo {  
	display: flex;
	position: absolute;
	left: 10%;
	top: 5%;
	width: 300px;
	height: 80px;
	flex-direction: row;
}

.logo img{
	width: 80px;
	height: 80px;
}

.logo h1 {
	margin-left: 10px;
	font-size: 30px;
	margin-top: 20px;
	color: #005bb7;
}

.phone {
	right:3%;
	position: absolute;
	margin-right: 10px;
	margin-top: 20px;
    font-size: 1rem;
    color: #666;
}
	

.nav-links {
    display: flex;
    list-style: none;
	justify-content: center; /* 居中导航链接 */
	margin-top: 1rem;
	left: 0; /* 移除偏移 */
}

.nav-links li a {
    color: black;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 1.5rem;
	border-bottom: 2px solid transparent; /* 初始透明边框 */
    transition: border-color 0.3s; /* 只过渡颜色 */
}

.nav-links li a:hover {
    border-bottom-color: #0055ff; /* 添加淡蓝色的下边框 */
}


/* 响应式设计 */
@media screen and (max-width: 768px) {
	 .nav-links {
	        position: absolute;
	        right: 0;
	        top: 60px;
	        background: #333;
	        width: 50%;
	        height: calc(100vh - 60px);
	        flex-direction: column;
	        align-items: center;
	        transform: translateX(100%);
	        transition: transform 0.5s ease-in;
	    }
	
	    .nav-links.active {
	        transform: translateX(0);
	    }
	
	    .burger {
	        display: block;
	    }
}








/* 主要内容区域 */

section {
    background: white;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
}


html {
    scroll-behavior: smooth;  /* 启用平滑滚动 */
}

/* 轮播图容器 */
.carousel {
    position: relative;
    max-width: 100%;
    margin: 15px auto;
    overflow: hidden;
}

/* 轮播图内部容器，使用 flex 布局实现水平排列 */
.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

/* 每个轮播项 */
.carousel-item {
    min-width: 100%;
	height: 700px;
    box-sizing: border-box;
	object-fit: cover;
 }

/* 轮播项图片 */
.carousel-item img {
	object-fit: cover;
    width: 100%;
	height: inherit;
    display: block;
	
}

/* 左右箭头按钮 */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
}

/* 右侧箭头 */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* 箭头悬停效果 */
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}










/* 产品展示 */
/* 产品展示区域样式 */
#products {
    padding: 3rem 0;
    background: #fff;
    text-align: center;
}

#products h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

/* 产品容器样式 */
.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 产品卡片样式 */
.product-card {
    width: 250px;
	height: inherit;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 图片容器 */
.product-img-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

/* 悬停遮罩效果 */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(71, 71, 71, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* 遮罩内容样式 */
.overlay-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.overlay-content p {
    font-size: 0.9rem;
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover; /* 图片自适应填充 */
}

.product-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
}

.product-card p {
    color: #ffffff;
    font-size: 0.9rem;
}

/* 标题容器 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* 英文副标题 */
.title-en {
    display: block;
    font-size: 30px;
    color: #999;
    letter-spacing: 2px; /* 字母间距 */
    margin-bottom: 10px;
    text-transform: uppercase; /* 转大写 */
}

/* 中文主标题 */
.title-cn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
}

/* 左右灰色线条 */
.title-cn .line {
    display: inline-block;
    width: 40%;
    height: 5px;
    background-color: #ddd;
    margin: 0 15px;
}









/* 产品文字部分（防止被线条覆盖） */
.title-cn .text {
    padding: 0 10px;
}

.application-banner {
    position: relative;
    width: 100%;
    height: 800px; /* 根据需要调整高度 */
    overflow: hidden;
}

.application-banner img {
    width: 100%;
    height: 475px;
    object-fit: cover;
	opacity: 0.7;
}

.application-text {
    position: absolute;
    left: 50%;
	top: 20%;
    transform: translate(-50%, -50%);
	display: flex;
	gap: 5px; /* 控制 h2 和 p 之间的间距 */
    text-align: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
	flex-direction: row;
}

.application-text h2 {
    font-size: 2rem;
}

.application-text p{ 
	font-size: 1.5rem;
	margin-top: 0.5em;
}

.application-text h2,
.application-text p {
    overflow: hidden;
}

.application-text h2 span,
.application-text p span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.application-text.active h2 span,
.application-text.active p span {
    opacity: 1;
    transform: translateY(0);
}

/* 为每个字母添加延迟 */
.application-text.active h2 span {
    transition-delay: calc(0.1s * var(--i));
}
.application-text.active p span {
    transition-delay: calc(0.1s * var(--i) + 0.3s);
}

/* 应用领域容器样式 */
.application-fields {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1;
}

.field-item {
    background: rgba(255, 255, 255, 0.9);
    width: 350px;
	height: 480px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(50px);
    opacity: 1;
    transition: all 0.6s ease;
}

.field-icon {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* 动画激活状态 */
.application-fields.active .field-item {
    transform: translateY(0);
    opacity: 1;
}

/* 为每个项目添加不同的延迟 */
.application-fields.active .field-item:nth-child(1) {
    transition-delay: 0.2s;
}
.application-fields.active .field-item:nth-child(2) {
    transition-delay: 0.4s;
}
.application-fields.active .field-item:nth-child(3) {
    transition-delay: 0.6s;
}


/* 工厂车间 */
/* 工厂车间板块基础样式 */
#workshop {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

#workshop h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

#workshop p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

/* 轮播图容器 */
.workshop-carousel {
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 轮播图幻灯片 */
.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    text-align: left;
}

.slide-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 1rem;
    color: #eee;
    margin-bottom: 0;
}

/* 导航按钮 */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.nav-btn {
    width: 80px;
    height: 60px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-5px);
}

.nav-btn.active {
    border-color: #2a7fba;
    box-shadow: 0 0 10px rgba(42, 127, 186, 0.5);
}

.nav-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-container {
        height: 350px;
    }
    
    .nav-btn {
        width: 60px;
        height: 45px;
    }
}




/* 关于我们 */
#about {
    position: relative;
    width: 100%;
    overflow: hidden;
	min-height: 50rem;
}

.about-container {
    display: flex;
    width: 100%;
    margin: 0 auto;
    position: relative;
    height: 50rem; 
}

/* 左侧20%留白 */
.about-left-space {
    width: 20%;
    flex-shrink: 0;
}

.about-right-space {
    width: 10%;
    flex-shrink: 0;
}

.about-content {
    width: 30%;
    z-index: 2; /* 确保内容在图片上方 */
}

/* 标题样式 */
.about-title {
    margin-top: 80px;
}

.about-title h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: bold;
    display: flex;
    align-items: flex-end; /* 底部对齐 */
    flex-wrap: wrap; /* 允许换行 */
}

.title-en {
    font-size: 1.5rem; /* 英文标题大小 */
    color: #777;
    margin-left: 12px;
    position: relative;
    bottom: -0.2em; /* 微调垂直位置 */
    text-transform: uppercase; /* 英文大写 */
    letter-spacing: 1px; /* 字母间距 */
    font-weight: normal;
}

.company-name {
	margin-top: 30px;
    font-size: 1.7rem;
    color: #000000;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.company-name::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #0055ff; /* 与灰色方块颜色协调 */
}

/* 内容文本样式 */
.about-text {
	
    margin-top: 40px;
    line-height: 1.8;
    color: #000e2b;
}

.about-text h {
	font-size: 20px;
	color: #444640;
}

/* 右侧30%方块 */
.about-gray-block {
    width: 40%;
    background: #505050;
	height: 44%;
    flex-shrink: 0;
}

/* 右上角图片 */
.about-image {
    position: absolute;
    top: 60px;
    right:75px;
    width: 40%;
    height: 45%;
    overflow: hidden;
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}




/* 新闻资讯 */
.news-section {
    background :#09529f ;
    background-size: cover;
    padding: 80px 0;
    position: relative;
    color: #333;
}

.news-container {
	background-color: white;
    max-width: 1200px;
    top: 30px;
	left: 20%;
    position: relative;
    z-index: 1;
    padding: 0 20px;
	
}

.news-title {
    text-align: center;
    margin-bottom: 50px;
	padding-top: 30px;
	padding-bottom: 30px;
    position: relative;
}

.news-en {
    display: block;
    font-size: 16px;
    color: #666;
    letter-spacing: 3px;
    margin-top: 5px;
}

.news-title h2 {
    font-size: 32px;
    margin: 0;
    position: relative;
    display: inline-block;
    padding: 0 30px;
}

.news-title h2::before,
.news-title h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background-color: #333;
}

.news-title h2::before {
    left: -40px;
}

.news-title h2::after {
    right: -40px;
}

.news-item {
    display: flex;
    margin-bottom: 30px;
    align-items: center;
	justify-content: space-between; /* 新增：使左右元素分开 */
}

.news-text {
    flex: 1;
    padding-right: 30px;
}

.news-text h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #222;
}

.news-text p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

.read-more {
    color: #1e88e5;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.news-image {
	flex-shrink: 0; /* 防止图片被压缩 */
	margin-left: 30px; /* 图片与文字的间距 */
}

.news-image img {
    width: 400px;
    height: 200px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover; /* 保持图片比例 */
}

.news-divider {
    border-top: 1px dashed #ccc;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }
    
    .news-text {
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .news-image {
        width: 100%;
    }
}




/* 组织结构 板块基础样式 */






/* 联系我们 */
/* 联系我们板块整体样式 */
#contact {
    padding: 60px 0;
    background-color: #fff;
}

.contact-cn {
     position: relative; /* 必须设置 */
    display: inline-block; /* 必须设置 */
    font-size: 40px;
    margin: 10px 0 30px;
    color: #333;
    padding: 0 50px; /* 给线条留空间 */
}

.contact-en{
	font-size: 25px;
	color: #666666;
}


.contact-title{ 
	position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.contact-cn:before,
.contact-cn:after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 1px;
    background-color: #5e5e5e; /* 使用您的主题色 */
}

.contact-cn:before {
    right: 100%;
}

.contact-cn:after {
    left: 100%;
}


/* 左侧联系信息样式 */
.contact-info {
    width: 48%;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: #4e6bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
}

.contact-card h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: #444;
}

.contact-card p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* 右侧地图样式 */
.contact-map {
    width: 50%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#amap-container {
    width: 100%;
    height: 100%;
}

.map-placeholder {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #666;
    font-size: 18px;
    z-index: 1;
}

/* 地图加载后隐藏占位符 */
.contact-map.loaded .map-placeholder {
    display: none;
}

/* 初始隐藏iframe */
.contact-map iframe {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 加载后显示iframe */
.contact-map.loaded iframe {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-map {
        width: 100%;
    }
    
    .contact-map {
        height: 300px;
        margin-top: 30px;
    }
}






/* 版权信息 */
/* 公司版权信息栏样式 */
.company-footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    font-size: 0.9em;
    border-top: 1px solid #444;
}

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

.footer-content {
    text-align: right;
    line-height: 1.6;
}

.footer-content p {
    margin: 5px 0;
    color: #ccc;
}

.footer-content p:first-child {
    color: #fff;
    font-weight: bold;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .company-footer {
        padding: 20px 0;
    }
    
    .footer-content p {
        font-size: 0.8em;
        line-height: 1.5;
    }
}