/* 粤语站补充样式：沿用 talk 的 style.css / course.css，只加粤语特有部分。
   口径：白底深字、无彩色大按钮、行=按钮、斑马纹。 */

:root {
  --ct-main: #0f766e;      /* 港式茶餐厅绿 */
  --ct-main-soft: #e6f4f1;
  --ct-warn-bg: #fffbeb;
  --ct-warn-fg: #92400e;
}

/* 顶部导航：整行可点的文字块，不做大色块 */
.ct-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 10px 0 14px;
  border-bottom: 1px solid #e5e7eb;
}
.ct-nav-item {
  padding: 9px 12px;
  color: #4b5563;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 2px solid transparent;
}
.ct-nav-item.on {
  color: var(--ct-main);
  border-bottom-color: var(--ct-main);
  font-weight: 600;
}
.ct-nav-item:hover { background: #f8fafc; }

/* 表单：输入框随内容自动增高由 ct.js 处理；这里只管间距 */
.field { display: block; margin: 12px 0; font-size: 14px; color: #374151; }
.field input {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  border: 1px solid #d1d5db; border-radius: 10px; font-size: 16px;
  background: #fff; color: #111827; box-sizing: border-box;
}
.field input:focus { outline: 2px solid var(--ct-main-soft); border-color: var(--ct-main); }

/* 台词：粤字最大，粤拼主题色，普通话灰 */
.line-yue { font-size: 20px; font-weight: 700; color: #111827; margin: 6px 0 2px; line-height: 1.5; }
.line-jp { font-size: 15px; color: var(--ct-main); margin: 0 0 2px; letter-spacing: .2px; }
.line-zh { font-size: 14px; color: #6b7280; margin: 0; }
.line-focus {
  font-size: 13px; color: var(--ct-warn-fg); background: var(--ct-warn-bg);
  padding: 7px 9px; border-radius: 8px; margin: 8px 0 0; line-height: 1.6;
}

/* 词汇 */
.vocab-yue { font-size: 17px; font-weight: 600; margin: 0; }
.vocab-jp { color: var(--ct-main); font-weight: 400; font-size: 14px; margin-left: 6px; }
.vocab-zh { font-size: 13px; color: #6b7280; margin: 2px 0 0; }

/* 播放器 */
.ct-player { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
#player-now { font-size: 13px; }

/* 进度统计 */
.ct-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ct-stats .stat { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; padding: 12px; }
.ct-stats .stat b { display: block; font-size: 22px; color: var(--ct-main); }
.ct-stats .stat span { font-size: 12px; color: #6b7280; }

/* 声调表 */
.tone-list { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; }
.tone-row {
  display: grid; grid-template-columns: 36px 22px 52px 44px 54px 1fr;
  align-items: center; gap: 6px; padding: 9px 8px; font-size: 14px;
}
.tone-row.zebra { background: #fafafa; }
.tone-play, .line-play, .vocab-play {
  border: 1px solid #d1d5db; background: #fff; border-radius: 8px;
  min-width: 32px; min-height: 30px; cursor: pointer; color: #374151;
}
.tone-no { font-weight: 700; color: var(--ct-main); }
.tone-name { color: #374151; }
.tone-sample { font-size: 18px; font-weight: 600; }
.tone-jp { color: var(--ct-main); font-size: 13px; }
.tone-desc { font-size: 12px; line-height: 1.5; }
.ct-tips { padding-left: 18px; line-height: 1.9; font-size: 14px; color: #374151; }

/* 题目 */
.q-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; margin: 12px 0; }
.q-stem { font-size: 15px; font-weight: 600; margin: 0 0 10px; line-height: 1.6; }
.q-opt {
  display: block; width: 100%; text-align: left; padding: 10px 12px; margin: 6px 0;
  border: 1px solid #e5e7eb; border-radius: 9px; background: #fff;
  font-size: 15px; color: #1f2937; cursor: pointer;
}
.q-opt:hover { background: #f8fafc; }
.q-opt.right { background: #ecfdf5; border-color: #10b981; }
.q-opt.wrong { background: #fef2f2; border-color: #ef4444; }
.q-explain { font-size: 13px; color: #6b7280; background: #f8fafc; padding: 8px 10px; border-radius: 8px; margin-top: 8px; line-height: 1.6; }

/* 录音 */
.rec-target { font-size: 18px; font-weight: 600; margin: 6px 0; line-height: 1.6; }
.rec-big {
  display: block; width: 100%; padding: 13px; border-radius: 11px;
  border: 1px dashed var(--ct-main); background: var(--ct-main-soft);
  color: var(--ct-main); font-size: 16px; cursor: pointer; margin: 8px 0;
}
.rec-big.recording { background: #fef2f2; border-color: #ef4444; color: #b91c1c; }
.rec-status { font-size: 13px; color: #6b7280; min-height: 18px; }
.review-box { margin-top: 10px; border-top: 1px dashed #e5e7eb; padding-top: 10px; font-size: 14px; line-height: 1.7; }
.review-score { font-size: 24px; font-weight: 700; color: var(--ct-main); }
.review-miss { color: #b45309; }
.review-good { color: #047857; }

/* 完成条 */
.done-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* 手机端微调 */
@media (max-width: 520px) {
  .tone-row { grid-template-columns: 32px 20px 46px 40px 48px 1fr; font-size: 13px; }
  .tone-desc { font-size: 11px; }
}

/* ============================================================
   浅色主题强制补丁（2026-11-21）
   英语站 style.css 末尾带「岩灰+黑蓝」深色主题并用 !important 覆盖；
   粤语站按老板 UI 铁律「白底深字」，在本文件最后再压回浅色。
   ============================================================ */
:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --card2: #f8fafc;
  --head: #ffffff;
  --accent: #0f766e;
  --accent2: #0d9488;
  --light: #0f766e;
  --text: #1c2430;
  --muted: #5b6b7f;
  --line: #e5e7eb;
  --ok: #047857;
  --warn: #b45309;
  --err: #b91c1c;
}
html, body {
  background: #f6f8fb !important;
  color: #1c2430 !important;
}
h1, h2, h3, h4, .brand h1 { color: #1c1f23 !important; }
a { color: #0f766e; }
.card, .unit-card, .track-card, .q-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 4px rgba(20, 40, 80, .06) !important;
}
.card h2 { color: #1c1f23 !important; }
.muted, .tagline, .foot, .track-stat, .scene-stat, .rec-status,
.vocab-zh, .line-zh, .q-explain, .tone-desc {
  color: #5b6b7f !important;
}
input, textarea, select {
  background: #ffffff !important;
  color: #1c1f23 !important;
  border: 1px solid #c8d2de !important;
}
input::placeholder, textarea::placeholder { color: #8b97a6 !important; }
.btn {
  background: #ffffff !important;
  color: #1c2430 !important;
  border: 1px solid #c8d2de !important;
}
.btn.primary {
  background: #0f766e !important;
  border-color: #0f766e !important;
  color: #ffffff !important;
}
.btn.primary:hover { background: #0d9488 !important; }
.line-row, .vocab-item, .tone-row, .scene-row {
  background: #ffffff;
  border-color: #e5e7eb !important;
}
.line-row.zebra, .vocab-item.zebra, .tone-row.zebra, .scene-row.zebra {
  background: #fafafa !important;
}
.q-opt {
  background: #ffffff !important;
  color: #1c1f23 !important;
  border: 1px solid #e5e7eb !important;
}
.q-opt:hover { background: #f8fafc !important; }
.q-opt.right { background: #ecfdf5 !important; border-color: #10b981 !important; }
.q-opt.wrong { background: #fef2f2 !important; border-color: #ef4444 !important; }
.rec-big {
  background: #e6f4f1 !important;
  color: #0f766e !important;
  border: 1px dashed #0f766e !important;
}
.rec-big.recording { background: #fef2f2 !important; color: #b91c1c !important; border-color: #ef4444 !important; }
.line-play, .vocab-play, .tone-play {
  background: #ffffff !important;
  color: #374151 !important;
  border: 1px solid #d1d5db !important;
}
.ct-stats .stat { background: #f8fafc !important; border-color: #eef2f7 !important; }
.tone-list { border-color: #e5e7eb !important; }
.progress-bar { background: #eef2f7 !important; }
.foot { color: #6b7280 !important; }
