/* AI 视频实操合集：10 篇站外实操帖，小卡片列表形态（宽屏 2–3 列，窄屏 1 列）。 */
.aiv-page { padding-bottom: 48px; }
.aiv-intro { padding-top: 6px; }

.aiv-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.aiv-stats span { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.aiv-stats span + span::before { content: "·"; margin-right: 10px; opacity: .45; }
.aiv-stats strong { color: var(--primary); font-size: 14px; }
.aiv-stats #aiv-updated-at { color: var(--text-muted); }
.aiv-stats #aiv-updated-at:empty { display: none; }

.aiv-note {
  margin: 14px 0 16px;
  padding: 10px 14px;
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.aiv-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.aiv-search-wrap {
  display: flex;
  align-items: center;
  flex: 0 1 310px;
  min-width: 190px;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text-muted);
}

.aiv-search-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91, 94, 245, .10); }
.aiv-search-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.aiv-toolbar .chips { flex: 1 1 auto; margin: 0; }
.aiv-tab-count { margin-left: 5px; color: inherit; font-size: 11px; opacity: .68; }

/* 小卡片网格：不用整行列表，卡片按可用宽度自动 2–3 列 */
.aiv-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 312px), 1fr));
  gap: 12px;
  margin-top: 6px;
}

.aiv-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 15px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.aiv-item:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(15, 23, 42, .06); }

.aiv-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.aiv-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.aiv-item.top1 .aiv-rank { background: rgba(232, 160, 32, .16); color: #b4790a; }
.aiv-item.top2 .aiv-rank { background: rgba(142, 154, 174, .20); color: #6d7789; }
.aiv-item.top3 .aiv-rank { background: rgba(192, 122, 69, .16); color: #a2622f; }

.aiv-scene {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.aiv-count { display: inline-flex; align-items: baseline; gap: 7px; margin-left: auto; white-space: nowrap; }
.aiv-bm { display: inline-flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.aiv-bm strong { color: var(--primary); font-size: 15px; font-weight: 750; line-height: 1; }
.aiv-bm span { color: var(--text-muted); font-size: 11px; }
.aiv-delta { color: #10b981; font-size: 11.5px; font-weight: 650; }
.aiv-delta.flat { color: var(--text-muted); font-weight: 500; }

.aiv-title { margin: 0; font-size: 14.5px; line-height: 1.5; }
.aiv-title a { color: var(--text); text-decoration: none; }
.aiv-title a:hover { color: var(--primary); text-decoration: underline; }

.aiv-summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.aiv-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; font-size: 11.5px; color: var(--text-muted); }
.aiv-author { color: var(--text); font-weight: 600; }
.aiv-handle { color: var(--text-muted); }
.aiv-tags { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.aiv-tag { padding: 1px 7px; border: 1px solid var(--border); border-radius: 999px; font-size: 11px; color: var(--text-muted); }

.aiv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px dashed var(--border);
}
.aiv-updated { color: var(--text-muted); font-size: 11px; }
.aiv-goto {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 5px 11px;
  border: 1px solid rgba(91, 94, 245, .35);
  border-radius: 8px;
  background: rgba(91, 94, 245, .08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.aiv-goto:hover { background: rgba(91, 94, 245, .16); }

.aiv-empty { padding: 40px 0; text-align: center; }

.aiv-disclaimer {
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}
.aiv-disclaimer h2 { margin: 0 0 8px; font-size: 15px; }
.aiv-disclaimer p { margin: 6px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.75; }

@media (max-width: 760px) {
  .aiv-toolbar { align-items: stretch; flex-direction: column; }
  .aiv-search-wrap { flex-basis: auto; width: 100%; }
  .aiv-toolbar .chips { width: 100%; }
  .aiv-list { grid-template-columns: 1fr; }
  .aiv-title { font-size: 14px; }
}
