/* 课程站共用样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue: #1a56db; --blue-light: #2c7be5; --blue-bg: #eef4ff;
  --ink: #111827; --text: #374151; --muted: #6b7280; --faint: #9ca3af;
  --border: #e5e7eb; --bg: #f8f9fa;
  --green: #059669; --green-bg: #ecfdf5;
  --amber: #d97706; --amber-bg: #fffbeb;
  --red: #dc2626; --red-bg: #fef2f2;
}
body {
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.7;
  padding-bottom: 80px;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
/* 首页放宽到 1200，匹配小滴课堂式多列卡片布局 */
body.home .wrap, body.home .topbar .inner { max-width: 1200px; }
a { color: var(--blue); }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar .inner {
  max-width: 960px; margin: 0 auto; padding: 0 24px;
  height: 58px; display: flex; align-items: center; gap: 22px;
}
.logo { font-size: 17px; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.05; }
.logo span { color: var(--blue); }
.logo small {
  display: block; font-size: 8.5px; font-weight: 600; letter-spacing: .18em;
  color: var(--faint); margin-top: 1px;
}
.topbar nav { display: flex; gap: 4px; margin-left: 8px; }
.topbar nav a {
  font-size: 14px; color: var(--muted); text-decoration: none;
  padding: 6px 12px; border-radius: 8px;
}
.topbar nav a:hover { color: var(--blue); background: var(--blue-bg); }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.uchip {
  display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink);
}
.uchip .avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue);
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.vipbadge {
  font-size: 11px; padding: 2px 9px; border-radius: 99px; font-weight: 600;
  background: linear-gradient(90deg, #f59e0b, #d97706); color: #fff;
}
.vipbadge.off { background: #f3f4f6; color: var(--faint); font-weight: 500; }
.tlink { font-size: 14px; text-decoration: none; color: var(--muted); }
.tlink:hover { color: var(--blue); }
.tbtn {
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  padding: 7px 16px; border-radius: 8px; background: var(--blue); color: #fff;
}
.tbtn.ghost { background: #fff; color: var(--blue); border: 1px solid #c7dbff; }

/* 按钮 */
.btn {
  display: inline-block; border: none; cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 600;
  padding: 10px 22px; border-radius: 9px; text-decoration: none;
  background: var(--blue); color: #fff; transition: all .15s;
}
.btn:hover { background: #1741a6; }
.btn.ghost { background: #fff; color: var(--blue); border: 1px solid #c7dbff; }
.btn.ghost:hover { background: var(--blue-bg); }
.btn.sm { font-size: 12.5px; padding: 5px 12px; border-radius: 7px; }
.btn.danger { background: #fff; color: var(--red); border: 1px solid #fecaca; }
.btn.danger:hover { background: var(--red-bg); }
.btn.warn { background: #fff; color: var(--amber); border: 1px solid #fde68a; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* 卡片与版块 */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 32px;
}
.eyebrow { font-size: 12px; letter-spacing: .18em; color: var(--blue); font-weight: 700; margin-bottom: 12px; }
h1 { font-size: 34px; line-height: 1.3; color: var(--ink); font-weight: 700; letter-spacing: -.015em; }
.lede { font-size: 16.5px; color: var(--muted); }

/* 统计格 */
.dash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.stat .k { font-size: 11.5px; letter-spacing: .08em; color: var(--faint); margin-bottom: 6px; }
.stat .v { font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.stat .v small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 3px; }

/* ===== 首页 Hero 海报 Banner（参考小滴课堂：深色底 + 黄字 + 徽章 + 漂浮卡） ===== */
.hero-banner {
  position: relative; margin-top: 22px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(120deg, #0c1030 0%, #1c1650 48%, #3b1d6e 100%);
  padding: 40px 52px 38px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.hb-glow { position: absolute; border-radius: 50%; filter: blur(6px); pointer-events: none; }
.hb-glow1 { width: 300px; height: 300px; right: -60px; top: -120px; background: radial-gradient(circle, rgba(124, 58, 237, .5), transparent 70%); }
.hb-glow2 { width: 260px; height: 260px; left: 30%; bottom: -140px; background: radial-gradient(circle, rgba(59, 130, 246, .35), transparent 70%); }
.hb-dots {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(105deg, transparent 55%, #000 100%);
  mask-image: linear-gradient(105deg, transparent 55%, #000 100%);
}
.hb-left { position: relative; z-index: 2; max-width: 620px; }
.hb-chip {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  color: #ffd54a; border: 1px solid rgba(255, 213, 74, .45); border-radius: 99px;
  padding: 4px 14px; margin-bottom: 18px; background: rgba(255, 213, 74, .08);
}
.hero-banner h1 { font-size: 36px; line-height: 1.25; color: #fff; font-weight: 800; letter-spacing: -.01em; }
.hero-banner h1 em { font-style: normal; color: #ffd54a; text-shadow: 0 0 24px rgba(255, 213, 74, .35); }
.hero-banner h1 .hb-tilde { color: rgba(255, 255, 255, .55); font-weight: 700; margin-left: 4px; }
/* 英文手写体主旨标语 */
.hb-motto {
  margin-top: 10px; font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 15.5px; font-style: italic; color: rgba(255, 213, 74, .88);
  letter-spacing: .02em; transform: rotate(-1.2deg); transform-origin: left center;
  text-shadow: 0 0 18px rgba(255, 213, 74, .25);
}
.hb-sub { margin-top: 12px; font-size: 15px; color: rgba(255,255,255,.78); }
.hb-points { list-style: none; margin: 18px 0 0; }
.hb-points li { font-size: 13.5px; color: rgba(255,255,255,.85); margin-bottom: 8px; padding-left: 18px; position: relative; }
.hb-points li::before { content: "▸"; position: absolute; left: 0; color: #ffd54a; font-weight: 700; }
.hb-points b { color: #fff; font-weight: 700; }
.hb-cta { display: flex; gap: 12px; margin-top: 24px; align-items: center; }
/* 伙伴头像组 */
.hb-crew { display: flex; align-items: center; gap: 10px; margin-left: 10px; }
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px; border-radius: 50%; margin-left: -9px;
  border: 2px solid #241c56; display: flex; align-items: center; justify-content: center;
  font-size: 16px; background: linear-gradient(135deg, #4f46e5, #9333ea);
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: linear-gradient(135deg, #e11d48, #f97316); }
.avatars span:nth-child(3) { background: linear-gradient(135deg, #0d9488, #0ea5e9); }
.avatars span:nth-child(4) { background: linear-gradient(135deg, #7c3aed, #db2777); }
.avatars span.you {
  background: linear-gradient(90deg, #ffd54a, #ffb300); color: #4a2c00;
  font-size: 11px; font-weight: 800;
}
.hb-crew .cap { font-size: 11.5px; color: rgba(255,255,255,.75); line-height: 1.4; }
.hb-crew .cap b { color: #fff; font-size: 12.5px; }
/* 学员气泡 */
.hb-bubble {
  position: absolute; z-index: 3; top: 96px; left: -14px;
  background: #fff; color: #374151; font-size: 12px; font-weight: 600;
  padding: 8px 13px; border-radius: 14px 14px 14px 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transform: rotate(-3deg);
}
.hb-bubble::after {
  content: ""; position: absolute; left: 12px; bottom: -6px;
  border: 6px solid transparent; border-top-color: #fff; border-left-color: #fff;
  border-bottom-width: 0;
}
.hb-btn {
  display: inline-block; font-size: 15px; font-weight: 700; text-decoration: none;
  padding: 12px 30px; border-radius: 99px; letter-spacing: .02em;
  background: linear-gradient(90deg, #ffd54a, #ffb300); color: #4a2c00;
  box-shadow: 0 6px 18px -4px rgba(255, 179, 0, .55);
}
.hb-btn:hover { filter: brightness(1.07); }
.hb-btn.ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); box-shadow: none;
}
.hb-btn.ghost:hover { border-color: #fff; }
/* 漂浮迷你课程卡 */
.hb-right { position: relative; z-index: 2; width: 320px; height: 250px; flex-shrink: 0; }
.hb-mini {
  position: absolute; width: 168px; border-radius: 12px; padding: 14px 15px;
  box-shadow: 6px 8px 22px rgba(0, 0, 0, .45); color: #fff;
}
.hb-mini b { display: block; font-size: 16px; font-weight: 800; line-height: 1.3; }
.hb-mini b em { font-style: normal; color: #ffd54a; }
.hb-mini span { display: block; font-size: 11px; margin-top: 5px; color: rgba(255,255,255,.82); }
.hb-mini.m1 { top: 8px; left: 0; background: linear-gradient(135deg, #12275e, #9333ea); transform: rotate(-6deg); }
.hb-mini.m2 { top: 84px; right: 6px; background: linear-gradient(135deg, #b91c1c, #f97316); transform: rotate(5deg); }
.hb-mini.m3 { bottom: -4px; left: 44px; background: linear-gradient(135deg, #047857, #0ea5e9); transform: rotate(-3deg); }
.hb-crown {
  position: absolute; top: -6px; right: 10px; z-index: 3;
  font-size: 12px; font-weight: 700; color: #4a2c00; padding: 5px 13px; border-radius: 99px;
  background: linear-gradient(90deg, #ffd54a, #ffb300); box-shadow: 0 4px 14px rgba(255, 179, 0, .5);
  transform: rotate(4deg);
}

/* ===== 分类 icon 栏 ===== */
.cat-strip {
  display: flex; gap: 4px; align-items: stretch;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 14px; margin-top: 20px; overflow-x: auto;
  scrollbar-width: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-item {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 9px;
  background: transparent; border: 1px solid transparent; border-radius: 11px;
  padding: 7px 9px; cursor: pointer; font-family: inherit; text-align: left;
  transition: all .15s;
}
.cat-item:hover { background: var(--bg); }
.cat-item.on { background: var(--blue-bg); border-color: #c7dbff; }
.cat-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.cat-txt { min-width: 0; }
.cat-txt b {
  display: block; font-size: 13px; color: var(--ink); font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat-item.on .cat-txt b { color: var(--blue); }
.cat-txt small {
  display: block; font-size: 10.5px; color: var(--faint); margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 26px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-top: 40px; padding-bottom: 4px; }
.section-head h2 { font-size: 24px; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
.section-head .sub { font-size: 13.5px; font-weight: 700; color: #ff6d00; }
.course-card {
  background: #fff; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 4px 4px 10px rgba(190, 190, 200, .45);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.course-card:hover {
  transform: translateY(-5px);
  border-color: #c7dbff;
  box-shadow: 6px 10px 24px -6px rgba(26, 86, 219, .28);
}
/* 海报区 */
.poster {
  position: relative; height: 168px; overflow: hidden; display: block;
  background: linear-gradient(135deg, var(--g1, #1e3a8a), var(--g2, #7c3aed) 62%, var(--g3, #a855f7));
  display: flex; align-items: flex-end; padding: 14px 16px;
  text-decoration: none;
}
.poster::before {
  content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); top: -64px; right: -42px;
}
.poster::after {
  content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%;
  background: rgba(255, 255, 255, .09); bottom: -52px; left: -30px;
}
.poster .streak {
  position: absolute; top: -30px; left: 38%; width: 40px; height: 240px;
  background: linear-gradient(rgba(255,255,255,.14), rgba(255,255,255,0));
  transform: rotate(24deg); border-radius: 99px;
}
.poster-word {
  position: relative; z-index: 1; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.28);
}
.poster-word b { display: block; font-size: 24px; font-weight: 800; letter-spacing: .02em; line-height: 1.15; white-space: nowrap; }
.poster-word b em { font-style: normal; color: #ffd54a; }
.poster-word small { display: block; margin-top: 5px; font-size: 11.5px; color: rgba(255,255,255,.88); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-badge {
  position: absolute; z-index: 2; top: 10px; right: 0;
  font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .05em;
  padding: 3px 11px 3px 13px; border-radius: 99px 0 0 99px;
  background: linear-gradient(90deg, #ff9800, #f4511e);
  box-shadow: 0 2px 8px rgba(244, 81, 30, .4);
}
.poster-count {
  position: absolute; z-index: 2; top: 10px; left: 12px;
  font-size: 11px; font-weight: 600; color: #fff;
  padding: 2px 9px; border-radius: 99px;
  background: rgba(0, 0, 0, .28); backdrop-filter: blur(4px);
}
/* 卡片正文：紧凑，同小滴课堂 109px 量级 */
.course-card .card-body { padding: 11px 13px 13px; display: flex; flex-direction: column; flex: 1; }
.course-card h3 {
  font-size: 14.5px; color: var(--ink); line-height: 1.4; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.card-meta { display: flex; gap: 10px; margin: 9px 0 10px; font-size: 11.5px; color: var(--faint); }
.card-meta b { color: var(--ink); font-size: 12.5px; font-weight: 700; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px dashed var(--border); padding-top: 10px; margin-top: auto;
}
.free-tag { font-size: 13.5px; font-weight: 800; color: #f4511e; letter-spacing: .01em; }
.free-tag small { font-size: 10.5px; color: var(--faint); font-weight: 400; margin-left: 4px; }
.card-btn {
  font-size: 12.5px; font-weight: 600; text-decoration: none; color: #fff;
  padding: 7px 15px; border-radius: 99px;
  background: linear-gradient(90deg, var(--blue-light), var(--blue));
  box-shadow: 0 3px 10px -2px rgba(26, 86, 219, .45);
  transition: filter .15s;
}
.card-btn:hover { filter: brightness(1.1); }

/* 课时列表 */
.chapter { margin-bottom: 36px; }
.ch-head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--ink);
}
.ch-no { font-size: 12.5px; font-weight: 700; color: #fff; background: var(--ink); padding: 3px 10px; border-radius: 5px; }
.ch-head h2 { font-size: 20px; color: var(--ink); font-weight: 700; }
.ch-meta { margin-left: auto; font-size: 13px; color: var(--faint); }
.list { display: flex; flex-direction: column; gap: 2px; }
.item {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 15px; border-radius: 9px;
  text-decoration: none; color: inherit;
  border: 1px solid transparent; transition: all .15s;
  cursor: pointer; font-size: 15px;
}
.item:hover { background: #fff; border-color: var(--border); }
.item .no {
  font-size: 12px; font-weight: 700; color: var(--faint);
  width: 42px; flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.item .title { flex: 1; color: var(--text); }
.item .dur { font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.item .badge { font-size: 11px; padding: 2px 9px; border-radius: 99px; font-weight: 600; flex-shrink: 0; }
.badge.have { background: var(--green-bg); color: var(--green); }
.badge.lock { background: var(--amber-bg); color: var(--amber); cursor: pointer; }
.badge.off { background: #f3f4f6; color: var(--faint); }
.item.locked { opacity: .8; }
.item.locked:hover { border-color: #fde68a; }
a.item:hover { border-color: #c7dbff; box-shadow: 0 2px 12px -6px rgba(26,86,219,.3); }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 12px; letter-spacing: .06em; color: var(--faint);
  padding: 10px 12px; border-bottom: 2px solid var(--border); white-space: nowrap;
}
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: #fafbfc; }
.rolebadge { font-size: 11px; padding: 2px 9px; border-radius: 99px; font-weight: 600; }
.rolebadge.admin { background: #ede9fe; color: #7c3aed; }
.rolebadge.user { background: #f3f4f6; color: var(--muted); }
.vipstate { font-size: 12.5px; }
.vipstate.on { color: var(--green); font-weight: 600; }
.vipstate.off { color: var(--faint); }
.rowacts { display: flex; flex-wrap: wrap; gap: 6px; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(17,24,39,.45); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 16px; padding: 32px 34px;
  width: 100%; max-width: 460px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.35);
}
.modal h3 { font-size: 19px; color: var(--ink); margin-bottom: 12px; }
.modal p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.modal .opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.modal .opts button {
  font-family: inherit; font-size: 13.5px; padding: 8px 14px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text);
}
.modal .opts button:hover { border-color: var(--blue); color: var(--blue); }
.modal .opts button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.modal input[type=date], .modal input[type=password], .modal input[type=text] {
  font-family: inherit; font-size: 14px; width: 100%;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; margin-top: 8px;
}
.modal .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* 提示 */
.flash { padding: 10px 14px; border-radius: 9px; font-size: 13.5px; margin-top: 14px; display: none; }
.flash.err { background: var(--red-bg); color: var(--red); display: block; }
.flash.ok { background: var(--green-bg); color: var(--green); display: block; }

/* 表单 */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; margin-bottom: 7px; }
.field input {
  font-family: inherit; font-size: 15px; width: 100%;
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 9px;
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.12); }

footer { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13px; color: var(--faint); text-align: center; }

@media (max-width: 760px) {
  .dash, .course-grid { grid-template-columns: 1fr; }
  h1 { font-size: 26px; }
  .topbar nav { display: none; }
}


/* 课后自测 quiz */
.quiz-box { background:#fff; border:1px solid var(--border); border-radius:14px; padding:28px 32px; margin-top:24px; }
.quiz-head { display:flex; align-items:baseline; gap:12px; margin-bottom:14px; }
.quiz-head h2 { font-size:19px; color:var(--ink); }
.quiz-meta { font-size:12.5px; color:var(--faint); }
.quiz-q { padding:14px 0; border-bottom:1px solid var(--border); }
.quiz-q:last-child { border-bottom:none; }
.quiz-q-title { font-size:14.5px; color:var(--ink); font-weight:600; margin-bottom:10px; line-height:1.6; }
.quiz-opts { display:flex; flex-direction:column; gap:7px; }
.quiz-opt { display:flex; gap:8px; align-items:flex-start; font-size:13.5px; color:var(--text); cursor:pointer; padding:7px 11px; border:1px solid var(--border); border-radius:8px; transition:all .12s; }
.quiz-opt:hover { border-color:#c7dbff; background:var(--blue-bg); }
.quiz-opt input { margin-top:3px; }
.quiz-q.right .quiz-q-title { color:var(--green); }
.quiz-q.wrong .quiz-q-title { color:var(--red); }
.quiz-exp { margin-top:10px; font-size:13px; color:var(--muted); background:var(--bg); border-radius:8px; padding:10px 13px; line-height:1.8; }
.quiz-actions { display:flex; align-items:center; gap:14px; margin-top:18px; }
.quiz-hint { font-size:12px; color:var(--faint); }
.quiz-result { margin-top:12px; font-size:16px; font-weight:700; color:var(--blue); }

/* 错题本 */
.weak-tags { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.weak-tag { font-size:12.5px; padding:5px 13px; border-radius:99px; background:var(--amber-bg); color:#92400e; border:1px solid #fde68a; font-weight:600; }
.weak-tag b { font-size:13px; }
.weak-entry { background:#fff; border:1px solid var(--border); border-radius:12px; padding:18px 22px; margin-bottom:14px; }
.weak-entry .wq { font-size:14.5px; color:var(--ink); font-weight:600; line-height:1.7; }
.weak-entry .wmeta { font-size:12px; color:var(--faint); margin-top:6px; display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.weak-entry .wexp { font-size:13px; color:var(--muted); background:var(--bg); border-radius:8px; padding:10px 13px; margin-top:10px; line-height:1.8; }


/* 课程讨论区 */
.disc-box { background:#fff; border:1px solid var(--border); border-radius:14px; padding:28px 32px; margin-top:24px; }
.disc-new textarea {
  font-family:inherit; font-size:14px; width:100%; min-height:74px; resize:vertical;
  padding:11px 14px; border:1px solid var(--border); border-radius:10px; line-height:1.7;
}
.disc-new textarea:focus { outline:none; border-color:var(--blue); }
.disc-new-foot { display:flex; justify-content:space-between; align-items:center; margin-top:10px; }
.disc-item { display:flex; gap:12px; padding:16px 0; border-bottom:1px solid var(--border); }
.disc-item:last-child { border-bottom:none; }
.disc-avatar {
  width:36px; height:36px; border-radius:50%; flex-shrink:0;
  background:linear-gradient(135deg,#4f46e5,#9333ea); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:700;
}
.disc-body { flex:1; min-width:0; }
.disc-head { display:flex; align-items:baseline; gap:10px; }
.disc-head b { font-size:13.5px; color:var(--ink); }
.disc-to { font-size:11.5px; color:var(--faint); }
.disc-time { font-size:11.5px; color:var(--faint); }
.disc-del { font-size:11.5px; color:var(--faint); cursor:pointer; }
.disc-del:hover { color:var(--red); }
.disc-content { font-size:14px; color:var(--text); line-height:1.8; margin-top:4px; white-space:pre-wrap; word-break:break-word; }
.disc-actions { margin-top:8px; }
.disc-reply-btn { font-size:12px; color:var(--blue); cursor:pointer; font-weight:600; }
.disc-reply { display:flex; gap:10px; padding:12px 0 2px; }
.disc-reply .disc-avatar { width:28px; height:28px; font-size:12px; }
.disc-reply .disc-content { font-size:13px; }
.disc-reply-box { margin:10px 0 4px; }
.disc-reply-box textarea {
  font-family:inherit; font-size:13px; width:100%; min-height:56px; resize:vertical;
  padding:9px 12px; border:1px solid var(--border); border-radius:9px;
}
.disc-reply-box button { margin-top:8px; }
.disc-empty { color:var(--faint); font-size:13.5px; text-align:center; padding:20px 0; }

/* 社区页 */
.cm-item { background:#fff; border:1px solid var(--border); border-radius:12px; padding:16px 20px; margin-bottom:12px; display:flex; gap:12px; align-items:flex-start; }
.cm-item:hover { border-color:#c7dbff; }
.cm-kind { font-size:11px; padding:2px 9px; border-radius:99px; font-weight:600; flex-shrink:0; background:var(--blue-bg); color:var(--blue); }
.cm-kind.reply { background:var(--green-bg); color:var(--green); }
.cm-body { flex:1; min-width:0; }
.cm-content { font-size:14px; color:var(--text); line-height:1.7; margin-top:4px; word-break:break-word; }
.cm-meta { font-size:12px; color:var(--faint); margin-top:6px; display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.cm-meta a { font-weight:600; }
