:root {
  color-scheme: dark;
  font-family: Inter, 'PingFang SC', 'Noto Sans SC', system-ui, sans-serif;
  color: #e6edf7;
  background: #0b0e14;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #85e8d0; outline-offset: 6px; }
header, main, footer { max-width: 1100px; margin: auto; }
header { height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #232c3a; }
.brand { font-size: 15px; font-weight: 600; letter-spacing: -.3px; }
.brand span { color: #7e90a9; font-weight: 400; font-size: 12px; }
.back { font-size: 12px; color: #9aa8bc; }
.list-heading { padding: 30px 0 22px; display: flex; align-items: center; justify-content: space-between; }
.list-heading h1 { font-size: 22px; line-height: 1.4; font-weight: 550; margin: 0; }
.list-heading span { color: #8190a7; font-size: 11px; }
.lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; margin-bottom: 48px; }
.lesson-card { display: block; min-width: 0; }
.cover { overflow: hidden; border-radius: 8px; border: 1px solid #253044; background: #0a0f18; aspect-ratio: 16 / 9; transition: border-color .15s; }
.lesson-card:hover .cover { border-color: #607783; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font: 10px/1.7 ui-monospace, monospace; color: #8393ab; margin: 12px 0 7px; }
.lesson-card h2 { font-size: 17px; line-height: 1.5; font-weight: 550; letter-spacing: -.3px; margin: 0 0 6px; }
.lesson-card p { font-size: 10px; line-height: 1.65; color: #9ba9bc; opacity: .8; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
footer { border-top: 1px solid #232c3a; padding-top: 20px; padding-bottom: 28px; display: flex; justify-content: space-between; color: #7d8ba1; font-size: 11px; }
.links { display: flex; gap: 20px; }
@media (min-width: 700px) and (max-width: 999px) { .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 699px) {
  header { height: 58px; }
  .list-heading { padding: 24px 0 18px; }
  .list-heading h1 { font-size: 20px; }
  .lesson-grid { grid-template-columns: 1fr; gap: 26px; }
  .cover { aspect-ratio: 4 / 3; }
  .lesson-card h2 { font-size: 16px; }
  footer { gap: 20px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .cover { transition: none; } }

/* 课程列表：去掉页头标题后补上间距；卡片标题单行省略 */
.lesson-grid { padding-top: 48px; }
.lesson-card h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
