/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0066cc;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0052a3;
	color: white;
}

.btn-primary {
    background-color: #0066cc;
}

.btn-primary:hover {
    background-color: #0052a3;
}

/* 导航栏 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    padding: 0;
	color:#0066cc;
}
.logo img{
    border:0px;
	max-height:60px;
	display: block;
}
.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav > ul {
    display: flex;
}

.nav ul li {
    position: relative;
}

.nav ul li a, .nav ul li select{
    display: block;
    padding: 10px 15px;
    margin: 0 5px;
    font-size: 18px;
    border-radius: 4px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.nav ul li a.active,
.nav ul li a:hover {
    background-color: #0066cc;
    color: white;
}
.nav .primary-menu ul li a.active,
.nav .primary-menu ul li a:hover {
    background-color: #0066cc;
    color: white;
}
/* 子菜单（通用） */
.nav ul li ul {
    background: white;
    border: 1px solid #ddd;
    display: none;
    z-index: 1000;
    min-width: 160px;
}

/* 二级菜单（默认向下） */
.nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
}

/* 三级及以上菜单（向右展开） */
/*.nav ul li ul li ul {
    top: 0;
    left: 100%;
}*/

/* PC端悬停显示子菜单 */
.nav ul li:hover > ul {
    display: block;
}
.hot_line {
font-size:28px;
color:white;
font-weight:bold;
}
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 轮播图 */
.slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    background-color: rgba(0,0,0,0.0);
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
}
.slide-content h2{
    font-size:50px;
}
.slide-content p{
    font-size:20px;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.5);
    color: #333;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.slider-btn:hover {
    background-color: rgba(255,255,255,0.8);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.slider-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    margin: 0 5px;
    cursor: pointer;
}

.slider-dots span.active {
    background-color: white;
}

/* 页面通用部分 */
.section {
    padding: 0;
}

.section-title {
    text-align: center;
    margin: 40px 0px;
    font-size: 30px;
    color: #0066cc;
}

.page-title {
    font-size: 30px;
    margin: 30px 0;
    color: #0066cc;
}
.banner {
	height: 300px;
	background-size: cover;
	background-position: center;
	margin-bottom: 0px;
}
        /* 面包屑导航样式 */
        .breadcrumb {
            padding: 0;
            font-size: 16px;
            margin-top: 40px;
        }
        .breadcrumb ul {
            display: flex;
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .breadcrumb li:not(:last-child)::after {
            content: ">";
            margin: 0 8px;
        }
        .breadcrumb a {
            text-decoration: none;
        }

        .breadcrumb li:last-child a {
            font-weight: bold;
        }
        /* 友情链接样式 */
.friend-links {
    padding: 0;
    margin: 40px 0 0 0;
}
.friend-links .container {
    max-width: 1200px;
    margin: 0 auto;
}
.friend-links h2 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden; /* 清除浮动 */
    display: flex; /* 改用Flex布局（可选） */
    flex-wrap: wrap; /* 允许换行 */
    gap: 15px; /* 统一间距（替代padding） */
}
.links-list li {
    margin-bottom: 5px;
}
.links-list a {
    display: inline-block; /* 改为inline-block避免占满宽度 */
    text-decoration: none;
    padding: 4px 5px; /* 调整内边距 */
    transition: color 0.3s;
}
.links-list a:hover {
    text-decoration: underline;
}
/* 首页 */

.about-preview .container {
	max-width: 1200px;
	margin: 0 auto;
}

.about-preview .about-content {
	display: flex;
	align-items: center;
	gap: 40px;
}

.about-preview .about-image {
	flex: 1;
    padding: 0;
    margin: 0;
}

.about-preview .about-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-preview .about-text {
	flex: 1;
}


.about-preview p {
	font-size: 1.1rem;
	line-height: 1.6;
	margin-bottom: 30px;
	color: #666;
}


.products-preview, .news-preview{padding-top:0;}
.products-preview { 
    max-width: 1200px;
    margin: 0 auto; 
}
/* 产品网格 */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.news-main-content .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card h3 {
    padding: 15px 15px 0;
	text-align:center;
    white-space: nowrap;      /* 禁止换行 */
    overflow: hidden;         /* 超出部分隐藏 */
    text-overflow: ellipsis;  /* 超出部分显示省略号（...） */
    width: 100%;             /* 确保宽度限制生效（如果父容器有固定宽度） */
    box-sizing: border-box;  /* 确保 padding 不影响宽度计算 */
}
.product-card img {
    width: 100%;      /* 图片宽度填满容器 */
    height: 200px;    /* 固定高度（根据需求调整） */
    object-fit: cover; /* 保持比例裁剪填充 */
    object-position: center; /* 图片居中显示 */
}
.product-desc {
    padding: 10px 15px;
    color: #666;
    white-space: nowrap;      /* 禁止换行 */
    overflow: hidden;         /* 超出部分隐藏 */
    text-overflow: ellipsis;  /* 超出部分显示省略号（...） */
    width: 100%;             /* 确保宽度限制生效（如果父容器有固定宽度） */
    box-sizing: border-box;  /* 确保 padding 不影响宽度计算 */
}

.product-card .btn {
    display: block;
    text-align: center;
    margin: 15px;
}

/* 新闻列表 */
.news-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}
 
/* 左侧分类样式 */
.news-categories {
    width: 250px;
    flex-shrink: 0;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: fit-content;
}
 
.news-categories h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}
 
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
 
.category-list li {
    margin-bottom: 10px;
}
 
.category-list a {
    display: block;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}
 
.category-list a:hover, .category-list a.active {
    background-color: #0066cc;
    color: #fff;
}
 
/* 右侧新闻内容样式 */
.news-main-content {
    flex: 1;
    min-width: 0; /* 允许内容收缩 */
}
 
.news-list {
    width: 100%;
}
 
.news-item {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
 
.news-item:hover {
    transform: translateY(-5px);
}
 
.news-content-wrapper {
    display: flex;
    gap: 20px;
}
 
.news-image {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
}
 
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
    min-width: 0; /* 允许内容收缩 */
}
.news-content h2{font-size:22px;}
.news-content h3{font-size:20px;}
.news-content h4{font-size:18px;}
.news-content {line-height:2;overflow-wrap: break-word;}
.news-content table {border-collapse:collapse;empty-cells:show;border-spacing:0;width:100%;}
.news-content table th{font-weight:bold;background-color:#f8f8f8;text-align:left}
.news-content table th,.news-content table td{padding:.3em .5em;margin:0;vertical-align:middle;border:1px solid #ddd}
.news-content table td p{margin-bottom:0px} 
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
 
.news-item h3 {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.news-date {
    color: #999;
    margin: 0 ;
}
 
.news-excerpt {
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-detail .news-title,.about-section .news-title{
 text-align:center;
 width: 100%;
 margin:10px 0;
 } 
.news-detail .news-date{
 text-align:center;
 margin:0 0 10px 0;
 } 
 .news-detail .news-date{
 text-align:center;
 margin:0 0 10px 0;
 } 
 .news-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
}
/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a {
    padding: 8px 16px;
    margin: 0 5px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination a.active {
    background-color: #0066cc;
    color: white;
    border-color: #e2e2e2;
}

.pagination a:hover:not(.active) {
    background-color: #f1f1f1;
}

/* 产品详情 */
.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.product-gallery img {
    width: 100%;
    border-radius: 8px;
}

.product-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.product-thumbs img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.product-thumbs img:hover {
    border-color: #0066cc;
}

.product-specs {
    list-style: none;
    margin: 20px 0;
}

.product-specs li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* 关于我们 */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
}
.about-content h2,.about-content h3,.about-content h4{line-height:2;}
.about-image {
    float: right;
    margin: 0 0 20px 20px;
    border-radius: 8px;
    max-width: 400px;
}

.timeline {
    margin: 30px 0;
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #0066cc;
}

.timeline-item {
    padding-left: 30px;
    position: relative;
    margin-bottom: 20px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0066cc;
}

/* 联系我们 */
.contact-main {
    display: flex;
    gap: 40px;
}
.contact-info {
    flex: 1; /* 默认占据剩余空间 */
    min-width: 0; /* 防止内容溢出 */
}
 
.contact-form {
    width: 45%; /* 固定右侧表单的宽度 */
    flex-shrink: 0; /* 禁止右侧表单被压缩 */
}
.contact-info h2, .contact-form h2{
margin-bottom:20px;
}
.contact-info ul {
    list-style: none;
}

.contact-info li {
    margin:5px 0px;
}

.map {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    resize: vertical;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
	margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #fff;
}

.footer-section a:hover {
    color: white;
}
.quick_link {
    display: flex; 
    justify-content: space-between; 
}
 
.quick_link_list,
.qr-container {
    flex: 1; 
    padding: 0 10px; 
    box-sizing: border-box; 
}
 
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
 
 
.qr-code {
    width: 120px;
    height: 120px;
    background-color: #fff;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 10px;
}
 
.qr-text {
    font-size: 14px;
    color: #fff;
}
.rows-5 {
  display: -webkit-box;          /* 必须结合的属性 */
  -webkit-box-orient: vertical; /* 垂直排列盒子 */
  -webkit-line-clamp: 5;        /* 限制显示行数 */
  overflow: hidden;             /* 隐藏超出内容 */
  text-overflow: ellipsis;      /* 超出部分显示省略号 */
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f2f2f2;
    font-size: 14px;
    color: #fff;
}
.copyright a {
    color: #fff;
}

.copyright a:hover {
    color: white;
}
/* 响应式设计 */
@media (max-width: 768px) {
	.logo {
		margin-left:20px;
	}
	.slide-content h2{
		font-size:30px;
	}
	.slide-content p{
		font-size:14px;
	}
	.about-preview .about-content {
		flex-direction: column;
	}
	.banner {
		height: 100px;
	}
    .news-container {
        flex-direction: column;
    }
    .news-categories {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .news-content-wrapper {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: auto;
        max-width: 300px;
    }
    .nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        flex-direction: column;
    }
    
    .nav ul.active {
        display: flex;
    }
    
    .nav ul li a {
        display: block;
        padding: 15px;
        margin: 0;
    }
    
    .mobile-menu-btn {
        display: block;
		margin-right:20px;
    }
    
    .product-main,
    .contact-main {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        float: none;
        margin: 0 auto 20px;
        display: block;
    }
    
    .slider {
        height: 300px;
    }
    
    .section {
        padding: 0;
    }

	.links-list li {
		width: 100%;
	}
    .news-nav {
        flex-direction: column;
    }
    .contact-main {
        flex-direction: column;
    }
    .contact-form {
        width: 100%; /* 小屏幕下表单占满宽度 */
    }
	#qr-container{display:none;}
}