/* vVerse 人物预设库（vDash 画布内 · 全屏 lightbox）：脸型库 / 姿势库 / 服装库 */
.vp-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 14000; display: flex; align-items: stretch; justify-content: center;
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.vp-panel {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  background: #14141b; border: none; border-radius: 0;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: none;
}
.vp-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.vp-brand { font-size: 17px; font-weight: 700; color: #ede9fe; display: flex; align-items: center; gap: 9px; }
.vp-brand i { color: #a78bfa; }
.vp-close { background: rgba(255, 255, 255, 0.08); border: none; color: #d1d5db; width: 36px; height: 36px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.vp-close:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.vp-tabs { display: flex; gap: 10px; padding: 14px 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.vp-tab { background: rgba(255, 255, 255, 0.06); border: 1px solid transparent; color: #d1d5db; font-size: 14px; padding: 9px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all 0.15s; font-family: inherit; }
.vp-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.vp-tab.active { color: #ede9fe; background: rgba(124, 58, 237, 0.18); border-color: rgba(124, 58, 237, 0.55); }
.vp-tab.active i { color: #a78bfa; }
.vp-search-row { padding: 14px 28px 6px; }
.vp-search { width: 100%; box-sizing: border-box; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; color: #fff; font-size: 14px; padding: 11px 15px; outline: none; font-family: inherit; }
.vp-search:focus { border-color: rgba(124, 58, 237, 0.6); background: rgba(255, 255, 255, 0.08); }
.vp-search::placeholder { color: #6b7280; }
.vp-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 28px 10px; }
.vp-filter { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #9ca3af; font-size: 12.5px; padding: 6px 13px; border-radius: 999px; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.vp-filter:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.vp-filter.active { color: #ede9fe; background: rgba(124, 58, 237, 0.18); border-color: rgba(124, 58, 237, 0.55); }
.vp-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px 28px 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); grid-auto-rows: max-content; gap: 14px; align-content: start; scrollbar-width: thin; scrollbar-color: rgba(167, 139, 250, 0.45) rgba(255, 255, 255, 0.06); }
.vp-grid::-webkit-scrollbar { width: 10px; }
.vp-grid::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 5px; }
.vp-grid::-webkit-scrollbar-thumb { background: rgba(167, 139, 250, 0.45); border-radius: 5px; }
.vp-grid::-webkit-scrollbar-thumb:hover { background: rgba(167, 139, 250, 0.7); }
.vp-card { position: relative; background: #0d0d12; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; overflow: hidden; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.vp-card:hover { border-color: rgba(167, 139, 250, 0.6); transform: translateY(-2px); }
.vp-card.selected { border-color: #a78bfa; box-shadow: 0 0 0 1px #a78bfa inset; }
/* 原比例完整显示：宽度撑满列、高度按原比例自适应，不裁切、不变形 */
.vp-thumb { width: 100%; height: auto; display: block; background: #0d0d12; }
.vp-check { position: absolute; top: 8px; right: 8px; color: #a78bfa; font-size: 22px; line-height: 1; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.vp-check i { display: block; }
.vp-cap { padding: 7px 9px; font-size: 11px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-empty { grid-column: 1 / -1; text-align: center; color: #6b7280; padding: 60px 0; font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vp-empty i { font-size: 28px; }
.vp-more { grid-column: 1 / -1; background: rgba(255, 255, 255, 0.05); border: 1px dashed rgba(255, 255, 255, 0.15); color: #9ca3af; padding: 13px; border-radius: 10px; cursor: pointer; font-size: 13px; font-family: inherit; }
.vp-more:hover { color: #fff; border-color: rgba(167, 139, 250, 0.6); }
.vp-footer { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.vp-foot-left, .vp-foot-right { display: flex; align-items: center; gap: 14px; }
.vp-portal-link { color: #a78bfa; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.vp-portal-link:hover { color: #c4b5fd; }
.vp-counter { color: #9ca3af; font-size: 14px; }
.vp-publish { background: linear-gradient(135deg, #7c3aed, #6d28d9); border: none; color: #fff; font-size: 14px; font-weight: 600; padding: 11px 24px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: filter 0.15s, transform 0.15s; font-family: inherit; }
.vp-publish:hover { filter: brightness(1.1); transform: translateY(-1px); }
@media (max-width: 640px) {
  .vp-header, .vp-tabs, .vp-search-row, .vp-filters, .vp-footer { padding-left: 14px; padding-right: 14px; }
  .vp-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; padding: 12px 14px 18px; }
  .vp-brand { font-size: 15px; }
  .vp-footer { flex-wrap: wrap; gap: 10px; }
}
