/* 毛豆学习小屋 v1 游戏化风格 */
* { 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(180deg,#FFF7E0 0%,#E8F7F0 100%);
  min-height:100vh; color:#3D3A33;
  display:flex; justify-content:center;
}
.page { width:100%; max-width:480px; min-height:100vh; padding:16px 16px 32px; position:relative; }
.topbar {
  display:flex; justify-content:space-between; align-items:center;
  background:#fff; border-radius:16px; padding:10px 16px; margin-bottom:16px;
  box-shadow:0 2px 8px rgba(0,0,0,.06); position:sticky; top:8px; z-index:10;
}
.topbar .title { font-weight:600; font-size:16px; }
.topbar .stars { color:#F59E0B; font-weight:600; font-size:15px; }
.topbar .back { text-decoration:none; color:#6B7280; font-size:14px; }

.card {
  background:#fff; border-radius:18px; padding:18px;
  box-shadow:0 3px 10px rgba(0,0,0,.07); margin-bottom:14px;
}
.card h3 { font-size:16px; margin-bottom:6px; }
.card .sub { font-size:13px; color:#8A8578; }
.badge {
  display:inline-block; padding:3px 10px; border-radius:999px;
  font-size:12px; font-weight:600; margin-left:6px;
}
.b-math { background:#FEF3C7; color:#B45309; }
.b-chinese { background:#FCE7F3; color:#BE185D; }
.b-english { background:#DBEAFE; color:#1D4ED8; }
.b-mixed { background:#D1FAE5; color:#047857; }

.btn {
  display:block; width:100%; border:none; border-radius:14px;
  padding:14px; font-size:16px; font-weight:600; color:#fff; cursor:pointer;
  background:linear-gradient(135deg,#F59E0B,#F97316);
  box-shadow:0 4px 0 #D97706; margin-top:14px; text-align:center;
}
.btn:active { transform:translateY(2px); box-shadow:0 2px 0 #D97706; }
.btn.blue { background:linear-gradient(135deg,#3B82F6,#2563EB); box-shadow:0 4px 0 #1D4ED8; }
.btn.green { background:linear-gradient(135deg,#34D399,#10B981); box-shadow:0 4px 0 #059669; }
.btn.ghost { background:#F3F4F6; color:#4B5563; box-shadow:none; }
a.btn { text-decoration:none; display:block; }

.map-card {
  display:flex; align-items:center; gap:14px;
  background:#fff; border-radius:18px; padding:16px; margin-bottom:12px;
  box-shadow:0 3px 10px rgba(0,0,0,.07); text-decoration:none; color:inherit;
}
.map-ico {
  width:52px; height:52px; border-radius:14px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:26px;
}
.map-body { flex:1; }
.map-body h4 { font-size:15px; margin-bottom:3px; }
.map-body p { font-size:12.5px; color:#8A8578; }
.map-arrow { color:#C9C4B4; font-size:20px; }

.streak-row {
  display:flex; gap:10px; margin-bottom:14px;
}
.streak-box {
  flex:1; background:#fff; border-radius:16px; padding:12px; text-align:center;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
}
.streak-box .num { font-size:22px; font-weight:700; color:#F59E0B; }
.streak-box .lab { font-size:12px; color:#8A8578; }

.progress { background:#F3F4F6; border-radius:999px; height:10px; overflow:hidden; margin:10px 0; }
.progress .bar { background:linear-gradient(90deg,#FBBF24,#F59E0B); height:100%; border-radius:999px; transition:width .3s; }

.q-stem { font-size:18px; font-weight:600; line-height:1.6; margin:14px 0; }
.opt {
  display:block; background:#fff; border:2px solid #E5E7EB; border-radius:14px;
  padding:14px; font-size:16px; margin-bottom:10px; cursor:pointer; width:100%;
  text-align:left; transition:border-color .15s;
}
.opt.sel { border-color:#F59E0B; background:#FFFBEB; }
.opt.ok { border-color:#10B981; background:#ECFDF5; }
.opt.no { border-color:#EF4444; background:#FEF2F2; }
.fill-input {
  width:100%; font-size:22px; padding:12px; text-align:center;
  border:2px solid #E5E7EB; border-radius:14px; margin:10px 0;
}
.fill-input:focus { outline:none; border-color:#F59E0B; }

.feedback { text-align:center; font-size:15px; font-weight:600; padding:10px; border-radius:12px; margin:10px 0; display:none; }
.feedback.good { background:#ECFDF5; color:#059669; display:block; }
.feedback.bad { background:#FEF2F2; color:#DC2626; display:block; }

.center-box { text-align:center; padding:40px 20px; }
.big { font-size:44px; margin-bottom:10px; }
h2.center { text-align:center; margin-bottom:4px; }

/* 家长端 */
.admin-wrap { max-width:720px; margin:0 auto; padding:20px 16px 40px; width:100%; }
table { width:100%; border-collapse:collapse; background:#fff; border-radius:12px; overflow:hidden; font-size:13.5px; }
th, td { padding:10px 12px; text-align:left; border-bottom:1px solid #F1EFE8; }
th { background:#F7F5EE; font-weight:600; }
.ok { color:#059669; font-weight:600; }
.no { color:#DC2626; font-weight:600; }
.tip { background:#EFF6FF; border-radius:12px; padding:12px 14px; font-size:13.5px; margin-bottom:10px; color:#1E40AF; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.stat { background:#fff; border-radius:16px; padding:16px; text-align:center; box-shadow:0 2px 8px rgba(0,0,0,.06); }
.stat .num { font-size:26px; font-weight:700; color:#F59E0B; }
.stat .lab { font-size:12.5px; color:#8A8578; }
.locked { filter:blur(4px); user-select:none; pointer-events:none; }
