/* ===== 智学云 · 员工学习平台 · 样式表 ===== */

/* CSS 变量 */
:root {
  --primary: #4f6ef7;
  --primary-dark: #3b5bdb;
  --purple: #7b61ff;
  --purple-dark: #6c5ce7;
  --gradient: linear-gradient(135deg, #4f6ef7, #7b61ff);
  --gradient-soft: linear-gradient(135deg, #eef2ff, #f3eeff);
  --bg: #f5f6fa;
  --bg-white: #ffffff;
  --sidebar-bg: linear-gradient(180deg, #1a1d3a 0%, #1e2147 50%, #1a1d3a 100%);
  --text: #2d3436;
  --text-muted: #9aa0a6;
  --text-light: #b2bec3;
  --border: #eef1f6;
  --border-dark: #e3e7ed;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --sidebar-w: 230px;
  --topbar-h: 60px;
  --green: #00a870;
  --orange: #ff8c00;
  --red: #e74c3c;
  --cyan: #00bcd4;
}

/* Reset */
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== 顶部导航栏 ===== */
.topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.topbar-left .logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 700;
}
.topbar-left .logo i { color: var(--primary); font-size: 24px; }
.topbar-left .logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.topbar-left .logo small { font-size: 11px; color: var(--text-muted); font-weight: 400; margin-left: 4px; }

.topbar-center { flex: 1; max-width: 400px; margin: 0 40px; }
.global-search {
  position: relative;
  background: var(--bg);
  border-radius: 20px;
  padding: 8px 16px 8px 40px;
  transition: all 0.2s;
}
.global-search:focus-within { background: #fff; box-shadow: 0 0 0 2px rgba(79,110,247,0.15); }
.global-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.global-search input { border: none; background: none; outline: none; width: 100%; font-size: 14px; }

.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-icon {
  position: relative;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}
.topbar-icon:hover { background: var(--bg); color: var(--primary); }
.topbar-icon .badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 600;
  min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.user-menu {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 24px; cursor: pointer;
  transition: background 0.2s;
}
.user-menu:hover { background: var(--bg); }
.avatar { width: 36px; height: 36px; border-radius: 50%; }
.avatar-lg { width: 48px; height: 48px; border-radius: 50%; }
.user-info { display: flex; flex-direction: column; line-height: 1.3; }
.user-name { font-size: 13px; font-weight: 600; }
.user-dept { font-size: 11px; color: var(--text-muted); }
.user-menu > i { font-size: 11px; color: var(--text-muted); }

/* 用户下拉 */
.user-dropdown {
  position: fixed; top: 60px; right: 16px;
  width: 240px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
}
.ud-header { display: flex; align-items: center; gap: 12px; padding: 20px; background: var(--gradient-soft); }
.ud-menu { padding: 8px 0; }
.ud-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--text); text-decoration: none; font-size: 14px; }
.ud-menu a:hover { background: var(--bg); text-decoration: none; }
.ud-menu a i { width: 16px; color: var(--text-muted); }
.ud-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ===== 主体布局 ===== */
.main-layout { display: flex; padding-top: var(--topbar-h); min-height: 100vh; }

/* ===== 侧边栏 ===== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  position: fixed; top: var(--topbar-h); bottom: 0; left: 0;
  overflow-y: auto;
  padding: 16px 0;
  z-index: 50;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.nav-group { margin-bottom: 8px; }
.nav-group-title {
  padding: 12px 24px 6px;
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 24px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  text-decoration: none;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.05); text-decoration: none; }
.nav-item.active {
  color: #fff;
  background: rgba(79,110,247,0.15);
}
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--gradient);
  border-radius: 0 2px 2px 0;
}
.nav-item i { width: 18px; text-align: center; font-size: 15px; }
.nav-badge {
  margin-left: auto;
  background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 600;
  min-width: 18px; height: 18px;
  border-radius: 9px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  font-style: normal;
}
.nav-badge.red { background: var(--red); }

/* 侧边栏学习统计卡 */
.sidebar-stat {
  margin: 16px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.ss-title { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.ss-row { display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,0.7); font-size: 12px; margin-bottom: 6px; }
.ss-row b { color: #fff; font-size: 14px; }
.ss-row small { color: var(--purple); }
.ss-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.ss-bar-fill { height: 100%; background: var(--gradient); border-radius: 3px; transition: width 0.5s; }

/* ===== 主内容区 ===== */
.content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 24px;
  min-height: calc(100vh - var(--topbar-h));
}

/* 页面切换 */
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }

/* 页面头部 */
.page-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.page-title { font-size: 22px; font-weight: 700; color: var(--text); }
.page-desc { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; align-items: center; }

/* 页面标签切换 */
.page-tabs, .msg-tabs { display: flex; gap: 4px; background: #fff; padding: 4px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.tab {
  border: none; background: none;
  padding: 6px 16px; border-radius: 6px;
  font-size: 13px; color: var(--text-muted);
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.tab:hover { color: var(--primary); }
.tab.active { background: var(--gradient); color: #fff; }

/* 面包屑 */
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--primary); }
.breadcrumb i { font-size: 10px; }

/* ===== 欢迎横幅 ===== */
.welcome-banner {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
  color: #fff;
  position: relative; overflow: hidden;
}
.welcome-banner::after {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.wb-text h2 { font-size: 24px; margin-bottom: 6px; }
.wb-text p { font-size: 14px; opacity: 0.9; }
.wb-text b { font-weight: 700; }
.wb-illustration { font-size: 56px; opacity: 0.2; z-index: 1; }

/* ===== 统计卡片 ===== */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 20px;
}
.stat-card {
  background: #fff; border-radius: var(--radius);
  padding: 20px; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.sc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
}
.gradient-blue .sc-icon { background: linear-gradient(135deg, #4f6ef7, #667eea); }
.gradient-purple .sc-icon { background: linear-gradient(135deg, #7b61ff, #a29bfe); }
.gradient-cyan .sc-icon { background: linear-gradient(135deg, #00bcd4, #4fc3f7); }
.gradient-orange .sc-icon { background: linear-gradient(135deg, #ff8c00, #ffa940); }
.sc-num { font-size: 26px; font-weight: 700; line-height: 1; }
.sc-unit { font-size: 13px; font-weight: 400; color: var(--text-muted); margin-left: 2px; }
.sc-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ===== 首页网格 ===== */
.home-grid {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.home-card {
  background: #fff; border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.home-card.span-2 { grid-column: span 1; }
.hc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.hc-header h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.hc-header h3 i { color: var(--primary); }
.hc-more { font-size: 13px; }

/* 待办列表 */
.todo-list { display: flex; flex-direction: column; gap: 12px; }
.todo-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--bg);
  transition: all 0.2s; cursor: pointer;
}
.todo-item:hover { background: var(--gradient-soft); }
.todo-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; flex-shrink: 0;
}
.todo-body { flex: 1; min-width: 0; }
.todo-title { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.todo-sub { font-size: 12px; color: var(--text-muted); }
.todo-progress { width: 80px; }
.tp-bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.tp-fill { height: 100%; background: var(--gradient); border-radius: 3px; }
.tp-text { font-size: 11px; color: var(--text-muted); text-align: center; }
.todo-action {
  padding: 6px 14px; border-radius: 6px;
  background: var(--gradient); color: #fff;
  font-size: 12px; border: none; cursor: pointer;
  white-space: nowrap; font-family: inherit;
}
.todo-action:hover { opacity: 0.9; }
.todo-deadline { font-size: 11px; color: var(--orange); white-space: nowrap; }
.todo-tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.todo-tag.ongoing { background: var(--gradient-soft); color: var(--primary); }
.todo-tag.pending { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }

/* 考试mini列表 */
.exam-mini-list, .cert-mini-list, .announce-mini-list { display: flex; flex-direction: column; gap: 10px; }
.exam-mini-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg);
}
.emi-icon { width: 32px; height: 32px; border-radius: 8px; background: #fff4e6; color: var(--orange); display: flex; align-items: center; justify-content: center; }
.emi-body { flex: 1; }
.emi-title { font-size: 13px; font-weight: 500; }
.emi-sub { font-size: 11px; color: var(--text-muted); }
.emi-tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #fff4e6; color: var(--orange); }

/* 证书mini */
.cert-mini-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg);
}
.cmi-icon { width: 32px; height: 32px; border-radius: 8px; background: #f0e8ff; color: var(--purple); display: flex; align-items: center; justify-content: center; }
.cmi-body { flex: 1; }
.cmi-title { font-size: 13px; font-weight: 500; }
.cmi-sub { font-size: 11px; color: var(--text-muted); }
.cmi-warn { font-size: 11px; color: var(--red); font-weight: 600; }

/* 公告mini */
.announce-mini-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg);
  cursor: pointer;
}
.announce-mini-item:hover { background: var(--gradient-soft); }
.ami-tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.ami-tag.urgent { background: #ffe8e8; color: var(--red); }
.ami-tag.important { background: #fff4e6; color: var(--orange); }
.ami-tag.normal { background: #e8f7ef; color: var(--green); }
.ami-body { flex: 1; min-width: 0; }
.ami-title { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ami-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

/* 推荐课程 */
.course-rec-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.course-rec-card {
  display: flex; gap: 12px; padding: 12px; border-radius: var(--radius-sm);
  background: var(--bg); transition: all 0.2s; cursor: pointer;
}
.course-rec-card:hover { background: var(--gradient-soft); transform: translateY(-1px); }
.crc-cover {
  width: 80px; height: 60px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
}
.crc-body { flex: 1; min-width: 0; }
.crc-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crc-sub { font-size: 11px; color: var(--text-muted); display: flex; gap: 8px; }

/* ===== 按钮 ===== */
.btn {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.2s; font-family: inherit;
}
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { opacity: 0.9; box-shadow: 0 4px 12px rgba(79,110,247,0.3); }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--gradient-soft); }
.btn-default { background: var(--bg); color: var(--text); }
.btn-default:hover { background: var(--border); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: 0.9; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== 筛选栏 ===== */
.filter-input, .filter-select {
  padding: 8px 12px; border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm); font-size: 13px;
  background: #fff; outline: none; font-family: inherit;
  transition: border-color 0.2s;
}
.filter-input:focus, .filter-select:focus { border-color: var(--primary); }
.filter-input { width: 200px; }
.filter-select { cursor: pointer; }
.cf-left { display: flex; gap: 8px; align-items: center; }
.course-filter-bar, .cert-filter-bar, .wrong-filter-bar {
  display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap;
}

/* ===== 课程中心 ===== */
.course-layout { display: flex; gap: 16px; }
.course-cat-tree {
  width: 200px; background: #fff; border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow); flex-shrink: 0;
}
.cat-item {
  padding: 8px 12px; border-radius: 6px; cursor: pointer;
  font-size: 13px; color: var(--text); transition: all 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.cat-item:hover { background: var(--bg); }
.cat-item.active { background: var(--gradient-soft); color: var(--primary); font-weight: 600; }
.cat-item .cat-count { margin-left: auto; font-size: 11px; color: var(--text-muted); }
.cat-sub { padding-left: 20px; }
.course-main { flex: 1; min-width: 0; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.course-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.2s; cursor: pointer;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cc-cover {
  height: 130px; display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: #fff; position: relative;
}
.cc-cover .cc-status {
  position: absolute; top: 8px; right: 8px;
  padding: 2px 8px; border-radius: 4px;
  font-size: 11px; color: #fff; backdrop-filter: blur(4px);
  background: rgba(0,0,0,0.3);
}
.cc-body { padding: 14px; }
.cc-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.cc-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.cc-progress { margin-bottom: 8px; }
.ccp-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.ccp-fill { height: 100%; background: var(--gradient); border-radius: 2px; }
.ccp-text { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.cc-footer { display: flex; justify-content: space-between; align-items: center; }
.cc-lecturer { font-size: 12px; color: var(--text-muted); }
.cc-btn { padding: 5px 12px; border-radius: 6px; font-size: 12px; border: none; cursor: pointer; font-family: inherit; }
.cc-btn.primary { background: var(--gradient); color: #fff; }
.cc-btn.outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.cc-tags { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.cc-tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: var(--gradient-soft); color: var(--primary); }

/* ===== 课程学习页 ===== */
.learn-layout { display: flex; gap: 16px; }
.learn-main { flex: 1; min-width: 0; }
.learn-player {
  background: #000; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; margin-bottom: 16px;
}
.player-placeholder {
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); position: relative;
}
.player-placeholder > i { font-size: 64px; margin-bottom: 12px; }
.player-placeholder > p { font-size: 14px; }
.player-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; background: linear-gradient(transparent, rgba(0,0,0,0.6));
}
.pc-btn { background: none; border: none; color: #fff; cursor: pointer; font-size: 16px; padding: 4px; }
.pc-progress { flex: 1; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden; cursor: pointer; }
.pc-progress-fill { height: 100%; background: var(--primary); border-radius: 2px; }
.pc-time { font-size: 12px; color: rgba(255,255,255,0.7); }

.learn-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.ltab { padding: 10px 20px; border: none; background: none; font-size: 14px; color: var(--text-muted); cursor: pointer; position: relative; font-family: inherit; }
.ltab.active { color: var(--primary); font-weight: 600; }
.ltab.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--gradient); }

.learn-tab-content { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-height: 200px; }
.chapter-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s; margin-bottom: 4px;
}
.chapter-item:hover { background: var(--bg); }
.chapter-item.active { background: var(--gradient-soft); }
.chapter-item.done .ch-icon { background: var(--green); color: #fff; }
.chapter-item.current .ch-icon { background: var(--gradient); color: #fff; }
.ch-icon { width: 28px; height: 28px; border-radius: 6px; background: var(--border); color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.ch-body { flex: 1; }
.ch-title { font-size: 14px; font-weight: 500; }
.ch-duration { font-size: 12px; color: var(--text-muted); }
.ch-status { font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.ch-status.done { background: #e8f7ef; color: var(--green); }
.ch-status.current { background: var(--gradient-soft); color: var(--primary); }

.material-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bg);
  margin-bottom: 8px;
}
.material-item .mat-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.mat-icon.pdf { background: #ffe8e8; color: var(--red); }
.mat-icon.doc { background: #e8f0ff; color: var(--primary); }
.mat-icon.video { background: #f0e8ff; color: var(--purple); }
.mat-icon.img { background: #e8f7ef; color: var(--green); }
.mat-body { flex: 1; }
.mat-name { font-size: 13px; font-weight: 500; }
.mat-size { font-size: 11px; color: var(--text-muted); }

.learn-sidebar { width: 260px; flex-shrink: 0; }
.ls-progress {
  background: #fff; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); text-align: center; margin-bottom: 16px;
}
.ls-progress h4 { font-size: 14px; margin-bottom: 16px; }
.ls-progress-ring { position: relative; width: 100px; height: 100px; margin: 0 auto 16px; }
.ls-ring-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
.ls-ring-text span { font-size: 20px; font-weight: 700; color: var(--primary); display: block; }
.ls-ring-text small { font-size: 11px; color: var(--text-muted); }
.ls-meta { display: flex; justify-content: space-around; }
.ls-meta div { text-align: center; }
.ls-meta span { font-size: 11px; color: var(--text-muted); display: block; }
.ls-meta b { font-size: 14px; }

/* ===== 培训计划 ===== */
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.plan-card {
  background: #fff; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); transition: all 0.2s; cursor: pointer;
  border: 2px solid transparent;
}
.plan-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.plan-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.plan-card-title { font-size: 16px; font-weight: 600; }
.plan-type { font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.plan-type.year { background: #e8f0ff; color: var(--primary); }
.plan-type.quarter { background: #f0e8ff; color: var(--purple); }
.plan-type.month { background: #e8f7ef; color: var(--green); }
.plan-goal { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.plan-progress { margin-bottom: 12px; }
.pp-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.pp-fill { height: 100%; background: var(--gradient); border-radius: 4px; transition: width 0.5s; }
.pp-text { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.plan-card-footer { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); padding-top: 12px; border-top: 1px solid var(--border); }
.plan-card-footer span { display: flex; align-items: center; gap: 4px; }
.plan-deadline-warn { color: var(--orange); font-weight: 600; }

/* 计划详情 */
.plan-detail-header, .pd-header {
  background: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.pdh-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.pdh-title { font-size: 20px; font-weight: 700; }
.pdh-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.pdh-meta span { display: flex; align-items: center; gap: 4px; }
.pdh-progress { display: flex; align-items: center; gap: 16px; }
.pdh-progress .pp-bar { flex: 1; height: 10px; }

.plan-stages, .pd-stages { display: flex; flex-direction: column; gap: 12px; }
.stage-card {
  background: #fff; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow);
}
.stage-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.stage-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
}
.stage-num.done { background: var(--green); }
.stage-num.current { background: var(--gradient); }
.stage-num.pending { background: var(--border-dark); color: var(--text-muted); }
.stage-name { font-size: 15px; font-weight: 600; flex: 1; }
.stage-status { font-size: 12px; padding: 2px 10px; border-radius: 4px; }
.stage-status.done { background: #e8f7ef; color: var(--green); }
.stage-status.current { background: var(--gradient-soft); color: var(--primary); }
.stage-status.pending { background: var(--bg); color: var(--text-muted); }
.stage-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stage-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg);
  font-size: 13px;
}
.stage-item .si-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.si-icon.course { background: #e8f0ff; color: var(--primary); }
.si-icon.exam { background: #fff4e6; color: var(--orange); }
.si-icon.done { background: #e8f7ef; color: var(--green); }
.si-body { flex: 1; }
.si-title { font-size: 13px; }
.si-sub { font-size: 11px; color: var(--text-muted); }

/* 实操鉴定考核（项目详情阶段内） */
.stage-pe { margin-top: 14px; border-top: 1px dashed var(--border-dark); padding-top: 14px; }
.stage-pe-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.stage-pe-title { font-size: 14px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.stage-pe-title i { font-size: 14px; }
.pe-status { font-size: 12px; padding: 2px 10px; border-radius: 4px; }
.pe-status.done { background: #e8f7ef; color: var(--green); }
.pe-status.pending { background: #fff4e6; color: var(--orange); }
.pe-status.current { background: var(--gradient-soft); color: var(--primary); }
.stage-pe-info { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; padding: 8px 12px; background: var(--bg); border-radius: var(--radius-sm); }
.stage-pe-info i { color: var(--primary); margin-right: 4px; }
.stage-pe-questions { display: flex; flex-direction: column; gap: 8px; }
.pe-q-item { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; border-left: 3px solid var(--primary); }
.pe-q-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pe-q-num { width: 22px; height: 22px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pe-q-title { font-size: 13px; font-weight: 600; flex: 1; }
.pe-q-score { font-size: 12px; color: var(--orange); font-weight: 600; white-space: nowrap; }
.pe-q-req { font-size: 12px; color: var(--text-secondary); line-height: 1.6; padding-left: 30px; }
.pe-q-req i { color: var(--green); margin-right: 4px; }
.pe-q-tags { padding-left: 30px; margin-top: 4px; }
.pe-q-media { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #fff4e6; color: var(--orange); }
.stage-pe-tip { margin-top: 10px; padding: 8px 12px; background: var(--gradient-soft); border-radius: var(--radius-sm); font-size: 12px; color: var(--primary); display: flex; align-items: center; gap: 6px; }

/* ===== 线下培训 ===== */
.offline-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ===== 考试中心 ===== */
.exam-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* 通用信息卡片（截图样式：彩色头部 + 状态角标 + 标题/描述/进度/底部） */
.info-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.2s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.info-card-header {
  height: 140px; display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: #fff; position: relative;
}
.info-card-status {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 12px; border-radius: 12px;
  font-size: 12px; color: #fff; background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
}
.info-card-body { padding: 20px; }
.info-card-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.info-card-desc {
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 16px; min-height: 40px;
}
.info-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
}
.info-card-footer span { display: flex; align-items: center; gap: 6px; }
.info-card-tag { color: var(--orange); font-weight: 500; }
.info-card-tag.blue { color: var(--primary); }
.info-card-tag.green { color: var(--green); }
.info-card-action { display: flex; justify-content: flex-end; padding-top: 12px; }

/* 卡片头部颜色 */
.info-card-header.purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.info-card-header.blue { background: linear-gradient(135deg, #4facfe 0%, #00c6fb 100%); }
.info-card-header.cyan { background: linear-gradient(135deg, #00c9ff 0%, #92fe9d 100%); }
.info-card-header.orange { background: linear-gradient(135deg, #ff9a44 0%, #fc6076 100%); }
.info-card-header.green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.info-card-header.gray { background: linear-gradient(135deg, #a8a8a8 0%, #d1d1d1 100%); }

/* ===== 直播课堂 ===== */
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.live-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.2s;
}
.live-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.live-cover {
  height: 140px; display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: #fff; position: relative;
}
.live-cover .live-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 10px; border-radius: 4px;
  font-size: 11px; color: #fff;
  display: flex; align-items: center; gap: 4px;
}
.live-badge.living { background: var(--red); }
.live-badge.upcoming { background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); }
.live-badge.replay { background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); }
.live-badge .pulse { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
.live-body { padding: 14px; }
.live-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.live-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 12px; }
.live-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.live-price { font-size: 15px; font-weight: 700; color: var(--orange); }
.live-price.free { color: var(--green); }

/* ===== 考试中心 ===== */
/* 复用 .info-card 通用信息卡片样式 */

/* ===== 考试答题 ===== */
.exam-taking-header {
  background: #fff; border-radius: var(--radius); padding: 16px 24px;
  box-shadow: var(--shadow); margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.exam-taking-header h2 { font-size: 18px; margin-bottom: 6px; }
.et-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); }
.et-meta span { display: flex; align-items: center; gap: 4px; }
.et-timer { font-size: 20px; font-weight: 700; color: var(--orange); font-family: 'Courier New', monospace; }

.exam-taking-body { display: flex; gap: 16px; }
.et-question-area { flex: 1; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-height: 400px; }
.et-q-type { font-size: 12px; padding: 3px 10px; border-radius: 4px; background: var(--gradient-soft); color: var(--primary); display: inline-block; margin-bottom: 12px; }
.et-q-stem { font-size: 15px; line-height: 1.8; margin-bottom: 20px; }
.et-q-options { display: flex; flex-direction: column; gap: 10px; }
.et-q-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s;
}
.et-q-option:hover { border-color: var(--primary); background: var(--gradient-soft); }
.et-q-option.selected { border-color: var(--primary); background: var(--gradient-soft); }
.et-q-option .opt-label {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--border-dark); display: flex;
  align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.et-q-option.selected .opt-label { background: var(--gradient); color: #fff; border-color: var(--primary); }
.et-q-nav { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }

.et-answer-card { width: 240px; flex-shrink: 0; background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); height: fit-content; position: sticky; top: 80px; }
.et-answer-card h4 { font-size: 14px; margin-bottom: 14px; }
.et-card-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 16px; }
.et-card-item {
  aspect-ratio: 1; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--bg); color: var(--text-muted); transition: all 0.2s;
}
.et-card-item:hover { transform: scale(1.1); }
.et-card-item.answered { background: var(--gradient); color: #fff; }
.et-card-item.current { border: 2px solid var(--primary); }
.et-card-item.marked { background: #fff4e6; color: var(--orange); }
.et-legend { display: flex; gap: 12px; font-size: 11px; color: var(--text-muted); }
.et-legend div { display: flex; align-items: center; gap: 4px; }
.et-dot { width: 10px; height: 10px; border-radius: 2px; }
.et-dot.answered { background: var(--gradient); }
.et-dot.unanswered { background: var(--bg); border: 1px solid var(--border-dark); }
.et-dot.marked { background: #fff4e6; }

/* 考试结果 */
.exam-result-summary {
  background: #fff; border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); text-align: center; margin-bottom: 16px;
}
.ers-score {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700;
}
.ers-score.pass { background: #e8f7ef; color: var(--green); border: 4px solid var(--green); }
.ers-score.fail { background: #ffe8e8; color: var(--red); border: 4px solid var(--red); }
.ers-status { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.ers-detail { display: flex; gap: 32px; justify-content: center; font-size: 13px; color: var(--text-muted); }
.ers-detail b { font-size: 16px; color: var(--text); display: block; }

.exam-result-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.review-item {
  background: #fff; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.ri-header { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.ri-num { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.ri-type { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--gradient-soft); color: var(--primary); }
.ri-status { font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-left: auto; }
.ri-status.correct { background: #e8f7ef; color: var(--green); }
.ri-status.wrong { background: #ffe8e8; color: var(--red); }
.ri-stem { font-size: 14px; margin-bottom: 10px; line-height: 1.6; }
.ri-options { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.ri-option { padding: 8px 12px; border-radius: 6px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.ri-option.correct { background: #e8f7ef; }
.ri-option.wrong { background: #ffe8e8; }
.ri-option .opt-mark { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.ri-option.correct .opt-mark { background: var(--green); color: #fff; }
.ri-option.wrong .opt-mark { background: var(--red); color: #fff; }
.ri-analysis { background: var(--bg); border-radius: 6px; padding: 12px; font-size: 13px; color: var(--text-muted); }
.ri-analysis b { color: var(--text); }

/* ===== 认证项目 ===== */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.2s; cursor: pointer;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pc-cover { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #fff; position: relative; }
.pc-cover .pc-badge { position: absolute; top: 8px; right: 8px; padding: 3px 10px; border-radius: 4px; font-size: 11px; background: rgba(0,0,0,0.3); color: #fff; backdrop-filter: blur(4px); }
.pc-body { padding: 16px; }
.pc-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.pc-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.pc-stages-row { display: flex; gap: 4px; margin-bottom: 12px; }
.pcs-dot { flex: 1; height: 6px; border-radius: 3px; background: var(--border); }
.pcs-dot.done { background: var(--green); }
.pcs-dot.current { background: var(--gradient); }
.pc-footer { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); padding-top: 10px; border-top: 1px solid var(--border); }
.pc-cert { color: var(--orange); font-weight: 600; }
.pc-action { display: flex; justify-content: flex-end; padding-top: 12px; }

/* 项目详情 */
.pdh-stages { display: flex; gap: 4px; margin-top: 12px; }
.pdh-stage-dot { flex: 1; height: 6px; border-radius: 3px; background: var(--border); }
.pdh-stage-dot.done { background: var(--green); }
.pdh-stage-dot.current { background: var(--gradient); }

/* ===== 我的证书 ===== */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all 0.2s; cursor: pointer;
}
.cert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cert-preview {
  height: 160px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #fff; position: relative; text-align: center; padding: 20px;
}
.cert-preview .cp-icon { font-size: 36px; margin-bottom: 8px; opacity: 0.8; }
.cert-preview .cp-name { font-size: 14px; font-weight: 600; line-height: 1.4; }
.cert-preview .cp-no { font-size: 11px; opacity: 0.7; margin-top: 4px; }
.cert-status-tag { position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 4px; font-size: 10px; }
.cert-status-tag.valid { background: rgba(255,255,255,0.25); color: #fff; backdrop-filter: blur(4px); }
.cert-status-tag.expiring { background: rgba(255,140,0,0.9); color: #fff; }
.cert-status-tag.expired { background: rgba(0,0,0,0.4); color: #fff; }
.cert-body { padding: 14px; }
.cert-type { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--gradient-soft); color: var(--primary); display: inline-block; margin-bottom: 8px; }
.cert-info { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); }
.cert-info b { color: var(--text); font-weight: 500; }
.cert-actions { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.cert-actions .btn { flex: 1; justify-content: center; }

/* 证书颜色 */
.cert-color-gold { background: linear-gradient(135deg, #f6a623, #f79f1f); }
.cert-color-blue { background: linear-gradient(135deg, #4f6ef7, #667eea); }
.cert-color-purple { background: linear-gradient(135deg, #7b61ff, #a29bfe); }
.cert-color-green { background: linear-gradient(135deg, #00a870, #2ecc71); }
.cert-color-red { background: linear-gradient(135deg, #e74c3c, #ee5a6f); }
.cert-color-teal { background: linear-gradient(135deg, #00bcd4, #4fc3f7); }

/* ===== 错题本 ===== */
.wrong-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.ws-card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); text-align: center; }
.ws-num { font-size: 24px; font-weight: 700; }
.ws-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.ws-card.red .ws-num { color: var(--red); }
.ws-card.orange .ws-num { color: var(--orange); }
.ws-card.green .ws-num { color: var(--green); }
.ws-card.blue .ws-num { color: var(--primary); }

.wrong-list { display: flex; flex-direction: column; gap: 12px; }
.wrong-item { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.wi-header { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.wi-type { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--gradient-soft); color: var(--primary); }
.wi-source { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--bg); color: var(--text-muted); }
.wi-count { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #ffe8e8; color: var(--red); margin-left: auto; }
.wi-stem { font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
.wi-options { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.wi-option { padding: 8px 12px; border-radius: 6px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.wi-option.correct { background: #e8f7ef; }
.wi-option.my-wrong { background: #ffe8e8; }
.wi-option .opt-mark { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.wi-option.correct .opt-mark { background: var(--green); color: #fff; }
.wi-option.my-wrong .opt-mark { background: var(--red); color: #fff; }
.wi-analysis { background: var(--bg); border-radius: 6px; padding: 12px; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.wi-analysis b { color: var(--text); }
.wi-actions { display: flex; gap: 8px; }

/* ===== 学习档案 ===== */
.archive-profile {
  background: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); margin-bottom: 16px;
  display: flex; align-items: center; gap: 24px;
}
.ap-avatar { width: 64px; height: 64px; border-radius: 50%; }
.ap-info { flex: 1; }
.ap-name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.ap-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); }
.ap-meta span { display: flex; align-items: center; gap: 4px; }

.archive-section {
  background: #fff; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.as-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.as-title i { color: var(--primary); }
.as-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.as-table th { text-align: left; padding: 10px 14px; background: var(--bg); color: var(--text-muted); font-weight: 600; font-size: 12px; border-radius: 6px; }
.as-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.as-table tr:hover td { background: var(--gradient-soft); }
.source-tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.source-tag.plan { background: #f0e8ff; color: var(--purple); }
.source-tag.project { background: #fff4e6; color: var(--orange); }
.source-tag.optional { background: #e8f7ef; color: var(--green); }
.status-tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.status-tag.done { background: #e8f7ef; color: var(--green); }
.status-tag.undone { background: var(--bg); color: var(--text-muted); }
.score-tag { font-weight: 600; }
.score-tag.pass { color: var(--green); }
.score-tag.fail { color: var(--red); }

/* ===== 消息公告 ===== */
.msg-list { display: flex; flex-direction: column; gap: 8px; }
.msg-item {
  background: #fff; border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start;
  cursor: pointer; transition: all 0.2s;
  border-left: 3px solid transparent;
}
.msg-item:hover { box-shadow: var(--shadow-lg); }
.msg-item.unread { border-left-color: var(--primary); }
.msg-item.unread .msg-title { font-weight: 600; }
.msg-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.msg-icon.announce { background: #e8f0ff; color: var(--primary); }
.msg-icon.course { background: #f0e8ff; color: var(--purple); }
.msg-icon.exam { background: #fff4e6; color: var(--orange); }
.msg-icon.cert { background: #e8f7ef; color: var(--green); }
.msg-body { flex: 1; }
.msg-title { font-size: 14px; margin-bottom: 4px; }
.msg-preview { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-meta { font-size: 12px; color: var(--text-light); margin-top: 4px; display: flex; gap: 12px; }
.msg-level { font-size: 10px; padding: 2px 6px; border-radius: 4px; }
.msg-level.urgent { background: #ffe8e8; color: var(--red); }
.msg-level.important { background: #fff4e6; color: var(--orange); }
.msg-level.normal { background: #e8f7ef; color: var(--green); }

/* ===== 个人计划 ===== */
.pp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.pp-stat-card {
  background: #fff; border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
}
.pp-stat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; flex-shrink: 0;
}
.pp-stat-icon.blue { background: linear-gradient(135deg, #4f6ef7, #667eea); }
.pp-stat-icon.purple { background: linear-gradient(135deg, #7b61ff, #a29bfe); }
.pp-stat-icon.green { background: linear-gradient(135deg, #00a870, #2ecc71); }
.pp-stat-num { font-size: 22px; font-weight: 700; line-height: 1; }
.pp-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.pp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pp-card {
  background: #fff; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); transition: all 0.2s; cursor: pointer;
  border: 2px solid transparent; position: relative;
}
.pp-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.pp-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.pp-card-title { font-size: 16px; font-weight: 600; }
.pp-card-status { font-size: 11px; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.pp-card-status.active { background: var(--gradient-soft); color: var(--primary); }
.pp-card-status.completed { background: #e8f7ef; color: var(--green); }
.pp-card-status.expired { background: var(--bg); color: var(--text-muted); }
.pp-card-period {
  font-size: 13px; color: var(--text-muted); margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.pp-card-progress { margin-bottom: 12px; }
.pp-card-progress .pp-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.pp-card-progress .pp-fill { height: 100%; background: var(--gradient); border-radius: 4px; transition: width 0.5s; }
.pp-card-progress .pp-text { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.pp-card-courses {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.pp-course-chip {
  font-size: 12px; padding: 3px 10px; border-radius: 12px;
  background: var(--bg); color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.pp-course-chip.done { background: #e8f7ef; color: var(--green); }
.pp-course-chip i { font-size: 10px; }
.pp-card-footer { display: flex; gap: 8px; justify-content: flex-end; }

/* 个人计划详情 */
.pp-detail-header {
  background: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.ppd-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.ppd-title { font-size: 20px; font-weight: 700; }
.ppd-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.ppd-meta span { display: flex; align-items: center; gap: 4px; }
.ppd-progress { display: flex; align-items: center; gap: 16px; }
.ppd-progress .pp-bar { flex: 1; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.ppd-progress .pp-fill { height: 100%; background: var(--gradient); border-radius: 5px; }

/* 个人计划表单 */
.pp-form-group { margin-bottom: 16px; }
.pp-form-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; display: block; }
.pp-form-label .required { color: var(--red); }
.pp-form-input, .pp-form-select {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm); font-size: 13px; font-family: inherit;
  outline: none; transition: border-color 0.2s;
}
.pp-form-input:focus, .pp-form-select:focus { border-color: var(--primary); }
.pp-form-row { display: flex; gap: 12px; }
.pp-form-row > * { flex: 1; }
.pp-form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.pp-course-picker {
  flex: 1; max-height: 320px; overflow-y: auto; border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm); padding: 4px;
}
.pp-pick-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 6px; cursor: pointer;
  transition: background 0.15s; font-size: 13px;
}
.pp-pick-item:hover { background: var(--bg); }
.pp-pick-item.checked { background: var(--gradient-soft); }
.pp-pick-checkbox {
  width: 18px; height: 18px; border-radius: 4px;
  border: 2px solid var(--border-dark); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.pp-pick-item.checked .pp-pick-checkbox { background: var(--gradient); border-color: var(--primary); }
.pp-pick-checkbox i { font-size: 10px; color: #fff; opacity: 0; transition: opacity 0.15s; }
.pp-pick-item.checked .pp-pick-checkbox i { opacity: 1; }
.pp-pick-body { flex: 1; min-width: 0; }
.pp-pick-title { font-weight: 500; }
.pp-pick-sub { font-size: 11px; color: var(--text-muted); }
.pp-pick-count {
  font-size: 12px; color: var(--text-muted); padding: 6px 12px;
  border-bottom: 1px solid var(--border); margin-bottom: 4px;
  display: flex; justify-content: space-between; align-items: center;
}
.pp-pick-count b { color: var(--primary); font-size: 14px; }

/* 选择线上课入口卡片 */
.pp-pick-entry {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 2px dashed var(--border-dark);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all 0.2s; background: var(--bg);
}
.pp-pick-entry:hover { border-color: var(--primary); background: var(--gradient-soft); }
.pp-pick-entry-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}
.pp-pick-entry-body { flex: 1; min-width: 0; }
.pp-pick-entry-title { font-size: 14px; font-weight: 600; color: var(--text); }
.pp-pick-entry-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pp-pick-entry-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; color: var(--text-muted); }
.pp-pick-entry-badge {
  min-width: 22px; height: 22px; border-radius: 11px; padding: 0 7px;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* 已选课程列表 */
.pp-selected-list { margin-top: 10px; }
.pp-selected-table {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden;
}
.pp-selected-thead {
  padding: 8px 14px; background: var(--bg);
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.pp-selected-tbody { max-height: 200px; overflow-y: auto; }
.pp-sel-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.pp-sel-item:last-child { border-bottom: none; }
.pp-sel-item:hover { background: var(--gradient-soft); }
.pp-sel-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
}
.pp-sel-body { flex: 1; min-width: 0; }
.pp-sel-title {
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pp-sel-sub {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-muted); margin-top: 2px;
}
.pp-sel-sub .dot { color: var(--border-dark); }
.pp-sel-status { font-weight: 500; }
.pp-sel-status.done { color: var(--green); }
.pp-sel-status.active { color: var(--primary); }
.pp-sel-status.pending { color: var(--text-muted); }
.pp-sel-remove {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); font-size: 12px;
  transition: all 0.15s;
}
.pp-sel-remove:hover { background: #fee; color: #e74c3c; }

/* 课程选择面板 */
.pp-picker-layout { display: flex; gap: 12px; min-height: 360px; }
.pp-picker-sidebar {
  width: 180px; flex-shrink: 0; background: var(--bg);
  border-radius: var(--radius-sm); padding: 10px; overflow-y: auto; max-height: 380px;
}
.pp-picker-side-title {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  padding: 4px 8px 8px; display: flex; align-items: center; gap: 6px;
}
.pp-picker-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pp-picker-toolbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.pp-picker-toolbar .pp-form-input { flex: 1; }
.pp-picker-count { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.pp-picker-count b { color: var(--primary); font-size: 14px; }

/* ===== 个人中心 ===== */
.profile-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
.profile-card {
  background: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.profile-card h4 { font-size: 15px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.profile-card h4 i { color: var(--primary); }
.profile-info-row { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.profile-info-row:last-child { border-bottom: none; }
.pir-label { width: 100px; font-size: 13px; color: var(--text-muted); }
.pir-value { font-size: 14px; font-weight: 500; }
.profile-form-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.profile-form-row label { font-size: 13px; color: var(--text-muted); }
.form-input { padding: 8px 12px; border: 1px solid var(--border-dark); border-radius: var(--radius-sm); font-size: 13px; font-family: inherit; outline: none; }
.form-input:focus { border-color: var(--primary); }
.profile-tip { font-size: 12px; color: var(--text-muted); margin-top: 8px; display: flex; align-items: center; gap: 4px; }

.pref-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.pref-row:last-of-type { border-bottom: none; margin-bottom: 16px; }
.pref-row label { font-size: 14px; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top:0; left:0; right:0; bottom:0; background: #ccc; border-radius: 22px; transition: 0.3s; }
.slider:before { position: absolute; content: ''; height: 16px; width: 16px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
.switch input:checked + .slider { background: var(--gradient); }
.switch input:checked + .slider:before { transform: translateX(18px); }

/* ===== 通知抽屉 ===== */
.notice-drawer {
  position: fixed; top: 60px; right: 0; bottom: 0;
  width: 360px; background: #fff;
  box-shadow: var(--shadow-lg); z-index: 200;
  display: flex; flex-direction: column;
}
.nd-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.nd-header h3 { font-size: 16px; }
.nd-header button { border: none; background: none; font-size: 18px; cursor: pointer; color: var(--text-muted); }
.nd-list { flex: 1; overflow-y: auto; padding: 8px; }
.nd-item { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 4px; cursor: pointer; transition: background 0.2s; }
.nd-item:hover { background: var(--bg); }
.nd-item.unread { background: var(--gradient-soft); }
.nd-item .nd-title { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.nd-item .nd-time { font-size: 11px; color: var(--text-muted); }
.drawer-mask { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); z-index: 150; }

/* ===== 弹窗 ===== */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.45); z-index: 300; display: flex; align-items: center; justify-content: center; }
.modal-box { background: #fff; border-radius: var(--radius-lg); width: 90%; max-width: 600px; max-height: 85vh; overflow: hidden; display: flex; flex-direction: column; animation: modalIn 0.25s ease; }
@keyframes modalIn { from { opacity:0; transform: scale(0.95); } to { opacity:1; transform: scale(1); } }
.modal-header { padding: 16px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 16px; }
.modal-body { padding: 24px; overflow-y: auto; }
.modal-close { border: none; background: none; font-size: 18px; cursor: pointer; color: var(--text-muted); }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }
.empty-state p { font-size: 14px; }

/* ===== 响应式 ===== */
@media (max-width: 1400px) {
  .course-grid, .project-grid, .cert-grid, .live-grid { grid-template-columns: repeat(2, 1fr); }
  .course-rec-row { grid-template-columns: 1fr; }
}
@media (max-width: 1200px) {
  .home-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
}
