/* 视频管理页面特定样式 */

/* 上传区域样式 */
.upload-area {
    margin-bottom: 20px;
}

.upload-box {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-box:hover {
    border-color: #1890ff;
}

.upload-placeholder {
    color: #666;
}

.upload-icon {
    font-size: 32px;
    color: #999;
    display: block;
    margin-bottom: 10px;
}

/* 标签样式 */
.tags {
    margin-top: 10px;
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-right: 8px;
    cursor: pointer;
}

.edit-icon {
    margin-left: 1px;
    cursor: pointer;
    width: 10px;
    height: 12px;
}

/* 操作区域样式 */
.action-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 添加到现有的 CSS 文件中 */
.img-carousel {
    position: relative;
    width: 100%;
    text-align: center;
}

.carousel-item {
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 2;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.indicator.active {
    background: white;
}

.img-preview-list {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    cursor: pointer;
}

/* 图片预览相关样式 */
.preview-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.img-carousel {
    position: relative;
}

.carousel-item img {
    max-width: 100%;
    height: 400px;
    object-fit: contain;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

.carousel-next {
    left: auto;
    right: 10px;
}

.thumbnail-strip {
    display: flex;
    gap: 5px;
    justify-content: center;
    overflow-x: auto;
    padding: 5px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.thumbnail.active {
    border-color: #1890ff;
}

.thumbnail img {
    height: 100%;
    object-fit: cover;
}

/* 描述文本相关样式 */
.description-tooltip {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 300px;
}

