/* 倒计时 + 复习计划 */
.cd-wrap { max-width: 1100px; margin: 0 auto; padding: 0 12px; }

.cd-tabs { display: flex; gap: 0; background: #ede9fe; border-radius: 10px; padding: 4px; margin-bottom: 18px; }
.cd-tab { flex: 1; text-align: center; padding: 10px 8px; cursor: pointer; border-radius: 8px; font-size: 14px; color: #5b21b6; transition: all .15s; user-select: none; }
.cd-tab.on { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; box-shadow: 0 1px 3px rgba(124, 58, 237, .3); }
.cd-tab:hover:not(.on) { background: rgba(124, 58, 237, .1); }

.cd-pane { background: #fff; border: 1px solid #e9d5ff; border-radius: 12px; padding: 22px; }

/* 考试卡片网格 */
.cd-exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 22px; }
.cd-exam { background: #fff; border: 2px solid #e5e7eb; border-radius: 10px; padding: 14px; cursor: pointer; transition: all .15s; text-align: center; }
.cd-exam:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.cd-exam.on { box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: translateY(-2px); }
.cd-exam-icon { font-size: 28px; }
.cd-exam-name { font-size: 13px; font-weight: 600; color: #1f2937; margin-top: 6px; line-height: 1.4; }
.cd-exam-date { font-size: 11px; color: #6b7280; margin-top: 4px; font-family: ui-monospace, monospace; }
.cd-exam-count { font-size: 18px; font-weight: 700; margin-top: 6px; }

/* 大倒计时 */
.cd-result-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.cd-result-head { padding: 28px 20px; text-align: center; color: #fff; }
.cd-exam-title { font-size: 18px; font-weight: 700; }
.cd-exam-desc { font-size: 13px; opacity: .9; margin-top: 4px; }
.cd-big-num { font-size: 64px; font-weight: 800; line-height: 1; margin-top: 12px; letter-spacing: -2px; text-shadow: 0 2px 8px rgba(0,0,0,.15); }
.cd-big-label { font-size: 14px; opacity: .9; margin-top: 4px; }

.cd-detail { padding: 18px 20px; border-top: 1px solid #f3f4f6; }
.cd-detail h4 { margin: 0 0 12px; font-size: 14px; color: #5b21b6; font-weight: 600; }

.cd-day { background: #faf5ff; border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.cd-day-title { font-size: 13px; font-weight: 600; color: #6d28d9; }
.cd-day ul { margin: 6px 0 0 18px; padding: 0; font-size: 13px; color: #4b5563; line-height: 1.7; }

.cd-subjects { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-subject { padding: 4px 12px; border-radius: 14px; font-size: 12px; font-weight: 500; }

/* 阶段进度 */
.cd-stages { display: flex; flex-direction: column; gap: 10px; }
.cd-stage { background: #f9fafb; border-radius: 8px; padding: 0; overflow: hidden; position: relative; }
.cd-stage-bar { height: 4px; }
.cd-stage-content { padding: 10px 14px; }
.cd-stage-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.cd-stage-head strong { font-size: 14px; color: #1f2937; }
.cd-stage-head span { font-size: 11px; color: #6b7280; font-family: ui-monospace, monospace; }
.cd-stage-focus { font-size: 12px; color: #4b5563; line-height: 1.6; margin-top: 4px; }
.cd-stage-now { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.cd-stage-now .cd-stage-head strong::before { content: '👉 '; }

.cd-plan-tip { font-size: 12px; color: #92400e; background: #fef3c7; padding: 8px 12px; border-radius: 6px; margin-top: 10px; }

/* 自定义 */
.cd-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.cd-row label { flex: 0 0 100px; font-size: 13px; color: #4b5563; }
.cd-row input { flex: 1; min-width: 120px; padding: 8px 10px; border: 1px solid #e9d5ff; border-radius: 6px; font-size: 14px; }
.cd-row input:focus { outline: none; border-color: #7c3aed; }
.cd-actions { display: flex; gap: 10px; margin-top: 14px; }
.cd-btn { padding: 10px 20px; border: 0; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; }
.cd-btn-primary { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; }

.cd-empty { padding: 40px 20px; text-align: center; color: #9ca3af; font-size: 14px; background: #faf5ff; border-radius: 8px; }

@media (max-width: 600px) {
  .cd-tab { font-size: 12px; }
  .cd-big-num { font-size: 48px; }
  .cd-row label { flex: 0 0 100%; }
}
