/* 小伴 H5 - 平板端样式（iPad 横屏） */
.app-container {
  display: flex; height: 100vh; width: 100vw; overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 72px; background: var(--bg-card); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; padding: 20px 0; flex-shrink: 0;
}
.sidebar-logo {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 30px; box-shadow: 0 4px 12px var(--primary-glow); cursor: pointer;
}
.sidebar-logo svg { width: 22px; height: 22px; fill: white; }
.sidebar-nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sidebar-item {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; cursor: pointer; transition: all 0.2s; opacity: 0.4;
}
.sidebar-item.active { background: var(--primary-light); opacity: 1; }
.sidebar-item:hover { opacity: 0.7; }
.sidebar-icon { width: 22px; height: 22px; }
.sidebar-icon svg { width: 100%; height: 100%; fill: var(--text-body); }
.sidebar-item.active .sidebar-icon svg { fill: var(--primary-dark); }
.sidebar-label { font-size: 9px; color: var(--text-title); font-weight: 500; }
.sidebar-bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sidebar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #F09030);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden;
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-avatar svg { width: 20px; height: 20px; fill: white; }

/* ===== MAIN LAYOUT ===== */
.main-content { flex: 1; display: flex; overflow: hidden; }
.left-panel { flex: 1; padding: 28px 32px; overflow-y: auto; display: flex; flex-direction: column; }
.right-panel {
  width: 380px; padding: 28px 24px; background: var(--bg-sidebar);
  border-left: 1px solid var(--border-light); overflow-y: auto; display: flex; flex-direction: column;
}

/* ===== TOP BAR ===== */
.top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.greeting-row { display: flex; align-items: center; gap: 10px; }
.greeting { font-size: 26px; font-weight: 700; color: var(--text-title); letter-spacing: -0.5px; }
.greeting-sub { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.date-display {
  font-size: 14px; color: var(--text-secondary); background: var(--bg-card);
  padding: 8px 16px; border-radius: 12px; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px;
}
.date-display svg { width: 16px; height: 16px; fill: var(--text-secondary); }
.add-task-btn {
  background: var(--primary); color: white; border: none; padding: 10px 20px;
  border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 12px var(--primary-glow);
  transition: all 0.2s;
}
.add-task-btn svg { width: 16px; height: 16px; fill: white; }
.add-task-btn:active { transform: scale(0.97); }

/* ===== TASK COLUMNS ===== */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; flex: 1; }
.task-column { display: flex; flex-direction: column; }
.column-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.column-title { font-size: 16px; font-weight: 700; color: var(--text-title); display: flex; align-items: center; gap: 8px; }
.column-title svg { width: 20px; height: 20px; }
.column-count { font-size: 12px; color: var(--text-secondary); background: var(--border-light); padding: 2px 10px; border-radius: 10px; }

/* ===== TASK CARD ===== */
.task-card {
  background: var(--bg-card); border-radius: 14px; padding: 14px 16px;
  margin-bottom: 10px; display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); transition: all 0.2s; cursor: default;
}
.task-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.task-info { flex: 1; min-width: 0; }
.task-title { font-size: 14px; font-weight: 600; color: var(--text-title); }
.task-time { font-size: 11px; color: var(--text-placeholder); margin-top: 3px; }
.task-check {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 0.2s; cursor: pointer;
}
.task-check svg { width: 12px; height: 12px; fill: transparent; transition: fill 0.2s; }
.task-check:hover { border-color: var(--primary); }
.task-check.checked { background: var(--primary); border-color: var(--primary); }
.task-check.checked svg { fill: white; }
.task-card.completed { opacity: 0.4; }
.task-card.completed .task-title { text-decoration: line-through; }
.task-actions { display: flex; gap: 4px; opacity: 1; transition: opacity 0.2s; }
.task-action-btn {
  width: 28px; height: 28px; border-radius: 6px; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; background: transparent;
}
.task-action-btn svg { width: 14px; height: 14px; fill: var(--text-placeholder); }
.task-action-btn:hover { background: var(--border-light); }
.task-action-btn.delete:hover { background: var(--red-light); }
.task-source-tag { background: rgba(74,175,133,0.12); color: #4AAF85; padding: 1px 6px; border-radius: 4px; font-size: 10px; margin-left: 4px; }
.icon-wrap { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.task-action-btn.delete:hover svg { fill: var(--red); }

.empty-state {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; opacity: 0.3; padding: 20px;
}

/* ===== BUDDY SECTION ===== */
.buddy-section {
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, var(--primary-lighter) 0%, var(--primary-light) 70%, #D5EFE0 100%);
  border-radius: 20px; padding: 24px 20px 20px; position: relative; overflow: hidden;
}
.buddy-deco-1 { position: absolute; width: 80px; height: 80px; background: var(--primary); border-radius: 50%; top: -20px; right: -20px; opacity: 0.06; }
.buddy-deco-2 { position: absolute; width: 40px; height: 40px; background: var(--primary-dark); border-radius: 8px; bottom: 10px; left: 15px; opacity: 0.06; transform: rotate(20deg); }
.fox-3d {
  width: 120px; height: 120px; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  animation: float 3s ease-in-out infinite; cursor: pointer;
}
.fox-3d img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1)); }
.fox-shadow { width: 60px; height: 10px; background: radial-gradient(ellipse, rgba(107,197,160,0.12) 0%, transparent 70%); border-radius: 50%; margin: -4px auto 8px; }
.buddy-name { font-size: 18px; font-weight: 700; color: var(--text-title); text-align: center; }
.buddy-tag { font-size: 11px; color: var(--gold); background: var(--gold-light); padding: 3px 12px; border-radius: 10px; margin-top: 4px; font-weight: 500; }

/* Level */
.level-card {
  background: var(--bg-card); border-radius: 14px; padding: 14px 16px;
  border: 1px solid var(--border); margin-top: 16px;
}
.level-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.level-label { font-size: 14px; font-weight: 700; color: var(--text-title); }
.level-detail { font-size: 11px; color: var(--text-secondary); }
.level-bar { height: 6px; background: #E0EDE0; border-radius: 3px; overflow: hidden; }
.level-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); border-radius: 3px; transition: width 0.5s; }
.level-exp { font-size: 10px; color: var(--text-placeholder); margin-top: 4px; text-align: right; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stat-box { background: var(--bg-card); border-radius: 12px; padding: 12px 8px; text-align: center; border: 1px solid var(--border); }
.stat-num { font-size: 20px; font-weight: 700; color: var(--text-title); }
.stat-num span { font-size: 12px; font-weight: 400; color: var(--text-placeholder); }
.stat-label { font-size: 10px; color: var(--text-secondary); margin-top: 2px; }

/* Reward Card */
.reward-card {
  background: var(--primary-lighter); border-radius: 14px; padding: 14px 16px;
  border: 1px solid var(--border); margin-top: 12px;
}
.reward-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.reward-title { font-size: 13px; font-weight: 700; color: var(--primary-dark); display: flex; align-items: center; gap: 6px; }
.reward-items { display: flex; flex-direction: column; gap: 6px; }
.reward-item { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.reward-lv { min-width: 36px; height: 20px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: white; }
.lv-green { background: var(--primary); }
.lv-blue { background: var(--blue); }
.lv-orange { background: var(--accent); }
.reward-name { color: var(--text-body); flex: 1; }

/* Buddy Actions */
.buddy-actions { display: flex; gap: 10px; margin-top: 14px; }
.action-btn {
  flex: 1; padding: 10px 0; border-radius: 12px; font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 6px; transition: all 0.2s; border: none;
}
.action-btn svg { width: 16px; height: 16px; }
.action-btn:active { transform: scale(0.97); }
.action-btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 12px var(--primary-glow); }
.action-btn-primary svg { fill: white; }
.action-btn-secondary { background: var(--bg-card); color: var(--text-title); border: 1.5px solid var(--border); }
.action-btn-secondary svg { fill: var(--text-body); }

/* ===== CALENDAR ===== */
.cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cal-month { font-size: 22px; font-weight: 700; color: var(--text-title); display: flex; align-items: center; gap: 8px; }
.cal-month svg { width: 20px; height: 20px; fill: var(--primary); }
.cal-nav { display: flex; gap: 8px; }
.cal-nav-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cal-nav-btn svg { width: 14px; height: 14px; fill: var(--text-secondary); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 24px; }
.cal-wd { text-align: center; font-size: 12px; color: var(--text-placeholder); padding: 8px 0; font-weight: 500; }
.cal-d { text-align: center; padding: 10px 0; font-size: 14px; color: var(--text-title); border-radius: 10px; position: relative; cursor: pointer; transition: background 0.2s; }
.cal-d:hover { background: var(--primary-lighter); }
.cal-d.today { background: var(--primary); color: #FFF; font-weight: 700; }
.cal-d.selected { background: var(--primary-light); font-weight: 700; }
.cal-d .dot { width: 4px; height: 4px; background: var(--warning); border-radius: 50%; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); }
.cal-d.today .dot { background: #FFF; }
.cal-d.empty { color: transparent; pointer-events: none; }

/* ===== MEDALS ===== */
.medal-top { display: flex; gap: 12px; margin-bottom: 20px; }
.medal-summary-card { flex: 1; background: var(--bg-card); border-radius: 14px; padding: 14px 12px; text-align: center; border: 1px solid var(--border); }
.medal-num { font-size: 26px; font-weight: 700; color: var(--primary); }
.medal-label { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.medal-category { margin-bottom: 18px; }
.medal-cat-title { font-size: 15px; font-weight: 700; color: var(--text-title); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.medal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.medal-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; background: var(--bg-card); border-radius: 16px; border: 1px solid var(--border); position: relative; }
.medal-item.locked { opacity: 0.4; }
.medal-icon-wrap { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.medal-icon-wrap svg { width: 26px; height: 26px; }
.medal-name { font-size: 11px; font-weight: 600; color: var(--text-title); text-align: center; }
.medal-desc { font-size: 9px; color: var(--text-secondary); text-align: center; }
.medal-lock { position: absolute; top: 6px; right: 6px; }
.medal-lock svg { width: 12px; height: 12px; fill: var(--text-placeholder); }
.medal-progress { width: 100%; height: 3px; background: #E0EDE0; border-radius: 2px; overflow: hidden; margin-top: 2px; }
.medal-progress-fill { height: 100%; border-radius: 2px; background: var(--primary); }

/* ===== AI CHAT ===== */
.chat-container { display: flex; flex-direction: column; height: 100%; flex: 1; }
.chat-header {
  padding: 16px 24px; background: var(--bg-card); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.chat-back { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: white; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.chat-back svg { width: 18px; height: 18px; fill: var(--text-body); }
.chat-title { font-size: 18px; font-weight: 700; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px 32px; display: flex; flex-direction: column; gap: 16px; }
.chat-bubble { max-width: 70%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.6; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-bubble.user { align-self: flex-end; background: var(--primary); color: white; border-bottom-right-radius: 4px; }
.chat-bubble.assistant { align-self: flex-start; background: var(--bg-card); color: var(--text-body); border: 1px solid var(--border); border-bottom-left-radius: 4px; white-space: pre-wrap; word-break: break-word; }
.chat-input-area {
  padding: 16px 24px; background: var(--bg-card); border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: center; flex-shrink: 0;
}
.chat-input {
  flex: 1; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--border);
  font-size: 14px; outline: none; font-family: inherit; resize: none;
  max-height: 80px; min-height: 44px;
}
.chat-input:focus { border-color: var(--primary); }
.chat-send {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.chat-send svg { width: 20px; height: 20px; fill: white; }
.chat-voice {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg-card);
  border: 1.5px solid var(--border); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.chat-voice svg { width: 20px; height: 20px; fill: var(--text-secondary); }
.chat-voice.recording { background: var(--red-light); border-color: var(--red); }
.chat-voice.recording svg { fill: var(--red); }

/* 语音输入模式 */
.chat-voice-mode {
  display: flex; align-items: center; gap: 16px; width: 100%; justify-content: center;
}
.chat-voice-main {
  width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #6BC5A0, #4AAF85);
  border: none; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  box-shadow: 0 4px 20px rgba(74,175,133,0.35);
  transition: all 0.2s;
}
.chat-voice-main:active { transform: scale(1.08); box-shadow: 0 6px 28px rgba(74,175,133,0.5); }
.chat-voice-main svg { width: 28px; height: 28px; fill: white; }
.chat-voice-main .voice-btn-label { font-size: 10px; color: white; font-weight: 600; }
.chat-voice-main.recording { background: linear-gradient(135deg, #FF6B6B, #EF5350); box-shadow: 0 4px 20px rgba(239,83,80,0.4); animation: pulse 1.2s infinite; }
.chat-voice-sm {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg-card);
  border: 1.5px solid var(--border); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.chat-voice-sm svg { width: 20px; height: 20px; fill: var(--text-secondary); }
/* 文字输入模式 */
.chat-text-mode {
  display: flex; gap: 10px; align-items: center; width: 100%;
}

/* ===== LOGIN SCREEN ===== */
.login-screen {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100vh; gap: 20px;
}
.login-logo {
  width: 80px; height: 80px; border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px var(--primary-glow);
}
.login-logo svg { width: 40px; height: 40px; fill: white; }
.login-title { font-size: 28px; font-weight: 700; }
.login-subtitle { font-size: 14px; color: var(--text-secondary); }
.login-btn {
  padding: 14px 40px; border-radius: 14px; background: var(--primary); color: white;
  font-size: 16px; font-weight: 600; border: none; cursor: pointer;
  box-shadow: 0 4px 16px var(--primary-glow);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .right-panel { width: 300px; }
  .medal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .main-content { flex-direction: column; }
  .right-panel { width: 100%; max-height: 40vh; border-left: none; border-top: 1px solid var(--border); }
  .content-grid { grid-template-columns: 1fr; }
}

/* ===== 错题本 (Mistakes) ===== */
.wb-filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.wb-filter-tab {
  padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; color: var(--text-secondary);
  background: var(--bg-card); border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 4px;
}
.wb-filter-tab svg { flex-shrink: 0; }
.wb-filter-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.wb-filter-tab:hover:not(.active) { background: var(--primary-light); }

.mistake-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; transition: all 0.2s;
}
.mistake-card:hover { border-color: var(--primary); }
.mistake-card.mastered { opacity: 0.5; }
.mistake-card.mastered > div:first-child > div:first-child > div:nth-child(2) {
  text-decoration: line-through;
}

.subject-tag {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600;
}

.wb-card-btn {
  background: none; border: none; cursor: pointer; font-size: 16px;
  padding: 2px 4px; border-radius: 6px; transition: transform 0.15s;
}
.wb-card-btn:hover { transform: scale(1.2); }

.wb-upload-area {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px; border: 2px dashed var(--border); border-radius: 12px;
  cursor: pointer; transition: border-color 0.2s;
}
.wb-upload-area:hover { border-color: var(--primary); }

.analysis-bar { height: 100%; border-radius: 4px; transition: width 0.6s ease; }

.suggestion-card {
  background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
  border: 1px solid #C8E6C9; border-radius: 14px; padding: 16px;
}

/* ===== 错题本分组 ===== */
.wb-subject-group {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: var(--bg-card); transition: border-color 0.2s;
}
.wb-subject-group:hover { border-color: var(--primary); }
.wb-subject-header {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  cursor: pointer; user-select: none; transition: background 0.15s;
}
.wb-subject-header:hover { background: var(--bg-hover, #f5f5f5); }
.wb-subject-title { font-size: 14px; font-weight: 700; color: var(--text-title); }
.wb-subject-count { font-size: 12px; color: var(--text-secondary); }
.wb-subject-unmastered { font-size: 11px; color: #EF5350; font-weight: 500; }
.wb-subject-toggle {
  margin-left: auto; color: var(--text-secondary); display: flex; align-items: center;
  transform: rotate(90deg); transition: transform 0.2s ease;
}
.wb-subject-group.collapsed .wb-subject-toggle { transform: rotate(0); }
.wb-subject-body {
  padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px;
}
.wb-subject-group.collapsed .wb-subject-body { display: none; }

.wb-topic-group {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: var(--bg-main, #fafafa);
}
.wb-topic-header {
  display: flex; align-items: center; gap: 6px; padding: 10px 12px;
  cursor: pointer; user-select: none; transition: background 0.15s;
}
.wb-topic-header:hover { background: var(--bg-hover, #f0f0f0); }
.wb-topic-name { font-size: 13px; font-weight: 600; color: var(--text-body); }
.wb-topic-count { font-size: 11px; color: var(--text-secondary); }
.wb-topic-badge {
  font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 8px;
}
.wb-topic-badge.weak { background: #FFF3F0; color: #EF5350; }
.wb-topic-badge.learning { background: #FFF8E1; color: #FF9800; }
.wb-topic-badge.mastered { background: #E8F5E9; color: #66BB6A; }
.wb-topic-toggle {
  margin-left: auto; transition: transform 0.2s; color: var(--text-secondary);
  display: flex; align-items: center;
}
.wb-topic-group.collapsed .wb-topic-toggle { transform: rotate(-90deg); }
.wb-topic-body {
  padding: 0 10px 10px; display: flex; flex-direction: column; gap: 6px;
}
.wb-topic-group.collapsed .wb-topic-body { display: none; }

/* ====== 启动画面 ====== */
.splash-screen {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #55b08b;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.splash-screen.splash-fade-out {
  opacity: 0; pointer-events: none;
}
.splash-logo {
  width: 160px; height: 160px;
  animation: splash-pulse 1.2s ease-in-out infinite alternate;
}
.splash-logo img {
  width: 100%; height: 100%; border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.splash-title {
  margin-top: 24px;
  font-size: 36px; font-weight: 800;
  color: #fff;
  letter-spacing: 4px;
  animation: splash-text-in 0.8s ease-out 0.3s both;
}
.splash-subtitle {
  margin-top: 8px;
  font-size: 16px; font-weight: 500;
  color: rgba(255,255,255,0.8);
  animation: splash-text-in 0.8s ease-out 0.5s both;
}
@keyframes splash-pulse {
  0% { transform: scale(0.92); }
  100% { transform: scale(1.05); }
}
@keyframes splash-text-in {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}
.agent-mode-bar {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.agent-mode-bar::-webkit-scrollbar { display: none; }
.agent-mode-item {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-page);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.agent-mode-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.agent-mode-item.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.agent-mode-item:active {
  transform: scale(0.95);
}

/* ===== 错题本 r65 补充样式 ===== */
.wb-mistake-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.wb-mistake-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.wb-mistake-card.mastered {
  opacity: 0.6;
}
.wb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.wb-section-head h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-title);
  margin: 0;
}
.wb-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wb-kpi-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.wb-kpi-grid b {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-title);
}
.wb-kpi-grid span {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.wb-weak-row {
  margin-bottom: 10px;
}
.wb-weak-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}
.wb-weak-row > div span {
  color: var(--text-body);
}
.wb-weak-row > div b {
  font-size: 11px;
  font-weight: 600;
}
.wb-weak-row > i {
  display: block;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.wb-weak-row > i > em {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}
.wb-ai-copy {
  font-size: 12px;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0;
}
.wb-mini-empty {
  font-size: 12px;
  color: var(--text-placeholder);
  text-align: center;
  padding: 16px 8px;
}
.wb-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}
.wb-time {
  font-size: 11px;
  color: var(--text-placeholder);
}
.wb-answers {
  display: flex;
  gap: 16px;
  font-size: 12px;
  margin: 8px 0;
  padding: 10px 14px;
  background: var(--bg-card);
  border-radius: 8px;
}
.wb-card-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}
.wb-card-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
