/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    background: #f5f5f5;
}

.container {
    width: 1200px;
    margin: 0 auto;
    max-width: 95%;
}

/* ========== 顶部栏 ========== */
.top-bar {
    background: #1e3a5f;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
}

.top-bar a:hover {
    color: #ffa500;
}

/* ========== Logo区域 ========== */
.logo-area {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo-area .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo h1 {
    color: #1e3a5f;
    font-size: 24px;
}

.logo p {
    color: #ffa500;
    font-size: 14px;
}

.tel {
    text-align: right;
}

.tel span {
    font-size: 14px;
    color: #666;
}

.tel strong {
    font-size: 24px;
    color: #1e3a5f;
}

/* ========== 导航栏 ========== */
.nav {
    background: #1e3a5f;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav .container {
    display: flex;
    justify-content: center;
}

.nav a {
    color: #fff;
    text-decoration: none;
    padding: 15px 25px;
    display: block;
    transition: background 0.3s;
    font-size: 15px;
}

.nav a:hover,
.nav a.active {
    background: #ffa500;
    color: #1e3a5f;
}

/* ========== Banner轮播 ========== */
.banner {
    position: relative;
    overflow: hidden;
    height: 450px;
}

.swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    bottom: 30%;
    left: 10%;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 20px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active,
.dot:hover {
    background: #ffa500;
}

/* ========== 通用板块 ========== */
.section {
    padding: 50px 0;
    background: #fff;
}

.section-gray {
    background: #f9f9f9;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: #1e3a5f;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ffa500;
}

.section-title p {
    color: #666;
    margin-top: 10px;
}

/* ========== 产品展示 ========== */
.product-cats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.cat-btn {
    padding: 8px 20px;
    background: #e9ecef;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.cat-btn.active,
.cat-btn:hover {
    background: #1e3a5f;
    color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-decoration: none;
    color: #333;
    display: block;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-img {
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

/* ========== 关于我们简短版 ========== */
.about-short {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
}

.btn-more {
    display: inline-block;
    padding: 10px 25px;
    background: #1e3a5f;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-more:hover {
    background: #ffa500;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 8px;
}

/* ========== 荣誉资质 ========== */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.honor-item img {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

/* ========== 底部 ========== */
.footer {
    background: #1e3a5f;
    color: #fff;
    padding: 40px 0 20px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #ffa500;
}

.footer-col p,
.footer-col a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
    font-size: 14px;
}

.footer-col a:hover {
    color: #ffa500;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: #999;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .nav .container {
        flex-wrap: wrap;
    }
    .nav a {
        padding: 10px 15px;
        font-size: 12px;
    }
    .slide-content h2 {
        font-size: 28px;
    }
    .about-short {
        flex-direction: column;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* ========== 荣誉资质 - 大图一行6张 ========== */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);  /* 一行6张，平均分布 */
    gap: 20px;
    text-align: center;
    margin: 20px 0;
}

.honor-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.honor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.honor-item img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    background: #fff;
}

.honor-item p {
    margin-top: 12px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 响应式：当屏幕小于1200px时，一行显示3-4张 */
@media (max-width: 1200px) {
    .honor-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .honor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== 行业资讯样式 ========== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.news-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.news-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1e3a5f;
}

.news-item h3:hover {
    color: #ffa500;
}

.news-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.news-date {
    font-size: 12px;
    color: #999;
    display: inline-block;
}

.more-news {
    text-align: center;
    margin-top: 10px;
}

/* ========== 行业资讯 - 两列布局 ========== */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 两列，平均分布 */
    gap: 25px;
    margin-bottom: 30px;
}

.news-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.news-item h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: #1e3a5f;
    line-height: 1.4;
}

.news-item h3:hover {
    color: #ffa500;
}

.news-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 14px;
}

.news-date {
    font-size: 12px;
    color: #999;
    display: inline-block;
}

.more-news {
    text-align: center;
    margin-top: 10px;
    grid-column: span 2;  /* 让“查看更多”按钮占据整行宽度 */
}

/* 响应式：手机屏幕时改为单列 */
@media (max-width: 768px) {
    .news-list {
        grid-template-columns: 1fr;  /* 手机上一列显示 */
        gap: 15px;
    }
    .more-news {
        grid-column: span 1;
    }
}

/* ========== 内页通用样式 ========== */
.page-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c4e7a 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.page-banner h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 16px;
    opacity: 0.9;
}

/* 关于我们详情页 */
.about-detail-text h2 {
    margin-top: 30px;
    margin-bottom: 20px;
    color: #1e3a5f;
}

/* 联系我们页面响应式 */
@media (max-width: 768px) {
    .page-banner {
        padding: 40px 0;
    }
    .page-banner h1 {
        font-size: 24px;
    }
    .about-detail > div {
        grid-template-columns: 1fr !important;
    }
}

/* ========== 产品详情页样式 ========== */
@media (max-width: 768px) {
    .section > .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* ========== 公司资质页面 - 图片调大 ========== */
.honor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 20px 0;
}

.honor-item {
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.honor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.honor-item img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.honor-item p {
    margin-top: 12px;
    font-weight: 500;
    color: #1e3a5f;
}

/* 响应式：手机屏幕一行1张 */
@media (max-width: 768px) {
    .honor-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .honor-item img {
        max-width: 100%;
    }
}