/* 准备度 / 易混对比 / 图片词卡 demo；外框沿用 intro.css 的 .demo-app。 */
.unique-demo { margin-top: 34px; }
/* 内容一次完整显示：手机框随内容变高，不在框里滚动或裁切。 */
.unique-demo .live-demo-mount, .unique-demo .demo-app { height: auto; min-height: var(--demo-height); }
.unique-demo .mini-question { flex: 1 0 auto; overflow: visible; }
.interactive-demo:has(#demo-ready:checked) [data-demo="ready"], .interactive-demo:has(#demo-contrast:checked) [data-demo="contrast"], .interactive-demo:has(#demo-picture:checked) [data-demo="picture"] { display: grid; }

/* 准备度 */
.rd-card { display: flex; flex-direction: column; gap: 14px; }
.rd-head { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 10px; }
.demo-app .rd-gauge { width: 112px; height: auto; }
.rd-gauge-score { font-size: 27px; font-weight: 750; fill: #252d2e; }
.rd-status strong { display: block; font-size: 16px; line-height: 1.4; }
.rd-status span { display: block; font-size: 11px; color: #727a76; margin-top: 4px; line-height: 1.5; }
.rd-reason { font-size: 12px; line-height: 1.7; color: #3e4743; }
.rd-cap { font-size: 12px; line-height: 1.6; color: #a4422f; background: #fbeee9; border-radius: 10px; padding: 8px 10px; }
.rd-block { border-top: 1px solid #e6e8e3; padding-top: 12px; }
.rd-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 9px; }
.rd-strip button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; min-height: 52px; background: #fff; border: 1.5px solid #d9ddd6; border-bottom-width: 3px; border-radius: 10px; color: #252d2e; }
.rd-strip button b { font-size: 20px; line-height: 1.1; }
.rd-strip button span { font-size: 10px; color: #727a76; }
.rd-strip button.is-failed { border-color: #e2b3a8; background: #fdf3f0; color: #b94b36; }
.rd-strip button.is-failed span { color: #b94b36; }
.rd-tip { font-size: 10px; color: #7b7e77; text-align: center; margin-top: 6px; }
.rd-count { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #3e4743; }
.rd-count > div { display: flex; align-items: center; gap: 8px; }
.rd-count b { min-width: 42px; text-align: center; font-size: 15px; color: #252d2e; }
.rd-count button { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid #d9ddd6; border-bottom-width: 3px; background: #fff; font-size: 18px; font-weight: 700; color: #237a52; line-height: 1; }
.rd-gates { list-style: none; display: grid; gap: 9px; margin-top: 9px; padding: 0; }
.rd-gates li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; font-size: 12px; }
.rd-gates strong { font-weight: 650; line-height: 1.45; }
.rd-gates em { font-style: normal; color: #727a76; font-size: 11px; white-space: nowrap; }
.rd-mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: #eceee9; color: #53645b; }
.rd-gates li.is-met .rd-mark { background: #ddebe2; color: #237a52; }
.rd-gates li.is-met em { color: #237a52; }
.rd-footnote { font-size: 10px; line-height: 1.7; color: #7b7e77; }

/* 易混对比 & 图片词卡 */
.cx-position { font-size: 11px; color: #727a76; font-weight: 650; }
.cx-card, .pc-card { display: flex; flex-direction: column; }
.cx-word { font-size: 30px; font-weight: 750; letter-spacing: -.02em; text-align: center; margin-top: 26px; overflow-wrap: anywhere; }
.cx-word-small { font-size: 22px; margin-top: 4px; text-align: left; }
.cx-hint { text-align: center; font-size: 12px; color: #727a76; margin-top: 12px; }
.cx-answer { margin-top: 14px; text-align: center; }
.cx-answer > strong, .cx-opposite > strong { display: block; font-size: 16px; }
.cx-opposite { margin-top: 16px; border-top: 1px dashed #cfd5cd; padding-top: 12px; }
.cx-opposite > strong { margin-top: 2px; }
.cx-label { display: inline-block; font-size: 10px; font-weight: 700; color: #237a52; background: #ddebe2; border-radius: 6px; padding: 2px 7px; }
.cx-example { text-align: left; margin-top: 9px; background: #f6f6f2; border-radius: 10px; padding: 9px 10px; }
.cx-example > span { font-size: 10px; color: #727a76; }
.cx-example p { font-size: 13px; line-height: 1.6; margin-top: 3px; overflow-wrap: break-word; }
.cx-example mark { background: #f7edc7; color: #775d1b; border-radius: 2px; padding: 0 1px; }
.cx-example small { display: block; font-size: 11px; color: #53645b; line-height: 1.6; margin-top: 3px; }
.cx-paging { flex-shrink: 0; display: flex; justify-content: space-between; margin-top: 6px; }
.pc-image { display: block; width: 150px; height: 150px; object-fit: contain; margin: 18px auto 0; }
.pc-card .cx-word { margin-top: 14px; }
.pc-meaning { text-align: center; margin-top: 10px; }
.pc-meaning span { display: block; font-size: 10px; color: #727a76; }
.pc-meaning strong { display: block; font-size: 18px; margin-top: 2px; }
.pc-meaning small { display: block; font-size: 11px; color: #53645b; margin-top: 4px; }
.pc-meaning i { font-style: normal; }
.pc-note { margin-top: auto; padding-top: 14px; font-size: 10px; color: #7b7e77; text-align: center; }

@media (max-width: 620px) {
  /* 意大利语首页的三段小标签比中文长，手机上允许换行，避免页面横向溢出。 */
  .rd-head { grid-template-columns: 96px 1fr; }
  .demo-app .rd-gauge { width: 96px; }
  .cx-word { font-size: 26px; }
}
