/* ============ 设计令牌 ============ */
:root {
  --el-color-primary: #2563eb;
  --el-color-primary-light-3: #5b8def;
  --el-color-primary-light-5: #8db2f5;
  --el-color-primary-light-7: #bfd4fa;
  --el-color-primary-light-8: #d7e4fc;
  --el-color-primary-light-9: #ecf2fe;
  --el-color-primary-dark-2: #1d4ed8;
  --el-color-success: #16a34a;
  --el-color-success-light-3: #4ade80;
  --el-color-success-light-5: #86efac;
  --el-color-success-light-7: #bbf7d0;
  --el-color-success-light-8: #dcfce7;
  --el-color-success-light-9: #f0fdf4;
  --el-color-success-dark-2: #15803d;
  --el-color-warning: #d97706;
  --el-color-warning-light-3: #fbbf24;
  --el-color-warning-light-5: #fcd34d;
  --el-color-warning-light-7: #fde68a;
  --el-color-warning-light-8: #fef3c7;
  --el-color-warning-light-9: #fffbeb;
  --el-color-warning-dark-2: #b45309;
  --el-color-danger: #dc2626;
  --el-color-danger-light-3: #f87171;
  --el-color-danger-light-5: #fca5a5;
  --el-color-danger-light-7: #fecaca;
  --el-color-danger-light-8: #fee2e2;
  --el-color-danger-light-9: #fef2f2;
  --el-color-danger-dark-2: #b91c1c;
  --el-border-radius-base: 10px;
  --el-border-radius-small: 8px;
  --el-font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;

  --brand-deep: #0b1f3a;
  --brand-dark: #102b50;
  --brand: #1d5fb8;
  --brand-light: #2f7dd2;
  --brand-sky: #5aa0e8;
  --page-bg: #f3f6fb;
  --line: #e6ecf5;
  --ink: #1b2b45;
  --ink-2: #52637c;
  --ink-3: #8c9ab0;
  --shadow-sm: 0 2px 8px rgba(16, 39, 75, .05);
  --shadow-card: 0 6px 22px rgba(16, 39, 75, .06);
  --shadow-hover: 0 16px 36px rgba(16, 39, 75, .13);
}

/* ============ 全局 ============ */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--el-font-family);
  background: var(--page-bg);
  color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 8%, rgba(47, 125, 210, .10), transparent 32%),
    radial-gradient(circle at 92% 92%, rgba(22, 163, 74, .07), transparent 30%);
}
a { text-decoration: none; color: inherit; }

/* Element Plus 组件质感增强（仅视觉，不改变行为） */
.el-button { font-weight: 600; letter-spacing: .02em; }
.el-button--primary:not(.is-plain):not(.is-text):not(.is-link) {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(29, 95, 184, .22);
}
.el-button--primary:not(.is-plain):not(.is-text):not(.is-link):hover {
  background: linear-gradient(135deg, #3b8add, #174f9f);
  box-shadow: 0 8px 22px rgba(29, 95, 184, .3);
}
.el-button--success:not(.is-plain):not(.is-text):not(.is-link) {
  background: linear-gradient(135deg, #34d399, #16a34a);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(22, 163, 74, .22);
}
.el-button--warning:not(.is-plain):not(.is-text):not(.is-link) {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(217, 119, 6, .22);
}
.el-button--danger:not(.is-plain):not(.is-text):not(.is-link) {
  background: linear-gradient(135deg, #f87171, #dc2626);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(220, 38, 38, .22);
}
.el-tag { border-radius: 7px; font-weight: 600; }

/* ============ 登录页 ============ */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 38px 38px,
    radial-gradient(circle at 78% 16%, rgba(90,160,232,.34), transparent 32%),
    linear-gradient(135deg, #091d39 0%, #113a73 48%, #1d5fb8 100%);
}
.login-wrapper {
  width: 100%;
  max-width: 1080px;
  min-height: 590px;
  display: flex;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 30px 80px rgba(2, 16, 42, .42);
}
.login-brand {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #0f2f61 0%, #17468e 52%, #1f63b5 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 44px;
}
.login-brand::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -160px; top: -150px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 120px rgba(255,255,255,.02);
}
.login-brand::after {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  left: -110px; bottom: -120px;
  border-radius: 50%;
  background: rgba(90, 160, 232, .18);
  filter: blur(4px);
}
.brand-inner { max-width: 380px; position: relative; z-index: 1; }
.brand-logo {
  width: 76px; height: 76px;
  border-radius: 20px;
  background: linear-gradient(135deg, #5aa0e8, #2f7dd2);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; font-weight: 700; color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 12px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.3);
  margin-bottom: 26px;
}
.login-brand h1 { font-size: 30px; line-height: 1.45; margin: 0 0 12px; font-weight: 700; letter-spacing: .02em; }
.brand-slogan { font-size: 15px; color: rgba(255,255,255,.82); margin: 0 0 32px; letter-spacing: 3px; }
.brand-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.65), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.65), transparent 72%);
}
.brand-emblem { width: 220px; max-width: 80%; margin-bottom: 26px; position: relative; z-index: 1; }
.brand-emblem svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,.2)); }
.brand-kicker { font-size: 14px; letter-spacing: 6px; color: rgba(255,255,255,.72); margin-bottom: 10px; position: relative; z-index: 1; }
.login-brand .brand-title {
  font-size: 52px; font-weight: 800; letter-spacing: 8px;
  margin: 0 0 8px; line-height: 1.15;
  color: #fff; text-shadow: 0 8px 24px rgba(0,0,0,.28);
  position: relative; z-index: 1;
}
.login-brand .brand-slogan { font-size: 16px; color: rgba(255,255,255,.85); margin: 0; letter-spacing: 2px; position: relative; z-index: 1; }
.brand-divider {
  width: 60px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,.08));
  margin: 24px 0 18px; position: relative; z-index: 1;
}
.brand-tagline { font-size: 14px; color: rgba(255,255,255,.7); letter-spacing: 2px; margin: 0; position: relative; z-index: 1; }
.brand-footnote {
  position: absolute; left: 44px; bottom: 24px;
  font-size: 10px; letter-spacing: 2px; color: rgba(255,255,255,.32); z-index: 1;
}
.beian-link { color: inherit; text-decoration: none !important; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.beian-link:hover { color: var(--brand-light); border-bottom-color: var(--brand-light); }
.brand-points { list-style: none; padding: 0; margin: 0; }
.brand-points li {
  padding: 9px 0;
  font-size: 15px;
  color: rgba(255,255,255,.92);
  display: flex; align-items: center; gap: 10px;
}
.brand-points li::before {
  content: "✓";
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
.login-panel {
  width: 440px;
  flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 50px 30px;
  background: #fff;
}
.panel-card { width: 100%; }
.panel-tabs {
  display: flex; gap: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
.panel-tabs .tab {
  font-size: 18px; font-weight: 600; color: #98a5b8;
  padding-bottom: 14px; cursor: pointer; user-select: none;
  position: relative; transition: color .2s;
}
.panel-tabs .tab.active { color: var(--brand); }
.panel-tabs .tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-sky), var(--brand));
}
.full-btn { width: 100%; margin-top: 10px; font-size: 16px; letter-spacing: 6px; height: 48px; }
.reg-tip { margin-top: 6px; }
.reg-tip p { margin: 4px 0 0; font-size: 12px; line-height: 1.7; }
.reg-result { margin-top: 18px; }
.login-footer { margin-top: 28px; text-align: center; color: #aab4c2; font-size: 12px; letter-spacing: .02em; }

/* ============ 通用布局 ============ */
.layout { display: flex; min-height: 100vh; }
.aside {
  width: 236px;
  background: linear-gradient(180deg, #0b203c 0%, #102c52 55%, #0e2647 100%);
  color: #cfd8e6;
  display: flex; flex-direction: column;
  flex-shrink: 0;
  box-shadow: 2px 0 18px rgba(8, 24, 48, .12);
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: flex-start;
  overflow-y: auto;
  z-index: 10;
}
.aside::after {
  content: "";
  position: absolute; right: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.14), transparent);
}
.aside-header {
  padding: 24px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.aside-header .logo-line { display: flex; align-items: center; gap: 10px; }
.aside-header .logo-badge {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #5aa0e8, #2f7dd2);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 19px;
  box-shadow: 0 6px 16px rgba(47,125,210,.35);
}
.aside-header h2 { color: #fff; font-size: 15px; margin: 12px 0 0; line-height: 1.5; letter-spacing: .02em; }
.aside-header .sub { font-size: 12px; color: #89a0c2; margin-top: 3px; letter-spacing: .04em; }
.aside-header .brand-text { min-width: 0; }
.aside-header .brand-name { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.aside-header .brand-wing { display: none; }
.aside .menu { flex: 1; padding: 14px 0; overflow-y: auto; }
.menu-item {
  display: flex; align-items: center; gap: 12px;
  margin: 3px 12px;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer; font-size: 14px;
  color: #a9bcd4; transition: all .18s;
  border-left: 3px solid transparent;
}
.menu-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.menu-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(47,125,210,.36), rgba(47,125,210,.10));
  border-left-color: #5aa0e8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.menu-item .el-icon { font-size: 18px; }
.aside-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px; color: #7188a8; letter-spacing: .03em;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(16,39,75,.04);
  position: sticky; top: 0; z-index: 50;
}
.topbar .page-title { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mobile-back { display: none; align-items: center; gap: 6px; cursor: pointer; color: var(--brand); font-size: 14px; font-weight: 600; white-space: nowrap; }
.back-arrow {
  display: inline-block; width: 9px; height: 9px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin-right: 1px;
}
.topbar .user-box { display: flex; align-items: center; gap: 14px; }
.topbar .avatar {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, #2f7dd2, #1d5fb8);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 14px rgba(29,95,184,.28);
  border: 2px solid rgba(255,255,255,.8);
}
.content { padding: 28px 32px 40px; flex: 1; }

/* ============ 卡片/面板 ============ */
.card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
  margin-bottom: 20px;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card-title {
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin: 0 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; padding-left: 13px;
}
.card-title::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 2px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, #5aa0e8, #1d5fb8);
}
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }

/* 统计卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 20px; }
.stat-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 16px;
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stat-card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 27px; color: #fff; flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.stat-card .num { font-size: 28px; font-weight: 750; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
.stat-card .label { font-size: 13px; color: var(--ink-3); margin-top: 6px; line-height: 1.4; }
.ic-blue { background: linear-gradient(135deg, #2f7dd2, #5aa0e8); }
.ic-green { background: linear-gradient(135deg, #16a34a, #4ade80); }
.ic-orange { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.ic-red { background: linear-gradient(135deg, #dc2626, #f87171); }
.ic-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.ic-teal { background: linear-gradient(135deg, #0d9488, #2dd4bf); }

/* 图表行 */
.chart-row { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; margin-bottom: 20px; }
.chart-box { height: 300px; }

/* 表格 */
.el-table {
  --el-table-header-bg-color: #f7f9fc;
  --el-table-header-text-color: #40536e;
  --el-table-row-hover-bg-color: #f2f7ff;
  --el-table-border-color: #eef2f7;
  font-size: 13px;
}
.el-table th.el-table__cell { font-weight: 700; letter-spacing: .02em; }
.status-tag { margin-right: 0; }

/* 详情/空态/提示 */
.project-desc { white-space: pre-wrap; line-height: 1.85; color: var(--ink-2); font-size: 14px; }
.tip-muted { color: var(--ink-3); font-size: 13px; }
.announcement-content { white-space: pre-wrap; line-height: 1.9; color: var(--ink-2); }
.todo-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #f8fafd;
  border: 1px solid #edf2f8;
  margin-bottom: 8px;
  font-size: 13px;
  transition: background .2s;
}
.todo-item:hover { background: #f0f6ff; }

/* ============ 志愿者中心首页 ============ */
.welcome-banner {
  border-radius: 18px;
  padding: 22px 26px;
  margin-bottom: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(255,255,255,.22), transparent 30%),
    linear-gradient(120deg, #0e2f61 0%, #1d5fb8 58%, #2f7dd2 100%);
  box-shadow: 0 10px 28px rgba(29,95,184,.22);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.welcome-banner::after {
  content: ""; position: absolute; width: 260px; height: 260px;
  right: -80px; top: -120px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
}
.welcome-brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.welcome-logo {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; flex-shrink: 0;
}
.welcome-title { font-size: 19px; font-weight: 700; letter-spacing: .02em; }
.welcome-sub { font-size: 12px; color: rgba(255,255,255,.78); margin-top: 4px; letter-spacing: .04em; }
.welcome-user { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.welcome-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.9); color: #1d5fb8;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.welcome-hi { font-size: 15px; font-weight: 700; }
.welcome-meta { font-size: 12px; color: rgba(255,255,255,.78); margin-top: 3px; }
.welcome-stat { text-align: right; }
.welcome-stat-num { font-size: 28px; font-weight: 750; color: #fff; line-height: 1.1; }
.welcome-stat-label { font-size: 11px; color: rgba(255,255,255,.78); margin-top: 4px; }

.quick-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px;
}
.quick-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-card); padding: 16px 8px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer; position: relative; transition: transform .2s, box-shadow .2s;
}
.quick-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.quick-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.quick-item span { font-size: 13px; color: var(--ink); font-weight: 600; }
.quick-dot {
  position: absolute; top: 12px; right: 18px; width: 8px; height: 8px;
  border-radius: 50%; background: #f56c6c;
}
.quick-more {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: -4px 0 18px; cursor: pointer; user-select: none;
  font-size: 12px; color: var(--brand); font-weight: 600;
}
.quick-more-arrow {
  display: inline-block; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.quick-more-arrow.up { transform: rotate(-135deg); }

.home-stat { margin-bottom: 18px; }

.project-card {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; margin-bottom: 10px; cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.project-card:hover { background: #f5f9ff; box-shadow: var(--shadow-sm); }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-badge {
  background: linear-gradient(135deg,#e8f2ff,#dbeafe); color: var(--brand);
  border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
}
.project-card-title { font-size: 14px; font-weight: 700; color: var(--ink); margin: 8px 0 6px; }
.project-card-meta { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.project-card-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }

/* ============ 卡片式列表（项目 / 报名） ============ */
.card-list { display: grid; gap: 12px; }
.item-card {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.item-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.item-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.item-card-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.5; flex: 1; }
.item-card-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f5f8fd; border: 1px solid #eaf0f8; color: var(--ink-2);
  border-radius: 8px; padding: 5px 10px; font-size: 12px;
}
.item-card-note {
  margin-top: 10px; font-size: 12px; color: var(--ink-3);
  background: #f8fafd; border-radius: 8px; padding: 8px 10px; line-height: 1.6;
}
.item-card-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.profile-edit-title { font-size: 14px; font-weight: 700; color: var(--ink); margin: 22px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.todo-alert-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.todo-alert { display: flex; align-items: center; gap: 8px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafd; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: background .2s; }
.todo-alert:hover { background: #f0f6ff; }
.todo-alert .el-icon { color: var(--brand); font-size: 16px; }
.todo-alert b { margin-left: auto; color: var(--brand); font-size: 17px; }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-row { grid-template-columns: 1fr; }
  .login-wrapper { max-width: 720px; flex-direction: column; }
  .login-brand { padding: 36px 32px; }
  .login-panel { width: 100%; padding: 32px 36px; }
}

@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .aside { display: none; }
  .mobile-back { display: flex; }

  .topbar {
    height: auto; min-height: 62px; padding: 10px 14px;
    background: linear-gradient(110deg, #0e2f61 0%, #1d5fb8 62%, #2f7dd2 100%);
    box-shadow: 0 4px 16px rgba(14,47,97,.28);
    color: #fff;
  }
  .mobile-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .mobile-logo {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
  }
  .mobile-brand-text { display: flex; flex-direction: column; min-width: 0; }
  .mobile-brand-name { font-size: 15px; font-weight: 700; letter-spacing: 2px; color: #fff; line-height: 1.3; }
  .mobile-brand-sub { font-size: 10px; color: rgba(255,255,255,.75); line-height: 1.4; }
  .topbar .page-title { color: #fff; }
  .topbar .user-box { color: #fff; gap: 8px; }
  .topbar .user-box .el-icon { color: #fff !important; }
  .topbar .avatar { background: rgba(255,255,255,.9); color: #1d5fb8; border-color: rgba(255,255,255,.7); }
  .mobile-back { color: #fff; }
  .menu-item {
    flex: 0 0 auto; margin: 0; padding: 7px 10px;
    border-left: none; border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0; font-size: 12px; white-space: nowrap; gap: 6px;
  }
  .menu-item.active { background: rgba(47,125,210,.22); border-bottom-color: #5aa0e8; }
  .menu-item .el-icon { font-size: 15px; }
  .aside-footer { display: none; }

  .topbar .page-title { font-size: 16px; }
  .topbar .user-box { gap: 8px; }
  .topbar .avatar { width: 30px; height: 30px; font-size: 12px; border-radius: 9px; }

  .content { padding: 12px 10px 28px; }
  .card { padding: 14px 12px; border-radius: 14px; margin-bottom: 12px; overflow-x: auto; }
  .card-title { font-size: 15px; margin-bottom: 12px; }
  .toolbar { gap: 8px; }
  .toolbar .el-input, .toolbar .el-select { width: 100% !important; }
  .toolbar .el-button { flex: 1 1 auto; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
  .stat-card { padding: 12px; gap: 8px; border-radius: 12px; }
  .stat-card .icon { width: 36px; height: 36px; font-size: 17px; border-radius: 10px; }
  .stat-card .num { font-size: 19px; }
  .stat-card .label { font-size: 11px; margin-top: 2px; }

  .chart-row { gap: 12px; margin-bottom: 12px; }
  .chart-box { height: 220px; }
  .el-table { font-size: 12px; }
  .el-table .cell { padding: 0 6px; }

  .welcome-banner { padding: 16px; border-radius: 14px; gap: 14px; }
  .welcome-logo { width: 40px; height: 40px; font-size: 20px; border-radius: 12px; }
  .welcome-title { font-size: 16px; }
  .welcome-sub { font-size: 11px; }
  .welcome-user { width: auto; padding-top: 0; border-top: none; }
  .welcome-stat-num { font-size: 22px; }
  .welcome-stat-label { font-size: 10px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .quick-item { padding: 12px 4px 10px; border-radius: 12px; gap: 7px; }
  .quick-icon { width: 42px; height: 42px; font-size: 19px; border-radius: 12px; }
  .quick-item span { font-size: 12px; }

  .el-dialog { width: calc(100vw - 24px) !important; max-width: 100%; margin: 0 auto 12px !important; border-radius: 14px; }
  .el-dialog__header { padding: 16px 16px 8px; }
  .el-dialog__title { font-size: 16px; word-break: break-all; line-height: 1.5; }
  .el-dialog__body { padding: 10px 16px 16px; max-height: 68vh; overflow-y: auto; }
  .el-dialog__footer { padding: 10px 16px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
  .el-dialog__footer .el-button { margin-left: 0; flex: 1 1 auto; }
  .project-detail-desc .el-descriptions__label { width: 90px; }
  .project-detail-desc .el-descriptions__content { word-break: break-all; }
  .project-detail-dialog .project-desc { font-size: 13px; }

  .login-body { padding: 0; align-items: stretch; }
  .login-wrapper { border-radius: 0; min-height: 100vh; box-shadow: none; border: none; }
  .login-brand { padding: 20px 20px 16px; min-height: auto; }
  .brand-emblem { width: 88px; margin-bottom: 10px; }
  .brand-kicker { font-size: 10px; letter-spacing: 2px; margin-bottom: 4px; }
  .login-brand .brand-title {
    font-size: 30px !important; letter-spacing: 1px;
    white-space: nowrap; margin: 0 0 4px !important;
  }
  .login-brand .brand-slogan { font-size: 12px; margin: 0; }
  .brand-divider { width: 44px; margin: 12px 0 8px; }
  .brand-tagline { font-size: 11px; letter-spacing: 1px; }
  .brand-footnote { display: none; }
  .login-panel { padding: 20px 20px 26px; }
  .panel-tabs { gap: 28px; margin-bottom: 18px; }
  .panel-tabs .tab { font-size: 16px; }
  .full-btn { letter-spacing: 3px; height: 44px; }
  .login-footer { font-size: 11px; margin-top: 18px; }
}

@media (max-width: 400px) {
  .stat-grid { grid-template-columns: 1fr; }
  .login-brand { padding: 16px 16px 14px; }
  .brand-emblem { width: 76px; }
  .login-brand .brand-title { font-size: 26px !important; }
  .login-panel { padding: 18px 16px 24px; }
}

@media (min-width: 1600px) {
  .login-wrapper { max-width: 1180px; }
  .content { padding: 32px 40px 48px; }
}
