/* 搜索弹窗样式 */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.search-modal-content {
    background: white;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.search-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s;
}
.search-modal-close:hover {
    background: #f5f5f5;
    color: #666;
}
.search-modal-header {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}
.search-modal-title {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}
.search-result-item {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-title {
    font-size: 16px;
    color: #409eff;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.5;
}
.search-result-title:hover {
    color: #66b1ff;
    text-decoration: underline;
}
.search-result-desc {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}
.search-empty {
    text-align: center;
    color: #999;
    padding: 30px 0;
    font-size: 14px;
}
.udede-sou-inner {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.udede-sou {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.hot {
    flex: 1;
    min-width: 200px;
}
.hot strong {
    color: #333;
    font-size: 14px;
}
.hot a {
    margin: 0 8px;
    color: #409eff;
    text-decoration: none;
    font-size: 14px;
}
.hform {
    flex: 0 0 auto;
}
.hform form {
    display: flex;
    align-items: center;
}
#searchInput {
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 280px;
    font-size: 14px;
    transition: border-color 0.3s;
}
#searchInput:focus {
    border-color: #409eff;
}
.hform button {
    height: 40px;
    padding: 0 20px;
    background: #409eff;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}
.hform button:hover {
    background: #66b1ff;
}
.highlight {
    color: #f56c6c;
    font-weight: bold;
    background: #fff7f7;
    padding: 0 2px;
    border-radius: 2px;
}

/* 原生轮播样式 - 修复卡顿版 */
.pc-slide {
    position: relative;
    user-select: none;
}
.view {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
}
.view .img-list {
    display: flex;
    width: 100%;
    transition: transform 0.3s ease !important;
    will-change: transform;
}
.view .img-item {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.view .img-item img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    display: block;
}

/* 缩略图 */
.preview {
    position: relative;
    padding: 20px 10px;
    display: flex;
    align-items: center;
}
.preview .thumb-list {
    display: flex;
    gap: 15px;
    overflow: hidden;
    width: 100%;
}
.preview .thumb-item {
    width: 80px;
    height: 80px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.preview .thumb-item.active {
    opacity: 1;
    border: 2px solid #000;
}
.preview .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 箭头 */
.arrow-left, .arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    text-align: center;
    line-height: 30px;
    z-index: 99;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
}
.arrow-left { left: 5px; }
.arrow-right { right: 5px; }
.arrow-left:hover, .arrow-right:hover {
    background: #000;
}

/* 弹窗式大图预览 - 背景透明版 */
.img-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* 透明背景 */
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    touch-action: none;
}
.img-preview-content {
    position: relative;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
#previewBigImg {
    max-width: 90vw;
    max-height: 90vh;
    transition: transform 0.08s ease;
    user-select: none;
    cursor: move;
    object-fit: contain;
    /* 图片阴影，透明背景下更清晰 */
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border-radius: 4px;
}
.img-preview-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 36px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.img-preview-close:hover {
    background: #ff4444;
    transform: scale(1.1);
}
/* 核心修改：缩放按钮改为绝对定位，实时计算位置 */
.img-preview-zoom {
    position: absolute;
    display: flex;
    gap: 10px;
    z-index: 10;
    /* 初始位置（会被JS覆盖） */
    left: 50%;
    bottom: -60px;
    transform: translateX(-50%);
}
.zoom-btn {
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-size: 16px;
}
.zoom-btn:hover {
    background: #409eff;
    transform: scale(1.1);
}

/* ========== 修复：同类产品案例与主要产品宽度统一 ========== */
/* 给同类产品案例外层加统一容器样式 */
.case-list {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  justify-content: flex-start !important;
}

.udede-infocontent-body {
  /* 核心：让每一段自动首行缩进，不用拆p！ */
  padding-left: 0em;
  padding-right: 1em;
}
.udede-infocontent-body p {
    text-indent: 2em;
    margin: 0;
    padding: 0;
    line-height: 2.5em;
    color: #000;
    font-family: "Microsoft YaHei";
    font-size: 20px;
    margin-bottom: 8px;
}
