/* 基础样式 */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --sidebar-color: #f8f9fa;
    --text-color: #333;
    --light-text: #666;
    --border-color: #ddd;
    --hover-bg: #e9ecef;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-color);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.sidebar h2 {
    padding: 0 20px 15px;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.sidebar h2 i {
    margin-right: 8px;
}

/* 文件夹树样式 */
.folder-tree ul {
    list-style: none;
    padding-left: 20px;
}

.folder-tree > ul {
    padding-left: 0;
}

.folder-tree li {
    margin: 5px 0;
}

.folder-tree a {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.folder-tree a:hover {
    background-color: var(--hover-bg);
}

.folder-tree li.active > a {
    background-color: var(--primary-color);
    color: white;
}

.folder-tree a i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* 主内容区样式 */
.content {
    flex: 1;
    padding: 30px;
    background-color: white;
}

.content h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.content h1 i {
    margin-right: 10px;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 15px;
    background-color: var(--hover-bg);
    border-radius: 4px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

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

/* 文件列表样式 */
.file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.file-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.folder, .file {
    display: flex;
    align-items: center;
    padding: 15px;
    color: var(--text-color);
    text-decoration: none;
}

.folder {
    color: var(--primary-color);
}

.folder i, .file i {
    margin-right: 12px;
    font-size: 1.2rem;
}

.file {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.file-actions {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
    justify-content: space-between;
}

.file-size {
    font-size: 0.85rem;
    color: var(--light-text);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background-color: var(--secondary-color);
}

.download-btn i {
    margin-right: 5px;
    font-size: 0.8rem;
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--light-text);
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .file-list {
        grid-template-columns: 1fr;
    }
}