/* 主样式文件 */
.image-tab-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    max-width: 100%;
    margin: 0 auto;
}

/* 缩略图容器 */
.image-tab-thumbs {
    display: flex;
    overflow-x: auto;
    padding: 20px 0;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: #e0e0e0 #f5f5f5;
}

.image-tab-thumbs::-webkit-scrollbar {
    height: 6px;
}

.image-tab-thumbs::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.image-tab-thumbs::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 3px;
}

.image-tab-thumbs::-webkit-scrollbar-thumb:hover {
    background: #d0d0d0;
}

/* 缩略图项 */
.image-tab-thumb {
    position: relative;
    flex: 0 0 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #f5f5f5;
}

.image-tab-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-tab-thumb.active {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

/* 缩略图上的数字 */
.image-tab-number {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* 主图片容器 */
.image-tab-content {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    background: #fafafa;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.image-tab-display {
    position: relative;
    max-width: 600px;
    width: 100%;
}

/* 图片项 */
.image-tab-item {
    display: none;
    position: relative;
    text-align: center;
}

.image-tab-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.image-tab-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 下载按钮 */
.image-tab-download {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.image-tab-download:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .image-tab-thumb {
        flex: 0 0 60px;
        height: 60px;
    }
    
    .image-tab-content {
        padding: 20px;
    }
    
    .image-tab-download {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* 小工具样式 */
.image-tab-container.widget {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.image-tab-container.widget .image-tab-thumbs {
    padding: 10px 0;
    gap: 10px;
}

.image-tab-container.widget .image-tab-thumb {
    flex: 0 0 50px;
    height: 50px;
}

.image-tab-container.widget .image-tab-content {
    padding: 20px;
    margin-top: 10px;
}