/* 学习改进方案页。配色、字号来自 assets/site.css；卡片、按钮沿用期末补漏页的写法。 */

main.plan { width: min(760px, 100%); margin: 0 auto; padding: 20px 16px 56px; }
.plan h1 { margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -0.02em; }
.plan h2 { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -0.02em; }
.plan h3 { margin: 0 0 8px; font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan .muted { color: var(--muted); }
.plan p { overflow-wrap: anywhere; }

.plan-card, .plan-day {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin: 12px 0;
}
.plan-note { padding: 10px 12px; background: var(--bg-muted); border-radius: var(--radius-sm); }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.plan-actions .btn, .plan-actions button { flex: 1 1 160px; }

.plan-progress { height: 10px; border-radius: 999px; background: var(--bg-muted); overflow: hidden; margin-top: 10px; }
.plan-progress span { display: block; height: 100%; background: var(--ok); border-radius: 999px; transition: width 0.2s; }
.plan-progress-text { margin: 6px 0 0; font-weight: 800; }
.plan-head .plan-actions { margin-top: 12px; }

.plan-date { font-size: 0.88rem; font-weight: 650; color: var(--muted); }
.plan-mins { margin: 0 0 8px; color: var(--muted); font-size: 0.92rem; }
.plan-day.is-today { border-color: var(--brand); border-width: 2px; }
.plan-day.is-done { background: var(--ok-bg); }
.plan-day.is-done h3 { color: var(--ok); }

.plan-items { list-style: none; margin: 0; padding: 0; }
.plan-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 8px 0; border-top: 1px dashed var(--line);
}
.plan-item:first-child { border-top: 0; }
.plan-tick {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; flex: none; color: transparent;
}
.plan-item.is-done .plan-tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.plan-item-main { min-width: 0; flex: 1 1 160px; }
.plan-item-name { display: block; font-weight: 650; overflow-wrap: anywhere; }
.plan-item-meta { display: block; color: var(--muted); font-size: 0.88rem; }
.plan-links { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.plan-links a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 2px 12px;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 650; color: var(--brand-strong);
  background: var(--bg-elev);
}
.plan-links a:hover { background: var(--bg-muted); }
