/* =================================================================== */
/* ==                     通用基础样式 (所有页面共用)                  == */
/* =================================================================== */

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background-color: #f0f2f5; 
    color: #333;
    margin: 0;
}

/* ======================================================= */
/* ==                  导航栏 (Header) 样式              == */
/* ======================================================= */

header {
    background-color: #004d40; 
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

header nav a {
    color: white;
    text-decoration: none;
    background-color: transparent;
    margin: 0 10px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    transition: background-color 0.3s ease;
}

header nav a:hover, 
header nav a.active {
    background-color: #00796b; 
    color: white;
}


/* =================================================================== */
/* ==                  产品列表页样式 (page-product-list)             == */
/* =================================================================== */

/* 1. 顶部 Hero Banner 样式 */
.page-product-list .product-hero-banner {
    padding: 180px 0;
    text-align: center;
    color: #fff;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/20201031154818117.jpg');
    background-size: cover;
    background-position: center;
}

.page-product-list .product-hero-banner h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
}

.page-product-list .product-hero-banner p {
    font-size: 1.5rem;
    margin: 10px 0 0 0;
    position: relative;
    display: inline-block;
}

.page-product-list .product-hero-banner p::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #f39c12; 
}

/* 2. 二级导航栏和面包屑样式 */
.page-product-list .product-subnav-bar {
    background-color: #fff;
    border-bottom: 1px solid #e9e9e9;
    padding: 0 20px;
}

.page-product-list .subnav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    max-width: 1200px; 
    width: 100%;
    margin: 0 auto;
}

.page-product-list .subnav-links a {
    color: #555;
    text-decoration: none;
    padding: 20px 15px;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.page-product-list .subnav-links a:hover {
    color: #007bff;
}

.page-product-list .subnav-links a.active {
    color: #007bff;
    font-weight: bold;
}

.page-product-list .subnav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #007bff;
}

.page-product-list .breadcrumbs {
    font-size: 0.9rem;
    color: #888;
}


/* =================================================================== */
/* ==         产品详情页样式 (page-product-detail)        == */
/* =================================================================== */
.page-product-detail .product-subnav-bar {
    background-color: #ffffff; /* 白色背景 */
    border-bottom: 1px solid #e9e9e9; /* 底部分隔线 */
    padding: 0 20px; /* 左右留一些安全边距 */
    /* 移除所有宽度和居中限制，让它自然伸展到100%宽 */
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 0;
}

/* 2. 居中的二级导航内容容器 */
.page-product-detail .subnav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    
    /* 关键：让这个内部容器居中，并与下方内容同宽 */
    max-width: 1600px; /* 与下方内容块保持一致 */
    width: 90%;       /* 与下方内容块保持一致 */
    margin: 0 auto;   /* 实现水平居中 */
}

/* 3. 主要内容块（图片、文字、Tab区）的统一样式 */
.page-product-detail .product-top-section,
.page-product-detail .product-tabs-section {
    max-width: 1600px; /* 与上方导航内容保持一致 */
    width: 90%;       /* 与上方导航内容保持一致 */
    margin-left: auto;
    margin-right: auto;
}

/* 4. 调整垂直间距 */
.page-product-detail .product-top-section {
    margin-top: 40px; /* 设置合适的上边距，与二级导航分开 */
    margin-bottom: 40px;
}

.page-product-detail .product-tabs-section {
    margin-top: 0;
    margin-bottom: 40px;
}


/* 顶部区域布局容器 (透明) */
.page-product-detail .product-top-section {
    max-width: 1600px;
    width: 90%;
    margin: 40px auto;
    display: flex;
    gap: 40px;
    align-items: flex-start; /* 确保内容少的栏不会被强行拉高 */
}

/* 2. 左侧图片区 (保持不变) */
.page-product-detail .product-gallery {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex: 0 0 45%; 
    box-sizing: border-box;
}

.page-product-detail .main-image {
    margin-bottom: 15px;
}

.page-product-detail .main-image img {
    width: 100%;
    max-height: 500px;
    height: auto; 
    display: block; 
    object-fit: contain;
    margin: 0 auto;
}


.page-product-detail .thumbnail-images { display: flex; gap: 10px; margin-top: 10px; }
.page-product-detail .thumb { width: 80px; height: 80px; border: 2px solid #26a69a; padding: 5px; box-sizing: border-box; cursor: pointer; }
.page-product-detail .thumb.active { border-color: #d9000d; }
.page-product-detail .thumb img { width: 100%; height: 100%; object-fit: contain; }
/* 3. 右侧文字介绍区 (透明背景) */
.page-product-detail .product-info {
    flex: 1;
    padding: 20px;
    /* 移除之前用于定位按钮的Flex布局代码 */
}
.page-product-detail .product-title { font-size: 28px; margin-top: 0; }
.page-product-detail .info-block h2 { font-size: 18px; font-weight: 600; margin-bottom: 15px; }
.page-product-detail .info-block p, .page-product-detail .info-block ul { font-size: 15px; line-height: 1.9; color: #555; }
.page-product-detail .info-block ul { padding-left: 20px; }
.page-product-detail .info-block:not(:first-child) { margin-top: 40px; }

.page-product-detail .back-button { 
    display: inline-block; 
    background-color: transparent;
    border: 1px solid #0056b3; 
    color: #0056b3; 
    padding: 12px 30px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 500; 
    transition: all 0.3s ease; 

    /* 关键：使用固定的margin-top，让它紧跟在内容下方 */
    margin-top: 40px; 
}

.page-product-detail .back-button:hover { 
    background-color: #0056b3; 
    color: #ffffff; 
}


/* 5. 下方Tab切换区域的样式 (保持不变) */
.page-product-detail .product-tabs-section {
    max-width: 1600px;
    width: 90%;
    margin: 40px auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-product-detail .tab-nav { border-bottom: 1px solid #dee2e6; margin-bottom: 30px; display: flex; }
.page-product-detail .tab-content { display: none; font-size: 15px; line-height: 1.9; color: #444; }
.page-product-detail .tab-content.active { display: block; }
.page-product-detail .tab-content ol { padding-left: 20px; }
.page-product-detail .tab-link { background-color: transparent; border: none; color: #555; font-size: 16px; font-weight: 500; padding: 15px 0; margin-right: 40px; border-radius: 0; transition: all 0.3s ease; cursor: pointer; }
.page-product-detail .tab-link:hover { color: #004D40; }
.page-product-detail .tab-link.active { background-color: #004D40; color: #ffffff; padding: 10px 20px; border-radius: 4px; margin-top: 5px; margin-bottom: 5px; }


.site-footer {
    background-color: #2c3e50; /* 深蓝灰色背景 */
    color: #bdc3c7; /* 柔和的灰色文字 */
    padding: 60px 0 30px 0;
    font-size: 0.9rem;
    line-height: 1.8;
}

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

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    flex-wrap: wrap; /* 允许换行 */
}

/* 链接列表的容器 */
/* 将其修改为 */
.footer-links {
    display: flex;
    gap: 50px; 
    flex-grow: 1;
    flex-wrap: wrap; 
}

.footer-column h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column a:hover {
    color: #ffffff;
    padding-left: 5px; /* 悬停时轻微右移 */
}

/* 右侧Logo和二维码区域 - 更新为左右并排样式 */
.footer-aside {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.footer-logo img {
    max-width: 200px; /* 您可以根据Logo的实际大小调整 */
    height: auto;
    display: block; /* 移除图片下方的空隙 */
}

.footer-qr {
    text-align: center; /* 让下方的文字居中 */
}

.footer-qr img {
    width: 200px;
    height: 200px;
    background: #fff;
    padding: 5px;
    border-radius: 4px;
}

.footer-qr p {
    margin: 10px 0 0 0; /* 调整二维码和文字之间的间距 */
    font-size: 0.85rem;
    color: #bdc3c7;
}

/* 分割线 */
.footer-divider {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0;
}

/* 底部版权信息行 */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    font-size: 0.85rem;
    color: #95a5a6;
    flex-wrap: wrap; /* 允许换行 */
    gap: 15px; /* 换行时的间距 */
}

.footer-bottom a {
    color: #95a5a6;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
}


/* 响应式调整 */
@media (max-width: 992px) {
    .footer-main {
        flex-direction: column;
        align-items: center; /* 在平板上整体居中 */
        text-align: center;
    }
    .footer-links-container {
        justify-content: center; /* 链接列居中 */
        gap: 40px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
    }
}

.legal-links a {
    color: #a9b3bb;
    margin-left: 20px;
}

.legal-links a:hover {
    color: #fff;
}

/* --- 以下是页脚的响应式设计 --- */
@media (max-width: 1024px) {
    .footer-main {
        flex-direction: column;
    }
    .footer-aside {
        margin-top: 30px;
    }
}
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    .legal-links {
        margin-top: 10px;
    }
}

/* =================================================================== */
/* >> 新增 << 全局内容容器样式                                       */
/* =================================================================== */

.container {
    width: 100%;
    max-width: 1200px; /* 设置您网站内容的标准宽度 */
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px; /* 左右留一些安全边距 */
    padding-right: 20px;
}

/* --- 以下是确保页脚能紧贴内容底部的修正代码 --- */
main > section:last-child {
    margin-bottom: 0;
}

/* 1. 顶部 Hero Banner 样式 */
.product-hero-banner {
    padding: 180px 0;
    text-align: center;
    color: #fff;
    /* 请将这里的背景图换成您自己的高清大图 */
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/20201031154818117.jpg');
    background-size: cover;
    background-position: center;
}
.product-hero-banner h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
}
.product-hero-banner p {
    font-size: 1.5rem;
    margin: 10px 0 0 0;
    position: relative;
    display: inline-block;
}
/* 标题下的小橙线 */
.product-hero-banner p::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #f39c12; 
}

/* 2. 二级导航栏和面包屑样式 */
.product-subnav-bar {
    background-color: #fff;
    border-bottom: 1px solid #e9e9e9;
}
.subnav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.subnav-links a {
    color: #555;
    text-decoration: none;
    padding: 20px 15px;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}
.subnav-links a:hover {
    color: #007bff;
}
.subnav-links a.active {
    color: #007bff;
    font-weight: bold;
}
.subnav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -1px; /* 关键：紧贴在父容器的 border-bottom 上方 */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #007bff;
}
/* 面包屑导航样式 */
.breadcrumbs {
    font-size: 0.9rem;
    color: #888;
}
.breadcrumbs a {
    color: #888;
    text-decoration: none;
}
.breadcrumbs a:hover {
    color: #555;
}
.breadcrumbs span {
    color: #333; /* 当前页面名称颜色更深 */
}

/* 3. 产品展示区域样式 */
.product-listing-section {
    padding: 80px 0;
    background-color: #f0f2f5; 
}

.product-grid {
    display: grid;
    /* 核心修改：将自适应填充改为固定的三列，每列占据可用空间的1份 */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.product-card-item {
    background-color: #fff;
    border: 1px solid #e9e9e9;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* 核心修改：添加下面这行代码来实现圆角 */
    border-radius: 18px; 
}
.product-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.product-card-link {
    text-decoration: none;
}
.product-card-image {
    background-color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 360px; /* 固定图片区域高度 */
}
.product-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-card-title {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e9e9e9;
}
.product-card-title h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

        /* 表格样式 */
        .param-table {
            width: 100%; /* 表格宽度占满容器 */
            border-collapse: collapse; /* 合并边框 */
            margin-top: 20px; /* 表格与上方标题的间距 */
            font-size: 14px; /* 字体大小 */
        }
        .param-table th, .param-table td {
            border: 1px solid #ddd; /* 单元格边框 */
            padding: 10px; /* 单元格内边距 */
            text-align: center; /* 文字居中 */
            white-space: nowrap; /* 防止文字换行 */
        }
        .param-table thead {
            background-color: #f7f7f7; /* 表头背景色 */
            font-weight: bold; /* 表头文字加粗 */
        }
        .param-table tbody tr:nth-child(even) {
            background-color: #fcfcfc; /* 偶数行背景色，可选 */
        }
        
        
        /* ========== 将这段CSS添加到你的 style.css 文件中 ========== */

/* 产品相册 - 缩略图样式 */
.thumbnail-images {
    display: flex; /* 让缩略图横向排列 */
    gap: 10px; /* 缩略图之间的间距 */
    margin-top: 10px; /* 与主图的间距 */
}

.thumb {
    width: 80px;  /* 缩略图容器宽度 */
    height: 80px; /* 缩略图容器高度 */
    border: 2px solid #ddd; /* 默认边框 */
    cursor: pointer; /* 鼠标悬浮时显示为手形 */
    box-sizing: border-box;
    transition: border-color 0.3s; /* 边框颜色变化动画 */
}

.thumb:hover {
    border-color: #999; /* 鼠标悬浮时边框颜色 */
}

.thumb.active {
    border-color: #007bff; /* 选中时的边框颜色 (可以换成你的主题色) */
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 图片将被裁剪以适应容器，不变形 */
    display: block; /* 移除图片底部的微小间距 */
}