.tank-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

.tank-container {
    position: relative;
    width: 100%;
    padding-top: 50%; /* 2:1 宽高比，更适合罐区全景图 */
    overflow: hidden;
    background: #f5f5f7;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tank-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tank-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.tank-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 让图片填充整个容器 */
}

.tank-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tank-button:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tank-button.prev {
    left: 20px;
}

.tank-button.next {
    right: 20px;
}

.tank-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.tank-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.tank-indicator.active {
    background: #fff;
    transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tank-button {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .tank-button.prev {
        left: 10px;
    }

    .tank-button.next {
        right: 10px;
    }

    .tank-indicators {
        bottom: 10px;
    }

    .tank-indicator {
        width: 6px;
        height: 6px;
    }
}
