/* ===== 学生侧栏：校区 → 班级 → 学生（挤压主内容 ~1/4 屏宽） ===== */
.student-drawer {
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #eef2ff 0%, var(--surface-page) 28%);
  border-right: 0 solid var(--border-subtle);
  transition: flex-basis 0.28s cubic-bezier(0.33, 1, 0.68, 1),
    width 0.28s cubic-bezier(0.33, 1, 0.68, 1),
    border-width 0.28s ease;
}

.ios-screen.is-drawer-open .student-drawer {
  flex: 0 0 25%;
  width: 25%;
  max-width: 25%;
  border-right-width: 1px;
}

.drawer-zone-head {
  min-height: 28px;
  margin-bottom: 6px;
}

.drawer-zone-head .drawer-level-label {
  margin: 0;
  line-height: 28px;
}

.drawer-zone {
  flex-shrink: 0;
  padding: 8px 8px 10px;
}

.drawer-level-label {
  margin: 0 0 6px;
  padding-left: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.2;
}

.class-tree {
  min-height: 0;
}

.drawer-divider {
  flex-shrink: 0;
  height: 1px;
  margin: 0 10px;
  background: linear-gradient(90deg, transparent, var(--border-subtle) 20%, var(--border-subtle) 80%, transparent);
}

/* L1 · 校区折叠选择（适配 6+ 校区） */
.campus-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.campus-picker-trigger[aria-expanded="true"] {
  border-color: rgba(76, 117, 242, 0.45);
  box-shadow: 0 4px 14px rgba(76, 117, 242, 0.12);
}

.campus-picker-trigger__name {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.campus-picker-trigger__icon {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.22s ease;
}

.campus-picker-trigger[aria-expanded="true"] .campus-picker-trigger__icon {
  transform: rotate(180deg);
  color: var(--brand);
}

.campus-picker-panel {
  margin-top: 6px;
  border-radius: 10px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.campus-picker-panel[hidden] {
  display: none;
}

.campus-picker-list {
  margin: 0;
  padding: 4px;
  list-style: none;
}

.campus-picker-item {
  display: block;
  width: 100%;
  padding: 7px 8px;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.campus-picker-item__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campus-picker-item.is-active {
  background: var(--tint-blue);
  color: var(--brand-deep);
  font-weight: 600;
}

.campus-picker-item:not(.is-active):active {
  background: var(--surface-page);
}

.drawer-body-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 8px;
  padding: 4px 2px 6px;
  background: linear-gradient(180deg, var(--surface-page) 75%, transparent);
}

.drawer-level-label--inline {
  margin: 0;
}

.drawer-meta-badge {
  flex-shrink: 0;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  color: var(--brand-deep);
  background: var(--tint-blue);
  border-radius: 999px;
}

.drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 8px 14px;
  scrollbar-width: none;
}

.drawer-body::-webkit-scrollbar {
  display: none;
}

/* L2 · 班级 */
.class-block {
  margin-bottom: 6px;
}

.class-block .class-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  padding: 8px 8px 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-primary);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.class-header__label {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.class-header__chevron {
  flex-shrink: 0;
  font-size: 9px;
  color: var(--text-muted);
  transition: transform 0.22s ease, color 0.2s;
}

.class-block.is-expanded .class-header {
  color: #fff;
  background: var(--brand-gradient);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(76, 117, 242, 0.28);
}

.class-block.is-expanded .class-header__chevron {
  transform: rotate(180deg);
  color: rgba(255, 255, 255, 0.85);
}

.class-block .student-list {
  display: none;
  margin: 0;
  padding: 2px 0 4px 10px;
  list-style: none;
  border-left: 2px solid rgba(76, 117, 242, 0.22);
  margin-left: 8px;
}

.class-block.is-expanded .student-list {
  display: block;
  animation: drawer-students-in 0.22s ease;
}

@keyframes drawer-students-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* L3 · 学生 */
.student-item {
  display: flex;
  align-items: center;
  position: relative;
  padding: 5px 6px 5px 8px;
  margin-bottom: 1px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.student-item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 6px;
  height: 1px;
  background: rgba(76, 117, 242, 0.35);
  transform: translateY(-50%);
}

.student-item__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-item.is-active {
  background: var(--tint-blue);
  color: var(--brand-deep);
  font-weight: 600;
}

.student-item.is-active::after {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 2px rgba(76, 117, 242, 0.2);
}

.student-item:not(.is-active):active {
  background: rgba(255, 255, 255, 0.8);
}

/* ===== 顶栏打卡状态（标题栏右侧） ===== */
.clock-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.clock-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* ===== Toast 提示 ===== */
.toast {
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%) translateY(12px);
  padding: 10px 16px;
  background: rgba(26, 26, 26, 0.88);
  color: #fff;
  font-size: 13px;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 60;
  pointer-events: none;
  max-width: 280px;
  text-align: center;
}

.toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== 功能入口 ===== */
.feature-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.feature-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.feature-icon__box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-icon__box--amber { background: var(--tint-amber); color: var(--color-warning); }
.feature-icon__box--blue { background: var(--tint-blue); color: var(--brand); }
.feature-icon__box--violet { background: var(--tint-violet); color: var(--color-premium); }
.feature-icon__box--green { background: var(--tint-green); color: var(--color-success); }

.feature-icon__label {
  font-size: var(--font-size-caption);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== 模块卡片 ===== */
.module {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.module__header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
  min-width: 0;
}

.performance-module .module__title {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 15px;
  gap: 6px;
}

.performance-module .module__title-bar {
  height: 14px;
}

.performance-module .star-rating {
  flex-shrink: 0;
  gap: 0;
}

.performance-module .star-rating__btn {
  font-size: 15px;
  padding: 0 1px;
}

.module__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-subheading);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.module__title--solo {
  margin-bottom: 8px;
  white-space: nowrap;
}

.module__title-bar {
  width: 4px;
  height: 16px;
  background: var(--brand);
  border-radius: 2px;
}

.module__divider {
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: 12px;
}

.module__subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin: -8px 0 12px;
  padding-left: 12px;
}

/* ===== 星级评分 ===== */
.star-rating {
  display: flex;
  gap: 2px;
}

.star-rating__btn {
  font-size: 20px;
  color: var(--color-star-inactive);
  padding: 2px;
}

.star-rating__btn.is-active {
  color: var(--color-star);
}

/* ===== 文本域 & 发布 ===== */
.performance-textarea {
  width: 100%;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-button);
  background: var(--surface-page);
  font-size: var(--font-size-body);
  color: var(--text-primary);
  resize: none;
  line-height: 1.6;
}

.performance-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(76, 117, 242, 0.15);
}

.btn-publish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 14px 20px;
  border-radius: var(--radius-button);
  background: var(--brand);
  color: #fff;
  font-size: var(--font-size-body);
  font-weight: 600;
  box-shadow: var(--shadow-cta);
  transition: transform 0.15s;
}

.btn-publish:active {
  transform: scale(0.95);
}

.btn-publish.is-published {
  background: var(--color-success);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-publish:disabled {
  opacity: 0.9;
}

/* ===== 作业清单（紧凑） ===== */
.module--homework {
  padding: 10px 12px;
  margin-bottom: 10px;
}

.module--homework .module__title--solo {
  margin-bottom: 6px;
  font-size: 15px;
}

.module--homework .module__title-bar {
  height: 14px;
}

.homework-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.homework-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.homework-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.homework-item:first-child {
  padding-top: 0;
}

.hw-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #D0D5DD;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hw-checkbox.is-checked {
  background: var(--tint-blue);
  border-color: var(--brand);
}

.hw-checkbox.is-checked i {
  font-size: 10px;
  color: var(--brand);
}

.hw-subject {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

.hw-subject--english { background: var(--tint-blue); color: var(--brand); }
.hw-subject--done { background: var(--surface-page); color: var(--text-muted); }

.homework-item > div {
  min-width: 0;
  flex: 1;
}

.hw-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

.hw-title.is-done {
  color: var(--text-muted);
  font-weight: 400;
}

.hw-note {
  font-size: 11px;
  color: var(--text-secondary);
  margin: 1px 0 0;
  line-height: 1.3;
}

/* ===== 今日目标（学生详情 · 复用作业清单结构） ===== */
.module--goals {
  padding: 10px 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: opacity 0.14s ease;
}

.module--goals:active {
  opacity: 0.92;
}

.module--goals .module__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.module--goals .module__title--solo {
  margin-bottom: 0;
  font-size: 15px;
  flex: 0 0 auto;
}

.module--goals .module__title-bar {
  height: 14px;
}

.module__goals-meta {
  margin: 0;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.2;
}

.module__goals-meta-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.module__goals-meta-num {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--brand);
}

.module__goals-meta-done {
  color: var(--text-muted);
  font-weight: 500;
}

.module--goals .student-goal-list {
  pointer-events: none;
}

.module--goals .hw-subject--goal-study {
  background: var(--tint-blue);
  color: var(--brand);
}

.module--goals .hw-subject--goal-habit {
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
}

.module--goals .hw-subject--goal-chore {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.module--goals .hw-subject--goal-sport {
  background: rgba(244, 63, 94, 0.1);
  color: #be123c;
}

.module--goals .student-goal-more-row {
  padding-top: 6px;
}

.module--goals .student-goal-more-row .student-goal-more-hint {
  margin: 0;
}

.module--goals .student-goal-empty-row {
  list-style: none;
  padding: 2px 0 0;
  border: none;
}

.student-goal-empty {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: left;
  line-height: 1.4;
}

.student-goal-empty--action {
  color: var(--brand);
  font-weight: 500;
}

.student-goal-empty--done {
  color: var(--text-muted);
  font-weight: 400;
}

/* ===== 时间轴（无模块底，铺满内容区宽度） ===== */
.module--timeline {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin-left: -16px;
  margin-right: -16px;
  width: calc(100% + 32px);
  margin-bottom: 16px;
}

.module--timeline .module__title--solo {
  padding: 0 16px;
  margin-bottom: 10px;
}

.module__title--timeline {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.module__title--timeline .module__title-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.timeline-quick-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.timeline-quick-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: var(--radius-chip);
  font-size: var(--font-size-caption);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.timeline-quick-tag__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-chip);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.timeline-quick-tag--review {
  color: var(--color-review);
}

.timeline-quick-tag--review .timeline-quick-tag__count {
  background: var(--tint-review);
  color: var(--color-warning);
}

.timeline-quick-tag--review.is-active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-chip-active);
}

.timeline-quick-tag--review.is-active .timeline-quick-tag__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.timeline-quick-tag--revise {
  color: var(--color-revise);
}

.timeline-quick-tag--revise .timeline-quick-tag__count {
  background: var(--tint-revise);
  color: var(--color-revise);
}

.timeline-quick-tag--revise.is-active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-chip-active);
}

.timeline-quick-tag--revise.is-active .timeline-quick-tag__count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.timeline-quick-tag:active {
  transform: scale(0.95);
}

.module--timeline .timeline {
  padding: 0 12px 4px;
}

.timeline-empty {
  margin: 0 0 12px;
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-secondary);
  background: var(--surface-card);
  border: 1px dashed rgba(76, 117, 242, 0.22);
  border-radius: var(--radius-card);
}

.timeline-empty[hidden] {
  display: none;
}

.timeline-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  animation: timeline-item-in 0.32s cubic-bezier(0.33, 1, 0.68, 1) backwards;
}

#timelineList > .timeline-item:nth-child(2) { animation-delay: 0.03s; }
#timelineList > .timeline-item:nth-child(3) { animation-delay: 0.06s; }
#timelineList > .timeline-item:nth-child(4) { animation-delay: 0.09s; }
#timelineList > .timeline-item:nth-child(5) { animation-delay: 0.12s; }

@keyframes timeline-item-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item.is-filter-hidden {
  display: none;
}

.timeline--filtered .timeline-item:not(.is-filter-hidden) {
  animation: timeline-filter-in 0.24s cubic-bezier(0.33, 1, 0.68, 1);
}

@media (prefers-reduced-motion: reduce) {
  .timeline-item,
  .timeline--filtered .timeline-item:not(.is-filter-hidden) {
    animation: none;
  }
}

@keyframes timeline-filter-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.timeline-axis {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 36px;
  flex-shrink: 0;
  position: relative;
}

.timeline-axis::after {
  content: "";
  position: absolute;
  top: 34px;
  bottom: -14px;
  width: 2px;
  background: linear-gradient(180deg, rgba(76, 117, 242, 0.28) 0%, var(--border-subtle) 55%, transparent 100%);
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item:last-child .timeline-axis::after {
  display: none;
}

.timeline-time {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.timeline-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  z-index: 1;
  border: 2px solid var(--surface-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.timeline-node--blue { background: var(--tint-blue); color: var(--brand); }
.timeline-node--gold { background: var(--tint-amber); color: var(--color-warning); }
.timeline-node--orange { background: var(--tint-violet); color: var(--color-premium); }

.timeline-card {
  flex: 1;
  min-width: 0;
  background: var(--surface-card);
  border-radius: var(--radius-card);
  padding: 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.timeline-card--homework {
  position: relative;
  overflow: hidden;
}

.timeline-card--homework::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
  opacity: 0.7;
}

.timeline-card__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}

.timeline-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

/* 订正卡片 */
.timeline-card__header--stack {
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.timeline-card__header--stack .timeline-card__title {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 作业结果：全对 / 待订正 / 已订正 */
.homework-result-badge {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: var(--radius-chip);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.homework-result-badge--perfect {
  background: var(--tint-success-soft);
  color: var(--color-success-deep);
}

.homework-result-badge--pending {
  background: var(--tint-revise);
  color: var(--color-revise);
}

.homework-result-badge--review {
  background: var(--tint-review);
  color: var(--color-review);
}

.homework-result-badge--corrected {
  background: var(--tint-blue);
  color: var(--brand-deep);
}

.homework-sheet-wrap {
  position: relative;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.homework-sheet {
  width: calc((100% - 8px) / 2);
  max-width: calc((100% - 8px) / 2);
  aspect-ratio: 3 / 4;
  min-height: 72px;
  border-radius: var(--radius-icon);
  background: var(--surface-sheet);
  border: 1px solid rgba(76, 117, 242, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 8px rgba(76, 117, 242, 0.06);
}

.homework-sheet-badge {
  display: block;
  width: fit-content;
  margin: 6px 0 0;
  padding: 4px 12px;
  border-radius: var(--radius-chip);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.homework-sheet-badge--error {
  background: var(--tint-error-soft);
  color: var(--color-error-deep);
}

.correction-compare {
  margin-bottom: 10px;
}

.correction-compare__viewport {
  overflow: hidden;
  border-radius: var(--radius-icon);
  border: 1px solid var(--border-subtle);
  background: var(--surface-page);
}

.correction-compare__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}

.correction-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
}

.correction-compare__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
}

.correction-pane {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.correction-pane__label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.correction-pane__sheet {
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 72px;
  border-radius: 12px;
  background: var(--surface-sheet);
  border: 1px solid rgba(76, 117, 242, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 8px rgba(76, 117, 242, 0.06);
}

.correction-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-chip);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
}

.correction-badge--before {
  background: var(--tint-error-soft);
  color: var(--color-error-deep);
}

.correction-badge--after {
  background: var(--tint-success-soft);
  color: var(--color-success-deep);
}

.correction-compare__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  min-height: 8px;
}

.correction-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #d0d5dd;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.correction-dot.is-active {
  background: var(--brand);
  transform: scale(1.15);
}

.correction-dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(76, 117, 242, 0.4);
}

/* 打卡照片：微信动态常见 4:3，宽度与作业对比区一致（不超出卡片） */
.timeline-card__media {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #e8edf5 0%, #dde4ee 100%);
  border-radius: 8px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.timeline-card__meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.timeline-card__comment {
  padding: 10px 12px 10px 14px;
  margin-bottom: 0;
  position: relative;
  background: linear-gradient(135deg, #f8f9fc 0%, var(--surface-page) 100%);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.timeline-card__comment::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--brand-gradient);
  border-radius: 0 2px 2px 0;
}

.comment-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-deep);
  margin: 0 0 6px;
}

.comment-label i {
  font-size: 10px;
  color: var(--brand);
  opacity: 0.9;
}

.comment-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0;
}

/* 动态底部点赞 */
.timeline-likes {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.timeline-likes__btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--surface-page);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 14px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.timeline-likes__btn.is-active {
  background: var(--tint-blue);
  border-color: rgba(76, 117, 242, 0.35);
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(76, 117, 242, 0.12);
}

.timeline-likes__btn:active {
  transform: scale(0.94);
}

.timeline-likes__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.timeline-likes__names {
  color: var(--brand-deep);
  font-weight: 500;
}

.timeline-likes__count {
  color: var(--text-primary);
  font-weight: 600;
}

.timeline-card__progress {
  background: var(--tint-amber);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--border-subtle);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.progress-title {
  font-size: 13px;
  font-weight: 600;
}

.progress-badge {
  font-size: 11px;
  color: var(--color-warning);
  font-weight: 600;
}

.progress-stats {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
}

.progress-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-button);
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(76, 117, 242, 0.3);
}

.media-scan-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  color: var(--brand);
}

.media-time-tag {
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.65);
  color: #fff;
  font-size: 10px;
}

.timeline-card__media--dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
}

.media-placeholder {
  background: #DDE2E8;
  border-radius: 6px;
  min-height: 52px;
  position: relative;
}

.media-tag {
  position: absolute;
  bottom: 4px;
  left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 9px;
}

.media-tag--error { background: var(--tint-amber); color: var(--color-warning); }
.media-tag--success { background: var(--tint-green); color: var(--color-success); }
