/* ============================================
   CloudDrive 云盘系统 - 全局样式
   ============================================ */

:root {
    --primary-color: #4f6ef7;
    --primary-hover: #3b56d4;
    --primary-light: #e8ecfe;
    --danger-color: #f44336;
    --danger-hover: #d32f2f;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #666680;
    --text-muted: #9999aa;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --sidebar-width: 260px;
    --header-height: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========== 登录/注册页面 ========== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}
.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    padding: 40px;
}
.auth-card .logo { text-align: center; margin-bottom: 32px; }
.auth-card .logo h1 {
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}
.auth-card .logo p { color: var(--text-secondary); font-size: 14px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; color: var(--text-primary); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}
.form-group input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--primary-light); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 8px;
}
.btn-primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
    padding: 14px;
    font-size: 16px;
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-danger { background: var(--danger-color); color: white; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--primary-color); color: var(--primary-color); }

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}
.auth-footer a { color: var(--primary-color); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}
.alert-error { background: #fef2f2; color: var(--danger-color); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--success-color); border: 1px solid #bbf7d0; }
.alert.show { display: block; animation: slideDown 0.3s ease; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ========== 主界面布局 ========== */
.app-layout { display: flex; min-height: 100vh; }

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-header h2 {
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-header h2 span { font-size: 26px; }
.sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 24px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}
.nav-item:hover { color: white; background: rgba(255,255,255,0.06); }
.nav-item.active { color: white; background: rgba(79,110,247,0.2); border-left-color: var(--primary-color); }
.nav-item i { font-size: 18px; width: 24px; text-align: center; }
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.user-info { display: flex; align-items: center; gap: 12px; }
.user-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}
.user-details { overflow: hidden; }
.user-details strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-details small { color: rgba(255,255,255,0.5); font-size: 12px; }

/* 主内容区 */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部栏 */
.header {
    height: var(--header-height);
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-secondary);
}
.header-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.header-breadcrumb a:hover { color: var(--primary-color); }
.header-breadcrumb .current { color: var(--text-primary); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* 搜索框 */
.search-box {
    position: relative;
    width: 300px;
}
.search-box input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: var(--bg-color);
}
.search-box input:focus { border-color: var(--primary-color); background: white; }
.search-box::before {
    content: "🔍";
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    font-size: 14px;
}

/* 内容区域 */
.content-area { flex: 1; padding: 28px 32px; }

/* 工具栏 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.toolbar .btn { background: var(--card-bg); border: 2px solid var(--border-color); color: var(--text-primary); }
.toolbar .btn:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* 文件列表 */
.file-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.file-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}
.file-card:hover { 
    border-color: var(--primary-color); 
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.file-card.selected { border-color: var(--primary-color); background: var(--primary-light); }
.file-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 14px;
}
.file-icon.folder { background: #fff3e0; color: #ff9800; }
.file-icon.image { background: #e3f2fd; color: #2196f3; }
.file-icon.video { background: #fce4ec; color: #e91e63; }
.file-icon.audio { background: #e8f5e9; color: #4caf50; }
.file-icon.document { background: #ede7f6; color: #673ab7; }
.file-icon.archive { background: #efebe9; color: #795548; }
.file-icon.other { background: #eceff1; color: #607d8b; }
.file-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.file-card-menu {
    position: absolute;
    top: 12px; right: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}
.file-card:hover .file-card-menu { opacity: 1; }
.menu-btn {
    width: 32px; height: 32px;
    border: none; background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
}
.menu-btn:hover { background: var(--bg-color); color: var(--text-primary); }

/* 存储信息 */
.storage-bar {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
}
.storage-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}
.storage-bar-header strong { font-size: 15px; }
.storage-bar-header span { color: var(--text-secondary); font-size: 14px; }
.progress-bar {
    height: 8px;
    background: var(--bg-color);
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #667eea);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.empty-state .icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-secondary); }
.empty-state p { font-size: 14px; }

/* 模态框 */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none; align-items: center; justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; animation: fadeIn 0.25s ease; }
.modal {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    width: 90%; max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}
.modal-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h3 { font-size: 18px; }
.modal-close {
    width: 32px; height: 32px;
    border: none; background: transparent;
    border-radius: 6px;
    cursor: pointer; font-size: 20px;
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--bg-color); color: var(--text-primary); }
.modal-body { padding: 24px; }
.modal-footer {
    display: flex; justify-content: flex-end;
    gap: 10px; padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideIn { from { opacity: 0; transform: scale(0.95) translateY(-10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* 上传区域 */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
    margin-bottom: 24px;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--primary-color); background: var(--primary-light); }
.upload-zone .icon { font-size: 48px; margin-bottom: 12px; }
.upload-zone h3 { font-size: 17px; margin-bottom: 6px; color: var(--text-primary); }
.upload-zone p { font-size: 13px; color: var(--text-muted); }

/* ========== 分片上传进度卡片 ========== */
.upload-progress-container {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.upload-progress-container h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.upload-progress-card {
    background: #f8f9fc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}
.upload-progress-card:last-child { margin-bottom: 0; }

.up-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.up-file-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.up-file-detail {
    flex: 1;
    min-width: 0;
}
.up-file-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.up-file-size {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.up-cancel-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.up-cancel-btn:hover {
    background: #fee2e2;
    color: var(--danger-color);
}

.up-progress-track {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}
.up-progress-bar {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    transition: width 0.3s ease, background 0.3s ease;
    min-width: 0;
}

.up-status-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* 响应式 */
@media (max-width: 768px) {
    .up-file-name { font-size: 13px; }
    .upload-progress-container { padding: 12px 14px; }
}

/* ========== 回收站 ========== */
.trashed-card {
    border-left: 3px solid var(--danger-color);
    opacity: 0.85;
}
.trashed-card:hover {
    border-left-color: #dc2626;
    opacity: 1;
}
.trashed-card .file-meta span:last-child {
    color: var(--text-muted);
}

.btn-danger {
    background: var(--danger-color) !important;
    color: white !important;
    border: none;
    transition: all 0.2s;
}
.btn-danger:hover {
    background: var(--danger-hover) !important;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-menu {
    position: absolute;
    right: 0; top: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 160px;
    padding: 6px;
    display: none;
    z-index: 100;
}
.dropdown-menu.show { display: block; animation: slideDown 0.2s ease; }
.dropdown-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    border: none; background: none;
    width: 100%;
    text-align: left;
    font-size: 14px; cursor: pointer;
    border-radius: 6px;
    color: var(--text-primary);
    transition: background 0.15s;
}
.dropdown-item:hover { background: var(--bg-color); }
.dropdown-item.danger { color: var(--danger-color); }
.dropdown-item.danger:hover { background: #fef2f2; }

/* 分享面板 */
.share-panel {
    text-align: center;
}
.share-url {
    display: flex;
    margin-top: 16px;
    gap: 8px;
}
.share-url input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    background: var(--bg-color);
}

/* Toast 提示 */
.toast-container {
    position: fixed; top: 20px; right: 20px;
    z-index: 9999;
    display: flex; flex-direction: column; gap: 8px;
}
.toast {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 10px;
    font-size: 14px;
    animation: toastIn 0.3s ease;
    min-width: 280px;
}
.toast.success { border-left: 4px solid var(--success-color); }
.toast.error { border-left: 4px solid var(--danger-color); }
.toast.info { border-left: 4px solid var(--primary-color); }
@keyframes toastIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }

/* 响应式 */
@media (max-width: 1024px) {
    .file-list { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .main-content { margin-left: 0; }
    .content-area { padding: 20px; }
    .search-box { width: 200px; }
    .file-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* 加载动画 */
.loading-spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 文件类型图标映射 */
.file-type-folder::before { content: "📁"; }
.file-type-image::before { content: "🖼️"; }
.file-type-video::before { content: "🎬"; }
.file-type-audio::before { content: "🎵"; }
.file-type-pdf::before { content: "📄"; }
.file-type-word::before { content: "📝"; }
.file-type-excel::before { content: "📊"; }
.file-type-zip::before { content: "📦"; }
.file-type-other::before { content: "📎"; }

/* ========== v4.0 文件多选 ========== */
.file-select-box {
    position: absolute; top: 10px; left: 10px;
    width: 22px; height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    background: var(--card-bg);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: white;
    transition: all 0.2s ease;
    opacity: 0;
    z-index: 2;
}
.file-card:hover .file-select-box { opacity: 0.6; }
.file-card.selected .file-select-box,
.file-select-box:hover { opacity: 1 !important; }
.file-select-box.checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}
.file-select-box span { font-size: 11px; }

/* 预览按钮 */
.preview-badge {
    position: absolute; top: 10px; right: 42px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(79,110,247,0.1);
    color: var(--primary-color);
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 2;
}
.file-card:hover .preview-badge { opacity: 1; }
.preview-badge:hover { background: var(--primary-color); color: white !important; }

/* 批量操作工具栏 */
.batch-toolbar {
    animation: slideDown 0.25s ease;
    border: 2px solid var(--primary-color);
    background: #eef2ff;
}

/* ========== 在线预览模态框 ========== */
.modal-preview {
    max-width: 900px; width: 95%;
    max-height: 90vh;
    overflow: hidden;
}
.modal-preview .preview-body {
    min-height: 200px;
    max-height: 70vh;
    overflow: auto;
}
.preview-media-container {
    padding: 20px; text-align: center;
    background: #1a1a2e; border-radius: 8px;
}
.preview-info {
    text-align: center;
    padding: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}
.preview-code-info {
    display: flex; gap: 16px;
    padding: 12px 20px;
    background: #f8f9fc;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}
.preview-code-block {
    margin: 0; padding: 20px;
    background: #282c34;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow-x: auto;
    max-height: 60vh;
}
.preview-code-block code {
    font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
    font-size: 13px; line-height: 1.6;
    color: #abb2bf;
}
.preview-error {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 15px;
}
.preview-error a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ========== Lightbox 图片查看器 ========== */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    display: none; align-items: center; justify-content: center;
    cursor: zoom-out;
}
.lightbox-overlay.show { display: flex; animation: fadeIn 0.2s ease; }
.lb-close {
    position: absolute; top: 16px; right: 20px;
    width: 40px; height: 40px;
    border: none; background: rgba(255,255,255,0.15);
    color: white; font-size: 22px;
    border-radius: 50%; cursor: pointer;
    transition: background 0.2s;
    z-index: 10001;
}
.lb-close:hover { background: rgba(255,255,255,0.3); }
#lightboxImg {
    max-width: 92vw; max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    transition: opacity 0.2s ease;
}
.lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
    border: none; background: rgba(255,255,255,0.12);
    color: white; font-size: 24px;
    border-radius: 50%; cursor: pointer;
    transition: background 0.2s;
    z-index: 10001;
}
.lb-nav:hover { background: rgba(255,255,255,0.28); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-caption {
    position: absolute; bottom: 24px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    text-align: center;
    max-width: 80vw;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 20px;
    background: rgba(0,0,0,0.4);
    border-radius: 20px;
}

/* ========== 相册视图 ========== */
.album-container {
    padding-top: 0;
}
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 8px 0;
}
.album-date-group {
    /* 占满整行用于日期标题 */
    grid-column: 1 / -1;
}
.album-date-header {
    font-size: 15px; font-weight: 600;
    color: var(--text-primary);
    padding: 12px 4px 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
}
.album-date-header::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
}
.album-photo-card {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #f0f0f0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.album-photo-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.album-photo-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}
.album-photo-card:hover img { transform: scale(1.05); }
.photo-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 28px 10px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    display: flex; flex-direction: column;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.album-photo-card:hover .photo-overlay { opacity: 1; }
.photo-name {
    font-size: 12px; font-weight: 500;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis;
}
.photo-time {
    font-size: 11px; opacity: 0.75;
}
.album-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; padding: 20px;
    color: var(--text-secondary); font-size: 14px;
}
.album-pagination button { white-space: nowrap; }

/* 响应式 - 相册 */
@media (max-width: 768px) {
    .album-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
    .modal-preview { max-width: 100%; margin: 10px; }
    .lb-nav { width: 36px; height: 36px; font-size: 18px; }
}
