/* 基础样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: Arial,'Microsoft Yahei',"PingFang SC","Helvetica Neue",Helvetica,sans-serif;
line-height: 1.6;
color: #333;
background-color: #f5f7fa;
}

.page-container {
width: 1200px;
margin: 0 auto;
background-color: white;
}

/* 顶部区域 */
.top-bar {
background-color: #003366;
color: white;
padding: 10px 40px;
display: flex;
justify-content: space-between;
font-size: 14px;
}

.top-bar a {
color: white;
text-decoration: none;
transition: color 0.3s;
}

.top-bar a:hover {
color: #ffcc00;
}

.home-link {
font-weight: bold;
}

.user-links {
display: flex;
gap: 20px;
}

.user-links span {
cursor: pointer;
}

/* 头部区域 */
.header {
width: 100%;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
color: white;
}

.company-title {
font-size: 24px;
    background-image: url('banner.jpg');
    background-size: 1200px auto;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 200px; /* 根据需要设置最小高度 */
    display: flex;
    align-items: center; /* 垂直居中文字 */
    justify-content: center; /* 水平居中文字 */
    width: 1200px;
}

/* 主标题 */
.main-title {
text-align: center;
font-size: 28px;
font-weight: bold;
color: white;
background: linear-gradient(to right, #0055a4, #003366);
padding: 20px;
margin: 0;
border-bottom: 3px solid #ffcc00;
}

/* 主要内容区域 - 左右分栏 */
.content-area {
padding: 40px;
}

.info-section {
display: flex;

border-bottom: 1px solid #eee;

}

/*.info-section:last-child {
border-bottom: none;
}*/

.left-column {
width: 35%;
font-weight: bold;
color: #003366;
padding: 15px 20px;
font-size: 16px;
background-color: #f9f9f9; /* 添加背景色 */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.right-column {
width: 65%;
font-size: 15px;
line-height: 1.7;
padding: 15px 20px;
}

.company-presentation {
text-align: justify;
}

/* 二级标题 - 居中带背景色 */
.section-title {
text-align: center;
font-size: 24px;
font-weight: bold;
color: white;
background: linear-gradient(to right, #0066cc, #004488);
padding: 18px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}




.legal-label {
width: 60%;
font-weight: bold;
color: #003366;
padding: 10px 15px;
background-color: #f9f9f9; /* 添加背景色 */
border-radius: 5px;
margin-right: 10px;
}

.legal-value {
width: 40%;
padding: 10px 0;
}

/* 联系信息表格 */
.contact-info {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
margin-top: 30px;
}

.contact-item {
display: flex;
border-bottom: 1px dashed #ddd;
padding: 12px 0;
}

.contact-label {
width: 60%;
font-weight: bold;
color: #003366;
padding: 10px 15px;
background-color: #f9f9f9; /* 添加背景色 */
border-radius: 5px;
margin-right: 10px;
}

.contact-value {
width: 40%;
padding: 10px 0;
}

/* 产品图片滚动区域 */
.product-section {
padding: 40px;
background-color: #f9f9f9;
margin-top: 50px;
}

.product-title {
font-size: 22px;
font-weight: bold;
color: #003366;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid #003366;
text-align: center;
}

.product-slider {
position: relative;
overflow: hidden;
background-color: white;
border-radius: 10px;
padding: 20px 0;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
span#position {
    margin-left: 20px;
}
.slider-container {
display: flex;
width: calc(300px * 10); /* 足够宽以容纳所有图片的副本 */
animation: slide 30s linear infinite;
}

.product-item {
width: 280px;
height: 275px;
margin: 0 10px;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
flex-shrink: 0;
}

.product-img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s;
}

.product-item:hover .product-img {
transform: scale(1.05);
}

@keyframes slide {
0% {
transform: translateX(0);
}
100% {
transform: translateX(calc(-300px * 5));
}
}

/* 页脚区域 */
.page-footer {
padding: 30px 40px;
background-color: #003366;
color: white;
text-align: center;
}

.copyright {
font-size: 14px;
margin-top: 15px;
opacity: 0.9;
}

/* 响应式调整 */
@media (max-width: 1240px) {
.page-container {
width: 95%;
}
}

@media (max-width: 992px) {
.legal-info, .contact-info {
grid-template-columns: 1fr;
}

.legal-item, .contact-item {
flex-direction: column;
}

.legal-label, .legal-value, .contact-label, .contact-value {
width: 100%;
margin-right: 0;
margin-bottom: 5px;
}
}

@media (max-width: 768px) {
.top-bar {
flex-direction: column;
text-align: center;
gap: 10px;
}

.info-section {
flex-direction: column;
}

.left-column, .right-column {
width: 100%;
margin-bottom: 10px;
}

.company-title {
font-size: 24px;
}

.main-title, .section-title {
font-size: 22px;
}

.content-area, .product-section {
padding: 20px;
}
}
/* 产品项样式 */
.product-item {
    position: relative;
    margin: 0 10px;
    text-align: center;
}

/* 图片链接样式 */
.product-img-link {
    display: block;
    text-decoration: none;
    margin-bottom: 10px;
}

/* 产品图片样式 */
.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 图片悬停效果 */
.product-img-link:hover .product-img {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 产品标题容器 */
.product-title {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

/* 标题链接样式 - 无下划线 */
.title-link {
    color: #333;
    text-decoration: none; /* 去掉下划线 */
    transition: color 0.3s ease;
}

/* 标题悬停效果 */
.title-link:hover {
    color: #ff6600;
    text-decoration: none; /* 确保悬停时也没有下划线 */
}
/* 无缝滚动动画 */
.slider-container {
    display: flex;
    animation: scroll 20s linear infinite;
    width: 200%; /* 两倍宽度，容纳两组内容 */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 悬停时暂停滚动 */
.product-slider:hover .slider-container {
    animation-play-state: paused;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-item {
        flex: 0 0 33.333%; /* 在小屏幕上显示3个产品 */
    }
    
    .product-img {
        height: 150px;
    }
}