/* ============================================================
   河南省新课标·幼小衔接全能工作台 - 样式表
   儿童友好风格 · 色彩明亮 · 大字体大按钮 · 动画丰富
   ============================================================ */

/* ===== 全局重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --color-primary: #FF6B6B;
  --color-secondary: #4ECDC4;
  --color-accent: #FFE66D;
  --color-purple: #A78BFA;
  --color-pink: #FF8FAB;
  --color-blue: #6FB1FC;
  --color-green: #51CF66;
  --color-orange: #FF9F43;
  --bg-main: #F0F4FF;
  --bg-card: #FFFFFF;
  --text-main: #2D3436;
  --text-light: #636E72;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-size-base: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 28px;
  --font-size-xxl: 36px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  font-size: var(--font-size-base);
  color: var(--text-main);
  background: linear-gradient(135deg, #E0E7FF 0%, #F0F4FF 30%, #FFF5E6 70%, #FFE6F0 100%);
  min-height: 100vh;
  user-select: none;
  -webkit-user-select: none;
}

#app {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 顶部状态栏 ===== */
#topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E72 100%);
  color: white;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* 菜单切换按钮（已废弃，导航常驻显示） */
.nav-toggle-btn { display: none; }

.topbar-left { display: flex; align-items: center; }

.topbar-left .logo {
  font-size: var(--font-size-lg);
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.topbar-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.points-badge, .level-badge, .streak-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  transition: transform 0.2s;
}

.points-badge:hover, .level-badge:hover, .streak-badge:hover {
  transform: scale(1.05);
}

/* ===== 主体区域布局 ===== */
#mainBody {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* ===== 左侧导航 ===== */
#sidebar {
  width: 180px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  padding: 12px 8px;
  overflow-y: auto;
  position: sticky;
  top: 64px;
  max-height: calc(100vh - 64px);
  z-index: 90;
}

#mainNav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

#mainNav::-webkit-scrollbar { width: 4px; }
#mainNav::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 4px; }

.nav-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: none;
  background: white;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.nav-btn:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}

.nav-btn.active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-orange));
  color: white;
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.3);
}

.nav-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.nav-label {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== 遮罩层（已废弃，导航常驻显示） ===== */
.nav-overlay { display: none; }

/* ===== 页面容器 ===== */
#pageContainer {
  flex: 1;
  padding: 8px 20px 20px;
  overflow-y: auto;
  min-width: 0;
}

/* ===== 通用卡片 ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}

.card-title {
  font-size: var(--font-size-lg);
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== 仪表盘 ===== */
.dashboard-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  color: white;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.dashboard-hero h2 {
  font-size: var(--font-size-xl);
  margin-bottom: 8px;
}

.dashboard-hero .date {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 16px;
}

.hero-stats {
  display: flex;
  justify-content: space-around;
  position: relative;
  z-index: 1;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-size: var(--font-size-xxl);
  font-weight: 900;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hero-stat .label {
  font-size: 13px;
  opacity: 0.85;
}

/* 每日任务卡片 */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: all 0.25s;
  border-left: 5px solid transparent;
}

.schedule-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.schedule-item.done {
  border-left-color: var(--color-green);
  opacity: 0.75;
}

.schedule-item .time-tag {
  background: var(--color-accent);
  color: var(--text-main);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-right: 12px;
  white-space: nowrap;
}

.schedule-item .sch-icon {
  font-size: 32px;
  margin-right: 12px;
}

.schedule-item .sch-info {
  flex: 1;
}

.schedule-item .sch-name {
  font-size: 16px;
  font-weight: 700;
}

.schedule-item .sch-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
}

.schedule-item .sch-status {
  font-size: 24px;
}

/* 进度条 */
.progress-bar-wrap {
  background: #E8ECF0;
  border-radius: 20px;
  height: 14px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 20px;
  transition: width 0.5s ease;
  background: linear-gradient(90deg, var(--color-green), var(--color-secondary));
}

/* ===== 拼音模块 ===== */
.pinyin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 18px;
  border: 2px solid var(--color-purple);
  background: white;
  color: var(--color-purple);
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--color-purple);
  color: white;
}

.pinyin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.pinyin-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: all 0.2s;
  border: 3px solid transparent;
}

.pinyin-card:hover {
  border-color: var(--color-purple);
  transform: scale(1.05);
}

.pinyin-card .pinyin-text {
  font-size: var(--font-size-xl);
  font-weight: 900;
  color: var(--color-purple);
  margin-bottom: 4px;
}

.pinyin-card .pinyin-emoji {
  font-size: 28px;
}

.pinyin-card .pinyin-word {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ===== 游戏通用 ===== */
.game-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.game-title {
  font-size: var(--font-size-lg);
  font-weight: 800;
}

.game-score {
  background: var(--color-accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 15px;
}

.game-question {
  text-align: center;
  padding: 30px 16px;
}

.game-question .q-emoji {
  font-size: 48px;
  margin-bottom: 12px;
}

.game-question .q-text {
  font-size: var(--font-size-xl);
  font-weight: 800;
  margin-bottom: 20px;
}

.game-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.game-option {
  padding: 16px;
  border: 3px solid #E8ECF0;
  border-radius: var(--radius-md);
  background: white;
  font-size: var(--font-size-lg);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.game-option:hover {
  border-color: var(--color-blue);
  background: #F0F7FF;
}

.game-option.correct {
  border-color: var(--color-green);
  background: #E8F8E8;
  animation: bounce 0.5s;
}

.game-option.wrong {
  border-color: var(--color-primary);
  background: #FFE8E8;
  animation: shake 0.5s;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* ===== 数学模块 ===== */
.math-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.math-tab {
  padding: 8px 18px;
  border: 2px solid var(--color-blue);
  background: white;
  color: var(--color-blue);
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

.math-tab.active {
  background: var(--color-blue);
  color: white;
}

.math-flashcard {
  background: linear-gradient(135deg, #6FB1FC, #4ECDC4);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  color: white;
  box-shadow: var(--shadow-soft);
}

.math-flashcard .num-display {
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
}

.math-flashcard .num-label {
  font-size: 18px;
  margin-top: 12px;
  opacity: 0.9;
}

/* ===== 英语模块 ===== */
.eng-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.eng-tab {
  padding: 8px 18px;
  border: 2px solid var(--color-pink);
  background: white;
  color: var(--color-pink);
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

.eng-tab.active {
  background: var(--color-pink);
  color: white;
}

.letter-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 3px solid var(--color-pink);
}

.letter-card .big-letter {
  font-size: 100px;
  font-weight: 900;
  color: var(--color-pink);
  line-height: 1;
}

.letter-card .letter-word {
  font-size: 24px;
  font-weight: 700;
  margin-top: 8px;
}

.letter-card .letter-emoji {
  font-size: 40px;
  margin-top: 8px;
}

.speak-btn {
  background: var(--color-pink);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  font-family: inherit;
  transition: all 0.2s;
}

.speak-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 143, 171, 0.4);
}

/* ===== 故事模块 ===== */
.story-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}

.story-header {
  background: linear-gradient(135deg, #FFE66D, #FF9F43);
  padding: 20px;
  text-align: center;
  color: white;
}

.story-header .story-emoji {
  font-size: 48px;
}

.story-header .story-title {
  font-size: var(--font-size-lg);
  font-weight: 800;
  margin-top: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.story-content {
  padding: 20px;
  font-size: 16px;
  line-height: 2;
  color: var(--text-main);
  white-space: pre-line;
}

.story-words {
  padding: 0 20px 16px;
}

.story-words-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.word-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.word-chip {
  background: #FFF3CD;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.story-actions {
  padding: 0 20px 20px;
  display: flex;
  gap: 10px;
}

/* ===== 运动模块 ===== */
.exercise-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
  transition: all 0.2s;
}

.exercise-item:hover {
  transform: translateX(4px);
}

.exercise-item .ex-emoji {
  font-size: 36px;
  margin-right: 16px;
}

.exercise-item .ex-info {
  flex: 1;
}

.exercise-item .ex-name {
  font-size: 16px;
  font-weight: 700;
}

.exercise-item .ex-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

.exercise-item .ex-duration {
  font-size: 13px;
  color: var(--color-orange);
  font-weight: 700;
}

.exercise-done-btn {
  padding: 8px 18px;
  border: none;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
}

.exercise-done-btn:not(.done) {
  background: var(--color-green);
  color: white;
}

.exercise-done-btn.done {
  background: #E8ECF0;
  color: var(--text-light);
}

/* ===== 奖励模块 ===== */
.reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.reward-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s;
  border: 3px solid transparent;
}

.reward-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.reward-card.locked {
  opacity: 0.6;
}

.reward-card .r-emoji {
  font-size: 40px;
}

.reward-card .r-name {
  font-size: 15px;
  font-weight: 700;
  margin: 8px 0;
}

.reward-card .r-cost {
  font-size: 14px;
  color: var(--color-orange);
  font-weight: 800;
  margin-bottom: 8px;
}

.reward-card .r-desc {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.redeem-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
}

.redeem-btn.can {
  background: linear-gradient(135deg, var(--color-orange), var(--color-primary));
  color: white;
}

.redeem-btn.cannot {
  background: #E8ECF0;
  color: var(--text-light);
}

/* ===== 报告模块 ===== */
.report-day {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}

.report-day-title {
  font-size: var(--font-size-lg);
  font-weight: 800;
  margin-bottom: 14px;
  text-align: center;
}

.report-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #F0F0F0;
}

.report-row:last-child {
  border-bottom: none;
}

.report-row .r-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.report-row .r-value {
  font-weight: 800;
  color: var(--color-orange);
}

.report-summary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
}

.report-summary h3 {
  font-size: var(--font-size-lg);
  margin-bottom: 16px;
}

.report-summary .big-num {
  font-size: var(--font-size-xxl);
  font-weight: 900;
}

/* ===== 按钮 ===== */
.btn {
  padding: 12px 28px;
  border: none;
  border-radius: 25px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-orange));
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--text-main);
  border: 2px solid #E8ECF0;
}

.btn-success {
  background: linear-gradient(135deg, var(--color-green), var(--color-secondary));
  color: white;
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  max-width: 90%;
  width: 420px;
  text-align: center;
  animation: popIn 0.3s;
}

.modal-content .modal-emoji {
  font-size: 60px;
  margin-bottom: 12px;
}

.modal-content .modal-title {
  font-size: var(--font-size-xl);
  font-weight: 900;
  margin-bottom: 12px;
}

.modal-content .modal-body {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(45, 52, 54, 0.92);
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  z-index: 2000;
  animation: slideDown 0.3s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.toast.hidden {
  display: none;
}

.toast.success {
  background: var(--color-green);
}

.toast.error {
  background: var(--color-primary);
}

@keyframes slideDown {
  from { transform: translate(-50%, -30px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* ===== 积分飞出动画 ===== */
.points-fly {
  position: fixed;
  font-size: 32px;
  font-weight: 900;
  color: var(--color-orange);
  pointer-events: none;
  z-index: 3000;
  animation: flyUp 1.2s ease-out forwards;
  text-shadow: 0 2px 4px rgba(255, 159, 67, 0.4);
}

@keyframes flyUp {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  20% { transform: translateY(-20px) scale(1.4); opacity: 1; }
  100% { transform: translateY(-120px) scale(1); opacity: 0; }
}

/* ===== 星星动画 ===== */
.star-burst {
  position: fixed;
  pointer-events: none;
  z-index: 3000;
  font-size: 30px;
  animation: starBurst 0.8s ease-out forwards;
}

@keyframes starBurst {
  0% { transform: scale(0) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.5) rotate(180deg); opacity: 1; }
  100% { transform: scale(2) rotate(360deg); opacity: 0; }
}

/* ===== 庆祝动画 ===== */
.celebration {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.celebration-text {
  font-size: 60px;
  font-weight: 900;
  color: var(--color-orange);
  text-shadow: 0 4px 10px rgba(255, 159, 67, 0.4);
  animation: celebrate 1.5s ease-out forwards;
}

@keyframes celebrate {
  0% { transform: scale(0) rotate(-15deg); opacity: 0; }
  30% { transform: scale(1.3) rotate(5deg); opacity: 1; }
  60% { transform: scale(1) rotate(-3deg); opacity: 1; }
  100% { transform: scale(1.5) rotate(0); opacity: 0; }
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.empty-state .empty-emoji {
  font-size: 60px;
  margin-bottom: 12px;
}

/* ===== 底部 ===== */
#footer {
  text-align: center;
  padding: 12px 8px;
  font-size: 11px;
  color: var(--text-light);
  flex-shrink: 0;
  line-height: 1.5;
}

/* ===== 响应式 ===== */
@media (max-width: 600px) {
  .nav-btn {
    padding: 10px 12px;
  }
  .nav-label {
    font-size: 14px;
  }
  .game-options {
    grid-template-columns: 1fr;
  }
  .topbar-left .logo {
    font-size: 16px;
  }
  .topbar-right {
    gap: 6px;
  }
  .points-badge, .level-badge, .streak-badge {
    font-size: 13px;
    padding: 4px 10px;
  }
}

/* ===== 手机端：侧边栏常驻显示（图标模式） ===== */
@media (max-width: 768px) {
  /* 隐藏菜单按钮，不需要了 */
  .nav-toggle-btn {
    display: none;
  }

  /* 侧边栏缩窄为图标模式，始终显示 */
  #sidebar {
    width: 64px;
    position: sticky;
    top: 56px;
    max-height: calc(100vh - 56px);
    padding: 8px 4px;
  }

  /* 导航按钮只显示图标 */
  .nav-btn {
    flex-direction: column;
    gap: 2px;
    padding: 10px 4px;
    justify-content: center;
  }
  .nav-btn:hover {
    transform: none;
  }
  .nav-btn.active {
    transform: none;
  }
  .nav-icon { font-size: 22px; }
  .nav-label {
    font-size: 9px;
    text-align: center;
    line-height: 1.1;
  }

  /* footer 在手机端隐藏文字节省空间 */
  #footer {
    display: none;
  }

  /* 页面容器 */
  #pageContainer {
    padding: 8px 10px 80px;
  }

  #app {
    max-width: 100%;
  }

  #topbar {
    padding: 10px 12px;
    border-radius: 0;
  }

  .topbar-left .logo {
    font-size: 15px;
  }

  .card {
    padding: 16px 12px;
    border-radius: 14px;
  }

  .pet-actions-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .pet-action-btn {
    padding: 10px 2px;
  }
  .pet-action-btn .pa-icon { font-size: 24px; }
  .pet-action-btn .pa-label { font-size: 11px; }

  .pet-emoji-big { font-size: 64px; }

  .pet-adopt-grid {
    grid-template-columns: 1fr;
  }

  .pet-shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .inv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-content {
    padding: 24px 18px;
    width: 92%;
  }

  .celebration-text {
    font-size: 42px;
  }
}

/* ============================================================
   宠物养成系统样式
   ============================================================ */

/* ===== 宠物子导航 ===== */
.pet-subnav {
  display: flex;
  gap: 8px;
  padding: 0 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pet-subnav::-webkit-scrollbar { display: none; }

.pet-subnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 16px;
  border: none;
  background: white;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s;
  min-width: 70px;
  box-shadow: var(--shadow-soft);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  position: relative;
  flex-shrink: 0;
}
.pet-subnav-btn span:first-child { font-size: 22px; }
.pet-subnav-btn em {
  position: absolute;
  top: 2px;
  right: 4px;
  background: var(--color-primary);
  color: white;
  font-size: 10px;
  font-style: normal;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  text-align: center;
  padding: 0 4px;
}
.pet-subnav-btn.active {
  background: linear-gradient(135deg, #A78BFA, #6FB1FC);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(167, 139, 250, 0.35);
}

/* ===== 宠物主页 ===== */
.pet-home-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}

.pet-display-area {
  text-align: center;
  padding: 30px 16px;
  background: linear-gradient(135deg, #F0F4FF, #FFF5E6);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.pet-display-area::before {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 20px;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
}

.pet-emoji-big {
  font-size: 80px;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.pet-happy .pet-emoji-big { animation: petBounce 1.5s ease-in-out infinite; }
.pet-sad .pet-emoji-big { animation: petDroop 2s ease-in-out infinite; }
.pet-sick .pet-emoji-big { animation: petShake 0.5s ease-in-out infinite; }
.pet-sleepy .pet-emoji-big { animation: petBreathe 3s ease-in-out infinite; }
.pet-normal .pet-emoji-big { animation: petIdle 3s ease-in-out infinite; }

@keyframes petBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.08); }
}
@keyframes petDroop {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(4px) rotate(-3deg); }
}
@keyframes petShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
@keyframes petBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes petIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.pet-mood-bubble {
  display: inline-block;
  background: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
  margin-top: 12px;
}

/* 宠物信息栏 */
.pet-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
}

.pet-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pet-display-name {
  font-size: 20px;
  font-weight: 800;
}

.pet-type-tag {
  background: #F0F4FF;
  color: var(--color-purple);
  padding: 3px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 700;
}

.pet-level-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pet-level-badge {
  background: linear-gradient(135deg, #A78BFA, #6FB1FC);
  color: white;
  padding: 4px 14px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 800;
}

.pet-age {
  font-size: 13px;
  color: var(--text-light);
}

/* 经验条 */
.pet-exp-section {
  margin-bottom: 16px;
}

.pet-exp-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
  font-weight: 600;
}

.pet-exp-bar {
  height: 10px;
}

/* 属性条 */
.pet-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.pet-stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.psr-icon { font-size: 18px; width: 24px; text-align: center; }
.psr-label { font-size: 13px; font-weight: 600; width: 42px; color: var(--text-light); }
.psr-bar-wrap {
  flex: 1;
  height: 12px;
  background: #E8ECF0;
  border-radius: 6px;
  overflow: hidden;
}
.psr-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease;
}
.psr-value {
  font-size: 13px;
  font-weight: 800;
  width: 30px;
  text-align: right;
}

.pet-health-warning {
  background: #FFF0F0;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

/* 互动按钮 */
.pet-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.pet-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 4px;
  border: none;
  background: linear-gradient(135deg, #FFF5E6, #FFE6F0);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  box-shadow: var(--shadow-soft);
}

.pet-action-btn:active {
  transform: scale(0.95);
}

.pet-action-btn .pa-icon { font-size: 28px; }
.pet-action-btn .pa-label { font-size: 12px; font-weight: 700; color: var(--text-main); }

/* 快速喂食 */
.pet-quick-feed {
  background: #F8F9FF;
  border-radius: var(--radius-md);
  padding: 14px;
}

.pqf-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
}

.pqf-items {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pqf-items::-webkit-scrollbar { display: none; }

.pqf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 12px;
  background: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 60px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 2px solid transparent;
  flex-shrink: 0;
}
.pqf-item:active { transform: scale(0.95); border-color: var(--color-orange); }

.pqf-emoji { font-size: 24px; }
.pqf-name { font-size: 11px; font-weight: 600; }
.pqf-qty {
  font-size: 10px;
  background: var(--color-orange);
  color: white;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 700;
}

.pqf-empty {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  padding: 12px;
}

.pqf-link {
  color: var(--color-purple);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* ===== 宠物切换栏 ===== */
.pet-switch-bar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.psb-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
}

.psb-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.psb-list::-webkit-scrollbar { display: none; }

.psb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 14px;
  background: #F8F9FF;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
  border: 3px solid transparent;
  flex-shrink: 0;
}
.psb-item.active {
  border-color: var(--color-purple);
  background: linear-gradient(135deg, #F0F4FF, #FFF5E6);
}

.psb-emoji { font-size: 32px; }
.psb-name { font-size: 12px; font-weight: 700; }
.psb-lv { font-size: 10px; color: var(--text-light); }

/* ===== 领养界面 ===== */
.pet-welcome-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  color: white;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.pet-welcome-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.pwc-emoji {
  font-size: 70px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  animation: petBounce 1.5s ease-in-out infinite;
}

.pet-welcome-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.pet-welcome-card p {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.pwc-points {
  margin-top: 16px;
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 800;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(4px);
}

.pet-adopt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.pet-adopt-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.25s;
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.pet-adopt-card:hover {
  border-color: var(--color-purple);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pet-adopt-card.rare {
  background: linear-gradient(135deg, #FFF9E6, #FFF3CD);
  border-color: var(--color-accent);
}

.pet-adopt-card.owned {
  opacity: 0.6;
}

.rare-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-orange));
  color: var(--text-main);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}

.owned-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--color-green);
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}

.pac-emoji {
  font-size: 56px;
  margin-bottom: 8px;
}

.pac-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pac-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.pac-evolution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pac-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 22px;
}

.pac-stage small {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 2px;
}

.pac-arrow {
  font-size: 12px;
  color: var(--text-light);
}

.pac-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-orange);
  margin-bottom: 10px;
}

.pet-adopt-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 20px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.2s;
  background: linear-gradient(135deg, var(--color-purple), var(--color-blue));
  color: white;
}

.pet-adopt-btn.cannot {
  background: #E8ECF0;
  color: var(--text-light);
}

.pet-adopt-btn:disabled {
  cursor: not-allowed;
}

/* ===== 商店界面 ===== */
.pet-shop-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pet-shop-tab {
  padding: 8px 16px;
  border: 2px solid var(--color-purple);
  background: white;
  color: var(--color-purple);
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s;
}

.pet-shop-tab.active {
  background: var(--color-purple);
  color: white;
}

.pet-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.pet-shop-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s;
  border: 3px solid transparent;
}

.pet-shop-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.pet-shop-card.locked {
  opacity: 0.55;
}

.psc-emoji { font-size: 36px; }
.psc-name { font-size: 15px; font-weight: 700; margin: 6px 0 2px; }
.psc-desc { font-size: 12px; color: var(--text-light); margin-bottom: 6px; }

.psc-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-bottom: 8px;
}

.psc-effects span {
  background: #F0F4FF;
  color: var(--color-purple);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.psc-owned {
  font-size: 11px;
  color: var(--color-green);
  font-weight: 700;
  margin-bottom: 4px;
}

.psc-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-orange);
  margin-bottom: 8px;
}

.psc-buy-btn {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
}

.psc-buy-btn.can {
  background: linear-gradient(135deg, var(--color-orange), var(--color-primary));
  color: white;
}

.psc-buy-btn.cannot {
  background: #E8ECF0;
  color: var(--text-light);
  cursor: not-allowed;
}

/* ===== 背包界面 ===== */
.inv-group-title {
  font-size: 16px;
  font-weight: 800;
  margin: 16px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #F0F0F0;
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.inv-card {
  background: #F8F9FF;
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  transition: all 0.2s;
}

.inv-emoji { font-size: 32px; }
.inv-name { font-size: 14px; font-weight: 700; margin: 4px 0 2px; }
.inv-qty {
  display: inline-block;
  background: var(--color-orange);
  color: white;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}
.inv-desc { font-size: 11px; color: var(--text-light); margin: 4px 0; }
.inv-use-btn {
  width: 100%;
  padding: 6px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-green), var(--color-secondary));
  color: white;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: all 0.2s;
}
.inv-use-btn:active { transform: scale(0.95); }
.inv-deco-tag {
  font-size: 11px;
  color: var(--text-light);
  background: #E8ECF0;
  padding: 4px 8px;
  border-radius: 10px;
  display: inline-block;
}

/* ===== 我的宠物列表 ===== */
.pet-my-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pet-my-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #F8F9FF;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.pet-my-item:hover {
  transform: translateX(4px);
}

.pmi-emoji { font-size: 36px; }

.pmi-info { flex: 1; }
.pmi-name { font-size: 16px; font-weight: 700; }
.pmi-stage { font-size: 13px; color: var(--text-light); margin-top: 2px; }

/* ===== 移动端深度优化 ===== */

@media (max-width: 380px) {
  #sidebar {
    width: 56px;
  }
  .nav-btn {
    padding: 8px 2px;
  }
  .nav-icon { font-size: 20px; }
  .nav-label { font-size: 8px; }

  .topbar-right .streak-badge { display: none; }

  .pet-shop-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 安全区适配 (iPhone X+) ===== */
@supports (padding: max(0px)) {
  #topbar {
    padding-top: max(14px, env(safe-area-inset-top));
  }
  #sidebar {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

/* ============================================================
   看图说话模块样式
   ============================================================ */
.pt-category-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pt-cat-btn {
  background: #F0F0F0;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.pt-cat-btn.active {
  background: var(--color-purple);
  color: white;
}

.pt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.pt-card {
  background: white;
  border: 2px solid #F0F0F0;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.pt-card:hover {
  border-color: var(--color-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.pt-card.seen {
  background: #F0FAF0;
  border-color: var(--color-green);
}
.pt-card-emoji {
  font-size: 40px;
  margin-bottom: 8px;
}
.pt-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}
.pt-card-cat {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}
.pt-seen-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 16px;
}

/* 看图说话详情页 */
.pt-detail {
  animation: fadeIn 0.3s ease;
}
.pt-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.pt-nav-btn {
  background: #F0F0F0;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.pt-nav-btn:hover:not(:disabled) {
  background: var(--color-purple);
  color: white;
}
.pt-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pt-picture-area {
  background: linear-gradient(135deg, #FFF9E6, #FFE6F0);
  border-radius: 18px;
  padding: 30px 20px;
  text-align: center;
  margin-bottom: 16px;
}
.pt-big-emoji {
  font-size: 72px;
  margin-bottom: 12px;
}
.pt-scene-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.pt-scene-desc {
  font-size: 15px;
  color: var(--text-light);
}

.pt-guide-box {
  background: #E8F4FD;
  border-left: 4px solid var(--color-blue, #4ECDC4);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.pt-guide-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-blue, #4ECDC4);
  margin-bottom: 6px;
}
.pt-guide-text {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.6;
}

.pt-sample-box {
  background: #FFF8E1;
  border-left: 4px solid var(--color-orange);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.pt-sample-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-orange);
  margin-bottom: 6px;
}
.pt-sample-text {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.8;
}

.pt-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   古诗词模块样式
   ============================================================ */
.poetry-progress-bar {
  width: 100%;
  height: 10px;
  background: #F0F0F0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}
.poetry-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #A78BFA, #7C3AED);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.poetry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.poetry-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 2px solid #F0F0F0;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.poetry-item:hover {
  border-color: var(--color-purple);
  transform: translateX(4px);
}
.poetry-item.recited {
  background: #F0FAF0;
  border-color: var(--color-green);
}
.poetry-item-emoji {
  font-size: 32px;
}
.poetry-item-info {
  flex: 1;
}
.poetry-item-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
}
.poetry-item-author {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
}
.poetry-item-status {
  font-size: 20px;
}

/* 古诗词详情 */
.poetry-detail {
  animation: fadeIn 0.3s ease;
}

.poetry-card-big {
  background: linear-gradient(135deg, #F3E8FF, #E0E7FF);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 16px;
}
.poetry-emoji-big {
  font-size: 48px;
  margin-bottom: 10px;
}
.poetry-title-big {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-purple);
  margin: 0 0 6px;
}
.poetry-author-big {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 18px;
}
.poetry-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.poetry-line {
  text-align: center;
}
.poetry-pinyin {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 2px;
}
.poetry-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 2px;
}
.poetry-read-btn {
  margin: 0 auto;
  display: block;
}

.poetry-explain-box {
  background: #FFF8E1;
  border-left: 4px solid var(--color-orange);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.poetry-explain-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-orange);
  margin-bottom: 6px;
}
.poetry-explain-text {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.8;
}

.poetry-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.poetry-tag {
  background: #F0F0F0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-light);
}

.poetry-quiz-hint {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-purple);
  text-align: center;
  padding: 12px;
  background: #F3E8FF;
  border-radius: 12px;
  margin: 12px 0;
  letter-spacing: 1px;
}

/* ===== 移动端新模块适配 ===== */
@media (max-width: 600px) {
  .pt-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }
  .pt-card-emoji { font-size: 32px; }
  .pt-card-title { font-size: 13px; }
  .pt-big-emoji { font-size: 56px; }
  .pt-scene-title { font-size: 19px; }
  .pt-cat-btn { padding: 6px 12px; font-size: 12px; }
  .poetry-text { font-size: 18px; }
  .poetry-title-big { font-size: 21px; }
  .pt-nav-btn { padding: 6px 10px; font-size: 12px; }
}

/* ============================================================
   认字模块样式
   ============================================================ */
.hanzi-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-light);
}

.hanzi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.hanzi-card {
  background: white;
  border: 2px solid #F0F0F0;
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.hanzi-card:hover {
  border-color: var(--color-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.hanzi-card.learned {
  background: #F0FAF0;
  border-color: var(--color-green);
}
.hanzi-learned-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  color: var(--color-green);
  font-size: 18px;
  font-weight: 900;
}
.hanzi-card-char {
  font-size: 40px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 4px;
}
.hanzi-card-pinyin {
  font-size: 14px;
  color: var(--color-purple);
  font-weight: 700;
}
.hanzi-card-word {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}
.hanzi-card-emoji {
  font-size: 24px;
  margin-top: 4px;
}

/* 认字详情页 */
.hanzi-detail {
  animation: fadeIn 0.3s ease;
}

.hanzi-big-card {
  background: linear-gradient(135deg, #E0F2FF, #F0E8FF);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  margin-bottom: 16px;
}
.hanzi-big-emoji {
  font-size: 56px;
  margin-bottom: 12px;
}
.hanzi-big-char {
  font-size: 100px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 8px;
}
.hanzi-big-pinyin {
  font-size: 24px;
  color: var(--color-purple);
  font-weight: 700;
  margin-bottom: 16px;
}
.hanzi-read-btn {
  margin: 4px 6px;
}

.hanzi-word-box {
  background: #E8F4FD;
  border-left: 4px solid var(--color-blue);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.hanzi-word-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 6px;
}
.hanzi-word-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}

.hanzi-sentence-box {
  background: #FFF8E1;
  border-left: 4px solid var(--color-orange);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.hanzi-sentence-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-orange);
  margin-bottom: 6px;
}
.hanzi-sentence-text {
  font-size: 17px;
  color: var(--text-main);
  line-height: 1.8;
  cursor: pointer;
}

.hanzi-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* 认字闯关 */
.hanzi-quiz-char {
  font-size: 72px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.2;
}

/* 认字模块移动端适配 */
@media (max-width: 600px) {
  .hanzi-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
  }
  .hanzi-card-char { font-size: 32px; }
  .hanzi-big-char { font-size: 72px; }
  .hanzi-big-emoji { font-size: 44px; }
  .hanzi-quiz-char { font-size: 56px; }
}
