/* 30 天词汇挑战（challenge.html） */
.ch-wrap { max-width: 720px; }
.ch-head { text-align: center; padding: 34px 0 10px; }
.ch-badge { display: inline-block; background: #fff4d6; color: #8a5a00; font-size: 13px; font-weight: 600; border-radius: 980px; padding: 4px 12px; }
.ch-head h1 { font-size: 32px; margin: 12px 0 6px; }
.ch-sub { color: var(--muted); font-size: 16px; margin: 0; }
.ch-buy { text-align: center; margin: 18px 0 26px; }
.ch-price { font-size: 18px; color: var(--ink-red, #e5401b); margin-bottom: 10px; }
.ch-price b { font-size: 40px; }
.ch-price s { color: var(--faint); font-size: 15px; margin-left: 8px; }
.ch-buy .muted { font-size: 13px; margin-top: 8px; }
.ch-rules { background: var(--gray, #f5f5f7); border-radius: 16px; padding: 16px 20px 16px 38px; margin: 0; font-size: 15px; line-height: 1.9; }
.ch-desc { margin: 18px 4px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.ch-start { text-align: center; margin: 20px 0 24px; font-size: 16px; }
.ch-h2 { font-size: 18px; margin: 30px 0 12px; }
.ch-hint { margin: -6px 0 10px; font-size: 13px; color: var(--faint); }
.ch-h2 small { font-size: 13px; color: var(--faint); font-weight: 400; margin-left: 6px; }
.ch-more { margin: 26px 0 10px; color: var(--muted); }
.ch-more summary { cursor: pointer; font-size: 14px; margin-bottom: 10px; }

/* 进度数字 */
.ch-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 18px 0; }
.ch-stats div { background: var(--gray, #f5f5f7); border-radius: 12px; padding: 10px 6px; text-align: center; }
.ch-stats b { display: block; font-size: 24px; }
.ch-stats span { font-size: 12px; color: var(--muted); }
/* 今日任务 */
.ch-today { border: 1px solid var(--line, #e5e5ea); border-radius: 18px; padding: 22px; text-align: center; }
.ch-today.ok { background: #effaf3; border-color: #c9ecd5; }
.ch-today.win { background: #fff8e6; border-color: #f5dc9a; }
.ch-today.lose { background: #f7f7f8; }
.ch-big { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.ch-today p { color: var(--muted); margin: 8px 0 14px; }
.ch-reward { color: #8a5a00 !important; font-weight: 600; }
.ch-bar { height: 8px; background: #ececf0; border-radius: 8px; overflow: hidden; margin: 10px 0; }
.ch-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4caf7a, #1d9e8f); border-radius: 8px; transition: width .3s; }
.ch-miss { color: #b35c00; font-size: 14px; margin: 12px 4px 0; }
.ch-done { background: #effaf3; color: #1e6b3d; border-radius: 12px; padding: 12px 16px; margin: 18px 0 0; font-weight: 600; text-align: center; }
/* 打卡日历：一行 7 天 */
.ch-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.ch-day { aspect-ratio: 1; border-radius: 12px; background: #f5f5f7; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; color: var(--faint); }
.ch-day span { font-size: 15px; font-weight: 600; }
.ch-day i { font-style: normal; font-size: 11px; min-height: 1em; }
.ch-day.done { background: #4caf7a; color: #fff; }
.ch-day.makeup { background: #f3a93c; color: #fff; }
.ch-day.missed { background: #fff; border: 1px dashed #d6d6db; }
.ch-day.missed.can { border-color: #f3a93c; color: #b35c00; cursor: pointer; }
.ch-day.missed.can:hover { background: #fff6e8; }
.ch-day.today { background: #fff; border: 2px solid #3554d1; color: #3554d1; }
.ch-day.future { opacity: .7; }

/* 复习卡片 */
.ch-session { padding: 18px 0 30px; }
.ch-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.ch-card { border: 1px solid var(--line, #e5e5ea); border-radius: 20px; padding: 24px 24px 20px; margin-top: 14px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .05); }
.ch-session .ch-card { position: relative; }   /* 💬 批注标记相对卡片定位 */
.ch-session .ch-card .u-margin { right: 4px; }
.ch-card.sample { box-shadow: none; }
.ch-src { font-size: 12.5px; color: var(--faint); margin-bottom: 12px; }
.ch-ctx { font: 19px/1.9 var(--n-content-font, Georgia, serif); color: var(--text); }
.ch-kind { display: inline-block; margin-bottom: 10px; padding: 1px 9px; border-radius: 999px; font-size: 12px; color: var(--muted); border: 1px solid var(--line, #e5e5ea); }
.ch-zh { font-size: 15px; line-height: 1.7; color: var(--muted); margin-bottom: 8px; }
.ch-blank { display: inline-block; width: 5em; border-bottom: 2px solid var(--text); margin: 0 3px; vertical-align: baseline; }
.ch-passage { font-size: 17px; }
.ch-solved { margin: 8px 0 14px; font: 16px/1.75 var(--n-content-font, Georgia, serif); }
.ch-solved b { color: var(--blue, #1e40af); }
.ch-solved small { display: block; font-size: 14px; color: var(--muted); }
.ch-ctx-say { display: block; margin: 2px 0 0; padding: 2px 0; font-size: 13px; color: var(--muted); cursor: pointer; }
.ch-ctx-say:hover { color: var(--text); }
.ch-ctx.solo { font-size: 30px; text-align: center; padding: 20px 0; }
.ch-w { color: #1f3fb0; background: rgba(80, 160, 255, .14); border-radius: 3px; padding: 0 2px; }
.ch-ask { color: var(--muted); font-size: 14px; margin: 14px 0 18px; }
.ch-ask b { color: var(--text); }
.ch-show { width: 100%; }
.ch-show small { font-size: 12px; opacity: .7; margin-left: 6px; }
.ch-ans { border-top: 1px dashed var(--line, #e5e5ea); padding-top: 16px; animation: fade .2s; }
.ch-word { font-size: 22px; font-weight: 700; color: #1f3fb0; display: flex; align-items: baseline; gap: 10px; }
.ch-word span { font-size: 14px; font-weight: 400; color: var(--muted); }
.ch-word button { font-size: 16px; }
.ch-mean { font-size: 16px; line-height: 1.75; margin: 8px 0; }
.ch-ex { font-size: 14px; line-height: 1.75; color: var(--muted); background: var(--gray, #f5f5f7); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.ch-back { font-size: 13px; color: var(--muted); }
.ch-rate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.ch-rate > * { border: 0; border-radius: 14px; padding: 13px 6px; font: 600 15px var(--font, inherit); cursor: pointer; text-align: center; }
.ch-rate small { display: block; font-size: 11px; font-weight: 400; opacity: .6; }
.ch-rate .r1 { background: #fdebec; color: #b3261e; }
.ch-rate .r2 { background: #fff4d6; color: #8a5a00; }
.ch-rate .r3 { background: #e8f6ee; color: #1e6b3d; }
.ch-rate button:disabled { opacity: .5; }
.ch-tip { text-align: center; color: var(--faint); font-size: 12px; margin-top: 14px; }
@media (max-width: 600px) {
  .ch-stats { grid-template-columns: repeat(3, 1fr); }
  .ch-stats div:nth-child(n+4) { display: none; }
  .ch-cal { gap: 5px; }
  .ch-day { border-radius: 9px; }
  .ch-ctx { font-size: 17px; }
  .ch-card { padding: 20px 18px 16px; }
}
/* 选择题 */
.ch-opts { display: grid; gap: 10px; margin: 4px 0 6px; }
.ch-option { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1.5px solid var(--line, #e5e5ea); background: #fff; border-radius: 14px; padding: 13px 16px; font: 16px var(--font, inherit); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.ch-option:hover:not(:has(button:disabled)) { border-color: #3554d1; background: #f5f7ff; }
.ch-option button { border: 0; padding: 0; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #f1f1f4; font: 600 13px/26px var(--font, inherit); text-align: center; color: var(--muted); cursor: inherit; }
.ch-option:has(button:disabled) { cursor: default; }
.ch-option [data-lookup-only] { -webkit-user-select: text; user-select: text; cursor: text; }
.ch-option.right { border-color: #4caf7a; background: #effaf3; }
.ch-option.right button { background: #4caf7a; color: #fff; }
.ch-option.wrong { border-color: #e0533b; background: #fdf0ed; }
.ch-option.wrong button { background: #e0533b; color: #fff; }
.ch-unsure-row { display: flex; justify-content: center; gap: 28px; margin-top: 10px; }
.ch-unsure { font-size: 14px; color: var(--muted); }
.ch-result { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.ch-result .ok { color: #1e6b3d; } .ch-result .no { color: #b3261e; }
.ch-ans .ch-result:empty { display: none; }
.ch-next { width: 100%; margin-top: 16px; }
.ch-next small { font-size: 12px; opacity: .7; margin-left: 6px; }
.ch-card.sample .ch-ans { border-top: 1px dashed var(--line, #e5e5ea); margin-top: 12px; }
#sAgain { display: block; margin: 14px auto 0; font-size: 14px; }
/* 答完题后的讲解（和阅读空间查词卡片同样的样式） */
.ch-sub-h { font-size: 13px; font-weight: 600; color: var(--muted); margin: 16px 0 8px; }
.ch-ans .u-senses { margin-top: 0; }
.ch-here .u-sense { background: #f5f8ff; border-radius: 0 10px 10px 0; padding: 8px 12px; }
.ch-here .u-zh { font-size: 16px; }
.ch-notes .ch-mean { font-size: 15px; }
.ch-ans .u-sense-ex { font-size: 14.5px; }
/* 「还有这些意思」：默认收起，点三角展开 / 收起 */
.ch-fold { margin: 16px 0 0; }
.ch-fold summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 0; user-select: none; }
.ch-fold summary::-webkit-details-marker { display: none; }
.ch-fold summary::before { content: ""; width: 0; height: 0; border-left: 6px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; transition: transform .15s; }
.ch-fold[open] summary::before { transform: rotate(90deg); }
.ch-fold summary small { font-weight: 400; color: var(--faint); }
.ch-fold summary:hover { color: var(--text); }
.ch-fold .u-senses { margin-top: 6px; }
/* 分期：选第几期 */
.ch-up { display: inline-block; margin-top: 22px; font-size: 14px; color: var(--muted); }
.ch-up + .ch-head { padding-top: 12px; }
.ch-ed-lead { text-align: center; color: var(--muted); margin: 6px 0 16px; }
.ch-eds { display: grid; gap: 10px; margin-bottom: 26px; }
.ch-ed { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line, #e5e5ea); border-radius: 14px; padding: 14px 16px; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
a.ch-ed:hover { border-color: #3554d1; box-shadow: 0 4px 14px rgba(53, 84, 209, .1); }
.ch-ed.off { background: #fafafa; color: var(--faint); }
.ch-ed-n { flex: none; width: 64px; height: 44px; border-radius: 10px; background: #fff4d6; color: #8a5a00; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.ch-ed.off .ch-ed-n { background: #f1f1f3; color: var(--faint); }
.ch-ed-main { flex: 1; min-width: 0; }
.ch-ed-main b { display: block; font-size: 16px; }
.ch-ed-main span { font-size: 13px; color: var(--muted); }
.ch-ed-st { flex: none; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.ch-ed-price { color: var(--ink-red, #e5401b); font-weight: 700; font-size: 16px; }
.ch-ed-go { color: var(--ink-blue, #1f3fb0); font-weight: 600; }
.ch-ed-done { color: #1e6b3d; font-weight: 600; }
.ch-ed-soon { color: var(--faint); }
/* 我的生词挑战：每天复习多少个自己选 */
.ch-daily { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; margin: 4px 0 12px; white-space: nowrap; width: auto; }
.ch-daily select { width: auto; min-width: 0; flex: none; font: inherit; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.ch-start .ch-daily { display: flex; justify-content: center; }
.ch-daily-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 10px 0 4px; font-size: 14px; }
.ch-daily-row .ch-daily { margin: 0; }
.ch-mine { background: var(--gray); border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.6; margin: 12px 0; }
/* 答完题后显示的例句中文翻译 */
.ch-ctx-zh { margin: -4px 2px 12px; padding: 8px 12px; border-radius: 10px; background: #f4f6ff; color: #4a4f60; font-size: 14.5px; line-height: 1.7; }
html[data-theme="dark"] .ch-ctx-zh { background: #1f2a55; color: #c9d0ea; }
