* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #1f2937; line-height: 1.5; min-height: 100vh; transition: background 0.3s ease; }

/* 渐变背景 */
.bg-grad-1 { background: linear-gradient(to bottom, #f0f9ff 0%, #f0f9ff 40%, #ffffff 100%); }
.bg-grad-2 { background: linear-gradient(to bottom, #fef3c7 0%, #fef3c7 40%, #ffffff 100%); }
.bg-grad-3 { background: linear-gradient(to bottom, #e0f2fe 0%, #e0f2fe 40%, #ffffff 100%); }
.bg-grad-4 { background: linear-gradient(to bottom, #fce7f3 0%, #fce7f3 40%, #ffffff 100%); }
.bg-grad-5 { background: linear-gradient(to bottom, #dcfce7 0%, #dcfce7 40%, #ffffff 100%); }

/* 导航栏毛玻璃效果 */
.navbar { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); box-shadow: 0 1px 3px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 0.75rem 1.5rem; position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 700; font-size: 1.4rem; background: linear-gradient(135deg, #3b82f6, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; z-index: 2; }
.nav-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; justify-content: center; background: transparent; z-index: 1; }
.nav-right { display: flex; align-items: center; gap: 0.5rem; z-index: 2; }
.dropdown { position: relative; display: inline-block; }
.dropbtn { background: transparent; border: none; padding: 0.5rem 1rem; border-radius: 2rem; font-size: 0.9rem; font-weight: 500; color: #4b5563; cursor: pointer; transition: all 0.2s ease; }
.dropbtn:hover { background: rgba(0,0,0,0.05); color: #1f2937; }
.dropdown-content { display: none; position: absolute; right: 0; top: 100%; background-color: white; min-width: 160px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); border-radius: 0.75rem; z-index: 1000; overflow: hidden; }
.dropdown-content button, .dropdown-content a { color: #1f2937; padding: 0.75rem 1rem; text-decoration: none; display: block; text-align: left; width: 100%; border: none; background: none; cursor: pointer; font-size: 0.85rem; }
.dropdown-content button:hover, .dropdown-content a:hover { background-color: #f1f5f9; }
.dropdown:hover .dropdown-content { display: block; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #4b5563; }
.nav-links a, .nav-links button { background: transparent; border: none; padding: 0.5rem 1rem; border-radius: 2rem; font-size: 0.9rem; font-weight: 500; color: #4b5563; text-decoration: none; cursor: pointer; transition: all 0.2s ease; }
.nav-links a:hover, .nav-links button:hover { background: rgba(0,0,0,0.05); color: #1f2937; }
.nav-links a.active { background: #3b82f6; color: white; }

@media (max-width: 768px) {
    .nav-container { flex-wrap: wrap; justify-content: space-between; }
    .nav-links { position: static; transform: none; width: 100%; order: 3; margin-top: 1rem; flex-direction: column; align-items: stretch; gap: 0.25rem; display: none; }
    .nav-links.show { display: flex; }
    .mobile-menu-btn { display: block; }
    .nav-right { order: 2; }
    .dropdown-content { left: 0; right: auto; }
}

.main-container { max-width: 1400px; margin: 2rem auto; padding: 0 1.5rem; }
.breadcrumb-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumb { background: rgba(241,245,249,0.8); backdrop-filter: blur(4px); padding: 0.5rem 1rem; border-radius: 1rem; font-size: 0.85rem; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.breadcrumb a { color: #3b82f6; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.btn-icon { background: none; border: 1px solid #e2e8f0; font-size: 1.2rem; padding: 0.3rem 0.8rem; border-radius: 2rem; cursor: pointer; transition: 0.2s; }
.btn-icon:hover { background: #f1f5f9; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.btn { background: #ffffff; border: 1px solid #e2e8f0; padding: 0.5rem 1rem; border-radius: 2rem; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: 0.2s; color: #1f2937; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.btn-primary { background: #3b82f6; border-color: #3b82f6; color: white; }
.btn-primary:hover { background: #2563eb; }
.btn-danger { background: #ef4444; border-color: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.dir-stats { background: #f8fafc; padding: 0.5rem 1rem; border-radius: 0.75rem; font-size: 0.85rem; color: #475569; margin-bottom: 1rem; border: 1px solid #e2e8f0; }

.list-view { margin-top: 1rem; }
.list-view .file-item { display: flex; align-items: center; padding: 0.75rem 0.5rem; border-bottom: 1px solid #eef2f6; gap: 1rem; flex-wrap: wrap; transition: background 0.2s ease; border-radius: 0.75rem; }
.list-view .file-item:hover { background: #f1f5f9; cursor: pointer; }
.list-view .file-name { flex: 2; font-size: 0.9rem; word-break: break-word; display: flex; align-items: center; gap: 0.5rem; }
.list-view .file-size { width: 100px; font-size: 0.8rem; color: #6b7280; }
.list-view .file-time { width: 150px; font-size: 0.8rem; color: #6b7280; }
.list-view .file-actions { display: flex; gap: 0.5rem; pointer-events: auto; }
.list-view .header { font-weight: 600; background: #f1f5f9; border-radius: 0.75rem; margin-bottom: 0.5rem; padding: 0.75rem 0.5rem; border-bottom: none; }
.list-view .header a { text-decoration: none; color: #1f2937; }
.list-view .header a:hover { text-decoration: underline; }

.waterfall-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.waterfall-item { background: white; border-radius: 1rem; padding: 1rem; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,0.05); border: 1px solid #edf2f7; transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer; }
.waterfall-item:hover { transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.waterfall-item .file-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.waterfall-item .file-name { font-size: 0.85rem; word-break: break-word; margin: 0.5rem 0; }
.waterfall-item .file-size { font-size: 0.7rem; color: #6b7280; }
.waterfall-item .file-actions { margin-top: 0.5rem; pointer-events: auto; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background: white; border-radius: 1.5rem; padding: 1.5rem; max-width: 90%; width: 500px; max-height: 80%; overflow: auto; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.modal-content h3 { margin-bottom: 1rem; font-size: 1.25rem; }
.modal-content input, .modal-content select { width: 100%; padding: 0.5rem; margin: 0.5rem 0 1rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 0.9rem; }
.modal-content label { font-weight: 500; display: block; margin-top: 0.5rem; }
.upload-progress { width: 100%; background: #e5e7eb; border-radius: 20px; overflow: hidden; margin: 10px 0; }
.progress-bar { width: 0%; height: 8px; background: #3b82f6; transition: width 0.2s; }

.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 2000; justify-content: center; align-items: center; cursor: pointer; }
.lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 0.5rem; }
.lightbox .close-lightbox { position: absolute; top: 20px; right: 30px; color: white; font-size: 2rem; cursor: pointer; font-weight: bold; }
.player-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 2000; justify-content: center; align-items: center; }
.close-player { position: absolute; top: 20px; right: 30px; color: white; font-size: 2rem; cursor: pointer; }
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap; }
.footer { text-align: center; padding: 2rem; border-top: 1px solid #e2e8f0; margin-top: 3rem; color: #6b7280; font-size: 0.8rem; }

@media (max-width: 768px) {
    .main-container { padding: 0 1rem; margin: 1rem auto; }
    .list-view .file-size, .list-view .file-time { display: none; }
    .list-view .file-item { flex-wrap: wrap; justify-content: space-between; }
    .list-view .file-name { flex: 1; min-width: 60%; }
    .list-view .file-actions { justify-content: flex-end; }
    .toolbar { gap: 0.5rem; }
    .btn { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
}
.nav-item { user-select: none; }


.navbar {
    background: rgba(255, 255, 255, 0.75); /* 更透明 */
    backdrop-filter: blur(12px);            /* 更强模糊 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}