/* ===== 错题本页面（与 APP 设计系统统一） ===== */
.wrongbook-page {
  padding: 0 var(--gc-content-pad) 80px;
}

/* ===== 顶部栏（与 shop-top-bar / achievement-top-bar 一致） ===== */
.wrongbook-top-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 calc(var(--gc-content-pad) * -1);
  padding: 12px var(--gc-content-pad);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gc-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gc-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  transition: transform 0.1s;
  color: var(--gc-foreground);
}
.icon-btn:active { transform: scale(0.9); }
.wrongbook-title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wrongbook-title-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gc-danger), #DC2626);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(239,68,68,0.25);
}
.wrongbook-title-main {
  font-size: 14px;
  font-weight: 700;
  color: var(--gc-foreground);
}
.wrongbook-title-sub {
  font-size: 11px;
  color: var(--gc-muted-foreground);
  margin-top: 1px;
}
.wrongbook-clear-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: rgba(239,68,68,0.1);
  color: var(--gc-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.wrongbook-clear-btn:active { background: rgba(239,68,68,0.2); }

/* ===== Tabs（Segmented 风格，与 achievement-tabs 一致） ===== */
.wrongbook-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--gc-card);
  border-radius: var(--gc-radius-md);
  padding: 6px;
  box-shadow: var(--gc-shadow-sm);
  margin: 16px 0 8px;
  border: 1px solid var(--gc-border);
}

/* ===== 学科筛选 chips（横向滚动，与 shop-category-tabs 风格统一） ===== */
.wb-subject-filter {
  display: flex;
  gap: 8px;
  padding: 4px 2px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.wb-subject-filter::-webkit-scrollbar { display: none; }
.wb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--gc-border);
  background: var(--gc-card);
  color: var(--gc-muted-foreground);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
}
.wb-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wb-chip.active {
  background: linear-gradient(135deg, rgba(79,140,255,0.1), rgba(124,58,237,0.1));
  color: var(--gc-primary);
  border-color: rgba(79,140,255,0.35);
  box-shadow: 0 2px 10px rgba(79,140,255,0.15);
  font-weight: 700;
}
.wb-chip-count {
  background: rgba(0,0,0,0.08);
  color: inherit;
  padding: 0 7px;
  height: 17px;
  min-width: 17px;
  line-height: 17px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.wb-chip.active .wb-chip-count {
  background: var(--gc-primary);
  color: white;
}
.wrongbook-tab {
  padding: 10px 4px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gc-muted-foreground);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.wrongbook-tab.active {
  color: var(--gc-danger);
  font-weight: 700;
  background: rgba(239,68,68,0.1);
  box-shadow: 0 2px 8px rgba(239,68,68,0.12);
}
.tab-count {
  background: rgba(0,0,0,0.06);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  color: inherit;
}
.wrongbook-tab.active .tab-count {
  background: var(--gc-danger);
  color: white;
}

/* ===== 错题概览横幅（3栏统计，与 stats-row 风格一致） ===== */
.wb-overview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #FFF1F2 0%, #FECDD3 100%);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--gc-radius-md);
  padding: 14px 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(239,68,68,0.08);
}
.wb-overview-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  min-width: 0;
}
.wb-overview-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wb-overview-icon.red {
  background: rgba(239,68,68,0.15);
  color: var(--gc-danger);
}
.wb-overview-icon.green {
  background: rgba(34,197,94,0.15);
  color: var(--gc-success);
}
.wb-overview-icon.gold {
  background: rgba(245,158,11,0.15);
  color: var(--gc-warning);
}
.wb-overview-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wb-overview-num {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.wb-overview-item:nth-child(1) .wb-overview-num { color: var(--gc-danger); }
.wb-overview-item:nth-child(2) .wb-overview-num { color: var(--gc-success); }
.wb-overview-item:nth-child(3) .wb-overview-num { color: var(--gc-warning); }
.wb-overview-label {
  font-size: 10px;
  color: #991B1B;
  font-weight: 600;
  margin-top: 3px;
}
.wb-overview-divider {
  width: 1px;
  height: 28px;
  background: rgba(239,68,68,0.2);
  flex-shrink: 0;
}

/* ===== 一键重做操作栏 ===== */
.wb-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: var(--gc-radius-md);
  padding: 10px 14px;
  margin-bottom: 4px;
}
.wb-action-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #92400E;
}
.wb-action-info i { color: #D97706; }
.wb-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(245,158,11,0.35);
  transition: transform 0.1s;
}
.wb-action-btn:active { transform: scale(0.95); }

/* ===== 批量重做进度条 ===== */
.wb-batch-progress {
  background: var(--gc-card);
  border: 1px solid var(--gc-border);
  border-radius: var(--gc-radius-sm);
  padding: 10px 14px;
  margin-bottom: 8px;
  animation: wbBatchFadeIn 0.3s ease;
}
@keyframes wbBatchFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.wb-batch-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--gc-foreground);
  margin-bottom: 6px;
}
#wb-batch-coin { color: #D97706; }
.wb-batch-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--gc-muted);
  overflow: hidden;
}
.wb-batch-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #34D399, #10B981);
  transition: width 0.4s ease;
}

/* ===== 错题卡片（v3 信息层级 + 学科图标 + 进度金币条） ===== */
.wrongbook-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 日期分组标题 */
.wb-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 4px 6px;
}
.wb-group-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gc-primary);
  flex-shrink: 0;
}
.wb-group-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--gc-foreground);
}
.wb-group-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--gc-muted-foreground);
  background: var(--gc-muted);
  padding: 2px 8px;
  border-radius: 999px;
}
.wb-group-header:not(:first-child) {
  margin-top: 4px;
}
.wb-item {
  position: relative;
  background: var(--gc-card);
  border-radius: var(--gc-radius-md);
  padding: 0;
  box-shadow: var(--gc-shadow-sm);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid var(--gc-border);
}
.wb-item:active {
  transform: scale(0.985);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.wb-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gc-danger);
}
.wb-item.is-resolved::before { background: var(--gc-success); }
.wb-item.is-resolved { opacity: 0.92; }
.wb-item > * { padding-left: 14px; padding-right: 14px; }
.wb-item > *:first-child { padding-top: 12px; }
.wb-item > *:last-child { padding-bottom: 12px; }

/* --- 头部：序号+学科图标 / 标题行 / 正确答案角标 --- */
.wb-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--gc-border);
}
.wb-item-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.wb-item-idx-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.wb-item-idx {
  font-size: 10px;
  font-weight: 800;
  color: var(--gc-muted-foreground);
  line-height: 1;
  min-width: 32px;
  text-align: center;
  padding: 2px 0;
  border-bottom: 1px solid var(--gc-border);
}
.wb-item-subj-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.wb-item-subj-icon.subj-bg-math    { background: linear-gradient(135deg, #4F8CFF, #3B6FD9); }
.wb-item-subj-icon.subj-bg-chinese { background: linear-gradient(135deg, #F97316, #EA580C); }
.wb-item-subj-icon.subj-bg-english { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.wb-item-head-text { flex: 1; min-width: 0; }
.wb-item-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}
.wb-item-subj {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  color: white;
}
.wb-item-subj.subj-math    { background: var(--gc-math); }
.wb-item-subj.subj-chinese { background: var(--gc-chinese); }
.wb-item-subj.subj-english { background: var(--gc-english); }
.wb-item-grade {
  font-size: 10px;
  color: var(--gc-muted-foreground);
  font-weight: 600;
}
.wb-item-source-row {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--gc-muted-foreground);
  flex-wrap: wrap;
}
.wb-item-source-row i { opacity: 0.6; flex-shrink: 0; }
.wb-item-source { font-weight: 500; }
.wb-item-date { opacity: 0.7; }
.wb-item-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.wb-correct-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(34,197,94,0.12);
  color: var(--gc-success);
  border: 1px solid rgba(34,197,94,0.2);
}
.wb-status {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.wb-status.unresolved {
  background: rgba(239,68,68,0.1);
  color: var(--gc-danger);
}
.wb-status.resolved {
  background: rgba(34,197,94,0.1);
  color: var(--gc-success);
}

/* --- 题目区：Q 标记 + 题干 --- */
.wb-item-q {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gc-foreground);
  margin-top: 10px;
  margin-bottom: 10px;
  line-height: 1.55;
  background: var(--gc-muted);
  padding: 10px 12px;
  border-radius: var(--gc-radius-sm);
  margin-left: 14px;
  margin-right: 14px;
}
.wb-q-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--gc-danger), #DC2626);
  color: white;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- 答案对比区 --- */
.wb-item-ans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-bottom: 10px;
}
.wb-ans-row {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border-radius: var(--gc-radius-sm);
  font-size: 12px;
}
.wb-ans-row.wrong {
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.18);
}
.wb-ans-row.right {
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.18);
}
.wb-ans-label {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--gc-muted-foreground);
  margin-bottom: 4px;
  font-weight: 600;
}
.wb-ans-val {
  font-weight: 700;
  word-break: break-all;
  font-size: 13px;
}
.wb-ans-row.wrong .wb-ans-val { color: var(--gc-danger); }
.wb-ans-row.right .wb-ans-val { color: var(--gc-success); }

/* --- 金币归还条（图标 + 文案 + 进度条） --- */
.wb-item-coin {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #B45309;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(245,158,11,0.1), rgba(245,158,11,0.04));
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(245,158,11,0.18);
}
.wb-coin-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: white;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(245,158,11,0.3);
}
.wb-coin-text {
  flex: 1;
  min-width: 0;
}
.wb-coin-text b {
  color: #D97706;
  font-size: 13px;
}
.wb-coin-bar {
  width: 50px;
  height: 6px;
  border-radius: 3px;
  background: rgba(245,158,11,0.15);
  overflow: hidden;
  flex-shrink: 0;
}
.wb-coin-bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #FBBF24, #F59E0B);
  transition: width 0.4s ease;
}

/* --- 底部操作区 --- */
.wb-item-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px dashed var(--gc-border);
}
.wb-item-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s;
}
.wb-item-btn:active { transform: scale(0.95); }
.wb-item-btn.redo {
  background: linear-gradient(135deg, var(--gc-danger), #DC2626);
  color: white;
  box-shadow: 0 3px 10px rgba(239,68,68,0.28);
}
.wb-item-btn.remove {
  background: rgba(239,68,68,0.1);
  color: var(--gc-danger);
  border: 1px solid rgba(239,68,68,0.15);
}

/* ===== 空状态（插画级） ===== */
.wrongbook-empty {
  text-align: center;
  padding: 60px 20px;
}
.wrongbook-empty-illustration {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}
.wrongbook-empty-emoji {
  font-size: 72px;
  animation: monster-bounce 2s ease-in-out infinite;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.1));
}
.wrongbook-empty-sparkle {
  position: absolute;
  font-size: 20px;
  animation: sparkleFloat 2.5s ease-in-out infinite;
}
.wrongbook-empty-sparkle.s1 { top: -8px; left: -16px; animation-delay: 0s; }
.wrongbook-empty-sparkle.s2 { top: 10px; right: -20px; font-size: 24px; animation-delay: 0.5s; }
.wrongbook-empty-sparkle.s3 { bottom: -4px; left: 50%; margin-left: 30px; animation-delay: 1s; }
@keyframes sparkleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-10px) scale(1.2); opacity: 0.6; }
}
.wrongbook-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gc-foreground);
  margin-bottom: 6px;
}
.wrongbook-empty-desc {
  font-size: 13px;
  color: var(--gc-muted-foreground);
  margin-bottom: 20px;
}
.wrongbook-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gc-primary), #3B6FD9);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79,140,255,0.3);
}

/* ===== 重做弹窗（与 daily 答题页风格统一） ===== */
.redo-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: redoFadeIn 0.2s ease;
}
.redo-modal {
  background: var(--gc-card);
  border-radius: var(--gc-radius-lg);
  width: 100%;
  max-width: 420px;
  padding: 20px;
  max-height: 90vh;
  overflow-y: auto;
  animation: redoSlideUp 0.25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
@keyframes redoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes redoSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.redo-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.redo-modal-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--gc-foreground);
}
.redo-modal-subj {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  color: white;
}
.redo-modal-subj.subj-math    { background: var(--gc-math); }
.redo-modal-subj.subj-chinese { background: var(--gc-chinese); }
.redo-modal-subj.subj-english { background: var(--gc-english); }
.redo-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--gc-muted);
  color: var(--gc-muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.redo-modal-q {
  background: var(--gc-muted);
  padding: 16px;
  border-radius: var(--gc-radius-md);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--gc-foreground);
  margin-bottom: 14px;
}
.redo-modal-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
/* 选项按钮：与 daily-ans-btn 风格统一 */
.redo-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 2px solid var(--gc-border);
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-radius: var(--gc-radius-md);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}
.redo-option.selected {
  border-color: var(--gc-primary);
  background: linear-gradient(180deg, #EFF6FF 0%, #DBEAFE 100%);
  color: var(--gc-primary);
  box-shadow: 0 4px 16px rgba(79,140,255,0.2);
  transform: translateY(-2px);
}
.redo-option.correct {
  border-color: var(--gc-success);
  background: linear-gradient(180deg, #DCFCE7 0%, #BBF7D0 100%);
  color: #15803D;
}
.redo-option.wrong {
  border-color: var(--gc-danger);
  background: linear-gradient(180deg, #FEE2E2 0%, #FECACA 100%);
  color: #DC2626;
}
.redo-option-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gc-muted);
  color: var(--gc-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.redo-option.selected .redo-option-letter {
  background: var(--gc-primary);
  color: white;
}
.redo-option.correct .redo-option-letter {
  background: var(--gc-success);
  color: white;
}
.redo-option.wrong .redo-option-letter {
  background: var(--gc-danger);
  color: white;
}
.redo-option-text {
  font-size: 15px;
  font-weight: 700;
  color: inherit;
}
.redo-modal-foot {
  display: flex;
  gap: 8px;
}
.redo-modal-voice {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid var(--gc-border);
  background: var(--gc-card);
  border-radius: var(--gc-radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--gc-foreground);
  cursor: pointer;
}
.redo-modal-submit {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--gc-radius-md);
  background: linear-gradient(135deg, var(--gc-danger), #DC2626);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239,68,68,0.25);
  transition: transform 0.1s;
}
.redo-modal-submit:active { transform: scale(0.97); }
.redo-modal-submit:disabled {
  background: var(--gc-border);
  color: var(--gc-muted-foreground);
  cursor: not-allowed;
  box-shadow: none;
}
.redo-modal-hint {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(245,158,11,0.08);
  border-radius: var(--gc-radius-sm);
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: #92400E;
}

/* ===== 重做弹窗：批量模式 + 结果反馈 ===== */
.redo-modal-batch-info {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #6366F1;
  background: rgba(99,102,241,0.08);
  padding: 5px 12px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 12px;
  border: 1px solid rgba(99,102,241,0.15);
}
.redo-modal-batch-info i { color: #818CF8; }

.redo-result-correct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: var(--gc-radius-md);
  background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
  color: #15803D;
  font-size: 16px;
  font-weight: 800;
  animation: redoResultPop 0.4s ease;
}
.redo-result-coin {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FBBF24, #F59E0B);
  color: white;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}
.redo-result-wrong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: var(--gc-radius-md);
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
  color: #DC2626;
  font-size: 16px;
  font-weight: 800;
  animation: redoResultShake 0.4s ease;
}
@keyframes redoResultPop {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes redoResultShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.redo-modal-next-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--gc-radius-md);
  background: linear-gradient(135deg, var(--gc-primary), #3B6FD9);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79,140,255,0.3);
  transition: transform 0.1s;
  animation: redoResultPop 0.4s ease;
}
.redo-modal-next-btn:active { transform: scale(0.97); }

/* ===== 删除/清空 确认警告弹窗 ===== */
.wb-confirm-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: wbConfirmFade 0.2s ease;
}
@keyframes wbConfirmFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.wb-confirm-dialog {
  background: var(--gc-card);
  border-radius: var(--gc-radius-lg);
  width: 100%;
  max-width: 340px;
  padding: 28px 24px 20px;
  text-align: center;
  animation: wbConfirmPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
@keyframes wbConfirmPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.wb-confirm-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.wb-confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
  color: var(--gc-danger);
  box-shadow: 0 4px 16px rgba(239,68,68,0.2);
  animation: wbIconPulse 1.5s ease-in-out infinite;
}
@keyframes wbIconPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(239,68,68,0.2); }
  50% { box-shadow: 0 4px 24px rgba(239,68,68,0.4); }
}
.wb-confirm-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--gc-foreground);
  margin-bottom: 8px;
}
.wb-confirm-desc {
  font-size: 13px;
  color: var(--gc-muted-foreground);
  line-height: 1.6;
  margin-bottom: 22px;
}
.wb-confirm-actions {
  display: flex;
  gap: 10px;
}
.wb-confirm-cancel,
.wb-confirm-ok {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--gc-radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s;
}
.wb-confirm-cancel {
  background: var(--gc-muted);
  color: var(--gc-muted-foreground);
}
.wb-confirm-cancel:active { transform: scale(0.96); }
.wb-confirm-ok {
  background: linear-gradient(135deg, var(--gc-danger), #DC2626);
  color: white;
  box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}
.wb-confirm-ok:active { transform: scale(0.96); }
