/* ===== 情绪词汇学习工具 - 移动端优先样式 ===== */
:root {
  --primary: #5B8A9A;
  --primary-dark: #4A7585;
  --primary-light: #E8F2F5;
  --accent: #C9A87C;
  --bg: #F7F9FB;
  --bg-card: #FFFFFF;
  --text: #2C3E50;
  --text-secondary: #6B7C8D;
  --text-muted: #9AABB8;
  --border: #E2E8EE;
  --success: #5CB87A;
  --error: #E07A6A;
  --warning: #E8B84A;
  --shadow: 0 2px 12px rgba(91, 138, 154, 0.1);
  --shadow-lg: 0 8px 24px rgba(91, 138, 154, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h: 56px;
  --nav-h: 60px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-overflow-scrolling: touch;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { 
  max-width: 100%; 
  display: block; 
  border: none;
}

button { 
  font-family: inherit; 
  cursor: pointer; 
  border: none; 
  outline: none; 
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: none;
}

input { 
  font-family: inherit; 
  outline: none; 
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
}

/* ===== 微信/移动端特殊样式 ===== */

/* 禁用微信长按菜单 */
body {
  -webkit-touch-callout: none;
}

/* 修复微信字体渲染 */
body, button, input, textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* 防止iOS滚动回弹 */
#app {
  overflow-scrolling: touch;
  -webkit-overflow-scrolling: touch;
}

/* 选中文字颜色 */
::selection {
  background: var(--primary);
  color: #fff;
}

::-webkit-selection {
  background: var(--primary);
  color: #fff;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* 输入框占位符样式 */
input::placeholder {
  color: var(--text-muted);
}

input::-webkit-input-placeholder {
  color: var(--text-muted);
}

input::-moz-placeholder {
  color: var(--text-muted);
}

input:-ms-input-placeholder {
  color: var(--text-muted);
}

/* ===== 布局 ===== */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
}

.page { display: none; padding: 16px; animation: fadeIn 0.3s ease; }
.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 顶部品牌栏 ===== */
.brand-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 12px 16px 16px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 0 0 20px 20px;
}

.brand-name {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.92;
}

.brand-sub {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* ===== 经验值与称号卡片 ===== */
.xp-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  margin: 10px 16px 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
}

.xp-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.avatar-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.profile-meta { flex: 1; min-width: 0; }

.profile-nickname {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-edit-hint {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.xp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.xp-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-num .stat-unit {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 1px;
}

.xp-value {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.xp-value strong {
  font-size: 1.1rem;
  color: var(--accent);
}

.xp-progress-wrap {
  background: var(--primary-light);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
}

.xp-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 20px;
  transition: width 0.6s ease;
}

.xp-next-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: right;
}

/* ===== 打卡与进度条 ===== */


.stats-container {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #F5F5F5;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--shadow);
}

#page-progress .stats-container {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 进度页面的用户信息卡片 - 与其他模块宽度一致 */
#page-progress .xp-card {
  margin: 10px 0 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #F5F5F5;
}

#page-progress .section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2C3E50;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #E8E8E8;
}

#page-progress .stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 0;
}

#page-progress .stat-item {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-right: 1px solid #F0F0F0;
}

#page-progress .stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: #667eea;
}

.stat-label {
  font-size: 0.75rem;
  color: #999;
  margin-top: 4px;
}

/* ===== 功能入口网格 ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.menu-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.menu-item:active {
  transform: scale(0.97);
}

.menu-item-placeholder {
  border: 1px dashed var(--border);
  background: var(--bg);
}

.menu-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.menu-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.menu-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== 引流引导 ===== */
.promo-banner {
  background: linear-gradient(135deg, #F0EDE8 0%, #E8F2F5 100%);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
}

.promo-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.promo-text p {
  margin: 0;
  line-height: 1.6;
}

.promo-text .promo-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-text .promo-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.promo-qr {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.promo-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  height: 100%;
  object-fit: cover;
}

/* ===== 模式切换 ===== */
.mode-toggle {
  display: flex;
  background: var(--primary-light);
  border-radius: 24px;
  padding: 3px;
  margin-bottom: 16px;
}

.mode-btn {
  flex: 1;
  padding: 8px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.3s;
}

.mode-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow);
}

/* ===== 搜索与筛选 ===== */
.search-bar {
  position: relative;
  margin-bottom: 12px;
}

.search-input {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 0.9rem;
  background: var(--bg-card);
  box-sizing: border-box;
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #e04f4f;
  background: #fff;
  font-size: 16px;
  color: #e04f4f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(224, 79, 79, 0.2);
}

.search-clear-btn:hover {
  background: #e04f4f;
  color: #fff;
  box-shadow: 0 2px 6px rgba(224, 79, 79, 0.4);
}

.category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.cat-tab.active {
  color: #fff;
  border-color: transparent;
}

/* ===== 词汇卡片列表 ===== */
.word-list { display: flex; flex-direction: column; gap: 10px; }

.word-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
}

.word-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

.word-info { flex: 1; }

.word-name {
  font-size: 1rem;
  font-weight: 600;
}

.word-def {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.word-cat-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 6px;
}

.fav-btn {
  font-size: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 10px;
  opacity: 0.7;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.fav-btn.in-fav {
  background: #FEF3E8;
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

.fav-btn:hover {
  opacity: 1;
  border-color: var(--primary);
  color: var(--primary);
}

.fav-btn.in-fav:hover {
  background: #FDE8D4;
  border-color: var(--accent);
  color: var(--accent);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state .icon { font-size: 2.5rem; margin-bottom: 8px; }

/* ===== 游戏通用 ===== */
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.back-btn {
  background: var(--bg-card);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

.game-title {
  font-size: 1rem;
  font-weight: 600;
}

.game-xp {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* 计时器 */
.timer-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}

.timer-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 1s linear;
}

.timer-fill.warning { background: var(--warning); }
.timer-fill.danger { background: var(--error); }

.timer-text {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* 题目卡片 */
.question-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.question-word {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.question-def {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.question-category {
  font-size: 1.5rem;
  font-weight: 700;
}

/* 选项按钮 */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.option-btn {
  padding: 16px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 2px solid var(--border);
  color: var(--text);
  transition: all 0.2s;
}

.option-btn:active { transform: scale(0.97); }

.option-btn.correct {
  background: #E8F7EE;
  border-color: var(--success);
  color: var(--success);
}

.option-btn.wrong {
  background: #FDEEEC;
  border-color: var(--error);
  color: var(--error);
}

.option-btn.highlight {
  background: #E8F7EE;
  border-color: var(--success);
  animation: pulse 0.5s ease;
}

.option-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.option-btn .option-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.option-mark.mark-correct { background: var(--success); color: #fff; }
.option-mark.mark-wrong { background: var(--error); color: #fff; }
.option-mark.mark-answer { background: var(--success); color: #fff; border: 2px solid #fff; }

.option-btn.marked-answer { background: #E8F7EE !important; border-color: var(--success) !important; }
.option-btn.marked-wrong { background: #FDEEEC !important; border-color: var(--error) !important; }
.option-btn.marked-neutral { opacity: 0.55; }

/* 连击与反馈动画 */
.feedback-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1000;
}

.feedback-icon {
  font-size: 5rem;
  animation: feedbackPop 0.6s ease forwards;
}

@keyframes feedbackPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

.combo-banner {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #E8A838, #E07A6A);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: 700;
  z-index: 1001;
  animation: comboAnim 1.2s ease forwards;
  pointer-events: none;
}

@keyframes comboAnim {
  0% { transform: translateX(-50%) scale(0) rotate(-10deg); opacity: 0; }
  30% { transform: translateX(-50%) scale(1.1) rotate(0deg); opacity: 1; }
  70% { transform: translateX(-50%) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) scale(0.8) translateY(-30px); opacity: 0; }
}

/* 多选题词汇卡片 */
.multi-words-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.multi-word-card {
  padding: 14px 10px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.multi-word-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.multi-word-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.multi-word-card .result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.multi-word-card.result-correct .result-badge { background: var(--success); color: #fff; }
.multi-word-card.result-wrong .result-badge { background: var(--error); color: #fff; }
.multi-word-card.result-missed .result-badge { background: var(--warning); color: #fff; }

.multi-word-card.result-correct {
  border-color: var(--success);
  background: #E8F7EE;
  color: var(--text);
}

.multi-word-card.result-wrong {
  border-color: var(--error);
  background: #FDEEEC;
  color: var(--text);
}

.multi-word-card.result-missed {
  border-color: var(--warning);
  background: #FFF8E8;
  color: var(--text);
}


.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 8px;
}

.submit-btn:disabled {
  opacity: 0.5;
}

/* ===== 看释义填词 ===== */
.fill-input-wrap {
  margin-bottom: 16px;
}

.fill-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  text-align: center;
  background: var(--bg-card);
}

.fill-input:focus { border-color: var(--primary); }

.fill-progress {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* 翻转卡片 */
.flip-card {
  perspective: 1000px;
  margin-bottom: 8px;
}

.fill-input-wrap {
  margin-top: 8px;
  margin-bottom: 8px;
}

.flip-inner {
  position: relative;
  width: 100%;
  min-height: 72px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-inner.flipped { transform: rotateY(180deg); }

.flip-front, .flip-back {
  position: absolute;
  width: 100%;
  backface-visibility: hidden;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.flip-back {
  transform: rotateY(180deg);
}

/* ===== 记忆翻牌 ===== */
.memory-info {
  display: flex;
  justify-content: space-around;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.memory-info strong { color: var(--primary); }

.difficulty-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.diff-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 2px solid var(--border);
  color: var(--text-secondary);
}

.diff-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.memory-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.memory-grid.easy { grid-template-columns: repeat(4, 1fr); }
.memory-grid.medium { grid-template-columns: repeat(4, 1fr); }
.memory-grid.hard { grid-template-columns: repeat(6, 1fr); }

.memory-card {
  aspect-ratio: 3/4;
  position: relative;
  cursor: pointer;
}

.memory-card-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.4s;
  transform-style: preserve-3d;
}

.memory-card.flipped .memory-card-inner,
.memory-card.face-up .memory-card-inner,
.memory-card.matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card.matched {
  pointer-events: none;
  opacity: 1;
}

.memory-card.matched .memory-face.front {
  border-color: var(--success);
  background: #E8F7EE;
}

.memory-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  font-size: 0.7rem;
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

.memory-face.back {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1.2rem;
}

.memory-face.front {
  transform: rotateY(180deg);
  background: var(--bg-card);
  border: 2px solid var(--border);
  color: var(--text);
}

.memory-grid.hard .memory-face { font-size: 0.55rem; padding: 4px; }

/* ===== 结果页 ===== */
.result-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
}

.result-score {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.result-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.result-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

/* ===== 进度图表 ===== */
.chart-wrap {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.chart-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.accuracy-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 80px;
}

.chart-bar {
  flex: 1;
  background: var(--primary-light);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  position: relative;
  transition: height 0.3s;
}

.chart-bar .bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  border-radius: 4px 4px 0 0;
  transition: height 0.3s;
}

/* ===== 底部导航 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  padding: 6px 0 calc(6px + var(--safe-bottom));
  z-index: 200;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.05);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px;
  font-size: 0.65rem;
  color: var(--text-muted);
  background: none;
  transition: color 0.2s;
}

.nav-item.active { color: var(--primary); }
.nav-item .nav-icon { font-size: 1.3rem; }

/* ===== 页脚 ===== */
.hint-tip {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.hint-tip strong { color: var(--primary); font-weight: 600; }

.btn-next {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 12px;
  display: none;
}

.btn-next.show { display: block; }

.fill-attempt-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.wrongbook-btn {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 16px;
  background: var(--primary-light);
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.word-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.profile-modal {
  position: fixed;
  inset: 0;
  background: rgba(44, 62, 80, 0.5);
  z-index: 1500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

.profile-modal.hidden { display: none; }

.profile-modal-panel {
  background: var(--bg-card);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
}

.avatar-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
  justify-content: center;
}

.avatar-option {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  background: var(--primary-light);
  border: 2px solid transparent;
}

.avatar-option.selected { border-color: var(--primary); }

.profile-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  margin-top: 8px;
}

.memory-preview-banner {
  text-align: center;
  padding: 10px;
  background: var(--warning);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.memory-card.face-up .memory-card-inner { transform: rotateY(180deg); }
.memory-card.matched { pointer-events: none; }
.memory-card.matched .memory-card-inner { transform: rotateY(180deg); }

.vocab-mode-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.vocab-mode-badge strong { color: var(--primary); }

.vocab-mode-badge a {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer {
  text-align: center;
  padding: 4px 0 calc(40px + var(--safe-bottom));
  color: var(--text-muted);
  font-size: 0.75rem;
}

.footer-group {
  background: linear-gradient(135deg, #F0EDE8 0%, #E8F2F5 100%);
  border-radius: var(--radius);
  padding: 14px;
  margin: 0 0 6px;
  text-align: center;
  border: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
}

/* ===== 称号解锁庆祝 ===== */
.title-celebration {
  position: fixed;
  inset: 0;
  background: rgba(44, 62, 80, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.5s ease;
}

.title-celebration.hidden { display: none; }

.celebration-content {
  text-align: center;
  color: #fff;
  animation: celebratePop 0.8s ease;
}

@keyframes celebratePop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.celebration-emoji { font-size: 4rem; margin-bottom: 16px; }
.celebration-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.celebration-sub { font-size: 0.9rem; opacity: 0.8; }

.celebration-close {
  margin-top: 32px;
  padding: 10px 32px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 24px;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.3);
}

/* 彩纸动画 */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  z-index: 2001;
  animation: confettiFall 3s ease forwards;
  pointer-events: none;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ===== 开发者工具警告 ===== */
.dev-warning {
  position: fixed;
  inset: 0;
  background: #2C3E50;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  text-align: center;
  padding: 32px;
  font-size: 1.1rem;
}

.dev-warning.show { display: flex; }

/* ===== 响应式 ===== */
@media (min-width: 481px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== 让双栏卡片在小屏幕上也能正常显示 ===== */
.about-tool .about-cards {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.about-tool .about-card {
  flex: 1;
  min-width: 130px;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

/* ===== 分页样式 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  margin-top: 8px;
}

.page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 80px;
  text-align: center;
}

/* ===== 分享学习成果卡片 ===== */
.share-card-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.share-templates {
  margin-bottom: 14px;
}

.share-template-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.template-tab {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.template-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.share-card-preview {
  background: linear-gradient(135deg, #FFF5E6 0%, #FFE4C9 100%);
  border-radius: var(--radius);
  padding: 12px;
}

.share-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2C3E50;
  text-align: left;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #E8E8E8;
}

.share-card-inner {
  background: #fff;
  border-radius: 16px;
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.share-header {
  padding: 16px;
  border-bottom: 1px solid #F5F5F5;
}

.share-brand {
  font-size: 11px;
  color: #999;
  display: block;
  margin-bottom: 4px;
}

.share-tool-title {
  font-size: 18px;
  font-weight: 800;
  color: #2C3E50;
}

.share-content {
  padding: 24px 20px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.share-trophy-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 14px;
  margin-top: -10px;
  background: transparent;
  border: none;
}

.template-title .share-content {
  padding-top: 16px;
}

.share-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.share-flame-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 14px;
  margin-top: -10px;
}

.template-streak .share-content {
  padding-top: 16px;
}

.share-text-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.share-main-text {
  font-size: 16px;
  color: #555;
}

.share-highlight {
  font-size: 28px;
  font-weight: 800;
  color: #FF6B35;
}

.template-title .share-title-name {
  font-size: 32px;
  font-weight: 800;
  color: #FF6B35;
  margin: 8px 0;
}

.share-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.share-title-desc {
  font-size: 16px;
  color: #555;
}

.share-user-info {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.template-streak .share-streak-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.template-streak .share-streak-desc {
  font-size: 16px;
  color: #555;
}

.template-streak .share-streak-highlight {
  font-size: 32px;
  font-weight: 800;
  color: #FF6B35;
}

.share-sub-text {
  font-size: 13px;
  color: #555;
  background: linear-gradient(135deg, #FFF5E6 0%, #FFE4C9 100%);
  padding: 8px 20px;
  border-radius: 20px;
  margin-top: 16px;
  border: 1px solid #FFD4A3;
  margin-bottom: 8px;
}

.share-sub-text-sm {
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
}

.share-streak-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 8px;
}

.share-streak-num {
  font-size: 48px;
  font-weight: 800;
  color: #FF6B35;
  line-height: 1;
}

.share-streak-unit {
  font-size: 18px;
  color: #FF6B35;
  font-weight: 600;
  margin-left: 4px;
}

.share-btn-area {
  margin-top: 8px;
}

.share-invite-text {
  display: inline-block;
  padding: 10px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
}

.share-footer {
  background: #F8F9FA;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.qr-box {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-placeholder {
  font-size: 10px;
  color: #999;
  text-align: center;
  line-height: 1.2;
}

.share-footer-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.share-tool-name {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.share-invite {
  font-size: 11px;
  color: #FF6B35;
  margin-top: 2px;
}

/* 进度模板 */
.share-progress-circle-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
}

.progress-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-percent {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #C9A87C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.progress-label {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.share-stats-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.share-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-size: 20px;
  font-weight: 700;
  color: #667eea;
}

.stat-name {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.share-stat-divider {
  color: #DDD;
  font-size: 16px;
}

.share-avatar-sm {
  width: 28px;
  height: 28px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.share-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.share-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.share-btn:hover {
  opacity: 0.9;
}

.share-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ========== 情绪智慧语录卡片 ========== */

.quote-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  border: 1px solid #F5F5F5;
  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.quote-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.quote-card.refreshing {
  opacity: 0.7;
}

.quote-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.quote-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: linear-gradient(145deg, #FFF9E6 0%, #FFEFC8 100%);
  border-radius: 10px;
  flex-shrink: 0;
}

.quote-body {
  flex: 1;
  min-width: 0;
}

.quote-text {
  font-size: 0.9rem;
  font-style: italic;
  color: #2C3E50;
  line-height: 1.7;
  letter-spacing: 0.3px;
  margin: 0;
}

.quote-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 0;
  margin-top: -14px;
}

.quote-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
}

.quote-author {
  font-size: 0.74rem;
  color: #5D6D7E;
  font-weight: 500;
}

.quote-divider {
  width: 1px;
  height: 12px;
  background: #E0E0E0;
}

.quote-source {
  font-size: 0.7rem;
  color: #95A5A6;
}



/* Toast 提示样式 */
.toast-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s;
  user-select: none;
  text-align: center;
  max-width: 80%;
  word-break: break-word;
}

/* ===== 响应式适配 ===== */

/* 超小屏幕 (小于320px) */
@media screen and (max-width: 320px) {
  :root {
    --radius: 10px;
    --radius-sm: 6px;
  }
  
  html {
    font-size: 14px;
  }
  
  .page {
    padding: 12px;
  }
  
  .menu-grid {
    gap: 8px;
  }
  
  .menu-item {
    padding: 14px 10px;
  }
  
  .promo-banner {
    padding: 12px;
    gap: 10px;
  }
  
  .promo-qr {
    width: 56px;
    height: 56px;
  }
  
  .xp-card {
    padding: 12px;
    margin: 8px 0 12px;
  }
  
  .avatar-btn {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
  
  .question-card {
    padding: 20px 16px;
    min-height: 100px;
  }
  
  .question-word {
    font-size: 1.4rem;
  }
  
  .options-grid {
    gap: 8px;
  }
  
  .option-btn {
    padding: 12px 8px;
    font-size: 0.85rem;
  }
  
  .bottom-nav {
    padding: 4px 0 calc(4px + var(--safe-bottom));
  }
  
  .nav-item .nav-icon {
    font-size: 1.1rem;
  }
  
  .share-card-preview {
    padding: 8px;
  }
  
  .share-content {
    padding: 16px 12px;
    min-height: 160px;
  }
  
  .share-trophy-img {
    width: 90px;
    height: 90px;
  }
  
  .share-flame-img {
    width: 70px;
    height: 70px;
  }
  
  .quote-card {
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 8px;
  }
  
  .quote-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  
  .quote-text {
    font-size: 0.8rem;
    line-height: 1.6;
  }
  
  .quote-author {
    font-size: 0.7rem;
  }
  
  .quote-source {
    font-size: 0.65rem;
  }
}

/* 小屏幕 (320px - 375px) */
@media screen and (min-width: 321px) and (max-width: 375px) {
  html {
    font-size: 15px;
  }
  
  .promo-qr {
    width: 64px;
    height: 64px;
  }
}

/* 中等屏幕 (376px - 480px) */
@media screen and (min-width: 376px) and (max-width: 480px) {
  html {
    font-size: 16px;
  }
}

/* 大屏幕 (大于480px) */
@media screen and (min-width: 481px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  #app {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 var(--radius) var(--radius);
  }
  
  .xp-card {
    margin: 10px 16px 16px;
  }
}

/* 横屏模式 */
@media screen and (orientation: landscape) {
  #app {
    min-height: 100vh;
    padding-bottom: calc(var(--nav-h) + 16px);
  }
  
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 高DPI屏幕 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .memory-face {
    font-size: 0.75rem;
  }
  
  .memory-grid.hard .memory-face {
    font-size: 0.6rem;
  }
}

/* 微信内置浏览器特殊适配 */
@media screen and (max-width: 480px) {
  /* 修复微信中fixed定位问题 */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: none;
  }
  
  #app {
    max-width: 100%;
    margin: 0;
  }
  
  /* 修复微信中滚动问题 */
  body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
}

/* 暗黑模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a2e;
    --bg-card: #16213e;
    --text: #eaeaea;
    --text-secondary: #a0a0a0;
    --text-muted: #6b6b6b;
    --border: #333;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
  
  .brand-header {
    background: linear-gradient(135deg, #4A7585 0%, #3A6575 100%);
  }
  
  .promo-banner {
    background: linear-gradient(135deg, #2d2d44 0%, #2a3a4a 100%);
    border-color: var(--border);
  }
  
  .quote-card {
    background: var(--bg-card);
    border-color: var(--border);
  }
  
  .quote-icon {
    background: linear-gradient(145deg, #3d3d5c 0%, #4a4a6a 100%);
  }
  
  .share-card-preview {
    background: linear-gradient(135deg, #2d2d44 0%, #3a3a5c 100%);
  }
  
  .share-card-inner {
    background: var(--bg-card);
  }
  
  .share-header {
    border-bottom-color: var(--border);
  }
  
  .share-sub-text {
    background: linear-gradient(135deg, #3d3d5c 0%, #4a4a6a 100%);
    border-color: var(--border);
  }
  
  .xp-card {
    background: var(--bg-card);
    border-color: var(--border);
  }
  
  .xp-profile-row {
    border-bottom-color: var(--border);
  }
  
  .xp-progress-wrap {
    background: rgba(91, 138, 154, 0.2);
  }
  
  .word-card {
    background: var(--bg-card);
    border-color: var(--border);
  }
  
  .question-card {
    background: var(--bg-card);
    border-color: var(--border);
  }
  
  .flip-front, .flip-back {
    background: var(--bg-card);
    border-color: var(--border);
  }
  
  .result-card {
    background: var(--bg-card);
    border-color: var(--border);
  }
  
  .multi-word-card {
    background: var(--bg-card);
    border-color: var(--border);
  }
  
  .multi-word-card.selected {
    background: rgba(91, 138, 154, 0.2);
    border-color: var(--primary);
  }
  
  .option-btn {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
  }
  
  .option-btn.correct {
    background: rgba(92, 184, 122, 0.2);
  }
  
  .option-btn.wrong {
    background: rgba(224, 122, 106, 0.2);
  }
  
  .memory-face.front {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
  }
  
  .cat-tab {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-secondary);
  }
  
  .cat-tab.active {
    color: #fff;
  }
  
  .diff-btn {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-secondary);
  }
  
  .diff-btn.active {
    background: rgba(91, 138, 154, 0.2);
  }
  
  .vocab-mode-badge {
    background: var(--bg-card);
    border-color: var(--border);
  }
  
  .search-input {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
  }
  
  .profile-input {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
  }
  
  .profile-modal-panel {
    background: var(--bg-card);
  }
  
  .modal-content {
    background: var(--bg-card);
  }
  
  .toast-message {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
  }
  
  .about-tool {
    background: var(--bg-card);
    border-color: var(--border);
  }
}


