/* ===== 语块库面板 ===== */
.chunk-lib-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(6px);
  animation: clib-fade 0.2s ease;
}

@keyframes clib-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.chunk-lib-modal {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: clib-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes clib-pop {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.chunk-lib-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 20px 10px;
  background: linear-gradient(135deg, #667eea18, #764ba218);
  border-bottom: 1px solid var(--border, #e5e7eb);
  flex-shrink: 0;
}

.chunk-lib-title {
  margin: 0 0 2px 0;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.3px;
}

.chunk-lib-subtitle {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.chunk-lib-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  transition: all 0.25s;
}
.chunk-lib-close:hover {
  background: #e5e7eb;
  transform: rotate(90deg) scale(1.1);
}

/* 统计卡片 */
.chunk-lib-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 20px 0;
  flex-shrink: 0;
}

.chunk-lib-stat-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 6px 8px;
  text-align: center;
  transition: all 0.2s;
}
.chunk-lib-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.chunk-lib-stat-card.streak {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #f59e0b;
}
.chunk-lib-stat-card.cycle {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: #3b82f6;
}
.chunk-lib-stat-card.today {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-color: #10b981;
}

.chunk-lib-stat-num {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
}
.chunk-lib-stat-card.streak .chunk-lib-stat-num { color: #92400e; }
.chunk-lib-stat-card.cycle .chunk-lib-stat-num { color: #1e40af; }
.chunk-lib-stat-card.today .chunk-lib-stat-num { color: #065f46; }

.chunk-lib-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  margin-top: 1px;
  white-space: nowrap;
}
.chunk-lib-stat-card.streak .chunk-lib-stat-label { color: #b45309; }
.chunk-lib-stat-card.cycle .chunk-lib-stat-label { color: #2563eb; }
.chunk-lib-stat-card.today .chunk-lib-stat-label { color: #047857; }

/* 设置区 */
.chunk-lib-settings {
  padding: 10px 20px 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-shrink: 0;
}

.chunk-lib-setting-row {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  min-width: 0;
}

.chunk-lib-setting-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  align-items: flex-start;
  line-height: 1.2;
  min-width: 0;
  flex-shrink: 1;
}

.chunk-lib-setting-icon {
  display: none;
}

.chunk-lib-setting-desc {
  font-size: 10px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
  flex-shrink: 0;
}
.toggle-switch.on {
  background: linear-gradient(135deg, #10b981, #059669);
}
.toggle-switch.off {
  background: #d1d5db;
}
.toggle-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toggle-switch.on .toggle-switch-thumb {
  transform: translateX(16px);
}

.chunk-lib-select {
  padding: 4px 8px;
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  font-size: 11px;
  font-weight: 600;
  background: #fff;
  color: #111827;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  flex-shrink: 0;
}
}
.chunk-lib-select:hover {
  border-color: #667eea;
}
.chunk-lib-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* 复习模式切换 */
.chunk-lib-mode-switch {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
}

.chunk-lib-mode-btn {
  padding: 5px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.chunk-lib-mode-btn:hover {
  color: #64748b;
  background: rgba(255, 255, 255, 0.6);
}
.chunk-lib-mode-btn.active {
  background: #fff;
  color: #8338ec;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Tabs */
.chunk-lib-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 20px 0;
  border-bottom: 2px solid #f3f4f6;
  flex-shrink: 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.chunk-lib-tab {
  flex: 1;
  padding: 8px 10px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #9ca3af;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  transition: all 0.2s;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.chunk-lib-tab.active {
  color: #667eea;
  border-bottom-color: #667eea;
}
.chunk-lib-tab:hover:not(.active) {
  color: #6b7280;
}

.chunk-lib-tab-badge {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  line-height: 1;
  min-width: 18px;
  text-align: center;
}

/* Body */
.chunk-lib-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px 20px;
  -webkit-overflow-scrolling: touch;
}

/* 空状态 */
.chunk-lib-empty {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}
.chunk-lib-empty.small {
  padding: 30px 20px;
  font-size: 13px;
}
.chunk-lib-empty-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}
.chunk-lib-empty-desc {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.6;
}
.chunk-lib-empty-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* ===== Tab: 今日复习 ===== */
.today-review-tab {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.today-progress {
  text-align: center;
}
.today-progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.today-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.today-progress-text {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.start-review-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  transition: all 0.3s;
}
.start-review-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}
.start-review-btn:active {
  transform: translateY(0);
}

.today-chunk-preview {
  background: #f9fafb;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
}

.today-chunk-preview-title {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
}

.chunk-list-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chunk-mini-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 13px;
}
.chunk-mini-index {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chunk-mini-text {
  flex: 1;
  color: #111827;
  font-family: 'Patrick Hand', cursive;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chunk-mini-trans {
  font-size: 11px;
  color: #6b7280;
  flex-shrink: 0;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chunk-mini-more {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  padding: 4px 0;
}

/* ===== Tab: 全部语块 ===== */
.all-chunks-tab {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chunk-lib-search-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chunk-lib-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f3f4f6;
  border-radius: 12px;
  border: 1.5px solid transparent;
  transition: all 0.2s;
}
.chunk-lib-search-box:focus-within {
  background: #fff;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chunk-lib-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  color: #111827;
}
.chunk-lib-search-input::placeholder {
  color: #9ca3af;
}

.chunk-lib-filter-chips {
  display: flex;
  gap: 6px;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #6b7280;
  font-family: inherit;
  transition: all 0.2s;
}
.filter-chip:hover {
  border-color: #667eea80;
  color: #374151;
}
.filter-chip.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: transparent;
  color: #fff;
}

.chunk-group {
  margin-bottom: 8px;
}

.chunk-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 6px;
}

.chunk-group-name {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.chunk-group-count {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 10px;
}

.chunk-group-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 完整语块卡片 */
.chunk-card-full {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  transition: all 0.2s;
}
.chunk-card-full:hover {
  border-color: #667eea80;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.chunk-card-full.active {
  border-color: #10b981;
  background: linear-gradient(135deg, #ecfdf5, #d1fae540);
}
.chunk-card-full.paused {
  opacity: 0.6;
  background: #f9fafb;
}

.chunk-card-full-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 2px solid #10b981;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.15s;
}
.chunk-card-full.active .chunk-card-full-checkbox {
  background: #10b981;
}
.chunk-card-full.paused .chunk-card-full-checkbox {
  border-color: #d1d5db;
}

.chunk-card-full-body {
  flex: 1;
  min-width: 0;
}

.chunk-card-full-text {
  font-size: 15px;
  line-height: 1.4;
  color: #111827;
  margin-bottom: 4px;
  font-family: 'Patrick Hand', cursive;
  word-break: break-word;
}

.chunk-card-full-trans {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
  line-height: 1.4;
}

.chunk-card-full-note {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 6px;
  font-style: italic;
}

.chunk-card-full-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
}

.chunk-card-edit-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.chunk-card-edit-btn:hover {
  background: #e5e7eb;
  transform: scale(1.1);
}

/* 编辑状态 */
.chunk-card-full.editing {
  border-color: #667eea;
  background: #eef2ff40;
}

.chunk-edit-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chunk-edit-input {
  padding: 8px 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}
.chunk-edit-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.chunk-edit-input.trans {
  font-size: 13px;
  color: #6b7280;
}

.chunk-edit-textarea {
  padding: 8px 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 50px;
}
.chunk-edit-textarea:focus {
  border-color: #667eea;
}

.chunk-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  align-items: center;
}

.btn.small {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-danger {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.btn-danger:hover {
  background: #fecaca;
}

/* ===== Tab: 添加语块 ===== */
.add-chunk-tab {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.add-chunk-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.form-input {
  padding: 10px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
  background: #fff;
  color: #111827;
}
.form-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
  padding: 10px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 60px;
  line-height: 1.5;
  transition: all 0.2s;
  background: #fff;
  color: #111827;
}
.form-textarea.tall {
  min-height: 120px;
  font-family: 'Patrick Hand', cursive;
  font-size: 16px;
}
.form-textarea:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.category-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-chip {
  padding: 8px 16px;
  border-radius: 12px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #6b7280;
  font-family: inherit;
  transition: all 0.2s;
}
.category-chip:hover {
  border-color: #667eea80;
}
.category-chip.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: transparent;
  color: #fff;
}

.add-chunk-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.add-chunk-tip {
  padding: 12px 16px;
  background: linear-gradient(135deg, #fef3c7, #fde68a40);
  border: 1px solid #f59e0b40;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #92400e;
}

.sample-chunks-section {
  margin-top: 20px;
}

.sample-chunks-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb 30%, #e5e7eb 70%, transparent);
  margin-bottom: 16px;
}

.sample-chunks-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #5b21b6;
  border: 1px solid #a78bfa60;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sample-chunks-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.sample-chunks-btn:active {
  transform: translateY(0);
}

.sample-chunks-hint {
  margin-top: 8px;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.6;
  text-align: center;
}

/* 巩固练习按钮 */
.review-practice-btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #f59e0b60;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.review-practice-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.practice-all-btn {
  width: 100%;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #9a3412;
  border: 1px solid #fdba7480;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.practice-all-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.review-mode-progress-fill.practice {
  background: linear-gradient(90deg, #fbbf24, #f59e0b) !important;
}

.practice-card .flip-card-front {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  border-color: #fcd34d80 !important;
}
.practice-card .flip-card-tag {
  background: #f59e0b !important;
}
.practice-card .flip-card-back {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  border-color: #fcd34d80 !important;
}
.practice-card .flip-card-main-text.english {
  color: #78350f !important;
}

/* ===== 复习模式 ===== */
.review-mode-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rm-fade 0.3s ease;
}

@keyframes rm-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.review-mode-container {
  width: 100%;
  max-width: 500px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.review-mode-scroll {
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  padding: 5vh 0;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.review-mode-scroll::-webkit-scrollbar {
  width: 6px;
}
.review-mode-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}

.review-mode-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.review-mode-close,
.review-mode-skip {
  padding: 8px 14px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}
.review-mode-close:hover,
.review-mode-skip:hover {
  background: rgba(255,255,255,0.25);
}

.review-mode-progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-mode-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
}

.review-mode-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #34d399, #10b981);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.review-mode-progress-text {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-align: center;
  font-weight: 500;
}

.review-mode-hint {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  animation: hint-pulse 2s ease-in-out infinite;
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* 翻转卡片 */
.flip-card {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3/4;
  perspective: 1200px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.flip-card-front {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.flip-card-back {
  background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
  color: #4c1d95;
  transform: rotateY(180deg);
}

.flip-card-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 14px;
  background: rgba(0,0,0,0.08);
  border-radius: 20px;
  margin-bottom: 24px;
}
.flip-card-tag.back {
  background: rgba(76, 29, 149, 0.15);
  color: #6d28d9;
}

.flip-card-main-text {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  word-break: break-word;
  margin-bottom: 16px;
}
.flip-card-main-text.english {
  font-family: 'Patrick Hand', cursive;
  font-size: 28px;
  line-height: 1.4;
}

.flip-card-sub-text {
  font-size: 15px;
  opacity: 0.7;
  margin-bottom: 12px;
  text-align: center;
}

.flip-card-hint-text {
  font-size: 13px;
  opacity: 0.6;
  font-style: italic;
  text-align: center;
  line-height: 1.5;
  max-width: 85%;
}

.flip-card-speak-btn {
  margin-top: 12px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  background: rgba(76, 29, 149, 0.12);
  color: #6d28d9;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.flip-card-speak-btn:hover {
  background: rgba(76, 29, 149, 0.2);
  transform: scale(1.03);
}
.flip-card-speak-btn:active {
  transform: scale(0.97);
}

.flip-card-footer-hint {
  position: absolute;
  bottom: 20px;
  font-size: 12px;
  opacity: 0.5;
  animation: bounce-hint 2s ease-in-out infinite;
}

@keyframes bounce-hint {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-3px); opacity: 0.6; }
}

/* 底部操作按钮 */
.review-mode-actions {
  width: 100%;
  display: flex;
  gap: 14px;
  max-width: 400px;
}

.review-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 20px;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
}
.review-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.review-btn-again {
  background: #fff;
  color: #6b7280;
  border: 1.5px solid #e5e7eb;
  box-shadow: none;
}
.review-btn-again:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #d1d5db;
  color: #374151;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.review-btn-know {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.review-btn-know:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.5);
}

/* 完成页 */
.review-finish-view {
  width: 100%;
  max-width: 450px;
  padding: 40px 30px;
  background: #fff;
  border-radius: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  animation: finish-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes finish-pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.review-finish-emoji {
  font-size: 72px;
  margin-bottom: 16px;
  animation: emoji-bounce 1.2s ease-in-out infinite;
}

@keyframes emoji-bounce {
  0%, 100% { transform: scale(1) rotate(0); }
  25% { transform: scale(1.1) rotate(-5deg); }
  75% { transform: scale(1.1) rotate(5deg); }
}

.review-finish-title {
  font-size: 28px;
  font-weight: 900;
  color: #111827;
  margin: 0 0 20px 0;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.review-finish-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.finish-stat {
  padding: 14px 10px;
  border-radius: 14px;
  background: #f9fafb;
}
.finish-stat.good { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.finish-stat.meh { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.finish-stat.total { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }

.finish-stat-num {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}
.finish-stat.good .finish-stat-num { color: #065f46; }
.finish-stat.meh .finish-stat-num { color: #92400e; }
.finish-stat.total .finish-stat-num { color: #1e40af; }

.finish-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}
.finish-stat.good .finish-stat-label { color: #047857; }
.finish-stat.meh .finish-stat-label { color: #b45309; }
.finish-stat.total .finish-stat-label { color: #2563eb; }

.review-finish-message {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
}

.review-finish-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
}

/* 移动端适配 */
@media (max-width: 640px) {
  .chunk-lib-overlay { padding: 10px; align-items: flex-end; }
  .chunk-lib-modal { max-height: 92vh; border-radius: 20px 20px 24px 24px; }
  .chunk-lib-header { padding: 18px 18px 12px; }
  .chunk-lib-body { padding: 14px 18px 20px; }
  .chunk-lib-tabs { padding: 12px 18px 0; }
  .chunk-lib-stats-bar { padding: 12px 18px 0; }
  .chunk-lib-settings { padding: 12px 18px 0; }
  .chunk-lib-title { font-size: 19px; }
  .chunk-lib-stat-num { font-size: 18px; }

  .flip-card { max-width: 340px; aspect-ratio: 3/4.5; }
  .flip-card-main-text { font-size: 22px; }
  .flip-card-main-text.english { font-size: 24px; }

  .review-finish-emoji { font-size: 60px; }
  .review-finish-title { font-size: 24px; }
  .finish-stat-num { font-size: 24px; }
}

@media (max-width: 400px) {
  .flip-card { max-width: 300px; }
  .flip-card-main-text { font-size: 20px; }
}

/* ===== 拼写模式 ===== */
.spelling-mode-overlay { z-index: 1002; }

.spelling-mode-container {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: clib-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.review-mode-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(135deg, #faf5ff, #eff6ff);
}

.review-mode-close {
  background: rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.review-mode-close:hover { background: rgba(0, 0, 0, 0.1); color: #334155; }

.review-mode-progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.review-mode-progress-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.review-mode-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8338ec, #3b82f6);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.review-mode-progress-fill.practice {
  background: linear-gradient(90deg, #10b981, #06b6d4);
}

.review-mode-progress-text {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
}

.spelling-sound-btn {
  background: rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.spelling-sound-btn:hover { background: rgba(0, 0, 0, 0.1); }

.spelling-combo-badge {
  position: absolute;
  top: 70px;
  right: 20px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  z-index: 10;
  animation: combo-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

@keyframes combo-bounce {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.spelling-mode-hint {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  padding: 16px 20px 8px;
  font-weight: 500;
}

.spelling-chunk-card {
  margin: 8px 20px 0;
  padding: 32px 24px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 20px;
  border: 2px solid transparent;
  text-align: center;
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}
.spelling-chunk-card.wrong {
  border-color: #ef4444;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
}
.spelling-chunk-card.show-answer {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.spelling-chunk-card.shake {
  animation: chunk-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes chunk-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
}

.spelling-fire-anim {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  z-index: 5;
  animation: fire-float 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}

@keyframes fire-float {
  0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(0.8); }
  50% { opacity: 1; transform: translateX(-50%) translateY(-30px) scale(1.2); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-60px) scale(1.5); }
}

.spelling-chinese {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 8px;
}

.spelling-ipa {
  font-size: 16px;
  color: #8338ec;
  font-family: "Lucida Sans Unicode", "Arial Unicode MS", sans-serif;
  margin-bottom: 8px;
  font-weight: 500;
}

.spelling-note {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
  line-height: 1.5;
}

.spelling-input {
  width: 100%;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 600;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #1e293b;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  letter-spacing: 0.5px;
}
.spelling-input:focus {
  border-color: #8338ec;
  box-shadow: 0 0 0 4px rgba(131, 56, 236, 0.15);
}
.spelling-input.wrong {
  border-color: #ef4444;
  color: #ef4444;
  animation: input-wrong-pulse 0.5s;
}
.spelling-input.show-answer {
  border-color: #f59e0b;
  color: #92400e;
}

@keyframes input-wrong-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.spelling-answer {
  margin-top: 10px;
  font-size: 14px;
  color: #92400e;
}
.spelling-answer-text {
  font-weight: 700;
  color: #d97706;
  font-size: 16px;
}

.spelling-speak-btn {
  margin-top: 16px;
  background: rgba(131, 56, 236, 0.1);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #7c3aed;
  cursor: pointer;
  transition: background 0.2s;
}
.spelling-speak-btn:hover {
  background: rgba(131, 56, 236, 0.2);
}
.spelling-speak-btn.speaking {
  opacity: 0.7;
  cursor: progress;
  background: rgba(131, 56, 236, 0.15);
}
.spelling-speak-btn.error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}
.spelling-speak-btn:disabled {
  cursor: not-allowed;
}

.spelling-speak-error {
  margin-top: 6px;
  font-size: 12px;
  color: #ef4444;
  text-align: center;
}

.spelling-footer-hint {
  text-align: center;
  font-size: 12px;
  color: #cbd5e1;
  padding: 16px 20px 20px;
}

/* 完成页 */
.spelling-finish-view {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  padding: 40px 32px 32px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: clib-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.spelling-finish-grade {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8338ec, #3b82f6);
  color: #fff;
  box-shadow: 0 8px 24px rgba(131, 56, 236, 0.3);
}
.spelling-grade-label {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  font-family: "Georgia", serif;
}
.spelling-grade-desc {
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
  opacity: 0.9;
}

.spelling-finish-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #8338ec, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.spelling-finish-accuracy {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 500;
}

.spelling-finish-actions .btn {
  min-width: 140px;
}

/* 学习模式切换 Tab */
.study-mode-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 20px 0;
  justify-content: center;
}

.study-mode-tab {
  flex: 1;
  max-width: 180px;
  padding: 8px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  font-family: inherit;
}
.study-mode-tab:hover {
  border-color: #c7d2fe;
  color: #6366f1;
  background: #f5f3ff;
}
.study-mode-tab.active {
  border-color: transparent;
  background: linear-gradient(135deg, #8338ec, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 12px rgba(131, 56, 236, 0.25);
}

/* 移动端拼写模式适配 */
@media (max-width: 640px) {
  .spelling-mode-container { max-height: 92vh; border-radius: 20px 20px 24px 24px; }
  .spelling-chunk-card { margin: 8px 16px 0; padding: 24px 20px; }
  .spelling-chinese { font-size: 18px; }
  .spelling-input { font-size: 16px; padding: 12px 16px; }
  .review-mode-header { padding: 12px 16px; }
  .spelling-finish-view { padding: 32px 24px 24px; }
  .spelling-finish-title { font-size: 20px; }
  .spelling-finish-grade { width: 80px; height: 80px; }
  .spelling-grade-label { font-size: 36px; }
}

/* ==========================================================================
   P0 用户引导优化：结算时刻 + 空状态
   ========================================================================== */

/* ---- 拼写结算页优化 ---- */
.spelling-finish-encourage {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.spelling-finish-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  margin: 0 0 20px 0;
}

.spelling-finish-hint {
  margin-top: 16px;
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.spelling-finish-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-bottom-width: 2px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  font-family: inherit;
}

/* ---- 语块复习结算页优化 ---- */
.review-finish-encourage {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.review-finish-encourage-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 24px 0;
  font-weight: 400;
  line-height: 1.5;
}

.review-finish-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.review-finish-actions .btn {
  min-width: 120px;
}

.review-finish-hint {
  margin-top: 16px;
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.review-finish-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-bottom-width: 2px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  font-family: inherit;
}

/* 结算页数据卡片 - 高级感改造 */
.finish-stat {
  background: #fafafa !important;
  border: 1px solid #eef0f4 !important;
  padding: 12px 10px !important;
  border-radius: 12px !important;
}

.finish-stat-num {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  letter-spacing: -0.02em;
}

.finish-stat-label {
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #9ca3af !important;
}

/* ---- 语块库空状态优化 ---- */
.chunk-lib-empty-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: #f4f1ff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chunk-lib-empty.chunk-lib-empty-card {
  background: #ffffff;
  border: 1px solid #eef0f4;
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
}

.chunk-lib-empty.chunk-lib-empty-card .chunk-lib-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.chunk-lib-empty.chunk-lib-empty-card .chunk-lib-empty-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Dashboard 最近学习空状态 ---- */
.db-recent-empty {
  text-align: center;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.db-recent-empty-icon {
  width: 56px !important;
  height: 56px !important;
  margin-bottom: 4px;
}

.db-recent-empty-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.db-recent-empty-desc {
  font-size: 12px !important;
  color: #6b7280 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  max-width: 220px;
}

/* ---- 学习足迹空状态 ---- */
.lfp-empty-heatmap {
  padding: 40px 24px !important;
  text-align: center !important;
}

.lfp-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: #f4f1ff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lfp-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px 0;
}

.lfp-empty-desc {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- 统一空状态组件 ---- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
}

.empty-state-card {
  background: #ffffff;
  border: 1px solid #eef0f4;
  border-radius: 12px;
}

.empty-state-icon {
  margin-bottom: 16px;
  background: #f4f1ff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 300px;
}

.empty-state-desc p {
  margin: 0 0 8px 0;
}

.empty-state-desc p:last-child {
  margin-bottom: 0;
}

.empty-state-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.empty-state-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.empty-state-btn-ghost {
  background: transparent;
  color: #7c3aed;
}

.empty-state-btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}
.empty-state-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.empty-state-btn-ghost:hover {
  color: #6d28d9;
}

.empty-state-btn-ghost:hover .empty-state-btn-arrow {
  transform: translateX(2px);
}

.empty-state-btn-arrow {
  transition: transform 0.15s ease;
}

.empty-state-btn-secondary {
  background: #f3f4f6;
  color: #4b5563;
}

.empty-state-btn-secondary:hover {
  background: #e5e7eb;
}

/* ---- 热力图空状态提示 ---- */
.db-heatmap-empty-hint {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 10px;
}

