/* parent.css — 31天亲子口语速成 模块样式 */

.parent-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 44px 16px 16px;
  background: linear-gradient(135deg, #FFB347, #FF8A4C);
  color: #fff;
}
.parent-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.parent-hero-main { flex: 1 1 auto; min-width: 0; }
.parent-title {
  font-size: 19px; font-weight: 800;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  word-break: keep-all;
}
.parent-title-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.28);
  color: #fff;
  padding: 2px 9px;
  border-radius: 999px;
  line-height: 1.4;
  letter-spacing: .5px;
}
.parent-sub { font-size: 12px; opacity: .9; margin-top: 2px; word-break: keep-all; }

.parent-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.seg-mini { display: inline-flex; background: rgba(255,255,255,.22); border-radius: 999px; padding: 4px; }
.seg-mini button {
  border: 0; background: transparent; color: #fff; font-size: 13.5px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.seg-mini button.on { background: #fff; color: #FF8A4C; font-weight: 700; }

/* 首页：排行榜 / 测评记录（独立按钮，与开始打卡平铺） */
.action-btn {
  border: 0; background: rgba(255,255,255,.22); color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 11px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.action-btn:active { background: rgba(255,255,255,.4); }

/* 首页：31天列表 */
.day-list { padding: 12px 14px 4px; display: flex; flex-direction: column; gap: 10px; }
.day-card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 1px solid var(--line); background: #fff; border-radius: 16px;
  padding: 14px 14px; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .08s ease;
}
.day-card:active { transform: scale(.985); }
.day-badge {
  flex: 0 0 auto; min-width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #FFE08A, #FFC24B); color: #7a4b00;
  font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center;
  text-align: center; line-height: 1.15; padding: 4px;
}
.day-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: #333; }
.day-go { flex: 0 0 auto; color: #bbb; font-size: 22px; }

/* 课程详情 */
.lesson-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px; position: sticky; top: 0; background: #fff; z-index: 5;
  border-bottom: 1px solid var(--line);
}
.lesson-toolbar .tip { font-size: 11.5px; color: var(--ink-3); }
.lesson { padding: 8px 16px 24px; }
.les-h {
  font-size: 16px; font-weight: 800; color: #FF8A4C; margin: 24px 0 12px;
  padding-left: 10px; border-left: 4px solid #FFC24B;
}
.les-h:first-child { margin-top: 12px; }
.les-p {
  font-size: 15px; line-height: 1.85; color: #333; margin: 12px 0;
  padding: 12px 14px; background: #FAFAFA; border-radius: 12px;
  white-space: pre-wrap; word-break: break-word;
}
/* 副标题/色块小标题：三句话场景说明、扩展内容分组名 */
.les-sub {
  display: inline-block;
  font-size: 13px; font-weight: 700; color: #3E5A2E;
  margin: 14px 0 4px; padding: 4px 12px;
  background: #EAF7E3; border: 1px solid #CDEBC0; border-radius: 999px;
}
/* 三句话色块：场景（顶部绿底标签）+ 英文（中部蓝色可点击）+ 中文（底部灰底） */
.les-sent {
  margin: 12px 0; padding: 0;
  background: #fff; border: 1.5px solid #CDEBC0; border-radius: 14px;
  overflow: hidden;
}
.les-sent-scene {
  font-size: 12px; font-weight: 700; color: #3E5A2E;
  padding: 6px 14px; background: #EAF7E3;
  border-bottom: 1px solid #CDEBC0;
}
.les-sent-en {
  font-size: 18px; font-weight: 600; line-height: 1.6;
  padding: 12px 14px 6px; color: #1f6fd6;
}
.les-sent-cn {
  font-size: 14px; line-height: 1.7; color: #555;
  padding: 0 14px 12px;
}
/* 发音小抄单词色块：单词（蓝色大字）+ 音标（ipa样式）+ 讲解（灰色） */
.les-ipa {
  margin: 10px 0; padding: 12px 14px;
  background: #FAFAFA; border: 1px solid var(--line); border-radius: 12px;
}
.les-ipa-word {
  font-size: 19px; font-weight: 700; color: #1f6fd6;
  margin-bottom: 2px;
}
.les-ipa-pron {
  font-family: "Doulos SIL","Charis SIL","Times New Roman",serif;
  font-size: 15px; color: #6a5a1a;
  margin-bottom: 6px;
}
.les-ipa-explain {
  font-size: 13px; line-height: 1.7; color: #555;
}

/* 可点击发音的英文（整句 / 单词 / 合段） */
.spk-s {
  color: #1f6fd6; cursor: pointer; border-radius: 6px;
  padding: 2px 4px; background: rgba(31,111,214,.06);
  transition: background .08s ease;
}
.spk-s:hover { background: rgba(31,111,214,.12); text-decoration: underline; }
.spk-w { color: #1f6fd6; cursor: pointer; }
.spk-w:hover { text-decoration: underline; }
.spk-s:active, .spk-w:active { background: #E8F1FF; }
/* 合段：连续≥2句英文，整段标蓝+整段朗读+1个mic，样式与单句一致但底色稍深以示整段感 */
.spk-p {
  display: inline-block;
  color: #1f6fd6; cursor: pointer; border-radius: 8px;
  padding: 3px 6px; margin: 2px 0;
  background: rgba(31,111,214,.10);
  border: 1px solid rgba(31,111,214,.15);
  transition: background .08s ease;
}
.spk-p:hover { background: rgba(31,111,214,.18); }
.spk-p:active { background: #E8F1FF; }

/* 音标块：不可点击、不标蓝，标准音标格式（IPA 风格） */
.ipa {
  font-family: "Doulos SIL","Charis SIL","Times New Roman",serif;
  color: #6a5a1a; font-style: normal;
  background: transparent; padding: 0; border-radius: 0;
  cursor: default; text-decoration: none;
}
.ipa::before, .ipa::after { content: ""; }

.list-end { text-align: center; color: var(--ink-3); font-size: 12px; padding: 10px 0 24px; }

/* ---------- 打卡系统 ---------- */
.ck-start-btn {
  border: 0; background: rgba(255,255,255,.28); color: #fff;
  font-size: 15px; font-weight: 700; padding: 10px 22px;
  border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.ck-start-btn:active { background: rgba(255,255,255,.4); }

/* 打卡状态卡片色 */
.day-card.ck-done { background: #F0FFF0; border-color: #B7E4B7; }
.day-card.ck-done .day-badge { background: linear-gradient(135deg, #C8F0C8, #8FD88F); color: #2E7D32; }
.day-card.ck-today { background: #FFFDE7; border-color: #FFE082; box-shadow: 0 0 12px rgba(255,194,75,.4); }
.day-card.ck-today .day-badge { background: linear-gradient(135deg, #FFF176, #FFC24B); color: #7a4b00; }
.day-card.ck-future { background: #FAFAFA; border-color: #E0E0E0; opacity: .6; }
.day-card.ck-future .day-badge { background: #E0E0E0; color: #999; }
.day-card.ck-missed { background: #FFF5F5; border-color: #FFCDD2; }
.day-card.ck-missed .day-badge { background: #FFCDD2; color: #C62828; }

/* 底部打卡按钮 */
.ck-bar { padding: 0 16px 20px; text-align: center; }
.ck-done-btn {
  width: 100%; max-width: 320px; border: 0;
  background: linear-gradient(135deg, #66BB6A, #43A047);
  color: #fff; font-size: 17px; font-weight: 800;
  padding: 14px 0; border-radius: 16px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(67,160,71,.3);
  transition: transform .08s ease;
}
.ck-done-btn:active { transform: scale(.97); }

/* ---------- 录音按钮 ---------- */
.rec-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1.5px solid #e0e0e0;
  background: #fafafa; border-radius: 50%;
  cursor: pointer; padding: 0; margin: 0 2px;
  vertical-align: middle; transition: all .15s ease;
  flex-shrink: 0; line-height: 1;
  position: relative;
  -webkit-touch-callout: none;  /* iOS：禁止长按弹 callout 菜单 */
  -webkit-user-select: none;    /* 安卓老内核：阻止文本选择菜单 */
  user-select: none;            /* 安卓 Chrome：阻止文本选择菜单 */
}
/* 扩大触控热区：视觉 32px，四周外扩 6px，实际可点区域约 44px（手机推荐最小触控目标） */
.rec-btn::before {
  content: '';
  position: absolute;
  top: -6px; right: -6px; bottom: -6px; left: -6px;
  border-radius: 50%;
}
.rec-btn:active { transform: scale(.88); }
.rec-btn .rec-icon { font-size: 15px; line-height: 1; }
.rec-btn.has-rec { border-color: #66BB6A; background: #E8F5E9; }
.rec-btn.has-rec .rec-icon { font-size: 13px; }
.rec-btn.recording {
  border-color: #EF5350; background: #FFEBEE;
  animation: rec-pulse 1s ease-in-out infinite;
}
.rec-btn.playing { border-color: #42A5F5; background: #E3F2FD; }

/* 录音脉冲点 */
.rec-pulse {
  display: inline-block; width: 8px; height: 8px;
  background: #EF5350; border-radius: 50%;
}
@keyframes rec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* ---------- 分享按钮 ---------- */
.ck-eval-btn {
  position: relative;
  width: 100%; max-width: 320px; border: none;
  background: linear-gradient(135deg,#7C4DFF,#651FFF);
  color: #fff; font-size: 15px; font-weight: 700;
  padding: 12px 0; border-radius: 16px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(101,31,255,.25);
  margin-bottom: 10px; transition: all .1s ease;
}
.ck-eval-btn:active { opacity: .85; transform: scale(.97); }
.ck-eval-btn:disabled { opacity: .6; pointer-events: none; }
/* 限免倒计时角标（动态醒目） */
.eval-free-badge {
  position: absolute; top: -8px; right: -6px;
  background: linear-gradient(135deg,#FF3B30,#FF2D55);
  color: #fff; font-size: 10px; font-weight: 800; line-height: 1;
  padding: 4px 7px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(255,45,85,.55);
  animation: eval-badge-blink 1.3s ease-in-out infinite;
  white-space: nowrap; letter-spacing: .5px;
}
@keyframes eval-badge-blink {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

/* 会员专享提示弹窗 */
.vip-modal-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.vip-modal {
  background: #fff; border-radius: 20px; width: 100%; max-width: 320px;
  padding: 28px 22px 22px; text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  animation: vip-pop .18s ease;
}
@keyframes vip-pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.vip-modal-icon { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.vip-modal-title { font-size: 18px; font-weight: 800; color: #4A2A0A; margin-bottom: 12px; }
.vip-modal-body { font-size: 14px; color: #6d4c41; line-height: 1.7; margin-bottom: 20px; text-align: left; }
.vip-modal-body b { color: #E65100; }
.vip-modal-actions { display: flex; gap: 10px; }
.vip-btn { flex: 1; padding: 12px 0; border-radius: 14px; font-size: 15px; font-weight: 700; cursor: pointer; border: none; }
.vip-btn-ghost { background: #F5F5F5; color: #757575; }
.vip-btn-primary {
  background: linear-gradient(135deg,#FFB300,#FF8F00);
  color: #fff; box-shadow: 0 4px 12px rgba(255,143,0,.3);
}
.ck-share {
  margin-top: 10px; text-align: center;
}
.ck-share-btn {
  width: 100%; max-width: 320px; border: 1.5px solid #42A5F5;
  background: #fff; color: #1976D2; font-size: 15px; font-weight: 700;
  padding: 12px 0; border-radius: 16px; cursor: pointer;
  transition: all .1s ease;
}
.ck-share-btn:active { background: #E3F2FD; transform: scale(.97); }
.ck-share-btn:disabled { opacity: .6; pointer-events: none; }
.ck-share-link {
  margin-top: 8px; font-size: 11px; color: #999; word-break: break-all;
  background: #F5F5F5; padding: 8px 12px; border-radius: 10px;
  max-width: 320px; margin-left: auto; margin-right: auto;
}
