/* Thai-Chinese Tutor - 移动优先，低焦虑设计（无红色错误、大按钮、圆角卡片） */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Sarabun", "Noto Sans Thai", -apple-system, "Segoe UI", sans-serif;
  background: #f0f7f4; color: #1f3d33;
  min-height: 100vh; padding: 14px; max-width: 480px; margin: 0 auto;
}
h1 { font-size: 1.35rem; margin-bottom: 6px; }
h2 { font-size: 1.1rem; margin-bottom: 8px; }
.muted { color: #6b8579; font-size: 0.85rem; margin-bottom: 10px; }
.card {
  background: #fff; border-radius: 16px; padding: 18px;
  box-shadow: 0 2px 10px rgba(31, 61, 51, 0.08); margin-bottom: 14px;
}
.btn {
  display: inline-block; border: none; border-radius: 12px; cursor: pointer;
  padding: 13px 18px; font-size: 1rem; font-family: inherit; min-height: 48px;
}
.btn-primary { background: #1f8a5f; color: #fff; }
.btn-secondary { background: #e3f0ea; color: #1f8a5f; }
.btn-block { display: block; width: 100%; margin-top: 12px; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { background: #cbd8d1; color: #fff; cursor: default; }
label { display: block; font-size: 0.9rem; margin: 10px 0 4px; color: #415c52; }
select, textarea, input[type=text] {
  width: 100%; padding: 12px; border: 1.5px solid #cfe0d8; border-radius: 12px;
  font-size: 1rem; font-family: inherit; background: #fbfdfc;
}
textarea { min-height: 110px; resize: vertical; }
/* 阶段横幅 */
.phase-banner {
  border-radius: 14px; padding: 12px 14px; margin-bottom: 14px;
  font-size: 0.9rem; display: flex; align-items: center; gap: 8px;
}
.phase-banner.active { background: #e3f0ea; color: #14603f; }
.phase-banner.rest { background: #f4f0e3; color: #8a6d1f; }
/* 模块卡片 */
.module-grid { display: grid; gap: 10px; }
.module-item {
  background: #fff; border-radius: 14px; padding: 16px; display: flex;
  justify-content: space-between; align-items: center;
  box-shadow: 0 2px 8px rgba(31,61,51,0.07); text-decoration: none; color: inherit;
}
.module-item.locked { opacity: 0.55; }
.module-item .arrow { color: #1f8a5f; font-size: 1.3rem; }
/* 练习页 */
.prompt-zh { font-size: 1.15rem; line-height: 1.6; margin-bottom: 4px; }
.prompt-th { font-size: 0.9rem; color: #6b8579; margin-bottom: 14px; }
.feedback-box {
  border-radius: 14px; padding: 14px; margin-top: 14px; background: #eef7f2;
  border: 1.5px solid #bfe0d2; font-size: 0.95rem; line-height: 1.6;
}
.feedback-box .zh { display: block; margin-top: 6px; font-size: 1.05rem; }
.hint-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hint-row .btn { font-size: 0.85rem; padding: 10px 12px; }
.revealed {
  background: #fff; border-radius: 10px; padding: 10px 12px; margin-top: 8px;
  font-size: 0.9rem; line-height: 1.55;
}
.revealed b { color: #14603f; }
/* 进度页 */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: #fff; border-radius: 14px; padding: 14px; text-align: center; }
.stat .num { font-size: 1.8rem; font-weight: 700; color: #1f8a5f; }
.stat .lbl { font-size: 0.8rem; color: #6b8579; }
.loading { text-align: center; color: #6b8579; padding: 40px 0; }
.error-text { color: #a3541f; font-size: 0.9rem; margin-top: 8px; }
