:root {
  --text: #1e2942;
  --muted: #6b7794;
  --primary: #6d7cf6;
  --primary-deep: #5869ec;
  --cyan: #55c7f3;
  --danger: #f0616d;
  --success: #27b98a;
  --warning: #e8a33d;
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .38));
  --glass-border: rgba(255, 255, 255, .76);
  --glass-shadow: 0 20px 60px rgba(42, 54, 110, .10), inset 0 1px 0 rgba(255, 255, 255, .92);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #edf2ff 0%, #f6f1ff 42%, #eafbf6 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

/* ---------- 背景光斑 ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; display: block; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 18s ease-in-out infinite alternate; }
.orb-1 { width: 420px; height: 420px; background: #b7c6ff; top: -120px; left: -80px; }
.orb-2 { width: 380px; height: 380px; background: #d8c4ff; top: 18%; right: -110px; animation-delay: -5s; }
.orb-3 { width: 340px; height: 340px; background: #b9f0e1; bottom: -120px; left: 22%; animation-delay: -10s; }
.orb-4 { width: 300px; height: 300px; background: #ffd9c9; bottom: 8%; right: 8%; animation-delay: -14s; }
@keyframes float { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(30px, -40px, 0) scale(1.12); } }

/* ---------- 玻璃基类 ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ---------- 登录 ---------- */
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.login-card { width: min(430px, 100%); padding: 42px 40px 34px; border-radius: 34px; animation: rise .7s cubic-bezier(.2, .8, .2, 1); }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.brand-mark { width: 56px; height: 56px; flex: 0 0 56px; filter: drop-shadow(0 8px 16px rgba(96, 116, 240, .3)); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark.small { width: 42px; height: 42px; flex-basis: 42px; }
.brand-text h1 { margin: 0; font-size: 26px; letter-spacing: -.5px; }
.brand-text p { margin: 5px 0 0; font-size: 13px; color: var(--muted); }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #45506b; margin-bottom: 8px; }
.field label em { color: var(--danger); font-style: normal; }
.input-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px; height: 50px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 15px;
  transition: box-shadow .2s, border-color .2s, background .2s;
}
.input-wrap svg { width: 19px; height: 19px; color: #8b96b1; flex: 0 0 19px; }
.input-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--text); }
.input-wrap input::placeholder { color: #a2adc3; }
.input-wrap:focus-within { border-color: rgba(109, 124, 246, .55); background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 4px rgba(109, 124, 246, .12); }

.form-error { min-height: 18px; font-size: 12.5px; color: var(--danger); margin: -4px 0 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 12px 18px;
  font-size: 14px; font-weight: 600; letter-spacing: .2px;
  transition: transform .2s, box-shadow .2s, filter .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #6d7cf6, #57bff0);
  box-shadow: 0 12px 24px rgba(88, 105, 236, .28), inset 0 1px 0 rgba(255, 255, 255, .38);
}
.btn-primary:hover { box-shadow: 0 16px 30px rgba(88, 105, 236, .34), inset 0 1px 0 rgba(255, 255, 255, .45); filter: brightness(1.04); }
.btn-block { width: 100%; height: 50px; margin-top: 4px; }
.btn-ghost { color: #4d5c85; background: rgba(255, 255, 255, .66); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 6px 16px rgba(42, 54, 110, .06); }
.btn-danger { color: #fff; background: linear-gradient(120deg, #f06d76, #ec4f68); box-shadow: 0 10px 22px rgba(240, 97, 109, .25); }
.login-foot { margin: 22px 0 0; font-size: 12px; color: #8090ad; letter-spacing: 2px; }

/* ---------- 主布局 ---------- */
.app-view { display: flex; gap: 18px; height: 100vh; padding: 18px; }
.sidebar { width: 244px; flex: 0 0 244px; border-radius: var(--radius-lg); padding: 24px 16px 18px; display: flex; flex-direction: column; }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 24px; }
.side-brand strong { display: block; font-size: 15px; letter-spacing: -.2px; }
.side-brand span { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: 1.2px; margin-top: 2px; }
.side-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border: 0; border-radius: 15px;
  background: transparent; color: #66728e; font-size: 14px; font-weight: 500;
  text-align: left; transition: background .2s, color .2s, transform .2s;
}
.nav-item svg { width: 19px; height: 19px; flex: 0 0 19px; }
.nav-item:hover { background: rgba(255, 255, 255, .55); color: #4d5c85; }
.nav-item.active { background: linear-gradient(120deg, rgba(109, 124, 246, .16), rgba(85, 199, 243, .10)); color: #5366e8; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
.side-section { margin-top: 30px; padding: 0 8px; }
.side-section-title { font-size: 11px; color: #8b96b1; letter-spacing: 1.5px; margin-bottom: 12px; font-weight: 600; }
.side-categories { display: flex; flex-direction: column; gap: 4px; }
.cat-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; color: #6b7794; font-size: 13px; text-align: left; transition: background .2s; }
.cat-link:hover { background: rgba(255, 255, 255, .5); }
.cat-link .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.side-bottom { margin-top: auto; padding-top: 18px; }
.nav-item.logout { color: #8a6b78; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 24px; border-radius: var(--radius-md); flex: 0 0 auto; }
.topbar-left h2 { margin: 0; font-size: 20px; letter-spacing: -.3px; }
.topbar-left p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.search-box { display: flex; align-items: center; gap: 9px; width: 290px; height: 42px; padding: 0 14px; border-radius: 13px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .88); }
.search-box svg { width: 17px; height: 17px; color: #8b96b1; flex: 0 0 17px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--text); }
.search-box input::placeholder { color: #a2adc3; }
.avatar { width: 40px; height: 40px; flex: 0 0 40px; border: 2px solid rgba(255, 255, 255, .9); border-radius: 50%; color: #fff; font-size: 14px; font-weight: 600; background: linear-gradient(135deg, #7c8cff, #5bc8f5); box-shadow: 0 8px 18px rgba(88, 105, 236, .24); }
.page { flex: 1; overflow-y: auto; padding: 2px 4px 8px 0; }
.page::-webkit-scrollbar { width: 7px; }
.page::-webkit-scrollbar-thumb { background: rgba(120, 135, 175, .25); border-radius: 10px; }

/* ---------- 概览 ---------- */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 34px; border-radius: var(--radius-lg); margin-bottom: 16px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 280px; height: 280px; right: 60px; top: -160px; border-radius: 50%; background: rgba(109, 124, 246, .10); filter: blur(30px); }
.hero-content { position: relative; z-index: 1; }
.hero-tag { display: inline-block; font-size: 11px; letter-spacing: 1.6px; color: #6272d8; background: rgba(109, 124, 246, .10); padding: 6px 12px; border-radius: 20px; margin-bottom: 14px; }
.hero h3 { margin: 0 0 8px; font-size: 27px; letter-spacing: -.5px; }
.hero p { margin: 0 0 20px; font-size: 13.5px; color: var(--muted); }
.hero .btn { padding: 10px 16px; }
.progress-ring { --p: 0; width: 124px; height: 124px; flex: 0 0 124px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#6d7cf6 calc(var(--p) * 1%), rgba(109, 124, 246, .13) 0); box-shadow: 0 10px 30px rgba(88, 105, 236, .18); position: relative; z-index: 1; }
.progress-inner { width: 96px; height: 96px; border-radius: 50%; background: rgba(248, 250, 255, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 2px 8px rgba(42, 54, 110, .07); }
.progress-inner strong { font-size: 24px; letter-spacing: -.5px; }
.progress-inner span { font-size: 11px; color: var(--muted); margin-top: 2px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-card { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--radius-md); }
.stat-icon { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 15px; display: grid; place-items: center; font-size: 16px; font-weight: 600; }
.stat-icon.blue { color: #5f70e8; background: rgba(109, 124, 246, .14); }
.stat-icon.amber { color: #d89026; background: rgba(232, 163, 61, .16); }
.stat-icon.green { color: #1fa77d; background: rgba(39, 185, 138, .14); }
.stat-icon.violet { color: #9a6fe6; background: rgba(154, 111, 230, .14); }
.stat-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.stat-card strong { font-size: 26px; letter-spacing: -.5px; }

.overview-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.panel { padding: 22px 24px; border-radius: var(--radius-md); min-height: 260px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h4 { margin: 0; font-size: 15px; }
.link-btn { border: 0; background: transparent; color: var(--primary-deep); font-size: 12px; font-weight: 500; }
.panel-hint { font-size: 11px; color: var(--muted); }
.recent-list { display: flex; flex-direction: column; gap: 10px; }
.recent-item { display: flex; align-items: center; gap: 13px; padding: 11px 12px; border-radius: 14px; background: rgba(255, 255, 255, .4); }
.recent-date { width: 46px; flex: 0 0 46px; text-align: center; padding: 5px 0; border-radius: 11px; background: rgba(109, 124, 246, .1); color: #5c6bd8; }
.recent-date b { display: block; font-size: 15px; line-height: 1.1; }
.recent-date span { font-size: 10px; }
.recent-main { flex: 1; min-width: 0; }
.recent-main strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-main span { font-size: 11.5px; color: var(--muted); }
.recent-status { font-size: 11px; padding: 5px 10px; border-radius: 20px; white-space: nowrap; }

.category-bars { display: flex; flex-direction: column; gap: 15px; }
.bar-row .bar-label { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 7px; color: #4e5b78; }
.bar-row .bar-label b { color: var(--muted); font-weight: 500; }
.bar-track { height: 8px; border-radius: 10px; background: rgba(120, 135, 175, .14); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 10px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }

/* ---------- 事件页 ---------- */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: 8px 15px; border-radius: 11px; font-size: 13px; color: #6b7794; transition: background .2s, color .2s; }
.tab:hover { background: rgba(255, 255, 255, .5); }
.tab.active { background: linear-gradient(120deg, #6d7cf6, #57bff0); color: #fff; box-shadow: 0 6px 14px rgba(88, 105, 236, .22); }
.filter-selects { display: flex; gap: 9px; }
select { appearance: none; -webkit-appearance: none; padding: 9px 32px 9px 13px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 11px; background: rgba(255, 255, 255, .64) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b96b1' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 10px center; color: #4d5c85; font-size: 12.5px; outline: 0; cursor: pointer; }
select:focus { box-shadow: 0 0 0 3px rgba(109, 124, 246, .12); }

.event-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; align-content: start; }
.event-card { padding: 19px 20px 16px; border-radius: var(--radius-md); transition: transform .25s, box-shadow .25s; animation: rise .45s both; }
.event-card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(42, 54, 110, .14), inset 0 1px 0 rgba(255, 255, 255, .95); }
.event-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.event-date { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.event-date svg { width: 14px; height: 14px; }
.status-chip { font-size: 11px; padding: 5px 10px; border-radius: 20px; font-weight: 500; }
.event-title { margin: 0 0 8px; font-size: 16px; line-height: 1.4; letter-spacing: -.2px; }
.event-desc { margin: 0 0 14px; font-size: 12.5px; line-height: 1.65; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.event-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { font-size: 10.5px; padding: 4px 9px; border-radius: 8px; color: #6272a0; background: rgba(109, 124, 246, .09); }
.event-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid rgba(120, 135, 175, .14); }
.event-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.priority-dot { width: 7px; height: 7px; border-radius: 50%; }
.card-actions { display: flex; gap: 4px; }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .55); color: #7783a0; transition: background .2s, color .2s, transform .2s; }
.icon-btn:hover { background: rgba(109, 124, 246, .13); color: var(--primary-deep); transform: scale(1.06); }
.icon-btn.danger:hover { background: rgba(240, 97, 109, .13); color: var(--danger); }
.icon-btn svg { width: 16px; height: 16px; }

.empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 20px; color: var(--muted); text-align: center; }
.empty-art { width: 86px; height: 86px; border-radius: 26px; display: grid; place-items: center; background: rgba(109, 124, 246, .10); margin-bottom: 18px; }
.empty-art svg { width: 40px; height: 40px; color: #8b9be8; }
.empty strong { color: #4d5c85; font-size: 15px; margin-bottom: 6px; }
.empty span { font-size: 12.5px; }

/* ---------- 弹窗 ---------- */
.modal-root { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(24, 32, 62, .26); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); animation: fade .25s; }
.modal { position: relative; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 28px 30px 26px; border-radius: 30px; animation: modalIn .35s cubic-bezier(.2, .8, .2, 1); }
.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-thumb { background: rgba(120, 135, 175, .25); border-radius: 10px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.modal-head h3 { margin: 0; font-size: 20px; }
.modal-head p { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 14px; background: rgba(255, 255, 255, .66);
  color: var(--text); font-size: 13.5px; outline: 0; resize: vertical;
  transition: box-shadow .2s, background .2s;
}
.form-grid input::placeholder, .form-grid textarea::placeholder { color: #a2adc3; }
.form-grid select {
  padding-right: 32px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b96b1' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { background-color: rgba(255, 255, 255, .88); box-shadow: 0 0 0 4px rgba(109, 124, 246, .12); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal.confirm { width: min(400px, 100%); text-align: center; padding: 32px; }
.modal.confirm h3 { margin: 0 0 8px; font-size: 19px; }
.modal.confirm p { margin: 0 0 22px; font-size: 13px; color: var(--muted); }
.modal.confirm .modal-actions { justify-content: center; }

/* ---------- 提示 ---------- */
.toast-root { position: fixed; top: 22px; right: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 13px 18px; border-radius: 15px; font-size: 13px; animation: toastIn .35s cubic-bezier(.2, .8, .2, 1); min-width: 200px; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--primary); }

/* ---------- 动画 ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.shake { animation: shake .32s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .search-box { width: 220px; }
}
@media (max-width: 860px) {
  .app-view { flex-direction: column; height: auto; min-height: 100vh; padding: 12px; }
  .sidebar { width: 100%; flex: none; flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; overflow-x: auto; }
  .side-brand { padding: 0 10px 0 0; }
  .side-nav { flex-direction: row; }
  .side-section { display: none; }
  .side-bottom { margin: 0 0 0 auto; padding: 0; }
  .nav-item { width: auto; white-space: nowrap; }
  .main { min-height: 0; }
  .page { overflow: visible; }
  .topbar { flex-wrap: wrap; }
  .search-box { width: 100%; }
  .topbar-right { width: 100%; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-selects { width: 100%; }
  .filter-selects select { flex: 1; }
}
@media (max-width: 600px) {
  .login-card { padding: 32px 24px 28px; }
  .hero { flex-direction: column; align-items: flex-start; padding: 26px 24px; }
  .progress-ring { align-self: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 15px; }
  .event-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .modal { padding: 24px 20px; }
  .toast-root { left: 16px; right: 16px; top: 16px; }
}

/* ---------- 新增：导入 / 导出 / 时间轴 ---------- */
.btn-soft {
  color: #4d5c85;
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.56));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 8px 18px rgba(42,54,110,.08), inset 0 1px 0 rgba(255,255,255,.92);
}
.btn-soft:hover { box-shadow: 0 12px 24px rgba(42,54,110,.13), inset 0 1px 0 rgba(255,255,255,.95); }

.timeline-list { display: flex; flex-direction: column; gap: 14px; }
.timeline-day { padding: 20px 24px; border-radius: var(--radius-md); }
.timeline-day-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid rgba(120,135,175,.14); }
.timeline-day-head strong { font-size: 15px; }
.timeline-day-head span { font-size: 11.5px; color: var(--muted); }
.timeline-items { position: relative; padding-left: 74px; }
.timeline-items::before { content: ""; position: absolute; left: 57px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, rgba(109,124,246,.38), rgba(85,199,243,.10)); }
.timeline-item { position: relative; padding-bottom: 16px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-time { position: absolute; left: -74px; top: 15px; width: 50px; text-align: right; font-size: 11.5px; color: var(--muted); }
.timeline-dot { position: absolute; left: -20px; top: 17px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid rgba(255,255,255,.92); box-shadow: 0 0 0 2px rgba(109,124,246,.14); }
.timeline-card { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.72); }
.timeline-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.timeline-card-top strong { font-size: 14px; line-height: 1.5; }
.timeline-card p { margin: 8px 0 10px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.timeline-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline-range { align-items: center; gap: 8px; }
.timeline-range input[type="date"] { width: 152px; height: 38px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.9); border-radius: 11px; background: rgba(255,255,255,.64); color: #4d5c85; font-size: 12.5px; outline: 0; }
.range-sep { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 2px; background: transparent; border: 0; box-shadow: none; font-size: 12.5px; font-weight: 400; color: var(--muted); white-space: nowrap; }

.drop-zone { padding: 28px 20px; border: 1.5px dashed rgba(109,124,246,.38); border-radius: 20px; background: rgba(255,255,255,.42); text-align: center; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.drop-zone:hover, .drop-zone.dragover { background: rgba(109,124,246,.08); border-color: rgba(109,124,246,.7); transform: translateY(-2px); }
.drop-icon { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 15px; display: grid; place-items: center; color: #6272d8; background: rgba(109,124,246,.12); }
.drop-icon svg { width: 24px; height: 24px; }
.drop-zone strong { display: block; font-size: 14px; margin-bottom: 6px; }
.drop-zone span { font-size: 11.5px; color: var(--muted); }
.import-status { margin-top: 14px; padding: 12px 14px; border-radius: 13px; background: rgba(109,124,246,.10); color: #5366e8; font-size: 12.5px; }
.import-preview { margin-top: 14px; max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.import-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 13px; background: rgba(255,255,255,.52); }
.import-row input { margin-top: 3px; accent-color: var(--primary); }
.import-row-main { flex: 1; min-width: 0; }
.import-row-main strong { display: block; font-size: 13px; }
.import-row-main p { margin: 4px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.mini-chip { font-size: 10.5px; padding: 3px 8px; border-radius: 8px; background: rgba(109,124,246,.10); color: #5366e8; white-space: nowrap; }

.format-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.format-card { text-align: left; padding: 14px; border-radius: 15px; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.56); transition: transform .2s, box-shadow .2s, background .2s; }
.format-card:hover { transform: translateY(-2px); }
.format-card.active { border-color: rgba(109,124,246,.55); background: linear-gradient(135deg, rgba(109,124,246,.15), rgba(85,199,243,.08)); box-shadow: 0 0 0 3px rgba(109,124,246,.10); }
.format-badge { display: inline-block; font-size: 10px; font-weight: 700; color: #fff; padding: 3px 7px; border-radius: 6px; margin-bottom: 8px; }
.format-badge.pdf { background: #ef6f7d; }
.format-badge.doc { background: #5b8def; }
.format-badge.png { background: #27b98a; }
.format-card strong { display: block; font-size: 13px; }
.format-card small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.export-summary { margin-top: 14px; padding: 12px 14px; border-radius: 13px; background: rgba(255,255,255,.45); font-size: 12px; color: var(--muted); }
.export-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.export-custom label { display: block; font-size: 12px; font-weight: 600; color: #45506b; margin-bottom: 6px; }

/* 导出用的离屏玻璃海报 */
.export-sheet { position: fixed; left: -12000px; top: 0; width: 900px; padding: 52px 58px 60px; background: linear-gradient(135deg, #edf2ff 0%, #f7f2ff 45%, #eafbf6 100%); color: #1e2942; font-family: "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.export-sheet * { box-sizing: border-box; }
.es-card { background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.62)); border: 1px solid rgba(255,255,255,.95); border-radius: 28px; box-shadow: 0 18px 50px rgba(42,54,110,.10), inset 0 1px 0 rgba(255,255,255,.95); padding: 32px 36px; margin-bottom: 22px; }
.es-head { display: flex; align-items: center; justify-content: space-between; }
.es-brand { font-size: 14px; letter-spacing: 2px; color: #6272d8; }
.es-date { font-size: 12px; color: #6b7794; }
.es-title { font-size: 34px; margin: 18px 0 8px; letter-spacing: -1px; }
.es-subtitle { font-size: 13px; color: #6b7794; margin: 0; }
.es-stats { display: flex; gap: 14px; margin-top: 26px; }
.es-stat { flex: 1; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.9); }
.es-stat span { display: block; font-size: 11px; color: #6b7794; margin-bottom: 6px; }
.es-stat strong { font-size: 24px; }
.es-section-title { font-size: 16px; margin: 0 0 18px; }
.es-day { margin-bottom: 18px; }
.es-day-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.es-day-head strong { font-size: 14px; }
.es-day-head span { font-size: 11px; color: #6b7794; }
.es-line { border-left: 2px solid rgba(109,124,246,.28); margin-left: 5px; padding-left: 18px; }
.es-item { position: relative; padding: 10px 14px; margin-bottom: 8px; border-radius: 14px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.85); }
.es-item::before { content: ""; position: absolute; left: -25px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: #6d7cf6; border: 3px solid rgba(255,255,255,.95); }
.es-item-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.es-item-top strong { font-size: 13px; }
.es-item-top span { font-size: 10.5px; color: #6b7794; white-space: nowrap; }
.es-item p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.6; color: #6b7794; }
.es-empty { text-align: center; padding: 60px 0; color: #6b7794; font-size: 13px; }
.es-footer { text-align: center; font-size: 11px; color: #8090ad; letter-spacing: 1px; margin-top: 10px; }

/* ---------- 新增：多用户 / 个人中心 ---------- */
.side-brand { border: 0; background: transparent; width: 100%; cursor: pointer; text-align: left; transition: transform .2s, opacity .2s; }
.side-brand:hover { transform: translateY(-2px); opacity: .88; }
.side-brand:focus-visible { outline: 2px solid rgba(109,124,246,.55); outline-offset: 4px; border-radius: 14px; }

.auth-switch { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(120,135,175,.14); text-align: center; font-size: 12.5px; color: var(--muted); }
.auth-switch button { border: 0; background: transparent; color: var(--primary-deep); font-size: 13px; font-weight: 600; padding: 0 4px; }
.auth-switch button:hover { text-decoration: underline; }

.avatar { padding: 0; overflow: hidden; display: grid; place-items: center; }
.avatar > span, .avatar > img { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; font-size: 21px; line-height: 1; }
.avatar > img { object-fit: cover; }

.profile-modal { width: min(700px, 100%); }
.profile-top { display: flex; align-items: center; gap: 15px; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.52); margin-bottom: 18px; }
.profile-avatar { width: 64px; height: 64px; flex: 0 0 64px; display: grid; place-items: center; border-radius: 50%; font-size: 32px; overflow: hidden; border: 3px solid rgba(255,255,255,.95); box-shadow: 0 8px 20px rgba(88,105,236,.18); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-identity { flex: 1; min-width: 0; }
.profile-identity strong { display: block; font-size: 17px; margin-bottom: 4px; }
.profile-identity span { display: block; font-size: 12px; color: var(--muted); }
.profile-role { font-size: 11.5px; padding: 6px 11px; border-radius: 20px; background: rgba(109,124,246,.12); color: #5366e8; white-space: nowrap; }
.profile-role.admin { background: linear-gradient(120deg, rgba(232,163,61,.20), rgba(240,97,109,.14)); color: #b56b20; }

.profile-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid rgba(120,135,175,.14); }
.profile-tab { border: 0; background: transparent; padding: 10px 16px; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.profile-tab.active { color: var(--primary-deep); font-weight: 600; border-bottom-color: var(--primary); }
.profile-panel { animation: fade .25s; }

.avatar-section { margin-top: 20px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.42); }
.avatar-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.avatar-section-head strong { font-size: 13px; }
.avatar-section-head span { font-size: 11px; color: var(--muted); }
.avatar-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.avatar-choice { width: 52px; height: 52px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; font-size: 26px; line-height: 1; box-shadow: 0 6px 14px rgba(42,54,110,.08); transition: transform .2s, box-shadow .2s; }
.avatar-choice:hover { transform: translateY(-3px) scale(1.05); }
.avatar-choice.active { box-shadow: 0 0 0 3px rgba(109,124,246,.25), 0 8px 18px rgba(88,105,236,.2); }
.avatar-choice.custom { background: rgba(255,255,255,.7); color: #6b7794; font-size: 20px; }
.avatar-upload-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.avatar-upload-row .btn { padding: 9px 14px; font-size: 12.5px; }
.avatar-upload-row span { font-size: 11px; color: var(--muted); }

.password-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(120,135,175,.14); }
.password-section > strong { display: block; font-size: 13px; margin-bottom: 14px; }

.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.admin-toolbar strong { font-size: 14px; }
.admin-toolbar span { font-size: 11px; color: var(--muted); }
.admin-user-list { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.admin-user-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.5); }
.admin-user-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; font-size: 22px; overflow: hidden; border: 2px solid rgba(255,255,255,.92); }
.admin-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-user-info { flex: 1; min-width: 0; }
.admin-user-info strong { display: block; font-size: 13px; }
.admin-user-info span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-user-actions { display: flex; gap: 6px; }
.mini-btn { border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.7); color: #5366e8; font-size: 11px; padding: 6px 9px; border-radius: 9px; white-space: nowrap; }
.mini-btn:hover { background: rgba(109,124,246,.12); }
.mini-btn.danger { color: var(--danger); }
.admin-events-title { font-size: 15px; margin: 12px 0; }
.admin-event-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.admin-event-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; background: rgba(255,255,255,.5); }
.admin-event-row div { flex: 1; min-width: 0; }
.admin-event-row strong { display: block; font-size: 12.5px; }
.admin-event-row span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }

@media (max-width: 600px) {
  .profile-modal { padding: 24px 20px; }
  .profile-top { flex-wrap: wrap; }
  .avatar-upload-row { align-items: flex-start; flex-direction: column; }
  .admin-toolbar { flex-direction: column; align-items: flex-start; }
  .admin-user-row { flex-wrap: wrap; }
  .admin-user-actions { width: 100%; }
}

/* 头像内部填充 */
.avatar-face, .profile-avatar-face, .admin-user-avatar-face { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; font-size: 21px; line-height: 1; }
.profile-avatar-face { font-size: 32px; }
.admin-user-avatar-face { font-size: 22px; }
.avatar-face img, .profile-avatar-face img, .admin-user-avatar-face img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-choice img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
