/* ==========================================================================
   课序 · 经营分析
   ========================================================================== */
.ana-generated {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.ana-highlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  padding: 26px 30px;
  margin: 4px 0 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #f8f9ff;
  background:
    radial-gradient(520px 200px at 90% -10%, rgba(129, 140, 248, 0.38), transparent 62%),
    radial-gradient(420px 220px at 0% 120%, rgba(14, 165, 233, 0.22), transparent 60%),
    linear-gradient(120deg, #1d1b46, #272363 55%, #1b1a3d);
  box-shadow: 0 22px 48px -30px rgba(35, 32, 90, 0.75);
}
.ana-highlight::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(199, 210, 254, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(199, 210, 254, 0.04), 0 0 0 72px rgba(199, 210, 254, 0.025);
  pointer-events: none;
}
.ana-highlight-main { position: relative; z-index: 1; }
.ana-highlight-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b9c0e8;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.ana-highlight-number {
  margin: 8px 0 4px;
  font-size: 38px;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.ana-highlight-trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  font-size: 11.5px;
  font-weight: 600;
  color: #a7f3d0;
}
.ana-highlight-trend.down { color: #fecaca; }
.ana-highlight-trend.flat { color: #c7cbe8; }
.ana-highlight-trend span { color: #9aa0ce; font-weight: 500; margin-left: 6px; }
.ana-highlight-side {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
}
.ana-highlight-cell {
  padding: 12px 14px;
  border: 1px solid rgba(199, 210, 254, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(3px);
}
.ana-highlight-cell span { display: block; color: #b6bce4; font-size: 10.5px; font-weight: 500; }
.ana-highlight-cell b { display: block; margin-top: 6px; font-size: 21px; line-height: 1.1; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.ana-highlight-cell small { display: block; margin-top: 3px; color: #9aa0ce; font-size: 10px; }

.ana-stats { margin-bottom: 18px; }
.ana-main {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  margin-bottom: 18px;
}
.ana-chart-card { min-width: 0; }
.ana-chart-total {
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ana-chart-wrap { padding: 6px 4px 0; }
.ana-chart { display: block; width: 100%; height: auto; overflow: visible; }
.ana-grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.ana-axis-text { fill: var(--muted-2); font-size: 11px; font-weight: 500; }
.ana-axis-text.is-current { fill: var(--primary); font-weight: 700; }
.ana-bar { fill: url(#anaBar); opacity: 0.75; transition: opacity 0.18s ease; }
.ana-bar.is-current { opacity: 1; }
.ana-bar-group:hover .ana-bar { opacity: 1; }
.ana-bar-value { fill: var(--ink-2); font-size: 10.5px; font-weight: 600; }

.ana-health-card { display: flex; flex-direction: column; }
.ana-health-row { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.ana-health-row:last-of-type { border-bottom: 0; }
.ana-health-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.ana-health-head b { font-size: 15px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ana-health-track { height: 6px; margin-top: 7px; border-radius: 10px; background: var(--surface-mute); overflow: hidden; }
.ana-health-track i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.ana-health-track i.amber { background: var(--amber); }
.ana-health-track i.red { background: var(--red); }
.ana-health-hint { margin-top: 5px; color: var(--muted-2); font-size: 10.5px; }
.ana-health-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 600;
}

.ana-second {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  margin-bottom: 18px;
}
.ana-fill-list { display: grid; gap: 3px; }
.ana-fill-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 16px;
  padding: 10px 8px;
  border-radius: 10px;
  color: inherit;
  transition: background 0.15s ease;
}
.ana-fill-item:hover { background: var(--surface-soft); }
.ana-fill-main { min-width: 0; }
.ana-fill-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 650; }
.ana-fill-main span { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10.5px; }
.ana-fill-meta { display: flex; align-items: baseline; gap: 9px; color: var(--muted); font-size: 10.5px; }
.ana-fill-meta b { color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.ana-fill-meta b.full { color: var(--red); }
.ana-fill-track { grid-column: 1 / -1; height: 5px; border-radius: 8px; background: var(--surface-mute); overflow: hidden; }
.ana-fill-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #818cf8, #4f46e5); }

.ana-risk-list { display: grid; gap: 2px; }
.ana-risk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 10px;
  color: inherit;
  transition: background 0.15s ease;
}
.ana-risk-item:hover { background: var(--surface-soft); }
.ana-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}
.ana-risk-main { min-width: 0; flex: 1; }
.ana-risk-main strong { display: block; font-size: 12px; font-weight: 650; }
.ana-risk-main strong small { margin-left: 4px; color: var(--muted); font-size: 10px; font-weight: 500; }
.ana-risk-reasons { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ana-risk-reasons span { padding: 1px 6px; border-radius: 5px; background: var(--red-soft); color: #b91c1c; font-size: 9.5px; font-weight: 500; }
.ana-risk-arrow { color: var(--muted-2); flex: 0 0 auto; }

.ana-teacher-card { margin-bottom: 4px; }
.ana-teacher { display: flex; align-items: center; gap: 8px; }
.ana-rate { color: var(--muted); font-variant-numeric: tabular-nums; }
.ana-rate.good { color: var(--green); font-weight: 650; }
.ana-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ana-table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px 2px;
  color: var(--muted);
  font-size: 10.5px;
}
.ana-table-foot a { display: inline-flex; align-items: center; gap: 3px; color: var(--primary); font-size: 11.5px; font-weight: 600; }

@media (max-width: 1080px) {
  .ana-highlight { grid-template-columns: 1fr; gap: 16px; padding: 22px 24px; }
  .ana-highlight-number { font-size: 32px; }
  .ana-main, .ana-second { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ana-highlight { padding: 18px; border-radius: var(--radius); }
  .ana-highlight-number { font-size: 28px; }
  .ana-highlight-side { grid-template-columns: 1fr; gap: 8px; }
  .ana-highlight-cell { padding: 9px 12px; }
  .ana-highlight-cell b { margin-top: 2px; font-size: 18px; }
  .ana-generated { display: none; }
  .ana-chart-wrap { overflow-x: auto; }
  .ana-chart { min-width: 540px; }
  .ana-teacher-card .table-wrap { overflow-x: auto; }
}
