:root {
  --theme: #4f6ef7;
  --theme-light: #6b85f9;
  --theme-dark: #3a55d4;
  --bg: #f5f7fa;
  --bg-card: #ffffff;
  --bg-hover: #f0f2f5;
  --bg-active: #e8ecf5;
  --text: #1a1a2e;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --sidebar-w: 240px;
  --nav-h: 60px;
}

[data-theme="dark"] {
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --bg-hover: #252836;
  --bg-active: #2d3142;
  --text: #e4e6eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border: #2d3142;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html, body { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; transition: background 0.3s, color 0.3s; }
a { color: var(--theme); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* 全局禁用点击/长按的蓝色高亮底色残留 */
* { -webkit-tap-highlight-color: transparent; }
button, .btn, [onclick], .file-card, .file-list-row, .transfer-item, .album-item, .nav-tab, .profile-menu-item, .menu-item { -webkit-tap-highlight-color: transparent; }
button:focus, .btn:focus, input:focus, [onclick]:focus, a:focus { outline: none; box-shadow: none; }
button:active, .btn:active { transform: none; }

/* Login Page（固定不滚动，键盘弹出时图标文字下移避让） */
.login-page { height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--theme) 0%, var(--theme-dark) 100%); position: relative; overflow: hidden; overscroll-behavior: none; }
.login-page::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%); animation: float 20s ease-in-out infinite; pointer-events: none; z-index: 0; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, -30px); } }
.login-card { background: var(--bg-card); border-radius: var(--radius); padding: 40px; width: 400px; max-width: 90vw; box-shadow: var(--shadow-lg); position: relative; z-index: 1; display: flex; flex-direction: column; transition: transform 0.3s ease; }
.login-logo { text-align: center; margin-bottom: 24px; order: 1; transition: all 0.3s ease; }
.login-logo .icon { width: 64px; height: 64px; background: var(--theme); border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 32px; color: white; margin-bottom: 12px; }
.login-logo h1 { font-size: 24px; font-weight: 700; }
.login-logo p { color: var(--text-secondary); font-size: 13px; margin-top: 4px; }
#auth-form { order: 2; }
.login-copyright { order: 3; margin-top: 16px; text-align: center; font-size: 12px; color: var(--text-muted); }


.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; background: var(--bg); color: var(--text); transition: border-color 0.2s; outline: none; }
.form-group input:focus { border-color: var(--theme); box-shadow: 0 0 0 3px rgba(79,110,247,0.1); }
.form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; background: var(--bg); color: var(--text); resize: vertical; box-sizing: border-box; outline: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; transition: all 0.2s; cursor: pointer; }
.btn-primary { background: var(--theme); color: white; }
.btn-primary:hover { background: var(--theme-dark); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-secondary { background: var(--bg-hover); color: var(--text); }
.btn-secondary:hover { background: var(--bg-active); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--theme); color: var(--theme); }
.login-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-secondary); }
.login-footer a { cursor: pointer; }
.login-beian { text-align: center; margin-top: 12px; font-size: 12px; }
.login-beian a { color: var(--text-muted); text-decoration: none; }
.login-beian a:hover { color: var(--theme); text-decoration: underline; }

/* Main Layout */
.app-layout { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: var(--sidebar-w); background: var(--bg-card); border-right: 1px solid var(--border); display: flex; flex-direction: column; transition: width 0.3s; flex-shrink: 0; }
.sidebar-header { height: var(--nav-h); display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--border); gap: 10px; }
.sidebar-header .logo-icon { width: 36px; height: 36px; background: var(--theme); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; flex-shrink: 0; }
.sidebar-header .logo-text { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.sidebar-nav { flex: 1; padding: 12px 8px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; color: var(--text-secondary); font-size: 14px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; }
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active { background: var(--theme); color: white; }
.nav-item .nav-icon { font-size: 18px; flex-shrink: 0; width: 20px; text-align: center; }
.nav-section { font-size: 11px; text-transform: uppercase; color: var(--text-muted); padding: 12px 14px 6px; font-weight: 600; letter-spacing: 0.5px; }
.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }
.storage-bar { padding: 8px; }
.storage-bar .label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.storage-bar .bar { height: 6px; background: var(--bg-hover); border-radius: 3px; overflow: hidden; }
.storage-bar .bar-fill { height: 100%; background: var(--theme); border-radius: 3px; transition: width 0.3s; }

/* Main Content */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar { height: var(--nav-h); background: var(--bg-card); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 20px; gap: 16px; flex-shrink: 0; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 14px; flex: 1; overflow: hidden; }
.breadcrumb .crumb { color: var(--text-secondary); cursor: pointer; white-space: nowrap; }
.breadcrumb .crumb:hover { color: var(--theme); }
.breadcrumb .crumb.current { color: var(--text); font-weight: 500; }
.breadcrumb .separator { color: var(--text-muted); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.search-box { position: relative; }
.search-box input { padding: 8px 12px 8px 36px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; width: 240px; background: var(--bg); color: var(--text); outline: none; transition: all 0.2s; }
.search-box input:focus { border-color: var(--theme); width: 300px; }
.search-box .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; }
.user-menu { position: relative; }
.user-avatar { width: 36px; height: 36px; border-radius: 12px; background: var(--theme); color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; cursor: pointer; font-size: 14px; }
.user-dropdown { position: absolute; top: 46px; right: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); min-width: 180px; z-index: 100; display: none; overflow: hidden; }
.user-dropdown.show { display: block; }
.user-dropdown .dropdown-item { padding: 10px 16px; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 10px; color: var(--text); }
.user-dropdown .dropdown-item:hover { background: var(--bg-hover); }
.user-dropdown .dropdown-item.danger { color: var(--danger); }
.user-dropdown .dropdown-header { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.user-dropdown .dropdown-header .name { font-weight: 600; }
.user-dropdown .dropdown-header .role { font-size: 12px; color: var(--text-secondary); }

/* File Area */
.file-area { flex: 1; overflow: auto; padding: 24px; }
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.view-toggle { display: flex; background: var(--bg-hover); border-radius: var(--radius-sm); padding: 2px; }
.view-toggle button { border: none; background: transparent; padding: 6px 12px; border-radius: 6px; cursor: pointer; color: var(--text-secondary); font-size: 13px; }
.view-toggle button.active { background: var(--bg-card); color: var(--text); box-shadow: var(--shadow); }

/* File Grid */
#file-container { width: 100%; }
.file-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; width: 100%; }
.file-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 8px 10px; cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); position: relative; text-align: center; aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none; }
.file-card:hover { border-color: var(--theme); box-shadow: 0 4px 16px rgba(79,110,247,0.12); transform: translateY(-2px); }
.file-card:active { transform: translateY(0); }
.file-card.selected { border-color: var(--theme); background: var(--bg-active); box-shadow: 0 0 0 2px rgba(79,110,247,0.2); }
/* 图标（底色已铺满卡片，去掉独立底块） */
.file-card .file-icon-wrap { width: calc(var(--folder-icon-size, 48px) + 16px); height: calc(var(--folder-icon-size, 48px) + 16px); min-height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: transparent; box-shadow: none; margin-bottom: 6px; flex-shrink: 0; }
.file-card .file-icon-wrap.is-folder { background: transparent; }
.file-card .file-icon-wrap img { max-width: calc(var(--folder-icon-size, 48px) + 6px); max-height: calc(var(--folder-icon-size, 48px) + 6px); object-fit: contain; border-radius: 6px; }
.file-card .file-icon-wrap svg { width: calc(var(--folder-icon-size, 48px) - 4px); height: calc(var(--folder-icon-size, 48px) - 4px); }
.file-card .file-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; line-height: 1.3; min-height: 17px; margin-top: 2px; }
.file-card .file-size { font-size: 10px; color: var(--text-muted); margin-top: 2px; flex-shrink: 0; }
.file-card .file-actions { position: absolute; top: 8px; right: 8px; display: none; gap: 2px; pointer-events: none; z-index: 3; }
.file-card:hover .file-actions { display: flex; }
.file-card .file-actions .icon-btn { pointer-events: auto; width: 26px; height: 26px; padding: 0; background: rgba(255,255,255,0.92); color: var(--text-secondary); border: 1px solid rgba(126,154,235,0.18); border-radius: 8px; font-size: 12px; box-shadow: 0 1px 4px rgba(40,70,160,0.1); display: flex; align-items: center; justify-content: center; opacity: 0.85; transition: all 0.15s; }
.file-card .file-actions .icon-btn:hover { background: #fff; color: var(--theme); opacity: 1; }
.file-card .file-actions .icon-btn svg { width: 13px; height: 13px; }
.file-card .file-actions .rename-btn { outline: none; -webkit-tap-highlight-color: transparent; }
.file-card .file-actions .rename-btn:focus { outline: none; }
.file-card .file-actions .rename-btn:active { background: var(--bg-hover); color: var(--theme); opacity: 1; transform: scale(0.92); }
.file-card .favorite-badge { position: absolute; top: 8px; left: 8px; color: var(--warning); font-size: 14px; }
.file-card .favorite-badge svg { width: 16px; height: 16px; }

/* 文件剩余有效期标签 */
.expire-badge { display: inline-flex; align-items: center; padding: 1px 6px; margin-left: 4px; border-radius: 8px; font-size: 9px; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.expire-badge.expire-normal { background: rgba(120,130,150,0.12); color: var(--text-muted); }
.expire-badge.expire-warning { background: rgba(255,152,0,0.14); color: #e67e00; }
.expire-badge.expire-danger { background: rgba(231,76,60,0.14); color: #e74c3c; }
.expire-badge.expire-expired { background: rgba(231,76,60,0.16); color: #d63031; }
.file-card .file-expire-card { display: flex; align-items: center; justify-content: center; margin-top: 3px; flex-shrink: 0; }
.file-card .file-expire-card .expire-badge { margin-left: 0; font-size: 10px; }
.file-expire-mobile { margin-top: 3px; }
.file-expire-mobile .expire-badge { margin-left: 0; font-size: 10px; }
.expire-inline { display: block; margin-top: 3px; }
.expire-inline .expire-badge { margin-left: 0; }

/* File List */
.file-list { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.file-list-header { display: grid; grid-template-columns: auto 1fr 120px 100px 140px 80px; padding: 10px 16px; background: var(--bg-hover); font-size: 12px; font-weight: 600; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.file-list-row { display: grid; grid-template-columns: auto 1fr 120px 100px 140px 80px; padding: 10px 16px; align-items: center; cursor: pointer; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.file-list-row .file-checkbox { position: static; display: flex; width: 22px; height: 22px; margin-right: 8px; }
.file-list-row:hover { background: var(--bg-hover); }
.file-list-row.selected { background: var(--bg-active); }
.file-list-row .file-name-cell { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.file-list-row .file-name-cell .icon { font-size: 22px; flex-shrink: 0; }
.file-list-row .file-name-cell .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list-row .file-meta-mobile { display: none; }
.file-list-row .meta { font-size: 12px; color: var(--text-secondary); }
.file-list-row .actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.2s; }
.file-list-row:hover .actions { opacity: 1; }
.icon-btn { width: 28px; height: 28px; border: none; background: transparent; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-secondary); font-size: 14px; transition: all 0.15s; }
.icon-btn:hover { background: var(--bg-active); color: var(--theme); }
.icon-btn.danger:hover { color: var(--danger); }

/* Empty State */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 72px; margin-bottom: 20px; opacity: 0.4; display: inline-flex; align-items: center; justify-content: center; width: 100px; height: 100px; background: var(--bg-hover); border-radius: 50%; }
.empty-state .icon svg { width: 48px; height: 48px; }
.empty-state h3 { font-size: 18px; color: var(--text-secondary); margin-bottom: 10px; font-weight: 600; }
.empty-state p { font-size: 14px; max-width: 300px; margin: 0 auto; line-height: 1.6; }

/* Skeleton Loading */
.skeleton { background: linear-gradient(90deg, var(--bg-hover) 25%, var(--bg-active) 50%, var(--bg-hover) 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.skeleton-card { aspect-ratio: 1 / 1; border-radius: var(--radius); }
.skeleton-list { display: flex; flex-direction: column; gap: 10px; }
.skeleton-row { height: 56px; border-radius: var(--radius-sm); }

/* Liquid Glass */
.glass { background: rgba(255,255,255,0.7); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255,255,255,0.3); }
[data-theme="dark"] .glass { background: rgba(26,29,39,0.7); border: 1px solid rgba(255,255,255,0.1); }

/* Drop Zone */
.drop-overlay { position: fixed; inset: 0; background: rgba(79,110,247,0.1); border: 3px dashed var(--theme); z-index: 9999; display: none; align-items: center; justify-content: center; font-size: 24px; color: var(--theme); font-weight: 600; pointer-events: none; }
.drop-overlay.show { display: flex; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 200000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.show { display: flex; }
.modal { background: var(--bg-card); border-radius: var(--radius); width: 100%; max-width: 500px; max-height: 90vh; overflow: hidden; box-shadow: var(--shadow-lg); animation: modalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
@keyframes modalIn { from { transform: scale(0.95) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--bg-card); }
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close { width: 32px; height: 32px; border: none; background: transparent; border-radius: 6px; cursor: pointer; color: var(--text-secondary); font-size: 18px; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--bg-hover); }
.modal-body { padding: 20px; max-height: 60vh; overflow-y: auto; background: var(--bg-card); }
.modal-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: var(--bg-card); }

/* Preview Modal */
.preview-modal .modal { max-width: 90vw; max-height: 90vh; }
.preview-header { display: flex; align-items: center; gap: 12px; justify-content: flex-start !important; }
.preview-header .btn { flex-shrink: 0; }
.preview-title { flex: 1; text-align: center; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.preview-meta { padding: 8px 20px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-secondary); text-align: center; }
.preview-meta .preview-expire { display: block; margin-top: 4px; font-size: 11px; }
.preview-meta .preview-expire .expire-badge { margin-left: 0; margin-right: 4px; }
.preview-content { display: flex; flex-direction: column; height: 60vh; }
.preview-body { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--bg); overflow: auto; padding: 20px; }
.preview-body img { max-width: 100%; max-height: 100%; object-fit: contain; }
.preview-body video, .preview-body audio { max-width: 100%; }
.preview-body iframe { width: 100%; height: 100%; border: none; }
.preview-body pre { width: 100%; height: 100%; overflow: auto; padding: 16px; background: var(--bg-card); border-radius: var(--radius-sm); font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.preview-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 10px; }

/* Recycle Bin */
.recycle-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); }
.recycle-info .recycle-title { font-size: 18px; font-weight: 600; }
.recycle-info .recycle-size { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.recycle-select-all { background: none; border: none; color: var(--theme); font-size: 14px; cursor: pointer; padding: 8px 12px; }
.recycle-hint { padding: 10px 16px; background: var(--bg); font-size: 12px; color: var(--text-muted); text-align: center; }
.recycle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; max-height: 50vh; overflow-y: auto; }
.recycle-item { position: relative; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: var(--bg); cursor: pointer; border: 2px solid transparent; transition: all 0.2s; }
.recycle-item.selected { border-color: var(--theme); }
.recycle-item.selected::after { content: ''; position: absolute; inset: 0; background: rgba(79, 110, 247, 0.15); }
.recycle-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; background: var(--theme); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; z-index: 2; }
.recycle-days { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,0.6); color: white; font-size: 10px; padding: 2px 6px; border-radius: 4px; z-index: 2; }
.recycle-thumb { width: 100%; height: 75%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.recycle-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recycle-file-icon { font-size: 32px; }
.recycle-name { padding: 4px 6px; font-size: 11px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recycle-footer { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); }
.recycle-footer .btn { flex: 1; }

/* Fullscreen Recycle Bin */
#recycle-fullscreen-container { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: none; }
.recycle-fullscreen { display: flex; flex-direction: column; height: 100vh; }
#fullscreen-profile-container, #fullscreen-storage-container, #fullscreen-member-container { position: fixed; inset: 0; z-index: 9999; background: var(--bg); }
#fullscreen-profile-container .recycle-fullscreen, #fullscreen-storage-container .recycle-fullscreen, #fullscreen-member-container .recycle-fullscreen { height: 100dvh; }.recycle-fullscreen-header { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-card); gap: 12px; flex-shrink: 0; }
.recycle-back-btn { background: none; border: none; font-size: 24px; cursor: pointer; padding: 8px; color: var(--text); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.recycle-back-btn:hover { background: var(--bg-hover); }
.recycle-fullscreen-title { flex: 1; }
.recycle-fullscreen-title .recycle-title { font-size: 18px; font-weight: 600; }
.recycle-fullscreen-title .recycle-size { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.recycle-fullscreen-hint { padding: 8px 16px; background: var(--bg); font-size: 12px; color: var(--text-muted); text-align: center; flex-shrink: 0; }
.recycle-fullscreen-content { flex: 1; overflow-y: auto; padding: 12px; }
.recycle-fullscreen-footer { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--bg-card); flex-shrink: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.recycle-fullscreen-footer .btn { flex: 1; }

/* SVG图标统一样式 */
.btn svg, .icon-btn svg, .nav-icon svg, .menu-icon svg, .search-icon svg, .file-icon svg, .icon svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
}

.nav-icon svg { width: 22px; height: 22px; }
.menu-icon svg { width: 20px; height: 20px; }
.search-icon svg { width: 16px; height: 16px; }
.file-icon svg { width: 24px; height: 24px; }
.icon svg { width: 48px; height: 48px; }
.favorite-badge svg { width: 16px; height: 16px; }
.menu-arrow svg { width: 16px; height: 16px; }

/* Upload Panel */
.upload-panel { position: fixed; bottom: 20px; right: 20px; width: 360px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 500; display: none; }
.upload-panel.show { display: block; }
.upload-panel-header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.upload-panel-header h4 { font-size: 14px; }
.upload-list { max-height: 300px; overflow-y: auto; }
.upload-item { padding: 10px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.upload-item .name { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item .progress { width: 80px; height: 4px; background: var(--bg-hover); border-radius: 2px; overflow: hidden; }
.upload-item .progress-fill { height: 100%; background: var(--theme); transition: width 0.3s; }
.upload-item .status { font-size: 11px; color: var(--text-muted); width: 40px; text-align: right; }

/* Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 200001; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: 14px; display: flex; align-items: center; gap: 8px; animation: toastIn 0.3s ease; max-width: 360px; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--theme); }

/* Album View */
.album-grid { column-count: 3; column-gap: 10px; }
.album-item { break-inside: avoid; margin-bottom: 10px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; position: relative; background: var(--bg-hover); }
.album-item img { width: 100%; height: auto; display: block; transition: transform 0.3s; }
.album-item:hover img { transform: scale(1.03); }
.album-item .file-actions { position: absolute; top: 4px; right: 4px; display: none; z-index: 2; pointer-events: none; }
.album-item:hover .file-actions { display: flex; }
.album-item .file-actions .icon-btn { pointer-events: auto; background: rgba(255,255,255,0.85); color: var(--text-secondary); border: none; border-radius: 4px; cursor: pointer; width: 24px; height: 24px; padding: 0; display: flex; align-items: center; justify-content: center; opacity: 0.8; backdrop-filter: blur(4px); transition: all 0.15s; }
.album-item .file-actions .icon-btn:hover { background: #fff; color: var(--theme); opacity: 1; }
.album-item .file-actions .icon-btn svg { width: 14px; height: 14px; }
.album-item .file-actions .rename-btn { outline: none; -webkit-tap-highlight-color: transparent; }
.album-item .file-actions .rename-btn:focus { outline: none; }
.album-item .file-actions .rename-btn:active { background: #fff; color: var(--theme); opacity: 1; transform: scale(0.92); }
.album-item { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none; }
@media (max-width: 600px) { .album-grid { column-count: 2; column-gap: 8px; } .album-item { margin-bottom: 8px; } .album-item .file-actions { display: flex; } }

/* Admin Layout */
.admin-layout { display: flex; height: 100vh; }
.admin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.mobile-topbar { display: none; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.mobile-topbar .icon-btn { background: none; border: none; cursor: pointer; padding: 4px 8px; }
.admin-content { flex: 1; padding: 24px; overflow-y: auto; }
.admin-header { margin-bottom: 24px; }
.admin-header h2 { font-size: 22px; font-weight: 700; }
.admin-header p { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-card .label { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.stat-card .value { font-size: 28px; font-weight: 700; }
.stat-card .icon { float: right; font-size: 32px; opacity: 0.5; }

.data-table { width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.data-table table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; color: var(--text-secondary); background: var(--bg-hover); border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: var(--bg-hover); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 500; }
.badge.active { background: rgba(16,185,129,0.1); color: var(--success); }
.badge.disabled { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge.admin { background: rgba(79,110,247,0.1); color: var(--theme); }
.badge.user { background: rgba(107,114,128,0.1); color: var(--text-secondary); }

.settings-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.settings-section h3 { font-size: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--bg-hover); }
.setting-row:last-child { border-bottom: none; }
.setting-row .label { font-size: 14px; }
.setting-row .desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.setting-row input[type="text"], .setting-row input[type="number"], .setting-row select, .setting-row textarea { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; background: var(--bg); color: var(--text); width: 240px; outline: none; }
.setting-row input[type="color"] { width: 40px; height: 32px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; background: var(--bg); }
.setting-row textarea { min-height: 80px; resize: vertical; }

/* Toggle Switch */
.toggle { position: relative; width: 52px; height: 26px; display: inline-block; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle .slider { position: absolute; cursor: pointer; inset: 0; background: #cbd5e1; border: 2px solid #94a3b8; border-radius: 13px; transition: all 0.3s; box-shadow: inset 0 1px 3px rgba(0,0,0,0.15); }
.toggle .slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 2px; top: 2px; background: #ffffff; border-radius: 50%; transition: all 0.3s; box-shadow: 0 1px 4px rgba(0,0,0,0.3); border: 1px solid #e2e8f0; }
.toggle .slider::after { content: 'OFF'; position: absolute; right: 5px; top: 50%; transform: translateY(-50%); font-size: 9px; font-weight: 700; color: #64748b; transition: all 0.3s; }
.toggle input:checked + .slider { background: var(--theme); border-color: var(--theme-dark); box-shadow: inset 0 1px 3px rgba(0,0,0,0.2); }
.toggle input:checked + .slider::before { transform: translateX(26px); }
.toggle input:checked + .slider::after { content: 'ON'; right: auto; left: 5px; color: white; }
[data-theme="dark"] .toggle .slider { background: #475569; border-color: #64748b; }
[data-theme="dark"] .toggle .slider::after { color: #cbd5e1; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.pagination button { padding: 6px 12px; border: 1px solid var(--border); background: var(--bg-card); border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text); }
.pagination button:hover { border-color: var(--theme); color: var(--theme); }
.pagination button.active { background: var(--theme); color: white; border-color: var(--theme); }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Welcome Popup */
.welcome-popup { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 3000; display: flex; align-items: center; justify-content: center; }
.welcome-card { background: var(--bg-card); border-radius: var(--radius); padding: 32px; max-width: 440px; text-align: center; box-shadow: var(--shadow-lg); }
.welcome-card h2 { font-size: 22px; margin-bottom: 12px; color: var(--theme); }
.welcome-card p { color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }

/* Responsive */
@media (max-width: 768px) {
  .sidebar { position: fixed; left: -240px; top: 0; bottom: 0; z-index: 100; transition: left 0.3s; }
  .sidebar.open { left: 0; }
  .sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; display: none; }
  .sidebar-overlay.show { display: block; }
  .search-box input { width: 140px; }
  .search-box input:focus { width: 180px; }
  .file-list-header { display: none; }
  .file-list { background: transparent; border: none; border-radius: 0; }
  .file-list-row { 
    grid-template-columns: auto 1fr auto; 
    padding: 10px 14px; 
    gap: 10px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    align-items: center;
  }
  .file-list-row .file-name-cell { 
    flex-direction: row; 
    align-items: center; 
    gap: 10px;
    min-width: 0;
  }
  .file-list-row .file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .file-list-row .file-name-cell .icon { 
    font-size: 26px; 
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
  }
  .file-list-row .file-name-cell .icon svg {
    width: 26px;
    height: 26px;
  }
  .file-list-row .file-name-cell .icon img {
    width: 32px !important;
    height: 32px !important;
  }
  .file-list-row .file-name-cell .name { 
    font-size: 14px; 
    font-weight: 500;
    width: 100%;
    line-height: 1.3;
  }
  .file-list-row .file-meta-mobile {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.2;
  }
  .file-list-row .hide-mobile { display: none !important; }
  .file-list-row .actions { opacity: 1; display: flex; gap: 4px; }
  .file-list-row .actions .icon-btn { width: 28px; height: 28px; }
  .file-list-row .actions .icon-btn svg { width: 16px; height: 16px; }
  .file-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .file-card { padding: 8px 6px 14px; border-radius: 12px; justify-content: flex-start; }
  .file-card .file-icon-wrap { width: calc(var(--folder-icon-size, 48px) + 6px); height: calc(var(--folder-icon-size, 48px) + 6px); min-height: 42px; border-radius: 12px; margin-bottom: 3px; }
  .file-card .file-icon-wrap img { max-width: calc(var(--folder-icon-size, 48px) + 2px); max-height: calc(var(--folder-icon-size, 48px) + 2px); }
  .file-card .file-icon-wrap svg { width: calc(var(--folder-icon-size, 48px) - 8px); height: calc(var(--folder-icon-size, 48px) - 8px); }
  .file-card .file-name { font-size: 12px; margin-top: 0; line-height: 1.2; min-height: 15px; }
  .file-card .file-size { font-size: 9px; margin-top: 2px; }
  .file-card .file-expire-card { margin-top: 2px; }
  .file-card .file-actions { display: flex; top: 6px; right: 6px; }
  .file-card .file-actions .icon-btn { width: 24px; height: 24px; border-radius: 7px; }
  .file-card .file-actions .icon-btn svg { width: 12px; height: 12px; }
  .file-card .favorite-badge { top: 6px; left: 6px; }
  .login-card { padding: 24px; }
  .admin-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  /* Admin table horizontal scroll on mobile */
  .data-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table table { min-width: 700px; }
  .admin-header h2 { font-size: 18px; }
  .setting-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .setting-row input[type="text"], .setting-row input[type="number"], .setting-row input[type="color"] { width: 100%; }
  .btn { padding: 8px 14px; font-size: 13px; }
  .btn-sm { padding: 6px 10px; font-size: 12px; }
  .modal { width: 92%; max-width: 92%; max-height: 85vh; overflow-y: auto; }
  .pagination { flex-wrap: wrap; gap: 8px; }
}

/* Announcement banner */
.announcement-banner { background: linear-gradient(90deg, var(--theme), var(--theme-light)); color: white; padding: 8px 20px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.announcement-banner .close { margin-left: auto; cursor: pointer; opacity: 0.8; }

/* ============ V2 Layout ============ */
.app-layout-v2 { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.app-topbar { height: 56px; background: var(--bg-card); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; flex-shrink: 0; gap: 12px; position: relative; z-index: 50; }
.topbar-left { display: flex; align-items: center; gap: 10px; }
.app-logo { font-size: 24px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.app-logo img { display: block; vertical-align: middle; }
.app-title { font-size: 16px; font-weight: 600; line-height: 1; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.user-avatar-img { width: 36px; height: 36px; border-radius: 12px; object-fit: cover; cursor: pointer; border: 2px solid var(--theme); }
.app-content { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 10px; width: 100%; }
.file-header { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.bottom-nav { height: 60px; background: var(--bg-card); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-around; flex-shrink: 0; padding-bottom: env(safe-area-inset-bottom); position: relative; z-index: 60; }
.nav-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 12px; cursor: pointer; color: var(--text-muted); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); flex: 1; height: 100%; position: relative; }
.nav-tab .nav-icon { font-size: 20px; transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-tab .nav-label { font-size: 11px; font-weight: 500; transition: color 0.25s; }
.nav-tab:hover { color: var(--text-secondary); }
.nav-tab:hover .nav-icon { transform: translateY(-2px); }
.nav-tab.active { color: var(--theme); }
.nav-tab.active .nav-icon { transform: scale(1.15); }
.nav-tab.active::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 3px; background: var(--theme); border-radius: 0 0 3px 3px; }
.breadcrumb-bar { padding: 10px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; font-size: 14px; overflow-x: auto; white-space: nowrap; flex-shrink: 0; }
.breadcrumb-bar .crumb { color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; gap: 4px; line-height: 1; }
.breadcrumb-bar .crumb:hover { color: var(--theme); }
.breadcrumb-bar .crumb.current { color: var(--text); font-weight: 500; }
.breadcrumb-bar .crumb svg { width: 18px; height: 18px; flex-shrink: 0; }
.breadcrumb-bar .separator { color: var(--text-muted); display: flex; align-items: center; }
.selection-bar { padding: 8px 16px; background: var(--theme); color: white; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.selection-count { cursor: pointer; font-size: 14px; }
.selection-count strong { font-size: 16px; }
.selection-actions { display: flex; gap: 6px; }
.selection-actions .btn { background: rgba(255,255,255,0.2); color: white; border: none; }
.selection-actions .btn:hover { background: rgba(255,255,255,0.3); }
.file-toolbar { padding: 10px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.file-toolbar .toolbar-row { display: flex; align-items: center; gap: 6px; }
.file-toolbar .toolbar-row-main { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.file-toolbar .toolbar-main-actions { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.file-toolbar .toolbar-main-actions .btn { flex-shrink: 0; white-space: nowrap; flex-direction: column !important; flex-wrap: nowrap !important; display: inline-flex !important; padding: 6px 10px; gap: 2px; min-width: 56px; }
.file-toolbar .toolbar-main-actions .btn svg { width: 20px; height: 20px; }
.file-toolbar .toolbar-main-actions .btn span, .file-toolbar .toolbar-main-actions .btn { font-size: 11px; }
.file-toolbar .toolbar-row-actions .btn { flex-direction: column !important; flex-wrap: nowrap !important; display: inline-flex !important; padding: 6px 10px; gap: 2px; min-width: 56px; white-space: nowrap; }
.file-toolbar .toolbar-row-actions .btn svg { width: 20px; height: 20px; }
.file-toolbar .toolbar-row-actions .btn span, .file-toolbar .toolbar-row-actions .btn { font-size: 11px; }
.file-toolbar .toolbar-view-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }

/* 多选模式选择条 */
.fav-select-bar, .img-select-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--theme); color: #fff;
  position: sticky; top: 0; z-index: 10; flex-shrink: 0;
}
.fav-select-bar .select-count, .img-select-bar .select-count { font-size: 14px; }
.fav-select-bar .select-count strong, .img-select-bar .select-count strong { font-size: 16px; }
.fav-select-bar .select-bar-actions, .img-select-bar .select-bar-actions { display: flex; gap: 8px; }
.fav-select-bar .btn, .img-select-bar .btn { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.fav-select-bar .btn:hover, .img-select-bar .btn:hover { background: rgba(255,255,255,0.3); }

/* 多选模式操作条 */
.fav-actions-bar, .img-actions-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: var(--bg-card);
  border-bottom: 1px solid var(--border); flex-shrink: 0;
  position: sticky; top: 44px; z-index: 9;
}
.fav-actions-bar .btn, .img-actions-bar .btn { flex: 1; justify-content: center; }

/* 文件卡片复选框 */
.file-checkbox, .album-checkbox {
  position: absolute; top: 8px; right: 8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  z-index: 5; transition: all 0.2s;
}
.file-checkbox.checked, .album-checkbox.checked {
  background: var(--theme); border-color: var(--theme); color: #fff;
}
.file-checkbox svg, .album-checkbox svg { width: 14px; height: 14px; }

/* 选中状态 */
.file-card.selected, .album-item.selected {
  border-color: var(--theme); box-shadow: 0 0 0 2px var(--theme);
}
.album-item.selected img { opacity: 0.7; }

/* 管理员预览弹窗底部按钮 - 上下式布局 */
.admin-preview-actions {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.admin-preview-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  min-width: 60px;
}
.admin-preview-btn:hover {
  background: var(--bg-hover, #f0f0f0);
  transform: translateY(-1px);
}
.admin-preview-btn svg {
  width: 24px;
  height: 24px;
}
.admin-preview-btn span {
  font-size: 12px;
  white-space: nowrap;
}
.admin-preview-btn.primary {
  background: var(--theme);
  color: #fff;
}
.admin-preview-btn.primary:hover {
  opacity: 0.9;
}
.admin-preview-btn.danger {
  background: #ff4d4f;
  color: #fff;
}
.admin-preview-btn.danger:hover {
  opacity: 0.9;
}

/* 用户端预览弹窗底部按钮 - 上下式布局 */
.preview-actions {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.preview-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  min-width: 56px;
}
.preview-action-btn:hover {
  background: var(--bg-hover, #f0f0f0);
  transform: translateY(-1px);
}
.preview-action-btn svg {
  width: 22px;
  height: 22px;
}
.preview-action-btn span {
  font-size: 12px;
  white-space: nowrap;
}
.preview-action-btn.primary {
  background: var(--theme);
  color: #fff;
}
.preview-action-btn.primary:hover {
  opacity: 0.9;
}
.preview-action-btn.danger {
  background: #ff4d4f;
  color: #fff;
}
.preview-action-btn.danger:hover {
  opacity: 0.9;
}
.file-toolbar .toolbar-row-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--border); }
.file-toolbar .toolbar-row-right { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.file-toolbar .toolbar-view-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.file-toolbar .sort-select { padding: 6px 10px; font-size: 13px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card); color: var(--text); cursor: pointer; }
.file-toolbar .view-toggle { display: flex; background: var(--bg-card); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.file-toolbar .view-toggle button { padding: 6px 10px; border: none; background: transparent; cursor: pointer; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; }
.file-toolbar .view-toggle button svg { width: 16px; height: 16px; }
.file-toolbar .view-toggle button.active { background: var(--theme); color: white; }
.file-toolbar .spacer { flex: 1; }
.file-list-header-bar { padding: 8px 16px; display: flex; justify-content: flex-end; align-items: center; background: var(--bg); }
.file-list-tools { display: flex; align-items: center; gap: 8px; }
.file-list-tools .view-toggle { display: flex; background: var(--bg-card); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.file-list-tools .view-toggle button { padding: 6px 10px; border: none; background: transparent; cursor: pointer; font-size: 14px; color: var(--text-secondary); }
.file-list-tools .view-toggle button.active { background: var(--theme); color: white; }
.file-checkbox { width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: white; background: var(--bg-card); cursor: pointer; transition: all 0.15s; flex-shrink: 0; }
.file-checkbox.checked { background: var(--theme); border-color: var(--theme); }
.file-card .file-checkbox { position: absolute; top: 8px; left: 8px; z-index: 2; }
.selection-panel { position: fixed; bottom: 70px; left: 16px; right: 16px; background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 100; max-height: 50vh; display: flex; flex-direction: column; overflow: hidden; }
.panel-header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.panel-list { flex: 1; overflow-y: auto; padding: 8px; }
.panel-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); }
.panel-item:hover { background: var(--bg-hover); }
.panel-item .name { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-footer { padding: 10px 16px; border-top: 1px solid var(--border); text-align: right; }
.profile-page { padding: 16px; max-width: 600px; margin: 0 auto; }
.profile-header { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--bg-card); border-radius: var(--radius); margin-bottom: 16px; }
.profile-avatar { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; border: 3px solid var(--theme); cursor: pointer; flex-shrink: 0; }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.profile-role { font-size: 13px; color: var(--text-secondary); margin-bottom: 2px; }
.profile-uid { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.profile-status { font-size: 12px; color: var(--text-muted); }
.profile-storage { padding: 16px 20px; background: var(--bg-card); border-radius: var(--radius); margin-bottom: 16px; }
.storage-info { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.storage-bar-lg { height: 10px; background: var(--bg-hover); border-radius: 5px; overflow: hidden; margin-bottom: 6px; }
.storage-fill-lg { height: 100%; background: linear-gradient(90deg, var(--theme), var(--theme-light)); border-radius: 5px; transition: width 0.3s; }
.storage-hint { font-size: 12px; color: var(--text-muted); }
.profile-menu { background: var(--bg-card); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.profile-menu-item { display: flex; align-items: center; padding: 14px 16px; cursor: pointer; border-bottom: 1px solid var(--border); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:hover { background: var(--bg-hover); padding-left: 20px; }
.profile-menu-item:active { background: var(--bg-active); }
.profile-menu-item .menu-icon { font-size: 18px; margin-right: 12px; width: 24px; text-align: center; display: flex; align-items: center; justify-content: center; }
.profile-menu-item .menu-text { flex: 1; font-size: 14px; }
.profile-menu-item .menu-arrow { color: var(--text-muted); font-size: 18px; transition: transform 0.2s; }
.profile-menu-item:hover .menu-arrow { transform: translateX(4px); color: var(--theme); }
.admin-section { background: var(--bg-card); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.admin-section .section-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.profile-logout { margin-bottom: 20px; }
.email-status-banner { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; cursor: pointer; line-height: 1.5; flex-wrap: wrap; }
.email-status-banner .es-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.email-status-banner .es-time { font-size: 12px; opacity: 0.85; }
.email-status-banner.danger { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.email-status-banner.warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.email-status-banner .es-icon { font-size: 16px; flex-shrink: 0; }
.email-status-banner .es-time { font-size: 12px; opacity: 0.85; }
.email-status-banner .es-link { margin-left: auto; font-size: 12px; font-weight: 600; text-decoration: underline; flex-shrink: 0; }
.profile-redeem { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: linear-gradient(135deg, #fef9e7, #fff7ed); border: 1px solid #fde68a; border-radius: var(--radius); margin-bottom: 16px; cursor: pointer; transition: all 0.2s; }
.profile-redeem:hover { box-shadow: 0 2px 12px rgba(251, 191, 36, 0.15); }
.profile-redeem .redeem-icon { font-size: 22px; }
.profile-redeem .redeem-text { flex: 1; font-size: 14px; font-weight: 600; color: #92400e; }
.profile-redeem .menu-arrow { color: #d97706; font-size: 18px; }
.profile-detail { padding: 4px 0; }
.profile-detail-item { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--border); font-size: 14px; }
.profile-detail-item:last-child { border-bottom: none; }
.profile-detail-item .pd-label { width: 76px; flex-shrink: 0; color: var(--text-muted); font-size: 13px; }
.profile-detail-item .pd-value { flex: 1; min-width: 0; word-break: break-all; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.profile-detail-item .pd-action { flex-shrink: 0; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 14px; background: var(--theme); border-radius: 6px; border: none; }
.profile-detail-item .pd-action:active { opacity: 0.7; }
.profile-detail-btn { flex-shrink: 0; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 12px; background: var(--theme); border-radius: 8px; margin-left: auto; border: none; }
.storage-fullscreen-card { background: var(--bg-card); border-radius: var(--radius); padding: 16px; border: 1px solid var(--border); }
.profile-avatar-lg { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; border: 3px solid var(--theme); }
.text-danger { color: #ef4444 !important; }
.redeem-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.badge.public { background: #eef2ff; color: #4f6ef7; }
.transfer-tabs { display: flex; justify-content: space-between; align-items: center; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 0 12px; flex-shrink: 0; }
.transfer-tab { padding: 12px 12px; cursor: pointer; font-size: 13px; color: var(--text-secondary); border-bottom: 2px solid transparent; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.transfer-tab.active { color: var(--theme); border-bottom-color: var(--theme); font-weight: 600; }

.transfer-list { display: flex; flex-direction: column; gap: 8px; }
.transfer-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-card); border-radius: 10px; border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; }
.transfer-item:active { background: var(--bg-hover); transform: scale(0.98); }
.transfer-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg-hover); border-radius: 8px; font-size: 18px; flex-shrink: 0; }
.transfer-info { flex: 1; min-width: 0; }
.transfer-name { font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.transfer-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); flex-wrap: wrap; }
.transfer-open { font-size: 12px; color: #fff; font-weight: 500; flex-shrink: 0; padding: 6px 12px; background: var(--theme); border-radius: 16px; }
.transfer-open-btn { font-size: 12px; color: #fff; font-weight: 500; flex-shrink: 0; padding: 6px 14px; background: var(--theme); border-radius: 16px; cursor: pointer; transition: all 0.2s; }
.transfer-open-btn:active { opacity: 0.8; transform: scale(0.95); }
.transfer-progress { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.transfer-progress .progress-bar { flex: 1; height: 4px; background: var(--bg-hover); border-radius: 2px; overflow: hidden; }
.transfer-progress .progress-fill { height: 100%; background: var(--theme); border-radius: 2px; transition: width 0.3s; }
.transfer-progress .progress-text { font-size: 10px; color: var(--text-muted); min-width: 35px; text-align: right; }
.transfer-actions { display: flex; gap: 8px; margin-top: 8px; }
.transfer-actions .btn { padding: 4px 12px; font-size: 11px; }
.transfer-actions-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; white-space: nowrap; }
.transfer-actions-right .btn { padding: 4px 10px; font-size: 11px; white-space: nowrap; }
.transfer-item.selected { background: var(--bg-active); border-color: var(--theme); }
.transfer-checkbox { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; flex-shrink: 0; }
.transfer-checkbox.checked { background: var(--theme); border-color: var(--theme); }
.text-success { color: var(--success) !important; }
.text-muted { color: var(--text-muted) !important; }
.admin-layout-v2 { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.admin-topbar { height: 56px; background: var(--bg-card); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; flex-shrink: 0; }
.admin-topbar-left { display: flex; align-items: center; gap: 10px; }
.admin-menu-btn { background: none; border: none; font-size: 22px; cursor: pointer; padding: 8px; color: var(--text); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.admin-menu-btn:hover { background: var(--bg-hover); }
.admin-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; display: none; }
.admin-menu-overlay.show { display: block; }
.admin-menu-panel { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; background: var(--bg-card); z-index: 1000; transform: translateX(-100%); transition: transform 0.3s ease; box-shadow: 2px 0 12px rgba(0,0,0,0.15); overflow-y: auto; }
.admin-menu-panel.show { transform: translateX(0); }
.admin-menu-header { padding: 20px 16px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--border); }
.admin-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px; }
.admin-menu-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 10px; cursor: pointer; transition: all 0.2s; text-align: center; }
.admin-menu-item:hover { background: var(--bg-hover); }
.admin-menu-item.active { background: var(--theme); color: white; }
.admin-menu-item .menu-icon { font-size: 22px; }
.admin-menu-item .menu-label { font-size: 11px; line-height: 1.2; }
.admin-menu-item .tab-badge { position: absolute; top: 4px; right: 4px; background: var(--danger); color: white; font-size: 10px; padding: 2px 6px; border-radius: 10px; min-width: 18px; text-align: center; }
.admin-menu-item { position: relative; }
.admin-logo { font-size: 22px; }
.admin-title { font-size: 16px; font-weight: 700; }
.admin-topbar-right { display: flex; align-items: center; gap: 10px; }
.maintenance-badge { background: var(--danger); color: white; padding: 5px 12px; border-radius: 14px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; line-height: 1; }
.admin-tabs { display: flex; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 0 12px; overflow-x: auto; flex-shrink: 0; white-space: nowrap; -webkit-overflow-scrolling: touch; }
.admin-tab { display: flex; align-items: center; gap: 6px; padding: 12px 14px; cursor: pointer; font-size: 13px; color: var(--text-secondary); border-bottom: 2px solid transparent; transition: all 0.2s; position: relative; }
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--theme); border-bottom-color: var(--theme); font-weight: 600; }
.admin-tab .tab-label { font-size: 13px; }
.tab-badge { background: var(--danger); color: white; border-radius: 10px; padding: 1px 6px; font-size: 10px; font-weight: 700; min-width: 18px; text-align: center; }
.admin-content-v2 { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 20px; }
.approval-tabs { display: flex; gap: 0; margin-bottom: 16px; background: var(--bg-card); border-radius: var(--radius-sm); padding: 4px; width: fit-content; }
.approval-tab { padding: 8px 20px; cursor: pointer; font-size: 14px; border-radius: 6px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; transition: all 0.2s; }
.approval-tab.active { background: var(--theme); color: white; font-weight: 600; }
.maintenance-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 300000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.maintenance-card { background: var(--bg-card); border-radius: var(--radius); padding: 40px; text-align: center; max-width: 400px; width: 100%; box-shadow: var(--shadow-lg); }
.maintenance-card .icon { font-size: 64px; margin-bottom: 16px; }
.maintenance-card h2 { font-size: 22px; margin-bottom: 12px; color: var(--text); }
.maintenance-card p { color: var(--text-secondary); line-height: 1.6; }
.maintenance-card strong { color: var(--danger); font-size: 20px; }
.maintenance-indicator { position: fixed; top: 14px; right: 16px; background: var(--danger); color: white; padding: 6px 14px; border-radius: 16px; font-size: 12px; font-weight: 600; z-index: 500; cursor: pointer; box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 4px; line-height: 1; }
.login-page .maintenance-banner { position: absolute; top: 0; left: 0; right: 0; background: var(--danger); color: white; padding: 12px 20px; text-align: center; font-size: 14px; font-weight: 600; z-index: 10; }
@media (max-width: 768px) {
  .app-topbar { padding: 0 12px; }
  .app-title { font-size: 15px; }
  .search-box input { width: 120px; }
  .search-box input:focus { width: 150px; }
  .file-toolbar { padding: 8px 12px; gap: 6px; overflow: hidden; }
  .file-toolbar .toolbar-row { gap: 3px; flex-wrap: nowrap; }
  .file-toolbar .btn { padding: 5px 6px; font-size: 11px; flex-shrink: 1; min-width: 0; }
  .file-toolbar .spacer { flex: 0.3; }
  .file-toolbar select { padding: 5px 4px; font-size: 11px; flex-shrink: 1; min-width: 0; }
  .file-toolbar .view-toggle { flex-shrink: 0; }
  .file-toolbar .view-toggle button { padding: 5px 8px; font-size: 12px; }
  .admin-content-v2 { padding: 12px; }
  .admin-topbar { padding: 0 12px; }
  .admin-tab { padding: 10px 10px; }
  .admin-tab .tab-label { font-size: 12px; }
  .profile-header { padding: 16px; }
  .profile-avatar { width: 60px; height: 60px; }
  .profile-name { font-size: 18px; }
  .setting-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .setting-row input[type="text"], .setting-row input[type="number"], .setting-row input[type="color"] { width: 100%; }
  .data-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table table { min-width: 700px; }
}
@media (min-width: 769px) {
  .bottom-nav { max-width: 600px; margin: 0 auto; border-left: 1px solid var(--border); border-right: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; }
  .app-content { max-width: 1200px; margin: 0 auto; width: 100%; }
}

/* ============ PC/手机端显示控制 ============ */
.pc-only { display: block; }
.mobile-only { display: none; }
@media (max-width: 768px) {
  .pc-only { display: none !important; }
  .mobile-only { display: block !important; }
}

/* ============ 用户管理 - 手机端卡片 ============ */
.user-card-list { display: flex; flex-direction: column; gap: 12px; }
.user-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.user-card-header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.user-card-avatar { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--theme), #6b8aff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; flex-shrink: 0; }
.user-card-info { flex: 1; min-width: 0; }
.user-card-name { font-size: 15px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.user-card-email { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.user-card-body { padding: 12px 16px; }
.user-card-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; gap: 12px; }
.user-card-label { font-size: 13px; color: var(--text-muted); flex-shrink: 0; }
.user-card-value { font-size: 13px; color: var(--text); text-align: right; }
.user-card-actions { display: flex; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.user-card-actions .btn { flex: 1; min-width: 70px; font-size: 12px; padding: 8px 6px; }

/* ============ 注册审核 - 手机端卡片 ============ */
.approval-card-list { display: flex; flex-direction: column; gap: 12px; }
.approval-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.approval-card-header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.approval-card-avatar { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; flex-shrink: 0; }
.approval-card-info { flex: 1; min-width: 0; }
.approval-card-name { font-size: 15px; font-weight: 600; color: var(--text); }
.approval-card-email { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.approval-card-body { padding: 12px 16px; }
.approval-card-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.approval-card-label { font-size: 13px; color: var(--text-muted); }
.approval-card-value { font-size: 13px; color: var(--text); }
.approval-card-actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.approval-card-actions .btn { flex: 1; font-size: 13px; padding: 10px 6px; }

/* ============ 操作日志 - 手机端时间线 ============ */
.log-timeline { position: relative; padding-left: 24px; }
.log-timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.log-timeline-item { position: relative; margin-bottom: 16px; }
.log-timeline-item:last-child { margin-bottom: 0; }
.log-timeline-dot { position: absolute; left: -21px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--theme); border: 2px solid var(--bg); }
.log-timeline-content { background: var(--bg-card); border-radius: var(--radius); padding: 12px 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.log-timeline-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.log-timeline-user { font-size: 13px; font-weight: 600; color: var(--text); }
.log-timeline-detail { font-size: 13px; color: var(--text); margin-bottom: 8px; line-height: 1.5; word-break: break-all; }
.log-timeline-meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-muted); flex-wrap: wrap; }

/* 管理员文件管理卡片列表 */
.file-card-list { display: flex; flex-direction: column; gap: 10px; }
.file-card-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); transition: all 0.2s; }
.file-card-item:hover { box-shadow: var(--shadow); border-color: var(--theme); }
.file-card-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--bg-hover); border-radius: 10px; color: var(--theme); flex-shrink: 0; }
.file-card-info { flex: 1; min-width: 0; }
.file-card-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-secondary); margin-bottom: 2px; flex-wrap: wrap; }
.file-card-time { font-size: 11px; color: var(--text-muted); }
.file-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.file-card-actions .icon-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: none; background: transparent; cursor: pointer; color: var(--text-secondary); transition: all 0.2s; }
.file-card-actions .icon-btn:hover { background: var(--bg-hover); color: var(--danger); }
.file-card-actions .icon-btn.danger:hover { background: rgba(239,68,68,0.1); color: var(--danger); }

/* 按钮名称自定义网格 */
.button-labels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.button-labels-grid .setting-row { flex-direction: column; align-items: flex-start; gap: 6px; }
.button-labels-grid .setting-row input { width: 100%; }

/* ============ 分享管理 ============ */
.share-table-wrap { overflow-x: auto; margin-bottom: 16px; }
.data-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; font-size: 13px; }
.data-table th { background: var(--bg-hover); padding: 12px 14px; text-align: left; font-weight: 600; color: var(--text-secondary); font-size: 12px; white-space: nowrap; border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: var(--bg-hover); }
.stat-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 24px; padding: 0 8px; background: var(--bg-hover); border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--text); }
.stat-badge-blue { background: rgba(79,110,247,0.1); color: var(--theme); }
.action-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-xs { padding: 4px 10px; font-size: 12px; }
.btn-danger { background: #ef4444; color: #fff; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; }
.btn-danger:hover { background: #dc2626; }
.btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }

/* 移动端分享卡片 */
.share-cards { display: none; flex-direction: column; gap: 12px; }
.share-card { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.share-card-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--bg-hover); }
.share-card-body { padding: 12px 16px; }
.share-card-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.share-card-row:last-child { border-bottom: none; }
.share-card-row span:first-child { color: var(--text-secondary); }
.share-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.share-card-actions .btn { width: 100%; padding: 10px; font-size: 14px; }

@media (max-width: 768px) {
  .share-table-wrap { display: none; }
  .share-cards { display: flex; }
  .share-card-actions { grid-template-columns: 1fr 1fr; }
}

/* ============ 用户端 - 我的分享 ============ */
.shares-page { padding: 16px; max-width: 900px; margin: 0 auto; }

/* ============ 二级页面 ============ */
.sub-page { height: 100%; display: flex; flex-direction: column; }
.sub-page-header { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-card); flex-shrink: 0; }
.sub-page-back { width: 36px; height: 36px; border: none; background: transparent; border-radius: 8px; cursor: pointer; color: var(--text); display: flex; align-items: center; justify-content: center; margin-right: 8px; }
.sub-page-back:hover { background: var(--bg-hover); }
.sub-page-back:active { background: var(--bg-active); }
.sub-page-title { font-size: 17px; font-weight: 600; margin: 0; }
.sub-page-content { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.shares-header { margin-bottom: 20px; }
.shares-header h2 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.shares-header p { font-size: 13px; color: var(--text-muted); }
.shares-list { display: flex; flex-direction: column; gap: 12px; }
.share-item { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: all 0.2s; }
.share-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.share-item-header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: transparent; }
.share-file-icon { font-size: 28px; flex-shrink: 0; }
.share-item-info { flex: 1; min-width: 0; }
.share-file-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-file-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; display: flex; gap: 6px; }
.share-item-body { padding: 12px 16px; }
.share-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; }
.share-label { color: var(--text-secondary); flex-shrink: 0; }
.share-link { font-family: monospace; color: var(--theme); font-size: 12px; word-break: break-all; text-align: right; }
.share-value { text-align: right; }
.share-stats { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.share-item-actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.share-item-actions .btn { flex: 1; min-width: 80px; }
.empty-state { text-align: center; padding: 60px 20px; }

@media (max-width: 600px) {
  .shares-page { padding: 12px; }
  .share-item-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .share-item-actions .btn { width: 100%; }
  .share-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .share-link, .share-value { text-align: left; }
}

/* ========== 签到页面 V2 ========== */
.checkin-page-v2 {
  position: relative;
  min-height: 100%;
  background: #f5f7fa;
}

.checkin-content {
  position: relative;
  z-index: 1;
  padding: 20px 16px 30px;
  max-width: 500px;
  margin: 0 auto;
}

.checkin-header {
  text-align: center;
  margin-bottom: 24px;
  padding-top: 10px;
  position: relative;
}

.checkin-back-btn {
  position: absolute;
  left: 0;
  top: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #374151;
}

.checkin-title {
  font-size: 36px;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 8px 0;
  letter-spacing: 2px;
}

.checkin-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.checkin-reward-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.reward-icon {
  width: 64px;
  height: 64px;
  background: #eef1ff;
  color: #4f6ef7;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reward-info {
  flex: 1;
}

.reward-amount {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.reward-desc {
  font-size: 13px;
  color: #6b7280;
}

.checkin-btn {
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  margin-bottom: 24px;
  transition: all 0.3s;
  letter-spacing: 2px;
}

.checkin-btn.active {
  background: #4f6ef7;
  box-shadow: 0 6px 18px rgba(79, 110, 247, 0.22);
}

.checkin-btn.active:active {
  transform: scale(0.98);
  box-shadow: 0 3px 10px rgba(79, 110, 247, 0.18);
}

.checkin-btn.disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.checkin-panel {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.checkin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.checkin-stats {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stats-label {
  font-size: 14px;
  color: #6b7280;
}

.stats-num {
  font-size: 28px;
  font-weight: 800;
  color: #667eea;
}

.checkin-total {
  font-size: 13px;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 6px 12px;
  border-radius: 20px;
}

.checkin-calendar-v2 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.checkin-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.checkin-day-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}

.checkin-day.checked .checkin-day-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.checkin-day.today .checkin-day-icon {
  background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 100%);
  color: #4f46e5;
  border: 2px solid #667eea;
  animation: pulse 2s infinite;
}

.checkin-day.future .checkin-day-icon {
  background: #f3f4f6;
  color: #d1d5db;
}

.checkin-day-num {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.checkin-day.checked .checkin-day-num {
  color: #667eea;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.checkin-footer {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.checkin-footer span {
  font-size: 12px;
  color: #9ca3af;
}

@media (max-width: 400px) {
  .checkin-title { font-size: 28px; }
  .checkin-day-icon { width: 38px; height: 38px; font-size: 14px; }
  .checkin-calendar-v2 { gap: 6px; }
}

/* 新版签到（周签/月签） */
.checkin-calendar-grid {
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.checkin-calendar-grid .checkin-day {
  background: #f9fafb;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 8px 4px;
  gap: 4px;
  cursor: pointer;
  transition: transform .1s;
}
.checkin-calendar-grid .checkin-day:active { transform: scale(.95); }
.checkin-calendar-grid .checkin-day.checked {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
}
.checkin-calendar-grid .checkin-day.today {
  background: #fff;
  border: 2px solid #667eea;
}
.checkin-calendar-grid .checkin-day-num {
  font-size: 15px;
  font-weight: 700;
  color: #6b7280;
}
.checkin-calendar-grid .checkin-day.checked .checkin-day-num,
.checkin-calendar-grid .checkin-day.checked .checkin-day-reward,
.checkin-calendar-grid .checkin-day.checked .checkin-day-label {
  color: #fff;
}
.checkin-calendar-grid .checkin-day.today .checkin-day-num {
  color: #4f46e5;
}
.checkin-day-reward {
  font-size: 10px;
  line-height: 1.3;
  color: #9ca3af;
  text-align: center;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-all;
}
.checkin-day-label {
  font-size: 10px;
  color: #c0c7d0;
}
.checkin-quota-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  background: #f9fafb;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: #6b7280;
  margin: 4px 0 14px;
}
.checkin-quota-row b { color: #4f46e5; }
@media (max-width: 400px) {
  .checkin-calendar-grid { gap: 5px; }
  .checkin-calendar-grid .checkin-day { padding: 6px 2px; }
}

/* ============ 分享链接设置（全屏二级页） ============ */
#share-fullscreen-container { position: fixed; inset: 0; z-index: 9998; background: var(--bg); }
#share-fullscreen-container .recycle-fullscreen { height: 100dvh; }
.share-setup-body { flex: 1; overflow-y: auto; padding: 16px; }
.share-notice { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; background: #fff8e6; border: 1px solid #fde68a; border-radius: 10px; font-size: 13px; color: #92400e; line-height: 1.5; margin-bottom: 16px; }
[data-theme="dark"] .share-notice { background: rgba(253,230,138,0.1); border-color: rgba(253,230,138,0.3); color: #fcd34d; }
.share-notice .sn-icon { flex-shrink: 0; display: flex; margin-top: 1px; }
.share-file-info { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--bg-card); border-radius: 12px; margin-bottom: 16px; border: 1px solid var(--border); }
.sfi-icon { width: 52px; height: 52px; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--theme); flex-shrink: 0; }
.sfi-meta { min-width: 0; }
.sfi-name { font-size: 15px; font-weight: 600; color: var(--text); word-break: break-all; line-height: 1.4; }
.sfi-size { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.share-options { display: grid; gap: 8px; }
.share-options-expire { grid-template-columns: repeat(3, 1fr); }
.share-options-mode { grid-template-columns: repeat(3, 1fr); }
.share-option { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 9px 10px 9px 24px; border: 1px solid var(--border); border-radius: 10px; font-size: 12px; color: var(--text); background: var(--bg-card); cursor: pointer; transition: all 0.15s; white-space: nowrap; line-height: 1; overflow: hidden; }
.share-option:active { transform: scale(0.96); }
.share-option:has(input:checked) { border-color: var(--theme); background: var(--bg-active); color: var(--theme); font-weight: 600; }
.share-option::before { content: ''; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--bg-card); box-sizing: border-box; transition: all 0.15s; }
.share-option:has(input:checked)::before { border-color: var(--theme); background: var(--theme); box-shadow: inset 0 0 0 2.5px var(--bg-card); }
.share-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
/* 未解锁档位：灰色锁定 */
.share-option-locked { opacity: 0.45; cursor: not-allowed; background: var(--bg-active); border-style: dashed; }
.share-option-locked::before { border-color: var(--border); background: var(--bg-card); }
.share-lock-tip { font-size: 10px; color: var(--warning); margin-left: 2px; }
.share-option-locked:has(input:checked) { border-color: var(--border); background: var(--bg-active); color: var(--text); font-weight: 400; }
.share-option-locked:has(input:checked)::before { border-color: var(--border); background: var(--bg-card); box-shadow: none; }
@media (min-width: 768px) {
  .share-option { font-size: 13px; }
}
.sr-expire-tip { font-size: 13px; color: var(--warning); background: var(--bg-active); border: 1px dashed var(--warning); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.share-result-body { flex: 1; overflow-y: auto; padding: 32px 24px; text-align: center; display: flex; flex-direction: column; }
.sr-icon { color: var(--theme); margin-bottom: 16px; }
.sr-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.sr-url { background: var(--bg-card); border: 1px solid var(--border); padding: 12px; border-radius: 10px; word-break: break-all; font-size: 13px; color: var(--text); margin-bottom: 12px; }
.sr-code { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.sr-code strong { color: var(--theme); }
.sr-code.muted { color: var(--text-muted); }

/* ===== 后台签到奖励配置 ===== */
.checkin-mode-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.checkin-mode-option {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: all .15s;
  user-select: none;
}
.checkin-mode-option b { display: block; font-size: 14px; color: var(--text); }
.checkin-mode-option span { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.checkin-mode-option.active {
  border-color: var(--theme);
  background: linear-gradient(135deg, rgba(107,133,249,.08), rgba(118,75,162,.08));
  box-shadow: 0 2px 8px rgba(107,133,249,.15);
}
.checkin-mode-option.active b { color: var(--theme); }
.checkin-tip { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.checkin-reward-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 460px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}
.checkin-reward-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f9fafb;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 8px 10px;
}
.checkin-reward-day {
  width: 56px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 32px;
}
.checkin-reward-body { flex: 1; min-width: 0; }
.checkin-reward-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.checkin-reward-chip {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 6px;
  width: 100%;
  box-sizing: border-box;
}
.checkin-reward-chip select {
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--text);
  outline: none;
  padding: 2px;
  width: 100%;
  min-width: 0;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
}
.checkin-reward-chip input {
  width: 52px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 12px;
  text-align: center;
}
.checkin-reward-del {
  width: 20px;
  height: 20px;
  border: none;
  background: #fee2e2;
  color: #ef4444;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}
.checkin-reward-add {
  border: 1px dashed var(--border);
  background: #fff;
  color: var(--text-muted);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 6px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.checkin-reward-add:hover { color: var(--theme); border-color: var(--theme); }
.checkin-save-bar {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.checkin-save-bar .btn { flex: 1; padding: 10px; }
@media (max-width: 400px) {
  .checkin-reward-day { width: 48px; }
}

/* 签到页：点击查看某天奖励的选中态 */
.checkin-calendar-grid .checkin-day.selected {
  border-color: var(--theme);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(107,133,249,.18);
}
.checkin-calendar-grid .checkin-day.selected .checkin-day-num {
  color: var(--theme);
}
.checkin-calendar-grid .checkin-day.today.selected {
  border-color: #667eea;
}

/* 后台开关 switch（滑块） */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; cursor: pointer; inset: 0; background: #cbd5e1; border: 2px solid #94a3b8; border-radius: 13px; transition: all 0.3s; box-shadow: inset 0 1px 3px rgba(0,0,0,0.15); }
.switch .slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 2px; top: 2px; background: #ffffff; border-radius: 50%; transition: all 0.3s; box-shadow: 0 1px 4px rgba(0,0,0,0.3); border: 1px solid #e2e8f0; }
.switch input:checked + .slider { background: var(--theme); border-color: var(--theme); box-shadow: inset 0 1px 3px rgba(0,0,0,0.2); }
.switch input:checked + .slider::before { transform: translateX(20px); }
[data-theme="dark"] .switch .slider { background: #475569; border-color: #64748b; }

/* 签到页：已签+选中的格子保持紫色渐变，不被选中白底覆盖 */
.checkin-calendar-grid .checkin-day.checked.selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.45);
}
.checkin-calendar-grid .checkin-day.checked.selected .checkin-day-num,
.checkin-calendar-grid .checkin-day.checked.selected .checkin-day-label {
  color: #fff;
}

/* 后台卡片标题栏：标题在左、开关靠最右 */
.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.admin-card-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 签到记录：移动端卡片、桌面表格 */
.checkin-cards { display: flex; flex-direction: column; gap: 10px; }
.checkin-table-wrap { display: none; }
.checkin-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  box-sizing: border-box;
  width: 100%;
}
.checkin-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--text);
}
.checkin-card-grid div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkin-card-grid span { color: var(--text-muted); margin-right: 6px; }
@media (min-width: 768px) {
  .checkin-cards { display: none; }
  .checkin-table-wrap { display: block; }
}

/* ============ 公告横幅 ============ */
#announce-bar{position:relative;z-index:5;overflow:hidden}
.announce-item{position:relative;padding:9px 14px;font-size:13px;line-height:1.5;min-height:36px}
.announce-text{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);text-align:center;padding:0 44px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.announce-close{cursor:pointer;opacity:.7;position:absolute;right:10px;top:50%;transform:translateY(-50%);display:inline-flex;padding:2px;border-radius:4px}
.announce-close:hover{opacity:1;background:rgba(0,0,0,.08)}

/* ============ 公告管理 - 移动端卡片 ============ */
.ann-card-list { display: flex; flex-direction: column; gap: 12px; }
.ann-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.ann-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.ann-card-title { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-size: 14px; }
.ann-card-time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.ann-card-content { padding: 10px 16px; font-size: 13px; color: var(--text-secondary); line-height: 1.6; border-bottom: 1px solid var(--border); }
.ann-card-rows { padding: 4px 16px; }
.ann-card-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 13px; }
.ann-card-actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }

/* ============ 公告类型色块 ============ */
.ann-type-badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:500}
.ann-type-info{background:#e7efff;color:#1a6bd6}
.ann-type-warning{background:#fff6e6;color:#b45309}
.ann-type-success{background:#e9f9ec;color:#15803d}
.ann-type-danger{background:#fdecec;color:#c0392b}

/* ============ 问题反馈 - 用户端 ============ */
.feedback-page { padding: 16px; display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin: 0 auto; width: 100%; }
.feedback-form-card, .feedback-list-card { background: var(--bg-card); border-radius: var(--radius); padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.feedback-form-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.fb-item { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.fb-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.fb-item-type { font-size: 12px; font-weight: 600; color: var(--theme); background: var(--bg-hover); padding: 2px 8px; border-radius: 6px; }
.fb-item-time { font-size: 11px; color: var(--text-muted); margin-left: auto; }
.fb-item-content { font-size: 14px; line-height: 1.6; color: var(--text); white-space: pre-wrap; word-break: break-all; }
.fb-item-reply { margin-top: 8px; padding: 8px 10px; background: rgba(21,128,61,0.08); border-radius: 8px; font-size: 13px; color: #15803d; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.fb-reply-label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 2px; }
.fb-status { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.fb-status.pending { background: #fdecec; color: #c0392b; }
.fb-status.processed { background: #e9f9ec; color: #16a34a; }
.fb-status.replied { background: #e9f9ec; color: #15803d; }

/* ============ 问题反馈 - 管理端卡片 ============ */
.fb-card-list { display: flex !important; flex-direction: column; gap: 15px; padding: 4px; }
.fb-card { background: #fff; border: 1px solid #e2e5ea; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.fb-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.fb-card-time { padding: 8px 14px 0; font-size: 11px; color: var(--text-muted); }
.fb-card-content { padding: 8px 14px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.fb-card-reply { margin: 0 14px 8px; padding: 8px 10px; background: rgba(21,128,61,0.08); border-radius: 8px; font-size: 12px; color: #15803d; line-height: 1.6; }
.fb-card-actions { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* 反馈已完成状态按钮（灰色） */
.btn-done { background: #f1f2f4; color: #9ca3af; border: 1px solid #e5e7eb; cursor: pointer; }
.btn-done:hover { background: #e9eaec; }

/* 删除按钮：白底红字 */
.btn-danger-outline { background: #fff; color: #ef4444; border: 1px solid #ef4444; }
.btn-danger-outline:hover { background: #fef2f2; }
