/* 产品图片区域整体样式 */
.product-image-section {
    position: relative;
}
/* 主图容器 - 1:1比例 + 原有加粗外框（核心修改） */
.product-image-section .main-image-container {
    position: relative; /* 新增：为子元素绝对定位做准备 */
    width: 100%; /* 新增：宽度铺满父容器 */
    padding-top: 100%; /* 核心：1:1比例（高度=宽度） */
    max-width: 100%;
    overflow: hidden;
    border-radius: 4px;
    border: 2px solid #e5e7eb; /* 保留原有加粗外框 */
    padding: 2px; /* 保留原有内边距（不影响1:1比例） */
    margin-bottom: 12px;
}
/* 主图样式 - 适配1:1容器 + 保留悬停放大（核心修改） */
#main-product-image {
    position: absolute; /* 新增：绝对定位填满1:1容器 */
    top: 0; /* 新增：置顶 */
    left: 0; /* 新增：置左 */
    width: 100%; /* 保留：铺满容器宽度 */
    height: 100%; /* 新增：铺满容器高度 */
    object-fit: cover; /* 新增：图片铺满容器，裁剪多余部分（不变形） */
    transition: transform 0.3s ease-in-out;
    transform-origin: center center;
}
/* 主图悬停放大效果 - 保留 */
#main-product-image:hover {
    transform: scale(1.08);
}
/* 产品图片标题 - 简化样式 */
.product-image-section .caption.image-title {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}
/* 缩略图容器 - 居中+简化 */
.product-image-section .thumbnails-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}
/* 缩略图样式 - 简化（已1:1，无需修改） */
.product-image-section .product-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 1px;
}
.product-image-section .product-thumb.active {
    border-color: #ff7d00;
    border-width: 2px;
    padding: 0;
}
.product-image-section .product-thumb:hover {
    border-color: #ff7d00;
    transform: scale(1.05);
}
/* 限制最多5张缩略图（核心修改：n+5，第5张及以后隐藏，适配4张限制） */
.product-image-section .thumbnails-container .product-thumb:nth-child(n+5) {
    display: none;
}
/* 产品参数区域 - 取消跟随+简化样式 */
.product-params-wrap {
    width: 100%;
    position: static !important;
    top: auto !important;
    sticky: none !important;
    float: none !important;
}
.product-params-wrap .caption {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.product-params-wrap .desc {
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px; /* 增加底部间距，给按钮留出空间 */
}
/* 新增：产品参数下方按钮居中样式 */
.product-params-wrap .btn-quote {
    text-align: center; /* 按钮居中 */
    margin-top: 15px;
}
/* 移除不必要的全局样式 */
.main-project-detail {
    padding: 0;
}
/* 产品名称顶部间距 */
.project-title-section {
    margin-top: 20px !important; /* 与顶部的距离，可自定义 */
}
/* 产品详情标题样式（修复版：增加!important确保生效） */
.project-content-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px !important; /* 确保间距 */
    font-size: 18px !important;
    display: block !important; /* 确保标题是块级元素 */
}
/* 修复版分割线（增加!important确保样式生效） */
.content-divider {
    height: 3px !important; /* 强制显示高度 */
    width: 60px !important; /* 宽度 */
    background: linear-gradient(90deg, #ff7d00, #ffb066) !important; /* 渐变背景 */
    border-radius: 3px !important;
    margin: 0 0 15px 0 !important; /* 左对齐，和标题对齐，间距15px */
    display: block !important; /* 强制块级显示 */
    clear: both !important; /* 清除浮动影响 */
}