

/* 全局样式调整 - 取消固定宽度限制，实现平铺效果 */
body, html {
    min-width: auto; /* 取消最小宽度限制 */
    overflow-x: auto; /* 允许横向滚动（小屏幕时） */
}

.w1240 {
    width: 100%; /* 宽度改为100%，实现平铺 */
    max-width: 1240px; /* 保留最大宽度，避免过宽 */
    padding: 0 20px; /* 增加内边距，避免内容贴边 */
    box-sizing: border-box; /* 包含内边距计算 */
}

/* 分类列表容器样式 - 靠左显示 */
.service-types {
    width: 240px; /* 适当缩小宽度 */
    margin-left: 66px; /* 靠左显示 */
    flex-shrink: 0;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 分类列表标题样式 */
.service-types h1 {
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 0 10px 0;
    margin: 0 0 12px 0;
    font-weight: 600;
}

/* 分类列表项样式 */
.service-types ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-types li {
    margin-bottom: 8px;
    border: 1px solid #f0f2f5;
    border-radius: 6px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.service-types li:hover {
    border-color: #165dff;
    box-shadow: 0 2px 10px rgba(22, 93, 255, 0.1);
}

.service-types li a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
}

.service-types li h2 {
    font-size: 16px;
    color: #444;
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-types li a:hover h2 {
    color: #165dff;
}

/* 水平布局容器 */
.content-layout {
    display: flex;
    gap: 20px; /* 缩小间距 */
    align-items: flex-start;
/*     margin-top: 20px; */
    width: 100%; /* 占满宽度 */
}

/* 右侧内容区域样式 */
.fuwupage-cont {
    flex: 1; /* 占满剩余宽度 */
}

/* 右侧图片容器：固定尺寸 */
.fuwupage-cont .r-cont {
    width: 25%; /* 固定宽度 */
    height:300px; /* 固定高度 */
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* 禁止缩放 */
}

/* 图片固定尺寸 */
.fuwupage-cont .r-cont img {
    width: 400px; /* 固定宽度 */
    height: 300px; /* 固定高度 */
    /* 取消object-fit，确保图片严格按固定尺寸显示（如需保持比例可保留object-fit: cover） */
    /* object-fit: cover; */
    object-position: center;
    transition: transform 0.3s ease;
}

/* 内容文字区域调整 */
.fuwupage-cont .l-cont {
    width: 72%; /* 文字区域占比增加 */
    box-sizing: border-box;
}

.fuwupage-cont .l-cont h3 {
    margin-bottom: 15px;
}

.fuwupage-cont .l-cont p {
    line-height: 1.8; /* 优化行高，提升可读性 */
    margin-bottom: 20px; /* 增加段落下方间距 */
}

/* 轮播容器核心样式：固定高度300px */
.native-carousel-wrapper {
    position: relative;
    width: 100% !important;
    height: 100% !important; /* 容器固定高度 */
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #f5f5f5;
}
.native-carousel {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important; /* 继承容器高度 */
    overflow: hidden !important;
}
/* 轮播轨道：垂直居中，避免图片贴边 */
.native-carousel-track {
    display: flex !important;
    width: 100% !important;
    /* height: 100% !important; */
    transition: transform 0.5s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important; /* 轨道内元素垂直居中 */
}

/* 图片项：仅包裹图片，不额外拉伸 */
.native-carousel-item {
    width: 100% !important;
    height: auto !important; /* 高度随图片自适应，不强制填充 */
    flex-shrink: 0 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important; /* 图片在项内垂直居中 */
    justify-content: center !important; /* 图片在项内水平居中 */
}

/* 核心：图片自适应且不放大（关键规则） */
.native-carousel-item img {
    width: auto !important; /* 宽度不强制拉伸，按原始比例 */
    height: auto !important; /* 高度不强制拉伸 */
    max-width: 100% !important; /* 最大宽度不超过容器，防止过宽 */
    max-height: 100% !important; /* 最大高度不超过容器，防止过高（禁止放大） */
    object-fit: contain !important; /* 完整显示图片，不裁剪、不拉伸 */
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 按钮样式保持不变 */
.native-carousel-dots {
    position: absolute !important;
    bottom: -5px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 8px !important;
    z-index: 999 !important;
    margin: 0 !important;
    padding: 0 !important;
}
.native-carousel-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: blue !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.3s ease !important;
}
.native-carousel-dot.active {
    background: #ffad16 !important;
    width: 24px !important;
    border-radius: 5px !important;
}
/* 轮播核心样式（重点修复：多图排列+图片居中） */
.detail-carousel {
    position: relative;
    width: 100%;
    height: 450px; /* 固定轮播高度，避免图片拉伸 */
    overflow: hidden;
    margin: 20px 0;
    background-color: #fff; /* 背景色突出图片边界 */
     padding: 0;
}

/* 轮播轨道：多图横向排列，总宽度=单图宽度×图片数 */
.detail-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease; /* 平滑滚动动画 */
    position: absolute;
    top: 0;
    left: 0;
    padding: 0;
    margin: 0;
      list-style: none;
}

/* 单图容器：宽度=轮播宽度，确保每次只显示一张 */
.detail-carousel-img {
    width: 100%; /* 关键：每张图占满轮播宽度 */
    height: 100%;
    flex-shrink: 0; /* 禁止压缩，避免多图挤在一起 */
    display: flex; /* 用flex实现图片居中 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    margin: 0;
    padding: 20px; /* 内边距避免图片贴边 */
    box-sizing: border-box;
}

/* 图片居中核心：按比例缩放，不拉伸、不裁剪 */
.detail-carousel-img img {
    max-width: 100%; /* 最大宽度不超过容器 */
    max-height: 100%; /* 最大高度不超过容器 */
    width: auto; /* 取消固定宽度，按比例缩放 */
    height: auto; /* 取消固定高度，按比例缩放 */
    object-fit: contain; /* 完整显示图片，无裁剪 */
    display: block;
    margin: 0 auto;
}

/* 底部切换按钮：样式清晰，可点击性强 */
.detail-carousel-dots {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%); /* 按钮容器居中 */
    display: flex;
    gap: 10px;
    z-index: 999; /* 避免被遮挡 */
    margin: 0;
    padding: 0;
}

.detail-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5); /* 未选中：半透明黑 */
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.detail-carousel-dot.active {
    background-color: #0066cc; /* 选中：蓝色 */
    width: 28px;
    border-radius: 6px; /* 选中变成长圆形，直观区分 */
}

/* 单图隐藏按钮：避免无意义交互 */
.detail-carousel.single-img .detail-carousel-dots {
    display: none;
}

/* 单张图片强制居中修复 */
.detail-carousel.single-img .detail-carousel-track {
    width: 100% !important; /* 强制轨道宽度为100%（覆盖动态计算的宽度） */
    justify-content: center; /* 轨道自身居中对齐图片 */
}

.detail-carousel.single-img .detail-carousel-img {
    /* 单张图片时取消固定宽度限制，让内容决定宽度 */
    width: auto !important; 
    margin: 0 auto; /* 水平居中 */
}

/* 单张图片的图片样式强化 */
.detail-carousel.single-img .detail-carousel-img img {
    margin: 0 auto; /* 冗余保障居中 */
}

/* 响应式适配：移动端优化 */
@media (max-width: 768px) {
    .detail-carousel {
        height: 280px; /* 移动端降低高度 */
    }
    
    .content-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .service-types {
        width: 100%;
        margin-left: 0;
    }
    
    .fuwupage-cont .l-cont,
    .fuwupage-cont .r-cont {
        width: 100%;
    }
}

