/* 技巧课 demo（理论页）：沿用上面理论卡片 demo 的切换按钮和卡片（theory.css 的 .course-*），
   这里只补切换规则和课内题目样式；卡片随内容变高，内容一次完整显示。 */
.tips-demo { --app-ink: #252d2e; --app-green: #237a52; border-top: 2px solid var(--line); }
.tips-demo:has(#tips-part-0:checked) [data-tips-part="0"], .tips-demo:has(#tips-part-1:checked) [data-tips-part="1"], .tips-demo:has(#tips-part-2:checked) [data-tips-part="2"], .tips-demo:has(#tips-part-3:checked) [data-tips-part="3"], .tips-demo:has(#tips-part-4:checked) [data-tips-part="4"] { display: flex; }
.tips-demo .course-sample-header p { color: var(--muted); }
.tips-demo button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tips-demo button:disabled { cursor: default; opacity: .45; }
.tips-demo .mini-choice svg, .tips-demo .tp-result svg { width: 18px; height: 18px; flex: none; }

.tp-question { padding-block: 4px; }
.tp-question + .tp-question { border-top: 1px dashed #d8ddd3; margin-top: 22px; padding-top: 22px; }
.tp-caption { display: inline-block; font-size: 11px; font-weight: 700; color: #53645b; background: #e8ece4; border-radius: 6px; padding: 2px 8px; margin-bottom: 6px; }
.tp-italian { font-size: 18px; font-weight: 700; line-height: 1.6; overflow-wrap: break-word; color: var(--ink); }
.tp-italian mark, .tp-explain mark { background: #dcefd3; color: inherit; border-radius: 3px; padding: 0 2px; }
.tp-chinese { font-size: 14px; color: #53645b; line-height: 1.6; margin-top: 4px; }
.tp-chinese-toggle { padding-block: 2px; min-height: 34px; }
.tp-question .mini-choices { max-width: 360px; margin-top: 10px; }
.tp-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; border-top: 0; padding-top: 0; margin-top: 0; }
.tp-result > strong { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.tp-result > span { font-size: 13px; color: #727a76; }
.tp-result b { color: var(--app-green); }
.tp-technique { margin-top: 12px; background: #fff; border: 1.5px solid #e1ead6; border-radius: 14px; padding: 12px 14px; }
.tp-technique > span { font-size: 12px; color: #53645b; }
.tp-technique strong { display: block; font-size: 16px; line-height: 1.5; margin-top: 2px; }
.tp-technique p { font-size: 14px; line-height: 1.8; margin-top: 4px; color: #3e4743; }
.tp-explain { margin-top: 10px; display: grid; gap: 6px; }
.tp-explain h5 { font-size: 14px; }
.tp-explain p { font-size: 14px; line-height: 1.75; color: #3e4743; }
.tp-correction { color: var(--ink); font-weight: 650; }
.tp-explain .tp-cue { background: #fff; border-radius: 10px; padding: 8px 12px; font-size: 13px; color: var(--ink); }
.tp-cue > span { display: block; font-size: 11px; color: #727a76; }
.tp-cue i { font-style: normal; font-weight: 650; }
.tp-contrast { margin-top: 20px; font-size: 14px; line-height: 1.8; color: #3e4743; border-left: 3px solid #aad077; padding-left: 12px; }
.tp-limits { margin-bottom: 18px; }
.tp-limits p { font-size: 15px; line-height: 1.85; color: #3e4743; }
.tp-hint { font-size: 13px; color: #727a76; line-height: 1.7; margin-top: 14px; }

/* 电脑宽度：答完的题左右两栏（题目 | 结果和讲解）。 */
@media (min-width: 821px) {
  .tp-question.is-answered { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
}
@media (max-width: 820px) {
  .tp-q-side { margin-top: 14px; }
}
@media (max-width: 620px) {
  .tp-italian { font-size: 16px; }
  .tp-technique p, .tp-explain p, .tp-limits p, .tp-contrast { font-size: 13px; }
}
