/**
 * 文件列表模态窗口样式（视频/图片预览内切换文件，自 style.css 迁入）
 */

.file-list-modal {
    max-width: 600px;
    max-height: 70vh;
    padding: 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-primary);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--bg-hover);
    border-bottom: 2px solid var(--border-primary);
    flex-shrink: 0;
}

.file-list-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

.file-list-close {
    position: static;
    width: 32px;
    height: 32px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.file-list-close:hover {
    color: #ff6b6b;
    background: var(--bg-tertiary);
    transform: scale(1.1);
}

.file-list-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
}

.file-list-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-list-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.file-list-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-accent);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.file-list-item.active {
    background: var(--gradient-primary);
    border-color: var(--text-accent);
    box-shadow: var(--shadow-md);
}

.file-list-item.active .file-list-name {
    color: var(--text-primary);
    font-weight: 600;
}

.file-list-empty {
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px dashed var(--border-secondary);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

.file-list-icon {
    margin-right: 8px;
    font-size: 16px;
    flex-shrink: 0;
}

.file-list-name {
    flex: 1;
    font-size: 12px;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    color: var(--text-primary);
    word-break: break-all;
    line-height: 1.3;
}

.file-list-content::-webkit-scrollbar {
    width: 8px;
}

.file-list-content::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.file-list-content::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
    border: 1px solid var(--border-primary);
}

.file-list-content::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
}
