/* ============================================================
 * 皮肤系统公共层（themes.css）
 * 1. 🎨 皮肤切换器（导航按钮 + 弹层）样式
 * 2. 皮肤基础约定：每个主题文件 theme-<id>.css 重定义 :root 变量，
 *    并对 style.css 中未变量化的少量硬编码色做定向覆盖。
 * 主题本体：theme-neumorphism / glass / editorial / brutalist / soft /
 * corporate 六款，规范来源 StyleKit（stylekit.top）按收藏排序前六。
 * ============================================================ */

/* ---------- 🎨 皮肤切换器 ---------- */
.theme-trigger {
  border: 1px solid rgba(255, 255, 255, .45); background: transparent;
  color: #fff; border-radius: 8px; font-size: 15px; line-height: 1;
  padding: 6px 9px; cursor: pointer;
  transition: background .15s;
}
.theme-trigger:hover { background: rgba(255, 255, 255, .14); }

.theme-pop {
  position: fixed; top: 58px; right: 18px; z-index: 90;
  width: 264px; background: var(--card); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
  padding: 14px 14px 10px;
}
.theme-pop-title { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.theme-pop-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  border: 1.5px solid var(--line); background: var(--card);
  border-radius: 10px; padding: 10px 10px 8px; cursor: pointer;
  font-family: inherit; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.theme-opt:hover { border-color: var(--muted); }
.theme-opt.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(245, 166, 35, .28);
}
.theme-dots { display: flex; gap: 4px; }
.theme-dots i {
  width: 16px; height: 16px; border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, .12); display: inline-block;
}
.theme-name { font-size: 12.5px; color: var(--text); font-weight: 600; }
.theme-name b {
  font-weight: 400; font-size: 11px; color: var(--muted); margin-left: 4px;
}
.theme-pop-note {
  margin: 10px 2px 2px; font-size: 11.5px; color: var(--muted);
}

/* 皮肤切换弹层宽度内不换行溢出 */
@media (max-width: 480px) {
  .theme-pop { right: 10px; left: 10px; width: auto; }
}

/* ---------- 管理员/学生设置页里的大皮肤卡（/settings） ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.theme-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  border: 2px solid var(--line); border-radius: 14px;
  background: var(--card); padding: 16px; cursor: pointer;
  font-family: inherit; text-align: left; color: var(--text);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.theme-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.theme-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 166, 35, .25); }
.theme-card .tc-dots { display: flex; gap: 6px; }
.theme-card .tc-dots i {
  width: 26px; height: 26px; border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, .14);
}
.theme-card .tc-name { font-size: 16px; font-weight: 700; }
.theme-card .tc-name .badge { margin-left: 6px; }
.theme-card .tc-desc { color: var(--muted); font-size: 13px; }
.theme-card .tc-cur {
  position: absolute; top: 12px; right: 12px;
  font-size: 12px; color: var(--accent-dark); font-weight: 700;
}
