/* ========================================
   北京大学 · 政青年培训工作平台
   设计理念：北大红 + 鎏金点缀 + 简洁实用
   参考：北大官网 recruit.html 页面风格
   ======================================== */

/* -------- CSS 变量 -------- */
:root {
  --pku-red: #8B0012;
  --pku-red-deep: #6B000E;
  --pku-red-light: #A6192E;
  --pku-red-ghost: rgba(139,0,18,0.05);
  --pku-red-ghost-hover: rgba(139,0,18,0.10);
  --pku-gold: #B8860B;
  --pku-gold-light: #D4A843;
  --pku-gold-pale: #F5E6C8;
  --bg-warm: #F5F5F7;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-hover: #FAFAFB;
  --bg-ivory: #FDF8F0;
  --ink-dark: #1D1D1F;
  --ink: #333333;
  --ink-mid: #6E6E73;
  --ink-light: #86868B;
  --ink-pale: #AEAEB2;
  --border: #D2D2D7;
  --border-light: #E8E8ED;
  --border-subtle: #F0F0F3;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.05);
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* -------- Reset & Base -------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* 全局滚动条美化，防止原生黑色滚动条闪烁 */
  scrollbar-width: thin;
  scrollbar-color: rgba(139,0,18,0.25) transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg-warm);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* 防止水平滚动条闪出 */
}

/* Webkit 全局滚动条样式（Chrome/Safari/Edge） */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(139,0,18,0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(139,0,18,0.4);
}
::-webkit-scrollbar-corner { background: transparent; }

/* -------- 双栏侧边栏 -------- */
.sidebar-wrapper {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  display: flex; flex-direction: row;
  transition: transform 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.sidebar-wrapper.collapsed { transform: translateX(-100%); }

/* === 主菜单栏（图标列，64px） === */
.sidebar-primary {
  width: 64px; background: var(--pku-red);
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 0; gap: 0;
}
.sidebar-logo-link {
  display: flex; justify-content: center; padding: 14px 0 14px;
  width: 100%;
}
.sidebar-logo-img { width: 42px; height: auto; }

.sidebar-primary-nav {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 1px; padding: 4px 4px; overflow-y: auto;
  scrollbar-width: none;
}
.sidebar-primary-nav::-webkit-scrollbar { display: none; }

/* 主菜单项 */
.pri-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 52px; height: 48px; border-radius: 10px;
  cursor: pointer; user-select: none;
  text-decoration: none; color: rgba(255,255,255,0.55);
  transition: all 0.18s ease;
  position: relative;
  gap: 0;
}
.pri-icon { font-size: 19px; line-height: 1; margin-bottom: 1px; }
.pri-label { font-size: 9px; line-height: 1; white-space: nowrap; letter-spacing: 0.3px; }
.pri-item:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
}
.pri-item.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 10px;
}
.pri-item.active::after {
  content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px;
  height: 3px; border-radius: 2px; background: #fff;
}

.pri-item[data-group="dashboard"] { margin-bottom: 6px; }

/* 主菜单底部用户头像 */
.sidebar-primary-footer {
  padding: 10px 0 12px;
  width: 100%; display: flex; justify-content: center;
}
.pri-user {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; font-weight: 600;
  cursor: pointer;
}

/* === 副菜单栏（170px） === */
.sidebar-secondary {
  width: 0; background: #f0f1f5;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: width 0.25s ease;
}
body.has-sec-panel .sidebar-secondary { width: 170px; }
.sec-panel {
  display: none; flex: 1; flex-direction: column;
  overflow-y: auto; padding: 4px 0;
}
.sec-panel.active { display: flex; }
.sec-panel::-webkit-scrollbar { width: 4px; }
.sec-panel::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 2px; }

.sec-header {
  font-size: 12px; font-weight: 700; color: #666;
  padding: 14px 16px 8px;
  letter-spacing: 1px;
}

.sec-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; margin: 1px 8px;
  border-radius: 8px;
  font-size: 13px; color: #333; text-decoration: none;
  transition: all 0.15s; cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.sec-item:hover { background: rgba(0,0,0,0.06); color: #111; }
.sec-item.active {
  background: rgba(139,0,18,0.08);
  color: var(--pku-red);
  font-weight: 600;
}
.sec-item.active::after {
  content: ''; position: absolute; right: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 2px; background: var(--pku-red);
}

/* 二级子项（缩进） */
.sec-item.sec-sub {
  padding-left: 30px; font-size: 12px; color: #666;
}
.sec-item.sec-sub:hover { color: #333; }
.sec-item.sec-sub.active { color: var(--pku-red); font-weight: 500; }

/* 外部链接 */
.sec-item.sec-external {
  color: #888; font-size: 12px;
}
.sec-item.sec-external:hover { color: #555; }

/* 副菜单底部用户信息 */
.sec-footer {
  padding: 12px 14px;
  border-top: 1px solid #e0e0e6;
  background: #f0f1f5;
}
.sec-user {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.sec-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; font-weight: 600;
}
.sec-user-info { overflow: hidden; }
.sec-user-name { font-size: 13px; font-weight: 600; color: #333; }
.sec-user-role { font-size: 11px; color: #999; margin-top: 1px; }
.sec-actions {
  display: flex; gap: 6px; font-size: 11px;
}
.sec-actions a {
  color: #999; text-decoration: none; padding: 4px 8px;
  border-radius: 4px; transition: all 0.15s;
}
.sec-actions a:hover { color: var(--pku-red); background: rgba(139,0,18,0.06); }

/* -------- 移动端遮罩 -------- */
.sidebar-mask {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 99;
}

/* -------- 主内容区 -------- */
.main-content {
  margin-left: 64px;
  transition: margin-left 0.25s ease;
}
body.has-sec-panel .main-content { margin-left: 234px; }
  min-height: 100vh;
  transition: margin-left 0.3s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.sidebar-wrapper.collapsed ~ .main-content { margin-left: 0; }

/* -------- 顶部信息栏 -------- */
.topbar {
  background: var(--bg-white);
  padding: 10px 20px; display: flex; align-items: center;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-toggle {
  background: none; border: 1px solid #ddd; font-size: 20px;
  cursor: pointer; padding: 6px 10px; border-radius: 6px; color: var(--pku-red);
  flex-shrink: 0;
}
.sidebar-toggle:hover { background: var(--bg-ivory); }

.topbar-title {
  font-size: 16px; font-weight: 700; color: var(--ink);
  flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.topbar-info { display: flex; gap: 10px; align-items: center; }
.topbar-badge {
  background: var(--bg-ivory); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 20px; font-size: 11px;
  color: var(--ink-mid);
}

.page-content { padding: 24px; }

/* -------- 卡片 -------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}
.card.accent { border-top: 3px solid var(--pku-red); }
.card.accent-gold { border-top: 3px solid var(--pku-gold); }

.card-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; color: var(--ink-dark);
  margin-bottom: 18px; letter-spacing: -0.2px;
  display: flex; align-items: center; gap: 10px;
}
.card-title::before {
  content: ''; width: 4px; height: 20px;
  background: var(--pku-red); border-radius: 2px;
  flex-shrink: 0;
}

/* -------- 统计卡片 -------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--pku-red);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--pku-red-light);
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-card .stat-icon {
  font-size: 28px; margin-bottom: 6px; opacity: 0.8;
}
.stat-card .stat-label {
  font-size: 12px; color: var(--ink-light); margin-bottom: 2px;
  letter-spacing: 0.3px;
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700; margin-top: 2px;
  letter-spacing: -0.5px; color: var(--ink-dark);
}
.stat-card.accent-red .stat-value { color: var(--pku-red); }
.stat-card.accent-gold .stat-value { color: var(--pku-gold); }

/* -------- 表格 -------- */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table thead th {
  background: linear-gradient(180deg, #FAFAFC 0%, #F5F5F8 100%);
  padding: 13px 16px; text-align: left;
  font-weight: 600; color: var(--ink-mid);
  border-bottom: 2px solid var(--border);
  font-size: 12px; white-space: nowrap;
  letter-spacing: 0.3px;
}
.data-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.data-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }
.data-table tbody td {
  padding: 13px 16px; border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle; color: var(--ink);
}
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: var(--bg-hover); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .text-right { text-align: right; }
.data-table .text-center { text-align: center; }
.data-table .cell-muted { color: var(--ink-light); font-size: 12px; }

/* -------- 按钮 -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: none; text-decoration: none;
  transition: all var(--transition); font-family: inherit;
  white-space: nowrap; letter-spacing: -0.1px; line-height: 1.4;
}

.btn-primary {
  background: var(--pku-red); color: #fff;
  box-shadow: 0 2px 8px rgba(139,0,18,0.2);
}
.btn-primary:hover {
  background: var(--pku-red-deep);
  box-shadow: 0 4px 16px rgba(139,0,18,0.3);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--pku-gold), var(--pku-gold-light));
  color: #fff;
}
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-success { background: #4A7C59; color: #fff; }
.btn-success:hover { background: #3D6B4A; transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--pku-red);
  border: 1.5px solid var(--pku-red);
}
.btn-outline:hover { background: rgba(139,0,18,0.04); }

.btn-secondary {
  background: #fff; color: var(--pku-red);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-ivory); border-color: var(--pku-red); }

.btn-danger {
  background: transparent; color: #C0392B; border: 1px solid #E8B4B4;
}
.btn-danger:hover { background: rgba(192,57,43,0.06); border-color: #C0392B; }

.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

.btn:disabled {
  opacity: 0.45; cursor: not-allowed; transform: none !important;
  box-shadow: none !important;
}

.btn-sm-primary { background: var(--pku-red); color: #fff; border: none; }
.btn-sm-danger { background: #FEE2E2; color: #991B1B; border: none; }

/* -------- 标签 Badge -------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 11px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  white-space: nowrap;
}
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-red { background: #FEE2E2; color: #991B1B; }
.badge-gold { background: #FEF3C7; color: #92400E; }
.badge-gray { background: #F3F4F6; color: #4B5563; }
.badge-blue { background: #DBEAFE; color: #1E40AF; }
.badge-purple { background: #EDE9FE; color: #5B21B6; }

/* -------- 表单 -------- */
.form-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.form-group label {
  font-size: 13px; color: var(--ink-mid); font-weight: 500;
}
.form-group .opt { color: var(--pku-red); font-size: 11px; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 14px; font-family: inherit;
  background: var(--bg-white); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pku-red);
  box-shadow: 0 0 0 3px rgba(139,0,18,0.06);
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238B0012'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
}

.form-section-title {
  font-size: 16px; font-weight: 700; color: var(--pku-red);
  padding: 8px 0 12px; margin: 24px 0 16px;
  border-bottom: 2px solid var(--pku-red);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0 20px;
}
.form-grid .form-group.full { grid-column: 1 / -1; }

/* -------- 模态框 -------- */
.modal-mask {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  align-items: center; justify-content: center;
  z-index: 1000;
}
.modal-mask.active { display: flex; }
.modal-buttons { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }

.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s;
}
.modal {
  background: var(--bg-card); border-radius: var(--radius-xl);
  padding: 36px 32px; max-width: 500px; width: 92%;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  animation: slideUp 0.3s ease;
}
.modal h3 { font-size: 20px; color: var(--pku-red); margin-bottom: 20px; text-align: center; }
.modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------- Toast -------- */
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  padding: 12px 24px; border-radius: 10px;
  color: #FFF; font-size: 14px; font-weight: 500;
  z-index: 9999; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: toastIn 0.35s ease;
}
.toast-success { background: #4A7C59; }
.toast-error { background: var(--pku-red); }
.toast-warning { background: #D97706; }
.toast-info { background: #3B5998; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* -------- 星星评分 -------- */
.star-rating { display: flex; gap: 6px; direction: ltr; }
.star-rating input { display: none; }
.star-rating label {
  font-size: 30px; color: #DDD; cursor: pointer;
  transition: all 0.15s; user-select: none;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: var(--pku-gold);
}

/* -------- 空状态 -------- */
.empty-state {
  text-align: center; padding: 48px 20px; color: var(--ink-light);
}
.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state h3 { font-size: 16px; color: var(--ink-mid); margin-bottom: 6px; }

/* -------- 课程条目 -------- */
.course-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  margin-bottom: 10px; transition: all 0.2s;
}
.course-item:hover { border-color: var(--pku-red); }
.course-item.evaluable { border-color: #4A7C59; cursor: pointer; }
.course-item.done { opacity: 0.6; border-style: dashed; }
.course-info { display: flex; align-items: center; gap: 14px; }

.course-order {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--pku-red); color: #FFF;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 14px; flex-shrink: 0;
}
.course-item.done .course-order { background: #CCC; }
.course-item.evaluable .course-order { background: #4A7C59; }

.course-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.course-meta { font-size: 12px; color: var(--ink-light); }

/* -------- Grid 布局 -------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* -------- Tab 导航 -------- */
.tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--border-light);
  margin-bottom: 20px; overflow-x: auto;
}
.tab {
  padding: 10px 20px; font-size: 13px; font-weight: 600;
  color: var(--ink-mid); cursor: pointer; border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all 0.2s; white-space: nowrap;
}
.tab:hover { color: var(--pku-red); }
.tab.active { color: var(--pku-red); border-bottom-color: var(--pku-red); }

.tab-actions {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 12px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light); margin-bottom: 20px;
}

/* -------- 发票识别区域 -------- */
.recognize-area {
  padding: 18px; background: #F8FAFE; border: 2px dashed #C8D6E5;
  border-radius: 10px; margin-bottom: 18px;
}
.recognize-area textarea {
  width: 100%; border: 1px solid #CFD8DC; border-radius: 8px;
  padding: 12px; font-size: 13px; font-family: inherit;
  resize: vertical; background: #fff; outline: none;
}
.recognize-area textarea:focus { border-color: var(--pku-red); }

/* -------- 发票卡片 -------- */
.invoice-card {
  padding: 16px; border-radius: 10px; margin-bottom: 10px;
  border: 1px solid var(--border-light); background: var(--bg-card);
}
.invoice-card:hover { box-shadow: var(--shadow-sm); }

/* ================================================
   PKU 风格补充 — 参考北大官网 recruit 页面
   ================================================ */

/* -------- 页面标题区（北大红竖线 + 标题）-------- */
.page-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; color: var(--ink-dark);
  letter-spacing: -0.3px; margin: 0;
  display: flex; align-items: center; gap: 12px;
}
.page-header h1::before {
  content: ''; width: 5px; height: 28px;
  background: var(--pku-red); border-radius: 3px;
  flex-shrink: 0;
}
.page-header p {
  font-size: 13px; color: var(--ink-light); margin: 6px 0 0 17px;
}

/* -------- 图标网格（PKU 风格卡片导航）-------- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.icon-grid-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px 14px; text-align: center;
  transition: all var(--transition);
  cursor: pointer; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.icon-grid-item:hover {
  border-color: var(--pku-red-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.icon-grid-item .grid-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--pku-red-ghost);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.icon-grid-item .grid-label {
  font-size: 13px; font-weight: 600; color: var(--ink-dark);
}
.icon-grid-item .grid-desc {
  font-size: 11px; color: var(--ink-light);
}

/* -------- 信息行（标签-值对）-------- */
.info-row {
  display: flex; flex-wrap: wrap; gap: 20px 32px;
  margin-bottom: 16px;
}
.info-item {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 140px;
}
.info-item .info-label {
  font-size: 11px; color: var(--ink-light); letter-spacing: 0.5px;
}
.info-item .info-value {
  font-size: 14px; font-weight: 600; color: var(--ink-dark);
}

/* -------- 操作工具栏 -------- */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 20px; padding: 14px 18px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.toolbar-left, .toolbar-right {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

/* -------- 分隔线 -------- */
.divider {
  height: 1px; background: var(--border-light);
  margin: 20px 0;
}
.divider-dashed {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border) 0, var(--border) 6px, transparent 6px, transparent 12px);
  margin: 20px 0;
}

/* -------- 进度条 -------- */
.progress-bar {
  height: 8px; background: var(--border-light);
  border-radius: 4px; overflow: hidden;
}
.progress-bar .progress-fill {
  height: 100%; border-radius: 4px;
  background: var(--pku-red);
  transition: width 0.5s ease;
}
.progress-bar .progress-fill.gold { background: linear-gradient(90deg, var(--pku-gold), var(--pku-gold-light)); }
.progress-bar .progress-fill.green { background: #4A7C59; }

/* -------- 步骤指示器 -------- */
.steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 24px; overflow-x: auto;
}
.step {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-light); white-space: nowrap;
  padding: 8px 0;
}
.step .step-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: var(--border-light); color: var(--ink-light);
  flex-shrink: 0;
}
.step.active .step-num {
  background: var(--pku-red); color: #fff;
}
.step.active { color: var(--ink-dark); font-weight: 600; }
.step.completed .step-num {
  background: #4A7C59; color: #fff;
}
.step-sep {
  width: 32px; height: 2px; background: var(--border-light);
  margin: 0 6px; flex-shrink: 0;
}
.step.completed + .step-sep { background: #4A7C59; }

/* ================================================
   响应式
   ================================================ */
@media (max-width: 1024px) {
  body.has-sec-panel .main-content { margin-left: 234px; }
  .icon-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

@media (max-width: 768px) {
  .sidebar-wrapper {
    transform: translateX(-100%);
    box-shadow: 4px 0 30px rgba(0,0,0,0.3);
  }
  .sidebar-wrapper.open { transform: translateX(0); z-index: 101; }
  .sidebar-wrapper.open ~ .sidebar-mask { display: block; }
  body.has-sec-panel .sidebar-secondary { width: 196px; }
  .main-content { margin-left: 0 !important; }
  .topbar { padding: 10px 14px; }
  .topbar-title { font-size: 15px; }
  .topbar-info { display: none; }
  .page-content { padding: 14px; }
  .page-header h1 { font-size: 20px; }
  .page-header h1::before { height: 22px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 16px 10px; }
  .stat-card .stat-value { font-size: 24px; }
  .card { padding: 18px; margin-bottom: 14px; }
  .card-title { font-size: 15px; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .icon-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .form-row { flex-direction: column; gap: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-left, .toolbar-right { justify-content: center; }
  .modal { width: 94%; padding: 24px 18px; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; }
  .toast { width: 90%; text-align: center; }
  .course-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .info-row { flex-direction: column; gap: 10px; }
  .steps { font-size: 11px; }
}

@media (max-width: 400px) {
  .stats-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card .stat-value { font-size: 22px; }
  .icon-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .icon-grid-item { padding: 14px 10px; }
}

/* ================================================
   水印层
   ================================================ */
.watermark-layer {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  pointer-events: none;
  background-repeat: repeat;
  opacity: 0.85;
}
@media print {
  .sidebar, .topbar, .sidebar-mask { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .page-content { padding: 0; }
  .card { box-shadow: none; border: 1px solid #CCC; break-inside: avoid; }
}
