/* 班级圈 · 与托管 Tab 统一的亮色科技蓝 */

.care-view--feed {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface-page);
}

/* —— 顶栏（对齐 care-hub-bar） —— */
.care-feed-bar {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 8px;
  background: var(--surface-page);
}

.care-feed-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.care-feed-back,
.care-feed-bar__settings,
.care-feed-bar__publish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-icon);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.care-feed-back {
  color: var(--text-primary);
}

.care-feed-back:active,
.care-feed-bar__settings:active,
.care-feed-bar__publish:active {
  transform: scale(0.97);
}

.care-feed-back:active,
.care-feed-bar__settings:active {
  background: var(--tint-blue);
}

.care-feed-bar__settings {
  color: var(--text-secondary);
}

.care-feed-bar__publish {
  color: var(--brand);
  background: var(--tint-blue);
  border-color: rgba(76, 117, 242, 0.2);
}

.care-feed-bar__publish:active {
  background: #e4ebff;
}

.care-feed-bar__scope-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.18s ease;
}

.care-feed-bar__scope-btn:active {
  opacity: 0.72;
}

.care-feed-bar__scope-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.care-feed-bar__title {
  margin: 0;
  font-size: var(--font-size-subheading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.care-feed-bar__scope {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.care-feed-bar__scope-chevron {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* —— 主内容（对齐 care-hub-content） —— */
.care-feed-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 4px 20px calc(100px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* —— 未读消息条（care-card 风格） —— */
.care-feed-notice-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.care-feed-notice-banner[hidden] {
  display: none !important;
}

.care-feed-notice-banner:active {
  transform: scale(0.99);
}

.care-feed-notice-banner__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-icon);
  background: var(--tint-blue);
  color: var(--brand);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.care-feed-notice-banner__text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.care-feed-notice-banner__arrow {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-muted);
}

/* —— 消息 / 设置 / 选班 Sheet（挂 screen-main，须高于底栏；sheet > backdrop） —— */
.care-feed-page .screen-main > #careFeedNoticeBackdrop,
.care-feed-page .screen-main > #careFeedSettingsBackdrop,
.care-feed-page .screen-main > #careScopeBackdrop {
  z-index: 48;
}

.care-feed-page .screen-main > .care-feed-notice-sheet,
.care-feed-page .screen-main > .care-feed-settings-sheet,
.care-feed-page .screen-main > .care-scope-sheet {
  z-index: 49;
}

.care-feed-page .screen-main > .care-feed-notice-sheet,
.care-feed-page .screen-main > .care-feed-settings-sheet {
  left: 0;
  right: 0;
  width: 100%;
  max-height: 78%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

/* —— 自动发布设置 Sheet —— */
.care-feed-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.care-feed-settings__desc {
  margin: -4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.care-feed-settings__card {
  background: var(--surface-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.care-feed-settings__master {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  cursor: pointer;
}

.care-feed-settings__master-copy {
  flex: 1;
  min-width: 0;
}

.care-feed-settings__master-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.care-feed-settings__switch {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
}

.care-feed-settings__toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.care-feed-settings__switch-track {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #e2e6ef;
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.care-feed-settings__switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.care-feed-settings__toggle:checked + .care-feed-settings__switch-track {
  background: var(--brand-gradient);
  box-shadow: 0 4px 12px rgba(76, 117, 242, 0.35);
}

.care-feed-settings__toggle:checked + .care-feed-settings__switch-track::after {
  transform: translateX(20px);
}

.care-feed-settings__types {
  padding: 16px;
}

.care-feed-settings__types[hidden] {
  display: none;
}

@keyframes care-feed-settings-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.care-feed-settings__types-label {
  margin: 14px 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.care-feed-settings__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.care-feed-settings__type {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--surface-page);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.care-feed-settings__type:has(.care-feed-settings__type-input:checked) {
  background: linear-gradient(135deg, #f0f4ff 0%, #fafbff 100%);
  border-color: rgba(76, 117, 242, 0.35);
  box-shadow: 0 4px 14px rgba(76, 117, 242, 0.1);
}

.care-feed-settings__type-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.care-feed-settings__type-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.care-feed-settings__type-icon--hw {
  background: linear-gradient(145deg, #fff6e8, #ffe8c4);
  color: #d97706;
}

.care-feed-settings__type-icon--daily {
  background: linear-gradient(145deg, #eef2ff, #dbe4ff);
  color: var(--brand);
}

.care-feed-settings__type-icon--perfect {
  background: linear-gradient(145deg, #e8fff3, #c6f6d9);
  color: var(--color-success-deep);
}

.care-feed-settings__type-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.care-feed-settings__type-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.care-feed-settings__type:has(.care-feed-settings__type-input:checked) .care-feed-settings__type-check {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: scale(1.05);
}

.care-feed-settings__types.is-disabled .care-feed-settings__type {
  opacity: 0.4;
  pointer-events: none;
}


.care-feed-notice-sheet__summary {
  flex-shrink: 0;
  margin-bottom: 12px;
}

.care-feed-notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.care-feed-notice-list > li {
  list-style: none;
}

.care-feed-notice-list > li:last-child .care-feed-notice-item {
  border-bottom: none;
}

.care-feed-notice-item.care-todo-item {
  border-radius: 0;
}

.care-feed-notice-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.care-feed-notice-item__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary);
}

.care-feed-notice-item__text strong {
  font-weight: 600;
}

.care-feed-notice-item__time {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.care-feed-notice-item__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px var(--surface-card);
}

.care-feed-notice-item.is-read .care-feed-notice-item__dot {
  visibility: hidden;
}

.care-feed-notice-item__chevron {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.care-feed-notice-empty {
  padding: 24px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.care-feed-notice-banner:focus-visible,
.care-feed-back:focus-visible,
.care-feed-bar__settings:focus-visible,
.care-feed-bar__publish:focus-visible,
.care-feed-notice-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(76, 117, 242, 0.4);
}

.care-feed-item.is-highlight .care-feed-item__panel {
  animation: care-feed-highlight 1.6s ease;
}

@keyframes care-feed-highlight {
  0%,
  100% {
    box-shadow: var(--shadow-card);
  }
  30%,
  70% {
    box-shadow: 0 0 0 3px rgba(76, 117, 242, 0.4), var(--shadow-card);
  }
}

.care-feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.care-feed-toolbar--sticky {
  position: sticky;
  top: 0;
  z-index: 6;
  margin: 0 -4px;
  padding: 6px 4px 10px;
  background: linear-gradient(
    180deg,
    var(--surface-page) 0%,
    var(--surface-page) 62%,
    rgba(244, 245, 247, 0)
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.care-feed-date-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-chip);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.care-feed-date-pill.is-updated {
  animation: care-feed-date-pill-in 0.28s cubic-bezier(0.33, 1, 0.68, 1);
}

@keyframes care-feed-date-pill-in {
  from {
    opacity: 0.35;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— 今日摘要 —— */
.care-feed-summary {
  background: var(--surface-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 14px 14px 12px;
}

.care-feed-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.care-feed-summary__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.care-feed-summary__badge {
  padding: 3px 8px;
  border-radius: var(--radius-chip);
  background: var(--tint-blue);
  color: var(--brand);
  font-size: 10px;
  font-weight: 600;
}

.care-feed-summary__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.care-feed-summary__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 12px;
  background: var(--surface-page);
  border: none;
  font-family: inherit;
  text-align: center;
}

.care-feed-summary__cell--action {
  cursor: pointer;
  transition: background 0.15s ease;
}

.care-feed-summary__cell--action:active {
  background: var(--tint-blue);
}

.care-feed-summary__label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.care-feed-summary__value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.care-feed-summary__value--ok {
  color: var(--color-success-deep);
}

.care-feed-summary__value--warn {
  color: var(--color-review);
}

.care-feed-summary__value i {
  font-size: 10px;
  margin-right: 2px;
}

/* —— 时间轴 —— */
.care-feed-timeline__date {
  display: flex;
  justify-content: center;
  margin: 8px 0 4px;
}

.care-feed-timeline__date-pill {
  padding: 4px 12px;
  border-radius: var(--radius-chip);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.care-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.care-feed-item {
  display: flex;
  gap: 10px;
  padding-bottom: 4px;
}

.care-feed-item--last .care-feed-item__line {
  display: none;
}

.care-feed-item__rail {
  flex-shrink: 0;
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.care-feed-item__time {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  white-space: nowrap;
}

.care-feed-item__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  background: var(--feed-dot-color, var(--brand));
  border: 2px solid var(--surface-card);
  box-shadow: 0 2px 8px rgba(76, 117, 242, 0.2);
  z-index: 1;
}

.care-feed-item__dot--checkin {
  --feed-dot-color: #4c75f2;
}

.care-feed-item__dot--homework {
  --feed-dot-color: #10b981;
}

.care-feed-item__dot--reward {
  --feed-dot-color: #f5a623;
}

.care-feed-item__dot--study {
  --feed-dot-color: #8b5cf6;
}

.care-feed-item__dot--post {
  --feed-dot-color: #4c75f2;
}

.care-feed-post__text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-primary);
  white-space: pre-wrap;
}

.care-feed-post__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.care-feed-post__photo {
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(145deg, #eef2ff, #f4f5f7);
  border: 1px solid rgba(76, 117, 242, 0.1);
}

.care-feed-item__line {
  flex: 1;
  width: 2px;
  min-height: 12px;
  margin-top: 4px;
  background: linear-gradient(180deg, rgba(76, 117, 242, 0.2) 0%, rgba(76, 117, 242, 0.04) 100%);
  border-radius: 1px;
}

.care-feed-item__panel {
  position: relative;
  flex: 1;
  min-width: 0;
  margin-bottom: 14px;
  padding: 14px 14px 12px;
  border-radius: var(--radius-card);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.care-feed-item__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.care-feed-item__meta i {
  font-size: 10px;
  color: var(--brand);
}

.care-feed-item__meta--classmate i {
  color: var(--color-premium);
}

.care-feed-item__head {
  margin-bottom: 10px;
  padding-right: 20px;
}

.care-feed-item__head-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.care-feed-item__head-end {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.care-feed-item__capture {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-icon);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand);
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.care-feed-item__capture:active {
  opacity: 0.75;
  transform: scale(0.96);
}

.care-feed-item__delete {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.care-feed-item__delete:hover,
.care-feed-item__delete:focus-visible {
  opacity: 0.85;
}

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

.care-feed-item__delete:active {
  opacity: 1;
  background: var(--surface-page);
  color: var(--text-secondary);
}

.care-feed-item__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.care-feed-item__status {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: var(--radius-chip);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.care-feed-item__status--ok {
  background: var(--tint-success-soft);
  color: var(--color-success-deep);
}

.care-feed-item__status--warn {
  background: var(--tint-revise);
  color: var(--color-revise);
}

.care-feed-item__student {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.care-feed-item__student-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: var(--tint-blue);
  color: var(--brand);
}

/* 打卡卡片 */
.care-feed-checkin__frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #eef2ff 0%, #f4f5f7 100%);
  aspect-ratio: 4 / 3;
  margin-bottom: 8px;
}

.care-feed-checkin__frame svg {
  display: block;
  width: 100%;
  height: 100%;
}

.care-feed-checkin__badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: var(--radius-chip);
  background: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.care-feed-checkin__badge i {
  color: var(--brand);
  margin-right: 3px;
}

.care-feed-checkin__time {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: var(--radius-chip);
  background: rgba(26, 26, 26, 0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}

.care-feed-checkin__caption {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 作业卡片 */
.care-feed-hw__sheet {
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
  border: 1px solid rgba(76, 117, 242, 0.12);
  margin-bottom: 10px;
  position: relative;
}

.care-feed-hw__sheet::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 16px;
  height: 2px;
  border-radius: 1px;
  background: rgba(76, 117, 242, 0.15);
  box-shadow: 0 10px 0 rgba(76, 117, 242, 0.1), 0 20px 0 rgba(76, 117, 242, 0.06);
}

.care-feed-hw__stats {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.care-feed-hw__stat {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 3px 8px;
  border: none;
  border-radius: var(--radius-chip);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button.care-feed-hw__stat:active {
  opacity: 0.82;
  transform: scale(0.98);
}

.care-feed-hw__stat--warn {
  background: var(--tint-revise);
  color: var(--color-revise);
}

.care-feed-hw__stat--compose {
  background: rgba(76, 117, 242, 0.1);
  color: var(--brand, #4c75f2);
}

.care-feed-item__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* 作业卡 + 评语脚注：同一外壳，评语不在点击区内 */
.care-feed-item__main--shell {
  margin-bottom: 14px;
  border-radius: var(--radius-card);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.care-feed-item__main--shell > .care-feed-item__panel,
.care-feed-item__main--shell > .care-hw-timeline-tap .care-feed-item__panel {
  margin-bottom: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.care-feed-item.is-highlight .care-feed-item__main--shell {
  border-color: rgba(76, 117, 242, 0.45);
  box-shadow: 0 0 0 3px rgba(76, 117, 242, 0.12), var(--shadow-card);
}

/* 保留旧评语块样式（班级圈等） */
.care-feed-hw__comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-page);
}

.care-feed-hw__comment-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.care-feed-hw__comment-label i {
  color: var(--brand);
  margin-right: 4px;
}

.care-feed-hw__comment-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary);
}

/* —— 朋友圈式互动：··· / 赞·评论弹层 / 灰底赞评 —— */
.care-feed-wx {
  margin-top: 8px;
}

.care-feed-item__main--shell > .care-feed-wx {
  margin: 0;
  padding: 6px 12px 10px;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-card);
}

.care-feed-wx__bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  min-height: 28px;
}

.care-feed-wx__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #586b95;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.care-feed-wx__btn i {
  font-size: 12px;
}

.care-feed-wx__btn:active {
  background: rgba(88, 107, 149, 0.08);
}

.care-feed-wx__btn.is-on,
.care-feed-wx__btn[aria-pressed="true"] {
  color: #fa5151;
}

.care-feed-wx__social {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #f7f7f7;
}

.care-feed-wx__social[hidden] {
  display: none !important;
}

.care-feed-wx__likes {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #586b95;
  font-weight: 500;
}

.care-feed-wx__likes[hidden] {
  display: none !important;
}

.care-feed-wx__likes i {
  flex: 0 0 auto;
  margin-top: 3px;
  font-size: 11px;
  color: #586b95;
}

.care-feed-wx__likes + .care-feed-wx__comments:not(:empty) {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.care-feed-wx__comments:empty {
  display: none;
}

.care-feed-wx__comment {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #1a1a1a;
  word-break: break-word;
}

.care-feed-wx__comment + .care-feed-wx__comment {
  margin-top: 4px;
}

.care-feed-wx__comment-name {
  font-weight: 600;
  color: #586b95;
}

.care-feed-wx__composer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #f5f5f5;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.06);
}

.care-feed-wx__composer[hidden] {
  display: none !important;
}

.care-feed-wx__composer-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a1a;
  outline: none;
}

.care-feed-wx__composer-send {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 6px;
  background: #07c160;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.care-feed-wx__composer-send:active {
  opacity: 0.88;
}

/* 勋章卡片 */
.care-feed-reward__card {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-icon);
  background: linear-gradient(135deg, var(--tint-amber) 0%, #fffdf9 55%, var(--tint-violet) 100%);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.care-feed-reward__medal {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-warning);
  background: var(--surface-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.care-feed-reward__body {
  flex: 1;
  min-width: 0;
}

.care-feed-reward__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-warning);
  margin-bottom: 2px;
}

.care-feed-reward__subject {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.care-feed-reward__reason {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.care-feed-reward__points {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: var(--radius-chip);
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-warning);
}

.care-feed-reward__points i {
  margin-right: 2px;
}

/* 学习瞬间 */
.care-feed-study__frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #eefff5 0%, #f4f5f7 100%);
  aspect-ratio: 4 / 3;
}

.care-feed-study__frame svg {
  display: block;
  width: 100%;
  height: 100%;
}

.care-feed-study__badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: var(--radius-chip);
  background: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-primary);
}

.care-feed-study__badge i {
  color: var(--color-success-deep);
  margin-right: 3px;
}

/* 底部互动 */
.care-feed-item__foot {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.care-feed-item__likes-text {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.care-feed-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-chip);
  background: var(--surface-page);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.care-feed-chip--liked {
  background: var(--tint-blue);
  border-color: rgba(76, 117, 242, 0.3);
  color: var(--brand);
}

.care-feed-chip--share {
  color: var(--brand);
  border-color: rgba(76, 117, 242, 0.22);
  background: rgba(255, 255, 255, 0.92);
}

.care-feed-chip--share.is-shared {
  color: var(--color-success-deep);
  border-color: rgba(16, 185, 129, 0.35);
  background: var(--tint-success-soft);
  cursor: pointer;
}

.care-feed-chip:active {
  transform: scale(0.97);
}

/* —— 班级圈发布权限提示（原型演示） —— */
.care-perm-dialog {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.care-perm-dialog.is-show {
  pointer-events: auto;
  opacity: 1;
}

.care-perm-dialog[hidden] {
  display: none !important;
}

.care-perm-dialog__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.care-perm-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 286px);
  padding: 24px 20px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  text-align: center;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s ease;
}

.care-perm-dialog.is-show .care-perm-dialog__panel {
  transform: none;
}

.care-perm-dialog__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  font-size: 18px;
}

.care-perm-dialog__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary, #0f172a);
}

.care-perm-dialog__desc {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-secondary, #64748b);
}

.care-perm-dialog__btn {
  width: 100%;
  min-height: 42px;
  border: none;
  border-radius: 12px;
  background: var(--brand, #4c75f2);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.care-perm-dialog__btn:active {
  opacity: 0.88;
  transform: scale(0.98);
}

.care-student-view .care-feed-item {
  gap: 0;
}

.care-student-view .care-student-timeline.is-delete-mode .care-feed-item.is-timeline-selectable {
  gap: 14px;
  align-items: flex-start;
}

.care-student-view .care-feed-item__head {
  padding-right: 0;
}

.care-student-view .care-feed-item__title {
  flex: 1;
  min-width: 0;
}

.care-student-view .care-feed-item__title-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.care-student-view .care-feed-item__title-action {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.care-student-view .care-feed-item__title-sep {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.care-student-view .care-feed-item__title-subject {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.3;
  border-bottom: 1px dashed rgba(76, 117, 242, 0.28);
}

.care-student-view .care-feed-item__title-caret {
  margin-left: 4px;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.72;
  transition: transform 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.care-student-view .care-feed-item__title-btn.is-open .care-feed-item__title-caret,
.care-student-view .care-feed-item__title-btn:hover .care-feed-item__title-caret {
  color: var(--brand);
  opacity: 1;
}

.care-student-view .care-feed-item__title-btn.is-open .care-feed-item__title-caret {
  transform: rotate(180deg);
}

.care-student-view .care-feed-item__title-btn:active .care-feed-item__title-subject {
  opacity: 0.78;
}

.care-student-view .care-student-timeline-subject-hint {
  margin: -4px 0 10px;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.72;
  transition: opacity 0.22s ease;
}

.care-student-view .care-student-timeline-subject-hint.is-dismissed,
.care-student-view .care-student-timeline-head.is-delete-mode + .care-student-timeline-subject-hint {
  display: none;
}

/* 时间线标题：底部 sheet · 上科目 / 下学生 */
.care-timeline-assign-sheet {
  z-index: 56;
  max-height: 70%;
}

.care-timeline-assign-sheet .care-scope-sheet__section + .care-scope-sheet__section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.care-timeline-assign-sheet__subjects,
.care-timeline-assign-sheet__students {
  list-style: none;
  margin: 0;
  padding: 2px 2px 6px;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.care-timeline-assign-sheet__subjects::-webkit-scrollbar,
.care-timeline-assign-sheet__students::-webkit-scrollbar {
  display: none;
}

.care-timeline-assign-sheet__subjects > li,
.care-timeline-assign-sheet__students > li {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

/* 科目 / 学生统一为横排 chip，单行滑动 */
.care-timeline-assign-sheet__chip.care-student-pick-strip__item {
  min-width: 44px;
  min-height: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  box-sizing: border-box;
}

.care-timeline-assign-sheet__chip .care-student-pick-strip__name {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  letter-spacing: 0;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.care-timeline-assign-sheet__chip.care-student-pick-strip__item.is-active {
  border-color: rgba(76, 117, 242, 0.14);
  border-bottom-color: rgba(76, 117, 242, 0.14);
  background: rgba(76, 117, 242, 0.06);
  box-shadow: none;
}

.care-timeline-assign-sheet__chip.care-student-pick-strip__item.is-active::after,
.care-timeline-assign-sheet__chip.care-student-pick-strip__item:not(.is-active)::after {
  bottom: 4px;
  border-radius: 999px;
}

.care-timeline-assign-sheet__chip.care-student-pick-strip__item.is-urgent::before {
  top: 6px;
  right: 6px;
}

.care-student-view .care-feed-item__head-end {
  margin-left: auto;
}

.care-student-view .care-feed-item__status {
  flex-shrink: 0;
}

.care-student-view .care-feed-item__foot {
  justify-content: space-between;
  flex-wrap: nowrap;
}

.care-student-view .care-feed-item__foot-time {
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.care-feed-empty {
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

/* —— 学生详情 · 我的作业：去边框，标题与今日作业左对齐 —— */
#careStudentView #homeScannedBooks.module--viewed-books {
  border: none;
  box-shadow: none;
  padding: 12px 0 8px;
}

#careStudentView #homeScannedBooks .module--viewed-books__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0;
}

#careStudentView #homeScannedBooks .module--viewed-books__head .module__title--solo,
#careStudentView .module--timeline .care-student-timeline-head .module__title--solo {
  margin: 0;
  padding: 0;
  justify-content: flex-start;
  text-align: left;
}

/* —— 学生详情 · 作业动态（对齐班级圈时间轴） —— */
.care-student-view .module--timeline {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

/* 未登录：我的作业 / 今日作业显示请登录，功能按钮照常显示 */
.care-student-login-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 4px;
  padding: 22px 16px;
  text-align: center;
  border-radius: 14px;
  background: rgba(76, 117, 242, 0.05);
  border: 1px dashed rgba(76, 117, 242, 0.28);
}

.care-student-login-entry[hidden] {
  display: none !important;
}

.care-student-login-entry__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.care-student-login-entry__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 40px;
  padding: 10px 22px;
  border: none;
  border-radius: 12px;
  background: var(--brand-gradient, linear-gradient(135deg, #4c75f2, #6b8cff));
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(76, 117, 242, 0.24);
  -webkit-tap-highlight-color: transparent;
}

.care-student-login-entry__btn:active {
  transform: scale(0.985);
  opacity: 0.96;
}

#iosScreen.is-care-guest #homeScannedBooks .home-scanned-books__rail-wrap,
#iosScreen.is-care-guest #homeScannedBooks .home-scanned-books__empty,
#iosScreen.is-care-guest #homeScannedBooks .home-scanned-books__more,
#iosScreen.is-care-guest #homeTimelineList,
#iosScreen.is-care-guest #homeHwDates,
#iosScreen.is-care-guest #homeTimelineSubjectHint,
#iosScreen.is-care-guest .care-student-timeline-head__actions {
  display: none !important;
}

#iosScreen.is-care-guest [data-care-hw-login]:not([hidden]) {
  display: flex !important;
}

.care-student-view .care-student-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 6px 0 10px;
  background: linear-gradient(
    180deg,
    var(--surface-page) 0%,
    rgba(244, 245, 247, 0.96) 68%,
    rgba(244, 245, 247, 0)
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.care-student-view .care-student-timeline-head .module__title--solo {
  padding: 0;
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.care-student-view .care-student-timeline-head__actions {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  gap: 0;
  padding: 3px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 2px rgba(76, 117, 242, 0.05),
    0 6px 18px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  transition: box-shadow 0.24s ease, background 0.24s ease;
}

.care-student-view .care-student-timeline-head__divider {
  width: 1px;
  align-self: stretch;
  margin: 7px 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(76, 117, 242, 0.16) 24%,
    rgba(76, 117, 242, 0.16) 76%,
    transparent 100%
  );
  flex-shrink: 0;
}

.care-student-view .care-student-timeline-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px 6px 9px;
  border: none;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.22s ease, transform 0.22s ease, color 0.22s ease;
}

.care-student-view .care-student-timeline-date-pill:active {
  opacity: 0.72;
}

.care-student-view .care-student-timeline-date-pill__chevron {
  font-size: 9px;
  color: var(--text-muted, #8a949e);
  transition: transform 0.18s ease;
}

.care-student-view .care-student-timeline-date-pill.is-open .care-student-timeline-date-pill__chevron {
  transform: rotate(180deg);
}

/* 对齐家教本 cp-dates 周选条 */
.care-student-view .home-hw-dates {
  margin: 0 0 10px;
  padding: 0 0 2px;
}

.care-student-view .home-hw-dates .cp-dates {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.care-student-view .home-hw-dates .cp-date {
  flex: 1;
  min-width: 0;
  padding: 8px 2px;
  border-radius: 14px;
  text-align: center;
  background: #fff;
  border: 1.5px solid transparent;
  font-size: 15px;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.care-student-view .home-hw-dates .cp-date-num {
  display: block;
  line-height: 1.2;
}

.care-student-view .home-hw-dates .cp-date small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #7a8fa3;
}

.care-student-view .home-hw-dates .cp-date.on {
  border-color: #3db8ff;
  background: #eef8ff;
  color: #1f7eb8;
}

.care-student-view .home-hw-dates .cp-date.on small {
  color: #1f7eb8;
}

.care-student-view .home-hw-dates .cp-date.today:not(.on) .cp-date-num {
  color: #1f7eb8;
}

.care-student-view .home-hw-dates .cp-date.future {
  background: #f2f5f8;
  color: #b0bec9;
  border-color: transparent;
  cursor: not-allowed;
}

.care-student-view .home-hw-dates .cp-date.future small {
  color: #c0cbd4;
}

.care-student-view .care-student-timeline-date-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  font-size: 11px;
  line-height: 1;
  color: var(--brand);
  opacity: 0.88;
  flex-shrink: 0;
}

.care-student-view .care-student-timeline-date-pill__text {
  line-height: 1.2;
}

.care-student-view .care-student-timeline-manage-btn,
.care-student-view .care-student-timeline-cancel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 11px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.14s cubic-bezier(0.33, 1, 0.68, 1);
}

.care-student-view .care-student-timeline-manage-btn {
  color: var(--brand);
  padding-left: 9px;
  padding-right: 12px;
}

.care-student-view .care-student-timeline-manage-btn i {
  font-size: 10px;
  opacity: 0.88;
}

.care-student-view .care-student-timeline-manage-btn:active {
  transform: scale(0.96);
  background: rgba(76, 117, 242, 0.12);
}

.care-student-view .care-student-timeline-cancel-btn {
  min-width: auto;
  padding: 6px 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.care-student-view .care-student-timeline-cancel-btn:active {
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.04);
}

.care-student-view .care-student-timeline-manage-btn:focus-visible,
.care-student-view .care-student-timeline-cancel-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(76, 117, 242, 0.22);
}

.care-student-view .care-student-timeline-head.is-delete-mode .care-student-timeline-head__actions {
  padding: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.care-student-view .care-student-timeline-head.is-delete-mode .care-student-timeline-date-pill,
.care-student-view .care-student-timeline-head.is-delete-mode .care-student-timeline-head__divider,
.care-student-view .care-student-timeline-head.is-delete-mode .care-student-timeline-manage-btn {
  display: none;
}

.care-student-view .care-student-timeline-head.is-delete-mode .care-student-timeline-cancel-btn {
  display: inline-flex;
}

.care-student-view .care-student-timeline-cancel-btn[hidden] {
  display: none;
}

.care-student-view .care-student-timeline-date-pill.is-updated {
  animation: care-student-timeline-date-in 0.28s cubic-bezier(0.33, 1, 0.68, 1);
}

.care-student-view .care-student-timeline-date-pill.is-updated .care-student-timeline-date-pill__text {
  animation: care-student-timeline-date-text-in 0.28s cubic-bezier(0.33, 1, 0.68, 1);
}

@keyframes care-student-timeline-date-in {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

@keyframes care-student-timeline-date-text-in {
  from {
    opacity: 0.35;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.care-student-view .care-timeline-date-divider {
  list-style: none;
  margin: 4px 0 10px;
  padding: 0;
}

.care-student-view .care-timeline-date-divider span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-chip);
  background: rgba(76, 117, 242, 0.08);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.care-student-view .care-student-timeline {
  margin: 0;
}

.care-student-view .care-student-timeline > .care-feed-empty.timeline-empty {
  margin-bottom: 12px;
  padding: 24px 16px;
  border: 1px dashed rgba(76, 117, 242, 0.22);
  border-radius: var(--radius-card);
  background: var(--surface-card);
}

.care-student-view .care-feed-item.is-filter-hidden {
  display: none;
}

.care-student-view .care-feed-item__panel .correction-compare {
  margin-bottom: 10px;
}

/* 学生详情 · 作业缩略图一行展示 */
.care-student-view .care-feed-hw__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.care-student-view .care-feed-hw__thumb {
  width: 100%;
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8faff 0%, #eef2ff 100%);
  border: 1px solid rgba(76, 117, 242, 0.12);
  position: relative;
  box-sizing: border-box;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.care-student-view .care-feed-hw__thumb:active {
  opacity: 0.82;
  transform: scale(0.98);
}

.care-student-view .care-student-timeline.is-delete-mode .care-feed-hw__thumb {
  cursor: default;
  pointer-events: none;
}

.care-student-view.is-timeline-batch-mode .care-student-camera-fab,
.care-student-view.is-timeline-batch-mode .care-student-advisor-fab {
  opacity: 0;
  pointer-events: none;
}

.care-student-view .care-feed-item__select {
  flex-shrink: 0;
  width: 0;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0 solid #c8cdd8;
  border-radius: 7px;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  align-self: flex-start;
  margin-top: 14px;
  transition: width 0.18s ease, border-width 0.18s ease, background 0.15s ease;
}

.care-student-view .care-student-timeline.is-delete-mode .care-feed-item.is-timeline-selectable .care-feed-item__select {
  display: inline-flex;
  width: 22px;
  min-width: 22px;
  border-width: 2px;
}

.care-student-view .care-student-timeline.is-delete-mode .care-feed-item.is-timeline-selectable .care-feed-item__panel {
  flex: 1;
  min-width: 0;
}

.care-student-view .care-feed-item__select-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.care-student-view .care-feed-item.is-selected .care-feed-item__select {
  border-color: var(--brand);
  background: var(--brand);
}

.care-student-view .care-feed-item.is-selected .care-feed-item__select-box {
  opacity: 1;
}

.care-student-view .care-student-timeline.is-delete-mode .care-feed-item.is-selected .care-feed-item__panel {
  border-color: rgba(76, 117, 242, 0.34);
  background: rgba(238, 242, 255, 0.52);
  box-shadow: 0 4px 16px rgba(76, 117, 242, 0.08);
}

.care-student-view .care-student-timeline.is-delete-mode .care-feed-item.is-timeline-locked .care-feed-item__panel {
  opacity: 0.62;
}

.care-panel .care-student-timeline-batch {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(76, 117, 242, 0.12);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

.care-panel .care-student-timeline-batch[hidden] {
  display: none;
}

.care-panel .care-student-timeline-batch__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.care-panel .care-student-timeline-batch__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.care-panel .care-student-timeline-batch__check {
  width: 22px;
  height: 22px;
  border: 2px solid #c8cdd8;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.care-panel .care-student-timeline-batch__check i {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.care-panel .care-student-timeline-batch__all:has(.care-student-timeline-batch__input:checked) .care-student-timeline-batch__check {
  border-color: var(--brand);
  background: var(--brand);
}

.care-panel .care-student-timeline-batch__all:has(.care-student-timeline-batch__input:checked) .care-student-timeline-batch__check i {
  opacity: 1;
}

.care-panel .care-student-timeline-batch__all:has(.care-student-timeline-batch__input:indeterminate) .care-student-timeline-batch__check {
  border-color: var(--brand);
  background: rgba(76, 117, 242, 0.16);
}

.care-panel .care-student-timeline-batch__all:has(.care-student-timeline-batch__input:indeterminate) .care-student-timeline-batch__check i {
  opacity: 0.72;
}

.care-panel .care-student-timeline-batch__all-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.care-panel .care-student-timeline-batch__hint {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.care-panel .care-student-timeline-batch.has-selection .care-student-timeline-batch__hint {
  color: var(--brand);
  font-weight: 600;
}

.care-panel .care-student-timeline-batch__delete {
  flex-shrink: 0;
  min-width: 64px;
  padding: 7px 14px;
  border: none;
  border-radius: 10px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(76, 117, 242, 0.24);
  transition: opacity 0.15s ease, transform 0.14s ease;
}

.care-panel .care-student-timeline-batch__delete:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.care-panel .care-student-timeline-batch__delete:not(:disabled):active {
  transform: scale(0.96);
}

.care-student-view .care-feed-hw__thumb::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 10px;
  height: 2px;
  border-radius: 1px;
  background: rgba(76, 117, 242, 0.15);
  box-shadow: 0 6px 0 rgba(76, 117, 242, 0.1), 0 12px 0 rgba(76, 117, 242, 0.06);
}

/* 有实拍/演示图时去掉占位线纹 */
.care-student-view .care-feed-hw__thumb[style*="background-image"]::after {
  display: none;
}

/* 首页今日作业空态：全宽居中，对齐家教本 cp-hw-empty */
.care-student-view .care-feed-item--empty {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.care-student-view .cp-hw-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: none;
  margin: 4px 0 8px;
  padding: 32px 20px 28px;
  border-radius: 18px;
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(61, 184, 255, 0.12) 0%, transparent 55%),
    #fff;
  border: 1px dashed rgba(61, 184, 255, 0.35);
  box-shadow: 0 2px 10px rgba(47, 52, 58, 0.04);
  box-sizing: border-box;
}

.care-student-view .cp-hw-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 0 14px;
  border-radius: 16px;
  background: rgba(61, 184, 255, 0.12);
  color: #1f7eb8;
  font-size: 22px;
}

.care-student-view .cp-hw-empty__title {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  color: #1f2933;
  letter-spacing: -0.02em;
}

.care-student-view .cp-hw-empty__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  max-width: 300px;
}

.care-student-view .cp-hw-empty__chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(61, 184, 255, 0.12);
  border: 1px solid rgba(61, 184, 255, 0.22);
  color: #1f7eb8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.care-student-view .cp-hw-empty__more {
  margin: 12px 0 0;
  max-width: 280px;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.4;
  color: rgba(122, 143, 163, 0.88);
}

.care-student-view .cp-hw-empty__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  min-height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #5ec8ff 0%, #3db8ff 100%);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(26, 127, 212, 0.28);
  -webkit-tap-highlight-color: transparent;
}

.care-student-view .cp-hw-empty__cta:active {
  transform: scale(0.98);
  opacity: 0.92;
}

/* 首页今日作业：对齐家教本 carePointsTaskList 行结构 */
.care-student-view .home-hw-item {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 10px;
}

/* 个人首页：去掉左侧时间轨，卡片拉满宽 */
#homePersonalView .home-hw-item.home-hw-row--no-rail,
.ios-screen.is-personal-mode .home-hw-item.home-hw-row--no-rail {
  gap: 0;
}

#homePersonalView .home-hw-item.home-hw-row--no-rail .home-hw-swipe,
.ios-screen.is-personal-mode .home-hw-item.home-hw-row--no-rail .home-hw-swipe {
  flex: 1 1 100%;
  width: 100%;
}

/* 录入/家校本刚生成：白卡片在 .home-hw-swipe，高亮必须打在这里 */
.care-student-view .home-hw-item.is-enter-new {
  animation: home-hw-enter-row 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--home-hw-enter-delay, 0ms);
}

.care-student-view .home-hw-item.is-enter-new .home-hw-swipe {
  animation:
    home-hw-enter-card 0.55s cubic-bezier(0.22, 1, 0.36, 1) both,
    home-hw-enter-glow 1.9s ease both;
  animation-delay:
    var(--home-hw-enter-delay, 0ms),
    calc(var(--home-hw-enter-delay, 0ms) + 0.2s);
}

.care-student-view .home-hw-task__new-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 0 5px;
  min-width: 18px;
  height: 16px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #4c75f2, #6b8cff);
  vertical-align: 1px;
  animation: home-hw-enter-tag 2.1s ease both;
}

@keyframes home-hw-enter-row {
  0% {
    opacity: 0;
    transform: translateY(-14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-hw-enter-card {
  0% {
    transform: scale(0.97);
  }
  55% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes home-hw-enter-glow {
  0% {
    border-color: rgba(76, 117, 242, 0.55);
    background: #eef3ff;
    box-shadow:
      0 0 0 2px rgba(76, 117, 242, 0.45),
      0 10px 24px rgba(76, 117, 242, 0.22);
  }
  40% {
    border-color: rgba(76, 117, 242, 0.42);
    background: #f7f9ff;
    box-shadow:
      0 0 0 3px rgba(76, 117, 242, 0.35),
      0 8px 20px rgba(76, 117, 242, 0.16);
  }
  100% {
    border-color: rgba(47, 52, 58, 0.06);
    background: #fff;
    box-shadow: 0 2px 10px rgba(47, 52, 58, 0.04);
  }
}

@keyframes home-hw-enter-tag {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  18% {
    opacity: 1;
    transform: scale(1.08);
  }
  70% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  .care-student-view .home-hw-item.is-enter-new,
  .care-student-view .home-hw-item.is-enter-new .home-hw-swipe,
  .care-student-view .home-hw-task__new-tag {
    animation: none !important;
  }

  .care-student-view .home-hw-item.is-enter-new .home-hw-swipe {
    border-color: rgba(76, 117, 242, 0.4);
    box-shadow: 0 0 0 2px rgba(76, 117, 242, 0.28);
  }
}

#homePersonalView .home-hw-task__time,
.ios-screen.is-personal-mode .home-hw-task__time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #5b6b7c;
}

#homePersonalView .home-hw-task__time.is-saved,
.ios-screen.is-personal-mode .home-hw-task__time.is-saved {
  color: #1a9f6a;
}

#homePersonalView .home-hw-task__time.is-over,
.ios-screen.is-personal-mode .home-hw-task__time.is-over {
  color: #d4654a;
}

/* 作业卡副文案：匹配练习册 / 未匹配（可点，虚线下划线） */
.care-student-view .home-hw-task__match {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-bottom: 1px dashed rgba(122, 143, 163, 0.7);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #7a8fa3;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.care-student-view .home-hw-task__match-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.care-student-view .home-hw-task__match > .fa-chevron-down {
  flex: 0 0 auto;
  font-size: 8px;
  opacity: 0.55;
}

.care-student-view .home-hw-task__match.is-unmatched {
  color: #c17a5a;
  border-bottom-color: rgba(193, 122, 90, 0.55);
}

.care-student-view .home-hw-task__match.is-paper,
.care-student-view .home-hw-task__match.is-matched {
  color: #7a8fa3;
  border-bottom-color: rgba(122, 143, 163, 0.7);
}

.care-student-view .home-hw-task__match:active {
  opacity: 0.7;
}

.care-student-view .home-hw-task__match-tip {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: #c17a5a;
  font-size: 13px;
  opacity: 0.72;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.care-student-view .home-hw-task__match-tip:active {
  opacity: 0.45;
}

.home-hw-unmatched-tip__mask {
  position: absolute;
  inset: 0;
  z-index: 72;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.home-hw-unmatched-tip__mask.is-show {
  opacity: 1;
}

.home-hw-unmatched-tip {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 73;
  width: min(312px, calc(100% - 40px));
  transform: translate(-50%, -46%) scale(0.96);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.home-hw-unmatched-tip.is-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.home-hw-unmatched-tip__panel {
  padding: 20px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(193, 122, 90, 0.14);
  background:
    linear-gradient(180deg, #fffaf5 0%, #ffffff 42%, #ffffff 100%);
  box-shadow:
    0 18px 42px rgba(80, 48, 24, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.home-hw-unmatched-tip__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.home-hw-unmatched-tip__badge {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(193, 122, 90, 0.12);
  color: #c17a5a;
  font-size: 14px;
}

.home-hw-unmatched-tip__title {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: #2a2118;
}

.home-hw-unmatched-tip__lead {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(193, 122, 90, 0.08);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #8a4f35;
}

.home-hw-unmatched-tip__steps {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-hw-unmatched-tip__step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.home-hw-unmatched-tip__idx {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #fff4e8;
  border: 1px solid rgba(232, 145, 74, 0.35);
  color: #c47a2c;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.home-hw-unmatched-tip__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
  color: #5b6570;
}

.home-hw-unmatched-tip__em {
  display: inline;
  margin: 0 1px;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(61, 184, 255, 0.12);
  color: #1f7eb8;
  font-weight: 700;
}

.home-hw-unmatched-tip__cover {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  margin: 0 0 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(31, 154, 240, 0.12);
  color: #1a7ec4;
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-hw-unmatched-tip__cover:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.home-hw-unmatched-tip__ok {
  display: block;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb347 0%, #f59e0b 55%, #e8900c 100%);
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.22);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-hw-unmatched-tip__ok:active {
  transform: scale(0.98);
  opacity: 0.92;
}

.home-hw-unmatched-tip__hint {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
  color: #5b6570;
}

.home-hw-unmatched-tip__later {
  display: block;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #7a8fa3;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-hw-unmatched-tip__later:active {
  opacity: 0.7;
}

/* 封面提示：一主一次，冷蓝聚焦，少文案 */
.home-hw-unmatched-tip__panel--cover {
  padding: 22px 18px 14px;
  border: 1px solid rgba(3, 150, 254, 0.12);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(3, 150, 254, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 38%, #ffffff 100%);
  box-shadow:
    0 20px 44px rgba(15, 40, 70, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.home-hw-unmatched-tip__panel--cover .home-hw-unmatched-tip__title {
  margin: 0 0 6px;
  text-align: center;
  font-size: 18px;
  font-weight: 780;
  letter-spacing: 0.02em;
  color: #0f2744;
}

.home-hw-unmatched-tip__panel--cover .home-hw-unmatched-tip__sub {
  margin: 0 0 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: #6b7c90;
}

.home-hw-unmatched-tip__panel--cover .home-hw-unmatched-tip__ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  margin: 0 0 4px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2eb0ff 0%, #0396fe 48%, #0280e0 100%);
  box-shadow:
    0 10px 22px rgba(3, 150, 254, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.home-hw-unmatched-tip__panel--cover .home-hw-unmatched-tip__ok i {
  font-size: 14px;
}

.home-hw-unmatched-tip__panel--cover .home-hw-unmatched-tip__later {
  height: 36px;
  color: #8a97a8;
  font-size: 12px;
  font-weight: 560;
}

.home-hw-unmatched-tip__merge-panel {
  margin: 14px 0 2px;
  padding: 0;
  border: none;
  background: transparent;
}

.home-hw-unmatched-tip__merge-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: #9aa6b5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.home-hw-unmatched-tip__merge-rule::before,
.home-hw-unmatched-tip__merge-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.45),
    transparent
  );
}

.home-hw-unmatched-tip__merge-rule span {
  flex: 0 0 auto;
}

.home-hw-unmatched-tip__merge-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 148px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  background: rgba(15, 39, 68, 0.03);
}

.home-hw-unmatched-tip__merge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 9px 10px;
  border: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  animation: home-hw-merge-row-in 0.34s ease both;
  animation-delay: var(--merge-i, 0ms);
}

.home-hw-unmatched-tip__merge-item:last-child {
  border-bottom: none;
}

.home-hw-unmatched-tip__merge-item:active {
  background: rgba(3, 150, 254, 0.08);
}

.home-hw-unmatched-tip__merge-thumb {
  flex: 0 0 auto;
  width: 28px;
  height: 36px;
  border-radius: 5px;
  overflow: hidden;
  background: linear-gradient(160deg, #d9e6f4 0%, #b7c9dc 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 39, 68, 0.06);
}

.home-hw-unmatched-tip__merge-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hw-unmatched-tip__merge-thumb-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0, transparent 3px),
    linear-gradient(160deg, #d9e6f4 0%, #b7c9dc 100%);
}

.home-hw-unmatched-tip__merge-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  color: #243447;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-hw-unmatched-tip__merge-go {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(3, 150, 254, 0.1);
  color: #0280e0;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.02em;
}

@keyframes home-hw-merge-row-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hw-unmatched-tip__merge-item {
    animation: none;
  }
}

/* 对齐家校本「本学期练习册」管理面板 */
.home-hw-match-sheet {
  --hm-warm: #e8914a;
  --hm-warm-soft: #fff3e8;
  --hm-text-sec: #7a8fa3;
  --hm-ink: #1f2933;
  --hm-primary: #1f9af0;
  position: absolute;
  inset: 0;
  z-index: 72;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.home-hw-match-sheet[hidden] {
  display: none;
}

.home-hw-match-sheet__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 46, 0.34);
  animation: home-hw-match-fade 0.2s ease both;
}

.home-hw-match-sheet__panel {
  position: relative;
  z-index: 1;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  padding: 8px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -10px 32px rgba(20, 60, 100, 0.12);
  animation: home-hw-match-up 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hw-match-sheet__grip {
  width: 32px;
  height: 4px;
  margin: 2px auto 10px;
  border-radius: 999px;
  background: #dbe4ec;
}

.home-hw-match-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.home-hw-match-sheet__head-text {
  min-width: 0;
  flex: 1 1 auto;
}

.home-hw-match-sheet__title {
  margin: 0;
  font-size: 16px;
  font-weight: 720;
  color: var(--hm-ink);
}

.home-hw-match-sheet__hint {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--hm-text-sec);
}

.home-hw-match-sheet__close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #f3f6f9;
  color: var(--hm-text-sec);
  cursor: pointer;
}

.home-hw-match-sheet__close:active {
  transform: scale(0.94);
  background: #e8eef4;
}

/* 工具行：左书单/热门，右搜索；展开后搜索拉满 */
.home-hw-match-sheet__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  min-height: 40px;
}

.home-hw-match-sheet__source {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.home-hw-match-sheet__source-btn {
  position: relative;
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #8aa0b3;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.home-hw-match-sheet__source-btn > i {
  font-size: 11px;
  opacity: 0.7;
}

.home-hw-match-sheet__source-btn.on {
  background: transparent;
  color: var(--hm-ink);
  box-shadow: none;
}

.home-hw-match-sheet__source-btn.on > i {
  color: inherit;
  opacity: 0.9;
}

.home-hw-match-sheet__source-btn.on::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: rgba(26, 126, 196, 0.55);
}

.home-hw-match-sheet__source-btn:active:not(.on) {
  color: #5b6b7c;
}

.home-hw-match-sheet__source-count {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(15, 28, 46, 0.06);
  color: #8aa0b3;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.home-hw-match-sheet__source-btn.on .home-hw-match-sheet__source-count {
  background: rgba(26, 126, 196, 0.1);
  color: #1a7ec4;
}

.home-hw-match-sheet__source-count[hidden] {
  display: none;
}

.home-hw-match-sheet__search {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  overflow: hidden;
  transition:
    flex 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.18s ease,
    background 0.18s ease;
}

.home-hw-match-sheet__search-open {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(15, 28, 46, 0.04);
  color: #7a8fa3;
  font-size: 13px;
  cursor: pointer;
}

.home-hw-match-sheet__search-open:active {
  transform: scale(0.96);
}

.home-hw-match-sheet__search-back {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin-left: 4px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--hm-text-sec);
  font-size: 13px;
  cursor: pointer;
}

.home-hw-match-sheet__search-back[hidden],
.home-hw-match-sheet__search-input[hidden],
.home-hw-match-sheet__search-clear[hidden],
.home-hw-match-sheet__search-open[hidden] {
  display: none;
}

.home-hw-match-sheet__search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--hm-ink);
  outline: none;
}

.home-hw-match-sheet__search-input::placeholder {
  color: #9aabbb;
}

.home-hw-match-sheet__search-clear {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 28, 46, 0.08);
  color: var(--hm-text-sec);
  font-size: 11px;
  cursor: pointer;
}

.home-hw-match-sheet__toolbar.is-search-open .home-hw-match-sheet__source {
  flex: 0 0 0;
  width: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-hw-match-sheet__toolbar.is-search-open .home-hw-match-sheet__search {
  flex: 1 1 auto;
  width: auto;
  padding: 0 2px 0 0;
  background: rgba(15, 28, 46, 0.04);
  border: 1px solid rgba(26, 126, 196, 0.18);
}

/* 筛选三列：默认显示当前值，点击下拉 */
.home-hw-match-sheet__filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 6px;
  min-width: 0;
}

.home-hw-match-sheet__filters[hidden] {
  display: none;
}

.home-hw-match-sheet__filter {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 7px 8px 7px 10px;
  border: none;
  border-radius: 8px;
  background: rgba(15, 28, 46, 0.04);
  color: var(--hm-text-sec);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.home-hw-match-sheet__filter.is-open,
.home-hw-match-sheet__filter:active {
  background: rgba(15, 28, 46, 0.07);
  color: var(--hm-ink);
}

.home-hw-match-sheet__filter-val {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.home-hw-match-sheet__filter > i {
  flex-shrink: 0;
  font-size: 9px;
  opacity: 0.55;
  transition: transform 0.15s ease;
}

.home-hw-match-sheet__filter.is-open > i {
  transform: rotate(180deg);
}

.home-hw-match-sheet__filter-drop {
  margin: 0 0 8px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(15, 28, 46, 0.03);
}

.home-hw-match-sheet__filter-drop[hidden] {
  display: none;
}

.home-hw-match-sheet__filter-drop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.home-hw-match-sheet__filter-opt {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #5b6b7c;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 28, 46, 0.04);
}

.home-hw-match-sheet__filter-opt.on {
  background: var(--hm-warm-soft);
  color: var(--hm-warm);
  box-shadow: none;
}

.home-hw-match-sheet__filter-opt:active:not(.on) {
  background: rgba(15, 28, 46, 0.05);
}

.home-hw-match-sheet__books {
  flex: 1 1 auto;
  min-height: 120px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  padding: 8px 0 16px;
  -webkit-overflow-scrolling: touch;
}

.home-hw-match-sheet__book {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.home-hw-match-sheet__book:active {
  transform: scale(0.96);
}

.home-hw-match-sheet__book-cover {
  position: relative;
  width: 52px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  background: #f2f4f7;
  box-shadow: 0 3px 10px rgba(40, 50, 70, 0.12);
}

.home-hw-match-sheet__book-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hw-match-sheet__book.on .home-hw-match-sheet__book-cover {
  outline: 2px solid var(--hm-warm);
  outline-offset: 2px;
}

.home-hw-match-sheet__book-check {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--hm-warm);
  color: #fff;
  font-size: 10px;
  display: none;
  place-items: center;
}

.home-hw-match-sheet__book.on .home-hw-match-sheet__book-check {
  display: grid;
}

.home-hw-match-sheet__book-name {
  max-width: 100%;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  color: #3a4a5a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-hw-match-sheet__empty {
  grid-column: 1 / -1;
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--hm-text-sec);
  text-align: center;
}

.home-hw-match-sheet__done {
  flex-shrink: 0;
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: none;
  border-radius: 14px;
  background: var(--hm-primary);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 720;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(31, 154, 240, 0.22);
}

.home-hw-match-sheet__done:active {
  transform: scale(0.985);
}

.home-hw-match-sheet__done:disabled {
  opacity: 0.38;
  box-shadow: none;
  cursor: default;
}

.home-hw-match-sheet__picker {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.home-hw-match-sheet__picker[hidden] {
  display: none;
}

.home-hw-match-sheet__picker-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 46, 0.42);
}

.home-hw-match-sheet__picker-panel {
  position: relative;
  z-index: 1;
  max-height: 62%;
  display: flex;
  flex-direction: column;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -14px 36px rgba(15, 28, 46, 0.12);
}

.home-hw-match-sheet__picker-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 720;
  color: var(--hm-ink);
}

.home-hw-match-sheet__picker-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

@keyframes home-hw-match-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes home-hw-match-up {
  from {
    opacity: 0.7;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hw-match-sheet__mask,
  .home-hw-match-sheet__panel {
    animation: none !important;
  }
}

.care-student-view .home-hw-item.care-feed-item--last {
  margin-bottom: 0;
}

.care-student-view .home-hw-fold {
  margin: 0 0 10px;
  list-style: none;
}

.care-student-view .home-hw-fold__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(34, 170, 110, 0.16);
  border-radius: 14px;
  background: rgba(34, 170, 110, 0.08);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.care-student-view .home-hw-fold__title {
  font-size: 13px;
  font-weight: 700;
  color: #1f7a4d;
}

.care-student-view .home-hw-fold__sub {
  flex: 1;
  font-size: 12px;
  color: #5b8f72;
}

.care-student-view .home-hw-fold__chevron {
  color: #1f7a4d;
  transition: transform 0.18s ease;
}

.care-student-view .home-hw-fold__btn.is-open .home-hw-fold__chevron {
  transform: rotate(180deg);
}

.care-student-view .home-hw-rail {
  flex: 0 0 44px;
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding-top: 10px;
  box-sizing: border-box;
}

.care-student-view .home-hw-rail__times {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.care-student-view .home-hw-rail__time {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: #1f2933;
  white-space: nowrap;
}

.care-student-view .home-hw-rail__time--end {
  font-size: 10px;
  font-weight: 600;
  color: #7a8fa3;
}

.care-student-view .home-hw-rail__time--muted {
  font-size: 11px;
  font-weight: 600;
  color: #7a8fa3;
}

.care-student-view .home-hw-rail__grip {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 184, 255, 0.08);
  color: #8aa4b8;
  font-size: 11px;
}

/* 个人版首页：不显示排程拖拽握把 */
#homePersonalView .home-hw-rail__grip,
.ios-screen.is-personal-mode .home-hw-rail__grip,
.home-panel.is-personal-mode .home-hw-rail__grip {
  display: none !important;
}

.care-student-view .home-hw-swipe {
  --home-hw-swipe-action-w: 72px;
  --home-hw-swipe-actions-w: 144px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(76, 117, 242, 0.08);
  box-shadow: none;
  background: #f8f9fc;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.care-student-view .home-hw-swipe__track {
  display: flex;
  flex-direction: row;
  width: calc(100% + var(--home-hw-swipe-actions-w));
  transform: translateX(0);
  transition: transform 0.22s ease;
  touch-action: pan-y;
}

.care-student-view .home-hw-swipe .care-feed-item__panel.home-hw-task {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 14px 14px 12px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* 已完成：轻微降权，保留批改结果 / 数据可读 */
.care-student-view .home-hw-item:has(.home-hw-task--checked) .home-hw-swipe {
  background: #fbfbfc;
  box-shadow: none;
}

.care-student-view .home-hw-task__title > .hw-checkbox {
  margin-top: 0;
}

.care-student-view .home-hw-task__title > .home-hw-task__meta {
  margin-top: 0;
}

.care-student-view .home-hw-task--checked .home-hw-task__switch {
  opacity: 0.4;
}

.care-student-view .home-hw-task--checked .home-hw-task__ico--cover {
  box-shadow: 0 2px 6px rgba(40, 50, 70, 0.08);
  filter: grayscale(0.12);
}

/* 结果区保持完整对比度 */
.care-student-view .home-hw-task--checked .home-hw-task__badge,
.care-student-view .home-hw-task--checked .home-hw-note,
.care-student-view .home-hw-task--checked .home-hw-task__metrics,
.care-student-view .home-hw-task--checked .home-hw-task__thumbs {
  opacity: 1;
  filter: none;
  color: inherit;
}

.care-student-view .home-hw-swipe__action {
  flex: 0 0 var(--home-hw-swipe-action-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  padding: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.care-student-view .home-hw-swipe__action i {
  font-size: 18px;
}

.care-student-view .home-hw-swipe__action--edit {
  background: #5b8def;
}

.care-student-view .home-hw-swipe__action--edit:active {
  background: #4576d4;
}

.care-student-view .home-hw-swipe__action--delete {
  background: #e25555;
}

.care-student-view .home-hw-swipe__action--delete:active {
  background: #c94444;
}

.care-student-view .home-hw-task__main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
  cursor: pointer;
}

.care-student-view .home-hw-task__main .hw-checkbox,
.care-student-view .home-hw-task__main .home-hw-task__name,
.care-student-view .home-hw-task__main .home-hw-task__origin,
.care-student-view .home-hw-task__main .home-hw-task__book-switch,
.care-student-view .home-hw-task__main .home-hw-task__sheet {
  cursor: pointer;
}

.care-student-view .home-hw-task__content {
  --hw-cover-w: 56px;
  --hw-cover-h: 74px;
  --hw-sheet-h: 96px;
  --hw-media-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin-top: 2px;
}

.care-student-view .home-hw-task__ico {
  flex: 0 0 auto;
  width: var(--hw-cover-w);
  height: var(--hw-cover-h);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--hw-media-radius);
  display: grid;
  place-items: center;
  background: #eef2f6;
  color: #5b6b7c;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.care-student-view .home-hw-task__ico:active {
  transform: scale(0.97);
}

.care-student-view .home-hw-task__ico--paper,
.care-student-view .home-hw-task__ico--sheet {
  background: #eef2f7;
  color: #5b6b7c;
}

.care-student-view .home-hw-task__ico--unmatched {
  position: relative;
  background: #f6f3ef;
  color: transparent;
  box-shadow: inset 0 0 0 1px rgba(120, 100, 80, 0.12);
}

.care-student-view .home-hw-task__face-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  color: #c47a2c;
  font-size: 10px;
  font-weight: 720;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: pre-line;
  pointer-events: none;
  user-select: none;
}

.care-student-view .home-hw-task__origin-wrap {
  position: relative;
  flex: 0 0 auto;
  width: var(--hw-cover-w);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.care-student-view .home-hw-task__origin {
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
}

.care-student-view .home-hw-task__origin:active {
  opacity: 0.86;
}

.care-student-view .home-hw-task__origin .home-hw-task__ico {
  width: 100%;
  pointer-events: none;
}

.care-student-view .home-hw-task__ico--cover {
  padding: 0;
  overflow: hidden;
  background: #e8eef4;
  box-shadow: 0 0 0 1px rgba(40, 50, 70, 0.08);
}

.care-student-view .home-hw-task__ico--cover.is-stack {
  overflow: visible;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
}

.care-student-view .home-hw-task__origin.has-cover-pair .home-hw-task__ico {
  pointer-events: auto;
}

.care-student-view .home-hw-task__cover {
  width: 100%;
  height: 100%;
  display: block;
}

.care-student-view .home-hw-task__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 封面 + 封底叠放，滑动切换 */
.care-student-view .home-hw-task__cover-stack {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  pointer-events: auto;
}

.care-student-view .home-hw-task__cover-stack__slide {
  position: absolute;
  inset: 0;
  border-radius: var(--hw-media-radius, 8px);
  overflow: hidden;
  background: #e8eef4;
  box-shadow: 0 0 0 1px rgba(40, 50, 70, 0.08);
  transition: transform 0.22s ease, opacity 0.22s ease;
  will-change: transform;
}

.care-student-view .home-hw-task__cover-stack__slide.is-front {
  z-index: 2;
  transform: translate(0, 0) rotate(0deg);
  opacity: 1;
}

.care-student-view .home-hw-task__cover-stack__slide.is-behind {
  z-index: 1;
  transform: translate(8px, 6px) rotate(6deg) scale(0.96);
  opacity: 0.88;
  pointer-events: none;
}

.care-student-view .home-hw-task__cover-stack__tag {
  position: absolute;
  left: 3px;
  bottom: 3px;
  z-index: 2;
  margin: 0;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.62);
  color: #fff;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
}

.care-student-view .home-hw-task__origin.has-cover-pair {
  overflow: visible;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.care-student-view .home-hw-task__origin-wrap:has(.has-cover-pair) {
  overflow: visible;
}

.care-student-view .home-hw-task__origin-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 3px 4px;
  border-radius: 6px;
  background: rgba(61, 184, 255, 0.12);
  color: #1a7fd4;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.care-student-view .home-hw-task__origin-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.care-student-view .home-hw-task__origin-label .fa-chevron-down {
  flex: 0 0 auto;
  font-size: 9px;
  opacity: 0.9;
}

.care-student-view .home-hw-task__origin:active .home-hw-task__origin-label {
  background: rgba(61, 184, 255, 0.2);
}

.care-student-view .home-hw-task__origin.is-unmatched .home-hw-task__origin-label {
  color: #c47a2c;
}

.care-student-view .home-hw-task__origin.is-upload-face {
  gap: 0;
}

.care-student-view .home-hw-task__retake-cover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 3px 2px;
  border: none;
  border-radius: 6px;
  background: rgba(61, 184, 255, 0.12);
  color: #1a7fd4;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}

.care-student-view .home-hw-task__retake-cover:active {
  background: rgba(61, 184, 255, 0.2);
  opacity: 0.92;
}

.care-student-view .home-hw-task__origin-label--btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #c47a2c;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
}

.care-student-view .home-hw-task__origin-label--btn .fa-chevron-down {
  flex: 0 0 auto;
  font-size: 8px;
  opacity: 0.7;
}

.care-student-view .home-hw-task__origin-label--btn:active {
  opacity: 0.72;
}

.care-student-view .home-hw-task__match-tip--on-cover {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 2;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 252, 248, 0.92);
  box-shadow: 0 0 0 1px rgba(196, 122, 44, 0.22);
  color: #c47a2c;
  font-size: 11px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.care-student-view .home-hw-task__sheets {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.care-student-view .home-hw-task__sheets::-webkit-scrollbar {
  display: none;
}

.care-student-view .home-hw-task__sheet {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: var(--hw-sheet-h);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--hw-media-radius);
  overflow: hidden;
  background: #f7f8fa;
  box-shadow: 0 0 0 1px rgba(40, 50, 70, 0.08);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.care-student-view .home-hw-task__sheet:active {
  transform: scale(0.985);
}

.care-student-view .home-hw-task__sheet-face {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
}

.care-student-view .home-hw-task__sheet-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.care-student-view .home-hw-task__sheet-no {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.care-student-view .home-hw-task__sheet-badge {
  position: absolute;
  left: 5px;
  bottom: 5px;
  z-index: 2;
  max-width: calc(100% - 10px);
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 720;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
}

.care-student-view .home-hw-task__sheet-badge.is-solving {
  background: rgba(15, 28, 46, 0.72);
  color: #fff;
  box-shadow: 0 1px 4px rgba(15, 28, 46, 0.18);
}

.care-student-view .home-hw-task__sheet.is-solving .home-hw-task__sheet-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 42%,
    rgba(15, 28, 46, 0.18) 100%
  );
  pointer-events: none;
}

.care-student-view .home-hw-task__sheet--enter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px dashed rgba(122, 143, 163, 0.45);
}

.care-student-view .home-hw-task__sheet--enter:active {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px dashed rgba(61, 184, 255, 0.55);
}

.care-student-view .home-hw-task__sheet-enter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  color: #7a8fa3;
  text-align: center;
}

.care-student-view .home-hw-task__sheet-enter .fa-plus {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(61, 184, 255, 0.12);
  color: #1a7fd4;
  font-size: 11px;
}

.care-student-view .home-hw-task__sheet-enter-text {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: #5b6570;
}

.care-student-view .home-hw-task__sheet--enter:active .home-hw-task__sheet-enter-text {
  color: #1a7fd4;
}

.care-student-view .home-hw-task__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding-top: 1px;
}

.care-student-view .home-hw-task__top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  min-width: 0;
  margin-bottom: 10px;
}

.care-student-view .home-hw-task__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(47, 52, 58, 0.06);
  min-width: 0;
}

.care-student-view .home-hw-task__actions--assess {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.care-student-view .home-hw-task__actions--assess .home-hw-task__assess-strip {
  padding-bottom: 8px;
}

.care-student-view .home-hw-task__actions--assess .home-hw-task__actions-foot {
  padding-top: 8px;
  border-top: 1px solid rgba(47, 52, 58, 0.06);
}

.care-student-view .home-hw-task__actions--checked {
  margin-top: 10px;
}

.care-student-view .home-hw-task__actions-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.care-student-view .home-hw-task__timer-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

/* 分割线后的纯排版行，不做灰底卡中卡 */
.care-student-view .home-hw-task__assess-strip {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.care-student-view .home-hw-task__assess-strip:active {
  opacity: 0.72;
}

.care-student-view .home-hw-task__assess-strip--pending {
  cursor: default;
  opacity: 0.92;
}

.care-student-view .home-hw-task__assess-strip--pending:active {
  opacity: 0.92;
}

.care-student-view .home-hw-task__assess-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  padding-left: 8px;
  border-left: 1px solid rgba(47, 52, 58, 0.08);
  font-size: 12px;
  font-weight: 700;
  color: #0396fe;
  letter-spacing: 0.02em;
}

.care-student-view .home-hw-task__assess-spin {
  font-size: 11px;
  animation: home-hw-assess-spin 0.9s linear infinite;
}

@keyframes home-hw-assess-spin {
  to {
    transform: rotate(360deg);
  }
}

.care-student-view .home-hw-task__assess-title {
  flex: 0 0 auto;
  width: 64px;
  margin-right: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #5b6b7c;
  white-space: nowrap;
  line-height: 1.2;
}

.care-student-view .home-hw-task__assess-metrics {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.care-student-view .home-hw-task__assess-metric {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 0 8px;
  border-left: 1px solid rgba(47, 52, 58, 0.08);
}

.care-student-view .home-hw-task__assess-metric em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  color: #98a2b3;
}

.care-student-view .home-hw-task__assess-metric b {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.15;
  color: #1f2933;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 作业点评：3–5 星（整颗显示，不裁切第五颗） */
.care-student-view .home-hw-task__assess-metric--stars {
  gap: 3px;
  padding: 0 4px;
  min-width: 0;
}

.care-student-view .home-hw-task__stars {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  line-height: 1;
}

.care-student-view .home-hw-task__stars .fa-star {
  flex: 0 0 auto;
  font-size: 8px;
  line-height: 1;
  color: rgba(26, 36, 56, 0.14);
}

.care-student-view .home-hw-task__stars .fa-star.is-on {
  /* 琥珀金：对齐个人首页 --home-warm / warning，避免跳色奖杯黄 */
  color: var(--home-warm, #c47a3a);
}

.home-hw-assess__summary-item .home-hw-task__stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
}

.home-hw-assess__summary-item .home-hw-task__stars .fa-star {
  font-size: 14px;
  color: rgba(26, 36, 56, 0.14);
}

.home-hw-assess__summary-item .home-hw-task__stars .fa-star.is-on {
  color: var(--home-warm, #c47a3a);
}

.care-student-view .home-hw-task__assess-metric b small {
  font-size: 10px;
  font-weight: 650;
  color: #7a8fa3;
}

.care-student-view .home-hw-task__assess-metric--intensity.is-ok b,
.care-student-view .home-hw-task__assess-metric--tone.is-ok b {
  color: #047857;
}

.care-student-view .home-hw-task__assess-metric--intensity.is-high b,
.care-student-view .home-hw-task__assess-metric--tone.is-high b {
  color: #b91c1c;
}

.care-student-view .home-hw-task__assess-metric--intensity.is-low b {
  color: #b45309;
}

.care-student-view .home-hw-task__assess-metric--tone.is-muted b {
  color: #5b6b7c;
}

.care-student-view .home-hw-task__assess-go {
  flex: 0 0 auto;
  margin-left: 2px;
  font-size: 10px;
  color: #98a2b3;
}

.care-student-view .home-hw-task__title {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.care-student-view .home-hw-task__meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 24px;
  height: 24px;
  margin: 0;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(122, 143, 163, 0.14);
  color: #5b6b7c;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.care-student-view .home-hw-task__meta-sub {
  flex: 0 0 auto;
}

.care-student-view .home-hw-task__meta > i {
  flex: 0 0 auto;
  font-size: 9px;
  opacity: 0.85;
}

.care-student-view .home-hw-task__meta--chinese {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.care-student-view .home-hw-task__meta--math {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.care-student-view .home-hw-task__meta--english {
  background: var(--tint-blue, rgba(59, 91, 219, 0.12));
  color: var(--brand, #3b5bdb);
}

.care-student-view .home-hw-task__meta--other {
  background: rgba(122, 143, 163, 0.14);
  color: #5b6b7c;
}

.care-student-view .home-hw-task__name {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #1f2933;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  cursor: text;
  border-radius: 4px;
}

.care-student-view .home-hw-task__book-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 0 0 0 26px; /* checkbox 18 + gap 8 */
  box-sizing: border-box;
}

.care-student-view .home-hw-task__book {
  margin: 0;
  padding: 0;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #8b95a5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 刚拍完回流：作业卡短暂呼应高亮 */
.care-student-view .home-hw-item.is-echo .home-hw-swipe {
  box-shadow: 0 0 0 2px rgba(3, 150, 254, 0.28);
  transition: box-shadow 0.2s ease;
}

.care-student-view .home-hw-task__book-switch {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 2px 6px;
  border: none;
  border-radius: 6px;
  background: rgba(61, 184, 255, 0.12);
  color: #1a7fd4;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.care-student-view .home-hw-task__book-switch > i {
  font-size: 9px;
  opacity: 0.9;
}

.care-student-view .home-hw-task__book-switch:active {
  background: rgba(61, 184, 255, 0.2);
}

.care-student-view .home-hw-task--checked .home-hw-task__book,
.care-student-view .home-hw-task--title-done .home-hw-task__book {
  color: var(--text-muted, #98a2b3);
}

.care-student-view .home-hw-task--checked .home-hw-task__book-switch,
.care-student-view .home-hw-task--title-done .home-hw-task__book-switch {
  background: rgba(152, 162, 179, 0.14);
  color: #98a2b3;
}

.care-student-view .home-hw-task--checked .home-hw-task__name,
.care-student-view .home-hw-task--title-done .home-hw-task__name {
  font-weight: 400;
  color: var(--text-muted, #98a2b3);
}

.care-student-view .home-hw-task__meta.is-done,
.care-student-view .home-hw-task--checked .home-hw-task__meta,
.care-student-view .home-hw-task--title-done .home-hw-task__meta {
  background: var(--surface-page, #f3f4f6);
  color: var(--text-muted, #98a2b3);
}

.care-student-view .home-hw-task__name.is-editing {
  overflow: visible;
  text-overflow: clip;
  flex: 1 1 auto;
}

.care-student-view .home-hw-task__name-input {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 2px;
  border: none;
  border-bottom: 1.5px solid rgba(76, 117, 242, 0.55);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2933;
  outline: none;
  box-sizing: border-box;
}

.care-student-view .home-hw-task__switch {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #7a8fa3;
  font-size: 11px;
  cursor: pointer;
  opacity: 0.55;
  -webkit-tap-highlight-color: transparent;
}

.care-student-view .home-hw-task__switch:active {
  background: #eef2f6;
  opacity: 1;
}

.care-student-view .home-hw-task__source {
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.35;
  color: #7a8fa3;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.care-student-view .home-hw-task__source:active {
  opacity: 0.7;
}

.care-student-view .home-hw-task__pages {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px 10px;
  width: 100%;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #7a8fa3;
}

.care-student-view .home-hw-task__pages .home-hw-task__timer-play {
  margin-left: auto;
  flex-shrink: 0;
}

.care-student-view .home-hw-task__page-range {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
}

.care-student-view .home-hw-task__page-range:active {
  transform: scale(0.97);
}

.care-student-view .home-hw-task__page-chip {
  min-width: 28px;
  border-radius: 6px;
  background: rgba(122, 143, 163, 0.08);
  color: #7a8fa3;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 2px 6px;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}

.care-student-view .home-hw-task__page-range:active .home-hw-task__page-chip {
  background: rgba(61, 184, 255, 0.12);
  color: #1a7fd4;
}

.care-student-view .home-hw-task__page-sep {
  opacity: 0.45;
  font-weight: 500;
}

.care-student-view .home-hw-task__page-unit {
  opacity: 0.7;
  font-size: 11px;
}

.care-student-view .home-hw-task__timer-tools .home-hw-task__timer-play {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  box-shadow: none;
}

.home-hw-page-edit__mask {
  position: absolute;
  inset: 0;
  z-index: 74;
  background: rgba(15, 28, 46, 0.42);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.home-hw-page-edit__mask.is-show {
  opacity: 1;
  pointer-events: auto;
}

.home-hw-page-edit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 75;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.home-hw-page-edit.is-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.home-hw-page-edit__sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 12px 18px calc(28px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px 24px 0 0;
  background: #fff;
  border-top: 1px solid #eceff1;
  box-shadow: 0 -14px 36px rgba(15, 28, 46, 0.12);
}

.home-hw-page-edit__head {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.home-hw-page-edit__title {
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: #0f1c2e;
}

.home-hw-page-edit__icon {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(238, 245, 251, 0.95);
  color: #7a8fa3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 0 0 1px #e6eef5;
  transition: background 0.18s ease, transform 0.18s ease;
}

.home-hw-page-edit__icon:active {
  transform: scale(0.94);
  background: #e4eef7;
}

.home-hw-page-edit__icon--ok {
  background: linear-gradient(135deg, #56c4ff 0%, #3db8ff 55%, #2aa8ef 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(61, 184, 255, 0.28);
}

.home-hw-page-edit__icon--ok:active {
  transform: scale(0.94);
  filter: brightness(0.96);
}

.home-hw-page-edit__labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 18px 2px;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  color: #7a8fa3;
  letter-spacing: 0.04em;
}

.home-hw-page-edit__wheel {
  position: relative;
  height: 236px;
  overflow: hidden;
  background: #fff;
}

.home-hw-page-edit__band {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  height: 44px;
  margin-top: -22px;
  border-radius: 14px;
  background: rgba(236, 239, 241, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  z-index: 1;
  pointer-events: none;
}

.home-hw-page-edit__fade {
  position: absolute;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 3;
  pointer-events: none;
}

.home-hw-page-edit__fade--top {
  top: 0;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0));
}

.home-hw-page-edit__fade--bot {
  bottom: 0;
  background: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0));
}

.home-hw-page-edit__cols {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: 100%;
  padding: 0 12px;
  box-sizing: border-box;
}

.home-hw-page-edit__col {
  position: relative;
  z-index: 2;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-y;
  padding: 0 4px;
  box-sizing: border-box;
}

.home-hw-page-edit__col::-webkit-scrollbar {
  display: none;
}

.home-hw-page-edit__pad {
  height: 96px;
  flex-shrink: 0;
  pointer-events: none;
}

.home-hw-page-edit__item {
  height: 44px;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(15, 28, 46, 0.22);
  user-select: none;
  transition: color 0.14s ease, font-size 0.14s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  padding: 0 8px;
}

.home-hw-page-edit__item.is-near {
  color: rgba(15, 28, 46, 0.42);
  font-size: 17px;
}

.home-hw-page-edit__item.is-active {
  color: #0f1c2e;
  font-size: 19px;
  font-weight: 800;
}

.care-student-view .home-hw-task__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: #7a8fa3;
}

/* 书桌便签底栏：评估摘要 · 整理文字 · 主 CTA */
.care-student-view .home-hw-task__ctas {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1 1 auto;
  width: auto;
  margin: 0 0 0 auto;
  min-width: 0;
}

.care-student-view .home-hw-task__actions--assess .home-hw-task__ctas {
  margin-left: auto;
}

.care-student-view .home-hw-task__link {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 2px;
  border: none;
  background: transparent;
  color: #8a949e;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.care-student-view .home-hw-task__link:active {
  color: #c47a2c;
}

.care-student-view .home-hw-task__cta {
  flex: 0 0 auto;
  min-width: 96px;
  height: 34px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: #f59e0b;
  box-shadow: none;
  white-space: nowrap;
}

.care-student-view .home-hw-task__cta--check,
.care-student-view .home-hw-task__cta--write,
.care-student-view .home-hw-task__cta--match {
  flex: 0 0 auto;
  min-width: 96px;
}

.care-student-view .home-hw-task__cta--explain,
.care-student-view .home-hw-task__cta--solve {
  flex: 0 0 auto;
  color: #2f6f9a;
  background: #eef7fd;
  box-shadow: none;
  border: 1px solid #cfe6f6;
}

.care-student-view .home-hw-task__cta--organize {
  /* legacy class kept; organize uses .home-hw-task__link */
  display: none;
}

.care-student-view .home-hw-task__cta--solving {
  color: #8a949e;
  background: #f1f3f6;
  box-shadow: none;
  border: 1px solid #e2e6ec;
  cursor: default;
  opacity: 0.9;
}

.care-student-view .home-hw-task__cta--solving:active {
  transform: none;
  opacity: 0.9;
}

.care-student-view .home-hw-task__cta--check,
.care-student-view .home-hw-task__cta--match {
  background: #f59e0b;
  box-shadow: none;
}

.care-student-view .home-hw-task__cta--write {
  background: #3db8ff;
}

.care-student-view .home-hw-task__cta:active {
  transform: scale(0.98);
  opacity: 0.92;
}

.care-student-view .home-hw-task__done {
  flex: 1 1 0;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #5b6570;
  background: #eef2f6;
}

/* 暖金小闹钟：页码行最右侧，开番茄钟 */
.care-student-view .home-hw-task__timer-play {
  --hw-alarm: #d4a04a;
  --hw-alarm-soft: #f6edd8;
  --hw-alarm-face: #fffdf8;
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin: 0 0 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.care-student-view .home-hw-task__timer-play::before,
.care-student-view .home-hw-task__timer-play::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 5px;
  height: 5px;
  border: 1.5px solid var(--hw-alarm);
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  background: var(--hw-alarm-soft);
  z-index: 2;
}

.care-student-view .home-hw-task__timer-play::before {
  left: 7px;
  transform: rotate(-18deg);
}

.care-student-view .home-hw-task__timer-play::after {
  right: 7px;
  transform: rotate(18deg);
}

.care-student-view .home-hw-task__timer-face {
  position: relative;
  width: 24px;
  height: 24px;
  margin-top: 3px;
  border-radius: 50%;
  border: 1.5px solid var(--hw-alarm);
  background:
    radial-gradient(circle at 50% 50%, var(--hw-alarm) 0 1.5px, transparent 1.6px),
    var(--hw-alarm-face);
  box-shadow:
    0 1px 2px rgba(180, 130, 40, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.care-student-view .home-hw-task__timer-face::before,
.care-student-view .home-hw-task__timer-face::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: 50% 100%;
  border-radius: 999px;
  background: var(--hw-alarm);
}

.care-student-view .home-hw-task__timer-face::before {
  width: 1.5px;
  height: 6px;
  margin-left: -0.75px;
  transform: rotate(12deg);
}

.care-student-view .home-hw-task__timer-face::after {
  width: 1.5px;
  height: 8px;
  margin-left: -0.75px;
  transform: rotate(72deg);
}

@media (prefers-reduced-motion: no-preference) {
  .care-student-view .home-hw-task__timer-face::after {
    animation: homeHwAlarmHand 6s ease-in-out infinite;
  }
}

@keyframes homeHwAlarmHand {
  0%,
  100% {
    transform: rotate(72deg);
  }
  50% {
    transform: rotate(84deg);
  }
}

.care-student-view .home-hw-task__timer-play:active {
  transform: scale(0.96);
}

.care-student-view .home-hw-task__timer-play:active .home-hw-task__timer-face {
  background-color: var(--hw-alarm-soft);
}

/* 首页调整预估时长 */
.home-hw-timer-edit__mask {
  position: absolute;
  inset: 0;
  z-index: 70;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.home-hw-timer-edit__mask.is-show {
  opacity: 1;
}

.home-hw-timer-edit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 71;
  transform: translateY(110%);
  transition: transform 0.22s ease;
  pointer-events: none;
}

.home-hw-timer-edit.is-show {
  transform: translateY(0);
  pointer-events: auto;
}

.home-hw-timer-edit__panel {
  margin: 0;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.14);
}

.home-hw-timer-edit__head {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.home-hw-timer-edit__title {
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 750;
  color: #1f2933;
}

.home-hw-timer-edit__x,
.home-hw-timer-edit__ok {
  min-height: 34px;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.home-hw-timer-edit__x {
  justify-self: start;
  color: #7a8fa3;
}

.home-hw-timer-edit__ok {
  justify-self: end;
  color: #1f7eb8;
}

.home-hw-timer-edit__stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 6px 0 16px;
}

.home-hw-timer-edit__step {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(47, 52, 58, 0.1);
  border-radius: 12px;
  background: #f5f7fa;
  color: #1f2933;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.home-hw-timer-edit__val-wrap {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  min-width: 112px;
}

.home-hw-timer-edit__val {
  width: 64px;
  margin: 0;
  padding: 4px 2px;
  border: none;
  border-bottom: 2px solid rgba(31, 126, 184, 0.35);
  border-radius: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #1f2933;
  outline: none;
  -moz-appearance: textfield;
}

.home-hw-timer-edit__val::-webkit-outer-spin-button,
.home-hw-timer-edit__val::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.home-hw-timer-edit__val:focus {
  border-bottom-color: #1f7eb8;
}

.home-hw-timer-edit__unit {
  font-size: 14px;
  font-weight: 700;
  color: #7a8fa3;
}

/* 作业评估半屏 · 首屏判读构图 */
.home-hw-assess__mask {
  position: absolute;
  inset: 0;
  z-index: 72;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.home-hw-assess__mask.is-show {
  opacity: 1;
}

.home-hw-assess {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 73;
  max-height: min(78%, 560px);
  transform: translateY(110%);
  transition: transform 0.22s ease;
  pointer-events: none;
}

.home-hw-assess.is-show {
  transform: translateY(0);
  pointer-events: auto;
}

.home-hw-assess__panel {
  display: flex;
  flex-direction: column;
  max-height: min(78vh, 560px);
  margin: 0;
  padding: 0 0 calc(10px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.home-hw-assess__grip {
  width: 36px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: rgba(47, 52, 58, 0.14);
}

.home-hw-assess__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 16px 4px;
}

.home-hw-assess__title {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  color: #1f2933;
}

.home-hw-assess__x {
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #f3f5f7;
  color: #5b6b7c;
  cursor: pointer;
}

.home-hw-assess__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.home-hw-assess__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px 14px;
}

/* ① 结论 */
.home-hw-assess__hero {
  margin: 0 0 16px;
  padding: 16px 14px 14px;
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(76, 117, 242, 0.12), transparent 55%),
    linear-gradient(165deg, #f7f9fd 0%, #eef2fa 100%);
  box-shadow: inset 0 0 0 1px rgba(76, 117, 242, 0.06);
}

/* 点评：编辑短报 — hero 去彩底，只留字阶 */
.home-hw-assess__scroll--review {
  padding-top: 2px;
}

.home-hw-assess__hero--review {
  margin: 0 0 20px;
  padding: 4px 2px 14px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid rgba(47, 52, 58, 0.08);
}

.home-hw-assess.is-show .home-hw-assess__hero {
  animation: homeHwAssessHeroIn 0.34s ease both;
}

@keyframes homeHwAssessHeroIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hw-assess__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.home-hw-assess__hero--review .home-hw-assess__summary {
  margin: 0;
  gap: 10px;
}

.home-hw-assess__summary-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
  padding: 2px 2px 0;
}

.home-hw-assess__hero--review .home-hw-assess__summary-item {
  min-height: 58px;
  gap: 3px;
}

.home-hw-assess__summary-item em {
  font-style: normal;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  color: #7a8fa3;
}

.home-hw-assess__summary-item > b {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  color: #1f2933;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-hw-assess__summary-eta {
  color: #0396fe;
}

.home-hw-assess__summary-eta small,
.home-hw-assess__diff b small {
  font-size: 11px;
  font-weight: 650;
  color: #7a8fa3;
  letter-spacing: 0;
}

.home-hw-assess__summary-intensity.is-ok {
  color: #047857;
}

.home-hw-assess__summary-intensity.is-high {
  color: #b91c1c;
}

.home-hw-assess__summary-intensity.is-low {
  color: #b45309;
}

.home-hw-assess__summary-intensity.is-muted {
  color: #5b6b7c;
}

.home-hw-assess__summary-sub {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: #98a2b3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-hw-assess__summary-sub.is-empty {
  visibility: hidden;
}

.home-hw-assess__compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-hw-assess__compare li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  padding: 8px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(3, 150, 254, 0.1);
}

.home-hw-assess__compare em {
  font-style: normal;
  font-size: 10px;
  font-weight: 650;
  color: #8a97a8;
  line-height: 1;
}

.home-hw-assess__compare b {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #1f2933;
  line-height: 1.1;
}

.home-hw-assess__compare b small {
  font-size: 11px;
  font-weight: 650;
  color: #7a8fa3;
}

.home-hw-assess__risk--tip {
  background: rgba(3, 150, 254, 0.06);
  box-shadow: inset 0 0 0 1px rgba(3, 150, 254, 0.16);
}

.home-hw-assess__risk--tip > i {
  color: #0396fe;
}

.home-hw-assess__risk--tip .home-hw-assess__risk-title {
  color: #0280e0;
}

.home-hw-assess__risk--tip p {
  color: #1e3a5f;
}

.home-hw-assess__next {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(3, 150, 254, 0.08);
  box-shadow: inset 0 0 0 1px rgba(3, 150, 254, 0.14);
}

.home-hw-assess__next-body {
  flex: 1 1 auto;
  min-width: 0;
}

.home-hw-assess__next-kicker {
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: #0396fe;
}

.home-hw-assess__next-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.home-hw-assess__next-detail {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
  color: #64748b;
}

.home-hw-assess__next-go {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: #0396fe;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.home-hw-assess__next-go:active {
  opacity: 0.88;
}

/* 构成：目录行，不做第三块实底卡 */
.home-hw-assess__fold--compose {
  margin: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-top: 1px solid rgba(47, 52, 58, 0.08);
}

.home-hw-assess__fold--compose > .home-hw-assess__fold-sum {
  padding: 12px 2px;
  font-size: 13px;
  font-weight: 700;
  color: #5b6b7c;
}

.home-hw-assess__fold-hint {
  margin-left: auto;
  margin-right: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #98a2b3;
}

.home-hw-assess__compose--folded {
  margin: 0;
  padding: 4px 2px 8px;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-hw-assess__fold--compose[open] > .home-hw-assess__compose--folded {
  padding-bottom: 4px;
}

.home-hw-assess__foot:has(.home-hw-assess__btn--primary:only-child) {
  justify-content: stretch;
}

.home-hw-assess__foot:has(.home-hw-assess__btn--primary:only-child) .home-hw-assess__btn {
  flex: 1 1 auto;
  width: 100%;
}

.home-hw-assess__diff-block {
  min-width: 0;
}

.home-hw-assess__diff-block .home-hw-assess__h {
  margin-bottom: 8px;
}

.home-hw-assess__diff {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-hw-assess__diff li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 8px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(3, 150, 254, 0.1);
  text-align: center;
}

.home-hw-assess__diff em {
  font-style: normal;
  font-size: 10px;
  font-weight: 650;
  color: #8a97a8;
  line-height: 1;
}

.home-hw-assess__diff b {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #1f2933;
  line-height: 1.1;
}

/* ② 构成 */
.home-hw-assess__compose {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(47, 52, 58, 0.08);
}

.home-hw-assess__block {
  min-width: 0;
}

.home-hw-assess__h {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: #7a8fa3;
}

.home-hw-assess__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.home-hw-assess__chip {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f5f9;
  color: #3d4a5c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.home-hw-assess__chip.is-muted {
  color: #98a2b3;
  font-weight: 550;
}

.home-hw-assess__types {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.home-hw-assess__types li {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  color: #5b6b7c;
}

.home-hw-assess__type-name {
  font-weight: 600;
}

.home-hw-assess__types b {
  font-size: 13px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: #1f2933;
}

.home-hw-assess__block--risk {
  margin-top: 2px;
}

.home-hw-assess__risk {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff8eb;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.22);
}

.home-hw-assess__risk > i {
  margin-top: 3px;
  color: #d97706;
  font-size: 13px;
}

.home-hw-assess__risk-body {
  min-width: 0;
  flex: 1 1 auto;
}

.home-hw-assess__risk-title {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  color: #b45309;
}

.home-hw-assess__risk p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: #92400e;
}

/* ③ 细节 */
.home-hw-assess__fold {
  margin: 0;
  border-radius: 14px;
  background: #f7f8fb;
  overflow: hidden;
}

.home-hw-assess__fold-sum {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  color: #1f2933;
}

.home-hw-assess__fold-sum::-webkit-details-marker {
  display: none;
}

.home-hw-assess__fold-count {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(3, 150, 254, 0.1);
  color: #0396fe;
  font-size: 11px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.home-hw-assess__fold-sum > i {
  font-size: 11px;
  color: #98a2b3;
  transition: transform 0.18s ease;
}

.home-hw-assess__fold[open] > .home-hw-assess__fold-sum > i {
  transform: rotate(180deg);
}

.home-hw-assess__items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 10px 12px;
}

.home-hw-assess__item {
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(47, 52, 58, 0.06);
  overflow: hidden;
}

.home-hw-assess__item-sum {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.home-hw-assess__item-sum::-webkit-details-marker {
  display: none;
}

.home-hw-assess__item-sum > i {
  margin-left: auto;
  font-size: 10px;
  color: #b0b8c4;
  transition: transform 0.18s ease;
}

.home-hw-assess__item[open] > .home-hw-assess__item-sum > i {
  transform: rotate(180deg);
}

.home-hw-assess__item-no {
  flex: 0 0 auto;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(3, 150, 254, 0.1);
  color: #0396fe;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.home-hw-assess__item-kp {
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  color: #1f2933;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-hw-assess__item-meta {
  list-style: none;
  margin: 0;
  padding: 0 12px 10px;
}

.home-hw-assess__item-meta li {
  margin: 0 0 5px;
  font-size: 12px;
  line-height: 1.45;
  color: #3d4a5c;
}

.home-hw-assess__item-meta em {
  display: inline-block;
  min-width: 2.5em;
  margin-right: 6px;
  font-style: normal;
  font-weight: 700;
  color: #98a2b3;
}

.home-hw-assess__empty {
  margin: 0;
  padding: 4px 4px 8px;
  font-size: 12px;
  color: #98a2b3;
}

.home-hw-assess__foot {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  padding: 10px 16px 0;
  border-top: 1px solid rgba(47, 52, 58, 0.06);
}

.home-hw-assess__btn {
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.home-hw-assess__btn--ghost {
  background: #f3f5f7;
  color: #5b6b7c;
}

.home-hw-assess__btn--primary {
  background: #0396fe;
  color: #fff;
}

.care-student-view .home-hw-task__extra {
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(47, 52, 58, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.care-student-view .home-hw-task__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 20px;
  min-width: 0;
}

.care-student-view .home-hw-task__foot .home-hw-task__wrong {
  flex: 1 1 auto;
  min-width: 0;
  align-self: center;
}

.care-student-view .home-hw-task__when {
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  padding: 0;
  gap: 5px;
  color: #8a97a6;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.care-student-view .home-hw-task__when i {
  font-size: 10px;
  color: #a3afbc;
}

.care-student-view .home-hw-task__metrics {
  list-style: none;
  margin: 0;
  padding: 10px 4px 8px;
  border-radius: 14px;
  border: 1px solid rgba(47, 52, 58, 0.06);
  background:
    linear-gradient(180deg, #fffaf5 0%, #f7f9fc 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.care-student-view .home-hw-task__metric {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  min-width: 0;
  padding: 0 6px;
  text-align: center;
}

.care-student-view .home-hw-task__metric + .home-hw-task__metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(47, 52, 58, 0.08);
}

.care-student-view .home-hw-task__metric-k {
  font-size: 10px;
  font-weight: 650;
  color: #8a98a8;
  letter-spacing: 0.04em;
}

.care-student-view .home-hw-task__metric-v {
  min-width: 0;
  max-width: 100%;
  font-size: 15px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #2f3a46;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.care-student-view .home-hw-task__metric-s {
  min-height: 1.2em;
  max-width: 100%;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.25;
  color: #8a98a8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.care-student-view .home-hw-task__metric-s.is-empty {
  visibility: hidden;
}

.care-student-view .home-hw-task__metric-v.is-good {
  color: #2f8f6b;
}

.care-student-view .home-hw-task__metric-v.is-warn {
  color: #c17a5a;
}

.care-student-view .home-hw-task__metric-v.is-ok,
.care-student-view .home-hw-task__metric-v.is-muted {
  color: #3d4a57;
}

.care-student-view .home-hw-note {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px 10px 10px;
  border-radius: 12px;
}

.care-student-view .home-hw-note__text {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.care-student-view .home-hw-note__photo-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

.care-student-view .home-hw-note__photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  object-position: top center;
  border-radius: 12px;
  border: 1px solid rgba(120, 170, 140, 0.28);
  background: #fff;
}

.care-student-view .home-hw-note__words {
  list-style: none;
  margin: 0;
  padding: 0;
}

.care-student-view .home-hw-note__words li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid rgba(47, 95, 158, 0.1);
  font-size: 12px;
  line-height: 1.35;
}

.care-student-view .home-hw-note__words li:first-child {
  border-top: 0;
  padding-top: 2px;
}

.care-student-view .home-hw-note__word {
  min-width: 0;
  flex: 1;
  font-weight: 700;
  color: #243044;
}

.care-student-view .home-hw-note__ans {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
}

.care-student-view .home-hw-note__words li.is-ok .home-hw-note__ans {
  color: #2f9e6a;
}

.care-student-view .home-hw-note__words li.is-bad .home-hw-note__ans {
  color: #d45454;
}

.care-student-view .home-hw-note__words li.is-bad .home-hw-note__word {
  color: #a33d3d;
}

.care-student-view .home-hw-note--dictation {
  background: rgba(61, 140, 255, 0.08);
  border: 1px solid rgba(61, 140, 255, 0.16);
}

.care-student-view .home-hw-note--dictation .home-hw-note__text {
  color: #2f5f9e;
}

.care-student-view .home-hw-note--hanzi {
  background: rgba(94, 196, 138, 0.1);
  border-color: rgba(94, 196, 138, 0.18);
}

.care-student-view .home-hw-note--hanzi .home-hw-note__text {
  color: #2f6b4a;
}

.care-student-view .home-hw-note--oral {
  background: rgba(94, 196, 138, 0.1);
  border: 1px solid rgba(94, 196, 138, 0.18);
}

.care-student-view .home-hw-note--oral .home-hw-note__text {
  color: #3e6b52;
}

.care-student-view .home-hw-note--recite {
  background: rgba(196, 92, 62, 0.08);
  border: 1px solid rgba(196, 92, 62, 0.14);
}

.care-student-view .home-hw-note--recite .home-hw-note__text {
  color: #8a4a38;
}

.care-student-view .home-hw-note--read {
  background: rgba(61, 184, 255, 0.08);
  border: 1px solid rgba(61, 184, 255, 0.14);
}

.care-student-view .home-hw-note--read .home-hw-note__text {
  color: #1a7fd4;
}

.care-student-view .home-hw-note--preview {
  background: rgba(120, 130, 150, 0.08);
  border: 1px solid rgba(120, 130, 150, 0.14);
}

.care-student-view .home-hw-note--preview .home-hw-note__text {
  color: #5a6578;
}

.care-student-view .home-hw-note__preview-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.care-student-view .home-hw-note__preview-item {
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  color: #5a6578;
}

.care-student-view .home-hw-note--has-audio {
  gap: 8px;
}

.care-student-view .home-hw-audio {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.care-student-view .home-hw-audio__play {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #8a4a38;
  box-shadow: 0 2px 8px rgba(196, 92, 62, 0.18);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.care-student-view .home-hw-note--read .home-hw-audio__play {
  color: #1a7fd4;
  box-shadow: 0 2px 8px rgba(26, 127, 212, 0.16);
}

.care-student-view .home-hw-audio__play i {
  font-size: 11px;
  margin-left: 1px;
}

.care-student-view .home-hw-audio__play.is-playing i {
  margin-left: 0;
}

.care-student-view .home-hw-audio__play:active {
  transform: scale(0.94);
}

.care-student-view .home-hw-audio__rail {
  flex: 1 1 auto;
  min-width: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(196, 92, 62, 0.14);
  overflow: hidden;
}

.care-student-view .home-hw-note--read .home-hw-audio__rail {
  background: rgba(26, 127, 212, 0.14);
}

.care-student-view .home-hw-audio__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e8a090 0%, #c45c3e 100%);
  transition: width 0.12s linear;
}

.care-student-view .home-hw-note--read .home-hw-audio__fill {
  background: linear-gradient(90deg, #7ed0ff 0%, #1a7fd4 100%);
}

.care-student-view .home-hw-audio__time {
  flex: 0 0 auto;
  min-width: 2.6em;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #8a4a38;
}

.care-student-view .home-hw-note--read .home-hw-audio__time {
  color: #1a7fd4;
}

.care-student-view .home-hw-task__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.care-student-view .home-hw-task__thumb {
  position: relative;
  width: 72px;
  height: var(--hw-sheet-h, 96px);
  padding: 0;
  border: none;
  border-radius: var(--hw-media-radius, 8px);
  overflow: hidden;
  background: #f7f8fa;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 0 1px rgba(40, 50, 70, 0.08);
}

.care-student-view .home-hw-task__thumb:active {
  transform: scale(0.985);
}

.care-student-view .home-hw-task__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.care-student-view .home-hw-task__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  max-width: calc(100% - 12px);
  padding: 3px 6px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(20, 24, 30, 0.18);
}

.care-student-view .home-hw-task__badge.is-perfect {
  background: rgba(34, 170, 110, 0.94);
}

.care-student-view .home-hw-task__badge.is-wrong {
  background: rgba(232, 84, 72, 0.94);
}

.care-student-view .home-hw-task__wrong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}

.care-student-view .care-student-timeline.is-delete-mode .home-hw-task__thumb,
.care-student-view .care-student-timeline.is-delete-mode .home-hw-task__cta {
  pointer-events: none;
}

/* 学员动态 · 作业缩略图大图预览（单层遮罩，避免多层黑底） */
.care-hw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.care-hw-lightbox.is-show {
  opacity: 1;
  pointer-events: auto;
}

.care-hw-lightbox[hidden] {
  display: none !important;
}

.care-hw-lightbox__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.care-hw-lightbox__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  pointer-events: none;
}

.care-hw-lightbox__head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  pointer-events: none;
}

.care-hw-lightbox__title {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.45);
}

.care-hw-lightbox__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1f2e;
  font-size: 16px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
  -webkit-tap-highlight-color: transparent;
}

.care-hw-lightbox__close:active {
  background: #fff;
  transform: scale(0.96);
}

.care-hw-lightbox__stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 48px 48px;
  box-sizing: border-box;
  background: transparent;
  touch-action: none;
  pointer-events: auto;
  cursor: grab;
  overflow: hidden;
}

.care-hw-lightbox__stage:active {
  cursor: grabbing;
}

.care-hw-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 640px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.22);
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transition: transform 0.16s ease, opacity 0.12s ease;
}

.care-hw-lightbox__img.is-swiping {
  transition: none;
}

.care-hw-lightbox__img.is-zoomed {
  cursor: grab;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.28);
}

.care-hw-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1f2e;
  font-size: 14px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.16);
  -webkit-tap-highlight-color: transparent;
}

.care-hw-lightbox__nav:active {
  background: #fff;
  transform: translateY(-50%) scale(0.96);
}

.care-hw-lightbox__nav[hidden] {
  display: none !important;
}

.care-hw-lightbox__nav--prev {
  left: 10px;
}

.care-hw-lightbox__nav--next {
  right: 10px;
}

.care-hw-lightbox__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  padding: 0 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.4);
  pointer-events: none;
}

.care-student-view .correction-pane__sheet {
  width: 100%;
  height: 120px;
  min-height: 120px;
  max-height: 120px;
  aspect-ratio: auto;
  box-sizing: border-box;
}
