/* ===== 毛玻璃卡片通用样式 ===== */
.glass-card {
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-radius: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.glass-card:active {
  transform: scale(0.98);
}

/* ===== 首页头部 ===== */
.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  padding-top: calc(var(--safe-top) + 8px);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  border-bottom: 1px solid rgba(219, 226, 236, 0.8);
}

.home-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-greeting {
  display: flex;
  flex-direction: column;
}

.greeting-time {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

.greeting-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.home-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.header-icon-btn .icon {
  font-size: 18px;
}

.header-icon-btn .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 2px solid white;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

/* ===== 首页内容 ===== */
.home-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  padding-left: calc(16px + var(--safe-left));
  padding-right: calc(16px + var(--safe-right));
}

/* ===== 考试倒计时卡片 ===== */
.countdown-card {
  background:
    radial-gradient(ellipse at 90% 10%, rgba(100, 180, 255, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(60, 130, 245, 0.15) 0%, transparent 40%),
    linear-gradient(135deg, #1a56db 0%, #2563eb 40%, #3b82f6 100%);
  border-radius: 22px;
  padding: 22px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  box-shadow:
    0 2px 4px rgba(26, 86, 219, 0.08),
    0 8px 24px rgba(37, 99, 235, 0.18),
    0 20px 48px rgba(59, 130, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: liftIn 0.46s 0.05s ease both;
}

.countdown-card .card-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.countdown-card::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  top: -60px;
  right: -40px;
  pointer-events: none;
}

.countdown-left {
  position: relative;
  z-index: 1;
}

.countdown-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.countdown-days {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.countdown-num {
  font-size: 52px;
  font-weight: 800;
  color: white;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  letter-spacing: -1px;
}

.countdown-unit {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.countdown-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.countdown-right {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.countdown-progress {
  width: 72px;
  height: 72px;
  position: relative;
}

.countdown-progress svg {
  width: 100%;
  height: 100%;
}

.progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.countdown-label-sm {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== 每日目标 ===== */
.daily-goal-card {
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  animation: liftIn 0.46s 0.1s ease both;
}

.daily-goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.daily-goal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.daily-goal-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.daily-goal-progress {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 20px;
}

.daily-goal-add {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #007aff, #4da3ff);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
  line-height: 1;
  padding: 0;
}

.daily-goal-add:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.daily-goal-add:active {
  transform: scale(0.9);
}

.daily-goal-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 空状态 */
.daily-goal-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 8px;
}

.goal-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.goal-empty-text {
  font-size: 13px;
  color: var(--text-muted, #9ca3af);
}

/* 目标条目 */
.goal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(242, 246, 251, 0.6);
  border-radius: 12px;
  transition: background 0.3s, opacity 0.3s, transform 0.3s;
  animation: goalSlideIn 0.35s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

@keyframes goalSlideIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.goal-item.completed {
  background: rgba(234, 248, 239, 0.6);
}

/* 删除动画 */
.goal-item.removing {
  opacity: 0;
  transform: translateX(30px) scale(0.95);
}

/* 打勾动画（进行中） */
.goal-item.completing {
  background: rgba(234, 248, 239, 0.9);
}

/* 勾选圆圈 */
.goal-check {
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.goal-check-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(219, 226, 236, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
  position: relative;
}

.goal-check-circle:active {
  transform: scale(0.85);
}

.goal-check-svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.2s;
}

.goal-check-path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

/* 完成状态 */
.goal-item.completed .goal-check-circle {
  background: #34c759;
  border-color: #34c759;
}

.goal-item.completed .goal-check-svg {
  opacity: 1;
  color: #fff;
}

.goal-item.completed .goal-check-path {
  stroke-dashoffset: 0;
}

/* 打勾动画进行中 */
.goal-item.completing .goal-check-circle {
  animation: checkBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.goal-item.completing .goal-check-svg {
  opacity: 1;
}

.goal-item.completing .goal-check-path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.3s 0.08s cubic-bezier(0.65, 0, 0.35, 1);
}

/* 目标文字 */
.goal-text {
  flex: 1;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

/* 划线动画 */
.goal-text::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1.5px;
  background: var(--muted, #6b7280);
  transition: width 0.4s cubic-bezier(0.2, 0.85, 0.2, 1);
}

.goal-item.completed .goal-text {
  color: var(--muted);
}

.goal-item.completed .goal-text::after {
  width: 100%;
}

.goal-item.completing .goal-text {
  color: var(--muted);
}

.goal-item.completing .goal-text::after {
  width: 100%;
  transition: width 0.4s 0.15s cubic-bezier(0.2, 0.85, 0.2, 1);
}

/* 删除按钮 */
.goal-delete {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #ccc;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  opacity: 0;
}

.goal-item:hover .goal-delete {
  opacity: 1;
}

/* 移动端始终显示 */
@media (hover: none) {
  .goal-delete {
    opacity: 0.5;
  }
}

.goal-delete:hover {
  background: rgba(255, 59, 48, 0.1);
  color: #ff3b30;
}

/* ===== 添加目标弹窗 ===== */
.goal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.goal-overlay.show {
  background: rgba(0, 0, 0, 0.4);
}

.goal-modal {
  width: 90%;
  max-width: 380px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s;
}

.goal-overlay.show .goal-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.goal-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 0;
}

.goal-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #111;
}

.goal-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #f2f4f7;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal-modal-close:active {
  background: #e5e7eb;
}

.goal-modal-body {
  padding: 18px 20px;
}

.goal-modal-input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #111;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.goal-modal-input:focus {
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.goal-modal-input.shake {
  animation: shake 0.4s ease;
}

.goal-modal-hint {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 8px;
  padding-left: 2px;
}

.goal-modal-footer {
  display: flex;
  gap: 10px;
  padding: 0 20px 18px;
}

.goal-modal-cancel {
  flex: 1;
  padding: 11px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.goal-modal-cancel:active {
  background: #f2f4f7;
}

.goal-modal-submit {
  flex: 1;
  padding: 11px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #007aff, #4da3ff);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}

.goal-modal-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3);
}

.goal-modal-submit:active {
  transform: scale(0.97);
}

.goal-modal-submit:disabled {
  opacity: 0.6;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .goal-item,
  .goal-item.completing .goal-check-circle {
    animation: none;
  }
  .goal-check-path,
  .goal-text::after {
    transition: none;
  }
}

/* ===== 分区标题 ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  animation: liftIn 0.46s ease both;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.section-more {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/* ===== 核心功能区 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  animation: itemIn 0.46s ease both;
}

.feature-card:nth-child(1) { animation-delay: 0.12s; }
.feature-card:nth-child(2) { animation-delay: 0.16s; }
.feature-card:nth-child(3) { animation-delay: 0.20s; }
.feature-card:nth-child(4) { animation-delay: 0.24s; }
.feature-card:nth-child(5) { animation-delay: 0.28s; }
.feature-card:nth-child(6) { animation-delay: 0.32s; }
.feature-card:nth-child(7) { animation-delay: 0.36s; }
.feature-card:nth-child(8) { animation-delay: 0.40s; }

.feature-card:active {
  transform: scale(0.95);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    0 8px 20px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.feature-icon-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 28% 26%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.28) 28%, transparent 60%);
  opacity: 0.78;
  mix-blend-mode: screen;
  pointer-events: none;
}

.feature-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.feature-desc {
  font-size: 10px;
  color: var(--muted);
  margin-top: -4px;
}

/* ===== 今日推荐 ===== */
.recommend-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.recommend-card {
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: transform 0.22s ease;
  animation: liftIn 0.46s ease both;
}

.recommend-card:nth-child(1) { animation-delay: 0.2s; }
.recommend-card:nth-child(2) { animation-delay: 0.25s; }
.recommend-card:nth-child(3) { animation-delay: 0.3s; }

.recommend-card:active {
  transform: scale(0.98);
}

.recommend-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 8px;
}

.recommend-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.recommend-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* ===== 学习数据 ===== */
.stats-overview {
  margin-bottom: 24px;
}

.stats-main-card {
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-radius: 16px;
  padding: 16px;
  animation: liftIn 0.46s 0.2s ease both;
}

.stats-chart {
  margin-bottom: 16px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 110px;
  padding: 20px 4px 0;
  margin-bottom: 28px;
}

.chart-bar {
  flex: 1;
  height: var(--height);
  background: linear-gradient(180deg, rgba(0, 122, 255, 0.3), rgba(0, 122, 255, 0.1));
  border-radius: 8px 8px 4px 4px;
  position: relative;
  transition: all 0.3s ease;
  min-height: 20px;
}

.chart-bar.active {
  background: linear-gradient(180deg, var(--primary), var(--primary-light));
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.bar-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--muted);
}

.bar-value {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.stats-summary {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(219, 226, 236, 0.6);
}

.stats-item {
  text-align: center;
}

.stats-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.stats-label {
  font-size: 11px;
  color: var(--muted);
}

.stats-divider {
  width: 1px;
  height: 32px;
  background: rgba(219, 226, 236, 0.6);
}

/* ===== 学习小贴士 ===== */
.tips-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.tip-card {
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: transform 0.22s ease;
  animation: liftIn 0.46s ease both;
}

.tip-card:nth-child(1) { animation-delay: 0.25s; }
.tip-card:nth-child(2) { animation-delay: 0.3s; }
.tip-card:nth-child(3) { animation-delay: 0.35s; }

.tip-card:active {
  transform: scale(0.98);
}

.tip-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 8px;
}

.tip-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.4;
}

.tip-excerpt {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.tip-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
}

/* ===== 题库页 ===== */
.practice-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-card {
  /* 毛玻璃卡片 */
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  animation: liftIn 0.46s ease both;
}

.category-card:nth-child(1) { animation-delay: 0.05s; }
.category-card:nth-child(2) { animation-delay: 0.1s; }
.category-card:nth-child(3) { animation-delay: 0.15s; }
.category-card:nth-child(4) { animation-delay: 0.2s; }
.category-card:nth-child(5) { animation-delay: 0.25s; }

.category-card:active {
  transform: scale(0.98);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.category-info {
  flex: 1;
}

.category-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.category-desc {
  font-size: 12px;
  color: var(--muted);
}

.category-arrow {
  font-size: 20px;
  color: var(--text-muted);
}

/* ===== 个人中心页 ===== */
.profile-header {
  background:
    radial-gradient(ellipse at 90% 10%, rgba(100, 180, 255, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(60, 130, 245, 0.15) 0%, transparent 40%),
    linear-gradient(135deg, #1a56db 0%, #2563eb 40%, #3b82f6 100%);
  border-radius: 22px;
  padding: 28px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow:
    0 2px 4px rgba(26, 86, 219, 0.08),
    0 8px 24px rgba(37, 99, 235, 0.18),
    0 20px 48px rgba(59, 130, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: liftIn 0.46s 0.05s ease both;
}

.profile-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.profile-header::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  top: -60px;
  right: -40px;
  pointer-events: none;
}

.avatar {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.user-info {
  position: relative;
  z-index: 1;
}

.username {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.user-level {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-menu {
  /* 毛玻璃菜单 */
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-radius: 16px;
  overflow: hidden;
  animation: liftIn 0.46s 0.15s ease both;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(219, 226, 236, 0.6);
  cursor: pointer;
  transition: background 0.2s;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:active {
  background: rgba(0, 122, 255, 0.05);
}

.menu-icon {
  font-size: 20px;
  margin-right: 14px;
}

.menu-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.menu-arrow {
  font-size: 18px;
  color: var(--text-muted);
}

/* ===== 资料分析页 ===== */
.analysis-page {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.analysis-header {
  height: var(--header-height);
  padding: 0 16px;
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;

  /* 毛玻璃 */
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  border-bottom: 1px solid rgba(219, 226, 236, 0.8);
}

.analysis-header h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  flex: 1;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: none;
  background: rgba(0, 122, 255, 0.08);
  color: #007aff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.back-btn:active {
  background: rgba(0, 122, 255, 0.15);
  transform: scale(0.96);
}

.analysis-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 设置页：上半部分固定不滚动，只有历史记录列表滚动 */
.analysis-page.no-inner-scroll .analysis-content {
  flex: none;
  overflow: visible;
}

.analysis-page.no-inner-scroll .analysis-records-section {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.analysis-page.no-inner-scroll .records-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 设置页 */
.analysis-settings {
  padding: 16px;
  padding-left: calc(16px + var(--safe-left));
  padding-right: calc(16px + var(--safe-right));
}

.setting-card {
  /* 毛玻璃卡片 */
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  animation: liftIn 0.46s ease both;
}

.setting-card:nth-child(1) { animation-delay: 0.05s; }
.setting-card:nth-child(2) { animation-delay: 0.1s; }
.setting-card:nth-child(3) { animation-delay: 0.15s; }

.setting-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.setting-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: 8px;
}

.setting-desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.setting-options {
  display: flex;
  gap: 10px;
}

.setting-opt {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.22s ease;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.setting-opt.active {
  background: rgba(0, 122, 255, 0.12);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
}

.setting-opt:active {
  transform: scale(0.97);
}

.diff-opt {
  height: 60px;
  flex-direction: column;
  gap: 3px;
}

.diff-name {
  font-size: 15px;
  font-weight: 700;
}

.diff-desc {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.setting-opt.active .diff-desc {
  color: var(--primary);
  opacity: 0.7;
}

/* 练习记录区域 */
.analysis-records-section {
  padding: 0 16px;
  margin-bottom: 16px;
  min-height: 0;
}

.records-stats {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(219, 226, 236, 0.9);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  animation: liftIn 0.4s ease-out;
}

.stats-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.stats-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 10px 0;
}

.records-list {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(219, 226, 236, 0.9);
  border-radius: 18px;
  padding: 16px;
  animation: liftIn 0.4s ease-out;
}

.records-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.records-table {
  width: 100%;
}

.records-header {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(219, 226, 236, 0.6);
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.records-header span {
  flex: 1;
  text-align: center;
}

.records-header span:first-child {
  text-align: left;
}

.records-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(219, 226, 236, 0.3);
  font-size: 13px;
}

.records-row:last-child {
  border-bottom: none;
}

.records-row span {
  flex: 1;
  text-align: center;
}

.records-date {
  text-align: left !important;
  font-weight: 600;
  color: var(--ink);
}

.records-duration {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.records-accuracy {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.records-diff {
  font-weight: 600;
  font-size: 12px;
}

.records-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 10px 0;
}

.records-loading {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 10px 0;
}

.records-more {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}

.analysis-start-wrap {
  padding: 16px;
  padding-left: calc(16px + var(--safe-left));
  padding-right: calc(16px + var(--safe-right));
  flex-shrink: 0;
}

.analysis-start-btn {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.16) 31%, transparent 48%),
    linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    0 12px 28px rgba(0, 122, 255, 0.3);
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.analysis-start-btn::after {
  content: "";
  position: absolute;
  left: -14%;
  top: -45%;
  width: 130%;
  height: 92%;
  background:
    radial-gradient(ellipse at 28% 46%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.28) 28%, transparent 60%),
    linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, 0.48), transparent 58%);
  opacity: 0.78;
  transform: rotate(-6deg);
  mix-blend-mode: screen;
  pointer-events: none;
}

.analysis-start-btn:active {
  transform: scale(0.98);
}

.analysis-start-tip {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* ===== 测验页 ===== */
.quiz-stats {
  display: flex;
  gap: 16px;
}

.quiz-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quiz-stat-value {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.quiz-stat-value.correct { color: var(--success); }
.quiz-stat-value.wrong { color: var(--danger); }
.quiz-stat-value.timer { color: var(--primary); }

.quiz-stat-label {
  font-size: 10px;
  color: var(--muted);
}

.progress-bar {
  height: 3px;
  background: rgba(219, 226, 236, 0.6);
  flex-shrink: 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.4s;
}

.quiz-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 0;
}

.question-card {
  /* 毛玻璃卡片 */
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  animation: liftIn 0.46s ease both;
}

.question-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.fraction-container { margin: 16px 0; }

.fraction {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
}

.fraction-numerator, .fraction-denominator {
  font-size: 32px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 8px 16px;
  color: var(--ink);
}

.fraction-line {
  width: 100%;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

.question-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0;
}

.question-hint strong { color: var(--primary); }

.answer-area {
  background: rgba(242, 246, 251, 0.8);
  border-radius: 14px;
  padding: 14px;
  margin-top: 14px;
  border: 1px solid rgba(219, 226, 236, 0.9);
  transition: border-color 0.2s, background 0.2s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.answer-area.correct {
  border-color: var(--success);
  background: var(--success-soft);
}

.answer-area.wrong {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.answer-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.answer-display {
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 2px;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 32px;
  background: var(--primary);
  margin-left: 2px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.tolerance-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  background: var(--warning-soft);
  color: var(--warning);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

/* 数字键盘 */
.numpad {
  padding: 10px 12px calc(var(--safe-bottom) + 10px);
  padding-left: calc(12px + var(--safe-left));
  padding-right: calc(12px + var(--safe-right));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  flex-shrink: 0;
  background: #f6f8fc;
  border-top: 1px solid #e5e7eb;
}

.numpad-btn {
  height: 50px;
  border-radius: 12px;
  border: none;
  background: var(--surface);
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, transform 0.08s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.numpad-btn:active {
  background: #e5e7eb;
  transform: scale(0.96);
}

.numpad-btn.action {
  background: #e5e7eb;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.numpad-btn.submit {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
}

.numpad-btn.submit:active {
  background: var(--primary-dark);
}

.numpad-btn .icon {
  font-size: 20px;
}

/* 连击徽章 */
.streak-badge {
  position: fixed;
  top: calc(var(--safe-top) + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-60px);
  background: rgba(255, 159, 10, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 4px 18px rgba(255, 159, 10, 0.4);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.streak-badge.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ===== 结果页 ===== */
.result-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.result-banner {
  padding: 24px 16px 28px;
  text-align: center;
  position: relative;
}

.result-banner.excellent {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.16) 31%, transparent 48%),
    linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
}

.result-banner.good {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.16) 31%, transparent 48%),
    linear-gradient(135deg, #10b981, #34d399, #6ee7b7);
}

.result-banner.normal {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.16) 31%, transparent 48%),
    linear-gradient(135deg, var(--primary), var(--primary-light), #93c5fd);
}

.result-banner::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 0;
  right: 0;
  height: 18px;
  background: var(--page);
  border-radius: 18px 18px 0 0;
}

.result-banner-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 12px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.result-banner-title {
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.result-banner-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
}

.result-body {
  padding: 8px 16px 32px;
}

.result-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.result-card {
  border-radius: 16px;
  padding: 16px 8px;
  text-align: center;
  border: 1px solid rgba(219, 226, 236, 0.9);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.result-card.accuracy {
  background: rgba(234, 248, 239, 0.88);
}

.result-card.time {
  background: rgba(232, 242, 255, 0.88);
}

.result-card.streak {
  background: rgba(255, 248, 225, 0.88);
}

.result-card-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.result-card.accuracy .result-card-icon { background: rgba(52, 199, 89, 0.15); }
.result-card.time .result-card-icon { background: rgba(0, 122, 255, 0.15); }
.result-card.streak .result-card-icon { background: rgba(255, 159, 10, 0.15); }

.result-card-value {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 4px;
}

.result-card.accuracy .result-card-value { color: var(--success); }
.result-card.time .result-card-value { color: var(--primary); }
.result-card.streak .result-card-value { color: var(--accent-orange); }

.result-card-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.result-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.summary-chip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(219, 226, 236, 0.9);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.summary-chip.correct-chip {
  background: rgba(234, 248, 239, 0.88);
  color: var(--success);
}

.summary-chip.wrong-chip {
  background: rgba(255, 240, 238, 0.88);
  color: var(--danger);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.summary-chip.correct-chip .chip-dot { background: var(--success); }
.summary-chip.wrong-chip .chip-dot { background: var(--danger); }

.result-answers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.result-answers-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.result-answers-filter {
  display: flex;
  gap: 4px;
  background: rgba(242, 246, 251, 0.8);
  padding: 3px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.filter-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active {
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.result-answers {
  margin-bottom: 20px;
}

.answer-card {
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  animation: liftIn 0.3s ease backwards;
}

.answer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.answer-card.correct .answer-card-top {
  background: rgba(234, 248, 239, 0.6);
}

.answer-card.wrong .answer-card-top {
  background: rgba(255, 240, 238, 0.6);
}

.answer-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.answer-card-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.answer-card.correct .answer-card-num { background: var(--success); }
.answer-card.wrong .answer-card-num { background: var(--danger); }

.answer-card-expr {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.answer-card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.answer-card-badge.correct { background: var(--success); color: white; }
.answer-card-badge.wrong { background: var(--danger); color: white; }

.answer-card-body {
  padding: 12px 14px;
  position: relative;
}

.answer-card-scores {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.score-item {
  text-align: center;
  padding: 8px 4px;
  background: rgba(242, 246, 251, 0.8);
  border-radius: 8px;
}

.score-item-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 3px;
  font-weight: 500;
}

.score-item-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.score-item-value.val-correct { color: var(--success); }
.score-item-value.val-wrong { color: var(--danger); }

/* 方法切换 */
.method-body {
  position: relative;
  padding-top: 28px;
}

.method-toggle {
  display: inline-flex;
  background: rgba(242, 246, 251, 0.8);
  border-radius: 6px;
  padding: 2px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
}

.method-toggle-btn {
  padding: 4px 10px;
  border: none;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.2s;
  white-space: nowrap;
}

.method-toggle-btn.active {
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 分式 */
.frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  margin: 0 3px;
}

.frac-num, .frac-den {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  padding: 2px 5px;
  line-height: 1.2;
}

.frac-line {
  width: 100%;
  min-width: 28px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.frac-sm .frac-num, .frac-sm .frac-den { font-size: 14px; padding: 1px 4px; }
.frac-sm .frac-line { height: 1.5px; }

/* 常规方法 */
.std-section { margin-bottom: 10px; }
.std-section:last-child { margin-bottom: 0; }

.std-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.std-frac-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 8px 0;
}

.std-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  font-weight: 500;
}

.std-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.std-step {
  background: rgba(242, 246, 251, 0.8);
  border-radius: 8px;
  padding: 10px 12px;
  border-left: 3px solid rgba(219, 226, 236, 0.9);
}

.std-step-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.std-step-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 6px;
  border-radius: 4px;
}

.std-step-op {
  font-size: 12px;
  color: var(--muted);
}

.hl-quotient { color: var(--primary); font-weight: 700; }
.hl-remainder { color: var(--accent-orange); font-weight: 700; }

.std-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 2px;
}

.std-result-arrow { font-size: 15px; color: var(--text-muted); }
.std-result-value { font-size: 20px; font-weight: 800; color: var(--primary); }

/* 放缩方法 */
.scaling-section { margin-bottom: 10px; }
.scaling-section:last-child { margin-bottom: 0; }

.scaling-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.scaling-transform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.scaling-frac-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.scaling-offset {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.scaling-offset.num-offset { top: -14px; right: -18px; }
.scaling-offset.den-offset { bottom: -14px; right: -18px; }

.offset-sub { color: var(--danger); }
.offset-add { color: var(--success); }

.scaling-eq { font-size: 18px; font-weight: 700; color: var(--text-muted); }

.scaling-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 0;
}

.scaling-approx { font-size: 13px; color: var(--muted); font-weight: 500; }
.scaling-final { font-size: 20px; font-weight: 800; color: var(--primary); }

.scaling-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
  line-height: 1.6;
}

.restart-btn {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.16) 31%, transparent 48%),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    0 12px 28px rgba(0, 122, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.restart-btn::after {
  content: "";
  position: absolute;
  left: -14%;
  top: -45%;
  width: 130%;
  height: 92%;
  background:
    radial-gradient(ellipse at 28% 46%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.28) 28%, transparent 60%),
    linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, 0.48), transparent 58%);
  opacity: 0.78;
  transform: rotate(-6deg);
  mix-blend-mode: screen;
  pointer-events: none;
}

.restart-btn:active { transform: scale(0.98); }

/* ===== 学情分析页 ===== */
.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  padding-top: calc(var(--safe-top) + 8px);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  border-bottom: 1px solid rgba(219, 226, 236, 0.8);
}

.analytics-header h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.header-actions {
  display: flex;
  gap: 8px;
}

.period-select {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.analytics-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  padding-left: calc(16px + var(--safe-left));
  padding-right: calc(16px + var(--safe-right));
}

/* 核心数据卡片 */
.analytics-hero {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 22px 16px;
  margin-bottom: 20px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(100, 180, 255, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(60, 130, 245, 0.15) 0%, transparent 40%),
    linear-gradient(135deg, #1a56db 0%, #2563eb 40%, #3b82f6 100%);
  box-shadow:
    0 2px 4px rgba(26, 86, 219, 0.08),
    0 8px 24px rgba(37, 99, 235, 0.18),
    0 20px 48px rgba(59, 130, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: liftIn 0.46s 0.05s ease both;
}

.analytics-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.analytics-hero::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  top: -60px;
  right: -40px;
  pointer-events: none;
}

.hero-stat {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.5px;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
}

.hero-stat-trend {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.hero-stat-trend.up {
  background: rgba(52, 199, 89, 0.3);
  color: #fff;
}

.hero-stat-trend.down {
  background: rgba(255, 59, 48, 0.3);
  color: #fff;
}

.hero-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
}

/* 图表标签 */
.chart-tabs {
  display: flex;
  gap: 4px;
  background: rgba(242, 246, 251, 0.8);
  padding: 3px;
  border-radius: 10px;
}

.chart-tab {
  padding: 5px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.chart-tab.active {
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* 趋势图卡片 */
.trend-card {
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  animation: liftIn 0.46s 0.1s ease both;
}

.trend-chart {
  margin-bottom: 12px;
}

.chart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(219, 226, 236, 0.6);
  font-size: 13px;
  color: var(--muted);
}

.chart-summary strong {
  color: var(--ink);
}

.trend-up {
  color: var(--success);
  font-weight: 600;
}

.trend-down {
  color: var(--danger);
  font-weight: 600;
}

/* 模块分析 */
.module-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.module-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-radius: 14px;
  animation: liftIn 0.46s ease both;
}

.module-item:nth-child(1) { animation-delay: 0.15s; }
.module-item:nth-child(2) { animation-delay: 0.2s; }
.module-item:nth-child(3) { animation-delay: 0.25s; }
.module-item:nth-child(4) { animation-delay: 0.3s; }
.module-item:nth-child(5) { animation-delay: 0.35s; }

.module-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.module-info {
  flex: 1;
  min-width: 0;
}

.module-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.module-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-bar-sm {
  flex: 1;
  height: 6px;
  background: rgba(242, 246, 251, 0.8);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill-sm {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px;
  transition: width 0.4s ease;
}

.module-rate {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  min-width: 36px;
}

.module-count {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

/* 薄弱环节 */
.weak-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.weak-card {
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-radius: 14px;
  padding: 14px 16px;
  animation: liftIn 0.46s ease both;
}

.weak-card:nth-child(1) { animation-delay: 0.2s; }
.weak-card:nth-child(2) { animation-delay: 0.25s; }
.weak-card:nth-child(3) { animation-delay: 0.3s; }

.weak-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.weak-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--danger-soft);
  color: var(--danger);
}

.weak-rate {
  font-size: 12px;
  color: var(--danger);
  font-weight: 600;
}

.weak-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.weak-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.weak-action {
  display: flex;
  justify-content: flex-end;
}

.weak-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.weak-btn:active {
  transform: scale(0.97);
}

/* 学习建议 */
.suggestion-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-radius: 14px;
  animation: liftIn 0.46s ease both;
}

.suggestion-card:nth-child(1) { animation-delay: 0.25s; }
.suggestion-card:nth-child(2) { animation-delay: 0.3s; }

.suggestion-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.suggestion-content {
  flex: 1;
}

.suggestion-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.suggestion-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.suggestion-desc strong {
  color: var(--primary);
  font-weight: 600;
}

/* 学习成就 */
.achievement-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.achievement-scroll::-webkit-scrollbar {
  display: none;
}

.achievement-item {
  flex-shrink: 0;
  width: 90px;
  padding: 14px 10px;
  text-align: center;
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-radius: 14px;
  animation: liftIn 0.46s ease both;
}

.achievement-item:nth-child(1) { animation-delay: 0.2s; }
.achievement-item:nth-child(2) { animation-delay: 0.25s; }
.achievement-item:nth-child(3) { animation-delay: 0.3s; }
.achievement-item:nth-child(4) { animation-delay: 0.35s; }

.achievement-item.locked {
  opacity: 0.6;
}

.achievement-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.achievement-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.achievement-desc {
  font-size: 10px;
  color: var(--muted);
}

/* 资料速算入口 */
.speed-calc-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 16px;
  margin-bottom: 20px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(167, 243, 208, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 80%, rgba(52, 211, 153, 0.15) 0%, transparent 40%),
    linear-gradient(135deg, #047857 0%, #059669 45%, #10b981 100%);
  box-shadow:
    0 2px 4px rgba(4, 120, 87, 0.08),
    0 8px 24px rgba(5, 150, 105, 0.18),
    0 20px 48px rgba(16, 185, 129, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.22s ease;
  animation: liftIn 0.46s 0.3s ease both;
}

.speed-calc-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.speed-calc-card:active {
  transform: scale(0.98);
}

.speed-calc-left {
  position: relative;
  z-index: 1;
}

.speed-calc-title {
  font-size: 17px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.speed-calc-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.speed-calc-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.speed-calc-stats strong {
  font-weight: 700;
}

.speed-calc-icon {
  font-size: 48px;
  position: relative;
  z-index: 1;
}

/* ===== 逻辑填空页 ===== */
.fillblank-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f6f8fb;
}

.fb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  padding-top: calc(var(--safe-top) + 8px);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  border-bottom: 1px solid rgba(219, 226, 236, 0.8);
}

.fb-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 122, 255, 0.08);
  color: #007aff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-back-btn:active {
  background: rgba(0, 122, 255, 0.15);
}

.fb-tabs {
  background: #eef1f5;
  border-radius: 14px;
  padding: 4px;
  display: flex;
}

.fb-tab {
  padding: 8px 24px;
  color: #888;
  font-size: 14px;
  font-weight: 500;
}

.fb-tab.active {
  background: #fff;
  border-radius: 12px;
  color: #111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.fb-header-right {
  font-size: 16px;
  color: #888;
}

.fb-progress {
  padding: 12px 20px;
  flex-shrink: 0;
}

.fb-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.fb-module-name {
  color: #2f6bff;
  font-size: 14px;
  font-weight: 600;
}

.fb-count {
  font-size: 13px;
  color: #888;
}

.fb-timer {
  font-size: 13px;
  color: #888;
  font-variant-numeric: tabular-nums;
}

.fb-bar {
  height: 4px;
  background: #e9edf3;
  border-radius: 20px;
  overflow: hidden;
}

.fb-fill {
  height: 100%;
  background: linear-gradient(90deg, #2f6bff, #5a8fff);
  border-radius: 20px;
  transition: width 0.4s;
}

.fb-card {
  margin: 12px 16px;
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.fb-tag {
  display: inline-block;
  background: #edf4ff;
  color: #2f6bff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.fb-question {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.8;
  color: #222;
}

.fb-option {
  margin-top: 12px;
  border: 1.5px solid #e8ecf2;
  border-radius: 16px;
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.fb-option:active {
  transform: scale(0.98);
}

.fb-option.active {
  border-color: #2f6bff;
  background: #f8fbff;
}

.fb-option.correct {
  border-color: #34c759;
  background: #eaf8ef;
}

.fb-option.wrong {
  border-color: #ff3b30;
  background: #fff0ee;
}

.fb-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f2f4f7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #666;
  flex-shrink: 0;
}

.fb-option.active .fb-circle {
  background: #2f6bff;
  color: #fff;
}

.fb-option.correct .fb-circle {
  background: #34c759;
  color: #fff;
}

.fb-option.wrong .fb-circle {
  background: #ff3b30;
  color: #fff;
}

.fb-option span {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}

.fb-option.active span {
  color: #2f6bff;
}

.fb-option.correct span {
  color: #34c759;
}

.fb-option.wrong span {
  color: #ff3b30;
}

.fb-bottom {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #e9edf3;
  padding: 8px 0;
  padding-bottom: calc(8px + var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.fb-tool {
  text-align: center;
  color: #8f96a3;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 12px;
}

.fb-next-btn {
  background: linear-gradient(135deg, #2f6bff, #5a8fff);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.3);
}

.fb-next-btn:active {
  transform: scale(0.97);
}

/* 逻辑填空结果页 */
.fb-result-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.fb-result-banner {
  padding: 24px 16px 28px;
  text-align: center;
  position: relative;
}

.fb-result-banner.excellent {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.16) 31%, transparent 48%),
    linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
}

.fb-result-banner.good {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.16) 31%, transparent 48%),
    linear-gradient(135deg, #10b981, #34d399, #6ee7b7);
}

.fb-result-banner.normal {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.16) 31%, transparent 48%),
    linear-gradient(135deg, #2f6bff, #5a8fff, #93c5fd);
}

.fb-result-icon {
  font-size: 40px;
  margin-bottom: 8px;
}

.fb-result-title {
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.fb-result-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.fb-result-body {
  padding: 8px 16px 32px;
}

.fb-result-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.fb-result-card {
  border-radius: 16px;
  padding: 16px 8px;
  text-align: center;
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.fb-result-card:nth-child(1) { background: rgba(234, 248, 239, 0.88); }
.fb-result-card:nth-child(2) { background: rgba(232, 242, 255, 0.88); }
.fb-result-card:nth-child(3) { background: rgba(255, 248, 225, 0.88); }

.fb-result-card-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.fb-result-card-value {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--ink);
}

.fb-result-card:nth-child(1) .fb-result-card-value { color: #34c759; }
.fb-result-card:nth-child(2) .fb-result-card-value { color: #2f6bff; }
.fb-result-card:nth-child(3) .fb-result-card-value { color: #ff9500; }

.fb-result-card-label {
  font-size: 12px;
  color: var(--muted);
}

.fb-result-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.fb-chip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
}

.fb-chip.correct-chip {
  background: rgba(234, 248, 239, 0.88);
  color: #34c759;
}

.fb-chip.wrong-chip {
  background: rgba(255, 240, 238, 0.88);
  color: #ff3b30;
}

.fb-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.fb-chip.correct-chip .fb-chip-dot { background: #34c759; }
.fb-chip.wrong-chip .fb-chip-dot { background: #ff3b30; }

.fb-result-answers-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.fb-answers-list {
  margin-bottom: 20px;
}

.fb-answer-card {
  border: 1px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}

.fb-answer-card.correct { border-left: 3px solid #34c759; }
.fb-answer-card.wrong { border-left: 3px solid #ff3b30; }

.fb-answer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.fb-answer-card.correct .fb-answer-card-top { background: rgba(234, 248, 239, 0.4); }
.fb-answer-card.wrong .fb-answer-card-top { background: rgba(255, 240, 238, 0.4); }

.fb-answer-card-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.fb-answer-card.correct .fb-answer-card-num { background: #34c759; }
.fb-answer-card.wrong .fb-answer-card-num { background: #ff3b30; }

.fb-answer-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.fb-answer-badge.correct { background: #34c759; color: white; }
.fb-answer-badge.wrong { background: #ff3b30; color: white; }

.fb-answer-question {
  padding: 0 14px 10px;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.fb-answer-options {
  padding: 0 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fb-answer-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #666;
  background: rgba(242, 246, 251, 0.6);
}

.fb-answer-opt.is-answer {
  background: rgba(52, 199, 89, 0.1);
  color: #34c759;
  font-weight: 600;
}

.fb-answer-opt.is-wrong {
  background: rgba(255, 59, 48, 0.08);
  color: #ff3b30;
  font-weight: 600;
}

.fb-answer-opt-label {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.fb-answer-opt.is-answer .fb-answer-opt-label { background: rgba(52, 199, 89, 0.2); }
.fb-answer-opt.is-wrong .fb-answer-opt-label { background: rgba(255, 59, 48, 0.15); }

.fb-answer-explain {
  padding: 12px 14px;
  background: rgba(242, 246, 251, 0.6);
  border-top: 1px solid rgba(219, 226, 236, 0.6);
}

.fb-explain-title {
  font-size: 12px;
  font-weight: 700;
  color: #2f6bff;
  margin-bottom: 6px;
}

.fb-explain-text {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

.fb-restart-btn {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #2f6bff, #5a8fff);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(47, 107, 255, 0.3);
}

.fb-restart-btn:active { transform: scale(0.98); }

/* ===== 答题卡弹窗 ===== */
.fb-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: background 0.3s;
}

.fb-sheet-overlay.show {
  background: rgba(0, 0, 0, 0.4);
}

.fb-sheet-modal {
  width: 100%;
  max-width: 500px;
  max-height: 50vh;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 20px;
  padding-bottom: calc(12px + var(--safe-bottom));
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fb-sheet-overlay.show .fb-sheet-modal {
  transform: translateY(0);
  opacity: 1;
}

.fb-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.fb-sheet-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.fb-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f2f4f7;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-sheet-close:active {
  background: #e5e7eb;
}

/* 统计栏 */
.fb-sheet-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 12px;
  padding: 14px 0;
  background: #f6f8fb;
  border-radius: 14px;
  flex-shrink: 0;
}

.fb-sheet-stat {
  text-align: center;
}

.fb-sheet-stat-num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #111;
  margin-bottom: 2px;
}

.fb-stat-answered { color: #2f6bff; }
.fb-stat-correct { color: #34c759; }
.fb-stat-wrong { color: #ff3b30; }

.fb-sheet-stat-label {
  font-size: 11px;
  color: #8f96a3;
}

/* 格子滚动容器 */
.fb-sheet-grid-wrap {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
  min-height: 0;
}

/* 格子 */
.fb-sheet-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.fb-sheet-item {
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.fb-sheet-item:active {
  transform: scale(0.93);
}

.fb-sheet-item.unanswered {
  background: #f2f4f7;
  color: #8f96a3;
  border: 1.5px solid #e5e7eb;
}

.fb-sheet-item.current {
  background: #2f6bff;
  color: #fff;
  border: 1.5px solid #2f6bff;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.35);
}

.fb-sheet-item.correct {
  background: #eaf8ef;
  color: #34c759;
  border: 1.5px solid #34c759;
}

.fb-sheet-item.wrong {
  background: #fff0ee;
  color: #ff3b30;
  border: 1.5px solid #ff3b30;
}

/* 图例 */
.fb-sheet-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-shrink: 0;
  padding-top: 8px;
}

.fb-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8f96a3;
}

.fb-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.current-dot { background: #2f6bff; }
.unanswered-dot { background: #d1d5db; }
.correct-dot { background: #34c759; }
.wrong-dot { background: #ff3b30; }

/* ===== 题内解析 ===== */
.fb-explain-block {
  margin-top: 16px;
  padding: 14px;
  background: #f6f8fb;
  border-radius: 14px;
  border: 1px solid #e9edf3;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fb-explain-result {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
}

.fb-explain-result.correct {
  background: #eaf8ef;
  color: #34c759;
}

.fb-explain-result.wrong {
  background: #fff0ee;
  color: #ff3b30;
}

.fb-explain-block .fb-explain-title {
  font-size: 13px;
  font-weight: 700;
  color: #2f6bff;
  margin-bottom: 6px;
}

.fb-explain-block .fb-explain-text {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

/* ===== 登录/注册页面 ===== */
#page-auth {
  background: var(--page, #f6f8fb);
}

#page-auth.active {
  z-index: 100;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部渐变 Hero */
.auth-hero {
  position: relative;
  height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.98), rgba(255,255,255,0.16) 31%, transparent 48%),
    radial-gradient(circle at 82% 88%, rgba(180,222,255,0.68), transparent 42%),
    linear-gradient(135deg, #007aff, #4da3ff);
}

.auth-hero-bg::after {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse at 28% 46%, rgba(255,255,255,0.96), rgba(255,255,255,0.28) 28%, transparent 60%),
    linear-gradient(100deg, transparent 18%, rgba(255,255,255,0.48), transparent 58%);
  transform: rotate(-6deg);
  mix-blend-mode: screen;
  pointer-events: none;
}

.auth-brand {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.auth-logo {
  font-size: 56px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
  animation: liftIn 0.6s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.auth-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
  animation: liftIn 0.6s 0.1s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.auth-subtitle {
  font-size: 15px;
  opacity: 0.9;
  margin-top: 6px;
  font-weight: 500;
  animation: liftIn 0.6s 0.2s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

/* 表单卡片 */
.auth-card {
  margin: -40px 20px 40px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(219, 226, 236, 0.9);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 12px 40px rgba(35,47,67,0.1);
  position: relative;
  z-index: 2;
  animation: liftIn 0.5s 0.15s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.auth-card-title {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}

.auth-card-desc {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 28px;
}

/* 输入框组 */
.auth-input-group {
  display: flex;
  align-items: center;
  background: #f2f6fb;
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 0 16px;
  margin-bottom: 14px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.auth-input-group:focus-within {
  border-color: #007aff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.auth-input-icon {
  font-size: 18px;
  margin-right: 12px;
  flex-shrink: 0;
}

.auth-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #111827;
  padding: 14px 0;
  font-family: inherit;
}

.auth-input::placeholder {
  color: #9ca3af;
}

/* 错误信息 */
.auth-error {
  display: none;
  color: #ff3b30;
  font-size: 13px;
  margin-bottom: 10px;
  padding-left: 4px;
  animation: shake 0.4s ease;
}

/* 主按钮 */
.auth-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #007aff, #4da3ff);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
  margin-top: 4px;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.35);
}

.auth-btn:active {
  transform: scale(0.97);
}

.auth-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.auth-btn-loading {
  display: none;
}

/* 切换登录/注册 */
.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #6b7280;
}

.auth-link {
  color: #007aff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

/* 我的页面中的登录链接 */
.auth-inline-link {
  color: #007aff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.auth-inline-link:hover {
  text-decoration: underline;
}

/* 退出登录菜单项 */
.logout-item {
  margin-top: 12px;
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
}

.logout-item .menu-text {
  color: #ff3b30;
}

/* 响应式：大屏居中 */
@media (min-width: 500px) {
  .auth-card {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .auth-hero {
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-logo,
  .auth-title,
  .auth-subtitle,
  .auth-card {
    animation: none;
  }
}

/* ===== 首页打卡卡片 ===== */
.checkin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(219, 226, 236, 0.9);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--soft-shadow, 0 4px 12px rgba(35,47,67,0.08));
  animation: liftIn 0.45s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.checkin-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkin-icon {
  font-size: 32px;
  line-height: 1;
}

.checkin-streak {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.checkin-streak span {
  color: #ff9500;
  font-size: 20px;
  font-weight: 800;
}

.checkin-total {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.checkin-total span {
  color: #007aff;
  font-weight: 700;
}

.checkin-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9500, #ffcc00);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 4px 14px rgba(255, 149, 0, 0.35);
  min-width: 72px;
}

.checkin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 149, 0, 0.4);
}

.checkin-btn:active {
  transform: scale(0.95);
}

.checkin-btn .checkin-btn-done {
  display: none;
}

.checkin-btn.done {
  background: linear-gradient(135deg, #34c759, #30d158);
  box-shadow: 0 4px 14px rgba(52, 199, 89, 0.3);
  pointer-events: none;
}

.checkin-btn.done .checkin-btn-text {
  display: none;
}

.checkin-btn.done .checkin-btn-done {
  display: inline;
}

/* ===== 打卡弹窗 ===== */
.checkin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.checkin-overlay.show {
  background: rgba(0, 0, 0, 0.45);
}

.checkin-modal {
  width: 90%;
  max-width: 340px;
  background: #fff;
  border-radius: 24px;
  padding: 32px 24px 28px;
  text-align: center;
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s;
  position: relative;
}

.checkin-overlay.show .checkin-modal {
  transform: scale(1);
  opacity: 1;
}

.checkin-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #f2f4f7;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.checkin-close:active {
  background: #e5e7eb;
}

.checkin-popup-icon {
  font-size: 56px;
  margin-bottom: 12px;
  animation: liftIn 0.5s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.checkin-popup-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.checkin-popup-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}

.checkin-popup-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}

.checkin-popup-stat {
  text-align: center;
}

.checkin-popup-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: #ff9500;
}

.checkin-popup-stat-label {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}

.checkin-popup-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff9500, #ffcc00);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 6px 20px rgba(255, 149, 0, 0.3);
}

.checkin-popup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(255, 149, 0, 0.35);
}

.checkin-popup-btn:active {
  transform: scale(0.97);
}

.checkin-popup-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.checkin-popup-btn .checkin-popup-btn-done {
  display: none;
}

.checkin-popup-btn.done {
  background: linear-gradient(135deg, #34c759, #30d158);
  box-shadow: 0 6px 20px rgba(52, 199, 89, 0.3);
  pointer-events: none;
}

.checkin-popup-btn.done .checkin-popup-btn-text {
  display: none;
}

.checkin-popup-btn.done .checkin-popup-btn-done {
  display: inline;
}

@media (prefers-reduced-motion: reduce) {
  .checkin-popup-icon {
    animation: none;
  }
}

/* ===== 公基常识页面 ===== */
#page-gjcs.active {
  z-index: 50;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.gjcs-page {
  background:
    radial-gradient(circle at top left, #eef4ff 0%, transparent 40%),
    radial-gradient(circle at top right, #f5f0ff 0%, transparent 40%),
    linear-gradient(180deg, #f8fbff, #f3f6fc);
  padding-bottom: 20px;
}

/* 顶部栏 */
.gjcs-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 251, 255, 0.85);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.gjcs-back {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #14213d;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s;
  font-family: inherit;
  line-height: 1;
  padding: 0;
  padding-bottom: 2px;
}

.gjcs-back:active { transform: scale(0.9); }

.gjcs-record {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  font-size: 13px;
  color: #667085;
  font-weight: 500;
}

/* Hero 标题区 */
.gjcs-hero {
  position: relative;
  padding: 20px 18px 16px;
  text-align: center;
  overflow: hidden;
}

.gjcs-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 149, 0, 0.06), transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 204, 0, 0.06), transparent 50%);
  pointer-events: none;
}

.gjcs-hero-content { position: relative; z-index: 1; }

.gjcs-title {
  font-size: 28px;
  font-weight: 800;
  color: #14213d;
  letter-spacing: -0.5px;
  animation: liftIn 0.5s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.gjcs-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #8a94a6;
  animation: liftIn 0.5s 0.08s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

/* 统计卡片 */
.gjcs-stats {
  display: flex;
  gap: 8px;
  padding: 0 14px;
  margin-bottom: 16px;
}

.gjcs-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  animation: liftIn 0.5s 0.12s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.gjcs-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: #14213d;
}

.gjcs-stat-label {
  font-size: 11px;
  color: #8a94a6;
  margin-top: 1px;
}

/* 分类网格 */
.gjcs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px;
}

/* 分类卡片 — 横向紧凑布局 */
.gjcs-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: liftIn 0.4s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.gjcs-card:active {
  transform: scale(0.96);
}

@media (hover: hover) {
  .gjcs-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  }
}

/* 卡片主行：图标 + 信息 + 箭头 */
.gjcs-card-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 分类图标 */
.gjcs-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.gjcs-c-red    { background: linear-gradient(135deg, #ff9f9f, #ff6b81); }
.gjcs-c-orange { background: linear-gradient(135deg, #ffd79f, #ffb648); }
.gjcs-c-blue   { background: linear-gradient(135deg, #8cb6ff, #5c87ff); }
.gjcs-c-green  { background: linear-gradient(135deg, #98ec9d, #59d975); }
.gjcs-c-purple { background: linear-gradient(135deg, #c7a7ff, #946dff); }
.gjcs-c-cyan   { background: linear-gradient(135deg, #8fe3ff, #4ab7ff); }
.gjcs-c-pink   { background: linear-gradient(135deg, #ffc0d0, #ff89aa); }
.gjcs-c-teal   { background: linear-gradient(135deg, #92e6e1, #4fc9c3); }

.gjcs-card-info {
  flex: 1;
  min-width: 0;
}

.gjcs-name {
  font-size: 14px;
  font-weight: 700;
  color: #14213d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gjcs-count {
  font-size: 13px;
  color: #7f8a9f;
  margin-top: 1px;
  font-weight: 500;
}

/* 箭头 */
.gjcs-arrow {
  font-size: 20px;
  color: #c0c8d6;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: auto;
}

/* 描述（在图标和信息下方） */
.gjcs-desc {
  margin-top: 6px;
  font-size: 11px;
  color: #98a2b3;
  line-height: 1.4;
  padding-left: 50px;
}

/* 随机混合训练（独占一行） */
.gjcs-mix {
  margin: 14px 14px 0;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #faf7ff, #eef3ff);
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.07);
  cursor: pointer;
  transition: transform 0.2s;
  animation: liftIn 0.45s 0.35s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.gjcs-mix:active { transform: scale(0.98); }

.gjcs-mix .gjcs-card-main {
  gap: 12px;
}

.gjcs-mix-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.25);
  transition: transform 0.15s;
}

.gjcs-mix-btn:active { transform: scale(0.95); }

.gjcs-mix .gjcs-desc {
  padding-left: 52px;
}

/* 底部标签 */
.gjcs-footer {
  margin: 14px 14px 0;
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-around;
  animation: liftIn 0.45s 0.4s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.gjcs-footer-item {
  font-size: 11px;
  color: #667085;
  font-weight: 500;
}

.gjcs-bottom-space { height: 16px; }

/* 自定义刷题按钮 */
.gjcs-custom {
  margin: 14px 14px 0;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #faf7ff, #f0f4ff);
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.07);
  cursor: pointer;
  transition: transform 0.2s;
  animation: liftIn 0.45s 0.38s cubic-bezier(0.2, 0.85, 0.2, 1) both;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gjcs-custom:active { transform: scale(0.98); }

.gjcs-custom-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gjcs-custom-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8e0ff, #d4c8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.gjcs-custom-title {
  font-size: 14px;
  font-weight: 700;
  color: #14213d;
}

.gjcs-custom-desc {
  font-size: 12px;
  color: #8a94a6;
  margin-top: 2px;
}

.gjcs-custom-desc span {
  color: #6366f1;
  font-weight: 700;
}

.gjcs-custom-arrow {
  font-size: 20px;
  color: #c0c8d6;
  font-weight: 300;
}

/* ===== 自定义刷题弹窗 ===== */
.gjcs-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.gjcs-picker-overlay.show {
  background: rgba(0, 0, 0, 0.45);
}

.gjcs-picker-modal {
  width: 88%;
  max-width: 340px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  transform: scale(0.85) translateY(30px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.gjcs-picker-overlay.show .gjcs-picker-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.gjcs-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 0;
}

.gjcs-picker-title {
  font-size: 18px;
  font-weight: 700;
  color: #14213d;
}

.gjcs-picker-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f2f4f7;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.gjcs-picker-close:active {
  background: #e5e7eb;
}

.gjcs-picker-body {
  padding: 20px 20px 16px;
}

.gjcs-picker-hint {
  text-align: center;
  font-size: 13px;
  color: #8a94a6;
  margin-bottom: 16px;
}

/* 滚轮选择器 */
.gjcs-picker-wheel-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 16px;
  background: #f6f8fb;
}

.gjcs-picker-mask-top,
.gjcs-picker-mask-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 2;
  pointer-events: none;
}

.gjcs-picker-mask-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(246, 248, 251, 0.95), rgba(246, 248, 251, 0.3));
}

.gjcs-picker-mask-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(246, 248, 251, 0.95), rgba(246, 248, 251, 0.3));
}

.gjcs-picker-indicator {
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  height: 52px;
  transform: translateY(-50%);
  border-top: 2px solid rgba(99, 102, 241, 0.2);
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.04);
  border-radius: 12px;
  z-index: 1;
  pointer-events: none;
}

.gjcs-picker-wheel {
  height: 100%;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gjcs-picker-wheel::-webkit-scrollbar {
  display: none;
}

.gjcs-picker-item {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  scroll-snap-align: center;
  transition: all 0.2s ease;
}

.gjcs-picker-num {
  font-size: 28px;
  font-weight: 800;
  color: #c0c8d6;
  transition: all 0.2s ease;
}

.gjcs-picker-unit {
  font-size: 14px;
  color: #c0c8d6;
  font-weight: 500;
  transition: all 0.2s ease;
}

.gjcs-picker-item.active .gjcs-picker-num {
  color: #14213d;
  font-size: 32px;
  transform: scale(1.05);
}

.gjcs-picker-item.active .gjcs-picker-unit {
  color: #6366f1;
  font-weight: 700;
}

/* 确认按钮 */
.gjcs-picker-footer {
  padding: 0 20px 20px;
}

.gjcs-picker-confirm {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.gjcs-picker-confirm:active {
  transform: scale(0.97);
}

.gjcs-picker-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
}

/* ===== 继续刷题弹窗 ===== */
.gjcs-resume-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.gjcs-resume-overlay.show {
  background: rgba(0, 0, 0, 0.45);
}

.gjcs-resume-modal {
  width: 85%;
  max-width: 320px;
  background: #fff;
  border-radius: 24px;
  padding: 28px 24px 24px;
  text-align: center;
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.gjcs-resume-overlay.show .gjcs-resume-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.gjcs-resume-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: gjcsResumeBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes gjcsResumeBounce {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.gjcs-resume-title {
  font-size: 18px;
  font-weight: 700;
  color: #14213d;
  margin-bottom: 8px;
}

.gjcs-resume-desc {
  font-size: 13px;
  color: #8a94a6;
  margin-bottom: 20px;
  line-height: 1.5;
}

.gjcs-resume-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 16px 0;
  background: #f6f8fb;
  border-radius: 16px;
}

.gjcs-resume-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gjcs-resume-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: #14213d;
}

.gjcs-resume-stat-label {
  font-size: 11px;
  color: #8a94a6;
  margin-top: 2px;
}

.gjcs-resume-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gjcs-resume-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}

.gjcs-resume-btn:active {
  transform: scale(0.97);
}

.gjcs-resume-btn.continue {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: white;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.gjcs-resume-btn.continue:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
}

.gjcs-resume-btn.restart {
  background: #f2f4f7;
  color: #666;
}

.gjcs-resume-btn.restart:hover {
  background: #e5e7eb;
}

@media (prefers-reduced-motion: reduce) {
  .gjcs-title, .gjcs-sub, .gjcs-stat, .gjcs-card, .gjcs-mix, .gjcs-footer,
  .gjcs-resume-icon, .gjcs-picker-modal, .gjcs-resume-modal {
    animation: none;
  }
}

/* ===== 公基常识刷题页 ===== */
#page-quiz.active {
  z-index: 50;
}

.qz-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f6f8fb;
}

.qz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  padding-top: calc(var(--safe-top, 0px) + 8px);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  border-bottom: 1px solid rgba(219, 226, 236, 0.8);
  flex-shrink: 0;
}

.qz-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 122, 255, 0.08);
  color: #007aff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qz-back:active {
  background: rgba(0, 122, 255, 0.15);
}

.qz-module-name {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.qz-timer {
  font-size: 13px;
  color: #888;
  font-variant-numeric: tabular-nums;
}

.qz-progress-bar {
  height: 4px;
  background: #e9edf3;
  flex-shrink: 0;
}

.qz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2f6bff, #5a8fff);
  transition: width 0.4s;
  border-radius: 0 2px 2px 0;
}

.qz-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 13px;
  color: #888;
  flex-shrink: 0;
}

.qz-counter b {
  color: #2f6bff;
  font-weight: 700;
}

.qz-streak-badge {
  background: #fff3e0;
  color: #ff9500;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.qz-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 16px;
}

.qz-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #8f96a3;
  font-size: 15px;
}

.qz-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e9edf3;
  border-top-color: #2f6bff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.qz-question-card {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  margin-top: 4px;
}

.qz-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.qz-tag-single {
  background: #edf4ff;
  color: #2f6bff;
}

.qz-tag-multi {
  background: #fff3e0;
  color: #ff9500;
}

.qz-tag-bool {
  background: #e8f5e9;
  color: #34c759;
}

.qz-stem {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.8;
  color: #222;
}

.qz-options {
  margin-top: 16px;
}

.qz-option {
  border: 1.5px solid #e8ecf2;
  border-radius: 16px;
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
}

.qz-option:active {
  transform: scale(0.98);
}

.qz-option.selected {
  border-color: #2f6bff;
  background: #f8fbff;
}

.qz-option.correct {
  border-color: #34c759;
  background: #eaf8ef;
}

.qz-option.wrong {
  border-color: #ff3b30;
  background: #fff0ee;
}

.qz-opt-label {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f2f4f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #666;
  flex-shrink: 0;
  margin-right: 12px;
}

.qz-option.selected .qz-opt-label {
  background: #2f6bff;
  color: #fff;
}

.qz-option.correct .qz-opt-label {
  background: #34c759;
  color: #fff;
}

.qz-option.wrong .qz-opt-label {
  background: #ff3b30;
  color: #fff;
}

.qz-opt-text {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  flex: 1;
}

.qz-option.selected .qz-opt-text {
  color: #2f6bff;
}

.qz-option.correct .qz-opt-text {
  color: #34c759;
}

.qz-option.wrong .qz-opt-text {
  color: #ff3b30;
}

/* 底部按钮区 */
.qz-bottom {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #e9edf3;
  padding: 8px 16px;
  padding-bottom: calc(8px + var(--safe-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qz-bottom-tools {
  display: flex;
  gap: 4px;
}

.qz-tool {
  text-align: center;
  color: #8f96a3;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}

.qz-tool:active {
  background: #f2f4f7;
}

.qz-submit-btn {
  background: linear-gradient(135deg, #ff9500, #ffcc00);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.qz-submit-btn:active {
  transform: scale(0.97);
}

.qz-next-btn {
  background: linear-gradient(135deg, #2f6bff, #5a8fff);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.3);
}

.qz-next-btn:active {
  transform: scale(0.97);
}

.qz-retry-btn {
  padding: 14px 32px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2f6bff, #5a8fff);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.3);
}

.qz-retry-btn:active {
  transform: scale(0.97);
}

.qz-retry-btn.secondary {
  background: #f2f4f7;
  color: #666;
  box-shadow: none;
}

/* 解析块 */
.qz-explain-block {
  margin-top: 16px;
  padding: 14px;
  background: #f6f8fb;
  border-radius: 14px;
  border: 1px solid #e9edf3;
  animation: fadeInUp 0.3s ease;
}

.qz-explain-result {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
}

.qz-explain-result.correct {
  background: #eaf8ef;
  color: #34c759;
}

.qz-explain-result.wrong {
  background: #fff0ee;
  color: #ff3b30;
}

.qz-explain-title {
  font-size: 13px;
  font-weight: 700;
  color: #2f6bff;
  margin-bottom: 6px;
}

.qz-explain-text {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

/* ===== 结果页（重新设计） ===== */

/* 滚动容器 */
.qz-r-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Hero Banner */
.qz-r-hero {
  position: relative;
  padding: 36px 20px 48px;
  text-align: center;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
}

.qz-r-hero.excellent {
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.98), rgba(255,255,255,0.16) 31%, transparent 48%),
    radial-gradient(circle at 82% 88%, rgba(255,235,180,0.68), transparent 42%),
    linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
}

.qz-r-hero.good {
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.98), rgba(255,255,255,0.16) 31%, transparent 48%),
    radial-gradient(circle at 82% 88%, rgba(180,255,220,0.68), transparent 42%),
    linear-gradient(135deg, #10b981, #34d399, #6ee7b7);
}

.qz-r-hero.normal {
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.98), rgba(255,255,255,0.16) 31%, transparent 48%),
    radial-gradient(circle at 82% 88%, rgba(180,210,255,0.68), transparent 42%),
    linear-gradient(135deg, #2f6bff, #5a8fff, #93c5fd);
}

.qz-r-hero-bg {
  position: absolute;
  left: -14%;
  top: -45%;
  width: 130%;
  height: 92%;
  background:
    radial-gradient(ellipse at 28% 46%, rgba(255,255,255,0.96), rgba(255,255,255,0.28) 28%, transparent 60%),
    linear-gradient(100deg, transparent 18%, rgba(255,255,255,0.48), transparent 58%);
  opacity: 0.78;
  transform: rotate(-6deg);
  mix-blend-mode: screen;
  pointer-events: none;
}

.qz-r-hero-content {
  position: relative;
  z-index: 1;
}

.qz-r-hero-emoji {
  font-size: 56px;
  margin-bottom: 12px;
  animation: qzRiseIn 0.6s cubic-bezier(0.2, 0.85, 0.2, 1) both;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.qz-r-hero-score {
  font-size: 64px;
  font-weight: 900;
  color: white;
  line-height: 1;
  text-shadow: 0 4px 16px rgba(0,0,0,0.15);
  animation: qzRiseIn 0.6s 0.1s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.qz-r-hero-unit {
  font-size: 28px;
  font-weight: 700;
  opacity: 0.85;
  margin-left: 2px;
}

.qz-r-hero-level {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin-top: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.12);
  animation: qzRiseIn 0.6s 0.15s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.qz-r-hero-time {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-top: 6px;
  animation: qzRiseIn 0.6s 0.2s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

@keyframes qzRiseIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 统计卡片 */
.qz-r-stats {
  display: flex;
  gap: 10px;
  padding: 0 16px;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.qz-r-stat-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-radius: 18px;
  padding: 16px 8px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255,255,255,0.8);
  animation: qzRiseIn 0.5s 0.25s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.qz-r-stat-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.qz-r-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: #14213d;
  line-height: 1.1;
}

.qz-r-stat-label {
  font-size: 12px;
  color: #8f96a3;
  margin-top: 4px;
  font-weight: 500;
}

.qz-r-stat-card.correct-card .qz-r-stat-num { color: #34c759; }
.qz-r-stat-card.wrong-card .qz-r-stat-num { color: #ff3b30; }

/* 额外统计 */
.qz-r-extra-stats {
  display: flex;
  gap: 10px;
  padding: 12px 16px 0;
}

.qz-r-extra-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  border: 1px solid rgba(219, 226, 236, 0.6);
  animation: qzRiseIn 0.5s 0.3s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.qz-r-extra-icon {
  font-size: 18px;
}

.qz-r-extra-label {
  font-size: 12px;
  color: #8f96a3;
  flex: 1;
}

.qz-r-extra-value {
  font-size: 15px;
  font-weight: 700;
  color: #14213d;
}

/* 题目列表区域 */
.qz-r-section {
  padding: 20px 16px 0;
}

.qz-r-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.qz-r-section-title {
  font-size: 17px;
  font-weight: 700;
  color: #14213d;
}

/* 筛选按钮 */
.qz-r-filter {
  display: flex;
  gap: 4px;
  background: rgba(242, 246, 251, 0.8);
  padding: 3px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.qz-r-filter-btn {
  padding: 7px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #8f96a3;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  white-space: nowrap;
}

.qz-r-filter-btn.active {
  background: rgba(255, 255, 255, 0.92);
  color: #2f6bff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qz-r-filter-btn:active {
  transform: scale(0.96);
}

/* 题目卡片 */
.qz-r-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qz-r-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(219, 226, 236, 0.7);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  animation: qzCardIn 0.4s ease both;
}

.qz-r-card:nth-child(1) { animation-delay: 0.05s; }
.qz-r-card:nth-child(2) { animation-delay: 0.1s; }
.qz-r-card:nth-child(3) { animation-delay: 0.15s; }
.qz-r-card:nth-child(4) { animation-delay: 0.2s; }
.qz-r-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes qzCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.qz-r-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.qz-r-card.correct .qz-r-card-head {
  background: rgba(234, 248, 239, 0.5);
}

.qz-r-card.wrong .qz-r-card-head {
  background: rgba(255, 240, 238, 0.5);
}

.qz-r-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qz-r-card-num {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.qz-r-card-num.correct { background: linear-gradient(135deg, #34c759, #30d158); }
.qz-r-card-num.wrong { background: linear-gradient(135deg, #ff3b30, #ff6961); }

.qz-r-card-type {
  font-size: 12px;
  color: #8f96a3;
  font-weight: 500;
}

.qz-r-card-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 10px;
}

.qz-r-card-badge.correct { background: rgba(52, 199, 89, 0.15); color: #34c759; }
.qz-r-card-badge.wrong { background: rgba(255, 59, 48, 0.12); color: #ff3b30; }

.qz-r-card-stem {
  padding: 0 16px 12px;
  font-size: 15px;
  color: #333;
  line-height: 1.7;
}

/* 答案对比区 */
.qz-r-card-answers {
  padding: 0 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qz-r-ans-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(242, 246, 251, 0.6);
}

.qz-r-ans-label {
  font-size: 12px;
  color: #8f96a3;
  font-weight: 500;
  min-width: 56px;
}

.qz-r-ans-value {
  font-size: 15px;
  font-weight: 700;
}

.qz-r-ans-value.correct { color: #34c759; }
.qz-r-ans-value.wrong { color: #ff3b30; }

/* 解析区 */
.qz-r-card-explain {
  padding: 14px 16px;
  background: rgba(242, 246, 251, 0.5);
  border-top: 1px solid rgba(219, 226, 236, 0.5);
}

.qz-r-explain-title {
  font-size: 13px;
  font-weight: 700;
  color: #2f6bff;
  margin-bottom: 8px;
}

.qz-r-explain-text {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

/* 操作按钮 */
.qz-r-actions {
  padding: 24px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qz-r-btn {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}

.qz-r-btn:active {
  transform: scale(0.98);
}

.qz-r-btn.primary {
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.98), rgba(255,255,255,0.16) 31%, transparent 48%),
    linear-gradient(135deg, #2f6bff, #5a8fff);
  color: white;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.95),
    0 8px 24px rgba(47, 107, 255, 0.3);
  border: 1px solid rgba(255,255,255,0.3);
}

.qz-r-btn.primary::after {
  content: "";
  position: absolute;
  left: -14%;
  top: -45%;
  width: 130%;
  height: 92%;
  background:
    radial-gradient(ellipse at 28% 46%, rgba(255,255,255,0.96), rgba(255,255,255,0.28) 28%, transparent 60%),
    linear-gradient(100deg, transparent 18%, rgba(255,255,255,0.48), transparent 58%);
  opacity: 0.78;
  transform: rotate(-6deg);
  mix-blend-mode: screen;
  pointer-events: none;
}

.qz-r-btn.secondary {
  background: rgba(255,255,255,0.88);
  color: #666;
  border: 1px solid rgba(219, 226, 236, 0.9);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.qz-r-btn-icon {
  font-size: 18px;
}

/* 响应式：大屏居中 */
@media (min-width: 500px) {
  .qz-r-stats, .qz-r-extra-stats, .qz-r-section, .qz-r-actions {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qz-r-hero-emoji, .qz-r-hero-score, .qz-r-hero-level, .qz-r-hero-time,
  .qz-r-stat-card, .qz-r-extra-item, .qz-r-card {
    animation: none;
  }
}

/* 答题卡弹窗 */
.qz-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: background 0.3s;
}

.qz-sheet-overlay.show {
  background: rgba(0, 0, 0, 0.4);
}

.qz-sheet-modal {
  width: 100%;
  max-width: 500px;
  max-height: 50vh;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 20px;
  padding-bottom: calc(12px + var(--safe-bottom, 0px));
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.qz-sheet-overlay.show .qz-sheet-modal {
  transform: translateY(0);
  opacity: 1;
}

.qz-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.qz-sheet-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.qz-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f2f4f7;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qz-sheet-close:active {
  background: #e5e7eb;
}

.qz-sheet-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 12px;
  padding: 14px 0;
  background: #f6f8fb;
  border-radius: 14px;
  flex-shrink: 0;
}

.qz-sheet-stat {
  text-align: center;
}

.qz-sheet-stat-num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #111;
  margin-bottom: 2px;
}

.qz-stat-answered { color: #2f6bff; }
.qz-stat-correct { color: #34c759; }
.qz-stat-wrong { color: #ff3b30; }

.qz-sheet-stat-label {
  font-size: 11px;
  color: #8f96a3;
}

.qz-sheet-grid-wrap {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
  min-height: 0;
}

.qz-sheet-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.qz-sheet-item {
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  background: #f2f4f7;
  color: #8f96a3;
  border: 1.5px solid #e5e7eb;
}

.qz-sheet-item:active {
  transform: scale(0.93);
}

.qz-sheet-item.current {
  background: #2f6bff;
  color: #fff;
  border-color: #2f6bff;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.35);
}

.qz-sheet-item.correct {
  background: #eaf8ef;
  color: #34c759;
  border-color: #34c759;
}

.qz-sheet-item.wrong {
  background: #fff0ee;
  color: #ff3b30;
  border-color: #ff3b30;
}

.qz-sheet-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-shrink: 0;
  padding-top: 8px;
}

.qz-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8f96a3;
}

.qz-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.qz-legend-dot.current-dot { background: #2f6bff; }
.qz-legend-dot.unanswered-dot { background: #d1d5db; }
.qz-legend-dot.correct-dot { background: #34c759; }

/* ===== 题库录入表单 ===== */
.qb-form {
  padding: 16px;
  padding-left: calc(16px + var(--safe-left));
  padding-right: calc(16px + var(--safe-right));
  padding-bottom: calc(24px + var(--safe-bottom));
}

.qb-row {
  display: flex;
  gap: 12px;
}

.qb-half {
  flex: 1;
}

.qb-field {
  margin-bottom: 16px;
}

.qb-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.qb-select,
.qb-input,
.qb-textarea {
  width: 100%;
  border: 1.5px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}

.qb-select:focus,
.qb-input:focus,
.qb-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.qb-textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}

.qb-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.qb-option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.qb-option-row:last-child {
  margin-bottom: 0;
}

.qb-opt-tag {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.qb-opt-tag.a { background: linear-gradient(135deg, #007aff, #5ac8fa); }
.qb-opt-tag.b { background: linear-gradient(135deg, #34c759, #30d158); }
.qb-opt-tag.c { background: linear-gradient(135deg, #ff9500, #ffcc00); }
.qb-opt-tag.d { background: linear-gradient(135deg, #ff3b30, #ff6961); }

.qb-option-row .qb-input {
  flex: 1;
}

.qb-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

.qb-submit-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.16) 31%, transparent 48%),
    linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.28);
  -webkit-tap-highlight-color: transparent;
}

.qb-submit-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.qb-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.qb-btn-icon {
  font-size: 18px;
}

/* 提示消息 */
.qb-toast {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: 10px;
  margin-top: 0;
}

.qb-toast.show {
  padding: 12px;
  max-height: 60px;
  opacity: 1;
  margin-top: 16px;
}

.qb-toast.success {
  background: var(--success-soft);
  color: #1b8a3d;
}

.qb-toast.error {
  background: #fff0f0;
  color: #d70015;
}

/* 答案选择区域 */
.qb-answer-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}

.qb-answer-picks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.qb-pick-btn {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 2px solid rgba(219, 226, 236, 0.9);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 8px;
}

.qb-pick-btn:active {
  transform: scale(0.95);
}

/* A/B/C/D 各色选中态 */
.qb-pick-btn.a.selected {
  background: linear-gradient(135deg, #007aff, #5ac8fa);
  border-color: #007aff;
  color: white;
  box-shadow: 0 3px 12px rgba(0, 122, 255, 0.3);
}

.qb-pick-btn.b.selected {
  background: linear-gradient(135deg, #34c759, #30d158);
  border-color: #34c759;
  color: white;
  box-shadow: 0 3px 12px rgba(52, 199, 89, 0.3);
}

.qb-pick-btn.c.selected {
  background: linear-gradient(135deg, #ff9500, #ffcc00);
  border-color: #ff9500;
  color: white;
  box-shadow: 0 3px 12px rgba(255, 149, 0, 0.3);
}

.qb-pick-btn.d.selected {
  background: linear-gradient(135deg, #ff3b30, #ff6961);
  border-color: #ff3b30;
  color: white;
  box-shadow: 0 3px 12px rgba(255, 59, 48, 0.3);
}

/* 判断题按钮 */
.qb-pick-btn.judgment-correct {
  font-size: 16px;
}

.qb-pick-btn.judgment-correct.selected {
  background: linear-gradient(135deg, #34c759, #30d158);
  border-color: #34c759;
  color: white;
  box-shadow: 0 3px 12px rgba(52, 199, 89, 0.3);
}

.qb-pick-btn.judgment-wrong {
  font-size: 16px;
}

.qb-pick-btn.judgment-wrong.selected {
  background: linear-gradient(135deg, #ff3b30, #ff6961);
  border-color: #ff3b30;
  color: white;
  box-shadow: 0 3px 12px rgba(255, 59, 48, 0.3);
}
.qz-legend-dot.wrong-dot { background: #ff3b30; }
