/* ============================================
   一一的植物大战僵尸学习大本营
   主色: 草坪绿、阳光黄、天空蓝
   ============================================ */

:root {
  --grass-1: #7ed957;
  --grass-2: #5cb85c;
  --grass-3: #4cae4c;
  --grass-dark: #2d5016;
  --sky-1: #87ceeb;
  --sky-2: #b0e0e6;
  --sun: #ffd700;
  --sun-soft: #fff1a8;
  --star: #ffb800;
  --danger: #ff6b6b;
  --warn: #ff9f43;
  --info: #4fc3f7;
  --love: #ff7eb9;
  --paper: #fffdf5;
  --paper-line: #f0e6c8;
  --ink: #3a2e1f;
  --ink-soft: #6b5d4f;
  --shadow-soft: 0 4px 12px rgba(45, 80, 22, 0.12);
  --shadow-strong: 0 8px 24px rgba(45, 80, 22, 0.22);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-cn: "ZCOOL KuaiLe", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-en: "Baloo 2", "Comic Sans MS", sans-serif;
  --sidebar-w: 220px;
  --topbar-h: 64px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-cn);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 35%, var(--grass-1) 35%, var(--grass-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* ============================================
   顶部状态栏
   ============================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: linear-gradient(180deg, #fff8d6 0%, #fff0a8 100%);
  border-bottom: 4px solid var(--grass-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 50;
}

.hamburger {
  display: none;
  background: var(--grass-2);
  color: white;
  border: none;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--grass-dark);
  text-shadow: 2px 2px 0 #fff;
  flex: 1;
}

.brand-icon {
  font-size: 32px;
  animation: spin-slow 8s linear infinite;
  display: inline-block;
}

@keyframes spin-slow {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

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

.coin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: white;
  border: 3px solid var(--grass-dark);
  box-shadow: var(--shadow-soft);
  font-size: 18px;
  font-weight: 800;
}
.coin.sun { color: #d97700; }
.coin.star { color: #d97700; }
.coin-icon { font-size: 22px; }

.focus-toggle {
  cursor: pointer;
  user-select: none;
}
.focus-toggle input { display: none; }
.focus-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: white;
  border: 3px solid var(--grass-dark);
  font-size: 16px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s;
}
.focus-toggle input:checked + .focus-pill {
  background: var(--grass-dark);
  color: white;
}

/* ============================================
   主布局
   ============================================ */
.layout {
  display: flex;
  margin-top: var(--topbar-h);
  min-height: calc(100vh - var(--topbar-h));
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  border-right: 4px dashed var(--grass-dark);
  padding: 16px 12px;
  position: sticky;
  top: var(--topbar-h);
  align-self: flex-start;
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 30;
}

.sidebar-head {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border: 3px solid var(--grass-dark);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  box-shadow: var(--shadow-soft);
  width: 100%;
}
.avatar-face {
  font-size: 44px;
  line-height: 1;
}
.avatar-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--grass-dark);
  margin-top: 4px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: white;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all 0.18s;
  cursor: pointer;
}
.nav-item i {
  font-size: 22px;
}
.nav-item:hover {
  background: var(--sun-soft);
  transform: translateX(2px);
}
.nav-item.active {
  background: var(--grass-2);
  color: white;
  border-color: var(--grass-dark);
  box-shadow: var(--shadow-soft);
}

.sidebar-foot {
  margin-top: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: white;
  border: 2px solid var(--grass-dark);
  font-size: 14px;
  text-align: center;
  color: var(--ink-soft);
}
.weather {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.content {
  flex: 1;
  padding: 24px;
  min-width: 0;
}

/* ============================================
   通用卡片
   ============================================ */
.page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  border: 4px solid var(--grass-dark);
  box-shadow: var(--shadow-soft);
  font-size: 26px;
  font-weight: 800;
  color: var(--grass-dark);
  margin-bottom: 20px;
}
.page-title-icon { font-size: 32px; }

.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 3px solid var(--grass-dark);
  padding: 18px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--grass-dark);
  margin-bottom: 12px;
}
.card-title .progress-tag {
  background: var(--sun-soft);
  color: #8a6500;
  border: 2px solid var(--grass-dark);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 14px;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--paper);
  border: 2px solid var(--paper-line);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: all 0.2s;
  cursor: pointer;
}
.task-row:hover {
  border-color: var(--grass-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}
.task-row.done {
  background: #e8f5e9;
  opacity: 0.7;
}
.task-row.done .task-title { text-decoration: line-through; }
.task-checkbox {
  width: 26px; height: 26px;
  border: 3px solid var(--grass-dark);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: white;
  font-size: 18px;
  flex-shrink: 0;
}
.task-row.done .task-checkbox {
  background: var(--grass-2);
  color: white;
}
.task-info { flex: 1; min-width: 0; }
.task-title { font-size: 16px; font-weight: 700; }
.task-meta { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

.task-toggle-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--grass-dark);
  background: var(--sun);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  transition: all 0.15s;
}
.task-toggle-btn:hover { transform: scale(1.05); }
.task-toggle-btn.done {
  background: var(--grass-2);
  color: white;
}

.expanded-content {
  padding: 12px 14px 14px 50px;
  background: #fafff0;
  border: 2px dashed var(--grass-2);
  border-radius: var(--radius-md);
  margin: -4px 0 8px 0;
  font-size: 14px;
  line-height: 1.7;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(180deg, #ffe27a 0%, var(--sun) 100%);
  border: 3px solid var(--grass-dark);
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.15s;
  margin-top: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  background: #d4d4d4;
  color: #888;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: white;
  border: 2px solid var(--grass-dark);
  color: var(--grass-dark);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

.reward-tip {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ============================================
   首页
   ============================================ */
.hero-card {
  background: linear-gradient(135deg, #fffacd 0%, #ffe7a0 100%);
  border: 4px solid var(--grass-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-strong);
}
.hero-icon {
  font-size: 64px;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-text h2 { margin: 0 0 4px 0; color: var(--grass-dark); font-size: 24px; }
.hero-text p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat-tile {
  background: white;
  border-radius: var(--radius-md);
  border: 3px solid var(--grass-dark);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}
.stat-tile-icon { font-size: 32px; }
.stat-tile-value { font-size: 22px; font-weight: 800; color: var(--grass-dark); }
.stat-tile-label { font-size: 13px; color: var(--ink-soft); }

.today-missions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.mission-tile {
  background: white;
  border: 3px solid var(--grass-dark);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.18s;
}
.mission-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); }
.mission-tile-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--sun-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.mission-tile-info { flex: 1; min-width: 0; }
.mission-tile-name { font-weight: 800; font-size: 16px; }
.mission-tile-meta { font-size: 12px; color: var(--ink-soft); }
.mission-tile-bar {
  height: 6px;
  background: var(--paper-line);
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}
.mission-tile-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--grass-2), var(--grass-1));
  border-radius: 4px;
  transition: width 0.4s;
}

/* ============================================
   草坪战场 (花园)
   ============================================ */
.lawn-container {
  background: linear-gradient(180deg, var(--sky-1) 0%, #b8e3f0 30%, var(--grass-1) 30%, var(--grass-2) 100%);
  border: 4px solid var(--grass-dark);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  min-height: 380px;
}
.lawn-clouds {
  position: absolute;
  top: 8px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 12px;
  font-size: 28px;
  pointer-events: none;
}
.cloud {
  animation: drift 18s linear infinite;
  opacity: 0.85;
}
.cloud:nth-child(2) { animation-duration: 24s; animation-delay: -6s; }
.cloud:nth-child(3) { animation-duration: 30s; animation-delay: -12s; }
@keyframes drift {
  0% { transform: translateX(0); }
  50% { transform: translateX(20px); }
  100% { transform: translateX(0); }
}

.lawn-sun-pickable {
  position: absolute;
  top: 50px; right: 30px;
  font-size: 56px;
  cursor: pointer;
  filter: drop-shadow(0 0 12px #ffd700);
  animation: sun-pulse 1.4s ease-in-out infinite;
  z-index: 5;
}
/* 装饰用太阳（不可点） */
.lawn-sun {
  position: absolute;
  top: 50px; right: 30px;
  font-size: 48px;
  opacity: 0.7;
  filter: drop-shadow(0 0 10px #ffd700);
  animation: sun-pulse 2s ease-in-out infinite;
  z-index: 4;
  pointer-events: none;
}
/* 僵尸层 */
.lawn-zombies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}
.lawn-zombie {
  position: absolute;
  font-size: 36px;
  transform: translate(-50%, -50%);
  transition: left 0.6s ease;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.3));
  animation: zombie-walk 0.8s ease-in-out infinite;
}
@keyframes zombie-walk {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  25% { transform: translate(-50%, -55%) rotate(-3deg); }
  75% { transform: translate(-50%, -55%) rotate(3deg); }
}
/* 被吃的格子 */
.lawn-cell.eaten {
  background:
    linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.05) 100%),
    repeating-linear-gradient(90deg, #8b6f47 0px, #8b6f47 18px, #6b5637 18px, #6b5637 36px);
  border-color: #5a4630;
  opacity: 0.7;
  cursor: not-allowed;
  filter: grayscale(0.5);
}
.lawn-cell.eaten:hover { transform: none; }
/* 植物生长进度条 */
.plant-growth-bar {
  position: absolute;
  bottom: 3px; left: 8%; right: 8%;
  height: 6px;
  background: rgba(0,0,0,0.15);
  border-radius: 3px;
  overflow: hidden;
  z-index: 2;
}
.plant-growth-fill {
  height: 100%;
  background: linear-gradient(90deg, #7ed957, #2d5016);
  border-radius: 3px;
  transition: width 0.4s;
}
/* 浇水 / 成熟徽章 */
.plant-water-badge, .plant-mature-badge {
  position: absolute;
  top: 2px; right: 2px;
  font-size: 13px;
  z-index: 2;
  pointer-events: none;
}
.plant-water-badge { animation: water-blink 1.2s ease-in-out infinite; }
@keyframes water-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
/* 成熟植物发光 */
.lawn-cell.mature {
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.6), 0 0 12px rgba(255, 215, 0, 0.4);
  animation: mature-glow 1.5s ease-in-out infinite;
}
@keyframes mature-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.5), 0 0 10px rgba(255, 215, 0, 0.3); }
  50% { box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6); }
}
@keyframes sun-pulse {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.1) rotate(15deg); }
}

.lawn-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 60px;
}
.lawn-cell {
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.05) 100%),
    repeating-linear-gradient(90deg, var(--grass-1) 0px, var(--grass-1) 18px, var(--grass-2) 18px, var(--grass-2) 36px);
  border: 3px dashed rgba(45, 80, 22, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  user-select: none;
}
.lawn-cell:hover {
  border-color: var(--grass-dark);
  transform: scale(1.04);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.3);
}
.lawn-cell.has-plant {
  background:
    linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.05) 100%),
    repeating-linear-gradient(90deg, #4a8f3a 0px, #4a8f3a 18px, #3d7a2f 18px, #3d7a2f 36px);
  border-style: solid;
  border-color: var(--grass-dark);
  animation: plant-sway 3s ease-in-out infinite;
}
@keyframes plant-sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}
.lawn-cell.locked {
  background: #555;
  color: #999;
  cursor: not-allowed;
  filter: grayscale(0.6);
}
.lawn-cell .lock-icon {
  position: absolute;
  top: 4px; right: 4px;
  font-size: 16px;
}

.lawn-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.lawn-status {
  background: white;
  border: 3px solid var(--grass-dark);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-weight: 800;
  color: var(--grass-dark);
  font-size: 14px;
}

.shop-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--grass-dark);
  margin: 12px 0 8px;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.shop-item {
  background: white;
  border: 3px solid var(--grass-dark);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
}
.shop-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.shop-item.owned { background: #e8f5e9; }
.shop-item.disabled { opacity: 0.5; cursor: not-allowed; }
.shop-item-icon { font-size: 36px; line-height: 1; }
.shop-item-name { font-weight: 800; margin-top: 4px; font-size: 14px; }
.shop-item-cost {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--sun-soft);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
  border: 1.5px solid var(--grass-dark);
}
.shop-item.owned .shop-item-cost { background: var(--grass-2); color: white; }
.shop-item.owned .shop-item-cost::before { content: "已拥有 "; }

/* ============================================
   语文/数学/英语 - 任务卡
   ============================================ */
.tab-bar {
  display: flex;
  gap: 8px;
  background: white;
  padding: 6px;
  border-radius: 999px;
  border: 3px solid var(--grass-dark);
  margin-bottom: 16px;
  overflow-x: auto;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-pill {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: white;
  color: var(--grass-dark);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  border: none;
  font-size: 14px;
}
.tab-pill.active {
  background: linear-gradient(180deg, #ffb3b3 0%, #ff7e7e 100%);
  color: white;
  box-shadow: var(--shadow-soft);
}

/* 单词挑战 */
.word-display {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(180deg, #e0f7ff 0%, #fff 100%);
  border-radius: var(--radius-md);
  border: 3px dashed var(--info);
  margin-bottom: 12px;
}
.word-text {
  font-family: var(--font-en);
  font-size: 56px;
  font-weight: 800;
  color: #2196f3;
  text-shadow: 3px 3px 0 #b3e5fc;
  letter-spacing: 2px;
}
.word-counter { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.word-meaning { font-size: 18px; color: var(--ink); margin-top: 8px; }
.word-actions { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.word-btn {
  padding: 8px 18px;
  border: 2px solid var(--grass-dark);
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
  background: white;
}
.word-btn.know { background: var(--grass-2); color: white; }
.word-btn.dont { background: var(--info); color: white; }
.word-btn.skip { background: var(--warn); color: white; }

/* 数学计算器 */
.math-card {
  background: linear-gradient(180deg, #fff5e6 0%, #fff 100%);
  border: 3px solid var(--warn);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 12px;
}
.math-question {
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: 800;
  color: #d97700;
  margin-bottom: 16px;
}
.math-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 320px;
  margin: 0 auto;
}
.math-option {
  padding: 16px;
  background: white;
  border: 3px solid var(--grass-dark);
  border-radius: var(--radius-md);
  font-size: 28px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-en);
  transition: all 0.15s;
}
.math-option:hover { background: var(--sun-soft); transform: scale(1.05); }
.math-option.correct { background: var(--grass-2); color: white; animation: pulse 0.5s; }
.math-option.wrong { background: var(--danger); color: white; animation: shake 0.4s; }
@keyframes pulse {
  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-feedback {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 800;
  min-height: 28px;
}

/* ============================================
   宠物 / 向日葵宝宝
   ============================================ */
.pet-card {
  text-align: center;
  background: linear-gradient(180deg, #fff9e6 0%, #fff5d6 100%);
  border: 4px solid var(--grass-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  margin-bottom: 16px;
}
.pet-bubble {
  position: absolute;
  top: 12px; right: 16px;
  background: white;
  border: 3px solid var(--grass-dark);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 800;
}
.pet-bubble::after {
  content: "";
  position: absolute;
  left: -10px; top: 50%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-right-color: var(--grass-dark);
}
.pet-avatar {
  font-size: 120px;
  line-height: 1;
  margin: 8px 0;
  animation: bounce 2.5s ease-in-out infinite;
  display: inline-block;
}
.pet-name { font-size: 26px; font-weight: 800; color: var(--grass-dark); }
.pet-stage {
  display: inline-block;
  background: var(--grass-2);
  color: white;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 14px;
  margin-left: 8px;
  vertical-align: middle;
}
.pet-title { font-size: 14px; color: var(--ink-soft); margin: 4px 0 12px; }
.pet-desc { font-size: 14px; color: var(--ink-soft); margin: 0 0 16px; }

.status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  text-align: left;
}
.status-bar-label { font-size: 14px; min-width: 80px; color: var(--ink); font-weight: 700; }
.status-bar-track {
  flex: 1;
  height: 14px;
  background: #f0e6c8;
  border: 2px solid var(--grass-dark);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.status-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s;
}
.status-bar-fill.hungry { background: linear-gradient(90deg, #ff9f43, #ff6b6b); }
.status-bar-fill.clean { background: linear-gradient(90deg, #4fc3f7, #2196f3); }
.status-bar-fill.happy { background: linear-gradient(90deg, #ff7eb9, #ff6b9d); }
.status-bar-fill.growth { background: linear-gradient(90deg, var(--grass-2), var(--grass-1)); }
.status-bar-value {
  font-size: 13px;
  color: var(--ink-soft);
  min-width: 40px;
  text-align: right;
  font-weight: 800;
}

.pet-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 12px 0;
}
.pet-stat-chip {
  background: white;
  border: 2px solid var(--grass-dark);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
}

.pet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.pet-action-btn {
  padding: 12px;
  border: 3px solid;
  border-radius: var(--radius-md);
  font-weight: 800;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.15s;
  background: white;
}
.pet-action-btn:hover { transform: translateY(-2px); }
.pet-action-btn.feed { border-color: var(--warn); color: var(--warn); }
.pet-action-btn.wash { border-color: var(--info); color: var(--info); }
.pet-action-btn.play { border-color: var(--love); color: var(--love); }
.pet-action-btn.sleep { border-color: #9c7af2; color: #9c7af2; }
.pet-action-btn .cost { font-size: 11px; display: block; opacity: 0.7; }

/* ============================================
   任务表
   ============================================ */
.schedule-grid {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  gap: 4px;
  background: white;
  border: 3px solid var(--grass-dark);
  border-radius: var(--radius-md);
  padding: 8px;
  overflow-x: auto;
}
.schedule-cell {
  padding: 10px 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  background: var(--paper);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--paper-line);
}
.schedule-cell.head {
  background: var(--grass-2);
  color: white;
  border-color: var(--grass-dark);
}
.schedule-cell.class-chinese { background: #ffd6d6; }
.schedule-cell.class-math { background: #d6e9ff; }
.schedule-cell.class-english { background: #fff2cc; }
.schedule-cell.class-pe { background: #d6f5d6; }
.schedule-cell.class-art { background: #f0d6ff; }

/* ============================================
   错题罐子
   ============================================ */
.mistake-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mistake-item {
  background: white;
  border: 3px solid var(--grass-dark);
  border-left: 8px solid var(--danger);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mistake-item .q { flex: 1; font-weight: 700; }
.mistake-tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper-line);
  color: var(--ink-soft);
}

/* ============================================
   阅读
   ============================================ */
.book-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.book-card {
  background: white;
  border: 3px solid var(--grass-dark);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
}
.book-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.book-cover {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin-bottom: 8px;
  border: 2px solid var(--grass-dark);
}
.book-name { font-weight: 800; font-size: 14px; }
.book-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* ============================================
   弹窗/遮罩
   ============================================ */
.mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 40;
}
.mask.show { display: block; }

/* 飘字 */
.floaters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}
.floater {
  position: absolute;
  font-size: 28px;
  font-weight: 800;
  color: #ff8c00;
  text-shadow: 2px 2px 0 white;
  animation: float-up 1.2s ease-out forwards;
}
@keyframes float-up {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  20% { transform: translateY(-20px) scale(1.2); opacity: 1; }
  100% { transform: translateY(-120px) scale(0.8); opacity: 0; }
}

/* 庆祝 */
.celebrate {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  pointer-events: none;
}
.celebrate.show { display: flex; }
.celebrate-text {
  background: linear-gradient(180deg, #fff8d6, var(--sun));
  border: 4px solid var(--grass-dark);
  border-radius: 999px;
  padding: 16px 40px;
  font-size: 28px;
  font-weight: 800;
  color: var(--grass-dark);
  box-shadow: var(--shadow-strong);
  animation: celebrate-pop 0.6s ease-out;
}
@keyframes celebrate-pop {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
.confetti {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, var(--sun) 4px, transparent 4px),
    radial-gradient(circle at 70% 20%, var(--love) 4px, transparent 4px),
    radial-gradient(circle at 40% 70%, var(--info) 4px, transparent 4px),
    radial-gradient(circle at 80% 80%, var(--grass-2) 4px, transparent 4px),
    radial-gradient(circle at 10% 90%, var(--warn) 4px, transparent 4px);
  background-size: 100% 100%;
  animation: confetti-fall 1.5s linear forwards;
  opacity: 0.6;
}
@keyframes confetti-fall {
  0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 0 100%, 0 100%, 0 100%, 0 100%, 0 100%; }
}

/* 专注模式 - 隐藏侧边栏 & 顶栏装饰 */
body.focus-mode .sidebar { display: none; }
body.focus-mode .content { padding: 16px; }
body.focus-mode .brand-title { display: none; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
  :root { --sidebar-w: 200px; }
  .content { padding: 20px; }
}

@media (max-width: 768px) {
  .hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .brand-title { font-size: 18px; }
  .currencies .coin b { font-size: 16px; }
  .focus-pill b { display: none; }
  .sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    height: calc(100vh - var(--topbar-h));
    transform: translateX(-100%);
    transition: transform 0.25s;
    width: 240px;
  }
  .sidebar.open { transform: translateX(0); }
  .content { padding: 14px; }
  .page-title { font-size: 20px; padding: 10px 14px; }
  .page-title-icon { font-size: 24px; }
  .hero-card { padding: 16px; }
  .hero-icon { font-size: 48px; }
  .hero-text h2 { font-size: 18px; }
  .lawn-grid { gap: 6px; margin-top: 50px; }
  .lawn-cell { font-size: 32px; }
  .schedule-grid { grid-template-columns: 60px repeat(7, minmax(60px, 1fr)); }
  .schedule-cell { font-size: 11px; padding: 6px 4px; }
  .word-text { font-size: 38px; }
  .math-question { font-size: 32px; }
  .pet-avatar { font-size: 80px; }
  .pet-name { font-size: 20px; }
  .task-row { padding: 10px 12px; }
  .task-title { font-size: 15px; }
}

@media (max-width: 480px) {
  .currencies { gap: 4px; }
  .coin { padding: 4px 8px; font-size: 14px; }
  .coin-icon { font-size: 18px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-tile { padding: 10px; }
  .stat-tile-icon { font-size: 24px; }
  .stat-tile-value { font-size: 18px; }
  .today-missions { grid-template-columns: 1fr; }
  .pet-actions { grid-template-columns: 1fr 1fr; }
  .pet-action-btn { padding: 10px; font-size: 14px; }
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--grass-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--grass-dark); }

/* ============================================
   新增组件样式（学习版）
   ============================================ */

/* 语音按钮 */
.speak-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: linear-gradient(180deg, #fff 0%, #e8f5e9 100%);
  border: 2px solid var(--grass-2);
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  color: var(--grass-dark);
  transition: all 0.15s;
}
.speak-btn:hover { background: var(--sun-soft); transform: scale(1.05); }
.speak-btn:active { transform: scale(0.95); }

/* 按用户要求：隐藏所有 TTS 语音朗读按钮（保留 CD 音频播放器供线下播放） */
.card .speak-btn,
.char-card .speak-btn,
.eng-lesson .speak-btn,
.eng-today-word .speak-btn,
.eng-game .speak-btn,
.eng-game-listen { display: none !important; }

/* 打卡徽章 */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--paper-line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--grass-dark);
  white-space: nowrap;
}
.badge.done { background: var(--grass-2); color: white; }
.badge.today { background: var(--sun); color: var(--grass-dark); }

/* 提示文字 */
.hint {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  line-height: 1.6;
}

/* 拼音专区 */
.pinyin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.pinyin-card {
  background: linear-gradient(180deg, #fff 0%, #f0f8ff 100%);
  border: 2px solid var(--info);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}
.pinyin-tone {
  font-size: 18px;
  font-weight: 800;
  color: #1976d2;
  letter-spacing: 1px;
}
.pinyin-chars {
  font-size: 20px;
  margin: 6px 0;
  color: var(--ink);
}
.pinyin-char { margin: 0 2px; }

/* 生字田字格 */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.char-card {
  background: white;
  border: 2px solid var(--grass-dark);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
}
.tianzige {
  width: 80px;
  height: 80px;
  margin: 0 auto 6px;
  position: relative;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(45,80,22,0.35) 49.5%, rgba(45,80,22,0.35) 50.5%, transparent 50.5%),
    linear-gradient(180deg, transparent 49.5%, rgba(45,80,22,0.35) 49.5%, rgba(45,80,22,0.35) 50.5%, transparent 50.5%);
  background-color: #fffdf5;
  border: 2px solid var(--grass-dark);
}
.tz-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.char-pinyin {
  font-size: 14px;
  font-weight: 700;
  color: #1976d2;
}
.char-words {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 4px 0;
  line-height: 1.5;
}
.char-meta {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 6px;
}

/* 古诗 */
.poem-block {
  background: linear-gradient(180deg, #fffdf5 0%, #fdf6e3 100%);
  border: 2px dashed var(--grass-2);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-bottom: 12px;
}
.poem-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--grass-dark);
  margin-bottom: 12px;
}
.poem-lines {
  font-size: 20px;
  line-height: 2;
  color: var(--ink);
}
.poem-notes, .poem-meaning {
  background: #fafff0;
  border: 2px dashed var(--grass-2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.8;
}
.poem-sub {
  font-weight: 800;
  color: var(--grass-dark);
  margin-bottom: 4px;
}

/* 数学口算 */
.math-area { min-height: 200px; }
.math-start {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(180deg, #fff5e6 0%, #fff 100%);
  border: 3px dashed var(--warn);
  border-radius: var(--radius-md);
}
.math-start-icon { font-size: 56px; animation: bounce 2s infinite; }
.math-start-text { font-size: 18px; font-weight: 800; margin: 8px 0; }
.math-start-info { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }
.math-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.math-timer, .math-progress, .math-score {
  background: white;
  border: 2px solid var(--grass-dark);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 800;
  font-size: 14px;
}
.math-timer { color: var(--warn); }
.math-progress { color: var(--grass-dark); }
.math-score { color: var(--grass-2); }
.math-question-area {
  background: linear-gradient(180deg, #fff5e6 0%, #fff 100%);
  border: 3px solid var(--warn);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.math-finish {
  text-align: center;
  padding: 24px;
  background: linear-gradient(180deg, #e8f5e9 0%, #fff 100%);
  border: 3px solid var(--grass-2);
  border-radius: var(--radius-md);
}
.math-finish-icon { font-size: 64px; }
.math-finish-title { font-size: 24px; font-weight: 800; color: var(--grass-dark); margin: 8px 0; }
.math-finish-stats { font-size: 16px; margin: 8px 0 16px; line-height: 1.8; }

/* 题量选择 */
.math-count-pick {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}
.math-count-btn {
  padding: 8px 20px;
  border: 2px solid var(--grass-dark);
  border-radius: 999px;
  background: white;
  font-weight: 800;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.15s;
}
.math-count-btn.active {
  background: var(--grass-2);
  color: white;
  box-shadow: var(--shadow-soft);
}

/* 应用题 */
.word-problem {
  background: #fffdf5;
  border: 2px solid var(--grass-dark);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.wp-title { font-size: 13px; font-weight: 800; color: var(--grass-dark); margin-bottom: 6px; }
.wp-q { font-size: 16px; line-height: 1.6; margin-bottom: 10px; }
.wp-answer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wp-input {
  width: 90px;
  padding: 8px 12px;
  border: 3px solid var(--grass-dark);
  border-radius: var(--radius-sm);
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  font-family: var(--font-en);
}
.wp-expl {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f0f8ff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #1976d2;
  line-height: 1.6;
}

/* 标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  padding: 4px 12px;
  background: white;
  border: 2px solid var(--grass-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

/* 作业表单 */
.hw-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hw-form input, .hw-form select {
  padding: 10px 12px;
  border: 2px solid var(--grass-dark);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: white;
}
.hw-form input:focus, .hw-form select:focus { outline: 2px solid var(--sun); }

/* 课程表行 */
.sched-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--paper);
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
.sched-time { font-size: 13px; color: var(--ink-soft); min-width: 90px; }
.sched-subject { font-size: 15px; font-weight: 700; }
.card.today { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(255,215,0,0.3); }

/* 响应式补充 */
@media (max-width: 480px) {
  .pinyin-grid { grid-template-columns: repeat(2, 1fr); }
  .char-grid { grid-template-columns: repeat(3, 1fr); }
  .tianzige { width: 64px; height: 64px; }
  .tz-inner { font-size: 40px; }
  .math-head { justify-content: center; }
  .poem-lines { font-size: 17px; }
}

/* ============================================
   英语同步营
   ============================================ */
.eng-hw-group {
  border: 2px solid var(--grass-dark);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 10px;
  background: var(--paper);
}
.eng-hw-group-head {
  font-weight: 800;
  color: var(--grass-dark);
  font-size: 15px;
  margin-bottom: 8px;
}
.eng-hw-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  background: white;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  border: 1.5px solid var(--paper-line);
}
.eng-hw-item.done { opacity: 0.6; background: #e8f5e9; }
.eng-hw-item .task-checkbox { margin-top: 2px; }
.eng-hw-info { flex: 1; min-width: 0; }
.eng-hw-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.hw-type-tag {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--sun-soft);
  border: 1.5px solid var(--grass-dark);
  font-weight: 700;
}
.hw-cd-tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e3f2fd;
  color: #1976d2;
  font-weight: 700;
}
.eng-hw-text { font-size: 14px; line-height: 1.5; }

/* 今日单词 */
.eng-today-words {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.eng-today-word {
  background: white;
  border: 2px solid var(--grass-dark);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eng-today-en { font-family: var(--font-en); font-weight: 800; font-size: 18px; color: #2196f3; flex: 1; }
.eng-today-m { font-size: 13px; color: var(--ink-soft); }

/* 四步按钮 */
.eng-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.eng-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  background: white;
  border: 2px solid var(--grass-dark);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  transition: all 0.15s;
}
.eng-step:hover { background: var(--sun-soft); transform: translateY(-2px); }
.eng-step-icon { font-size: 28px; }
.eng-step-desc { font-size: 11px; color: var(--ink-soft); font-weight: 400; }

/* 默写测试 */
.spell-area { margin-bottom: 12px; }
.spell-title { font-weight: 800; color: var(--grass-dark); margin-bottom: 8px; }
.spell-rows { display: flex; flex-direction: column; gap: 8px; }
.spell-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.spell-hint { font-size: 16px; font-weight: 700; min-width: 70px; }
.spell-input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid var(--grass-dark);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: var(--font-en);
}
.spell-actions { margin-top: 10px; }
.spell-result {
  margin-top: 10px;
  padding: 10px 14px;
  background: #e8f5e9;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--grass-dark);
}

/* 单词本 */
.eng-topic { margin-bottom: 14px; }
.eng-topic-head {
  font-weight: 800;
  color: var(--grass-dark);
  font-size: 16px;
  margin-bottom: 8px;
}
.eng-topic-words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.eng-vocab-word {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: white;
  border: 1.5px solid var(--grass-dark);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.eng-vocab-word:hover { background: var(--sun-soft); transform: scale(1.05); }
.eng-vocab-en { font-family: var(--font-en); font-weight: 800; color: #2196f3; }
.eng-vocab-m { font-size: 12px; color: var(--ink-soft); }

@media (max-width: 480px) {
  .eng-steps { grid-template-columns: repeat(2, 1fr); }
  .eng-today-words { grid-template-columns: repeat(2, 1fr); }
}

/* CD 音频库 */
.cd-list { display: flex; flex-direction: column; gap: 8px; }
.cd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--paper);
  border: 2px solid var(--grass-dark);
  border-radius: var(--radius-md);
}
.cd-icon { font-size: 28px; }
.cd-id { font-weight: 800; color: var(--grass-dark); }
.cd-label { font-size: 12px; color: var(--ink-soft); }
.cd-play {
  padding: 8px 16px;
  background: var(--grass-2);
  color: white;
  border: 2px solid var(--grass-dark);
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  font-size: 13px;
}
.cd-play:hover { background: var(--grass-dark); }
.cd-play-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--grass-2);
  color: white;
  border: 2px solid var(--grass-dark);
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
}

/* 粘贴链接表单 */
.cd-link-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.cd-link-form input {
  flex: 1;
  min-width: 140px;
  padding: 8px 12px;
  border: 2px solid var(--grass-dark);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: white;
}

/* 数据同步 */
.sync-area {
  width: 100%;
  min-height: 70px;
  padding: 10px 12px;
  border: 2px solid var(--grass-dark);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: monospace;
  resize: vertical;
  margin-bottom: 8px;
  background: white;
}

/* 体育：羽毛球 */
.bd-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.bd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--paper);
  border: 2px solid var(--grass-dark);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
}
.bd-item:hover { transform: translateX(2px); }
.bd-item.done { background: #e8f5e9; opacity: 0.85; }
.bd-item.done .bd-name { text-decoration: line-through; }
.bd-check {
  width: 30px; height: 30px;
  border: 3px solid var(--grass-dark);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: white;
  font-weight: 800;
  flex-shrink: 0;
}
.bd-item.done .bd-check { background: var(--grass-2); color: white; }
.bd-info { flex: 1; min-width: 0; }
.bd-name { font-weight: 800; font-size: 15px; }
.bd-desc { font-size: 12px; color: var(--ink-soft); }
.bd-progress { font-size: 13px; color: var(--grass-dark); font-weight: 700; text-align: right; }

/* 体育：跳绳 */
.rope-input {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.rope-input input {
  flex: 1;
  padding: 12px 14px;
  border: 3px solid var(--grass-dark);
  border-radius: var(--radius-md);
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-en);
  text-align: center;
}
.rope-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, #fff8d6 0%, #ffec99 100%);
  border: 3px solid var(--grass-dark);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 12px;
}
.rope-count { font-size: 56px; font-weight: 800; color: var(--grass-dark); font-family: var(--font-en); }
.rope-label { font-size: 16px; color: var(--ink-soft); }
.rope-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  font-size: 14px;
  border: 2px solid var(--grass-dark);
}
.rope-history-title { font-weight: 800; color: var(--grass-dark); margin-bottom: 8px; }
.rope-history { display: flex; flex-direction: column; gap: 6px; }
.rope-history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: white;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--paper-line);
}
.rope-history-date { font-size: 13px; color: var(--ink-soft); min-width: 40px; font-family: var(--font-en); }
.rope-history-bar-wrap { flex: 1; height: 14px; background: var(--paper-line); border-radius: 7px; overflow: hidden; }
.rope-history-bar { display: block; height: 100%; border-radius: 7px; transition: width 0.4s; min-width: 4px; }
.rope-history-num { font-size: 14px; font-weight: 800; color: var(--grass-dark); min-width: 40px; text-align: right; font-family: var(--font-en); }

/* 本课词句 */
.eng-lesson {
  background: white;
  border: 2px solid var(--grass-dark);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 10px;
}
.eng-lesson-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.eng-lesson-date { font-size: 12px; color: var(--ink-soft); flex: 1; }
.eng-lesson-words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.eng-lesson-sent { margin-top: 8px; }
.eng-lesson-sub {
  font-weight: 800;
  color: var(--grass-dark);
  font-size: 13px;
  margin-bottom: 4px;
}
.eng-lesson-sent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
}
.eng-lesson-audios {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* 互动闯关 */
.eng-game { min-height: 180px; }
.eng-game-start {
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(180deg, #e8f5e9 0%, #fff 100%);
  border: 3px dashed var(--grass-2);
  border-radius: var(--radius-md);
}
.eng-game-icon { font-size: 48px; animation: bounce 2s infinite; }
.eng-game-text { font-size: 16px; font-weight: 800; margin: 8px 0; }
.eng-game-info { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.eng-game-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.eng-game-prompt { text-align: center; margin-bottom: 16px; }
.eng-game-q { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.eng-game-sentence {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 800;
  color: #2196f3;
  margin-bottom: 10px;
}
.eng-game-listen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--sun);
  border: 2px solid var(--grass-dark);
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  font-size: 15px;
}
.eng-game-listen:hover { transform: scale(1.05); }
.eng-game-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
}

/* ============ 英语绘本打卡 ============ */
.reading-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.reading-stat {
  background: var(--paper);
  border: 2px solid var(--paper-line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
}
.reading-stat-num {
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 800;
  color: var(--grass-3);
  line-height: 1;
}
.reading-stat-label {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.reading-cal-title {
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--grass-dark);
  margin-bottom: 8px;
}
.reading-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.reading-cal-wd {
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 700;
  padding: 2px 0;
}
.reading-cal-cell {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1.5px solid var(--paper-line);
  border-radius: 8px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.reading-cal-cell.empty {
  background: transparent;
  border-color: transparent;
}
.reading-cal-cell.done {
  background: var(--grass-2);
  border-color: var(--grass-dark);
  color: white;
}
.reading-cal-cell.today {
  border-color: var(--sun);
  box-shadow: 0 0 0 2px var(--sun-soft);
}
.reading-cal-num {
  pointer-events: none;
}
.reading-cal-mark {
  position: absolute;
  top: 1px;
  right: 4px;
  font-size: 10px;
  font-weight: 800;
  color: white;
}
