/* 全局核心样式（整合所有页面通用基础样式） */
body {
    font-family: "Microsoft YaHei", sans-serif;
    scroll-behavior: smooth;
    color: #333;
    background-color: #f4f6f9; /* 最终版背景色，覆盖重复定义 */
}
/* 导航栏样式（统一整合所有页面导航栏样式） */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #2c3e50 !important;
}

.nav-link {
    color: #34495e !important;
    font-weight: 500;
    margin: 0 8px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #3498db !important;
}

/* 面包屑导航样式（整合不同页面的面包屑样式） */
.breadcrumb-section {
    margin-top: 70px;
    padding: 1rem 0;
    background-color: #fff; /* 最终版背景色，优化视觉效果 */
    border-bottom: 1px solid #eee;
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 通用区块标题样式（整合所有页面的section-title） */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center; /* 统一居中对齐 */
}

.section-title h2 {
    font-size: 2.5rem; /* 首页最大字号，作为基础值 */
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    display: inline-block; /* 产品列表页样式，增强视觉 */
    padding-bottom: 1rem;
    border-bottom: 3px solid #3498db;
}

.section-title h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}


.section-title p {
    font-size: 1.1rem;
    color: #666;
    margin-top: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 首页轮播图样式 */
#carouselHero {
    margin-top: 70px; /* 避开固定导航栏 */
}

.carousel-item {
    height: 80vh; /* 轮播图高度 */
    min-height: 400px;
}

.carousel-item img {
    object-fit: cover; /* 图片自适应填充 */
    height: 100%;
    width: 100%;
}

.carousel-caption {
    bottom: 20%;
    z-index: 10;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-caption h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 页面标题样式（联系页专用） */
.page-title {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    margin-bottom: 0;
}

.page-title h1 {
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-title p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

/* 公司简介样式（整合首页和详情页） */
#about, #company-intro {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.about-content, .intro-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap; /* 禁止换行，强制同行 */
    width: 100%; /* 确保占满容器宽度 */
}

/* 调整文字区域宽度占比 */
.intro-content .col-lg-6 {
    flex: 1; /* 让两个列平分宽度 */
    min-width: 0; /* 解决Flex子元素宽度溢出问题 */
}

.about-text, .intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.about-img img, .intro-img img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

.feature-item {
    margin-bottom: 1.5rem;
}

.feature-item i {
    color: #3498db;
    font-size: 1.5rem;
    margin-right: 0.8rem;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.intro-feature-item {
    text-align: center;
    padding: 2rem 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.intro-feature-item i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.intro-feature-item h4 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.intro-feature-item p {
    color: #666;
    font-size: 0.95rem;
}

/* 公司认证样式 */
#company-cert {
    padding: 6rem 0;
    background-color: #ffffff; /* 增加背景色对比 */
}

.cert-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* 调整最小宽度，更美观 */
    gap: 2.5rem; /* 增加间距 */
    margin-top: 2rem;
    max-width: 1200px; /* 限制最大宽度，避免大屏拉伸 */
    margin-left: auto;
    margin-right: auto;
}

.cert-item {
    text-align: center;
    padding: 2.5rem 1.5rem; /* 增加内边距 */
    border: 1px solid #e8f4fc; /* 调整边框颜色，更贴合主题 */
    border-radius: 12px; /* 增大圆角，更现代 */
    background-color: #f9fcff; /* 增加淡蓝色背景 */
    transition: all 0.4s ease; /* 优化过渡效果 */
    height: 100%; /* 确保所有认证项高度一致 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 强化hover效果 */
.cert-item:hover {
    transform: translateY(-8px); /* 增大上浮距离 */
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15); /* 增加蓝色调阴影 */
    border-color: #3498db; /* hover时边框变色 */
}

.cert-icon {
    width: 100px; /* 增大图标容器 */
    height: 100px;
    margin: 0 auto 1.8rem;
    background-color: #ffffff; /* 纯白背景突出图片 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* 增加轻微阴影 */
    overflow: hidden; /* 防止图片溢出 */
}

/* 关键优化：确保认证图片正常显示 */
.cert-icon img {
    width: 70%; /* 控制图片大小 */
    height: 70%;
    object-fit: contain; /* 保持图片比例 */
    transition: transform 0.3s ease;
}

.cert-item:hover .cert-icon img {
    transform: scale(1.1); /* hover时图片轻微放大 */
}

.cert-item h4 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem; /* 调整字体大小 */
    line-height: 1.4; /* 优化行高，适配长名称 */
    word-break: break-word; /* 处理长文本换行 */
}

/* 新增：认证描述文本样式 */
.cert-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* 公司展示样式 */
#company-show {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 250px;
    cursor: pointer;
}

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

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 车间展示样式 */
#workshop-show {
    padding: 6rem 0;
}

.workshop-video {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.workshop-video video {
    width: 100%;
    height: auto;
}

.workshop-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.workshop-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    height: 200px;
}

.workshop-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 联系信息区域样式 */
.contact-section {
    padding: 6rem 0;
}

/* 关键：让行内的列拉伸对齐，确保左右等高 */
.equal-height-row {
    align-items: stretch;
}

/* 左侧地图容器 */
.map-column {
    display: flex;
    align-items: stretch;
}
.map-container {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.map-img {
    width: 100%;
    height: 100%; /* 强制高度填满容器 */
    object-fit: cover; /* 保持比例并覆盖 */
    display: block;
    transition: transform 0.5s ease;
}

.map-container:hover .map-img {
    transform: scale(1.02);
}

/* 右侧信息列容器 */
.info-column {
    display: flex;
    align-items: stretch;
}

/* 信息列表容器 - 填满高度 */
.info-list-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    padding: 1.5rem; /* 整体内边距 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
}

/* 信息卡片样式 - 紧凑版 */
.info-card {
    padding: 1rem 1.5rem; /* 【关键】减小上下内边距，更紧凑 */
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem; /* 【关键】减小卡片间距 */
    border-bottom: 1px solid #f1f1f1; /* 底部加一条细线分隔，更清晰 */
}

/* 移除最后一个卡片的间距和边框 */
.info-card:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

/* 鼠标悬停效果调整 */
.info-card:hover {
    background-color: #f8fbfe;
    border-radius: 8px;
}

.info-icon {
    width: 45px; /* 稍微缩小图标 */
    height: 45px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.2rem;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.1rem;
}

.info-content {
    flex-grow: 1;
}

.info-title {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.1rem;
    font-weight: 600;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.info-value a {
    color: #3498db;
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

/* 产品列表样式 */
#products {
    padding: 6rem 0;
}

.product-list-page {
    padding: 5rem 0;
}

/* 产品网格 - 优化布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}


.product-img-container, .product-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.product-card:hover .product-img-container img, .product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-content {
    padding: 1.8rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body {
    padding: 1.5rem;
}

.product-title, .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-desc, .card-text {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    flex: 1;
}

/* 优化按钮样式 */
.btn-view {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    display: block;
    width: 100%;
}

.btn-view:hover {
    background-color: #2980b9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.btn-view i {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.btn-view:hover i {
    transform: translateX(3px);
}

/* 分页样式 - 优化 */
.pagination-area {
    text-align: center;
    padding-top: 1rem;
}

.page-link {
    color: #3498db;
    border-color: #e1e8ed;
    margin: 0 4px;
    border-radius: 6px !important;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
}

.page-link:hover {
    color: #fff;
    background-color: #3498db;
    border-color: #3498db;
}

.page-item.active .page-link {
    background-color: #3498db;
    border-color: #3498db;
}

/* 产品详情样式 */
.product-detail {
    padding: 4rem 0;
}

/* 产品图片展示 - 简化为单张图片 */
.product-img-single {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.product-img-single img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 产品基本信息 */
.product-basic h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

/* 产品规格参数 - 调整为一行一个展示 */
.product-specs {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.spec-list {
    margin-top: 1rem;
}

.spec-item {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #ddd;
}

.spec-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 80px;
    display: flex;
    align-items: flex-start;
}

.spec-label i {
    color: #3498db;
    margin-right: 0.5rem;
    font-size: 1rem;
    margin-top: 2px;
    width: 20px;
}

.spec-value {
    color: #666;
    line-height: 1.6;
    flex: 1;
}

/* 样品列表样式 */
.sample-list {
    padding: 2rem 0;
}

.sample-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 1.5rem;
}

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

.sample-img {
    height: 150px;
    overflow: hidden;
}

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

.sample-info {
    padding: 1rem;
}

.sample-info h5 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.sample-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 文本省略样式 */
.text-ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
    margin-bottom: 0;
}

/* 页脚样式（统一所有页面页脚） */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 2rem;
}

.footer-text {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}
.footer-text a { color: #f1f1f1; text-decoration: none;}
/* 响应式调整（整合所有页面的响应式样式） */
@media (max-width: 992px) {
    /* 通用响应式 */
    .section-title h2 {
        font-size: 2rem;
    }
    
    #company-intro, #company-cert, #company-show, #workshop-show {
        padding: 4rem 0;
    }
    
    /* 公司简介响应式 */
    .intro-content, .about-content {
        flex-direction: column; /* 992px以下才换行 */
        gap: 2rem;
    }
    
    /* 轮播图响应式 */
    .carousel-caption h1 {
        font-size: 2.2rem;
    }
    
    /* 联系页响应式 */
    .map-container {
        margin-bottom: 1.5rem;
        height: 350px; /* 手机端固定高度 */
    }
    /* 手机端变回独立卡片样式 */
    .info-list-container {
        padding: 0;
        background: transparent;
        box-shadow: none;
    }
    .info-card {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        margin-bottom: 1rem;
        border-bottom: none;
    }
    
    /* 产品列表响应式 */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    /* 产品详情响应式 */
    .product-detail {
        padding: 2rem 0;
    }
}

@media (max-width: 768px) {
    /* 通用响应式 */
    .intro-features {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* 认证响应式 */
    .cert-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .cert-icon {
        width: 80px;
        height: 80px;
    }
    
    /* 轮播图响应式 */
    .carousel-item {
        height: 60vh;
    }
    
    .carousel-caption {
        bottom: 10%;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    /* 产品列表响应式 */
    .product-img-container {
        height: 180px;
    }
    
    .product-list-page {
        padding: 3rem 0;
    }
    
    /* 产品详情响应式 */
    .product-specs {
        padding: 1.5rem;
    }
    
    .product-basic h1 {
        font-size: 1.5rem;
    }
    
    .spec-label {
        min-width: 70px;
    }
}

@media (max-width: 576px) {
    /* 通用响应式 */
    .cert-list {
        grid-template-columns: 1fr;
    }
    
    .cert-item {
        padding: 2rem 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    #company-intro, #company-cert, #company-show, #workshop-show {
        padding: 3rem 0;
    }
    
    /* 产品列表响应式 */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .product-title {
        font-size: 1.15rem;
    }
    
    .product-content {
        padding: 1.5rem 1.2rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    /* 产品详情响应式 */
    .sample-img {
        height: 120px;
    }
    
    .spec-item {
        flex-direction: column;
    }
    
    .spec-label {
        margin-bottom: 0.3rem;
    }
}