/* 单次提交结果 · 学情反馈共用样式 */
.sr-root { font-size: 13px; color: #e8ecf4; }
.sr-summary {
  background: linear-gradient(145deg, #1e2533 0%, #1a1f2a 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 16px 14px;
  margin-bottom: 14px;
}
.sr-summary-top { display: flex; align-items: flex-start; gap: 12px; }
.sr-emoji {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  background: rgba(255,255,255,0.06);
}
.sr-emoji.great { background: rgba(93,211,158,0.15); }
.sr-emoji.good { background: rgba(91,140,255,0.15); }
.sr-emoji.ok { background: rgba(255,193,7,0.12); }
.sr-emoji.low { background: rgba(255,138,138,0.12); }
.sr-emoji.wait { background: rgba(138,149,168,0.15); }
.sr-title {
  margin: 0 0 4px; font-size: 18px; font-weight: 400; line-height: 1.35;
  font-family: var(--font-kai);
  letter-spacing: 0.02em;
}
.sr-sub { margin: 0; font-size: 12px; color: #8b95a8; line-height: 1.5; }
.sr-rate {
  font-size: 32px; font-weight: 800; letter-spacing: -0.5px;
  margin: 12px 0 4px; color: #7ee2b4;
}
.sr-rate-num { font-family: var(--font-display); }
.sr-rate small { font-size: 13px; font-weight: 600; color: #8b95a8; margin-left: 6px; }
.sr-rate.na { font-size: 16px; color: #ffd666; font-weight: 700; }
.sr-pending-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #ffd666;
  font-weight: 600;
  line-height: 1.45;
}
/* 图标化统计：对 / 错 / 待 */
.sr-stat-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 10px 0 6px;
}
.sr-stat {
  display: inline-flex; align-items: center; gap: 5px;
  min-width: 52px; padding: 5px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.sr-stat i { font-style: normal; font-size: 12px; opacity: 0.9; }
.sr-stat.ok { color: #7ee2b4; border-color: rgba(93,211,158,0.28); background: rgba(93,211,158,0.1); }
.sr-stat.bad { color: #ff8a8a; border-color: rgba(229,92,92,0.28); background: rgba(229,92,92,0.1); }
.sr-stat.pend { color: #ffd666; border-color: rgba(201,162,39,0.3); background: rgba(201,162,39,0.1); }
.sr-meta-row {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-bottom: 2px;
}
.sr-meta-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: #9aa6bd;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.sr-meta-chip.teacher {
  color: #c5d6ff;
  border-color: rgba(91,140,255,0.35);
  background: rgba(91,140,255,0.12);
  font-weight: 600;
}
.sr-ans-k {
  display: inline-block; min-width: 2.2em; margin-right: 6px;
  font-size: 11px; font-weight: 600; color: #6b7588;
}
.sr-bar {
  display: flex; height: 8px; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,0.06); margin-top: 12px;
}
.sr-bar > i { display: block; height: 100%; min-width: 0; }
.sr-bar .ok { background: #5dd39e; }
.sr-bar .bad { background: #e55c5c; }
.sr-bar .pend { background: #c9a227; }

.sr-filters {
  display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
}
.sr-filter {
  border: 1px solid rgba(255,255,255,0.1); background: transparent;
  color: #9aa6bd; border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer;
}
.sr-filter.active {
  background: rgba(91,140,255,0.18); border-color: rgba(91,140,255,0.4); color: #c5d6ff; font-weight: 600;
}

.sr-section { margin-bottom: 14px; }
.sr-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; cursor: pointer; user-select: none;
}
.sr-section-head h3 { margin: 0; font-size: 13px; font-weight: 700; color: #c8d0e0; }
.sr-section-head .sr-toggle { font-size: 11px; color: #6b7588; }

.sr-item {
  background: #1a1f2a; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 8px;
}
.sr-item.bad { border-color: rgba(229,92,92,0.25); }
.sr-item.unmatched { border-color: rgba(201,162,39,0.3); }
.sr-item.pending { border-color: rgba(138,149,168,0.2); }
.sr-item.ok { border-color: rgba(93,211,158,0.15); opacity: 0.92; }
.sr-item-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.sr-badge {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
}
.sr-badge.ok { background: rgba(93,211,158,0.15); color: #7ee2b4; }
.sr-badge.bad { background: rgba(229,92,92,0.15); color: #ff8a8a; }
.sr-badge.unmatched { background: rgba(201,162,39,0.15); color: #ffd666; }
.sr-badge.pending { background: rgba(138,149,168,0.15); color: #9aa6bd; }
.sr-stem { font-size: 12px; color: #aeb8c9; line-height: 1.5; margin: 6px 0; }
.sr-ans-row { font-size: 12px; color: #dce4f3; line-height: 1.55; }
.sr-ans-row b { color: #fff; }
.sr-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sr-imgs img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}
.sr-actions { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.sr-actions button {
  border: 1px solid rgba(255,255,255,0.12); background: #2a3140; color: #dce4f3;
  border-radius: 8px; padding: 5px 10px; font-size: 11px; cursor: pointer;
}
.sr-actions button.danger { color: #ff8a8a; border-color: rgba(255,138,138,0.25); }
.sr-actions a.sr-watch {
  display: inline-block; text-decoration: none;
  border: 1px solid rgba(91,140,255,0.4); background: rgba(91,140,255,0.15);
  color: #c5d6ff; border-radius: 8px; padding: 5px 10px; font-size: 11px;
}
.sr-empty { text-align: center; padding: 20px; color: #6b7588; font-size: 13px; }

/* 05-A 视觉 AI */
.sr-vision-bar {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 11px; color: #9aa6bd;
}
.sr-vision-bar.muted { color: #6b7588; }
.sr-vision-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-ai {
  margin-top: 8px; padding: 8px 10px; border-radius: 8px;
  background: rgba(91,140,255,0.08); border: 1px solid rgba(91,140,255,0.18);
  font-size: 11px; line-height: 1.5;
}
.sr-ai-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px; margin-right: 4px;
}
.sr-ai-badge.ok { background: rgba(93,211,158,0.18); color: #7ee2b4; }
.sr-ai-badge.bad { background: rgba(229,92,92,0.18); color: #ff8a8a; }
.sr-ai-badge.wait { background: rgba(91,140,255,0.15); color: #a8c0ff; }
.sr-ai-badge.fail { background: rgba(255,138,138,0.12); color: #ff8a8a; }
.sr-ai-badge.applied { background: rgba(255,255,255,0.08); color: #8b95a8; }
.sr-ai-line { color: #c8d0e0; margin-top: 4px; }
.sr-ai-err { color: #ff8a8a; font-size: 10px; }
.sr-ai-apply {
  border: 1px solid rgba(91,140,255,0.4) !important;
  background: rgba(91,140,255,0.2) !important;
  color: #c5d6ff !important;
}

/* 学情图表 */
.an-grid { display: grid; gap: 12px; margin-bottom: 16px; }
@media (min-width: 720px) {
  .an-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .an-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.an-card {
  background: #1a1f2a; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 14px;
}
.an-card h4 { margin: 0 0 8px; font-size: 12px; color: #8b95a8; font-weight: 600; }
.an-big { font-size: 24px; font-weight: 800; color: #e8ecf4; }
.an-big.up { color: #7ee2b4; }
.an-big.down { color: #ff8a8a; }
.an-hint { font-size: 11px; color: #6b7588; margin-top: 4px; line-height: 1.4; }
.an-chart { width: 100%; height: 160px; }
.an-chart svg { width: 100%; height: 100%; display: block; }
.an-seg { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 11px; color: #9aa6bd; }
.an-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }

.wrong-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.wrong-table th, .wrong-table td {
  padding: 8px 10px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.wrong-table th { color: #8b95a8; font-weight: 600; font-size: 11px; }
.tag-streak {
  display: inline-block; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 700;
  background: rgba(229,92,92,0.15); color: #ff8a8a; margin-left: 4px;
}
.tag-streak.hot { background: rgba(229,92,92,0.28); }
.tag-mastered {
  display: inline-block; padding: 1px 6px; border-radius: 999px; font-size: 10px;
  background: rgba(93,211,158,0.15); color: #7ee2b4; margin-left: 4px;
}

/* ════ 精修层：图标 / 动效 / lightbox ════ */

.sr-svg { width: 1.15em; height: 1.15em; vertical-align: -0.22em; flex-shrink: 0; }
.sr-emoji .sr-svg { width: 24px; height: 24px; }
.sr-emoji.great .sr-svg, .sr-emoji.low .sr-svg { animation: srIconPop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes srIconPop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.sr-badge { display: inline-flex; align-items: center; gap: 3px; }
.sr-badge .sr-svg { width: 12px; height: 12px; vertical-align: -0.15em; }
.sr-stat { display: inline-flex; }
.sr-stat i { display: inline-flex; font-style: normal; }
.sr-stat .sr-svg { width: 13px; height: 13px; }
.sr-meta-chip { display: inline-flex; }
.sr-meta-chip .sr-svg { width: 12px; height: 12px; }

/* 三色条展开 */
.sr-bar > i { width: 0; transition: width .7s cubic-bezier(.22,1,.36,1); }

/* 题卡：左色条 + 入场 stagger */
.sr-item { position: relative; overflow: hidden; animation: srItemIn .32s cubic-bezier(.22,1,.36,1) backwards; }
.sr-item::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: transparent;
}
.sr-item.bad::before { background: #e55c5c; }
.sr-item.unmatched::before, .sr-item.pending::before { background: #c9a227; }
.sr-item.ok::before { background: #5dd39e; }
.sr-item:nth-child(1) { animation-delay: .02s; }
.sr-item:nth-child(2) { animation-delay: .06s; }
.sr-item:nth-child(3) { animation-delay: .1s; }
.sr-item:nth-child(4) { animation-delay: .14s; }
.sr-item:nth-child(5) { animation-delay: .18s; }
.sr-item:nth-child(n+6) { animation-delay: .22s; }
@keyframes srItemIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* 已掌握折叠：箭头旋转 */
.sr-toggle { display: inline-flex; align-items: center; gap: 2px; }
.sr-toggle .sr-chev { width: 13px; height: 13px; transition: transform .25s; }
.sr-section-head.is-open .sr-chev { transform: rotate(90deg); }

/* 空态升级 */
.sr-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 26px 16px; border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.14);
}
.sr-empty::before {
  content: ''; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(93,211,158,0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235dd39e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* 卷面图查看器（主题无关的暗色浮层） */
.sr-lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10, 12, 16, 0.9);
  display: flex; align-items: center; justify-content: center;
  animation: srFadeIn .2s;
  cursor: zoom-out;
}
@keyframes srFadeIn { from { opacity: 0; } }
.sr-lightbox-stage { max-width: 92vw; max-height: 86vh; display: flex; align-items: center; justify-content: center; }
.sr-lightbox-stage img {
  max-width: 92vw; max-height: 86vh; border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.5);
}
.sr-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(20,24,32,0.8);
  color: #e8ecf4; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.sr-lightbox-nav .sr-svg { width: 18px; height: 18px; }
.sr-lightbox-nav:hover { background: rgba(40,48,64,0.9); }
.sr-lightbox-nav.prev { left: 10px; }
.sr-lightbox-nav.next { right: 10px; }
.sr-lightbox-nav.next .sr-svg { transform: rotate(180deg); }
.sr-lightbox-count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: #c8d0e0; font-size: 12px; background: rgba(20,24,32,0.7);
  padding: 4px 12px; border-radius: 999px;
}
.sr-lightbox-close {
  position: absolute; top: 12px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18); background: rgba(20,24,32,0.8);
  color: #e8ecf4; font-size: 20px; cursor: pointer; padding: 0; line-height: 1;
}
