/* 喵喵云 · 课程学习状态标记（绿-橙-灰 三色）
   与 js/meow-course-status.js 配套。卡片布局保持不变，只加一条左侧色条和右上角角标。 */

.app-list .map-card,
.app-list .ant-card {
  position: relative;
}

.meow-learn-card {
  border-left: 4px solid var(--meow-learn-color, #bfbfbf);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.meow-learn-card .meow-learn-badge {
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  padding: 5px 9px;
  color: #fff;
  border-radius: 999px 6px 6px 999px;
  white-space: nowrap;
}

.meow-learn-badge {
  position: absolute;
  top: 10px;
  right: 0;
  z-index: 2;
}

.meow-learn-badge b {
  font-weight: 600;
  margin-left: 6px;
  opacity: .9;
}

.meow-learn-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #8c8c8c;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.meow-learn-legend-title {
  font-weight: 600;
  color: #595959;
}

.meow-learn-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meow-learn-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

@media (max-width: 768px) {
  .meow-learn-legend {
    flex-wrap: wrap;
    gap: 10px;
  }
  .meow-learn-card .meow-learn-badge {
    padding: 4px 8px;
    font-size: 11px;
  }
}
/* 喵喵云 · 随堂测试入口（课时卡片右下角，与 meow-course-status.js 配套） */
.meow-quiz-link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #d94f1a;
  background: #fff1e8;
  border: 1px solid #ffd9c3;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(255, 122, 69, .16);
  transition: all .16s ease;
}

.meow-quiz-link:hover {
  background: #ff7a45;
  border-color: #ff7a45;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 122, 69, .32);
}

.meow-learn-card:has(.meow-quiz-link) {
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  .meow-quiz-link { height: 24px; padding: 0 10px; font-size: 11px; }
}
/* 喵喵云 · 键盘课课时卡片「去练习」入口 */
.meow-typing-link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #20a66a;
  border: 1px solid #20a66a;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(32, 166, 106, .26);
  transition: all .16s ease;
}

.meow-typing-link:hover {
  background: #168653;
  border-color: #168653;
  color: #fff;
  box-shadow: 0 5px 14px rgba(32, 166, 106, .36);
}

.meow-learn-card:has(.meow-typing-link) {
  padding-bottom: 76px;
}

/* 键盘课卡片右侧上下排：上为随堂测试，下为去练习 */
.meow-learn-card:has(.meow-typing-link) .meow-quiz-link {
  bottom: 42px;
}

@media (max-width: 768px) {
  .meow-typing-link { height: 24px; padding: 0 10px; font-size: 11px; }
}
/* 首页编辑器卡片：多出「随堂测试」后，最后一行单个卡片居中，避免大片空白 */
.editor-nav:has([data-meow-quiz-entry]) {
  justify-content: center;
}
/* 首页编辑器卡片：多出「随堂测试」后，改成 flex 换行并居中，避免 4+1 排版留大片空白 */
.editor-nav:has([data-meow-quiz-entry]) {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
}

.editor-nav:has([data-meow-quiz-entry]) > .ant-col {
  flex: 0 0 25%;
  max-width: 25%;
}

@media (max-width: 768px) {
  .editor-nav:has([data-meow-quiz-entry]) > .ant-col { flex: 0 0 50%; max-width: 50%; }
}
/* 喵喵云 · 「去做作业」入口（课时卡 / 课程卡 / 课后作业弹窗） */
.meow-unit-homework {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #d94f1a;
  background: #fff1e8;
  border: 1px solid #ffd9c3;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(255, 122, 69, .16);
  transition: all .16s ease;
}

.meow-unit-homework:hover {
  background: #ff7a45;
  border-color: #ff7a45;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 122, 69, .32);
}

.meow-course-homework-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid #ffd9c3;
  border-radius: 999px;
  background: #fff1e8;
  color: #d94f1a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.meow-course-homework-link:hover {
  background: #ff7a45;
  border-color: #ff7a45;
  color: #fff;
  transform: translateY(-1px);
}

.meow-homework-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.meow-homework-actions .ant-btn.meow-modal-homework,
.meow-homework-actions .meow-modal-quiz-link {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1px solid #ffd0bb !important;
  background: #fff3ed !important;
  color: #c2571e !important;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: none !important;
  vertical-align: middle;
  transition: all .16s ease;
}

.meow-homework-actions .ant-btn.meow-modal-homework:hover,
.meow-homework-actions .meow-modal-quiz-link:hover {
  background: #ff7a45 !important;
  border-color: #ff7a45 !important;
  color: #fff !important;
}

.meow-homework-actions .ant-btn.meow-modal-homework .anticon {
  color: inherit;
}

.meow-modal-quiz-link {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  margin-left: 10px;
  border-radius: 999px;
  border: 1px solid #ffd0bb;
  background: #fff3ed;
  color: #c2571e;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  vertical-align: middle;
  transition: all .16s ease;
}

.meow-modal-quiz-link:hover {
  background: #ff7a45;
  border-color: #ff7a45;
  color: #fff;
}

@media (max-width: 768px) {
  .meow-unit-homework { height: 24px; padding: 0 10px; font-size: 11px; }
  .meow-modal-quiz-link { height: 28px; padding: 0 11px; margin-left: 8px; font-size: 12px; }
  .meow-homework-actions { gap: 6px; }
  .meow-homework-actions .ant-btn.meow-modal-homework, .meow-homework-actions .meow-modal-quiz-link { height: 28px !important; padding: 0 8px !important; font-size: 11px !important; }
}

/* 喵喵云 · 视频弹窗右下角「去做作业」 */
.ant-modal:has(.meow-modal-work-footer) .ant-modal-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ant-modal:has(.meow-modal-work-footer) .ant-modal-header {
  flex: 0 0 auto;
}

.ant-modal:has(.meow-modal-work-footer) .ant-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.meow-modal-work-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  width: 100%;
  padding: 8px 14px 12px;
  background: #fff;
  border-top: 1px solid #fdeee4;
  border-radius: 0 0 8px 8px;
}

/* 弹窗底部「随堂测试」：与「去做作业」同尺寸、同橙色系，作为次级入口 */
.meow-modal-work-footer .meow-modal-quiz-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 0 18px;
  margin: 0;
  border: 1px solid #ffd0bb;
  border-radius: 999px;
  background: #fff3ed;
  color: #c2571e !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: none;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}

.meow-modal-work-footer .meow-modal-quiz-link:hover {
  background: #ff7a45;
  border-color: #ff7a45;
  color: #fff !important;
  transform: translateY(-1px);
}

.meow-modal-work-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 18px;
  border: 1px solid #ffb089;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9a5a 0%, #ff7a45 58%, #ff6b4a 100%);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(255, 122, 69, .28);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.meow-modal-work-btn:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(255, 122, 69, .36);
  filter: saturate(1.08);
}

.meow-modal-work-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(255, 122, 69, .24);
}

.meow-modal-work-btn .meow-work-paw {
  font-size: 14px;
  line-height: 1;
}

.meow-modal-work-btn .meow-work-arrow {
  font-size: 13px;
  line-height: 1;
  opacity: .9;
}

@media (max-width: 768px) {
  .meow-modal-work-footer { padding: 7px 12px 10px; gap: 8px; }
  .meow-modal-work-btn { height: 32px; padding: 0 14px; font-size: 12px; }
  .meow-modal-work-footer .meow-modal-quiz-link { height: 32px; padding: 0 14px; font-size: 12px; }
  .meow-modal-work-btn .meow-work-paw { font-size: 13px; }
}

/* 公开课程卡：和课时卡统一为橙色胶囊按钮，避免蓝/橙两套风格 */
.work-card .meow-course-quiz-btn {
  color: #d94f1a !important;
  background: #fff1e8 !important;
  border-color: #ffd9c3 !important;
  box-shadow: 0 2px 8px rgba(255, 122, 69, .16);
}

.work-card .meow-course-quiz-btn:hover {
  color: #fff !important;
  background: #ff7a45 !important;
  border-color: #ff7a45 !important;
  box-shadow: 0 4px 12px rgba(255, 122, 69, .32);
}

.work-card .meow-course-quiz-btn .meow-quiz-dot {
  background: #ff7a45 !important;
  color: #fff !important;
}

.work-card .meow-course-quiz-btn:hover .meow-quiz-dot {
  background: #fff !important;
  color: #ff7a45 !important;
}

/* 课程包/卡包卡片不显示「随堂测试」「去做作业」；
   这两个入口只在具体课时卡片上出现。 */
.work-card .meow-course-quiz-btn,
.work-card .meow-course-homework-link,
.meow-course-quiz-btn,
.meow-course-homework-link {
  display: none !important;
}
