/* 全局样式重置 */
* {
    box-sizing: border-box;
}

/* 紧凑列表布局 */
#fileList {
    padding: 0;
    margin: 0;
}

/* 文件/文件夹项目样式 */
.fv-item {
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background-color: #ffffff;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
	
}

/* 悬停效果 */
.fv-item:hover {
    background-color: #f8fafc;
    transform: translateX(2px);
}

/* 文件名称样式 */
.fv-name {
    /* font-weight: 600; */
    color: #1e293b;
    font-size: 1.25rem;
    display: inline;
    line-height: 1.4;
    margin-right: 1.5rem;
}

/* 次要文本样式（修改时间） */
.fv-secondary-text {
    font-size: 1rem;
    color: #64748b;
    margin-left: 1.5rem;
    font-style: italic;
    display: inline;
    margin-top: 0;
    line-height: 1.5;
}

/* 下载链接样式 */
.fv-download-link {
    margin-left: 1.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: inline;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    background-color: #eff6ff;
    transition: all 0.2s ease;
    margin-top: 0;
    width: auto;
}

/* 下载链接悬停效果 */
.fv-download-link:hover {
    text-decoration: none;
    background-color: #dbeafe;
    color: #2563eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 头部内容样式 */
.fv-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

/* 路径链接样式 */
.fv-path-link {
    color: #3b82f6;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.2s ease;
    padding: 0.375rem 0.125rem;
    border-radius: 0.375rem;
}

.fv-path-link:hover {
    text-decoration: none;
    background-color: #eff6ff;
    color: #2563eb;
}

/* 排序按钮容器 */
.fv-sort-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* 排序按钮样式 */
.fv-sort-btn {
    padding: 0.75rem 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 排序按钮悬停效果 */
.fv-sort-btn:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* 激活的排序按钮样式 */
.fv-sort-btn.active {
    background-color: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .fv-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .fv-sort-buttons {
        justify-content: center;
    }
    
    .fv-secondary-text {
        display: none;
    }
    
    .fv-item {
        padding: 0.5rem 0.75rem;
    }
    
    .fv-name {
        font-size: 0.95rem;
    }
}

/* 加载动画 */
.fv-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    font-size: 1.125rem;
    color: #64748b;
}

.fv-loading::after {
    content: "";
    width: 24px;
    height: 24px;
    margin-left: 0.75rem;
    border: 2px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 空目录提示 */
.fv-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
    font-size: 1.125rem;
}

.fv-empty::before {
    content: "📁";
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 响应式路径显示 */
.fv-list-item {
	color: #3b82f6;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.6;
    word-break: break-all;
}

/* 确保列表项最后一项没有边框 */
.fv-item:last-child {
    border-bottom: none;
}

/* 文件夹emoji颜色 */
.fv-item [class*="📁"] {
    color: #f59e0b;
}

/* 文件emoji颜色 */
.fv-item [class*="📄"] {
    color: #3b82f6;
}

/* 文件夹emoji悬停效果 */
.fv-item:hover [class*="📁"] {
    color: #3b82f6;
}

/* 文件emoji悬停效果 */
.fv-item:hover [class*="📄"] {
    color: #2563eb;
}
