/* =========================================================
   看认知 · Design System
   Brand: 理性 / 思考 / 成长感 · 冷静靛蓝主色
   WCAG AA 对比度 · 移动端优先 · 暗色模式内置
   ========================================================= */

:root {
  /* ---- Color · Brand (Indigo) ---- */
  --c-primary-50: #EEF2FF;
  --c-primary-100: #E0E7FF;
  --c-primary-200: #C7D2FE;
  --c-primary-400: #818CF8;
  --c-primary-500: #6366F1;
  --c-primary-600: #4F46E5;
  --c-primary-700: #4338CA;
  --c-primary-800: #3730A3;
  --c-primary-900: #312E81;

  /* ---- Color · Accent (Teal / Growth) ---- */
  --c-accent-500: #0D9488;
  --c-accent-600: #0B7E74;
  --c-accent-50: #F0FDFA;

  /* ---- Color · Neutrals ---- */
  --c-bg: #F7F8FB;
  --c-surface: #FFFFFF;
  --c-surface-2: #F1F5F9;
  --c-line: #E6E9F0;
  --c-line-strong: #D2D8E4;

  --c-ink: #0F172A;        /* headings */
  --c-body: #334155;       /* body text */
  --c-muted: #64748B;      /* secondary */
  --c-faint: #94A3B8;      /* hints */

  /* ---- Color · Semantic ---- */
  --c-success: #059669;
  --c-success-bg: #ECFDF5;
  --c-warning: #B45309;
  --c-warning-bg: #FFFBEB;
  --c-error: #DC2626;
  --c-error-bg: #FEF2F2;
  --c-info: #2563EB;
  --c-info-bg: #EFF6FF;

  /* ---- Typography ---- */
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 26px;
  --fs-3xl: 32px;
  --fs-4xl: 40px;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.25;
  --lh-normal: 1.55;
  --lh-relaxed: 1.7;

  /* ---- Spacing (4px base / 8pt scale) ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* ---- Radius ---- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 999px;

  /* ---- Shadow ---- */
  --sh-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
  --sh-md: 0 4px 12px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.04);
  --sh-lg: 0 12px 32px rgba(15, 23, 42, 0.10), 0 4px 8px rgba(15, 23, 42, 0.05);

  /* ---- Transition ---- */
  --t-fast: 140ms ease;
  --t-normal: 240ms ease;
  --t-slow: 400ms ease;

  /* ---- Layout ---- */
  --container: 1080px;
  --sidebar-w: 248px;
  --topbar-h: 64px;
}

[data-theme="dark"] {
  --c-bg: #0B1020;
  --c-surface: #141B2E;
  --c-surface-2: #1C2438;
  --c-line: #283047;
  --c-line-strong: #36415C;

  --c-ink: #F1F5F9;
  --c-body: #CBD5E1;
  --c-muted: #94A3B8;
  --c-faint: #64748B;

  --c-primary-50: #1E1B4B;
  --c-primary-100: #312E81;
  --c-primary-400: #A5B4FC;
  --c-primary-500: #818CF8;
  --c-primary-600: #6366F1;

  --c-success-bg: #052E1F;
  --c-warning-bg: #2A1F06;
  --c-error-bg: #2A0E0E;
  --c-info-bg: #0F1F3D;

  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --sh-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   Base / Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--c-ink); line-height: var(--lh-tight); font-weight: var(--fw-semibold); }
h1 { font-size: var(--fs-3xl); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-2xl); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

a { color: var(--c-primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }
button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--c-primary-500);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
}
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.center { display: flex; align-items: center; justify-content: center; }
.wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }

.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.muted { color: var(--c-muted); }
.faint { color: var(--c-faint); }
.bold { font-weight: var(--fw-semibold); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-center { text-align: center; }
.full { width: 100%; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  line-height: 1;
  padding: 0 var(--sp-5);
  height: 44px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  user-select: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

.btn--primary { background: var(--c-primary-600); color: #fff; }
.btn--primary:hover { background: var(--c-primary-700); box-shadow: var(--sh-md); }

.btn--secondary { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line-strong); }
.btn--secondary:hover { background: var(--c-surface-2); }

.btn--ghost { background: transparent; color: var(--c-primary-600); }
.btn--ghost:hover { background: var(--c-primary-50); }

.btn--danger { background: var(--c-error); color: #fff; }
.btn--danger:hover { background: #B91C1C; }

.btn--success { background: var(--c-success); color: #fff; }
.btn--success:hover { background: #047857; }

.btn--sm { height: 36px; padding: 0 var(--sp-4); font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn--lg { height: 52px; padding: 0 var(--sp-8); font-size: var(--fs-md); }
.btn--block { width: 100%; }

.btn .ico { width: 18px; height: 18px; flex: none; }

/* =========================================================
   Form fields
   ========================================================= */
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.label { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--c-ink); }
.hint { font-size: var(--fs-xs); color: var(--c-muted); }
.input, .select, .textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  padding: 0 var(--sp-4);
  height: 46px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { height: auto; padding: var(--sp-3) var(--sp-4); line-height: var(--lh-normal); resize: vertical; min-height: 96px; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--c-primary-500);
  box-shadow: 0 0 0 3px var(--c-primary-100);
}
.input::placeholder, .textarea::placeholder { color: var(--c-faint); }
.input:disabled { background: var(--c-surface-2); color: var(--c-muted); }
.field-error .input { border-color: var(--c-error); }
.field-error .hint { color: var(--c-error); }

/* =========================================================
   Card
   ========================================================= */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: box-shadow var(--t-normal), transform var(--t-normal), border-color var(--t-fast);
}
.card--hover:hover { box-shadow: var(--sh-md); transform: translateY(-2px); border-color: var(--c-line-strong); }
.card__header { padding: var(--sp-5) var(--sp-5) 0; }
.card__body { padding: var(--sp-5); }
.card__footer { padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--c-line); }

/* =========================================================
   Tags / Badges
   ========================================================= */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-xs); font-weight: var(--fw-medium);
  padding: 3px 10px; border-radius: var(--r-full);
  background: var(--c-primary-50); color: var(--c-primary-700);
}
.tag--teal { background: var(--c-accent-50); color: var(--c-accent-600); }
.tag--neutral { background: var(--c-surface-2); color: var(--c-muted); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-xs); font-weight: var(--fw-medium);
  padding: 3px 10px; border-radius: var(--r-full);
  line-height: 1.4;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--pending { background: var(--c-warning-bg); color: var(--c-warning); }
.badge--approved { background: var(--c-success-bg); color: var(--c-success); }
.badge--active { background: var(--c-info-bg); color: var(--c-info); }
.badge--rejected { background: var(--c-error-bg); color: var(--c-error); }
.badge--muted { background: var(--c-surface-2); color: var(--c-muted); }

/* =========================================================
   Progress
   ========================================================= */
.progress { width: 100%; height: 8px; background: var(--c-surface-2); border-radius: var(--r-full); overflow: hidden; }
.progress__bar { height: 100%; background: linear-gradient(90deg, var(--c-primary-500), var(--c-primary-600)); border-radius: var(--r-full); transition: width var(--t-slow); }
[data-theme="dark"] .progress__bar { background: var(--c-primary-500); }
.progress--thin { height: 5px; }

/* =========================================================
   Avatar
   ========================================================= */
.avatar {
  width: 40px; height: 40px; border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-primary-100); color: var(--c-primary-700);
  font-weight: var(--fw-semibold); font-size: var(--fs-sm); flex: none;
  object-fit: cover;
}
.avatar--lg { width: 56px; height: 56px; font-size: var(--fs-lg); }
.avatar--sm { width: 32px; height: 32px; font-size: var(--fs-xs); }

/* =========================================================
   App shell (sidebar + topbar)
   ========================================================= */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-h);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-6);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: var(--sp-3); font-weight: var(--fw-bold); color: var(--c-ink); font-size: var(--fs-lg); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--c-primary-500), var(--c-primary-700));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold); font-size: var(--fs-base);
}
[data-theme="dark"] .brand__mark { background: linear-gradient(135deg, var(--c-primary-400), var(--c-primary-600)); }

.shell { display: flex; flex: 1; }
.sidebar {
  width: var(--sidebar-w);
  flex: none;
  background: var(--c-surface);
  border-right: 1px solid var(--c-line);
  padding: var(--sp-5) var(--sp-4);
  position: sticky; top: var(--topbar-h);
  align-self: flex-start;
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
}
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__label { font-size: var(--fs-xs); color: var(--c-faint); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: 0.06em; padding: var(--sp-4) var(--sp-3) var(--sp-2); }
.nav__item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3);
  border-radius: var(--r-md);
  color: var(--c-muted); font-weight: var(--fw-medium); font-size: var(--fs-base);
  cursor: pointer; border: none; background: none; width: 100%; text-align: left;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__item:hover { background: var(--c-surface-2); color: var(--c-ink); text-decoration: none; }
.nav__item.is-active { background: var(--c-primary-50); color: var(--c-primary-700); font-weight: var(--fw-semibold); }
.nav__item .ico { width: 20px; height: 20px; flex: none; }
.nav__item .count { margin-left: auto; font-size: var(--fs-xs); background: var(--c-surface-2); color: var(--c-muted); padding: 1px 8px; border-radius: var(--r-full); }

.content { flex: 1; padding: var(--sp-8) var(--sp-6); min-width: 0; }
@media (max-width: 860px) {
  .sidebar { display: none; }
  .content { padding: var(--sp-5) var(--sp-4); }
}

/* =========================================================
   Page header
   ========================================================= */
.page-head { margin-bottom: var(--sp-6); }
.page-head__title { font-size: var(--fs-2xl); letter-spacing: -0.01em; }
.page-head__sub { color: var(--c-muted); margin-top: var(--sp-2); font-size: var(--fs-base); }

/* =========================================================
   Stat card
   ========================================================= */
.stat {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-sm);
}
.stat__label { font-size: var(--fs-sm); color: var(--c-muted); display: flex; align-items: center; gap: var(--sp-2); }
.stat__value { font-size: var(--fs-3xl); font-weight: var(--fw-bold); color: var(--c-ink); margin-top: var(--sp-2); letter-spacing: -0.02em; }
.stat__delta { font-size: var(--fs-sm); margin-top: var(--sp-1); }
.stat__delta.up { color: var(--c-success); }
.stat__delta.down { color: var(--c-error); }
.stat__icon { width: 38px; height: 38px; border-radius: var(--r-md); background: var(--c-primary-50); color: var(--c-primary-600); display: inline-flex; align-items: center; justify-content: center; }

/* =========================================================
   Media / video card
   ========================================================= */
.media-card { display: flex; flex-direction: column; }
.media-card__thumb {
  aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--c-surface-2);
  position: relative;
}
.media-card__play {
  position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(15,23,42,0.55); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.media-card__duration { position: absolute; right: 10px; bottom: 10px; background: rgba(15,23,42,0.78); color: #fff; font-size: var(--fs-xs); padding: 2px 8px; border-radius: var(--r-sm); }
.media-card__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.media-card__title { font-size: var(--fs-md); font-weight: var(--fw-semibold); color: var(--c-ink); line-height: var(--lh-tight); }
.media-card__meta { display: flex; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--c-muted); flex-wrap: wrap; }

/* video player placeholder */
.player {
  aspect-ratio: 16 / 9; width: 100%; background: #0B1020; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center; color: #fff; position: relative; overflow: hidden;
}
.player__center { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); color: rgba(255,255,255,0.85); }
.player__btn { width: 72px; height: 72px; border-radius: 50%; background: var(--c-primary-600); color: #fff; display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; }
.player__bar { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-3) var(--sp-4); background: linear-gradient(transparent, rgba(0,0,0,0.6)); display: flex; align-items: center; gap: var(--sp-3); }
.player__track { flex: 1; height: 5px; background: rgba(255,255,255,0.25); border-radius: var(--r-full); overflow: hidden; }
.player__track > span { display: block; height: 100%; background: var(--c-primary-400); width: 0; }
.player--real { padding: 0; }
.player--real .player__bar { display: none; }
.player__video { width: 100%; height: 100%; display: block; background: #000; border-radius: var(--r-lg); object-fit: contain; }

/* =========================================================
   List / table
   ========================================================= */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4); border-bottom: 1px solid var(--c-line);
}
.list-item:last-child { border-bottom: none; }
.list-item__main { flex: 1; min-width: 0; }
.list-item__title { font-weight: var(--fw-medium); color: var(--c-ink); }
.list-item__sub { font-size: var(--fs-sm); color: var(--c-muted); margin-top: 2px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--c-line); font-size: var(--fs-sm); }
.table th { color: var(--c-muted); font-weight: var(--fw-semibold); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; }
.table td { color: var(--c-body); }
.table tbody tr:hover { background: var(--c-surface-2); }

/* =========================================================
   Tabs / segmented
   ========================================================= */
.tabs { display: inline-flex; background: var(--c-surface-2); padding: 4px; border-radius: var(--r-md); gap: 2px; }
.tabs__btn {
  border: none; background: none; cursor: pointer; font-family: inherit;
  font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--c-muted);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm); transition: all var(--t-fast);
}
.tabs__btn.is-active { background: var(--c-surface); color: var(--c-ink); box-shadow: var(--sh-sm); }

/* =========================================================
   Comments
   ========================================================= */
.comment { display: flex; gap: var(--sp-3); padding: var(--sp-4) 0; border-bottom: 1px solid var(--c-line); }
.comment:last-child { border-bottom: none; }
.comment__body { flex: 1; min-width: 0; }
.comment__head { display: flex; align-items: center; gap: var(--sp-2); }
.comment__name { font-weight: var(--fw-semibold); color: var(--c-ink); font-size: var(--fs-sm); }
.comment__time { font-size: var(--fs-xs); color: var(--c-faint); }
.comment__text { margin-top: var(--sp-1); color: var(--c-body); font-size: var(--fs-base); line-height: var(--lh-normal); }
.comment__actions { margin-top: var(--sp-2); display: flex; gap: var(--sp-4); font-size: var(--fs-xs); color: var(--c-muted); }
.comment__actions button { background: none; border: none; cursor: pointer; color: inherit; font-size: inherit; font-family: inherit; }
.comment__actions button:hover { color: var(--c-primary-600); }

.composer { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4); background: var(--c-surface-2); border-radius: var(--r-lg); }
.composer .input { background: var(--c-surface); }

/* =========================================================
   Modal
   ========================================================= */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5);
  display: none; align-items: center; justify-content: center; padding: var(--sp-4); z-index: 50;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  background: var(--c-surface); border-radius: var(--r-xl); width: 100%; max-width: 520px;
  box-shadow: var(--sh-lg); max-height: 90vh; overflow: auto;
}
.modal__head { padding: var(--sp-5) var(--sp-5) 0; display: flex; align-items: center; justify-content: space-between; }
.modal__title { font-size: var(--fs-xl); }
.modal__body { padding: var(--sp-5); }
.modal__close { background: none; border: none; cursor: pointer; color: var(--c-muted); width: 36px; height: 36px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; }
.modal__close:hover { background: var(--c-surface-2); color: var(--c-ink); }
.modal__foot { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; gap: var(--sp-3); justify-content: flex-end; }

/* =========================================================
   Toast
   ========================================================= */
.toast-wrap { position: fixed; bottom: var(--sp-6); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: var(--sp-2); align-items: center; }
.toast {
  background: var(--c-ink); color: #fff; padding: var(--sp-3) var(--sp-5); border-radius: var(--r-md);
  font-size: var(--fs-sm); box-shadow: var(--sh-lg); display: flex; align-items: center; gap: var(--sp-2);
  animation: toast-in var(--t-normal);
}
.toast--success { background: var(--c-success); }
.toast--error { background: var(--c-error); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   Switch
   ========================================================= */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__slider { position: absolute; inset: 0; background: var(--c-line-strong); border-radius: var(--r-full); transition: var(--t-fast); cursor: pointer; }
.switch__slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: var(--t-fast); box-shadow: var(--sh-sm); }
.switch input:checked + .switch__slider { background: var(--c-primary-600); }
.switch input:checked + .switch__slider::before { transform: translateX(20px); }

/* =========================================================
   Empty state
   ========================================================= */
.empty { text-align: center; padding: var(--sp-12) var(--sp-4); color: var(--c-muted); }
.empty__icon { width: 64px; height: 64px; border-radius: var(--r-lg); background: var(--c-surface-2); display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--sp-4); color: var(--c-faint); }
.empty__title { font-weight: var(--fw-semibold); color: var(--c-ink); font-size: var(--fs-lg); }
.empty__text { margin-top: var(--sp-2); font-size: var(--fs-sm); }

/* =========================================================
   Misc
   ========================================================= */
.divider { height: 1px; background: var(--c-line); border: none; margin: var(--sp-4) 0; }
.pill-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.toolbar { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 200px; }
.search .input { padding-left: 40px; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--c-faint); width: 18px; height: 18px; }

.icon-btn { width: 40px; height: 40px; border-radius: var(--r-md); border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: var(--t-fast); }
.icon-btn:hover { background: var(--c-surface-2); color: var(--c-ink); }

/* auth screen */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; } .auth__aside { display: none; } }
.auth__aside { background: linear-gradient(150deg, var(--c-primary-700), var(--c-primary-900)); color: #fff; padding: var(--sp-12); display: flex; flex-direction: column; justify-content: space-between; }
[data-theme="dark"] .auth__aside { background: linear-gradient(150deg, #1E1B4B, #0B1020); }
.auth__main { display: flex; align-items: center; justify-content: center; padding: var(--sp-8); }
.auth__card { width: 100%; max-width: 400px; }
.auth__quote { font-size: var(--fs-lg); line-height: var(--lh-relaxed); }

/* learn layout: video + sidebar */
.learn-grid { display: grid; grid-template-columns: 1fr 330px; gap: var(--sp-6); align-items: start; }
@media (max-width: 900px) { .learn-grid { grid-template-columns: 1fr; } }

.review-banner {
  display: flex; align-items: center; gap: var(--sp-4);
  background: var(--c-warning-bg); border: 1px solid #FDE68A; color: var(--c-warning);
  padding: var(--sp-5); border-radius: var(--r-lg); margin-bottom: var(--sp-5);
}
[data-theme="dark"] .review-banner { border-color: #5b4a16; }
.review-banner .ico { flex: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* 课程封面上传（后台弹窗） */
.cover-upload { display: flex; gap: var(--sp-3); align-items: stretch; }
.cover-preview {
  width: 96px; height: 64px; flex: none; border-radius: var(--r-md);
  border: 1px solid var(--c-border); background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cover-preview__ph { font-size: 11px; color: #fff; opacity: .85; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.cover-actions { display: flex; flex-direction: column; gap: var(--sp-2); justify-content: center; flex: 1; }
.cover-actions .select { width: 100%; }
