﻿/* Search Container Styles */
.search-container {
    display: flex;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.search-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Category Tags */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  
    overflow-x: auto;
   
}

.category-tag {
    padding: 8px 15px;
    border-radius: 20px;
    background-color: #f8f9fa;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .category-tag:hover, .category-tag.active {
        background-color: var(--primary-color);
        color: #fff;
    }

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.photo-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    margin-bottom: 20px;
    width: calc(15% - 20px);
}


    .photo-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.photo-image {
    position: relative;
    overflow: hidden;
}

    .photo-image img {
        width: 100%;
        display: block;
        aspect-ratio: 3/4;
        object-fit: cover;
    }

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.create-similar-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .create-similar-btn:hover {
        background-color: var(--secondary-color);
        transform: scale(1.05);
    }

.photo-info {
   padding: 10px 10px 0px 10px;
}

.photo-title {
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.photo-stats {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #6c757d;
    float:right;
}

.photo-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.photo-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Loading indicator */
#photoLoadingIndicator {
    text-align: center;
    padding: 20px;
    display: none;
}

#photoEndMessage {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    display: none;
}

/* Section Title */
.section-title {
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary-color);
}
:root {
    --primary-color: #5D3FD3;
    --secondary-color: #8A6FE8;
    --accent-color: #FF6B6B;
    --light-bg: #F8F9FA;
    --dark-bg: #343A40;
    --text-color: #212529;
    --border-color: #DEE2E6;
}

/* Custom Menu Styles */
.custom-menu {
    display: flex;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.custom-menu-item {
    flex: 1;
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}

    .custom-menu-item.active {
        background-color: var(--primary-color);
        color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        font-weight: bold;
    }

    .custom-menu-item:hover:not(.active) {
        background-color: #e9ecef;
        color: var(--primary-color);
    }

/* Category Checkboxes */
.category-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.category-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Upload Container Styles */
.upload-containers {
    margin-bottom: 30px;
}

.upload-container {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fff;
}

    .upload-container h5 {
        margin-bottom: 15px;
        color: var(--primary-color);
    }

.upload-sides {
    display: flex;
    gap: 20px;
}

.upload-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-preview {
    width: 100%;
    height: 300px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

    .upload-preview img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #adb5bd;
}

    .upload-placeholder i {
        font-size: 2rem;
        margin-bottom: 10px;
    }

.upload-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
}

    .upload-btn input[type="file"] {
        position: absolute;
        top: 0;
        right: 0;
        min-width: 100%;
        min-height: 100%;
        font-size: 100px;
        text-align: right;
        filter: alpha(opacity=0);
        opacity: 0;
        outline: none;
        cursor: pointer;
        display: block;
    }

    .upload-btn label {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 8px 16px;
        background-color: var(--primary-color);
        color: #fff;
        border-radius: 5px;
        cursor: pointer;
        width: 100%;
        transition: all 0.3s ease;
    }

        .upload-btn label:hover {
            background-color: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

/* Step Container Styles */
.step-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

    .step-container h5 {
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 0.9rem;
}

/* Image Preview Styles */
.image-preview {
    width: 100%;
    height: 300px;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

#previewPlaceholder, #batchPreviewPlaceholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #adb5bd;
}

    #previewPlaceholder i, #batchPreviewPlaceholder i {
        font-size: 3rem;
        margin-bottom: 10px;
    }

#previewImage, #batchPreviewImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* View Mode Selector Styles */
.view-mode-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.four-view-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.four-view-item {
    background-color: #f0f0f0;
    border-radius: 5px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #666;
}

/* Section Styles */
.section-title {
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Submit Button Styles */
.submit-btn {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* 清淡的双色渐变 */
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(75, 73, 172, 0.85) 100%);
    border: none;
    border-radius: 8px;
    margin-top: 20px;
    padding: 0 24px;
    font-weight: 500;
    color: white;
    /* 柔和阴影 */
    box-shadow: 0 3px 10px rgba(75, 73, 172, 0.15);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    /* 细微的光泽效果 */
    .submit-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        transition: all 0.6s ease;
    }

    /* 悬停时的微妙变化 */
    .submit-btn:hover {
        background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(68, 108, 218, 0.85) 100%);
        box-shadow: 0 5px 15px rgba(75, 73, 172, 0.2);
        transform: translateY(-2px);
    }

        .submit-btn:hover::before {
            left: 100%;
        }

    .submit-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(75, 73, 172, 0.15);
    }


/* Gallery Styles */
.gallery-tabs .nav-link {
    color: var(--text-color);
    padding: 10px 20px;
}

    .gallery-tabs .nav-link.active {
        color: var(--primary-color);
        font-weight: 500;
        border-bottom: 2px solid var(--primary-color);
    }

.task-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.date-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    width: calc(15% - 30px);
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    min-height: 100px;
    min-width: 100px;
}

    .gallery-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.gallery-image {
    position: relative;
    overflow: hidden;
}

    .gallery-image img {
        width: 100%;
        display: block;
    }

.image-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 15px 10px 10px;
    display: flex;
    justify-content: space-around;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-image:hover .image-actions {
    opacity: 1;
}

.image-actions button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

    .image-actions button:hover {
        transform: scale(1.2);
    }

.gallery-info {
    padding: 10px;
}

.gallery-prompt {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.gallery-time {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Selection Mode Styles */
.selection-mode .gallery-item {
    cursor: pointer;
}

    .selection-mode .gallery-item::before {
        content: '';
        position: absolute;
        top: 10px;
        right: 10px;
        width: 20px;
        height: 20px;
        border: 2px solid #fff;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        z-index: 10;
        transition: background-color 0.2s ease;
    }

    .selection-mode .gallery-item.selected::before {
        background-color: var(--primary-color);
        border-color: #fff;
    }

.selection-mode-actions {
    display: none;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    justify-content: space-between;
    align-items: center;
}

    .selection-mode-actions.active {
        display: flex;
    }

/* Batch Upload Styles */
.batch-upload-container {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fff;
}

.batch-upload-info {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9rem;
}

    .batch-upload-info ul {
        margin-bottom: 0;
        padding-left: 20px;
    }

.batch-upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.batch-upload-count {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.batch-upload-list {
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
}

.batch-upload-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .batch-upload-item:last-child {
        border-bottom: none;
    }

.batch-upload-item-name {
    flex: 1;
}

.batch-upload-item-status {
    margin-left: 10px;
    font-size: 0.8rem;
}

    .batch-upload-item-status.success {
        color: #28a745;
    }

    .batch-upload-item-status.warning {
        color: #ffc107;
    }

    .batch-upload-item-status.danger {
        color: #dc3545;
    }

/* Style Modal Styles */
.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.style-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

    .style-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .style-item.selected {
        border-color: var(--primary-color);
    }

    .style-item img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        display: block;
    }

.style-name {
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    background-color: #f8f9fa;
}

/* Toast Container Styles */
.toast-container {
    z-index: 1100;
}

/* Error Message */
.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

/* Badge Styles */
.badge-success {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: normal;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: normal;
}
.hiddenElement {
    display: none !important;
}
/* 图片预览模态框样式 */
#imagePreviewModal .modal-body {
    min-height: 300px;
}

#previewImage {
    max-height: 80vh;
}

.navigation-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

    .navigation-buttons button {
        opacity: 0.7;
    }

        .navigation-buttons button:hover {
            opacity: 1;
        }
/* 蒙版绘制相关样式 */
.drawing-container {
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    /* height will be set dynamically via padding-bottom for aspect ratio */
    width: 100%; /* Ensure it takes full width */
}

#drawingCanvas,
#sourceCanvas {
    position: absolute;
    top: 0;
    left: 0;
    /* These will fill the parent container visually, while their internal resolution is set in JS */
    width: 100%;
    height: 100%;
    cursor: crosshair;
    display: block; /* Ensure block level for width/height to work */
}

#previewCanvas {
    background-color: #000;
    width: 100%;
    height: auto; /* Ensure it scales proportionally */
    display: block; /* Ensure block level */
}

.card-header {
    background-color: #f0f0f0;
    font-weight: 500;
}
/* 自定义画笔光标 */
.cursor-container {
    position: absolute;
    pointer-events: none;
    z-index: 1000;
    border-radius: 50%;
    border: 1px solid #000;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    display: none;
}
/* 按钮基础样式 */
.download-btn,
.favorite-btn {
    background: none;
    border: none;
    color: #6c757d; /* 灰色 */
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

    /* 鼠标悬停时的样式 */
    .download-btn:hover,
    .favorite-btn:hover {
        transform: scale(1.2); /* 放大动画 */
        border: none; /* 去除黑边框 */
    }
/* 模态框图片样式 */
#modalImage {
    max-width: 100%; /* 确保图片宽度不超过父元素 */
    max-height: 100%; /* 确保图片高度不超过父元素 */
    width: auto;
    height: auto;
    object-fit: contain;
}
/* 外层容器 - 使用flex布局 */
.category-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px;
}
/* 响应式调整 */
@media (max-width: 768px) {
    .category-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-tags {
        width: 100%;
        margin-top: 10px;
    }
}


/*任务图片放大窗口*/
.modal-overlay {
    display:none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index:1031;
    position:fixed;
}

.modal-container {
    position: relative;
    background: white;
    margin: 2vh auto;
    max-width: 90vw;
    max-height: 96vh;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
}
    .modal-header .close-btn {
    border-width:0;
    padding:0;
    background:none;
    font-size:20px;
    
    }
    .modal-header h2 {
        color: #333;
        font-size: 1.5rem;
        margin: 0;
    }
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    text-align:center;
}
.action-buttons td button {
width:100%;
}

.modal-body {
    flex: 1;
}
.showTask {
    cursor: pointer; /* 鼠标悬停时显示手型 */
}
/* 图片容器 - 关键的自适应部分 */
.action-buttons {
    margin-bottom: 30px;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
    padding-top: 10px;
    vertical-align: central;
    min-height: 105px;
}


.sidebar h5 {
    text-align:left;
    padding: 15px 0 10px 20px;
    margin: 0 0 10px 0;
    border-bottom: 1px solid #eee;
}
.task-badge {
    left:23px;
    top:23px;
    position: absolute;
    background-color: #dc3545; /* Bootstrap的danger红色 */
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: badge-pulse 2s infinite;
    transition: all 0.3s ease;
}

    .task-badge:empty {
        display: none;
    }

/* 脉冲动画 */
@keyframes badge-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* 当数字较大时的样式 */
.task-badge.large-number {
    padding: 2px 4px;
    border-radius: 10px;
    min-width: 20px;
}

/* 悬停效果 */
.nav-link:hover .task-badge {
    transform: scale(1.1);
}

/* 不同状态的颜色变化（可选） */
.task-badge.warning {
    background-color: #ffc107;
    color: #212529;
}

.task-badge.success {
    background-color: #28a745;
}

.task-badge.info {
    background-color: #17a2b8;
}
/* 针对任务编号的h5标签 */
.task-item h5 {
    word-break: break-all; /* 强制在单词内换行（适合纯字母/数字） */
    overflow-wrap: break-word; /* 允许在长单词内换行 */
    max-width: 100%; /* 限制最大宽度为父容器宽度 */
    white-space: normal; /* 取消强制不换行（默认值，可省略） */
}
/* 响应式解决方案（可选） */
@media (max-width: 576px) {
    .btn {
        min-height: 2.5em;
        white-space: normal;
        line-height: 1.2;
    }
    .photo-item {
        width: 45% !important; /* 确保移动端图片宽度100% */
       
    }

    .photo-image img {
        width: 100% !important;
        height: auto !important;
    }
    .gallery-item {
        width: 45% !important;
    }
}
/*图片编辑*/
@layer utilities {
    .imgEdit-content-auto {
        content-visibility: auto;
    }

    .imgEdit-editor-shadow {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .imgEdit-transition-all-300 {
        transition: all 0.3s ease;
    }

    .imgEdit-bg-grid {
        background-image: linear-gradient(#f0f0f0 1px, transparent 1px), linear-gradient(90deg, #f0f0f0 1px, transparent 1px);
        background-size: 20px 20px;
    }

    .imgEdit-dashed-border {
        border-right: 2px dashed #e5e7eb;
    }

    @screen md {
        .imgEdit-dashed-border-mobile {
            border-right: none;
            border-bottom: 2px dashed #e5e7eb;
        }
    }
}

.toolsHref {
    cursor: pointer!important;
}
@media (max-width: 767.98px) {
    .modal-fullscreen-md-down {
 height:auto!important;
        }
}

.pagination .disabled .page-link {
    background-color: #0d6efd !important;
    color: white;
}
/* 视频标识样式 */
.video-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

    .video-indicator:hover {
        opacity: 1;
    }

.play-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

    .play-button:hover {
        transform: scale(1.05);
    }

    .play-button i.mdi-play {
        color: #ff4081; /* 使用鲜明的颜色突出播放按钮 */
        margin-top: 2px; /* 微调播放图标位置，使其居中 */
    }
.disabledBT {
    background-color: #666 !important; /* 浅灰色 */
    color: #9CA3AF!important; /* 灰色文字 */
    border: 1px solid #666;
    cursor: not-allowed;
    opacity: 0.8;
}
.activeBT {
    background-color: #4F46E5 !important; /* 使用你的主色调 */
    color: white;
    border: 1px solid #4F46E5;
    cursor: pointer;
}
/* 确保模态框整体在视口内 */
.modal-dialog {
    max-height: 90vh !important; /* 最大高度不超过窗口90% */
  
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
    overflow-y: auto; /* 内容超出时允许滚动 */
}

/* 修复模态框内容区域溢出 */
.modal-content {
    max-height: calc(90vh - 40px); /* 内容区最大高度（减去边距） */
    display: flex;
    flex-direction: column;
}

/* 模态框body区域限制 */
.modal-body {
    flex: 1;
    overflow: hidden; /* 防止内部内容直接溢出 */
    position: relative;
}

    /* 模态框按钮样式 */
    .modal-body .position-relative {
        position: relative;
    }

.modal-actions-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-body:hover .modal-actions-container {
    opacity: 1;
    pointer-events: auto;
}
.modal-action-btn {
    background-color: rgba(0, 0, 0, 0.6); /* 半透明黑底 */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    font-size: 12px;
    white-space: nowrap
}

    .modal-action-btn:hover {
        background-color: rgba(0, 0, 0, 0.8);
        color: white;
    }

    .modal-action-btn i {
        font-size: 18px;
    }
/* 移动端专用适配（屏幕宽度<768px） */
@media (max-width: 768px) {
    .modal-dialog {
        width: 98vw !important;
        max-width: 98vw !important;
        max-height: 95vh !important; /* 增加模态框总高度，多留按钮空间 */
        padding: 5px !important;
        margin: 0 auto !important;
    }

    .modal-content {
        max-height: calc(95vh - 10px) !important; /* 匹配模态框高度，减少内边距挤压 */
        border-radius: 8px;
        display: flex !important;
        flex-direction: column !important; /* 垂直布局，让内容和按钮按顺序排列 */
    }

    .modal-body {
        padding: 5px !important;
        margin: 0 !important;
        flex: 1 !important; /* 让body占满剩余高度，但不挤压按钮 */
        overflow-y: auto !important; /* 内容过多时可滚动，避免按钮被挤掉 */
    }

    /* 图片容器：关键是限制最大高度，预留按钮空间 */
    .image-container {
        width: 100% !important; /* 解决居中问题：占满模态框宽度 */
        max-height: calc(95vh - 180px) !important; /* 核心：预留180px给头部+按钮 */
        /*height: auto !important;*/ /* 自适应图片尺寸，不强制占满 */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        margin: 0 auto 10px !important; /* 底部留10px间距，分隔图片和按钮 */
    }

    /* 按钮区域：确保显示，不被挤压 */
    .action-buttons {
        width: 100% !important;
        margin: 0 !important;
        padding: 5px 0 !important;
        min-height: 120px !important; /* 给按钮区域固定最小高度，防止被压缩 */
        min-width:180px;
    }

        .action-buttons table {
            width: 100% !important;
            table-layout: fixed !important;
            margin: 0 auto !important;
        }

        .action-buttons .btn {
            padding: 8px 10px !important; /* 保持按钮可点击尺寸，不缩小到看不见 */
            font-size: 13px !important;
            white-space: nowrap !important; /* 防止按钮文字换行 */
        }
}
.photo-item .hidden-item {
    position: absolute; /* 脱离文档流，不占位 */
    opacity: 0;
    pointer-events: none; /* 不响应交互 */
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.photo-item .loaded {
    position: relative; /* 回到文档流，正常占位 */
    opacity: 1;
    pointer-events: auto; /* 恢复交互 */
}
.photo-item.temp-hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
}
/* 加载完成后：正常显示 */
.photo-item {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.1s ease, transform 0.1s ease; /* 过渡动画 */
}
/* 图片加载骨架屏样式 - 修复动画不显示问题 */
.photo-skeleton {
    width: 100%;
    min-height: 150px; /* 确保有最小高度，避免不显示 */
    background: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    border-radius: 4px;
    display: block;
    position: relative;
    z-index: 1;
    overflow: hidden; /* 确保内部元素不溢出 */
}

/* 骨架屏动画关键帧 - 确保动画完整 */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}
/* 加载失败容器样式 */
.skeleton-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f8f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3; /* 错误提示显示在最上方 */
}
/* 回到顶部按钮 */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
    z-index: 1000;
}

    .back-to-top-btn.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top-btn:hover {
        background-color: #2980b9;
        transform: translateY(-3px);
    }

    .back-to-top-btn:active {
        transform: translateY(0);
    }


/*收藏弹出框样式*/
#styleModal .modal-dialog {
    width: 96%;
    height: 96%;
    margin: 2vh auto;
    max-width: none;
}

#styleModal .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#styleModal .modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

/* 标签容器样式 - 带箭头滚动 */
#styleModal .category-tabs {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    z-index: 10;
    position: relative;
    display: flex;
    align-items: center;
}
#styleModal .category-tab:hover {
    background-color: #0d6efd !important; /* 使用选中状态的颜色 */
    border-color: #0d6efd;
    color:aliceblue;
    transform: scale(1.05); /* 轻微放大效果 */
}
/* 箭头按钮样式 - 增强悬停效果 */
#styleModal .scroll-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease; /* 延长过渡时间增强动画感 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

    #styleModal .scroll-arrow:hover {
        background-color: #0d6efd ; /* 使用选中状态的颜色 */
        border-color: #0d6efd;
        transform: scale(1.05); /* 轻微放大效果 */
        box-shadow: 0 3px 8px rgba(13, 110, 253, 0.2);
    }

    #styleModal .scroll-arrow.left {
        margin-right: 12px;
    }

    #styleModal .scroll-arrow.right {
        margin-left: 12px;
    }

    #styleModal .scroll-arrow i {
        color: #666;
        font-size: 18px;
        transition: color 0.3s ease; /* 图标颜色过渡 */
    }

    #styleModal .scroll-arrow:hover i {
        color: white; /* 悬停时图标变白 */
    }

/* 标签滚动容器 - 添加滚动动画 */
#styleModal .tabs-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

#styleModal .tabs-container {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    scroll-behavior: smooth; /* 平滑滚动动画 */
}

    #styleModal .tabs-container::-webkit-scrollbar {
        display: none; /* 隐藏原生滚动条 */
    }

/* 标签样式 */
#styleModal .category-tab {
    background-color: #f5f5f5;
    color: #333;
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-right: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
}

    #styleModal .category-tab.active {
        background-color: #0d6efd;
        color: white;
        font-weight: 500;
    }

    #styleModal .category-tab:hover:not(.active) {
        background-color: #e9ecef;
    }

/* 图片容器 */
#styleModal .modal-gallery-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    box-sizing: border-box;
}

/* 图片项样式 */
#styleModal .modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    box-sizing: border-box;
}

#styleModal .style-item {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    aspect-ratio: 3/4;
    box-sizing: border-box;
}

    #styleModal .style-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    #styleModal .style-item.selected {
        border-color: #0d6efd;
        box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.3);
    }

        #styleModal .style-item.selected::after {
            content: "✓";
            position: absolute;
            bottom: 6px;
            right: 6px;
            background-color: #0d6efd;
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

/* 分页容器 */
#styleModal .pagination-container {
    padding: 12px 16px;
    border-top: 1px solid #eee;
}

/* 响应式调整 */
@media (min-width: 768px) {
    #styleModal .modal-gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (min-width: 992px) {
    #styleModal .modal-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    #styleModal .category-tab {
        padding: 5px 12px;
        font-size: 0.85rem;
    }

    #styleModal .scroll-arrow {
        width: 32px;
        height: 32px;
    }
}