/* 孩子端 UI（计划书 11.1 设计原则：大触控/图标+文字/高对比/圆角卡片） */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(160deg, #FFF7E6 0%, #FFF0D4 50%, #E8F7F0 100%);
  min-height: 100vh;
  color: #4A3728;
  font-size: 18px;
}

.app { max-width: 800px; margin: 0 auto; padding: 16px 16px 90px; }

/* 顶栏 */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-radius: 24px; padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(180,140,60,.15);
  margin-bottom: 20px;
}
.greeting { display: flex; align-items: center; gap: 14px; }
.avatar { font-size: 44px; }
.hello { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.xp-bar {
  width: 180px; height: 14px; background: #F0E6D2; border-radius: 7px; overflow: hidden;
}
.xp-fill { height: 100%; background: linear-gradient(90deg,#FFB84D,#FF8A3D); border-radius: 7px; transition: width .5s; }
.voice-btn {
  width: 56px; height: 56px; border: none; border-radius: 50%;
  background: #FFB84D; font-size: 26px; cursor: pointer;
  box-shadow: 0 3px 8px rgba(255,150,60,.4);
}
.voice-btn:active { transform: scale(.92); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.logout-btn {
  width: 52px; height: 52px; border: none; border-radius: 50%;
  background: #F0E6D2; font-size: 24px; cursor: pointer;
}
.logout-btn:active { transform: scale(.92); }

/* 任务卡片 */
.cards { display: flex; flex-direction: column; gap: 16px; }
.task-card {
  background: #fff; border-radius: 24px; padding: 20px 24px;
  display: flex; align-items: center; gap: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  cursor: pointer; min-height: 88px;
  border: 3px solid transparent;
}
.task-card:active { transform: scale(.98); }
.task-card.done { opacity: .75; border-color: #7ED957; background: #F4FFF0; }
.task-icon { font-size: 40px; flex-shrink: 0; }
.task-info { flex: 1; }
.task-title { font-size: 22px; font-weight: 700; }
.task-desc { font-size: 16px; color: #8A7560; margin-top: 4px; }
.task-check { font-size: 32px; }

.loading { text-align: center; color: #A08B70; padding: 40px; }

/* 底部导航 */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; background: #fff;
  border-top: 1px solid #F0E6D2;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  max-width: 800px; margin: 0 auto;
}
.nav-btn {
  flex: 1; border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 26px; color: #B8A68C; padding: 8px 0;
  font-family: inherit;
}
.nav-btn span { font-size: 13px; }
.nav-btn.active { color: #FF8A3D; font-weight: 700; }

@media (min-width: 700px) { .cards { flex-direction: row; flex-wrap: wrap; } .task-card { width: calc(50% - 8px); } }
