:root { --bg-color: #0d1117; --panel-bg-color: rgba(34, 40, 51, 0.5); --modal-bg-color: rgba(34, 40, 51, 0.7); --border-color: rgba(139, 148, 158, 0.2); --text-primary: #c9d1d9; --text-secondary: #8b949e; --accent-color: #38bdf8; --danger-color: #f85149; --highlight-bg: rgba(56, 189, 248, 0.1); --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; --border-radius: 6px; --shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { color: var(--text-primary); font-family: var(--font-family); background-color: var(--bg-color); background-image: radial-gradient(circle at 15% 15%, rgba(0, 170, 255, 0.1) 0%, transparent 30%), radial-gradient(circle at 85% 80%, rgba(244, 114, 182, 0.08) 0%, transparent 35%); line-height: 1.5; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.page-container { display: flex; flex-direction: column; height: 100%; padding: 0.5rem; gap: 1rem; }
.page-header { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; padding-left: 0.5rem; padding-right: 0.5rem; }
.page-header h1 { font-size: 1.25rem; font-weight: 600; white-space: nowrap; }
.header-link { color: var(--text-primary); text-decoration: none; }
#uptime-ticker { font-variant-numeric: tabular-nums; margin-left: 0.5rem; color: var(--text-secondary); font-size: 1rem; font-weight: 400; }
.portal-wrapper { display: flex; flex-grow: 1; gap: 1rem; min-height: 0; }
.sidebar-panel, .main-content { border: 1px solid var(--border-color); border-radius: var(--border-radius); background-color: var(--panel-bg-color); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sidebar-panel { flex: 0 0 280px; overflow-y: auto; padding: 0.5rem; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav li a { display: flex; align-items: center; padding: 0.5rem 0.75rem; border-radius: var(--border-radius); color: var(--text-secondary); text-decoration: none; transition: background-color 0.2s, color 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.sidebar-nav li a:hover { background-color: var(--highlight-bg); color: var(--text-primary); }
.sidebar-nav li a.active { background-color: var(--highlight-bg); color: var(--text-primary); font-weight: 500; }
.sidebar-nav li a .folder-icon { width: 20px; height: 20px; margin-right: 0.75rem; flex-shrink: 0; }
.sidebar-nav li a .chevron { width: 16px; height: 16px; margin-left: auto; transition: transform 0.2s ease-in-out; color: var(--text-secondary); flex-shrink: 0; }
.sidebar-nav li.open > a > .chevron { transform: rotate(90deg); }
.sidebar-nav li > ul { display: none; padding-left: 1.25rem; }
.sidebar-nav li.open > ul { display: block; }
.main-content { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.content-panel { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; }
.breadcrumbs { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-color); flex-shrink: 0; white-space: nowrap; overflow-x: auto; }
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-color); text-decoration: underline; }
.breadcrumbs span { margin: 0 0.5rem; color: var(--text-secondary); }
.table-container { overflow-y: auto; flex-grow: 1; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th, td { padding: 0.75rem 1rem; vertical-align: middle; text-align: left; }
th { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); background-color: var(--panel-bg-color); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--border-color); }
table col:nth-child(1) { width: 50%; } table col:nth-child(2) { width: 20%; } table col:nth-child(3) { width: 15%; } table col:nth-child(4) { width: 15%; }
.cell-content { display: flex; align-items: center; }
.align-right { justify-content: flex-end; }
.justify-center { justify-content: center; }
tbody tr { border-bottom: 1px solid var(--border-color); transition: background-color 0.2s ease; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background-color: var(--highlight-bg); }
.file-icon { width: 20px; height: 20px; margin-right: 0.75rem; flex-shrink: 0; }
.folder-icon { color: var(--accent-color); } .pdf-icon { color: #ff6b6b; } .docx-icon { color: #368dff; } .xlsx-icon { color: #107c41; } .pptx-icon { color: #d35400; } .image-icon { color: #4caf50; } .video-icon { color: #e91e63; } .other-icon { color: #8b949e; }
.file-link { color: var(--text-primary); text-decoration: none; font-weight: 500; display: flex; align-items: center; }
.file-link:hover { color: var(--accent-color); }
.file-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; gap: 0.75rem; }
.action-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; color: var(--text-primary); border: 1px solid var(--border-color); border-radius: var(--border-radius); font-size: 0.875rem; font-weight: 500; cursor: pointer; background-color: rgba(56, 189, 248, 0.05); transition: background-color 0.2s; }
.action-btn:hover { background-color: rgba(56, 189, 248, 0.15); }
.action-btn svg { width: 16px; height: 16px; }
.action-button { background: transparent; border: none; color: var(--text-secondary); cursor: pointer; border-radius: 50%; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; transition: background-color 0.2s, color 0.2s; }
.action-button:hover { color: var(--danger-color); background-color: rgba(248, 81, 73, 0.1); }
.empty-message { text-align: center; padding: 3rem; color: var(--text-secondary); }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 10000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal-dialog { background: var(--modal-bg-color); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.5rem; width: 90%; max-width: 400px; box-shadow: var(--shadow); transform: scale(0.95); transition: transform 0.3s ease; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal-overlay.visible .modal-dialog { transform: scale(1); }
.modal-dialog h3 { margin-bottom: 1rem; font-size: 1.125rem; }
.modal-dialog p { margin-bottom: 1.5rem; color: var(--text-secondary); font-size: 0.9rem; }
.modal-form { display: flex; flex-direction: column; gap: 1rem; }
.modal-input { background-color: var(--bg-color); border: 1px solid var(--border-color); color: var(--text-primary); padding: 0.6rem 0.8rem; border-radius: var(--border-radius); font-size: 1rem; }
.modal-input:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3); }
.modal-button { padding: 0.6rem; border-radius: var(--border-radius); border: 1px solid var(--accent-color); font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; background-color: var(--accent-color); color: #0d1117; }
.modal-button:hover { filter: brightness(1.1); }
.modal-dialog .error-message { color: var(--danger-color); font-size: 0.9rem; min-height: 1.2em; visibility: hidden; margin-top: 0.5rem; }
.modal-dialog .error-message.visible { visibility: visible; }
#context-menu, #context-menu-sidebar { display: none; position: fixed; z-index: 100; background-color: var(--modal-bg-color); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.3); padding: 0.5rem; min-width: 180px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.context-menu-item { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.5rem 1rem; background: none; border: none; color: var(--text-primary); text-align: left; cursor: pointer; white-space: nowrap; border-radius: var(--border-radius); }
.context-menu-item:hover { background-color: var(--accent-color); color: #0d1117; }
.context-menu-item svg { width: 16px; height: 16px; color: var(--text-secondary); transition: color 0.2s; }
.context-menu-item:hover svg { color: #0d1117; }
.context-menu-divider { height: 1px; background-color: var(--border-color); margin: 0.5rem 0; }
#drop-zone { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 9999; display: none; justify-content: center; align-items: center; backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.3s ease; }
#drop-zone.visible { display: flex; opacity: 1; }
.drop-indicator { border: 2px dashed var(--accent-color); border-radius: 12px; padding: 3rem 4rem; text-align: center; color: #fff; background-color: var(--highlight-bg); }
.drop-indicator svg { width: 60px; height: 60px; margin-bottom: 1rem; color: var(--accent-color); }
.drop-indicator h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
@media (max-width: 768px) { .sidebar-panel { display: none; } .page-container { padding: 0.5rem; } .page-header { flex-wrap: wrap; gap: 0.5rem; } .header-actions { width: 100%; justify-content: space-around; } .action-btn span { display: none; } .action-btn { padding: 0.5rem; flex-grow: 1; justify-content: center; } .hide-on-mobile { display: none !important; } .breadcrumbs { padding: 0.5rem; } th, td { padding: 0.5rem; } thead { display: none; } tbody, tr, td { display: block; } tr.item-row { display: flex; align-items: center; padding: 0.5rem 0; } td[data-label="名称"] { flex: 1; min-width: 0; } td[data-label="操作"] { flex-shrink: 0; } td[data-label="修改日期"], td[data-label="大小"] { display: none; } }
