  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* 轮播容器整体样式 */
        .carousel-container {
            width: 400px;
            margin: 0 auto;
            position: relative;
        }

        /* 大图展示区域 */
        .carousel-main {
            width: 100%;
            height: 300px;
            overflow: hidden;
            border-radius: 8px;
            margin-bottom: 20px;
            /* 移除大图区域的相对定位（原箭头定位用） */
        }

        /* 大图滚动容器 */
        .main-wrapper {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.5s ease;
        }

        /* 大图样式 */
        .main-item {
            flex: 0 0 100%;
            width: 100%;
            height: 100%;
        }

        .main-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* 左右切换箭头（重新定位） */
        .arrow {
            position: absolute;
            /* 调整垂直位置到小图区域 */
            top: calc(300px + 20px + 40px); /* 大图高度 + 大图小图间距 + 小图高度的一半 */
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s;
        }

        .arrow:hover {
            background-color: rgba(0, 0, 0, 0.8);
        }

        /* 调整箭头水平位置到小图两侧 */
        .prev {
            left: calc(50% - 170px - 30px); /* 小图总宽度的一半（4*120+3*10=510/2=255）微调至240 + 30px间距 */
        }

        .next {
            right: calc(50% - 170px - 30px);
        }

        /* 小图导航区域（增加相对定位，辅助箭头对齐） */
        .carousel-thumb {
            display: flex;
            justify-content: center;
            gap: 10px;
            position: relative;
        }

        /* 小图样式 */
        .thumb-item {
            width: 120px;
            height: 80px;
            border: 3px solid transparent;
            border-radius: 4px;
            cursor: pointer;
            overflow: hidden;
            transition: border-color 0.3s, transform 0.3s;
        }
        
        .thumb-item img {max-width:100%; height:auto}

        .thumb-item:hover {
            transform: scale(1.05);
        }

        /* 小图选中状态 */
        .thumb-item.active {
            border-color: #007bff;
        }

        .thumb-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        
          @media (max-width: 768px) {
              .main-item img {
            width: 100%;
            height: auto;
            object-fit: cover;
        }
        
                .prev {
            left: calc(50% - 133px - 30px); /* 小图总宽度的一半（4*120+3*10=510/2=255）微调至240 + 30px间距 */
        }

        .next {
            right: calc(50% - 133px - 30px);
        }
        }