/* ============================================================
   训练营(需求 AU 模块④,2026-10-18)
   ① 学习页那条营卡 .cp-bar
   ② 营页顶部 .cp-hero + 结营证书 .cp-cert
   ③ 任务卡 .cp-task / 课表 .cp-day / 完成墙 .cp-wall
   ★ 主播端不出现任何名次,完成墙按"加入顺序"排(见 h5.js)
   ★ 回退:index.html 删掉 camp.css 那一行
   ============================================================ */

/* ---------------- ① 学习页营卡 ---------------- */
.cp-bar {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; margin-bottom: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow);
  cursor: pointer;
}
.cp-bar:active { transform: scale(.99); }
.cp-ic {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; font-size: 18px;
  background: linear-gradient(135deg, #7C6CFA, #B45CF6);
  box-shadow: 0 6px 16px rgba(124, 108, 250, .32);
}
.cp-b { min-width: 0; flex: 1; }
.cp-b b {
  display: block; font-size: 14.5px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cp-b span {
  display: block; font-size: 11.5px; color: var(--text2); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cp-r { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.cp-pct { font-size: 13px; font-weight: 700; color: var(--primary); }
.cp-bar .arr { color: var(--text2); font-size: 16px; opacity: .6; }
.cp-bar-end .cp-ic { background: linear-gradient(135deg, #94A3B8, #64748B); box-shadow: none; }

/* ---------------- ② 营页顶部 ---------------- */
.cp-hero {
  padding: 18px 18px 16px; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, #6D6BFA 0%, #9B5CF6 52%, #FF7EB3 100%);
  box-shadow: 0 14px 32px rgba(109, 107, 250, .32);
  margin-bottom: 4px;
}
.cp-hero-t { font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.cp-hero-s { font-size: 12.5px; opacity: .9; margin-top: 5px; }
.cp-hero-bar {
  height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .28);
  margin: 14px 0 8px; overflow: hidden;
}
.cp-hero-bar i {
  display: block; height: 100%; border-radius: 4px;
  background: rgba(255, 255, 255, .95);
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}
.cp-hero-n {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11.5px; opacity: .92;
}
.cp-hero-n b { font-size: 15px; font-weight: 700; }

/* 结营证书 */
.cp-cert { text-align: center; padding: 22px 18px; margin-top: 12px; }
.cp-cert-ic { font-size: 30px; }
.cp-cert-t { font-size: 16px; font-weight: 700; margin-top: 6px; }
.cp-cert-s { font-size: 12.5px; color: var(--text2); margin-top: 5px; }
.cp-cert-s b { color: var(--primary); font-size: 15px; }

/* ---------------- ③ 任务卡 ---------------- */
.cp-tasks { display: grid; gap: 10px; }
.cp-task {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 13px 14px 12px;
  box-shadow: var(--shadow);
  transition: background .2s, border-color .2s;
}
.cp-task.on { background: var(--tint-06); border-color: transparent; }
.cp-task-h { display: flex; align-items: center; justify-content: space-between; }
.cp-tag {
  font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--card2); color: var(--text2);
}
.cp-tag-course { background: #EFEBFF; color: #6D5BE0; }
.cp-tag-audio { background: #E8F4FF; color: #2B7FD4; }
.cp-tag-action { background: #FFF0F6; color: #E8547A; }
.cp-min { font-size: 11px; color: var(--text2); }
.cp-task-t { font-size: 14.5px; font-weight: 650; margin-top: 8px; line-height: 1.45; }
.cp-task-s { font-size: 12px; color: var(--text2); margin-top: 4px; line-height: 1.6; }
.cp-task-a { display: flex; align-items: center; gap: 10px; margin-top: 11px; flex-wrap: wrap; }
.cp-go {
  border: 0; border-radius: 999px; padding: 8px 18px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #7C6CFA, #B45CF6);
  box-shadow: 0 6px 16px rgba(124, 108, 250, .28);
}
.cp-go:active { transform: scale(.97); }
.cp-undo {
  border: 0; background: transparent; color: var(--text2);
  font-size: 12px; padding: 6px 2px;
}
.cp-done { font-size: 12.5px; font-weight: 700; color: #0F8A5F; }
.cp-hint { font-size: 11px; color: var(--text2); }
.cp-rest { text-align: center; padding: 20px; font-size: 13px; color: var(--text2); line-height: 1.7; }

/* ---------------- 完整课表 ---------------- */
.cp-days {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.cp-day + .cp-day { border-top: 1px solid var(--border); }
.cp-day-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; cursor: pointer;
}
.cp-day.today .cp-day-hd { background: var(--tint-06); }
.cp-day-n { font-size: 13px; font-weight: 700; flex: 0 0 auto; }
.cp-day-d { font-size: 11.5px; color: var(--text2); flex: 1; min-width: 0; }
.cp-day-s { font-size: 11.5px; color: var(--text2); }
.cp-day.done .cp-day-s { color: #0F8A5F; font-weight: 700; }
.cp-day-hd .arr {
  font-size: 15px; color: var(--text2); opacity: .55;
  transition: transform .2s;
}
.cp-day-hd.open .arr { transform: rotate(90deg); }
.cp-day-bd { padding: 2px 0 8px; }
.cp-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px 9px 16px; font-size: 13px;
}
.cp-row:active { background: var(--card2); }
.cp-row-ck {
  flex: 0 0 auto; width: 17px; height: 17px; border-radius: 50%;
  border: 1.5px solid var(--border); display: grid; place-items: center;
  font-size: 10px; color: #fff; line-height: 1;
}
.cp-row.on .cp-row-ck { background: #22C08A; border-color: #22C08A; }
.cp-row-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-row.on .cp-row-t { color: var(--text2); text-decoration: line-through; }
.cp-row-k { flex: 0 0 auto; font-size: 10.5px; color: var(--text2); opacity: .75; }

/* ---------------- 完成墙(不排名) ---------------- */
.cp-wall {
  display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.cp-wall::-webkit-scrollbar { display: none; }
.cp-w {
  flex: 0 0 auto; width: 100px; padding: 11px 9px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; text-align: center; box-shadow: var(--shadow);
}
.cp-w.me { border-color: var(--primary); background: var(--tint-06); }
.cp-w-av {
  width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 6px;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #A9B6FF, #D6A9FF);
}
.cp-w.me .cp-w-av { background: linear-gradient(135deg, #7C6CFA, #B45CF6); }
.cp-w-n {
  font-size: 11.5px; font-weight: 600; line-height: 1.3;
  height: 2.6em; overflow: hidden; word-break: break-all;
}
.cp-w-bar {
  height: 4px; border-radius: 2px; background: var(--card2);
  margin: 7px 0 5px; overflow: hidden;
}
.cp-w-bar i { display: block; height: 100%; border-radius: 2px; background: var(--primary); }
.cp-w-p { font-size: 10.5px; color: var(--text2); }
.cp-tip {
  font-size: 11.5px; color: var(--text2); line-height: 1.7;
  margin: 12px 2px 4px;
}

/* ---------------- 深色皮肤 ---------------- */
body.theme-galaxy .cp-hero,
body.theme-tech .cp-hero {
  background: rgba(26, 30, 46, .92);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  color: var(--text);
}
body.theme-galaxy .cp-tag-course, body.theme-tech .cp-tag-course { background: rgba(124, 108, 250, .18); color: #B3A6FF; }
body.theme-galaxy .cp-tag-audio, body.theme-tech .cp-tag-audio { background: rgba(56, 189, 248, .16); color: #7FE3FF; }
body.theme-galaxy .cp-tag-action, body.theme-tech .cp-tag-action { background: rgba(244, 114, 182, .16); color: #FFA8CE; }
body.theme-galaxy .cp-done, body.theme-tech .cp-done { color: #6DFFC4; }
body.theme-galaxy .cp-row.on .cp-row-ck,
body.theme-tech .cp-row.on .cp-row-ck { background: #22C08A; border-color: #22C08A; }
body.theme-galaxy .cp-w-av, body.theme-tech .cp-w-av { background: linear-gradient(135deg, #2B3654, #453A6B); }
body.theme-galaxy .cp-w.me .cp-w-av,
body.theme-tech .cp-w.me .cp-w-av { background: linear-gradient(135deg, #7C6CFA, #B45CF6); }

/* ★ 深色皮肤下 .sec-note(=今天要做右边的日期)几乎看不见,提亮一档。
   只限定 #tab-study,不动全站的其他页面 */
body.theme-galaxy #tab-study .sec-note,
body.theme-tech #tab-study .sec-note { color: #AEBBD4; }
