/* 北京话课堂页附加样式（不改 _shared/course/room.css 的全局规则）
 * 只补：说话人固定色条与圆点、中文句子的纯文本呈现、词表两行排布、
 *      页面侧面板（场合 / 词卡 / 语言点 / 练习）、文化页隐藏。
 */

/* ---------- 说话人：固定配色 + 色条 + 句首圆点 + 加深加粗 ---------- */
.who-lab {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 4px 0 4px 10px;
  border-left: 4px solid var(--bj-who-other, #64748b);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--text) !important;
}
.who-lab[data-who="对方"] { border-left-color: #64748b; }
.who-lab[data-who="你"] { border-left-color: #2563eb; }
.who-lab .cat-who-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #64748b;
  flex: 0 0 auto;
}
.who-lab[data-who="你"] .cat-who-dot { background: #2563eb; }
html.dark .who-lab { color: var(--text) !important; }

/* ---------- 中文句子：不做英文式的逐词按钮 ---------- */
html[data-unit="scene"] #chunks > button,
html[data-unit="written"] #chunks > button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 2px 0;
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.18rem, 1.05vw + .85rem, 1.45rem);
  line-height: 1.95;
  font-weight: 650;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: pre-wrap;
}
html[data-unit="scene"] #chunks > button:hover,
html[data-unit="written"] #chunks > button:hover {
  color: var(--primary);
}
html[data-unit="scene"] #chunks > button[aria-current="true"],
html[data-unit="written"] #chunks > button[aria-current="true"] {
  color: var(--text);
  border-color: transparent;
}
html[data-unit="scene"] #chunks,
html[data-unit="written"] #chunks { margin: 4px 0 2px; }

/* ---------- 词表：北京话词＋中文释义固定两行 ---------- */
html[data-unit="vocab"] .chunks button.vocab-head.vocab-head-inline {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
html[data-unit="vocab"] .chunks button.vocab-head.vocab-head-inline .vocab-head-en,
html[data-unit="vocab"] .chunks button.vocab-head.vocab-head-inline > span {
  display: block !important;
  font-size: clamp(1.5rem, 2vw, 1.95rem);
  font-weight: 800;
  line-height: 1.3;
}
html[data-unit="vocab"] .chunks button.vocab-head.vocab-head-inline .vocab-head-zh,
html[data-unit="vocab"] .chunks button.vocab-head.vocab-head-inline > small {
  display: block !important;
  margin-top: 2px;
  font-size: 1rem !important;
  color: var(--text-secondary);
  line-height: 1.45;
}
html[data-unit="vocab"] .chunks button.vocab-head.vocab-head-inline .vocab-head-zh::before,
html[data-unit="vocab"] .chunks button.vocab-head.vocab-head-inline > small::before {
  content: none !important;
}
html[data-unit="vocab"] .vocab-ex-line { font-size: 1.02rem; font-weight: 650; }
html[data-unit="vocab"] .vocab-ex-zh { color: var(--text-secondary); }

/* ---------- 页面侧信息面板 ---------- */
.bj-panels { margin: 14px 0 4px; display: flex; flex-direction: column; gap: 10px; }
html.m2m-culture .bj-panels { display: none !important; }

.bj-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card-bg) 92%, var(--bg));
  padding: 12px 14px 13px;
}
.bj-panel-h {
  margin: 0 0 8px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--text-secondary);
  text-transform: none;
}
.bj-panel-h small {
  margin-left: 8px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-secondary);
  opacity: .85;
}

.bj-scene { margin: 0; }
.bj-chip {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg);
}
.bj-hint { margin: 8px 0 0; font-size: .92rem; line-height: 1.7; color: var(--text-secondary); }
.bj-ipa { margin: 0 0 6px; font-family: ui-monospace, Menlo, monospace; color: var(--text-secondary); font-size: .92rem; }
.bj-pos { margin: 8px 0 0; font-size: .82rem; color: var(--text-secondary); }

.bj-kv {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}
.bj-kv dt {
  margin: 0;
  font-size: .8rem;
  font-weight: 800;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-top: 1px;
}
.bj-kv dd {
  margin: 0;
  font-size: .93rem;
  line-height: 1.65;
  color: var(--text);
  overflow-wrap: anywhere;
}

.bj-points { display: flex; flex-direction: column; gap: 10px; }
.bj-point-h { margin: 0 0 4px; font-size: .95rem; font-weight: 800; }
.bj-point-b { margin: 0; font-size: .92rem; line-height: 1.75; color: var(--text-secondary); }

.bj-q { padding: 10px 0 0; border-top: 1px dashed var(--border); }
.bj-q:first-child { padding-top: 0; border-top: 0; }
.bj-q-t { margin: 0 0 8px; font-size: .98rem; font-weight: 700; line-height: 1.6; display: flex; gap: 8px; align-items: flex-start; }
.bj-q-n {
  flex: 0 0 auto;
  width: 1.35rem; height: 1.35rem; line-height: 1.35rem;
  text-align: center; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: .78rem; font-weight: 800;
}
.bj-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.bj-opt {
  border: 1px solid var(--border);
  background: var(--card-bg-solid, var(--card-bg));
  color: var(--text);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: .9rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.bj-opt:hover { border-color: var(--primary); }
.bj-opt.ok { border-color: #15803d; background: color-mix(in srgb, #15803d 16%, transparent); font-weight: 700; }
.bj-opt.bad { border-color: #b91c1c; background: color-mix(in srgb, #b91c1c 14%, transparent); }
html.dark .bj-opt.ok { border-color: #4ade80; background: color-mix(in srgb, #4ade80 18%, transparent); }
html.dark .bj-opt.bad { border-color: #f87171; background: color-mix(in srgb, #f87171 16%, transparent); }
.bj-q-fb { margin: 8px 0 0; font-size: .86rem; line-height: 1.6; }
.bj-q-fb.ok { color: #15803d; }
.bj-q-fb.bad { color: #b91c1c; }
html.dark .bj-q-fb.ok { color: #4ade80; }
html.dark .bj-q-fb.bad { color: #f87171; }

/* ---------- 移动端 ---------- */
@media (max-width: 767.98px) {
  .bj-kv { grid-template-columns: 1fr; gap: 2px 0; }
  .bj-kv dt { margin-top: 6px; }
  .bj-opts { flex-direction: column; align-items: stretch; }
  .bj-opt { min-height: 42px; text-align: left; }
  html[data-unit="scene"] #chunks > button,
  html[data-unit="written"] #chunks > button { font-size: 1.16rem; line-height: 1.85; }
}
