/* ====== 学习小工具共享组件基（learn.css 与 learn-kids.css 共用）======
 * 在 common.css + kids.css 之后、learn.css / learn-kids.css 之前加载：
 *   <link rel="stylesheet" href="css/learn-base.css" data-ver>
 *   <link rel="stylesheet" href="css/learn.css" data-ver>   ← 小学组
 *   <link rel="stylesheet" href="css/learn-kids.css" data-ver> ← 幼儿组
 * 两组共用的组件统一放这里；触控按较大值统一（芯片 44px）。
 */

/* ===== 芯片（学段 / 分类 / 模式）===== */
.learn-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 8px 0 10px;
}
.learn-chips.left { justify-content: flex-start; }
.learn-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #F2F3F5;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: all .15s;
}
.learn-chip:active { transform: scale(.96); }
.learn-chip.active { background: var(--primary); color: #fff; font-weight: 700; }

/* ===== 按钮（全套变体）===== */
.learn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  padding: 8px 18px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  transition: all .15s;
}
.learn-btn:active { transform: scale(.96); }
.learn-btn.outline { background: #fff; color: var(--text); border: 1px solid var(--border); }
.learn-btn.ok     { background: rgba(46,204,113,.10); color: #2ECC71; border: 1px solid #c3ecdb; }
.learn-btn.danger { background: rgba(255,71,87,.10); color: #FF4757; border: 1px solid #f6c4ca; }
.learn-btn.ghost  { background: rgba(0,0,0,.04); color: #666; border: 1px solid var(--border); }
.learn-btn.ai     { background: linear-gradient(135deg,#667eea,#764ba2); color: #fff; }
.learn-btn.sm     { min-height: 40px; padding: 6px 14px; font-size: 13px; border-radius: 10px; }

/* ===== 底部操作行（认识/不认识/跳过 + 分享/错题本）===== */
.learn-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 0 0;
}
.learn-actions .learn-btn { flex: 1; min-width: 88px; }

/* ===== 玩法说明 ===== */
.rules {
  width: 100%;
  margin-top: 10px;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: center;
}
.rules summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--text); min-height: 44px; display: flex; align-items: center; justify-content: center; }
.rules p { margin: 2px 0; text-align: center; }
