/* 主题颜色变量 */
:root {
    /* 默认主题 - 蓝色 */
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --primary-light: #4aa3df;
    --navbar-bg: #2c3e50;
    --sidebar-bg: #f8f9fa;
    --sidebar-hover: rgba(52, 152, 219, 0.1);
    --sidebar-active: rgba(52, 152, 219, 0.2);
    --footer-bg: #34495e;
}

/* 复选框样式 */
.file-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.file-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.file-dropdown {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
}

.dropdown-btn {
    width: 20px;
    height: 20px;
    border: none;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0;
}

.dropdown-btn:hover {
    background-color: rgba(240, 240, 240, 0.8);
}

.file-item:hover .dropdown-btn {
    opacity: 1;
}

.file-item:hover .file-checkbox {
    opacity: 1;
}

.file-item.selected .dropdown-btn {
    opacity: 1;
}

.file-item.selected .file-checkbox {
    opacity: 1;
}

/* 当有文件被选择时，显示所有文件的选择框和下拉按钮 */
body.has-selected-files .file-item .dropdown-btn {
    opacity: 1;
}

body.has-selected-files .file-item .file-checkbox {
    opacity: 1;
}

.file-dropdown-menu {
    position: fixed;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    z-index: 10000;
    min-width: 120px;
}

.dropdown-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease;
}

.dropdown-menu-item:hover {
    background-color: #f8f9fa;
}

/* 文件项样式调整 */
.file-item {
    position: relative;
}

/* 黑色主题 */
[data-theme="black"] {
    --primary-color: #34495e;
    --primary-dark: #2c3e50;
    --primary-light: #4a637a;
    --navbar-bg: #1a1a1a;
    --sidebar-bg: #2c2c2c;
    --sidebar-hover: rgba(52, 73, 94, 0.1);
    --sidebar-active: rgba(52, 73, 94, 0.2);
    --footer-bg: #1a1a1a;
    --text-color: #e0e0e0;
}

/* 白色主题 */
[data-theme="white"] {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --primary-light: #4aa3df;
    --navbar-bg: #ffffff;
    --sidebar-bg: #f8f9fa;
    --sidebar-hover: rgba(52, 152, 219, 0.1);
    --sidebar-active: rgba(52, 152, 219, 0.2);
    --footer-bg: #f8f9fa;
    --text-color: #333333;
}

/* 绿色主题 */
[data-theme="green"] {
    --primary-color: #27ae60;
    --primary-dark: #219a52;
    --primary-light: #2ecc71;
    --navbar-bg: #2c3e50;
    --sidebar-bg: #f8f9fa;
    --sidebar-hover: rgba(39, 174, 96, 0.1);
    --sidebar-active: rgba(39, 174, 96, 0.2);
    --footer-bg: #34495e;
}

/* 黄色主题 */
[data-theme="yellow"] {
    --primary-color: #f39c12;
    --primary-dark: #e67e22;
    --primary-light: #f5b041;
    --navbar-bg: #2c3e50;
    --sidebar-bg: #f8f9fa;
    --sidebar-hover: rgba(243, 156, 18, 0.1);
    --sidebar-active: rgba(243, 156, 18, 0.2);
    --footer-bg: #34495e;
}

/* 紫色主题 */
[data-theme="purple"] {
    --primary-color: #9b59b6;
    --primary-dark: #8e44ad;
    --primary-light: #a569bd;
    --navbar-bg: #2c3e50;
    --sidebar-bg: #f8f9fa;
    --sidebar-hover: rgba(155, 89, 182, 0.1);
    --sidebar-active: rgba(155, 89, 182, 0.2);
    --footer-bg: #34495e;
}

/* 红色主题 */
[data-theme="red"] {
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --primary-light: #ec7063;
    --navbar-bg: #2c3e50;
    --sidebar-bg: #f8f9fa;
    --sidebar-hover: rgba(231, 76, 60, 0.1);
    --sidebar-active: rgba(231, 76, 60, 0.2);
    --footer-bg: #34495e;
}

/* 橙色主题 */
[data-theme="orange"] {
    --primary-color: #e67e22;
    --primary-dark: #d35400;
    --primary-light: #f39c12;
    --navbar-bg: #2c3e50;
    --sidebar-bg: #f8f9fa;
    --sidebar-hover: rgba(230, 126, 34, 0.1);
    --sidebar-active: rgba(230, 126, 34, 0.2);
    --footer-bg: #34495e;
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    color: var(--text-color, #333);
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航栏 */
.navbar {
    background-color: var(--navbar-bg);
    color: var(--text-color, white);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 导航标签 */
.nav-tab.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color, white);
}

/* 新建文件夹和上传按钮 */
.nav-action-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    margin-right: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.nav-action-btn:hover {
    background-color: var(--primary-dark);
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-left .navbar-logo {
    width: 24px !important;
    height: 24px !important;
    margin-right: 8px;
    object-fit: contain;
    max-width: 24px !important;
    max-height: 24px !important;
}

.brand {
    font-size: 18px;
    font-weight: bold;
    margin-right: 30px;
}

.nav-tabs {
    display: flex;
}

.nav-tab {
    background: none;
    border: none;
    color: #bdc3c7;
    padding: 8px 16px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-tab:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color, white);
}

.nav-tab.active {
    background-color: var(--primary-color);
    color: white;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu {
    position: relative;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    background: none;
    border: 1px solid #495057;
    border-radius: 16px;
    color: var(--text-color, #fff);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 80px;
}

.user-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    font-size: 16px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.user-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.user-btn:hover .user-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 180px;
    background-color: var(--navbar-bg);
    border: 1px solid #495057;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
}

/* 移除CSS hover显示，使用JavaScript控制 */

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-color, #fff);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dropdown-text {
    font-size: 14px;
}

.dropdown-divider {
    height: 1px;
    background-color: #495057;
    margin: 4px 0;
}

.dropdown-item.logout:hover {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.nav-action-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    margin-right: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.nav-action-btn:hover {
    background-color: var(--primary-dark);
}

.view-options {
    display: flex;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    align-items: center;
}

.view-option-btn {
    background: none;
    border: none;
    color: #495057;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-option-btn:hover {
    background-color: #dee2e6;
    color: #212529;
}

.view-option-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px;
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-color, white);
    padding: 6px 10px;
    outline: none;
    width: 200px;
}

.search-box input::placeholder {
    color: #bdc3c7;
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-color, white);
    padding: 6px 10px;
    cursor: pointer;
}

/* 主内容区域 */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 左侧导航栏 */
.sidebar {
    width: 220px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-content {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-item {
    margin-bottom: 5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-color, #333);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    position: relative;
}

.sidebar-link:hover {
    background-color: var(--sidebar-hover);
    color: var(--primary-color);
    font-weight: 500;
}

.sidebar-link.active {
    background-color: var(--sidebar-active);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.sidebar-icon {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-text {
    flex: 1;
}

/* 展开/折叠功能 */
.expandable {
    position: relative;
}

.expand-toggle {
    cursor: pointer;
}

.expand-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.expandable.expanded .expand-icon {
    transform: rotate(90deg);
}

.expand-content {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

.expandable.expanded .expand-content {
    display: block;
}

/* 团队子文件夹展开/收起 */
#teams-list li.expanded .expand-content {
    display: block;
}

/* 子链接样式 */
.sub-link {
    padding-left: 40px;
    font-size: 13px;
}

.sub-link .sidebar-icon {
    font-size: 14px;
    margin-right: 10px;
}

/* 确保子链接的活动状态也能正确显示背景色 */
.sub-link.active {
    background-color: var(--sidebar-active);
    color: var(--primary-color);
    font-weight: 600;
}

/* 团队子文件夹样式 */
.team-sub-folders .sub-link {
    padding-left: 60px;
}

/* 控制面板侧边栏样式 */
.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h4 {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 30px 0 15px 20px;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section ul li {
    margin-bottom: 5px;
}

.sidebar-section ul li a {
    display: block;
    padding: 8px 20px;
    color: var(--text-color, #333);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-section ul li a:hover {
    background-color: var(--sidebar-hover);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-section ul li a.active {
    background-color: var(--sidebar-active);
    color: var(--primary-color);
    font-weight: 600;
    border-left-color: var(--primary-color);
}

/* 文件管理器 */
.file-manager {
    flex: 1;
    background-color: white;
    padding: 20px;
    overflow-y: auto;
}

/* 路径导航 */
.path-nav {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.nav-buttons {
    display: flex;
    margin-right: 15px;
}

.nav-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.2s ease;
}

.nav-btn:hover:not(:disabled) {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-icon {
    font-size: 14px;
    font-weight: bold;
}

.path-breadcrumb {
    flex: 1;
    font-size: 14px;
}

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

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

/* 文件控制选项 */
.file-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* 选中文件功能栏 */
.selected-files-bar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 8px 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

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

.selected-action-btn {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.selected-action-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* 更多按钮 */
.more-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.more-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    background-color: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
}

.more-dropdown-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.more-dropdown-item:hover {
    background-color: #f8f9fa;
}

.more-dropdown-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 4px 0;
}

.sort-options, .filter-options {
    display: flex;
    align-items: center;
}

.sort-options label, .filter-options label {
    margin-right: 10px;
    font-size: 14px;
    color: #666;
}

.sort-options select, .filter-options select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 10px;
}

.sort-options select:last-child, .filter-options select:last-child {
    margin-right: 0;
}

/* 文件网格 */
#file-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 4px;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin: 0;
    min-width: 100px;
    text-align: center;
}

/* 非列表视图下的文件项 */
#file-grid:not(.list-view) .file-item {
    max-width: 120px;
}

.file-item:hover {
    background-color: #f5f5f5;
}

.file-item.selected {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    position: relative;
}

.file-item.selected::before {
    content: '✓';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    background-color: #3498db;
    color: white;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.file-item.folder {
    background-color: #f9f9f9;
}

.file-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.file-name {
    font-size: 14px;
    text-align: center;
    overflow: hidden;
    width: 100%;
    white-space: normal;
    word-break: break-all;
}

/* 列表视图样式 */
.file-item .file-details {
    flex: 1;
    min-width: 0;
}

.file-item .file-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.file-item .file-size {
    margin-right: 20px;
}

/* 列表视图下的文件名称 */
.file-item .file-name {
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* 列表视图下的文件项 */
#file-grid.list-view {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

/* 列表视图下的文件项 */
#file-grid.list-view .file-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 30px;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

/* 列表视图下的文件信息容器 */
#file-grid.list-view .file-item .file-info {
    display: flex;
    align-items: center;
    flex: 1;
    flex-wrap: nowrap;
    gap: 20px;
    flex-direction: row;
    justify-content: flex-start;
}

/* 列表视图下的文件项 */
#file-grid.list-view .file-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 30px;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    text-align: left !important;
}

/* 列表视图下的文件图标 */
#file-grid.list-view .file-item .file-info .file-icon {
    margin-right: 0;
    font-size: 24px;
    flex-shrink: 0;
}

/* 列表视图下的文件名称 */
#file-grid.list-view .file-item .file-info .file-name {
    font-size: 14px;
    font-weight: 500;
    color: #333 !important;
    flex: 0 1 300px;
    min-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block !important;
}

/* 列表视图下的文件类型 */
#file-grid.list-view .file-item .file-info .file-type {
    font-size: 12px;
    color: #666 !important;
    min-width: 100px;
    flex-shrink: 0;
    display: inline-block !important;
    text-align: left !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 列表视图下的文件大小 */
#file-grid.list-view .file-item .file-info .file-size {
    font-size: 12px;
    color: #666 !important;
    min-width: 80px;
    flex-shrink: 0;
    display: inline-block !important;
    text-align: left !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 列表视图下的文件修改时间 */
#file-grid.list-view .file-item .file-info .file-modified {
    font-size: 12px;
    color: #666 !important;
    min-width: 160px;
    text-align: right;
    flex-shrink: 0;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 确保文件名称显示 */
#file-grid.list-view .file-item .file-info .file-name {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 200px !important;
    max-width: 300px !important;
    color: #000 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    flex: 0 1 300px !important;
}

/* 列表视图列标题 */
#file-grid.list-view .list-header {
    display: flex;
    align-items: center;
    padding: 8px 30px;
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    font-size: 12px;
    color: #666;
}

#file-grid.list-view .header-checkbox {
    width: 20px;
    margin-right: 10px;
}

#file-grid.list-view .header-icon {
    width: 24px;
    margin-right: 15px;
}

#file-grid.list-view .header-name {
    flex: 0 1 300px;
    min-width: 200px;
    margin-right: 20px;
}

#file-grid.list-view .header-type {
    min-width: 100px;
    margin-right: 20px;
}

#file-grid.list-view .header-size {
    min-width: 80px;
    margin-right: 20px;
    text-align: left;
}

#file-grid.list-view .header-modified {
    min-width: 160px;
    text-align: right;
    margin-right: 20px;
}

#file-grid.list-view .header-actions {
    width: 20px;
}

#file-grid.list-view .file-item:last-child {
    border-bottom: none;
}

/* 收藏按钮样式 */
.favorite-btn {
    display: inline-block;
    margin-left: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.file-icon {
    position: relative;
}

.file-icon .favorite-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.file-name .favorite-btn {
    font-size: 12px;
}

/* 列表视图样式 */
.file-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.file-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.file-size {
    margin-right: 20px;
}

.file-modified {
    white-space: nowrap;
}

/* 底部信息 */
.footer {
    background-color: var(--footer-bg);
    color: var(--text-color, white);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.footer-left {
    display: flex;
    align-items: center;
}

.footer-center {
    flex: 1;
    text-align: center;
    margin: 0 20px;
    color: #bdc3c7;
}

.footer-btn {
    background: none;
    border: none;
    color: #bdc3c7;
    padding: 4px 10px;
    margin-right: 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.footer-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color, white);
}

.footer-info {
    color: #bdc3c7;
}

.footer-right {
    color: #bdc3c7;
}

/* 模态框样式 */
.modal {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f5f5f5;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #f5f5f5;
    display: flex;
    justify-content: flex-end;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 150px;
    }
    
    .file-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .file-icon {
        font-size: 36px;
    }
    
    .file-name {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    
    .navbar-left {
        margin-bottom: 10px;
    }
    
    .navbar-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: 200px;
    }
    
    .file-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
}