    /* ====== 考试日历 ====== */

    /* 布局：左日历（宽）+ 右提醒（窄，右移） */
    .calendar-layout { display: flex; gap: 40px; height: 100%; width: 100%; }
    .calendar-main { flex: 1 1 70%; min-width: 0; display: flex; flex-direction: column; }
    .calendar-side { flex: 0 0 28%; min-width: 240px; max-width: 330px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; padding-left: 12px; }

    /* 日历头部 */
    .cal-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-shrink: 0; }
    .cal-nav-btn {
      width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
      background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center;
      font-size: 14px; color: var(--on-surface-variant); transition: all 0.15s;
    }
    .cal-nav-btn:hover { background: var(--hover-bg); border-color: var(--primary); color: var(--primary); }
    .cal-month-label { font-size: 20px; font-weight: 700; color: var(--on-surface); min-width: 140px; text-align: center; }
    .cal-add-btn {
      margin-left: auto; padding: 8px 18px; border-radius: 10px; border: 1px solid var(--primary);
      background: var(--white); cursor: pointer; font-family: inherit; font-size: 14px;
      color: var(--primary); transition: all 0.15s; white-space: nowrap;
    }
    .cal-add-btn:hover { background: var(--primary-container); }

    /* 星期头 */
    .cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin-bottom: 4px; flex-shrink: 0; }
    .cal-weekdays span { font-size: 13px; font-weight: 600; color: var(--on-surface-variant); padding: 6px 0; }
    .cal-weekdays span:first-child { color: var(--error); }
    .cal-weekdays span:last-child { color: var(--primary); }

    /* 日期网格 — 行等高填满画布，大号日期数字主导视觉 */
    .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; flex: 1; grid-auto-rows: 1fr; }
    .cal-cell {
      position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
      padding: 6px 4px 4px; border-radius: 10px; cursor: pointer; transition: all 0.15s;
      border: 1.5px solid transparent; overflow: hidden; min-height: 0;
    }
    .cal-cell:hover { background: var(--hover-bg); }
    .cal-cell.other-month { opacity: 0.32; pointer-events: none; }
    .cal-cell.today { border-color: var(--primary); background: var(--alpha-04); }
    .cal-cell.selected { background: var(--primary); color: white; }
    .cal-cell.selected .cal-day-num { color: white; }
    .cal-cell.selected .cal-ev-text { color: rgba(255,255,255,0.8); }
    .cal-cell.has-exam { background: rgba(231,76,60,0.07); }
    .cal-cell.has-exam.selected { background: var(--primary); }
    .cal-day-num {
      font-size: 22px; font-weight: 700; color: var(--on-surface); line-height: 1;
      margin-bottom: 2px; flex-shrink: 0; font-variant-numeric: tabular-nums;
    }
    .cal-cell.other-month .cal-day-num { color: var(--on-surface-variant); }

    /* 事件：短文字（≤8字），居中，彩色竖线标识 */
    .cal-events { display: flex; flex-direction: column; gap: 1px; align-items: center; width: 100%; overflow: hidden; }
    .cal-ev-item { display: inline-flex; align-items: center; gap: 4px; max-width: 95%; }
    .cal-ev-bar { width: 2px; height: 11px; border-radius: 1px; flex-shrink: 0; }
    .cal-ev-text {
      font-size: 10px; line-height: 1.4; color: var(--on-surface-variant);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    /* 右侧提醒面板 */
    .cal-side-title { font-size: 15px; font-weight: 600; color: var(--on-surface); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
    .cal-reminder-card {
      background: var(--white); border-radius: 14px; padding: 16px 18px;
      border: 1px solid var(--border); transition: all 0.15s;
    }
    .cal-reminder-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
    .cal-reminder-card + .cal-reminder-card { margin-top: 10px; }
    .cal-card-title { font-size: 14px; font-weight: 600; color: var(--on-surface); margin-bottom: 4px; }
    .cal-card-date { font-size: 12px; color: var(--on-surface-variant); margin-bottom: 8px; }
    .cal-card-status { display: inline-flex; align-items: center; font-size: 11px; padding: 3px 8px; border-radius: 6px; font-weight: 500; }
    .cal-card-status.done { background: rgba(76,175,80,0.1); color: #388e3c; }
    .cal-card-status.pending { background: rgba(255,152,0,0.1); color: #e65100; }
    .cal-countdown-num { font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
    .cal-countdown-label { font-size: 12px; color: var(--on-surface-variant); margin-bottom: 10px; }
    .cal-countdown-bar {
      height: 6px; border-radius: 3px; background: var(--hover-bg); overflow: hidden;
    }
    .cal-countdown-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
    .cal-countdown-fill.urgent { background: linear-gradient(90deg, #e74c3c, #f39c12); }
    .cal-countdown-fill.normal { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
    .cal-countdown-fill.safe { background: linear-gradient(90deg, #4caf50, #8bc34a); }
    .cal-empty-hint { font-size: 12px; color: var(--on-surface-variant); text-align: center; padding: 20px 0; }
