/* ============================================================
   me-v2.css —「我的名师学」v2：学情报告大卡 + 我的题库 + 学情中心
   2026-10-31 凌云

   边界：
   - 全部选择器以 .msxme2- 前缀（新结构）+ 复用既有 .msxme- 网格类，
     不覆盖 me.css 里任何既有选择器。
   - 数据全部为演示样本，页面顶部有显式「演示」提示条，不冒充真实学习记录。
   - 颜色走主站品牌变量 --msx-primary（橙）/ --msx-primary-d，
     不写死品牌色，双主题（暖橙/冷蓝）自动联动。
   - 幂等标记：MSX-ME-V2
   ============================================================ */

/* ---------- 演示数据提示条 ---------- */
.msxme2-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--msx-primary, #E57026) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--msx-primary, #E57026) 22%, #fff);
  font-size: 13px;
  line-height: 1.65;
  color: #7A5A3C;
}
.msxme2-note .tag {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--msx-primary, #E57026);
  color: #fff;
  margin-top: 2px;
  letter-spacing: .5px;
}

/* ---------- 学情报告 · 整行大卡 ---------- */
.msxme2-report {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 26px;
  align-items: center;
  margin: 16px 0 0;
  padding: 28px 30px;
  border-radius: 18px;
  background: linear-gradient(120deg, #FFF7F1 0%, #FFFDFB 58%, #F4FBF8 100%);
  border: 1px solid #F3DCC9;
  box-shadow: 0 10px 30px rgba(196, 110, 40, .10);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: box-shadow .22s ease, transform .22s ease;
}
.msxme2-report:hover {
  box-shadow: 0 16px 40px rgba(196, 110, 40, .17);
  transform: translateY(-2px);
}
.msxme2-report:focus-visible {
  outline: 2px solid var(--msx-primary, #E57026);
  outline-offset: 3px;
}
.msxme2-report::after {
  content: "";
  position: absolute;
  right: -70px; top: -70px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 112, 38, .10), transparent 68%);
  pointer-events: none;
}
.msxme2-report .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--msx-primary-d, #C35B18);
}
.msxme2-report h2 {
  margin: 10px 0 10px;
  font-size: 25px;
  line-height: 1.32;
  font-weight: 800;
  color: #1C3055;
}
.msxme2-report h2 em {
  font-style: normal;
  color: var(--msx-primary, #E57026);
  font-variant-numeric: tabular-nums;
}
.msxme2-report .desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #6B6F7C;
  max-width: 540px;
}
.msxme2-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0 0;
  max-width: 560px;
}
.msxme2-kpis div {
  padding: 12px 8px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid #F3E4D6;
  text-align: center;
}
.msxme2-kpis b {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  color: #1C3055;
  font-variant-numeric: tabular-nums;
}
.msxme2-kpis span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #8A8F9C;
}
.msxme2-report-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--msx-primary, #E57026);
}
.msxme2-report-chart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 服务网格里的「可用」卡 ---------- */
.msxme2-card {
  text-decoration: none;
  color: inherit;
}
.msxme2-card-hot {
  background: linear-gradient(180deg, #FFF9F4 0%, #fff 62%);
  border-color: color-mix(in srgb, var(--msx-primary, #E57026) 34%, #fff);
  box-shadow: 0 6px 20px rgba(229, 112, 38, .12);
}
.msxme2-card-hot:hover {
  box-shadow: 0 12px 30px rgba(229, 112, 38, .20);
}
.msxme2-card-hot .ic {
  background: color-mix(in srgb, var(--msx-primary, #E57026) 16%, #fff);
}
.msxme2-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 11px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--msx-primary, #E57026);
  color: #fff;
  font-weight: 700;
  letter-spacing: .5px;
}
.msxme2-card .mini {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed #F0E4D8;
}
.msxme2-card .mini i {
  font-style: normal;
  font-size: 11.5px;
  line-height: 1.3;
  color: #8A8F9C;
}
.msxme2-card .mini i b {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #1C3055;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

/* 403 时一并隐藏新增块 */
body.msxme-forbidden .msxme2-note,
body.msxme-forbidden .msxme2-report { display: none; }

/* ============================================================
   内页（我的题库 / 学情中心）
   ============================================================ */
.msxme2-crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 22px 0 0;
  font-size: 13px;
  color: #8A8F9C;
  text-decoration: none;
}
.msxme2-crumb:hover { color: var(--msx-primary, #E57026); }

.msxme2-page-head { margin: 14px 0 0; }
.msxme2-page-head h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  color: #1C3055;
  letter-spacing: .3px;
}
.msxme2-page-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #6B6F7C;
  max-width: 720px;
}

/* ---------- 四格统计 ---------- */
.msxme2-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
}
.msxme2-stat {
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #EEE8E2;
  box-shadow: 0 2px 10px rgba(30, 40, 70, .04);
}
.msxme2-stat b {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  color: #1C3055;
  font-variant-numeric: tabular-nums;
}
.msxme2-stat span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: #8A8F9C;
}
.msxme2-stat em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: #1E8A68;
}
.msxme2-stat em.warn { color: #C35B18; }

/* ---------- 分段 tab ---------- */
.msxme2-tabs {
  display: flex;
  gap: 6px;
  margin: 26px 0 0;
  padding: 4px;
  border-radius: 12px;
  background: #F6F3EF;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.msxme2-tab {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  color: #7A7F8C;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.msxme2-tab.on {
  background: #fff;
  color: var(--msx-primary, #E57026);
  box-shadow: 0 1px 6px rgba(30, 40, 70, .08);
}
.msxme2-tab:focus-visible {
  outline: 2px solid var(--msx-primary, #E57026);
  outline-offset: 2px;
}

/* ---------- 记录列表 ---------- */
.msxme2-panel { margin: 16px 0 0; }
.msxme2-panel[hidden] { display: none !important; }

.msxme2-list {
  background: #fff;
  border: 1px solid #EEE8E2;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(30, 40, 70, .04);
}
.msxme2-row {
  display: grid;
  grid-template-columns: 1fr 110px 86px 92px;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #F4F0EB;
  font-size: 13.5px;
}
.msxme2-row:last-child { border-bottom: 0; }
.msxme2-row.head {
  background: #FAF7F3;
  font-size: 12px;
  font-weight: 700;
  color: #8A8F9C;
  letter-spacing: .5px;
  padding: 11px 20px;
}
.msxme2-row .t {
  color: #1C3055;
  font-weight: 600;
  line-height: 1.4;
}
.msxme2-row .t small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  color: #A3A8B4;
}
.msxme2-row .m { color: #6B6F7C; font-variant-numeric: tabular-nums; }
.msxme2-ok {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1E8A68;
}
.msxme2-no {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: #D4553B;
}
.msxme2-row .act {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--msx-primary, #E57026);
  text-decoration: none;
  white-space: nowrap;
}
.msxme2-row .act:hover { text-decoration: underline; }

/* ---------- 图表卡 ---------- */
.msxme2-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0 0;
}
.msxme2-panelcard {
  padding: 22px 24px 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #EEE8E2;
  box-shadow: 0 2px 10px rgba(30, 40, 70, .04);
}
.msxme2-panelcard h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #1C3055;
}
.msxme2-panelcard .sub {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: #8A8F9C;
}
.msxme2-donut-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.msxme2-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: #4E5566;
}
.msxme2-legend div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.msxme2-legend i {
  width: 10px; height: 10px;
  border-radius: 3px;
  flex: 0 0 10px;
}
.msxme2-legend b {
  font-variant-numeric: tabular-nums;
  color: #1C3055;
}

/* ---------- 阶段报告 ---------- */
.msxme2-report-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0 0;
}
.msxme2-report-item {
  padding: 16px 18px;
  border-radius: 12px;
  background: #FBF9F6;
  border: 1px solid #F0EAE2;
  font-size: 13.5px;
  line-height: 1.7;
  color: #4E5566;
}
.msxme2-report-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #1C3055;
  font-weight: 800;
}
.msxme2-report-item.good { background: #F4FBF8; border-color: #DCEFE6; }
.msxme2-report-item.warn { background: #FFF7F1; border-color: #F3DCC9; }

/* ---------- 成长地图 ---------- */
.msxme2-timeline {
  margin: 18px 0 0;
  padding: 0 0 0 20px;
  border-left: 2px dashed #F0DCCB;
}
.msxme2-tl-item {
  position: relative;
  padding: 0 0 22px 22px;
}
.msxme2-tl-item:last-child { padding-bottom: 0; }
.msxme2-tl-dot {
  position: absolute;
  left: -29px; top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #D9D5CF;
  box-sizing: border-box;
}
.msxme2-tl-dot.done { background: var(--msx-primary, #E57026); border-color: var(--msx-primary, #E57026); }
.msxme2-tl-dot.now { border-color: var(--msx-primary, #E57026); box-shadow: 0 0 0 4px rgba(229, 112, 38, .14); }
.msxme2-tl-item h4 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: #1C3055;
}
.msxme2-tl-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #7A7F8C;
}
.msxme2-tl-item .when {
  font-size: 12px;
  color: #A3A8B4;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .msxme2-report { grid-template-columns: 1fr; gap: 16px; padding: 24px 22px; }
  .msxme2-report-chart { order: -1; max-width: 340px; margin: 0 auto; }
  .msxme2-chart-grid { grid-template-columns: 1fr; }
  .msxme2-report-list { grid-template-columns: 1fr; }
  .msxme2-stats { grid-template-columns: repeat(2, 1fr); }
  .msxme2-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .msxme2-report h2 { font-size: 19px; }
  .msxme2-kpis b { font-size: 19px; }
  .msxme2-row { grid-template-columns: 1fr auto; gap: 8px; padding: 12px 14px; }
  .msxme2-row.head { padding: 10px 14px; }
  .msxme2-row .m,
  .msxme2-row.head .m { display: none; }
  .msxme2-panelcard { padding: 18px 16px 20px; }
  .msxme2-page-head h2 { font-size: 22px; }
}
