* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: #333; background: #f5f5f5; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
.page-nav { height: 58px; padding: 0 24px; background: #fff; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; }
.page-brand { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: #333; text-decoration: none; }
.page-actions { display: flex; align-items: center; gap: 10px; }
.page-actions a, .page-actions button { padding: 7px 12px; border: 1px solid #ddd; border-radius: 6px; background: #fff; color: #444; cursor: pointer; font-size: 13px; text-decoration: none; }
.page-actions a:hover, .page-actions button:hover { background: #fef3c7; border-color: #fbbf24; }
.page-shell { max-width: 1080px; margin: 28px auto; padding: 0 20px; }
.page-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.page-title { margin: 0 0 20px; font-size: 20px; }
.empty { padding: 44px 0; color: #999; text-align: center; }
.toolbar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
input, select { height: 36px; padding: 0 10px; border: 1px solid #ddd; border-radius: 6px; font: inherit; }
input:focus, select:focus { border-color: #fbbf24; outline: none; }
button { font: inherit; }
.primary, .danger, .success { border: 0; border-radius: 6px; padding: 7px 12px; color: #fff; cursor: pointer; }
.primary { background: #3b82f6; }.danger { background: #ef4444; }.success { background: #22c55e; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid #eee; }
.list-item:last-child { border-bottom: 0; }.item-main { flex: 1; min-width: 0; }.item-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.item-meta { margin-top: 5px; color: #999; font-size: 12px; }.item-actions { display: flex; gap: 8px; }
.archive-table { width: 100%; border-collapse: collapse; }.archive-table th, .archive-table td { padding: 12px; border-bottom: 1px solid #eee; text-align: left; font-size: 14px; }.archive-table th { color: #666; background: #fafafa; }.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; background: #eff6ff; color: #1d4ed8; font-size: 12px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 20px; }.pagination button { border: 1px solid #ddd; border-radius: 5px; padding: 5px 9px; background: #fff; cursor: pointer; }.pagination button.active { background: #fbbf24; border-color: #fbbf24; }
.reader { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.45); padding: 24px; }.reader.show { display: flex; }.reader-card { max-width: 850px; width: 100%; max-height: 90vh; overflow: auto; background: #fff; border-radius: 12px; padding: 28px; }.reader-content { line-height: 1.8; }.reader-content img { max-width: 100%; }.reader-content .cherry-preview-host { min-height: 0; }.reader-content .cherry { min-height: 0; border: 0; }.reader-content .cherry-previewer { padding: 20px 0 0; background: transparent; }.reader-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.page-confirm { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.42); }.page-confirm[hidden] { display: none; }.page-confirm-card { width: min(420px, 100%); padding: 24px; border-radius: 12px; background: #fff; box-shadow: 0 18px 48px rgba(0,0,0,.2); }.page-confirm-card h2 { margin: 0; font-size: 18px; }.page-confirm-card p { margin: 14px 0 24px; color: #666; line-height: 1.6; }.page-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }.page-confirm-actions button { padding: 7px 12px; border: 1px solid #ddd; border-radius: 6px; background: #fff; cursor: pointer; }.page-confirm-actions .danger { border: 0; color: #fff; background: #ef4444; }
.login-page { display: grid; place-items: center; min-height: 100vh; }.login-card { width: min(390px, calc(100vw - 36px)); background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.16); }.login-card h1 { margin: 0 0 6px; text-align: center; }.login-card p { margin: 0 0 22px; color: #999; text-align: center; }.auth-tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 18px; background: #f5f5f5; border-radius: 8px; }.auth-tabs button { flex: 1; border: 0; border-radius: 6px; padding: 9px; background: transparent; cursor: pointer; }.auth-tabs button.active { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }.auth-form { display: none; }.auth-form.active { display: block; }.auth-form label { display: block; margin: 13px 0 6px; font-size: 13px; color: #666; }.auth-form input { width: 100%; }.auth-form .primary { width: 100%; margin-top: 20px; padding: 10px; }.form-error { min-height: 18px; margin-top: 8px; color: #ef4444; font-size: 13px; }

/* 共用视觉体系 */
:root { --bg: #f7f8fc; --surface: #fff; --text: #182230; --muted: #667085; --line: #e7eaf0; --primary: #4f46e5; --primary-soft: #eef2ff; --danger: #e5484d; --radius: 10px; }
* { scrollbar-width: thin; scrollbar-color: #b8c0cf transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: #b8c0cf; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #8792a5; background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }
body { color: var(--text); background: var(--bg); }
.page-nav { height: 64px; padding: 0 max(24px, calc((100vw - 1280px) / 2)); background: rgba(255,255,255,.92); border-color: var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.03); backdrop-filter: blur(12px); }
.page-brand { color: var(--text); letter-spacing: -.2px; }.page-brand img { border-radius: 8px; }
.page-actions { gap: 8px; }.page-actions a, .page-actions button { border-color: transparent; color: #475467; background: transparent; font-weight: 500; transition: .16s ease; }.page-actions a:hover, .page-actions button:hover { color: var(--primary); border-color: transparent; background: var(--primary-soft); }
.page-shell { max-width: 1180px; margin: 32px auto; }.page-card { padding: 28px; border-color: var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(16,24,40,.04); }.page-title { font-size: 22px; letter-spacing: -.35px; }
input, select { color: var(--text); border-color: #d9dee8; border-radius: 8px; background: #fff; }.page-card input:focus, .page-card select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.primary, .danger, .success { padding: 8px 13px; border-radius: 8px; font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.1); transition: transform .16s ease, filter .16s ease; }.primary { background: var(--primary); }.danger { background: var(--danger); }.success { background: #12a36b; }.primary:hover, .danger:hover, .success:hover { filter: brightness(.96); transform: translateY(-1px); }
.toolbar { align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }.list-item { padding: 16px 6px; border-color: var(--line); }.item-title { color: var(--text); }.item-meta { color: var(--muted); }.archive-table th, .archive-table td { border-color: var(--line); }.archive-table th { color: var(--muted); background: #fafbfc; font-weight: 600; }.tag { color: #4338ca; background: var(--primary-soft); }.pagination button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-confirm-card, .reader-card { border-radius: 14px; box-shadow: 0 24px 60px rgba(16,24,40,.22); }.login-card { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 48px rgba(16,24,40,.1); }.auth-tabs { background: #f2f4f7; }.auth-tabs button.active { color: var(--primary); box-shadow: 0 1px 3px rgba(16,24,40,.1); }

/* 归档与回收站工作区 */
.archive-shell, .trash-shell { max-width: 1080px; }.archive-card, .trash-card { min-height: 580px; }.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 26px; }.eyebrow { margin: 0 0 6px; color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.page-heading .page-title { margin: 0; }.page-description { margin: 8px 0 0; color: var(--muted); font-size: 14px; }.count-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; color: #4338ca; border-radius: 999px; background: var(--primary-soft); font-size: 13px; font-weight: 700; white-space: nowrap; }.filter-bar { display: flex; gap: 10px; padding: 12px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; }.search-field { display: flex; flex: 1; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #d9dee8; border-radius: 8px; background: #fff; color: #98a2b3; }.search-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }.search-field input { flex: 1; border: 0; box-shadow: none !important; }.filter-bar select { min-width: 150px; }.archive-list { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }.archive-table { margin: 0; }.archive-table td strong { font-weight: 600; }.archive-table td:last-child { text-align: right; }.text-button, .text-danger { padding: 7px 8px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-weight: 600; }.text-button { color: var(--primary); }.text-button:hover { background: var(--primary-soft); }.text-danger { color: var(--danger); }.text-danger:hover { background: #fff1f2; }.content-loading { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 260px; color: var(--muted); }.content-loading span { width: 18px; height: 18px; border: 2px solid #d9dee8; border-top-color: var(--primary); border-radius: 50%; animation: page-spin .7s linear infinite; }.page-empty { display: grid; min-height: 290px; place-content: center; text-align: center; color: var(--muted); }.page-empty div { margin-bottom: 10px; font-size: 30px; }.page-empty strong { color: var(--text); }.page-empty p { margin: 7px 0 0; font-size: 14px; }.batch-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; font-size: 14px; }.batch-bar label { display: flex; align-items: center; gap: 6px; font-weight: 600; }.batch-bar #selected { flex: 1; color: var(--muted); }.trash-list { border-top: 1px solid var(--line); }.trash-item { display: flex; align-items: center; gap: 14px; padding: 16px 6px; border-bottom: 1px solid var(--line); }.trash-item .item-main { display: grid; gap: 5px; }.trash-item .item-meta { margin: 0; }.reader-heading { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }.reader-heading h2 { margin: 0; }.icon-button { width: 32px; height: 32px; border: 0; border-radius: 7px; background: #f2f4f7; cursor: pointer; font-size: 20px; }.icon-button:hover { background: #e4e7ec; } @keyframes page-spin { to { transform: rotate(360deg); } } @media(max-width:680px){.page-heading{margin-bottom:18px}.filter-bar{display:grid}.filter-bar select{width:100%}.archive-table th:nth-child(2),.archive-table td:nth-child(2){display:none}.trash-item{align-items:flex-start}.trash-item .item-actions{flex-direction:column;gap:5px}.batch-bar{flex-wrap:wrap}.batch-bar #selected{min-width:90px}.reader-card{padding:20px}.page-shell{margin:18px auto;padding:0 12px}.page-card{padding:20px}}

/* 工作区面板内的归档集合视图 */
.archive-shell { max-width: none; margin: 0; padding: 0; }.archive-card { min-height: 100vh; padding: 34px clamp(24px,5vw,56px); border: 0; border-radius: 0; background: linear-gradient(180deg,#fbfcff 0,#fff 260px); box-shadow: none; }.archive-card .page-heading { padding-bottom: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }.archive-card .eyebrow { display: inline-flex; align-items: center; gap: 6px; color: #5b5bd6; }.archive-card .eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: #6366f1; content: ''; }.archive-card .count-badge { padding: 0 12px; background: #eceeff; box-shadow: inset 0 0 0 1px #dfe2ff; }.archive-card .filter-bar { padding: 8px; border-color: #e5e8f0; border-radius: 12px; background: rgba(255,255,255,.86); box-shadow: 0 3px 12px rgba(31,41,55,.035); }.archive-card .search-field { min-height: 40px; border-color: transparent; background: #f7f8fc; }.archive-card .search-field:focus-within { border-color: #c7d2fe; background: #fff; }.archive-card .filter-bar select { min-height: 40px; border-color: transparent; background: #f7f8fc; }.archive-card .archive-list { border-color: #e6e9f0; border-radius: 13px; box-shadow: 0 5px 18px rgba(31,41,55,.035); }.archive-card .archive-table thead { background: #fafbfe; }.archive-card .archive-table th { padding: 14px 16px; background: transparent; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }.archive-card .archive-table td { padding: 17px 16px; }.archive-card .archive-table tbody tr { transition: background .16s ease; }.archive-card .archive-table tbody tr:hover { background: #f6f7ff; }.archive-card .archive-table tbody tr:hover .text-button { background: #e8eaff; }.archive-card .tag { padding: 4px 9px; border-radius: 999px; }.archive-card .pagination { margin-top: 24px; }
