/* 图表资源选择页面样式 */
.gallery-container {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* 通知栏样式 */
.gallery-notification {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e7f0fd 0%, #d9e7ff 100%);
    border-left: 4px solid #4361ee;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.1);
    animation: notification-pulse 2s infinite alternate;
}

.notification-icon {
    font-size: 1.8rem;
    color: #4361ee;
    margin-right: 15px;
    flex-shrink: 0;
}

.notification-content {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
}

.notification-content strong {
    color: #4361ee;
    font-weight: 600;
}

@keyframes notification-pulse {
    0% {
        box-shadow: 0 2px 10px rgba(67, 97, 238, 0.1);
    }
    100% {
        box-shadow: 0 4px 15px rgba(67, 97, 238, 0.25);
    }
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.gallery-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* 添加搜索容器样式 */
.gallery-search-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: none;
}

/* 添加左边距类 */
.ml-2 {
    margin-left: 8px;
}

.gallery-view-toggle {
    display: flex;
    border: 1px solid #e0e7ff;
    border-radius: 6px;
    overflow: hidden;
}

.gallery-view-btn {
    padding: 8px 12px;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.2s;
}

.gallery-view-btn:hover {
    background: #f8f9fa;
}

.gallery-view-btn.active {
    background: #e0e7ff;
    color: #4361ee;
    font-weight: 500;
}

.gallery-search {
    position: relative;
    flex: 1 1 auto;
}

.gallery-search input {
    width: 80%;
    min-width: 120px;
    padding: 8px 12px 8px 36px;
    border: 1px solid #e0e7ff;
    border-radius: 6px;
    font-size: 0.9rem;
}

.gallery-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* 统一网格 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 面包屑导航 */
.gallery-breadcrumb {
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 8px 15px;
}

.gallery-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.gallery-breadcrumb li {
    display: flex;
    align-items: center;
}

.gallery-breadcrumb li:not(:first-child)::before {
    content: "/";
    padding: 0 8px;
    color: #6c757d;
}

.gallery-breadcrumb a {
    color: #4361ee;
    text-decoration: none;
}

.gallery-breadcrumb a:hover {
    text-decoration: underline;
}

.gallery-breadcrumb .active {
    color: #6c757d;
}

/* 美化文件夹项 */
.folder-item {
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.05);
}

.folder-item:hover {
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.15);
    transform: translateY(-3px);
}

.folder-item.selected {
    border: 2px solid #4361ee;
    background: linear-gradient(135deg, #f0f4ff 0%, #e7eafc 100%);
}

.folder-item .folder-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    transform: scale(1.2);
}

/* 移除文件夹图标和名称的点击事件样式，让整个卡片可点击 */
.folder-icon, .folder-name {
    pointer-events: none;
}

.folder-icon {
    font-size: 2.8rem;
    color: #4361ee;
    margin-bottom: 15px;
    text-align: center;
    filter: drop-shadow(0 2px 5px rgba(67, 97, 238, 0.2));
    transition: all 0.3s;
}

.folder-item:hover .folder-icon {
    transform: scale(1.1);
    color: #5a73f0;
}

.folder-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.folder-count {
    font-size: 0.85rem;
    color: #6c757d;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 12px;
    padding: 2px 8px;
    margin-top: 5px;
}

/* 返回上一级按钮 */
.back-folder {
    background: linear-gradient(135deg, #f8faff 0%, #edf2ff 100%);
    border: 1px dashed #c0c9ff;
}

.back-folder .folder-icon {
    color: #6c757d;
}

.back-folder:hover {
    background: linear-gradient(135deg, #edf2ff 0%, #e0e7ff 100%);
}

/* 图片卡片 */
.image-card {
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.05);
}

.image-card:hover {
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.15);
    transform: translateY(-3px);
}

.image-card.selected {
    border: 2px solid #4361ee;
}

.image-card .image-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    transform: scale(1.2);
}

.image-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background-color: #f8f9fa;
    transition: all 0.3s;
}

.image-card:hover .image-thumb {
    transform: scale(1.03);
}

.image-info {
    padding: 12px;
    background-color: #fff;
}

.image-title {
    font-weight: 500;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.image-desc {
    font-size: 0.8rem;
    color: #6c757d;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 分页控件 */
.gallery-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.gallery-pagination .pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
}

.gallery-pagination .page-item {
    margin: 0 3px;
}

.gallery-pagination .page-item:first-child .page-link {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.gallery-pagination .page-item:last-child .page-link {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.gallery-pagination .page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #4361ee;
    background-color: #fff;
    border: 1px solid #e0e7ff;
    transition: all 0.2s;
    min-width: 38px;
    text-align: center;
}

.gallery-pagination .page-link:hover {
    z-index: 2;
    color: #4361ee;
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.gallery-pagination .page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #4361ee;
    border-color: #4361ee;
}

.gallery-pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    background-color: #fff;
    border-color: #dee2e6;
}

.gallery-pagination-info {
    text-align: center;
    color: #6c757d;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* 已选择项目展示区域 */
.selected-items {
    margin-top: 30px;
    border-top: 1px solid #e0e7ff;
    padding-top: 20px;
    background: #f8faff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.04);
    display: block;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 显示已选择项目容器 */
.selected-items.visible .selected-items-grid {
    max-height: 2000px; /* 足够大的高度以容纳内容 */
    opacity: 1;
    transition: all 0.5s ease-in;
}

/* 折叠状态 */
.selected-items:not(.visible) .selected-items-grid {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease-out;
}

/* 折叠按钮旋转动画 */
.selected-items.visible #btnToggleSelection i {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.selected-items:not(.visible) #btnToggleSelection i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.selected-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e0e7ff;
    cursor: pointer;
}

.selected-items-title {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.selected-count {
    background-color: #4361ee;
    color: white;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.85rem;
}

.selected-items-actions {
    display: flex;
    gap: 10px;
}

.selected-items-actions button {
    min-width: 90px;
}

.selected-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.selected-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e7ff;
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.08);
    background: #fff;
    transition: all 0.2s;
}

.selected-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.12);
}

.selected-item-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
}

.selected-item-info {
    padding: 8px;
    background-color: #f8f9fa;
    text-align: center;
}

.selected-item-name {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.selected-item-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #dc3545;
    transition: all 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.selected-item-remove:hover {
    background-color: #ffeaea;
    color: #bd2130;
    transform: scale(1.1);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px dashed #dee2e6;
}

.empty-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #adb5bd;
}

.empty-text {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.empty-subtext {
    font-size: 0.95rem;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 40px 20px;
}

/* 美化的加载动画 */
.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    position: relative;
}

.loading-spinner:before,
.loading-spinner:after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation-duration: 1.8s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    filter: drop-shadow(0 0 10px rgba(67, 97, 238, 0.2));
}

.loading-spinner:before {
    width: 100%;
    height: 100%;
    background-color: rgba(67, 97, 238, 0.7);
    animation-name: pulse-spinner;
    top: 0;
    left: 0;
}

.loading-spinner:after {
    width: 60%;
    height: 60%;
    background-color: #ffffff;
    top: 20%;
    left: 20%;
    animation-name: pulse-spinner-inner;
}

@keyframes pulse-spinner {
    0%, 100% {
        transform: scale(0.5);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse-spinner-inner {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.8);
    }
}

.loading-text {
    color: #4361ee;
    font-weight: 500;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(67, 97, 238, 0.1);
    animation: fade-in-out 1.5s infinite alternate;
}

@keyframes fade-in-out {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    .selected-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .gallery-search {
        width: 100%;
    }
    .gallery-search-container {
        width: 100%;
    }
    .gallery-actions {
        width: 100%;
        justify-content: space-between;
    }
    .gallery-view-toggle {
        flex-grow: 0;
    }
    .btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    /* 修复已选择项目区域按钮尺寸 */
    .selected-items-header {
        flex-wrap: nowrap;
    }
    
    .selected-items-title {
        font-size: 0.95rem;
        white-space: nowrap;
        color: #6366f1;
        font-weight: 500;
    }
    
    .selected-count {
        padding: 2px 8px;
        font-size: 0.8rem;
        background-color: #6366f1;
        border-radius: 50%;
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin-left: 5px;
    }
    
    .selected-items-actions {
        gap: 6px;
        display: flex;
        align-items: center;
    }
    
    .selected-items-actions button {
        min-width: unset;
        padding: 6px;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 确保折叠按钮和清空选择按钮大小合适 */
    #btnToggleSelection {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid #e0e7ff;
        background-color: #fff;
    }
    
    #btnClearSelection {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px 12px;
        white-space: nowrap;
        background-color: #fff;
        border: 1px solid #e0e7ff;
    }
    
    .gallery-notification {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }
    
    .notification-icon {
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    .notification-content {
        font-size: 0.9rem;
    }
    
    @media (max-width: 480px) {
        .gallery-search-container {
            flex-direction: column;
            align-items: stretch;
        }
        
        #btnSearch {
            margin-top: 8px;
        }
        
        .gallery-view-toggle {
            width: 100%;
        }
        
        .gallery-view-btn {
            flex: 1;
            justify-content: center;
        }
        
        #btnViewSelection {
            width: 100%;
            margin-top: 8px;
        }
        
        /* 进一步优化小屏幕下的按钮 */
        .selected-items-actions {
            gap: 4px;
        }
        
        #btnClearSelection {
            font-size: 0.8rem;
            padding: 5px 8px;
        }
        
        #btnToggleSelection {
            width: 28px;
            height: 28px;
        }
    }
}

/* 添加新的移动端样式，优化为两列显示 */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .selected-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .folder-item {
        padding: 15px 10px;
    }
    
    .folder-icon {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    
    .folder-name {
        font-size: 0.9rem;
    }
    
    .image-card {
        border-radius: 8px;
    }
    
    .image-thumb {
        height: 100px;
    }
    
    .image-title {
        font-size: 0.85rem;
        margin-top: 6px;
    }
    
    .image-info {
        padding: 8px 6px;
    }
    
    /* 在600px断点下进一步优化已选择项目区域的按钮 */
    .selected-items-header {
        padding-bottom: 6px;
        margin-bottom: 10px;
    }
    
    .selected-items-title {
        font-size: 0.95rem;
        display: flex;
        align-items: center;
    }
    
    .selected-count {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
        margin-left: 5px;
    }
    
    .selected-items-actions {
        gap: 8px;
    }
    
    #btnClearSelection {
        font-size: 0.8rem;
        padding: 6px 10px;
        height: 32px;
        background-color: #fff;
        color: #333;
        border: 1px solid #e0e7ff;
        border-radius: 4px;
    }
    
    #btnClearSelection i {
        margin-right: 4px;
    }
    
    #btnToggleSelection {
        width: 32px;
        height: 32px;
        background-color: #fff;
        color: #333;
        border: 1px solid #e0e7ff;
        border-radius: 4px;
    }
    
    /* 确保按钮内的图标居中显示 */
    .selected-items-actions button i {
        font-size: 0.85rem;
    }
}

/* 小屏幕手机优化 */
@media (max-width: 375px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .folder-item {
        padding: 12px 8px;
    }
    
    .folder-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .folder-name {
        font-size: 0.8rem;
    }
    
    /* 超小屏幕下的已选择项目区域优化 */
    .selected-items-header {
        flex-wrap: nowrap;
        gap: 0;
    }
    
    .selected-items-title {
        font-size: 0.9rem;
        flex: 1;
        white-space: nowrap;
    }
    
    .selected-items-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    #btnClearSelection {
        padding: 6px 8px;
        font-size: 0.75rem;
        height: 32px;
    }
    
    #btnToggleSelection {
        width: 32px;
        height: 32px;
    }
    
    .selected-items-actions button i {
        font-size: 0.8rem;
    }
    
    .selected-count {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }
}

/* 优化预览弹窗 */
.gallery-modal-backdrop {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(67,97,238,0.12);
    z-index: 9998;
    animation: fadeIn 0.2s;
}
.gallery-modal {
    position: fixed;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(67,97,238,0.18);
    z-index: 9999;
    max-width: 90vw;
    max-height: 90vh;
    padding: 0;
    overflow: hidden;
    animation: fadeIn 0.2s;
}
.gallery-modal-img {
    max-width: 80vw;
    max-height: 60vh;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    background: #f8f9fa;
}
.gallery-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 8px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #f8faff;
}
.gallery-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4361ee;
}
.gallery-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}
.gallery-modal-close:hover {
    color: #dc3545;
}
.gallery-modal-body {
    padding: 18px 20px 20px 20px;
    text-align: center;
}
.gallery-modal-desc {
    margin-top: 12px;
    color: #555;
    font-size: 1rem;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 加载更多按钮 */
.gallery-loadmore {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 15px;
    margin: 20px auto;
    width: 100%;
    max-width: 300px;
    cursor: pointer;
    transition: all 0.2s;
    color: #4361ee;
    font-weight: 500;
    gap: 8px;
}

.gallery-loadmore:hover {
    background: #f0f4ff;
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.gallery-loadmore.loading {
    pointer-events: none;
    opacity: 0.7;
    background: #f0f4ff;
    animation: pulse-button 1.5s infinite;
}

.loading-spinner-small {
    width: 20px;
    height: 20px;
    position: relative;
    display: inline-block;
}

.loading-spinner-small:before,
.loading-spinner-small:after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: pulse-spinner-small 1.8s linear infinite;
}

.loading-spinner-small:before {
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.2);
    animation-delay: -0.9s;
}

.loading-spinner-small:after {
    width: 75%;
    height: 75%;
    background: rgba(99, 102, 241, 0.6);
    top: 12.5%;
    left: 12.5%;
    animation-delay: 0s;
}

@keyframes pulse-spinner-small {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes pulse-spinner-inner-small {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse-button {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.9;
    }
    100% {
        opacity: 0.7;
    }
}

.gallery-loadmore .fa-spinner {
    animation: spin 1s linear infinite;
}

.selected-item.folder {
    border: 1px solid #e0e7ff;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
}

.folder-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4ff;
    color: #4361ee;
    font-size: 2.2rem;
    height: 80px;
}

.folder-preview i {
    filter: drop-shadow(0 2px 5px rgba(67, 97, 238, 0.2));
}

.selected-item.folder:hover .folder-preview i {
    transform: scale(1.1);
    transition: transform 0.3s;
}

/* 文件夹元数据样式 */
.folder-meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.folder-meta .folder-count,
.folder-meta .image-count,
.folder-meta .empty-folder {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.folder-meta .folder-count {
    background-color: #e0f2fe;
    color: #0284c7;
}

.folder-meta .image-count {
    background-color: #f0fdf4;
    color: #16a34a;
}

.folder-meta .empty-folder {
    background-color: #f1f5f9;
    color: #64748b;
}

.folder-info {
    flex: 1;
    overflow: hidden;
}

/* 选择按钮样式 */
.select-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    opacity: 0.9;
}

.select-btn:hover {
    background-color: #f5f5f5;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    opacity: 1;
}

.select-btn.selected {
    background-color: #4CAF50;
    border-color: #43A047;
    color: white;
}

.select-btn.selected:hover {
    background-color: #388E3C;
}

.select-btn i {
    font-size: 15px;
}

/* 图片卡片相对定位，以便放置选择按钮 */
.image-card {
    position: relative;
}

/* 美化图片卡片样式 */
.image-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.image-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* 添加图片选中状态的样式 */
.image-card.selected {
    box-shadow: 0 0 0 2px #4CAF50, 0 5px 15px rgba(0,0,0,0.1);
}

/* 移动端样式适配 */
@media (max-width: 768px) {
    .select-btn {
        top: 8px;
        right: 8px;
        padding: 3px 8px;
        font-size: 12px;
    }
    
    .select-btn i {
        font-size: 12px;
    }
    
    .select-btn span {
        display: none; /* 移动端只显示图标 */
    }
} 