/* ========================================
   校团委考核系统 - 后台管理端
   浅蓝政务风 + 弹性浮动动效
   ======================================== */

:root {
  /* 浅蓝政务配色 */
  --primary: #38BDF8;
  --primary-light: #7DD3FC;
  --primary-lighter: #BAE6FD;
  --primary-fade: #E0F2FE;
  --primary-dark: #0EA5E9;
  --primary-deep: #0284C7;
  --primary-navy: #1E3A8A;
  --primary-navy-light: #1E40AF;

  --accent: #60A5FA;
  --success: #34D399;
  --warning: #FBBF24;
  --danger: #F87171;
  --info: #38BDF8;

  /* 背景色系 */
  --bg-main: #F0F9FF;
  --bg-card: #FFFFFF;
  --bg-sidebar: #FFFFFF;
  --bg-hover: #E0F2FE;
  --bg-input: #F8FAFC;
  --bg-navy: linear-gradient(180deg, #1E3A8A 0%, #1E40AF 100%);

  /* 文字色 */
  --text-main: #0F172A;
  --text-secondary: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  /* 边框 */
  --border: #E2E8F0;
  --border-light: #F1F5F9;

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(56, 189, 248, 0.08);
  --shadow-md: 0 6px 20px rgba(56, 189, 248, 0.12);
  --shadow-lg: 0 12px 40px rgba(56, 189, 248, 0.18);
  --shadow-float: 0 20px 50px rgba(56, 189, 248, 0.22);
  --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.35);

  /* 弹性缓动 */
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease-smooth: cubic-bezier(.4, 0, .2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 14px;
  overflow: hidden;
  height: 100vh;
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* === 布局 === */
.app-layout { display: flex; height: 100vh; }

/* === 侧边栏 === */
.sidebar {
  width: 230px;
  background: var(--bg-navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: 4px 0 24px rgba(30, 58, 138, 0.18);
  z-index: 10;
  position: relative;
}

.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(56,189,248,0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(96,165,250,0.06) 0%, transparent 40%);
  pointer-events: none;
}

.sidebar-header {
  padding: 26px 20px 22px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  position: relative;
}

.sidebar-logo {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, #38BDF8 0%, #60A5FA 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 16px rgba(56,189,248,0.35);
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s var(--ease-smooth);
}

.sidebar-header:hover .sidebar-logo {
  transform: scale(1.12) rotate(-8deg);
  box-shadow: 0 10px 28px rgba(56,189,248,0.5);
}

.sidebar-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
}

.sidebar-subtitle {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 3px;
  font-weight: 400;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 0;
  position: relative;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); }

.nav-group-title {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  padding: 16px 24px 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 22px;
  margin: 2px 10px;
  color: rgba(255,255,255,0.78);
  cursor: pointer;
  transition: all 0.35s var(--ease-bounce);
  font-size: 14px;
  border-radius: 10px;
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(56,189,248,0.25), transparent);
  transition: width 0.35s var(--ease-smooth);
}

.nav-item:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: translateX(6px) scale(1.02);
}

.nav-item:hover::before { width: 100%; }

.nav-item.active {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-left-color: #38BDF8;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.nav-item.active .nav-icon { transform: scale(1.15); }

.nav-icon {
  font-size: 18px;
  transition: transform 0.35s var(--ease-bounce);
  min-width: 22px;
  text-align: center;
}

.nav-item:hover .nav-icon {
  transform: scale(1.25) rotate(-8deg);
}

.sidebar-footer {
  padding: 16px 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  position: relative;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  transition: all 0.35s var(--ease-bounce);
}

.user-info:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #38BDF8 0%, #60A5FA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(56,189,248,0.35);
  transition: transform 0.4s var(--ease-bounce);
}

.user-info:hover .user-avatar {
  transform: scale(1.15) rotate(12deg);
}

.user-detail { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: #fff; }
.user-role { font-size: 11px; color: rgba(255,255,255,0.65); }

.logout-btn {
  width: 100%;
  padding: 9px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.35s var(--ease-bounce);
  font-weight: 500;
}

.logout-btn:hover {
  background: rgba(56,189,248,0.25);
  border-color: rgba(56,189,248,0.4);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(56,189,248,0.25);
}

/* === 主内容区 === */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-main);
  position: relative;
}

.main-content::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  padding: 16px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-light);
  z-index: 5;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-title-icon { font-size: 22px; }

.page-actions { display: flex; gap: 10px; }

.page-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 26px;
}

/* === 卡片 === */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid var(--border-light);
  transition: all 0.4s var(--ease-bounce);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38BDF8, #60A5FA, #38BDF8);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-float);
  border-color: var(--primary-lighter);
}

.card:hover::before {
  opacity: 1;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === 统计卡片 === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-bounce);
  border: 1px solid var(--border-light);
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: var(--shadow-float);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 90px; height: 90px;
  border-radius: 50%;
  opacity: 0.1;
  transform: translate(24px, -24px);
  transition: all 0.4s var(--ease-bounce);
}

.stat-card:hover::before {
  transform: translate(16px, -32px) scale(1.2);
  opacity: 0.18;
}

.stat-card.blue::before { background: var(--primary); }
.stat-card.pink::before { background: var(--accent); }
.stat-card.green::before { background: var(--success); }
.stat-card.yellow::before { background: var(--warning); }

.stat-icon {
  font-size: 34px;
  margin-bottom: 10px;
  transition: transform 0.4s var(--ease-bounce);
}

.stat-card:hover .stat-icon {
  transform: scale(1.2) rotate(-8deg);
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-main);
  transition: all 0.35s var(--ease-bounce);
}

.stat-card:hover .stat-value {
  transform: scale(1.08);
  color: var(--primary-dark);
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 500;
}

/* === 控制台底部学生数据区 === */
.dashboard-bottom {
  padding: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fcff 100%);
}

.dashboard-bottom-head,
.dashboard-todo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-bottom-head { margin-bottom: 18px; }
.dashboard-bottom-kicker {
  color: var(--primary-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  margin-bottom: 4px;
}
.dashboard-bottom-title { margin-bottom: 0; }
.dashboard-bottom-badge {
  padding: 7px 11px;
  border-radius: var(--radius-full);
  color: var(--primary-deep);
  background: var(--primary-fade);
  border: 1px solid var(--primary-lighter);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.dashboard-bottom-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr);
  gap: 20px;
  align-items: stretch;
}
.dashboard-bottom-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.dashboard-metric-card {
  min-width: 0;
  min-height: 164px;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-bounce), box-shadow .35s var(--ease-smooth), border-color .35s var(--ease-smooth);
}
.dashboard-metric-card::after {
  content: '';
  position: absolute;
  width: 82px;
  height: 82px;
  right: -28px;
  top: -28px;
  border-radius: 50%;
  background: var(--primary-fade);
  opacity: .8;
  transition: transform .4s var(--ease-bounce);
}
.dashboard-metric-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-lighter);
}
.dashboard-metric-card:hover::after { transform: scale(1.35); }
.dashboard-metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: var(--primary-fade);
  color: var(--primary-deep);
  position: relative;
  z-index: 1;
  transition: transform .35s var(--ease-bounce);
}
.dashboard-metric-card:hover .dashboard-metric-icon { transform: scale(1.12) rotate(-7deg); }
.dashboard-metric-label { color: var(--text-secondary); font-size: 12px; position: relative; z-index: 1; }
.dashboard-metric-value {
  margin: 8px 0 5px;
  color: var(--primary-navy);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.dashboard-metric-value span { margin-left: 3px; color: var(--primary-deep); font-size: 13px; font-weight: 700; }
.dashboard-metric-foot { color: var(--text-light); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1; }
.dashboard-progress-track { height: 6px; margin: 12px 0 9px; border-radius: var(--radius-full); background: #eaf5fb; overflow: hidden; position: relative; z-index: 1; }
.dashboard-progress-bar { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-deep)); transition: width .5s var(--ease-smooth); }
.dashboard-todo-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--primary-lighter);
  border-radius: 15px;
  background: linear-gradient(180deg, #f5fbff 0%, #ffffff 100%);
  box-shadow: var(--shadow-sm);
}
.dashboard-todo-title { color: var(--primary-navy); font-size: 15px; font-weight: 800; }
.dashboard-todo-subtitle { margin-top: 4px; color: var(--text-light); font-size: 11px; }
.dashboard-todo-count { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--primary-deep); font-weight: 800; }
.dashboard-todo-list { margin-top: 12px; }
.dashboard-todo-item { display: flex; align-items: center; gap: 9px; padding: 12px 0; border-bottom: 1px solid #eaf3f8; }
.dashboard-todo-item:last-child { border-bottom: 0; }
.dashboard-status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(14,165,233,.08); }
.dot-blue { background: #0ea5e9; }.dot-orange { background: #f59e0b; }.dot-green { background: #10b981; }.dot-purple { background: #8b5cf6; }
.dashboard-todo-content { min-width: 0; flex: 1; }
.dashboard-todo-content strong { display: block; color: var(--text-main); font-size: 12px; font-weight: 700; }
.dashboard-todo-content small { display: block; margin-top: 3px; color: var(--text-light); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashboard-todo-action { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--primary-lighter); border-radius: 7px; color: var(--primary-deep); background: #fff; font-size: 11px; cursor: pointer; transition: all .25s var(--ease-bounce); }
.dashboard-todo-action:hover { color: #fff; background: var(--primary-deep); transform: translateY(-2px); }
.dashboard-todo-all { width: 100%; margin-top: 10px; padding: 9px 0 0; border: 0; border-top: 1px solid #eaf3f8; color: var(--primary-deep); background: transparent; text-align: center; font-size: 11px; cursor: pointer; }
.dashboard-todo-all span { display: inline-block; margin-left: 4px; transition: transform .25s var(--ease-bounce); }
.dashboard-todo-all:hover span { transform: translateX(4px); }
.dashboard-welcome-card { margin-top: 0; }

/* === 表单 === */
.form-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 180px;
}

.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 7px;
  font-weight: 600;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  font-size: 14px;
  color: var(--text-main);
  transition: all 0.3s var(--ease-bounce);
  font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(56,189,248,0.12), 0 4px 12px rgba(56,189,248,0.1);
  transform: translateY(-2px);
  background: #fff;
}

.form-textarea { min-height: 90px; resize: vertical; }

.form-input::placeholder { color: var(--text-light); }

.form-actions {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* === 按钮 === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s var(--ease-bounce);
  font-family: inherit;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0s;
}

.btn:hover::after {
  transform: translateX(100%);
  transition: transform 0.6s var(--ease-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(56,189,248,0.35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 28px rgba(56,189,248,0.45);
}

.btn-pink {
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59,130,246,0.3);
}

.btn-pink:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 28px rgba(59,130,246,0.4);
}

.btn-success {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(52,211,153,0.28);
}

.btn-success:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 24px rgba(52,211,153,0.38);
}

.btn-danger {
  background: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(248,113,113,0.28);
}

.btn-danger:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 24px rgba(248,113,113,0.38);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--primary-deep);
  border-color: var(--primary-light);
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-sm);
}

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }

/* === 表格 === */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

thead tr {
  background: linear-gradient(90deg, #F0F9FF, #F8FAFC);
}

th {
  text-align: left;
  padding: 14px 16px;
  color: var(--text-secondary);
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 2px solid var(--primary-fade);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  transition: all 0.25s var(--ease-smooth);
}

tbody tr {
  transition: all 0.3s var(--ease-bounce);
}

tbody tr:hover {
  background: var(--bg-hover);
  transform: translateY(-2px) scale(1.002);
  box-shadow: 0 4px 12px rgba(56,189,248,0.08);
}

tbody tr:hover td {
  color: var(--primary-deep);
}

/* === 标签/徽章 === */
.tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s var(--ease-bounce);
}

.tag:hover {
  transform: scale(1.1);
}

.tag-blue { background: rgba(56,189,248,0.12); color: var(--primary-deep); }
.tag-pink { background: rgba(96,165,250,0.12); color: var(--primary-navy-light); }
.tag-green { background: rgba(52,211,153,0.12); color: #059669; }
.tag-yellow { background: rgba(251,191,36,0.15); color: #B45309; }
.tag-red { background: rgba(248,113,113,0.12); color: #DC2626; }
.tag-gray { background: rgba(148,163,184,0.12); color: var(--text-secondary); }

/* === 分页 === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.35s var(--ease-bounce);
  font-weight: 500;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary-deep);
  transform: translateY(-3px) scale(1.08);
  box-shadow: var(--shadow-sm);
}

.page-btn.active {
  background: linear-gradient(135deg, #38BDF8, #0EA5E9);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(56,189,248,0.35);
  transform: translateY(-2px);
}

.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.page-info { font-size: 12px; color: var(--text-light); margin: 0 10px; font-weight: 500; }

/* === 模态框 === */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 520px;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.45s var(--ease-bounce);
  border: 1px solid var(--border-light);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.85) translateY(30px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 20px 26px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(90deg, #F0F9FF, #fff);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-input);
  font-size: 18px;
  cursor: pointer;
  color: var(--text-light);
  border-radius: var(--radius-md);
  transition: all 0.35s var(--ease-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(248,113,113,0.12);
  color: var(--danger);
  transform: rotate(90deg) scale(1.1);
}

.modal-body {
  padding: 22px 26px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 26px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border-light);
  background: #FAFBFC;
}

/* === 登录页 === */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background:
    radial-gradient(circle at 20% 30%, rgba(56,189,248,0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(96,165,250,0.1) 0%, transparent 45%),
    linear-gradient(135deg, #E0F2FE 0%, #F0F9FF 50%, #DBEAFE 100%);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.18) 0%, transparent 70%);
  top: -80px; left: -80px;
  animation: floatOrb 8s ease-in-out infinite;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.14) 0%, transparent 70%);
  bottom: -60px; right: -60px;
  animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 30px); }
}

.login-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  padding: 42px 40px;
  width: 400px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.6) inset;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.8);
  transition: all 0.5s var(--ease-bounce);
}

.login-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-float), 0 0 0 1px rgba(255,255,255,0.6) inset;
}

.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-emoji {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #38BDF8 0%, #60A5FA 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(56,189,248,0.35);
  transition: all 0.5s var(--ease-bounce);
}

.login-card:hover .login-emoji {
  transform: scale(1.15) rotate(-10deg);
  box-shadow: 0 12px 32px rgba(56,189,248,0.45);
}

.login-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 1px;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 500;
}

.login-form .form-group { margin-bottom: 18px; }

.login-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}

/* === 空状态 === */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-light);
}

.empty-icon {
  font-size: 52px;
  margin-bottom: 14px;
  opacity: 0.7;
  transition: all 0.4s var(--ease-bounce);
}

.empty-state:hover .empty-icon {
  transform: scale(1.15) rotate(-8deg);
  opacity: 1;
}

.empty-text { font-size: 14px; font-weight: 500; }

/* === 提示 === */
.toast {
  position: fixed;
  top: 22px;
  right: 22px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-size: 13px;
  z-index: 2000;
  animation: toastSlide 0.4s var(--ease-bounce);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.2);
}

@keyframes toastSlide {
  from { opacity: 0; transform: translateX(40px) scale(0.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.toast-success { background: linear-gradient(135deg, #34D399, #10B981); color: #fff; }
.toast-error { background: linear-gradient(135deg, #F87171, #EF4444); color: #fff; }
.toast-info { background: linear-gradient(135deg, #38BDF8, #0EA5E9); color: #fff; }

/* === 搜索栏 === */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 18px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.35s var(--ease-bounce);
}

.search-bar:hover {
  box-shadow: var(--shadow-md);
}

.search-bar .form-group { margin: 0; }

/* === 复选框 === */
.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s var(--ease-bounce);
}

.checkbox-wrap:hover {
  transform: translateX(3px);
  color: var(--primary-deep);
}

input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
  transition: transform 0.25s var(--ease-bounce);
}

input[type="checkbox"]:hover {
  transform: scale(1.15);
}

/* === 响应式 === */
@media (max-width: 1100px) {
  .dashboard-bottom-layout { grid-template-columns: minmax(0, 1fr); }
  .dashboard-bottom-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .sidebar-title, .sidebar-subtitle, .nav-group-title, .nav-item span:not(.nav-icon) { display: none; }
  .nav-item { justify-content: center; padding: 12px; margin: 2px 6px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-bottom { padding: 16px; }
  .dashboard-bottom-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .dashboard-bottom-badge { align-self: flex-start; }
}

@media (max-width: 520px) {
  .dashboard-bottom-metrics { grid-template-columns: 1fr; }
  .dashboard-metric-card { min-height: 142px; }
}

/* === 学生端视图（管理员双身份） === */
.student-view-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(56,189,248,0.3);
  transition: all 0.4s var(--ease-bounce);
  border: 1px solid rgba(255,255,255,0.2);
}

.student-view-banner:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 14px 36px rgba(56,189,248,0.4);
}

.student-view-banner:hover .sv-banner-icon {
  transform: scale(1.3) rotate(-12deg);
}

.sv-banner-icon {
  font-size: 24px;
  transition: transform 0.4s var(--ease-bounce);
}

.sv-banner-text { font-size: 16px; font-weight: 700; }
.sv-banner-sub { font-size: 13px; opacity: 0.92; margin-left: auto; font-weight: 500; }

.sv-loading {
  padding: 60px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
}

.sv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
@media (max-width: 1024px) {
  .sv-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sv-grid { grid-template-columns: 1fr; }
}

.sv-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.4s var(--ease-bounce);
}

.sv-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-md);
}

.sv-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.sv-card-title { font-size: 16px; font-weight: 700; color: var(--text-main); }
.sv-card-count { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

/* 个人信息卡 */
.sv-profile-body { margin-bottom: 14px; }
.sv-profile-row {
  display: flex;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--border-light);
  transition: all 0.25s var(--ease-smooth);
}

.sv-profile-row:hover {
  transform: translateX(4px);
  color: var(--primary-deep);
}

.sv-profile-row:last-child { border-bottom: none; }
.sv-label { color: var(--text-secondary); width: 60px; flex-shrink: 0; font-weight: 500; }
.sv-value { color: var(--text-main); font-weight: 600; }

.sv-hours-box {
  margin-top: 10px;
  padding: 16px;
  background: linear-gradient(135deg, #E0F2FE 0%, #DBEAFE 100%);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.4s var(--ease-bounce);
}

.sv-card:hover .sv-hours-box {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(56,189,248,0.15);
}

.sv-hours-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; font-weight: 500; }
.sv-hours-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.2;
  transition: all 0.35s var(--ease-bounce);
}

.sv-card:hover .sv-hours-num {
  transform: scale(1.1);
}

.sv-hours-unit {
  font-size: 14px;
  color: var(--text-secondary);
  margin-left: 4px;
  font-weight: 500;
}

/* 考核统计 */
.sv-score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sv-score-item {
  text-align: center;
  padding: 14px 8px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  transition: all 0.35s var(--ease-bounce);
}

.sv-score-item:hover {
  transform: translateY(-4px) scale(1.03);
  background: var(--bg-hover);
}

.sv-score-total {
  background: linear-gradient(135deg, #E0F2FE 0%, #DBEAFE 100%);
}

.sv-score-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.2;
  transition: all 0.3s var(--ease-bounce);
}

.sv-score-item:hover .sv-score-num {
  transform: scale(1.12);
}

.sv-score-total .sv-score-num { color: var(--primary-navy-light); }
.sv-score-name { font-size: 12px; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }
.sv-score-sub { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* 排名 */
.sv-rank-box { text-align: center; padding: 12px 0; }
.sv-rank-num {
  font-size: 46px;
  font-weight: 800;
  color: var(--warning);
  line-height: 1;
  transition: all 0.4s var(--ease-bounce);
}

.sv-card:hover .sv-rank-num {
  transform: scale(1.15);
}

.sv-rank-label { font-size: 13px; color: var(--text-secondary); margin-top: 6px; font-weight: 500; }

/* 活动 / 公告列表 */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.data-table th { color: var(--text-secondary); font-weight: 700; background: var(--bg-input); }

.sv-ann-list { display: flex; flex-direction: column; gap: 10px; }
.sv-ann-item {
  padding: 13px 16px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.35s var(--ease-bounce);
  border: 1px solid transparent;
}

.sv-ann-item:hover {
  background: var(--bg-hover);
  transform: translateX(8px) translateY(-2px);
  border-color: var(--primary-lighter);
  box-shadow: var(--shadow-sm);
}

.sv-ann-title { font-size: 14px; font-weight: 700; color: var(--text-main); }
.sv-ann-sub { font-size: 12px; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }

/* 页内小标签 */
.tag-green { background: #DCFCE7; color: #15803D; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; transition: all 0.3s var(--ease-bounce); }
.tag-green:hover { transform: scale(1.1); }
.tag-orange { background: #FFEDD5; color: #C2410C; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; transition: all 0.3s var(--ease-bounce); }
.tag-orange:hover { transform: scale(1.1); }
.tag-red { background: #FEE2E2; color: #B91C1C; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; transition: all 0.3s var(--ease-bounce); }
.tag-red:hover { transform: scale(1.1); }

/* ===== 学校 Logo ===== */
.login-emoji-img,
.sidebar-logo-img {
  object-fit: contain;
  transition: all 0.5s var(--ease-bounce);
}

.login-emoji-img {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: block;
  border-radius: 18px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(56,189,248,0.35);
}

.login-card:hover .login-emoji-img {
  transform: scale(1.12) rotate(-4deg);
  box-shadow: 0 12px 32px rgba(56,189,248,0.45);
}

.sidebar-logo-img {
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 14px;
  padding: 4px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(56,189,248,0.35);
}

.sidebar-header:hover .sidebar-logo-img {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 10px 28px rgba(56,189,248,0.5);
}

/* Logo 设置卡片 */
.logo-setting-body {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 8px 8px;
  flex-wrap: wrap;
}

.logo-preview-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary-fade) 0%, #fff 100%);
  border: 2px dashed var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s var(--ease-bounce);
  box-shadow: 0 8px 24px rgba(56,189,248,0.18);
}

.logo-preview-wrap:hover {
  transform: translateY(-6px) scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 16px 36px rgba(56,189,248,0.3);
}

.logo-preview-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  border-radius: 14px;
}

.logo-preview-fallback {
  font-size: 42px;
  transition: transform 0.4s var(--ease-bounce);
}

.logo-preview-wrap:hover .logo-preview-fallback {
  transform: scale(1.2) rotate(-10deg);
}

.logo-upload-mask {
  position: absolute;
  inset: 0;
  background: rgba(30,58,138,0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.35s var(--ease-smooth);
  pointer-events: none;
}

.logo-preview-wrap:hover .logo-upload-mask {
  opacity: 1;
}

.logo-setting-info {
  flex: 1;
  min-width: 220px;
}

.logo-school-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.logo-school-code {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.logo-tip {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.6;
}

.logo-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.logo-actions .btn {
  transition: all 0.35s var(--ease-bounce);
}

.logo-actions .btn:hover {
  transform: translateY(-3px) scale(1.04);
}
