/* ==========================================================
   鲲鹏AI · 课程中心（侧边栏工作台）
   ========================================================== */

.c-center-layout {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 60px);
  background: #f7f8fa;
}

/* ---------- 左侧边栏 ---------- */
.c-center-side {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 24px 0 30px;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.c-center-side::-webkit-scrollbar { width: 6px; }
.c-center-side::-webkit-scrollbar-thumb { background: #dfe3e9; border-radius: 3px; }

.side-group { margin-bottom: 18px; }
.side-group__label {
  font-size: 12px; color: #a5abb4; padding: 0 20px 8px;
  letter-spacing: .5px;
}
.side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; font-size: 14px; color: #4e5969;
  cursor: pointer; position: relative; transition: background .18s, color .18s;
}
.side-item:hover { background: #f5f7fa; color: #1f2329; }
.side-item.is-active {
  background: #f0f6ff; color: var(--blue); font-weight: 600;
}
.side-item.is-active::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--blue); border-radius: 0 2px 2px 0;
}
.side-item__badge {
  margin-left: auto; font-size: 11px;
  background: #ff4d4f; color: #fff;
  padding: 1px 6px; border-radius: 8px;
}

/* 常用工具 */
.side-tools { padding: 0 20px 18px; }
.side-tools__label { font-size: 12px; color: #a5abb4; margin-bottom: 10px; }
.side-tools__list { display: flex; flex-direction: column; gap: 8px; }
.side-tool {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  background: #f7f8fa; cursor: pointer;
  transition: background .18s;
}
.side-tool:hover { background: #eef1f6; }
.side-tool__ico { font-size: 17px; }
.side-tool__name { font-size: 13px; color: #1f2329; font-weight: 600; }
.side-tool__desc { font-size: 11px; color: #a5abb4; margin-top: 1px; }

/* 签到卡 */
.side-card {
  margin: 4px 20px 18px; padding: 18px;
  background: linear-gradient(135deg, #1f76f3, #6a3ff0);
  border-radius: 12px; color: #fff;
}
.side-card__title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.side-card__desc { font-size: 12px; opacity: .85; line-height: 1.7; margin-bottom: 14px; }
.btn--block {
  width: 100%; justify-content: center;
  background: #fff; color: var(--blue); height: 34px;
  border-radius: 17px; font-size: 14px; font-weight: 600;
}
.btn--block:hover { background: #f0f6ff; }

.side-links {
  padding: 0 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.side-links a { font-size: 12px; color: #8a9099; }
.side-links a:hover { color: var(--blue); }

/* ---------- 右侧内容 ---------- */
.c-center-main { flex: 1; min-width: 0; padding: 28px 32px 50px; }

.pane__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.pane__title { font-size: 22px; font-weight: 700; color: #1f2329; margin: 0; }
.pane__sub { font-size: 13px; color: #8a9099; margin: 6px 0 0; }

/* 空态 */
.empty-box {
  background: #fff; border-radius: 12px;
  padding: 80px 30px; text-align: center;
}
.empty-box__ico {
  width: 127px; height: 93px; margin: 0 auto 18px;
  opacity: .9;
}
.empty-box__title { font-size: 16px; color: #4e5969; margin: 0 0 8px; }
.empty-box__desc { font-size: 13px; color: #a5abb4; margin: 0 0 22px; line-height: 1.8; }
.empty-box__acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 我的课程：登录态展示已购课程 */
.mycourse-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mycourse-card {
  background: #fff; border-radius: 12px; padding: 20px;
  cursor: pointer; transition: box-shadow .2s, transform .2s;
  display: flex; gap: 16px;
}
.mycourse-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.07); transform: translateY(-2px); }
.mycourse-card__cover {
  width: 128px; height: 76px; border-radius: 8px;
  flex-shrink: 0; position: relative; overflow: hidden;
}
.mycourse-card__cover span {
  position: absolute; left: 8px; bottom: 8px;
  font-size: 11px; color: #fff; background: rgba(0,0,0,.35);
  padding: 2px 7px; border-radius: 3px;
}
.mycourse-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mycourse-card__name { font-size: 15px; font-weight: 600; color: #1f2329; margin: 0 0 6px; }
.mycourse-card__meta { font-size: 12px; color: #8a9099; margin-bottom: 12px; }
.mycourse-card__foot { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.progress-mini { flex: 1; height: 4px; background: #eef0f3; border-radius: 2px; }
.progress-mini i { display: block; height: 100%; background: var(--blue); border-radius: 2px; }
.progress-num { font-size: 12px; color: var(--blue); font-weight: 600; }

/* 作品展 */
.works-show { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ws-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.ws-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.09); }
.ws-card__thumb { aspect-ratio: 16/10; }
.ws-card__body { padding: 14px 16px 16px; }
.ws-card__title { font-size: 14px; font-weight: 600; color: #1f2329; margin: 0 0 5px; }
.ws-card__meta { font-size: 12px; color: #8a9099; display: flex; justify-content: space-between; }

/* 任务单列表 */
.order-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.order-tabs .filter-chip { background: #fff; border: 1px solid var(--line); }
.order-tabs .filter-chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* 签到 */
.checkin-card {
  background: #fff; border-radius: 12px; padding: 30px; text-align: center;
}
.checkin-card__title { font-size: 20px; font-weight: 700; color: #1f2329; margin: 0 0 8px; }
.checkin-card__desc { font-size: 13px; color: #8a9099; margin: 0 0 26px; }
.checkin-days { display: flex; gap: 12px; justify-content: center; margin-bottom: 26px; flex-wrap: wrap; }
.checkin-day {
  width: 62px; height: 76px; border-radius: 10px;
  background: #f7f8fa; border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.checkin-day b { font-size: 18px; color: #4e5969; }
.checkin-day span { font-size: 11px; color: #a5abb4; }
.checkin-day.is-done {
  background: linear-gradient(135deg, #1f76f3, #6a3ff0); border-color: transparent;
}
.checkin-day.is-done b, .checkin-day.is-done span { color: #fff; }

/* 反馈表单 */
.feedback-card { background: #fff; border-radius: 12px; padding: 30px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 14px; color: #1f2329; margin-bottom: 8px; font-weight: 600; }
.form-row textarea, .form-row input {
  width: 100%; border: 1px solid #dcdee0; border-radius: 8px;
  padding: 12px; font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .2s; background: #fff; color: #1f2329;
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-row textarea:focus, .form-row input:focus { border-color: var(--blue); }
.form-row__tip { font-size: 12px; color: #a5abb4; margin-top: 6px; }

@media (max-width: 1100px) {
  .mycourse-list { grid-template-columns: 1fr; }
  .works-show { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .c-center-layout { flex-direction: column; }
  .c-center-side {
    width: 100%; height: auto; position: static;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .c-center-main { padding: 20px 16px 40px; }
  .works-show { grid-template-columns: 1fr; }
}