* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.navbar .btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.navbar .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 批量操作栏 */
.batch-actions {
    margin-bottom: 20px;
}

.batch-actions > div {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.batch-actions span {
    color: var(--text-primary);
    font-size: 14px;
}

.batch-actions strong {
    color: var(--primary-color);
    font-weight: 700;
}

.batch-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* 项目卡片 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.project-card h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-card h3::before {
    content: '📁';
    font-size: 24px;
}

.project-card .note {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
    min-height: 32px;
}

.project-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.project-card .meta span:first-child {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.project-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card-checkbox {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.project-card-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.project-card-content {
    flex: 1;
    cursor: pointer;
    padding-right: 40px; /* 为复选框留出空间 */
}

.project-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.project-card-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
}

.btn-edit {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}

/* 按钮 */
.btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, var(--success-color));
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, var(--danger-color));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--text-secondary), var(--text-tertiary));
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--text-tertiary), var(--text-secondary));
}

/* 表单 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

/* 卡片区域 */
.section-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.section-card:hover {
    box-shadow: var(--shadow-xl);
}

.section-card h2 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) 1;
}

/* 可折叠标题 */
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.collapsible-header:hover {
    opacity: 0.8;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-md);
    padding: 4px 8px;
    margin: -4px -8px;
}

.collapse-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 8px;
}

/* 可折叠内容 */
.collapsible-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.collapsible-content.show {
    max-height: 5000px;
    opacity: 1;
}

.section-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 统计图表 */
.chart-container {
    height: 350px;
    margin: 12px 0;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
    opacity: 0.92;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    opacity: 1;
}

.back-to-top:active {
    transform: translateY(0);
}

/* 类别标签 */
.category-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: var(--text-primary);
    border-radius: 20px;
    margin: 4px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.category-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-tag .delete-btn {
    margin-left: 10px;
    color: var(--danger-color);
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
}

.category-tag .delete-btn:hover {
    color: #dc2626;
    transform: scale(1.2);
}

/* 文件夹列表 */
.folder-list {
    list-style: none;
    margin: 12px 0;
}

.folder-item {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 8px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.folder-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.folder-item .path {
    flex: 1;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    word-break: break-all;
}

.folder-item .actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 图片网格 */
.images-grid {
    display: grid;
    gap: 16px;
    margin: 16px 0;
}

/* 很小尺寸：每行8-10个 */
.images-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

/* 小尺寸：每行6-8个 */
.images-grid-medium {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* 中等尺寸：每行4-5个（默认） */
.images-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* 大尺寸：每行2-3个 */
.images-grid-xlarge {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* 超大尺寸：每行1-2个 */
.images-grid-xxlarge {
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
}

.image-item {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: border 0.3s ease;
    border: 2px solid transparent;
}

.image-item.selected {
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), var(--shadow-lg);
}

.image-item .image-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.image-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* 图片上的类别标签 */
.image-category-overlay {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    z-index: 5;
    pointer-events: none;
}

.image-item .checkbox {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
    accent-color: var(--primary-color);
}

/* 图片网格：每行最右侧“全选本行/取消本行”按钮（JS 挂在该行最右侧图片上） */
.image-item .select-row-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 11;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(30, 41, 59, 0.55);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
    opacity: 0.92;
    user-select: none;
}

.image-item .select-row-btn:hover {
    background: rgba(30, 41, 59, 0.75);
    transform: translateY(calc(-50% - 1px));
    opacity: 1;
}

.image-item.selected .select-row-btn {
    background: rgba(99, 102, 241, 0.85);
    border-color: rgba(255, 255, 255, 0.85);
}

.image-item .filename {
    display: none;
}

/* 分页控制 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.pagination input {
    width: 70px;
    text-align: center;
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
}

.pagination input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-primary);
    margin: 8% auto;
    padding: 0;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.modal-header h3 {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
}

.close {
    color: var(--text-tertiary);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
    transform: rotate(90deg);
}

.modal form {
    padding: 32px;
}

/* 图片预览模态框 */
.image-preview-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.image-preview-content {
    position: relative;
    margin: auto;
    padding: 40px;
    width: 95%;
    height: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-preview-content img {
    max-width: 100%;
    max-height: 85%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.image-preview-info {
    color: white;
    margin-top: 24px;
    text-align: center;
}

.image-preview-info select {
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.image-preview-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.image-preview-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

/* 筛选历史 */
.filter-history {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.filter-history-item {
    display: inline-block;
    padding: 8px 14px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* 消息提示 */
.message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 20px;
    margin: 0;
    border-radius: var(--radius-md);
    display: none;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.3s ease;
    z-index: 1000;
    min-width: 200px;
    max-width: 400px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message.success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 1px solid #10b981;
}

.message.error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: 1px solid #ef4444;
}

.message.info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.message.show {
    display: block;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* 图片大小按钮 */
.btn-size {
    padding: 8px 20px;
    font-size: 13px;
    min-width: 60px;
    font-weight: 600;
}

.btn-size.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-size:not(.active) {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-size:not(.active):hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .section-card > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .navbar {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .navbar h1 {
        font-size: 24px;
    }
    
    .navbar > div {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar > div .btn {
        width: 100%;
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .section-card {
        padding: 24px 20px;
    }
    
    .section-card > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .images-grid-small {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .images-grid-medium {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .images-grid-large {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .images-grid-xlarge {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .images-grid-xxlarge {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state::before {
    content: '📂';
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 文件列表表格 */
.file-list-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.file-list-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
}

.file-list-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.file-list-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.file-list-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-primary);
}

.file-list-table tbody tr {
    transition: background-color 0.2s ease;
}

.file-list-table tbody tr:hover {
    background-color: var(--bg-secondary);
}

.file-list-table .file-path {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-list-table .file-name {
    font-weight: 500;
    color: var(--text-primary);
    display: block;
}

.file-list-table .file-full-path {
    font-size: 11px;
    color: var(--text-tertiary);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    margin-top: 4px;
    word-break: break-all;
}

.file-list-table .category-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: var(--text-primary);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.file-list-table .category-badge.no-category {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    border-color: var(--border-color);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--secondary-color));
}
