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

.dingzhi-item {
    margin-bottom: 60px;
    position: relative;
    cursor: pointer;
}

.dingzhi-wrapper {
    display: flex;
    height: 600px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.dingzhi-wrapper:hover {
    transform: translateY(-5px);
}

.content-section {
    width: 30%; /* 增加内容区域宽度 */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.image-section {
    width: 70%; /* 调整图片区域宽度 */
    position: relative;
    overflow: hidden;
}

/* 完全移除所有倾斜相关的伪元素和变换 */
.dingzhi-item.left-layout .content-section::after,
.dingzhi-item.right-layout .content-section::before {
    content: none; /* 关键：彻底移除伪元素 */
}

/* 移除所有特殊的宽度和边距设置 */
.dingzhi-item.left-layout .image-section,
.dingzhi-item.right-layout .image-section {
    margin: 0;
    width: 70%;
}

/* 添加左右布局的简单区分 */
.dingzhi-item.left-layout .dingzhi-wrapper {
    flex-direction: row;
}

.dingzhi-item.right-layout .dingzhi-wrapper {
    flex-direction: row-reverse;
}

/* 其他样式保持不变... */
.dingzhi-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}

.dingzhi-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.dingzhi-description p {
    margin-bottom: 10px;
}

/* 图片样式 */
.dingzhi-slider,
.single-image {
    width: 100%;
    height: 100%;
    position: relative;
    background: #f5f5f5;
}

.dingzhi-slider .slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.dingzhi-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.single-image {
    display: block;
}

.dingzhi-slider img,
.single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 全屏大图模态框 */
.dingzhi-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

.dingzhi-modal.active {
    display: flex;
}

.modal-content {
    max-width: 95%;
    max-height: 85%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-main-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    user-select: none;
}

.modal-main-image.zoomed {
    cursor: zoom-out;
    transform-origin: center;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    z-index: 10001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.modal-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 20px;
    max-width: 95vw;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.5) transparent;
}

.modal-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.modal-thumbnails::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 3px;
}

.modal-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.7);
}

.modal-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.modal-thumbnail:hover,
.modal-thumbnail.active {
    opacity: 1;
    border-color: white;
    transform: scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10000;
    display:none;
}

.modal-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

.zoom-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-indicator.show {
    opacity: 1;
}

/* 当没有图片时隐藏图片区域 */
.image-section:empty {
    display: none;
}

.image-section:empty + .content-section,
.content-section:has(+ .image-section:empty) {
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dingzhi-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .content-section,
    .image-section {
        width: 100% !important;
        padding: 30px 20px !important;
    }
    
    .image-section {
        height: 400px;
        order: 2; /* 确保图片在下方 */
    }
    
    .content-section {
        order: 1; /* 确保内容在上方 */
    }
    
    .dingzhi-content h3 {
        font-size: 20px;
    }
    
    .modal-thumbnails {
        gap: 5px;
        padding: 10px;
        max-width: 90vw;
    }
    
    .modal-thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .modal-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .modal-prev {
        left: 15px;
    }
    
    .modal-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .dingzhi-container {
        padding: 10px;
    }
    
    .dingzhi-wrapper {
        border-radius: 5px;
    }
    
    .content-section {
        padding: 20px 15px !important;
    }
    
    .dingzhi-content h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .dingzhi-description {
        font-size: 12px;
    }
    
    .modal-thumbnails {
        padding: 5px;
        max-width: 85vw;
    }
    
    .modal-thumbnail {
        width: 50px;
        height: 35px;
    }
    
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
}