/* ============================================================
 * HOJ 增强平台 - 综合模块样式 v20260807b
 * 课程、天梯、错题本、学习路径 通用 UI
 * ============================================================ */

/* === 主导航栏增强菜单项 (v20260807b 新样式) === */
.hpe-nav-main {
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
  height: 28px !important;
  line-height: normal !important;
  padding: 0 6px !important;
  border-radius: 4px !important;
  border-bottom: none !important;
  cursor: pointer !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  color: #fff !important;
  letter-spacing: 0.2px !important;
  margin: 0 1px !important;
}
.hpe-nav-main:hover {
  filter: brightness(1.08) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  transform: translateY(-1px) !important;
}
.hpe-nav-main .hpe-nav-icon {
  margin-right: 5px;
  font-size: 15px;
}
.hpe-nav-course {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}
.hpe-nav-exam {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%) !important;
}
.hpe-nav-ladder {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}
.hpe-nav-wrong {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%) !important;
}

/* Fix: make .btn-menu inline-flex so it stays on same row as menu items */
.el-menu--horizontal .btn-menu {
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
  float: none !important;
  margin-top: 0 !important;
  height: 36px !important;
  line-height: normal !important;
}
/* Prevent menu items from wrapping */
.el-menu--horizontal {
  white-space: nowrap !important;
}

.hpe-nav-main .hpe-nav-text {
  display: inline;
}

/* Responsive: compact on medium screens, icon-only on small screens */
@media (max-width: 1200px) {
  .hpe-nav-main {
    padding: 0 8px !important;
    font-size: 12px !important;
  }
  .hpe-nav-main .hpe-nav-icon {
    margin-right: 3px;
    font-size: 13px;
  }
}
@media (max-width: 1024px) {
  .hpe-nav-main .hpe-nav-text {
    display: none !important;
  }
  .hpe-nav-main {
    padding: 0 6px !important;
  }
  .hpe-nav-main .hpe-nav-icon {
    margin-right: 0 !important;
  }
}

/* === 旧导航按钮样式 (保留兼容，v20260807a 后不再使用) === */
.hpe-nav-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  border: none !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-right: 8px !important;
  white-space: nowrap !important;
  color: #fff !important;
  letter-spacing: 0.3px !important;
}
.hpe-nav-btn:hover {
  transform: translateY(-1.5px) !important;
}
.hpe-nav-btn:active {
  transform: translateY(0) scale(0.97) !important;
}
.hpe-nav-btn-course {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.35) !important;
}
.hpe-nav-btn-course:hover { box-shadow: 0 4px 18px rgba(102, 126, 234, 0.5) !important; }
.hpe-nav-btn-ladder {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
  box-shadow: 0 2px 10px rgba(240, 147, 251, 0.35) !important;
}
.hpe-nav-btn-ladder:hover { box-shadow: 0 4px 18px rgba(240, 147, 251, 0.5) !important; }
.hpe-nav-btn-wrong {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%) !important;
  box-shadow: 0 2px 10px rgba(246, 211, 101, 0.35) !important;
}
.hpe-nav-btn-wrong:hover { box-shadow: 0 4px 18px rgba(246, 211, 101, 0.5) !important; }
.hpe-nav-icon { font-size: 16px; }

/* === 全屏面板 === */
.hpe-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.55); z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  animation: hpeFadeIn 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@keyframes hpeFadeIn { from { opacity: 0; } to { opacity: 1; } }

.hpe-panel {
  background: #fff; border-radius: 18px;
  width: 92%; max-width: 960px; max-height: 87vh;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.18);
  animation: hpeSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes hpeSlideUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }

/* === 面板头部 === */
.hpe-header {
  padding: 22px 28px; border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.hpe-header-left h2 {
  margin: 0 0 2px 0; font-size: 20px; color: #1e293b;
  display: flex; align-items: center; gap: 8px;
}
.hpe-header-left .hpe-subtitle {
  font-size: 12px; color: #94a3b8; margin: 0;
}
.hpe-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.05);
  font-size: 18px; cursor: pointer; color: #94a3b8;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; line-height: 1;
}
.hpe-close:hover { background: rgba(0,0,0,0.1); color: #1e293b; }

/* === 选项卡 === */
.hpe-tabs {
  display: flex; gap: 0; border-bottom: 1px solid #e2e8f0;
  padding: 0 28px; flex-shrink: 0; background: #fff;
  overflow-x: auto;
}
.hpe-tab {
  padding: 12px 18px; font-size: 13px; font-weight: 500;
  color: #64748b; cursor: pointer; border: none;
  background: none; border-bottom: 3px solid transparent;
  transition: all 0.2s; margin-bottom: -1px;
  white-space: nowrap; flex-shrink: 0;
}
.hpe-tab:hover { color: #667eea; }
.hpe-tab.active { color: #667eea; border-bottom-color: #667eea; font-weight: 600; }

/* === 内容区 === */
.hpe-content {
  flex: 1; overflow-y: auto; padding: 24px 28px;
}
.hpe-content::-webkit-scrollbar { width: 5px; }
.hpe-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* ==================== 课程模块 ==================== */
.hpe-course-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.hpe-course-card {
  background: #f8fafc; border-radius: 14px; padding: 20px;
  border: 1px solid #e2e8f0; cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; overflow: hidden;
}
.hpe-course-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}
.hpe-course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border-color: #c7d2fe;
}
.hpe-course-card.free::before { background: linear-gradient(90deg, #10b981, #059669); }
.hpe-course-card .hpe-course-type {
  display: inline-block; padding: 2px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 600; margin-bottom: 10px;
}
.hpe-course-type.free { background: #d1fae5; color: #065f46; }
.hpe-course-type.paid { background: #ede9fe; color: #5b21b6; }
.hpe-course-card .hpe-course-title {
  font-size: 16px; font-weight: 700; color: #1e293b; margin-bottom: 6px;
}
.hpe-course-card .hpe-course-subtitle {
  font-size: 13px; color: #64748b; margin-bottom: 12px;
  line-height: 1.4;
}
.hpe-course-card .hpe-course-meta {
  display: flex; gap: 12px; font-size: 11px; color: #94a3b8;
  flex-wrap: wrap;
}
.hpe-course-card .hpe-course-meta span {
  display: flex; align-items: center; gap: 4px;
}

/* 章节列表 */
.hpe-chapter-list { display: flex; flex-direction: column; gap: 8px; }
.hpe-chapter-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  cursor: pointer; transition: all 0.2s;
}
.hpe-chapter-item:hover {
  background: #eef2ff; border-color: #c7d2fe;
}
.hpe-chapter-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: #667eea; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.hpe-chapter-item.completed .hpe-chapter-num {
  background: #10b981;
}
.hpe-chapter-info { flex: 1; min-width: 0; }
.hpe-chapter-title { font-size: 14px; font-weight: 600; color: #1e293b; }
.hpe-chapter-desc { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.hpe-chapter-duration {
  font-size: 12px; color: #64748b; white-space: nowrap;
}
.hpe-progress-bar {
  margin-top: 8px; height: 4px; border-radius: 2px;
  background: #e2e8f0; overflow: hidden;
}
.hpe-progress-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

/* ==================== 天梯模块 ==================== */
.hpe-ladder-header {
  text-align: center; padding: 16px 0 20px;
}
.hpe-rank-badge {
  display: inline-block; padding: 6px 16px; border-radius: 99px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.5px;
}
.hpe-rank-badge.qingtong { background: #fef3c7; color: #92400e; border: 2px solid #f59e0b; }
.hpe-rank-badge.baiyin { background: #e2e8f0; color: #475569; border: 2px solid #94a3b8; }
.hpe-rank-badge.huangjin { background: #fef9c3; color: #854d0e; border: 2px solid #eab308; }
.hpe-rank-badge.bojin { background: #fce7f3; color: #9d174d; border: 2px solid #ec4899; }
.hpe-rank-badge.zuanshi { background: #e0f2fe; color: #075985; border: 2px solid #0ea5e9; }
.hpe-rank-badge.dashi { background: #f3e8ff; color: #6b21a8; border: 2px solid #a855f7; }
.hpe-rank-badge.wangzhe { background: #fef2f2; color: #991b1b; border: 2px solid #ef4444; }

.hpe-ladder-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.hpe-stat-card {
  background: #f8fafc; border-radius: 12px; padding: 16px;
  text-align: center; border: 1px solid #e2e8f0;
}
.hpe-stat-card .hpe-stat-value {
  font-size: 26px; font-weight: 700; color: #1e293b; line-height: 1.2;
}
.hpe-stat-card .hpe-stat-label { font-size: 12px; color: #94a3b8; margin-top: 4px; }

/* 排行榜表格 */
.hpe-ladder-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
}
.hpe-ladder-table th {
  padding: 10px 14px; text-align: left; font-size: 12px;
  color: #94a3b8; font-weight: 600; border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.hpe-ladder-table td {
  padding: 10px 14px; font-size: 13px; color: #475569;
  border-bottom: 1px solid #f1f5f9;
}
.hpe-ladder-table tr:hover td { background: #eef2ff; }
.hpe-ladder-table .hpe-rank-num {
  font-weight: 700; color: #667eea; font-size: 14px;
}
.hpe-ladder-table .hpe-rank-1 { color: #f59e0b; font-size: 16px; }
.hpe-ladder-table .hpe-rank-2 { color: #94a3b8; }
.hpe-ladder-table .hpe-rank-3 { color: #d97706; }

/* 对战记录 */
.hpe-match-list { display: flex; flex-direction: column; gap: 6px; }
.hpe-match-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  transition: background 0.15s;
}
.hpe-match-item:hover { background: #eef2ff; }
.hpe-match-result {
  width: 40px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.hpe-match-result.win { background: #10b981; }
.hpe-match-result.lose { background: #ef4444; }
.hpe-match-result.draw { background: #f59e0b; }
.hpe-match-score {
  font-size: 13px; font-weight: 600; color: #1e293b;
}
.hpe-match-opponent {
  font-size: 12px; color: #64748b; flex: 1;
}
.hpe-match-time {
  font-size: 11px; color: #cbd5e1; white-space: nowrap;
}
.hpe-match-delta {
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.hpe-match-delta.up { color: #10b981; }
.hpe-match-delta.down { color: #ef4444; }

/* ==================== 错题本模块 ==================== */
.hpe-wrong-list { display: flex; flex-direction: column; gap: 8px; }
.hpe-wrong-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  cursor: pointer; transition: all 0.2s;
}
.hpe-wrong-item:hover {
  background: #fef2f2; border-color: #fecaca;
}
.hpe-wrong-type {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.hpe-wrong-type.choice { background: #fef3c7; color: #92400e; }
.hpe-wrong-type.judge { background: #e0e7ff; color: #3730a3; }
.hpe-wrong-type.fill { background: #fce7f3; color: #9d174d; }
.hpe-wrong-info { flex: 1; min-width: 0; }
.hpe-wrong-title { font-size: 14px; font-weight: 500; color: #1e293b; }
.hpe-wrong-meta { font-size: 11px; color: #94a3b8; margin-top: 4px; }
.hpe-wrong-wrong-answer {
  color: #ef4444; font-weight: 600; font-size: 12px;
  background: #fef2f2; padding: 2px 8px; border-radius: 4px;
  white-space: nowrap;
}
.hpe-wrong-count {
  font-size: 11px; color: #f59e0b; white-space: nowrap;
}

/* 错题详情 */
.hpe-wrong-detail { padding: 10px 0; }
.hpe-wrong-detail .hpe-question-text {
  font-size: 15px; line-height: 1.7; color: #1e293b;
  padding: 14px 18px; background: #f8fafc;
  border-radius: 10px; border-left: 4px solid #667eea;
  margin-bottom: 16px;
}
.hpe-wrong-detail .hpe-option-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.hpe-wrong-detail .hpe-option {
  padding: 10px 14px; border-radius: 8px; border: 1px solid #e2e8f0;
  font-size: 13px; color: #475569; background: #fff;
  display: flex; align-items: center; gap: 10px;
  transition: all 0.15s;
}
.hpe-wrong-detail .hpe-option.correct {
  border-color: #10b981; background: #d1fae5; color: #065f46;
  font-weight: 500;
}
.hpe-wrong-detail .hpe-option.wrong-choice {
  border-color: #ef4444; background: #fef2f2; color: #991b1b;
  font-weight: 500;
}
.hpe-wrong-detail .hpe-option-label {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
  border: 1.5px solid #cbd5e1; color: #64748b;
}
.hpe-option.correct .hpe-option-label {
  border-color: #10b981; background: #10b981; color: #fff;
}
.hpe-option.wrong-choice .hpe-option-label {
  border-color: #ef4444; background: #ef4444; color: #fff;
}

/* === 加载与空状态 === */
.hpe-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px;
}
.hpe-spinner {
  width: 36px; height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: hpeSpin 0.7s linear infinite;
}
@keyframes hpeSpin { to { transform: rotate(360deg); } }
.hpe-loading-text { margin-top: 14px; color: #94a3b8; font-size: 13px; }
.hpe-empty {
  text-align: center; padding: 40px 20px; color: #94a3b8;
}
.hpe-empty-icon { font-size: 42px; margin-bottom: 10px; }
.hpe-empty-text { font-size: 13px; }

/* ==================== 考试中心模块 ==================== */
.hpe-nav-btn-exam {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

/* 试卷列表 */
.hpe-exam-list { display: flex; flex-direction: column; gap: 14px; }
.hpe-exam-card {
  background: #f8fafc; border-radius: 14px; padding: 20px;
  border: 1px solid #e2e8f0; cursor: pointer; transition: all 0.25s;
  position: relative; overflow: hidden;
}
.hpe-exam-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.hpe-exam-card:hover {
  background: #fff; border-color: #f59e0b;
  box-shadow: 0 4px 20px rgba(245,158,11,0.12);
  transform: translateY(-2px);
}
.hpe-exam-card-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.hpe-exam-badge {
  background: #fef3c7; color: #92400e; padding: 3px 10px;
  border-radius: 99px; font-size: 11px; font-weight: 600;
}
.hpe-exam-type {
  background: #e0e7ff; color: #3730a3; padding: 3px 10px;
  border-radius: 99px; font-size: 11px; font-weight: 600;
}
.hpe-exam-title { font-size: 16px; font-weight: 600; color: #1e293b; margin: 0 0 6px; }
.hpe-exam-desc { font-size: 13px; color: #64748b; margin: 0 0 12px; line-height: 1.5; }
.hpe-exam-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: #94a3b8; margin-bottom: 14px;
}
.hpe-exam-start-btn {
  display: inline-block; padding: 8px 20px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.hpe-exam-start-btn:hover { transform: scale(1.03); box-shadow: 0 3px 12px rgba(239,68,68,0.3); }

/* 考试中 */
.hpe-exam-taking { display: flex; flex-direction: column; gap: 16px; }
.hpe-exam-timer-bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: #1e293b; color: #fff;
  border-radius: 10px;
}
.hpe-timer-label { font-size: 12px; color: #94a3b8; }
.hpe-timer-value { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hpe-timer-value.hpe-timer-warning { color: #ef4444; animation: hpeBlink 1s ease infinite; }
@keyframes hpeBlink { 50% { opacity: 0.5; } }
.hpe-timer-progress {
  flex: 1; height: 4px; background: rgba(255,255,255,0.2);
  border-radius: 2px; overflow: hidden;
}

/* 题号导航 */
.hpe-exam-qnav {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 14px; background: #f8fafc;
  border-radius: 10px; border: 1px solid #e2e8f0;
}
.hpe-qnav-item {
  width: 30px; height: 30px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; cursor: pointer;
  background: #fff; border: 1px solid #e2e8f0; color: #64748b;
  transition: all 0.15s;
}
.hpe-qnav-item:hover { background: #eef2ff; border-color: #667eea; }
.hpe-qnav-item.answered { background: #d1fae5; border-color: #10b981; color: #065f46; }
.hpe-qnav-item.hpe-qnav-prog { background: #fef3c7; border-color: #f59e0b; color: #92400e; }

/* 题目卡片 */
.hpe-exam-questions { display: flex; flex-direction: column; gap: 16px; }
.hpe-exam-question {
  background: #fff; border-radius: 12px; padding: 18px 20px;
  border: 1px solid #e2e8f0;
}
.hpe-exam-question-prog { border-left: 3px solid #f59e0b; }
.hpe-exam-q-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.hpe-exam-q-num {
  font-size: 12px; font-weight: 700; color: #667eea;
  background: #eef2ff; padding: 3px 10px; border-radius: 6px;
}
.hpe-exam-q-type {
  font-size: 11px; color: #64748b; background: #f1f5f9;
  padding: 3px 8px; border-radius: 4px;
}
.hpe-exam-q-score {
  font-size: 12px; font-weight: 600; color: #f59e0b;
  margin-left: auto;
}
.hpe-exam-q-title {
  font-size: 15px; line-height: 1.7; color: #1e293b; margin-bottom: 14px;
}
.hpe-exam-options { display: flex; flex-direction: column; gap: 8px; }
.hpe-exam-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  border: 1.5px solid #e2e8f0; cursor: pointer;
  transition: all 0.15s; background: #fff;
}
.hpe-exam-option:hover { border-color: #667eea; background: #eef2ff; }
.hpe-exam-option.selected {
  border-color: #667eea; background: #eef2ff;
}
.hpe-exam-option input { display: none; }
.hpe-option-label {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
  border: 1.5px solid #cbd5e1; color: #64748b;
  transition: all 0.15s;
}
.hpe-exam-option.selected .hpe-option-label {
  border-color: #667eea; background: #667eea; color: #fff;
}
.hpe-option-text { font-size: 14px; color: #334155; }
.hpe-exam-fill-input {
  width: 100%; padding: 10px 14px; border-radius: 8px;
  border: 1.5px solid #e2e8f0; font-size: 14px; color: #1e293b;
  outline: none; transition: border-color 0.15s;
}
.hpe-exam-fill-input:focus { border-color: #667eea; }
.hpe-exam-prog-link {
  display: inline-block; padding: 6px 16px;
  background: #f59e0b; color: #fff; border-radius: 6px;
  font-size: 13px; font-weight: 600; text-decoration: none;
}

/* 提交栏 */
.hpe-exam-submit-bar {
  position: sticky; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: #fff;
  border-top: 2px solid #e2e8f0; border-radius: 0 0 14px 14px;
}
.hpe-exam-submit-btn {
  padding: 10px 28px; font-size: 14px; font-weight: 700;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; border: none; border-radius: 8px; cursor: pointer;
  transition: all 0.2s;
}
.hpe-exam-submit-btn:hover { transform: scale(1.03); box-shadow: 0 3px 12px rgba(16,185,129,0.3); }

/* 考试结果 */
.hpe-exam-result { display: flex; flex-direction: column; gap: 20px; }
.hpe-result-card {
  text-align: center; padding: 30px 20px;
  background: linear-gradient(135deg, #667eea11, #764ba211);
  border-radius: 16px; border: 1px solid #e2e8f0;
}
.hpe-result-grade {
  font-size: 48px; font-weight: 800; line-height: 1; margin-bottom: 8px;
}
.hpe-result-score { font-size: 36px; font-weight: 700; color: #1e293b; }
.hpe-result-score span { font-size: 16px; font-weight: 400; color: #94a3b8; }
.hpe-result-stats {
  display: flex; justify-content: center; gap: 30px; margin-top: 16px;
}
.hpe-result-stat { display: flex; flex-direction: column; align-items: center; }
.hpe-result-stat .num { font-size: 18px; font-weight: 700; color: #1e293b; }
.hpe-result-stat .label { font-size: 11px; color: #94a3b8; margin-top: 2px; }

.hpe-result-section-title {
  font-size: 15px; font-weight: 600; color: #1e293b; margin: 0;
}
.hpe-result-detail {
  padding: 16px 18px; border-radius: 10px; border: 1px solid #e2e8f0;
  background: #fff;
}
.hpe-result-detail.correct { border-left: 3px solid #10b981; }
.hpe-result-detail.wrong { border-left: 3px solid #ef4444; background: #fef2f2; }
.hpe-detail-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.hpe-detail-num { font-size: 12px; font-weight: 700; color: #667eea; }
.hpe-detail-type { font-size: 11px; color: #64748b; background: #f1f5f9; padding: 2px 8px; border-radius: 4px; }
.hpe-detail-icon { margin-left: auto; }
.hpe-detail-score { font-size: 12px; font-weight: 600; color: #f59e0b; }
.hpe-detail-title { font-size: 14px; color: #1e293b; margin-bottom: 8px; line-height: 1.6; }
.hpe-detail-answer { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.hpe-detail-user { color: #475569; }
.hpe-detail-user b { color: #1e293b; }
.hpe-detail-correct { color: #10b981; }
.hpe-detail-correct b { color: #065f46; }
.hpe-detail-analysis {
  margin-top: 8px; padding: 8px 12px; background: #f0fdf4;
  border-radius: 6px; font-size: 12px; color: #166534; line-height: 1.6;
}
.hpe-result-actions {
  display: flex; justify-content: center; gap: 12px;
}

/* 考试记录 */
.hpe-exam-records { display: flex; flex-direction: column; gap: 10px; }
.hpe-record-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 12px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  cursor: pointer; transition: all 0.2s;
}
.hpe-record-card:hover { background: #fff; border-color: #667eea; box-shadow: 0 2px 12px rgba(102,126,234,0.1); }
.hpe-record-grade {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; flex-shrink: 0;
  background: #fff; border: 2px solid currentColor;
}
.hpe-record-info { flex: 1; min-width: 0; }
.hpe-record-info h4 { margin: 0 0 6px; font-size: 14px; color: #1e293b; }
.hpe-record-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #94a3b8; }

/* === 响应式 === */
@media (max-width: 640px) {
  .hpe-panel { width: 96%; max-height: 92vh; border-radius: 14px; }
  .hpe-header { padding: 16px 18px; }
  .hpe-content { padding: 16px 18px; }
  .hpe-tabs { padding: 0 16px; }
  .hpe-tab { padding: 10px 12px; font-size: 12px; }
  .hpe-course-grid { grid-template-columns: 1fr; }
  .hpe-ladder-stats { grid-template-columns: repeat(2, 1fr); }
  .hpe-nav-btn { padding: 5px 10px; font-size: 12px; margin-right: 4px; }
  .hpe-nav-btn .hpe-nav-icon { font-size: 14px; }
}
@media (max-width: 375px) {
  .hpe-nav-btn { padding: 4px 8px; font-size: 11px; }
}
