/* ==========================================================================
   VRChat 模型与封面图片预览画廊 - 精致美化样式表
   Design: Modern Glassmorphic Dark UI + Responsive Layout + Smooth Animations
   ========================================================================== */

:root {
  /* 调色板 - 深空沉浸主题 */
  --bg-primary: #0a0d14;
  --bg-secondary: #111726;
  --bg-tertiary: #1a2236;
  --bg-card: rgba(22, 29, 47, 0.72);
  --bg-card-hover: rgba(30, 41, 67, 0.88);
  --bg-glass: rgba(16, 22, 38, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --border-hover: rgba(147, 197, 253, 0.25);
  
  --text-main: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-link: #818cf8;
  
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;

  --badge-unlock-bg: rgba(16, 185, 129, 0.15);
  --badge-unlock-text: #34d399;
  --badge-unlock-border: rgba(16, 185, 129, 0.3);

  --badge-watermark-bg: rgba(6, 182, 212, 0.15);
  --badge-watermark-text: #38bdf8;
  --badge-watermark-border: rgba(6, 182, 212, 0.3);

  --badge-ft-bg: rgba(236, 72, 153, 0.15);
  --badge-ft-text: #f472b6;
  --badge-ft-border: rgba(236, 72, 153, 0.3);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 亮色模式调色板 (可选切换) */
body.theme-light {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(99, 102, 241, 0.6);
  --border-hover: rgba(99, 102, 241, 0.3);

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.15);
}

/* 基础重置与排版 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 背景流动光斑装饰 */
.bg-ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb-1 {
  position: absolute;
  top: -15vw;
  right: -10vw;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 70%);
  filter: blur(60px);
  animation: floatOrb 25s ease-in-out infinite alternate;
}

.glow-orb-2 {
  position: absolute;
  bottom: 10vw;
  left: -15vw;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, rgba(236, 72, 153, 0) 70%);
  filter: blur(70px);
  animation: floatOrb 30s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4vw, 6vh) scale(1.1); }
}

/* 主容器 */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 24px 60px 24px;
}

/* ==========================================================================
   头部导航 & 统计仪表板 (Header & Stats)
   ========================================================================== */
.site-header {
  padding: 28px 0 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
  color: #fff;
  flex-shrink: 0;
}

.brand-icon svg {
  width: 28px;
  height: 28px;
}

.brand-titles h1 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.theme-light .brand-titles h1 {
  background: linear-gradient(135deg, #0f172a 30%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  -webkit-text-fill-color: var(--primary-light);
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 统计卡片条 */
.stats-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.stat-pill:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.stat-pill .stat-icon {
  display: flex;
  align-items: center;
  color: var(--primary-light);
}

.stat-pill .stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.stat-pill .stat-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* 右侧交互动作按钮 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 9px 15px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.action-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.action-btn:active {
  transform: translateY(1px);
}

.action-btn svg {
  width: 17px;
  height: 17px;
}

.action-btn.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.action-btn.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
}

/* ==========================================================================
   控制工具栏 (Control Bar: Search, Filters, Sorters & View Modes)
   ========================================================================== */
.control-bar {
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 16px;
  z-index: 100;
}

.control-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* 搜索框 */
.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 560px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

.search-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 42px 10px 40px;
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition-fast);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--primary);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: none;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.search-clear-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.search-clear-btn.visible {
  display: flex;
}

.search-shortcut-hint {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  pointer-events: none;
}

/* 排序 & 状态筛选 & 视图切换器 */
.controls-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-select:focus, .filter-select:hover {
  border-color: var(--border-hover);
}

/* 视图模式切换单选组 */
.view-mode-toggle {
  display: flex;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}

.view-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: calc(var(--radius-md) - 3px);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.view-btn svg {
  width: 16px;
  height: 16px;
}

.view-btn:hover {
  color: var(--text-main);
}

.view-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* 角色标签与特性胶囊滚动行 */
.filter-chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

.filter-chips-row::-webkit-scrollbar {
  height: 4px;
}

.filter-chips-row::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.chip-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 13px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  user-select: none;
}

.chip-btn .chip-count {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
  color: var(--text-muted);
}

.chip-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-hover);
}

.chip-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-light);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.chip-btn.active .chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.chips-divider {
  width: 1px;
  height: 20px;
  background: var(--border-subtle);
  margin: 0 4px;
  flex-shrink: 0;
}

/* 结果摘要提示条 */
.results-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 4px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.results-summary .highlight {
  color: var(--primary-light);
  font-weight: 700;
}

.reset-all-filters-btn {
  background: none;
  border: none;
  color: var(--text-link);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reset-all-filters-btn:hover {
  color: #fff;
}

/* ==========================================================================
   画廊网格视图 (Grid View - Default)
   ========================================================================== */
.gallery-container {
  min-height: 400px;
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

/* 单个卡片 */
.avatar-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.avatar-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* 图片容器 */
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0f1420;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-smooth);
  display: block;
}

.avatar-card:hover .card-media img {
  transform: scale(1.06);
}

/* 图片加载骨架背景 */
.card-media.loading {
  background: linear-gradient(90deg, #13192a 25%, #1c263e 50%, #13192a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 无图片占位图 */
.no-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #151a2d, #1f2742);
  color: var(--text-muted);
  gap: 8px;
}

.no-image-placeholder svg {
  width: 38px;
  height: 38px;
  opacity: 0.5;
}

.no-image-placeholder span {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* 卡片浮层角标 (Badges Overlay) */
.media-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}

.badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(8px);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.badge-unlock {
  background: var(--badge-unlock-bg);
  color: var(--badge-unlock-text);
  border: 1px solid var(--badge-unlock-border);
}

.badge-watermark {
  background: var(--badge-watermark-bg);
  color: var(--badge-watermark-text);
  border: 1px solid var(--badge-watermark-border);
}

.badge-ft {
  background: var(--badge-ft-bg);
  color: var(--badge-ft-text);
  border: 1px solid var(--badge-ft-border);
}

/* ==========================================================================
   Tag 标签组与胶囊徽章体系 (Modern Tag Pill System)
   ========================================================================== */
.card-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 2px 0;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tag-pill svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* 标签悬浮效果 */
.tag-pill:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* 各类型专属精美配色 */
/* 1. 已解锁 - 荧光翠绿 */
.tag-pill.tag-unlocked {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
}
.tag-pill.tag-unlocked:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}

/* 2. 无水印 - 冰晶青蓝 */
.tag-pill.tag-watermark {
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}
.tag-pill.tag-watermark:hover {
  background: rgba(6, 182, 212, 0.28);
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* 3. FT版本 - 霓虹粉紫 */
.tag-pill.tag-ft {
  background: rgba(236, 72, 153, 0.16);
  border: 1px solid rgba(244, 114, 182, 0.4);
  color: #f472b6;
}
.tag-pill.tag-ft:hover {
  background: rgba(236, 72, 153, 0.28);
  border-color: #f472b6;
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.4);
}

/* 4. 轻量版 - 暖琥珀金橙 */
.tag-pill.tag-lite {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}
.tag-pill.tag-lite:hover {
  background: rgba(245, 158, 11, 0.28);
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

/* 5. 角色系列 - 梦幻紫罗兰 */
.tag-pill.tag-character {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: #c084fc;
}
.tag-pill.tag-character:hover {
  background: rgba(139, 92, 246, 0.28);
  border-color: #c084fc;
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.4);
}

/* 6. 其他扩展（DLC/PC/GogoLoco等） */
.tag-pill.tag-extra,
.tag-pill.tag-dlc,
.tag-pill.tag-pc,
.tag-pill.tag-gogo {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
}
.tag-pill.tag-extra:hover,
.tag-pill.tag-dlc:hover,
.tag-pill.tag-pc:hover,
.tag-pill.tag-gogo:hover {
  background: rgba(148, 163, 184, 0.22);
  border-color: #cbd5e1;
}

/* 快速预览浮动触发按钮 */
.media-preview-trigger {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 13, 20, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition-fast);
  z-index: 3;
}

.media-preview-trigger svg {
  width: 18px;
  height: 18px;
}

.avatar-card:hover .media-preview-trigger {
  opacity: 1;
  transform: translateY(0);
}

.media-preview-trigger:hover {
  background: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.6);
}

/* 卡片信息主体 */
.card-content {
  padding: 14px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title mark {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
  padding: 0 2px;
  border-radius: 2px;
}

/* 模型容量大小胶囊 */
.card-size-pill {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.copy-mini-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
}

.copy-mini-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.copy-mini-btn svg {
  width: 14px;
  height: 14px;
}

/* 卡片底栏 */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-series {
  color: var(--primary-light);
  font-weight: 500;
}

.footer-actions {
  display: flex;
  gap: 6px;
}

.icon-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition-fast);
  display: flex;
}

.icon-action-btn:hover {
  color: var(--text-main);
  background: var(--bg-tertiary);
}

.icon-action-btn svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   瀑布流模式 (Masonry View)
   ========================================================================== */
.gallery-masonry {
  column-count: 4;
  column-gap: 22px;
}

@media (max-width: 1400px) {
  .gallery-masonry { column-count: 3; }
}

@media (max-width: 992px) {
  .gallery-masonry { column-count: 2; }
}

@media (max-width: 580px) {
  .gallery-masonry { column-count: 1; }
}

.gallery-masonry .avatar-card {
  break-inside: avoid;
  margin-bottom: 22px;
}

.gallery-masonry .card-media {
  aspect-ratio: auto;
  max-height: 480px;
}

.gallery-masonry .card-media img {
  object-fit: contain;
  background: #080c14;
}

/* ==========================================================================
   紧凑平铺模式 (Compact View)
   ========================================================================== */
.gallery-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.gallery-compact .avatar-card {
  border-radius: var(--radius-md);
}

.gallery-compact .card-media {
  aspect-ratio: 1 / 1;
}

.gallery-compact .card-content {
  padding: 10px;
  gap: 6px;
}

.gallery-compact .card-title {
  font-size: 0.85rem;
  -webkit-line-clamp: 1;
}

.gallery-compact .card-footer {
  display: none;
}

/* ==========================================================================
   详细列表模式 (List View)
   ========================================================================== */
.gallery-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-list .avatar-card {
  flex-direction: row;
  align-items: center;
  border-radius: var(--radius-md);
  padding: 10px 16px;
}

.gallery-list .card-media {
  width: 90px;
  height: 68px;
  aspect-ratio: auto;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.gallery-list .media-badges {
  display: none;
}

.card-inline-badges {
  display: none;
  gap: 6px;
  flex-wrap: wrap;
}

.gallery-list .card-inline-badges {
  display: flex;
}

.gallery-list .card-content {
  flex-direction: row;
  align-items: center;
  padding: 0 16px;
  gap: 20px;
  flex: 1;
}

.gallery-list .card-title-row {
  flex: 2;
  min-width: 200px;
}

.gallery-list .card-footer {
  border: none;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  gap: 16px;
}

/* ==========================================================================
   沉浸式大图全屏画廊模态 (Pro Lightbox Modal)
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: rgba(6, 8, 14, 0.94);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  overflow: hidden;
  user-select: none;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* 模态框顶栏工具条 */
.lightbox-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 14, 24, 0.75);
  flex-shrink: 0;
  gap: 16px;
}

.lightbox-info-brief {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  flex: 1;
}

.lightbox-titles-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.lightbox-counter {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-family: monospace;
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.lightbox-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-icon-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tool-icon-btn:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: var(--border-hover);
}

.tool-icon-btn svg {
  width: 19px;
  height: 19px;
}

.zoom-indicator {
  font-size: 0.82rem;
  color: var(--text-muted);
  min-width: 48px;
  text-align: center;
  font-family: monospace;
}

.btn-close-lightbox {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  margin-left: 6px;
}

.btn-close-lightbox:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* 模态框中间展示区 */
.lightbox-body {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

.lightbox-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.lightbox-viewport.grabbing {
  cursor: grabbing;
}

.lightbox-image-wrapper {
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 210px);
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

/* 翻页导航箭头 */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(16, 22, 38, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}

.nav-arrow:hover {
  background: var(--primary);
  border-color: var(--primary-light);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.nav-arrow.prev { left: 24px; }
.nav-arrow.next { right: 24px; }

.nav-arrow svg {
  width: 26px;
  height: 26px;
}

/* 右侧详情抽屉 (Inspector Drawer) */
.lightbox-inspector {
  width: 360px;
  background: rgba(12, 16, 28, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  gap: 20px;
  transition: transform var(--transition-base), width var(--transition-base);
  z-index: 15;
}

.lightbox-inspector.hidden {
  transform: translateX(100%);
  width: 0;
  padding: 0;
  border-left: none;
}

.inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.inspector-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 详情面板内的封面参考图（仅 3D 预览模式渲染） */
.inspector-cover-block {
  width: 100%;
  margin: 0;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
}

.inspector-cover-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 210px;
  object-fit: cover;
  background: var(--bg-primary);
}

.inspector-cover-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.inspector-cover-caption .cover-caption-dims {
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.inspector-meta-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inspector-meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.meta-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.meta-value {
  font-size: 0.92rem;
  color: var(--text-main);
  word-break: break-all;
}

.meta-code-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.inspector-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inspector-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.btn-inspector-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-inspector-action:hover {
  background: var(--primary);
  border-color: var(--primary-light);
  color: #fff;
}

.btn-inspector-action svg {
  width: 17px;
  height: 17px;
}

/* 底部胶卷缩略图条 (Filmstrip) */
.lightbox-filmstrip-bar {
  height: 94px;
  background: rgba(10, 14, 24, 0.85);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 16px;
  overflow-x: auto;
  gap: 10px;
  scrollbar-width: thin;
  flex-shrink: 0;
}

.lightbox-filmstrip-bar::-webkit-scrollbar {
  height: 4px;
}

.lightbox-filmstrip-bar::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.filmstrip-thumb {
  width: 90px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: var(--transition-fast);
  flex-shrink: 0;
  background: #111;
  position: relative;
}

.filmstrip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filmstrip-thumb:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.filmstrip-thumb.active {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
  transform: translateY(-2px);
}

/* ==========================================================================
   空状态提示 (Empty State)
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

.empty-state-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 400px;
}

/* ==========================================================================
   全局 Toast 消息通知 (Floating Toast Notification)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-hover);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--accent-emerald);
  display: flex;
}

.toast-icon svg {
  width: 18px;
  height: 18px;
}

/* 快捷回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition-fast);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   响应式断点优化 (Responsive Breakpoints)
   ========================================================================== */
@media (max-width: 900px) {
  .app-container {
    padding: 0 16px 40px 16px;
  }
  
  .control-main-row {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrapper {
    max-width: 100%;
  }

  .controls-right-group {
    justify-content: space-between;
  }

  .lightbox-inspector {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-strip {
    width: 100%;
  }

  .stat-pill {
    flex: 1;
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }

  .nav-arrow {
    width: 40px;
    height: 40px;
  }

  .nav-arrow.prev { left: 10px; }
  .nav-arrow.next { right: 10px; }
}


/* ==========================================================================
   3D 预览与右上角 VRC 表情菜单 HUD 样式系统 (Avatar 3D & Expressions Menu)
   ========================================================================== */

/* 3D 专属角标与卡片快捷按钮 */
.badge.badge-3d {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(59, 130, 246, 0.35));
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.btn-open-3d {
  background: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: var(--radius-sm) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer;
  transition: var(--transition-fast) !important;
}

.btn-open-3d:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6) !important;
  transform: translateY(-1px);
}

/* 顶部 2D / 3D 模式切换胶囊 */
.lightbox-mode-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 4px;
  margin-right: 12px;
}

.mode-tab-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.mode-tab-btn:hover {
  color: var(--text-main);
}

.mode-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.mode-tab-btn.active#btnMode3D {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.45);
}

.mode-tab-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: #06b6d4;
  color: #0f172a;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* 3D 专属视口 */
.lightbox-viewport-3d {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, #171e2e 0%, #0c101c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-3d-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* 3D 加载中遮罩 */
.viewer-3d-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 28, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 50;
  transition: opacity 0.3s ease;
}

.viewer-3d-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.viewer-3d-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin3D 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin3D {
  to { transform: rotate(360deg); }
}

.viewer-3d-loading-text {
  font-size: 0.95rem;
  color: #e2e8f0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.viewer-3d-progress-bar {
  width: 200px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.viewer-3d-progress-bar .progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 99px;
  transition: width 0.15s ease;
}

/* 3D 底部悬浮控制栏 */
.viewer-3d-quickbar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 40;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.quick-tool-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.quick-tool-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.quick-tool-btn.active {
  background: #0284c7;
  color: #ffffff;
}

/* 右上角 VRC 表情菜单 HUD 容器 */
.vrc-menu-hud-container {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 60;
  pointer-events: none;
}

.vrc-menu-hud-card {
  pointer-events: auto;
  width: 320px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(56, 189, 248, 0.15);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: hudFadeIn 0.25s ease-out;
  transform-origin: top right;
  transition: var(--transition-base), transform 0.16s ease-out;
}

@keyframes hudFadeIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.hud-brand-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
}

.hud-header-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hud-zoom-group {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 4px;
  padding-right: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-zoom-value {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 600;
  min-width: 36px;
  padding: 0 2px;
  text-align: center;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.hud-zoom-value:hover {
  color: #38bdf8;
}

.hud-tool-btn {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.hud-tool-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.hud-crumbs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  overflow-x: auto;
}

.hud-back-btn {
  border: none;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  flex-shrink: 0;
}

.hud-back-btn:hover {
  background: #0284c7;
  color: #fff;
}

.hud-crumbs-trail {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.crumb-item {
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 0;
  cursor: pointer;
  font-size: 0.78rem;
}

.crumb-item:hover { color: #f1f5f9; }
.crumb-item.active { color: #38bdf8; font-weight: 600; }
.crumb-sep { color: #475569; font-size: 0.8rem; }

.hud-content-viewport {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  max-height: 380px;
  overflow-y: auto;
}

.hud-radial-wrapper {
  width: 100%;
  max-width: 290px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hud-radial-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
}

.seg-slice {
  fill: url(#segGrad);
  stroke: rgba(56, 189, 248, 0.25);
  stroke-width: 1.5;
  transition: all 0.15s ease-out;
  cursor: pointer;
}

.seg-slice:hover {
  fill: #0369a1;
  stroke: #38bdf8;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

.seg-slice.is-active {
  fill: url(#segActiveGrad);
  stroke: #38bdf8;
  stroke-width: 2.5;
}

.is-back .seg-slice {
  fill: #334155;
}

.is-back .seg-slice:hover {
  fill: #475569;
}

.seg-text-label {
  fill: #e2e8f0;
  font-size: 11px;
  font-weight: 500;
  pointer-events: none;
  user-select: none;
}

.seg-back-arrow {
  fill: #38bdf8;
  font-size: 26px;
  font-weight: 700;
  pointer-events: none;
}

.seg-type-emoji {
  font-size: 20px;
  pointer-events: none;
}

.seg-icon-img {
  pointer-events: none;
  border-radius: 6px;
}

.seg-sub-badge {
  font-size: 11px;
  pointer-events: none;
}

.hud-center-hub {
  fill: #0f172a;
  stroke: rgba(56, 189, 248, 0.4);
  stroke-width: 2;
}

.hud-center-title {
  fill: #38bdf8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  pointer-events: none;
  user-select: none;
}

/* 列表模式 */
.hud-controls-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hud-ctrl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.hud-ctrl-item:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateX(2px);
}

.hud-ctrl-item.is-active {
  background: rgba(2, 132, 199, 0.3);
  border-color: #38bdf8;
}

.ctrl-icon-wrap {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ctrl-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.ctrl-emoji {
  font-size: 16px;
}

.ctrl-meta {
  flex: 1;
  min-width: 0;
}

.ctrl-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ctrl-type-tag {
  font-size: 0.7rem;
  color: #94a3b8;
}

.ctrl-arrow {
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 700;
}

.hud-footer-hint {
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.68rem;
  color: #64748b;
  text-align: center;
}

/* 最小化悬浮胶囊 */
.vrc-menu-mini-pill {
  pointer-events: auto;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 12px rgba(56, 189, 248, 0.3);
  transition: var(--transition-fast);
}

.vrc-menu-mini-pill:hover {
  background: #0284c7;
  color: #ffffff;
  transform: scale(1.05);
}

/* 3D 浮动 Toast */
.hud-floating-toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid #38bdf8;
  color: #f1f5f9;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

.hud-floating-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
