/* 飞书妙记首页复刻 —— 深色主题 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #1a1a1a;
  --bg-sidebar: #1f1f21;
  --bg-header: #232325;
  --bg-hover: rgba(255,255,255,.06);
  --bg-input: #2e2f33;
  --bg-card: #26272b;
  --border: rgba(255,255,255,.08);
  --text: #e8e9eb;
  --text-secondary: #a8abb2;
  --text-muted: #7d8087;
  --accent: #3370ff;
  --accent-hover: #4a82ff;
  --highlight: #6ea8ff;
}

html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  display: grid;
  grid-template-columns: 232px 1fr;
  grid-template-rows: 56px 1fr;
  grid-template-areas: "sidebar topbar" "sidebar main";
  overflow: hidden;
}
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* ---------- 左侧导航 ---------- */
.sidebar {
  grid-area: sidebar;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
}
.logo { display: flex; align-items: center; gap: 8px; padding: 4px 8px 16px; text-decoration: none; color: inherit; }
.logo-img { width: 26px; height: 26px; object-fit: contain; transform: translateY(-3px); }
.logo-title { font-size: 17px; font-weight: 600; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.nav-item:hover { background: var(--bg-hover); }
.nav-item.active { color: var(--accent); background: rgba(51,112,255,.12); font-weight: 500; }


/* ---------- 顶栏 ---------- */
.topbar {
  grid-area: topbar;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
}
.search-box {
  flex: 1;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 7px 12px;
  color: var(--text-muted);
}
.search-box:focus-within { border-color: var(--accent); }
.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
}
.search-clear { display: none; color: var(--text-muted); border-radius: 50%; }
.search-clear:hover { color: var(--text); }
.search-box.has-text .search-clear { display: block; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.round-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: conic-gradient(#7f3ff5, #3370ff, #14c0ff, #34c724, #ff9f43, #7f3ff5);
  display: inline-block;
}
.icon-btn {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text); }
.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8800, #f54a45);
  color: #fff;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 主区 ---------- */
.main { grid-area: main; overflow-y: auto; padding: 20px 32px; }
.main-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.page-title { font-size: 20px; font-weight: 600; }
.main-actions { display: flex; gap: 10px; }
.btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-default { background: var(--bg-input); border: 1px solid var(--border); color: var(--text); }
.btn-default:hover { background: var(--bg-hover); }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; }
.btn-primary:disabled, .btn-primary.disabled { background: var(--accent); }

.upload-wrap { position: relative; }
.upload-menu {
  position: absolute;
  top: 38px; left: 0;
  background: #2e2f33;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  display: none;
  flex-direction: column;
  min-width: 150px;
  z-index: 20;
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
.upload-menu.show { display: flex; }
.upload-item { padding: 8px 12px; border-radius: 5px; font-size: 13px; text-align: left; color: var(--text); }
.upload-item:hover { background: var(--bg-hover); }

/* ---------- 表头 ---------- */
.table-head {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) 140px 200px 60px;
  align-items: center;
  padding: 6px 12px;
  color: var(--text-muted);
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.th-check { display: flex; align-items: center; }
.th-plain { color: var(--text-muted); }
.th-filter { position: relative; }
.th-sort { position: relative; text-align: left; }
.th-op { text-align: right; }
.head-btn {
  color: var(--text-muted);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 5px;
}
.head-btn:hover { background: var(--bg-hover); color: var(--text); }
.head-btn.active { color: var(--accent); background: rgba(51,112,255,.12); }
.head-menu {
  position: absolute;
  top: 30px; left: 0;
  background: #2e2f33;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  display: none;
  flex-direction: column;
  min-width: 130px;
  z-index: 20;
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
.head-menu.show { display: flex; }
.head-menu button {
  padding: 7px 12px;
  border-radius: 5px;
  font-size: 13px;
  text-align: left;
  color: var(--text);
}
.head-menu button:hover { background: var(--bg-hover); }
.head-menu button.active { color: var(--accent); }

/* ---------- 列表行 ---------- */
.meeting-list { padding-bottom: 40px; }
.meeting-row {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) 140px 200px 60px;
  align-items: center;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  border-radius: 8px;
}
.meeting-row:hover { background: var(--bg-hover); }
.meeting-row.clickable { cursor: pointer; }
.row-file { display: flex; align-items: center; gap: 16px; min-width: 0; }
.row-cover {
  width: 168px;
  height: 94px;
  flex: none;
  border-radius: 6px;
  overflow: hidden;
  background: #2e2f33;
  display: flex;
  align-items: center;
  justify-content: center;
}
.row-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 文字封面（无视频封面时，与原页面的总结/待办/金句卡一致） */
.text-cover {
  width: 100%; height: 100%;
  background: #e8e9ee;
  color: #333;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  line-height: 1.5;
}
.text-cover .tc-name {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  padding: 0 5px;
  font-size: 9px;
  margin-bottom: 4px;
}
.text-cover .tc-content {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.text-cover .tc-hl { color: var(--accent); }
.audio-cover { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #35363b; color: var(--text-muted); }
.row-info { min-width: 0; }
.row-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tag-external {
  font-size: 11px;
  color: #6ea8ff;
  background: rgba(110,168,255,.14);
  border-radius: 4px;
  padding: 0 5px;
  flex: none;
  font-weight: 400;
}
.row-duration { color: var(--text-muted); font-size: 12px; margin-top: 6px; }
.row-owner { color: var(--text-secondary); font-size: 13px; }
.row-time { color: var(--text-secondary); font-size: 13px; }
.row-op { text-align: right; }
.row-more {
  width: 28px; height: 28px;
  border-radius: 6px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.meeting-row:hover .row-more { opacity: 1; }
.row-more:hover { background: var(--bg-input); color: var(--text); }
.list-empty { text-align: center; color: var(--text-muted); padding: 60px 0; }

/* ---------- 搜索结果 ---------- */
.search-result-head {
  font-size: 16px;
  font-weight: 600;
  padding: 6px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.result-item { padding: 18px 4px; border-bottom: 1px solid var(--border); }
.result-item.clickable { cursor: pointer; border-radius: 8px; }
.result-item.clickable:hover { background: var(--bg-hover); }
.result-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.result-meta { color: var(--text-muted); font-size: 13px; margin: 6px 0 4px; }
.result-section { margin-top: 12px; }
.result-section-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.result-quote {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.9;
  padding: 2px 0;
}
.result-quote::before { content: '"'; }
.result-quote::after { content: '"'; }
.result-more { color: var(--text-muted); padding: 2px 0; }
.result-bullet {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
  margin: 4px 0;
}
.result-bullet::before {
  content: '';
  position: absolute;
  left: 4px; top: .7em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}
.kw { color: var(--highlight); }

/* ---------- 复选框 / 底部批量操作条 / 确认弹层 ---------- */
/* 复选框三态：默认隐藏 → 行悬停浮现（深色透明底+灰边，非白底）→ 有选中项时全部常显（表头半选态） */
.row-check, #check-all {
  appearance: none;
  -webkit-appearance: none;
  width: 15px; height: 15px;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  visibility: hidden;
  position: relative;
  flex: none;
  margin: 0;
}
.row-check:hover, #check-all:hover { border-color: var(--accent); }
.row-check:checked, #check-all:checked,
#check-all:indeterminate { background: var(--accent); border-color: var(--accent); }
.row-check:checked::after, #check-all:checked::after {
  content: '';
  position: absolute;
  left: 4.5px; top: 1.5px;
  width: 4px; height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
#check-all:indeterminate::after {
  content: '';
  position: absolute;
  left: 2.5px; top: 6px;
  width: 8px; height: 2px;
  background: #fff;
}
.meeting-row:hover .row-check,
.table-head:hover #check-all,
.list-view.has-selection .row-check,
.list-view.has-selection #check-all { visibility: visible; }
.meeting-row.selected { background: rgba(51,112,255,.18); }
.meeting-row.selected:hover { background: rgba(51,112,255,.24); }
.btn-danger { background: #f54a45; color: #fff; }
.btn-danger:hover { background: #ff6a63; }
.bulk-bar {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #2e2f33;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  z-index: 80;
}
.bulk-count { color: var(--text-secondary); font-size: 13px; }
.confirm-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
}
.confirm-box {
  width: 380px;
  background: #2e2f33;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 12px 48px rgba(0,0,0,.5);
}
.cf-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.cf-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #ff9f43;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.cf-desc { color: var(--text-secondary); font-size: 13px; margin: 12px 0 20px 32px; }
.cf-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- 行尾「...」菜单与提示 ---------- */
.row-menu {
  position: fixed;
  display: none;
  flex-direction: column;
  min-width: 130px;
  background: #2e2f33;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  z-index: 90;
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
.row-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--text);
  text-align: left;
}
.row-menu-item:hover { background: var(--bg-hover); }
.row-menu-item.danger { color: #f54a45; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%) translateY(10px);
  background: #3a3b40;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 上传弹层 ---------- */
.upload-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.upload-modal {
  width: 420px;
  background: #2e2f33;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 12px 48px rgba(0,0,0,.5);
}
.um-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.um-file {
  background: var(--bg-input);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.um-name { font-size: 14px; word-break: break-all; }
.um-meta { color: var(--text-muted); font-size: 12px; margin-top: 6px; }
.um-progress {
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}
.um-progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.um-status { color: var(--text-secondary); font-size: 13px; min-height: 20px; margin-bottom: 8px; }
.um-status.error { color: #f54a45; }
.um-status.ok { color: #34c724; }
.um-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.25); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 亮色主题（data-theme="light"） ---------- */
:root[data-theme="light"] {
  --bg: #f5f6f7;
  --bg-sidebar: #f5f6f7;
  --bg-header: #ffffff;
  --bg-hover: rgba(31,35,41,.06);
  --bg-input: #ffffff;
  --bg-card: #ffffff;
  --border: rgba(31,35,41,.12);
  --text: #1f2329;
  --text-secondary: #646a73;
  --text-muted: #8f959e;
  --accent: #3370ff;
  --accent-hover: #295acc;
  --highlight: #3370ff;
}

/* ---------- 顶栏用户菜单 ---------- */
.user-menu {
  position: fixed; display: none; flex-direction: column;
  min-width: 160px; padding: 6px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.35); z-index: 100;
}
:root[data-theme="light"] .user-menu { box-shadow: 0 6px 24px rgba(31,35,41,.12); }
.user-menu-name { padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.user-menu-item { padding: 8px 12px; border-radius: 5px; font-size: 13px; color: var(--danger, #f54a45); text-align: left; }
.user-menu-item:hover { background: var(--bg-hover); }

/* ---------- 分组下拉多选（上传弹窗用） ---------- */
.gselect { position: relative; display: inline-block; width: 100%; }
.gselect-btn { width: 100%; text-align: left; padding: 7px 28px 7px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-input); font-size: 13px; color: var(--text); position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gselect-btn::after { content: ''; position: absolute; right: 10px; top: 50%; transform: translateY(-50%) rotate(45deg); border: solid var(--text-muted); border-width: 0 1.5px 1.5px 0; padding: 2.5px; margin-top: -2px; }
.gselect-btn.empty { color: var(--text-muted); }
.gselect-btn:hover { border-color: var(--accent); }
.gselect-panel { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; max-height: 220px; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.35); z-index: 60; padding: 4px; }
:root[data-theme="light"] .gselect-panel { box-shadow: 0 4px 16px rgba(31,35,41,.12); }
.gselect-panel.open { display: block; }
.gselect-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 5px; cursor: pointer; font-size: 13px; }
.gselect-row:hover { background: var(--bg-hover); }
.gselect-row input { accent-color: var(--accent); }
.um-group-label { font-size: 13px; color: var(--text-secondary); margin: 12px 0 6px; }

/* ==================== 项目归档：卡片网格 ==================== */
/* 项目是「一次线下活动的文件集合」，不是单文件，用卡片而非表格行 */

.projects-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.proj-search {
  flex: 1;
  max-width: 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: 6px;
}
.proj-search:focus-within { border-color: var(--accent); }
.proj-search svg { color: var(--text-muted); flex: none; }
.proj-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
}
.proj-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
}
/* 月份分组标题：几十个项目时提供时间锚点 */
.proj-month {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.proj-month::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.proj-month:not(:first-child) { margin-top: 28px; }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 14px;
}
.proj-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s, transform .18s;
}
.proj-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.proj-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #101114;
  overflow: hidden;
}
.proj-cover img,
.proj-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 无封面时的占位：不放死黑块 */
.proj-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(51,112,255,.18), rgba(51,112,255,.05));
  color: var(--accent);
}
/* 封面右下角文件数徽标 */
.proj-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  backdrop-filter: blur(2px);
}
.proj-badge svg { flex: none; }

.proj-body { padding: 8px 10px 10px; }
.proj-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  /* 长项目名两行截断，卡片高度保持一致 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.proj-name:hover { color: var(--accent); }
/* 来源群名称：帮助在几十个项目里快速定位 */
.proj-chat {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proj-chat svg { flex: none; opacity: .7; }
.proj-chat span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.proj-meta {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
}
.proj-meta .dot { opacity: .5; }
/* 文件类型统计小标 */
.proj-types {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.proj-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--bg-hover);
  color: var(--text-secondary);
  font-size: 10.5px;
  line-height: 17px;
}

/* 更多操作按钮：悬停浮现 */
.proj-more {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity .18s, background .18s;
}
.proj-card:hover .proj-more { opacity: 1; }
.proj-more:hover { background: rgba(0,0,0,.8); }

/* 卡片内重命名输入框 */
.proj-body .title-edit { width: 100%; font-size: 14px; font-weight: 600; }
/* 亮色主题下封面占位与徽标微调 */
:root[data-theme="light"] .proj-cover { background: #f2f3f5; }
:root[data-theme="light"] .proj-card { box-shadow: 0 1px 3px rgba(31,35,41,.06); }
:root[data-theme="light"] .proj-card:hover { box-shadow: 0 4px 14px rgba(31,35,41,.10); }

/* 窄屏：单列到双列自适应已由 auto-fill 处理，这里只收紧间距 */
@media (max-width: 720px) {
  .proj-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .proj-search { max-width: none; }
}
