/* ============================================================
   Mosaic — Design System
   ============================================================
   调整 UI 只需要改这个文件。
   最重要的是下方的 :root 变量区——改颜色、圆角、间距全在那里。
   ============================================================ */

/* ========== Design Tokens (改这里就能换肤) ========== */
:root {
  /* --- 背景色 --- */
  --canvas-bg: #FFFFFF;          /* 画布主背景 (白) */
  --card-bg: #FFFFFF;             /* 卡片背景 */
  --sidebar-bg: #FFFFFF;          /* 侧边栏背景 */

  /* --- 主色 & 强调色 --- */
  --primary: #6BA8A0;             /* 主色 (鼠尾草绿) — 按钮、高亮、激活态 */
  --primary-light: #E8F2F0;       /* 主色浅色版 — 选中背景 */
  --accent-gold: #D4A574;        /* 金色强调 */
  --accent-rose: #C99996;        /* 玫瑰色强调 */
  --accent-blue: #7B9ACC;        /* 蓝色强调 */
  --accent-grass: #8BB174;       /* 草绿色强调 */
  --danger: #E0524D;             /* 危险色 — 删除、取消收藏 */

  /* --- 文字颜色 --- */
  --text-primary: #000000;       /* 主文字 */
  --text-secondary: #6B6B6B;     /* 次要文字 */
  --text-placeholder: #999999;   /* 占位符文字 */

  /* --- 边框 & 标签 --- */
  --border: #E8E8E8;             /* 分割线、输入框边框 */
  --tag-bg: #F5F0E8;             /* 标签背景 */
  --hover-bg: #FAFAFA;           /* hover 背景色 */

  /* --- 圆角 --- */
  --radius-card: 12px;           /* 卡片圆角 */
  --radius-btn: 8px;             /* 按钮圆角 */
  --radius-pill: 14px;           /* 药丸形圆角 (标签、筛选器) */

  /* --- 阴影 --- */
  --shadow-card: 0 1px 6px rgba(107, 168, 160, 0.06);    /* 卡片阴影 */
  --shadow-modal: 0 8px 32px rgba(0,0,0,0.12);            /* 弹窗阴影 */

  /* --- 过渡动画 --- */
  --transition: 0.2s ease;
}

/* ========== Floating Top Bar (fixed, always visible) ========== */
.floating-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  pointer-events: auto;
  transform: translateZ(0);
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  background: #1A1A1A;
  color: #fff;
  border: none;
  border-radius: 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.upload-btn:hover { background: #333333; }
.upload-btn:active { transform: scale(0.97); }
.upload-btn svg { stroke: currentColor; }

.floating-search {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
  width: 50%;
  height: 40px;
  padding: 4px 4px 4px 16px;
  background: #F9FBFD;
  border: 1px solid rgba(202, 205, 213, 0.4);
  border-radius: 9999px;
  box-shadow: inset 0 0 11.8px rgba(202, 205, 213, 0.25);
  transition: border-color var(--transition), box-shadow var(--transition);
  margin-left: auto;
}
.floating-search:focus-within {
  border-color: rgba(202, 205, 213, 0.6);
  box-shadow: inset 0 0 14px rgba(202, 205, 213, 0.32);
}
.floating-search input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  min-width: 0;
}
.floating-search input::placeholder {
  color: var(--text-placeholder);
}

.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 18px;
  background: #1A1A1A;
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.search-btn:hover { background: #333333; }
.search-btn:active { transform: scale(0.97); }

/* --- COS Settings Button (gear icon in topbar) --- */
.cos-settings-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.6);
  color: #4A4A4A;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform 0.15s ease;
}
.cos-settings-btn:hover { background: #fff; color: #1A1A1A; }
.cos-settings-btn:active { transform: scale(0.95); }
.cos-settings-btn svg { transition: transform 0.4s ease; }
.cos-settings-btn:hover svg { transform: rotate(60deg); }
.cos-status-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C4C4C4;
  border: 1.5px solid #fff;
  transition: background var(--transition);
}
.cos-status-dot.configured { background: #44C97A; }

/* --- Search History Dropdown --- */
.search-history-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 100%;
  min-width: 280px;
  max-height: 360px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(232, 232, 232, 0.8);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 600;
  padding: 10px 8px;
}
.search-history-dropdown.show { display: block; }

.search-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 8px;
  border-bottom: 1px solid rgba(232, 232, 232, 0.6);
  margin-bottom: 4px;
}
.search-history-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-placeholder);
  letter-spacing: 0.02em;
}
.search-history-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--text-placeholder);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.search-history-clear:hover {
  background: #F0F0F0;
  color: #E0524D;
}

.search-history-list { padding: 0; }
.search-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.search-history-item:hover {
  background: #F5F5F5;
  color: var(--text-primary);
}
.search-history-item svg {
  flex-shrink:0;
  opacity: 0.4;
}
.search-history-empty {
  padding: 16px 10px;
  text-align: center;
  font-size: 12px;
  color: var(--text-placeholder);
}

/* ========== Reset ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--canvas-bg);
  color: var(--text-primary);
  font-size: 14px;
  overflow-x: hidden;
  min-height: 100vh;
}

.mono { font-family: 'Geist Mono', monospace; }

/* ========== Hero / Favorite 10 ========== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background: #FFFFFF;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  left: 60px;
  bottom: 60px;
  font-size: min(16vh, 18vw);
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.03em;
  line-height: 1.05;
  z-index: 1;
  user-select: none;
  pointer-events: none;
  opacity: 1;
}

.hero-favorites {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: row-reverse;          /* 列从右向左排列 */
  gap: 24px;                             /* 列间距（与同列图片间距一致） */
  padding: 100px 60px 60px 60px;          /* 顶部加宽，给悬浮栏留更多距离 */
  overflow: hidden;
}

.hero-col {
  flex: 0 0 auto;                        /* 列宽由 JS 设定，不自动伸缩 */
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;                             /* 图片纵向间距 */
}

.hero-favorite-item {
  width: 100%;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.4s ease, box-shadow 0.4s ease, z-index 0s;
  background: #fff;
}

.hero-favorite-item:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
  z-index: 100;
}

.hero-favorite-item img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* --- 最爱展示区图片悬浮按钮层 --- */
.hero-fav-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;   /* 容器始终不拦截事件，点击穿透到图片/卡片 */
}
.hero-favorite-item:hover .hero-fav-overlay { opacity: 1; /* 不切换 pointer-events */ }

/* 左上角：最爱心形按钮 — 单独开启指针事件 */
.hero-fav-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
  color: #666;
  pointer-events: auto;   /* 按钮自身可点击 */
}
.hero-fav-heart:hover { background: #fff; transform: scale(1.1); }
.hero-fav-heart.active { color: #FF4757; }
.hero-fav-heart svg { stroke: currentColor; }

/* 右上角：下载 + 复制按钮组 */
.hero-fav-actions {
  display: flex;
  gap: 6px;
}
.hero-fav-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  color: #444;
  pointer-events: auto;   /* 按钮自身可点击 */
}
.hero-fav-action-btn:hover { background: #fff; transform: scale(1.1); }
.hero-fav-action-btn svg { stroke: currentColor; }

.hero-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  animation: bounce 2s infinite;
  pointer-events: none;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@media (max-width: 768px) {
  .hero-bg-text { font-size: min(16vh, 18vw); left: 12px; bottom: 12px; }
  .hero-favorite-item { border-radius: 8px; }
  .hero-favorites { gap: 6px; padding: 80px 12px 12px 12px; }
  .hero-col { gap: 8px; }
}

/* ========== Layout ========== */
.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
  padding-top: 56px;                 /* 给顶部浮窗留出空间 */
}

/* ========== Sidebar ========== */
.sidebar {
  width: 260px;                    /* 侧边栏宽度 */
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 20px;                        /* 区块间距 */
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon { width: 28px; height: 28px; flex-shrink: 0; }
.logo-text { font-size: 17px; font-weight: 700; color: var(--text-primary); }

/* --- 添加素材按钮 --- */
.add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-btn);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.add-btn:hover { background: #5A9A92; }
.add-btn:active { transform: scale(0.98); }

/* --- 侧边栏区块 --- */
.nav-section, .folder-section, .tag-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: none;
}

/* --- 导航项 --- */
.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.nav-item:hover { background: var(--hover-bg); }
.nav-item.active { background: #F0F0F0; }
.nav-item.active .nav-text { font-weight: 500; }
.nav-item.active .nav-icon path { stroke: #1A1A1A; }
.nav-item.active .nav-count { color: #1A1A1A; }

.nav-icon { width: 16px; height: 16px; flex-shrink: 0; }
.nav-text { font-size: 13px; font-weight: 500; flex: 1; }
.nav-count { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--text-secondary); display: inline-block; min-width: 28px; text-align: center; flex-shrink: 0; margin-right: -10px; }

/* --- 文件夹项 --- */
.folder-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.folder-item:hover { background: var(--hover-bg); }
.folder-item.active { background: #F0F0F0; }
.folder-item.active .folder-name { font-weight: 500; }
.folder-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* --- 文件夹颜色图标 hover 显示编辑按钮 --- */
.folder-edit-trigger {
  position: relative;
  flex-shrink: 0;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.folder-edit-trigger .folder-dot { transition: opacity 0.15s ease; }
.folder-edit-trigger:hover .folder-dot { opacity: 0; }
.folder-edit-icon {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.9);
  border-radius: 4px;
}
.folder-edit-trigger:hover .folder-edit-icon { display: flex; }
.folder-edit-icon:hover { background: #fff; }

/* --- 文件夹内联编辑模式 --- */
.folder-item.editing {
  background: var(--hover-bg) !important;
  cursor: default !important;
}
.folder-item.editing .folder-edit-inline-wrapper {
  display: flex; align-items: center; gap: 6px;
  flex: 1; min-width: 0;
  height: 30px;
}
.folder-edit-input {
  flex: 1;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  min-width: 0;
}
.folder-name { font-size: 13px; flex: 1; }
.folder-count { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--text-secondary); display: inline-block; min-width: 28px; text-align: center; flex-shrink: 0; margin-right: -10px; }
.folder-delete {
  display: none;
  width: 16px; height: 16px;
  align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
}
.folder-item:hover .folder-delete { display: flex; }
.folder-delete:hover { opacity: 1; }

/* --- 新建文件夹按钮 --- */
.new-folder-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-placeholder);
  font-size: 12px;
  transition: var(--transition);
}
.new-folder-btn:hover { background: var(--hover-bg); color: var(--text-secondary); }

/* --- 二级文件夹树 --- */
.folder-toggle {
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer;
  opacity: 0.65;
}
.folder-toggle svg { transition: transform 0.15s ease; }
.folder-toggle.expanded svg { transform: rotate(90deg); }
.folder-toggle:hover { opacity: 1; }

.folder-add-sub {
  display: none;
  width: 16px; height: 16px;
  align-items: center; justify-content: center;
  cursor: pointer; opacity: 0.5;
  transition: var(--transition);
}
.folder-item:hover .folder-add-sub { display: flex; }
.folder-add-sub:hover { opacity: 1; }
.folder-item:hover > .folder-count { display: none; }

.folder-children {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 2px 29px;
  padding-left: 4px;
  border-left: 1px solid rgba(0,0,0,0.08);
}
.folder-subitem { height: 30px; }
.folder-subitem .folder-name { font-size: 12.5px; }

/* --- 侧边栏标签 --- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-chip-sidebar {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  background: #F0F0F0;
  border-radius: var(--radius-pill);
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.tag-chip-sidebar:hover { background: #E8E8E8; color: #333333; }
.tag-chip-sidebar.active { background: #1A1A1A; color: #fff; }

/* ========== Main Area ========== */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;                    /* 让 .top-bar 绝对定位生效 */
}

/* --- 顶部栏 --- */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;               /* 顶栏左右内边距 */
  height: 42px;                  /* 顶栏高度（缩小 1/3） */
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  position: absolute;            /* 绝对定位，让内容滚动到其下方 */
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  transform: translateZ(0);
}

.top-bar-title {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  flex: 1;
  margin-left: auto;
  text-align: right;
}

/* --- 返回导航按钮（筛选/搜索时显示） --- */
.back-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.6);
  color: #2B2B2B;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 9999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform 0.15s ease, opacity 0.25s ease;
  flex-shrink: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.back-nav-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.back-nav-btn:hover { background: rgba(255, 255, 255, 0.9); border-color: rgba(0, 0, 0, 0.2); }
.back-nav-btn:active { transform: scale(0.97); }
.back-nav-btn svg { stroke: currentColor; }

/* --- 返回最爱按钮（旧 top-bar 内版本，保留备用） --- */
.back-to-fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 27px;                            /* 缩小 1/6：32 → 27 */
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.6);
  color: #2B2B2B;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 9999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform 0.15s ease;
  flex-shrink: 0;
}
.back-to-fav:hover { background: rgba(255, 255, 255, 0.9); border-color: rgba(0, 0, 0, 0.2); }
.back-to-fav:active { transform: scale(0.97); }

/* --- 返回最爱按钮（浮动顶栏版，毛玻璃） --- */
.back-to-fav-floating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  color: #2B2B2B;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 9999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform 0.15s ease, opacity 0.3s ease, visibility 0.3s ease;
  flex-shrink: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
}
.back-to-fav-floating.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-fav-floating:hover { background: rgba(255, 255, 255, 0.8); border-color: rgba(0, 0, 0, 0.2); }
.back-to-fav-floating:active { transform: scale(0.97); }
.back-to-fav-floating svg { stroke: currentColor; }

/* --- 搜索栏 --- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 500px;
  height: 40px;
  background: var(--canvas-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 0 14px;
}
.search-bar input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
}
.search-bar input::placeholder { color: var(--text-placeholder); }
.shortcut-pill {
  display: flex;
  align-items: center;
  height: 22px;
  padding: 0 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-secondary);
}

/* --- 右侧控件 --- */
.right-controls { display: flex; align-items: center; gap: 12px; }

/* --- 视图切换 --- */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  background: var(--canvas-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 0 8px;
}
.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
}
.view-btn:hover { background: var(--border); }
.view-btn.active { background: var(--text-primary); }
.view-btn.active svg path,
.view-btn.active svg rect { fill: #fff; }

/* --- 排序按钮 --- */
.sort-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  background: var(--canvas-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 0 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
}
.sort-btn:hover { background: var(--hover-bg); }

/* ========== Content Area ========== */
.content-area {
  flex: 1;
  padding: 66px 32px 24px;      /* 顶部 42px(顶栏) + 24px 原有间距，让内容从顶栏下方开始 */
  overflow-y: auto;              /* 仅内容区可滚动 */
}
.content-area::-webkit-scrollbar { width: 6px; }
.content-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* --- 返回顶部按钮 --- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 600;                  /* 提高层级确保可见 */
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #363636;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
  box-shadow: 0 4px 14px rgba(54, 54, 54, 0.35);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: #1a1a1a; }
.back-to-top:active { transform: scale(0.95); }

/* ========== COS Settings Modal ========== */
.cos-settings-card {
  width: 520px;
  max-width: 95vw;
  max-height: 90vh;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  animation: modalIn 0.3s ease;
}
.cos-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.cos-settings-title { font-size: 17px; font-weight: 600; color: var(--text-primary); }
.cos-tutorial-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 24px;
  padding: 10px 14px;
  background: #F0F5FF;
  color: #3366CC;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.cos-tutorial-link:hover {
  background: #E6EDFF;
  color: #2255BB;
  transform: translateY(-1px);
}
.cos-tutorial-link svg:first-of-type { flex-shrink: 0; }
.cos-tutorial-arrow { margin-left: auto; opacity: 0.6; }
.cos-tutorial-link:hover .cos-tutorial-arrow { opacity: 1; transform: translateX(2px); }
.cos-settings-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #FAFAFA;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.cos-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C4C4C4;
}
.cos-status-indicator.configured { background: #44C97A; }
.cos-status-text { color: var(--text-secondary); }

/* --- 同步状态提示（顶栏齿轮旁） --- */
.sync-status {
  display: none;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  animation: syncFadeIn 0.2s ease;
}
@keyframes syncFadeIn {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}
.sync-status.syncing {
  background: #F0F4FF;
  color: #185FA5;
}
.sync-status.synced {
  background: #E1F5EE;
  color: #0F6E56;
}
.sync-status.error {
  background: #FAECE7;
  color: #993C1D;
}

/* --- 设置弹窗：最后同步时间 --- */
.cos-last-sync-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 24px 10px;
  background: #FAFAFA;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.cos-last-sync-label { color: var(--text-tertiary); }
.cos-last-sync-value {
  color: var(--text-secondary);
  font-family: var(--font-mono, 'SF Mono', Consolas, monospace);
  font-size: 11px;
}
.cos-settings-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}
.cos-field { margin-bottom: 16px; }
.cos-field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.cos-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: var(--canvas-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
}
.cos-input:focus { border-color: var(--primary); }
.cos-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.cos-field-row { display: flex; gap: 12px; }
.cos-field-half { flex: 1; }
.cos-help {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  background: #F5F7FA;
  border-radius: var(--radius-btn);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.cos-help svg { margin-top: 2px; color: #8B9BB1; }
.cos-help b { color: var(--text-primary); font-weight: 600; }
.cos-settings-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: #FAFAFA;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  min-height: 32px;
}

.section-title { font-size: 15px; font-weight: 600; }
.section-count { font-size: 10px; color: var(--text-secondary); margin-left: 0; }

/* --- 筛选标签 --- */
.filter-chips {
  display: flex;
  gap: 8px;
  align-items: center;
}
.filter-chip {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.filter-chip.active { background: var(--text-primary); color: #fff; font-weight: 500; }
.filter-chip:not(.active) { background: #fff; border: 1px solid var(--border); color: var(--text-primary); }
.filter-chip:not(.active):hover { background: var(--hover-bg); }

/* ========== Material Grid (瀑布流) ========== */
.material-grid {
  column-count: 4;               /* 列数 — 改这里调整每行显示几张 */
  column-gap: 16px;              /* 列间距 */
}
@media (max-width: 1200px) { .material-grid { column-count: 3; } }
@media (max-width: 900px) { .material-grid { column-count: 2; } }
@media (max-width: 600px) { .material-grid { column-count: 1; } }

/* --- 素材卡片 --- */
.material-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  break-inside: avoid;
  margin-bottom: 16px;            /* 卡片间距 */
  display: block;
}
.material-card:hover { box-shadow: 0 4px 16px rgba(107, 168, 160, 0.12); transform: translateY(-2px); }

.card-image {
  width: 100%;
  background: var(--canvas-bg);
  overflow: hidden;
  position: relative;
}
.card-image img { width: 100%; height: auto; display: block; }

/* --- 收藏按钮 --- */
.card-fav {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}
.material-card:hover .card-fav { display: flex; }
.card-fav:hover { background: rgba(255,255,255,1); }
.card-fav.active svg path { fill: var(--danger); stroke: var(--danger); }

/* --- 卡片悬浮操作层（hover 显示：左上角心形 + 右上角 下载/复制） --- */
.card-hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.material-card:hover .card-hover-overlay { opacity: 1; }

.card-overlay-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  color: #666;
  transition: transform 0.15s ease, background 0.15s ease;
  pointer-events: auto;
}
.card-overlay-heart:hover { background: #fff; transform: scale(1.08); }
.card-overlay-heart.active { color: #FF4757; }
.card-overlay-heart svg { stroke: currentColor; }

.card-overlay-actions {
  display: flex;
  gap: 5px;
}
.card-overlay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  color: #444;
  transition: transform 0.15s ease, background 0.15s ease;
  pointer-events: auto;
}
.card-overlay-btn:hover { background: #fff; transform: scale(1.08); }
.card-overlay-btn svg { stroke: currentColor; }

/* 隐藏原有的右下角 card-fav（被悬浮层替代） */
.material-card:hover .card-fav { display: none !important; }

/* --- 标注数量角标 --- */
.card-annotation-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  display: none;
  align-items: center;
  gap: 4px;
}
.card-annotation-badge.show { display: flex; }

/* --- 卡片底部标签（已移除，仅保留样式备用） --- */
.card-info { display: none; }
.card-tag {
  font-size: 12px;
  color: var(--text-placeholder);
}

/* ========== List View ========== */
.material-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border-radius: var(--radius-btn);
  padding: 8px 12px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: var(--transition);
}
.list-item:hover { box-shadow: 0 4px 12px rgba(107, 168, 160, 0.1); }
.list-thumb { width: 80px; height: 60px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.list-tags { font-size: 12px; color: var(--text-secondary); }
.list-desc { font-size: 13px; color: var(--text-primary); }
.list-date { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--text-placeholder); }

/* ========== Paste Hint ========== */
.paste-hint {
  display: none;
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  z-index: 9000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
}
.paste-hint.show { display: flex; align-items: center; gap: 8px; }
@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ========== Modal (编辑弹窗) — 深色主题 ========== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 8000;
  align-items: center;
  justify-content: center;            /* 弹窗左右居中 */
  padding: 0 20px;
}
.modal-overlay.show { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  display: flex;
  width: calc(100vw - 80px);             /* 左右各40px间距，与上下30px接近 */
  max-width: 1200px;                      /* 超宽屏上限 */
  height: calc(100vh - 60px);          /* 弹窗高度撑满可用空间 */
  max-height: none;
  background: #FFFFFF;                   /* 白色背景 */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.15);
  animation: modalIn 0.3s ease;
  position: relative;                     /* 供浮动关闭按钮定位 */
}

/* --- 弹窗右上角浮动关闭按钮 --- */
.modal-close-float {
  position: absolute;
  top: 24px;
  right: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #999999;
  transition: var(--transition);
}
.modal-close-float:hover { background: rgba(0,0,0,0.10); color: #333333; }
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- 弹窗左侧 (图片预览) — 浅灰背景 --- */
.modal-left {
  flex: 1;                                 /* 图片区占据剩余宽度 */
  min-width: 0;
  background: #F5F5F5;                     /* 浅灰背景，突出图片 */
  display: flex;
  flex-direction: column;
  position: relative;
}

/* --- 标注工具栏 — 白色主题 --- */
.annotation-toolbar {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #FFFFFF;                     /* 白色工具栏背景 */
  border-bottom: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.annotation-toolbar.show { display: flex; }

/* --- 标注入口：左侧区域左上角浮动按钮 --- */
.annotate-entry {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
}
.annotate-entry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: none;
  background: rgba(0,0,0,0.05);
  color: #333333;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
}
.annotate-entry-btn:hover { background: rgba(0,0,0,0.10); }
/* 左上角内的标注可见开关改为静态（不绝对定位） */
.annotate-entry .annotation-toggle { position: static; }

.tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: none;
  background: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  color: #666666;                           /* 白色主题：默认灰色图标 */
}
.tool-btn:hover { background: rgba(0,0,0,0.05); color: #333333; }
.tool-btn.active { background: rgba(0,0,0,0.08); color: #333333; }
.tool-btn.active svg path,
.tool-btn.active svg rect { stroke: currentColor; }

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

/* --- 颜色选择器 --- */
.color-picker {
  display: flex;
  gap: 4px;
  align-items: center;
}
.color-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.color-dot.active { border-color: var(--text-primary); transform: scale(1.1); }

.tool-btn-text { font-size: 12px; font-weight: 500; color: var(--text-primary); padding: 0 8px; }

/* --- 图片预览容器 --- */
.image-preview-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 16px;
}
.image-preview-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.annotation-svg {
  position: absolute;
  pointer-events: none;
}
.annotation-svg.editing { pointer-events: auto; }

/* --- 标注开关 — 白色主题 --- */
.annotation-toggle {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.06);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  cursor: pointer;
  color: #666666;
  z-index: 10;
}
.annotation-toggle input { cursor: pointer; }

/* --- 弹窗右侧 (表单) — 白色主题 --- */
.modal-right {
  width: 228px;                           /* 与详情弹窗右侧信息栏一致 */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;                     /* 与详情弹窗内容内边距一致 */
  overflow-y: auto;
  border-left: 1px solid rgba(0,0,0,0.08);
  background: #FFFFFF;                    /* 白色背景 */
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.modal-title { font-size: 18px; font-weight: 600; color: #1A1A1A; }

/* --- 关闭按钮 --- */
.close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  color: #999999;
}
.close-btn:hover { background: rgba(0,0,0,0.10); color: #333333; }

/* --- 表单项 --- */
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #666666;                        /* 白色主题：次要文字 */
  margin-bottom: 10px;
}

/* --- 标签输入器 — 白色主题 --- */
.tag-pills-area {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
  margin-bottom: 10px;
}
.tag-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  background: #F5F5F5;                    /* 浅灰输入框背景 */
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-btn);
  padding: 4px 8px;
}
.tag-input-row:focus-within { border-color: rgba(0,0,0,0.25); background: #EEEEEE; }
.tag-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: rgba(0,0,0,0.05);
  color: #999999;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.tag-add-btn:hover { background: rgba(0,0,0,0.10); color: #333333; }
.tag-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.tag-input {
  flex: 1;
  min-width: 80px;
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
  font-family: inherit;
  padding: 4px 0;
  color: #1A1A1A;                        /* 白色主题：深色输入文字 */
}
.tag-input::placeholder { color: #AAAAAA; }
.tag-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 180px;
  overflow-y: auto;
  background: #FFFFFF;                   /* 白色下拉 */
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  display: none;
}
.tag-dropdown.show { display: block; }
.tag-dropdown-item {
  padding: 9px 12px;
  font-size: 13px;
  color: #333333;
  cursor: pointer;
  transition: background .15s;
}
.tag-dropdown-item:hover { background: rgba(0,0,0,0.04); color: #000000; }
.tag-dropdown-item.disabled {
  color: #BBBBBB;
  cursor: default;
  background: none;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #F5F5F5;                    /* 浅灰标签背景 */
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: #333333;                        /* 白色主题：深色标签文字 */
}
.tag-pill .tag-remove {
  cursor: pointer;
  display: flex;
  align-items: center;
  opacity: 0.45;
  transition: var(--transition);
  color: #999999;
}
.tag-pill .tag-remove:hover { opacity: 1; color: #333333; }

/* --- 描述文本框 — 白色主题 --- */
.desc-textarea {
  width: 100%;
  min-height: 88px;
  background: #F5F5F5;                    /* 浅灰输入框背景 */
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-btn);
  padding: 12px 14px;
  font-size: 13px;
  font-family: inherit;
  color: #1A1A1A;                        /* 深色文字 */
  outline: none;
  resize: vertical;
  transition: var(--transition);
}
.desc-textarea:focus { border-color: rgba(0,0,0,0.25); background: #EEEEEE; }
.desc-textarea::placeholder { color: #AAAAAA; }

/* --- 文件夹选择（弹窗内：下拉菜单 + 新建按钮） --- */
.folder-select-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.folder-select {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(0,0,0,0.12);
  background: #F5F5F5;
  color: #333333;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999999' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 28px;
  transition: var(--transition);
}
.folder-select:focus {
  outline: none;
  border-color: rgba(0,0,0,0.25);
  background-color: #EEEEEE;
}
.folder-select option {
  background: #FFFFFF;
  color: #333333;
}

/* 新建文件夹按钮（弹窗内） */
.folder-new-btn-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 64px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: none;
  background: rgba(0,0,0,0.05);
  color: #666666;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.folder-new-btn-modal:hover { background: rgba(0,0,0,0.10); color: #333333; }

/* --- 底部按钮区 — 深色主题 --- */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

/* --- 按钮 — 白色主题 --- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}
.btn-primary { background: #1A1A1A; color: #FFFFFF; }
.btn-primary:hover { background: #333333; }
.btn-secondary { background: rgba(0,0,0,0.05); color: #666666; border: 1px solid rgba(0,0,0,0.10); }
.btn-secondary:hover { background: rgba(0,0,0,0.08); color: #333333; }

/* --- 批量编辑弹窗 --- */
.batch-modal-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  height: auto;
  max-height: calc(100vh - 60px);
  overflow: hidden;
  padding: 0;
}
.batch-modal-card .modal-header {
  padding: 22px 28px 0;
}
.batch-thumbs {
  display: flex;
  gap: 8px;
  padding: 16px 28px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.batch-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #F2F2F2;
  border: 1px solid rgba(0,0,0,0.06);
}
.batch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.batch-body {
  padding: 8px 28px 4px;
  overflow-y: auto;
}
.batch-love-row {
  margin-bottom: 18px;
}
.love-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
}
.batch-modal-card .modal-footer {
  padding: 16px 28px 22px;
}

/* --- 加入最爱按钮 — 白色主题 --- */
.love-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: #999999;
}
.love-toggle-btn:hover { background: rgba(0,0,0,0.10); color: #333333; }
.love-toggle-btn.active { background: rgba(0,0,0,0.08); color: #E04D4D; }
.love-toggle-btn.active svg path { fill: #E04D4D; stroke: #E04D4D; }

/* --- 详情标注开关 — 白色 --- */
#detail-annotation-toggle {
  background: rgba(0,0,0,0.05);
  color: #666666;
}

.detail-action-btn.active {
  background: rgba(224,82,77,0.2);
  color: var(--danger);
  border-color: rgba(224,82,77,0.3);
}
.detail-action-btn.active svg path { fill: var(--danger); stroke: var(--danger); }
/* ========== Detail Modal — 白色主题 ========== */
.detail-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
  z-index: 8000;
  align-items: center;
  justify-content: center;                /* 左右居中 */
}
.detail-overlay.show { display: flex; animation: fadeIn 0.2s ease; }

.detail-card {
  width: calc(100vw - 80px);             /* 左右各40px间距 */
  max-width: 1300px;                      /* 超宽屏上限 */
  height: calc(100vh - 60px);
  max-height: none;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: row;
  animation: modalIn 0.3s ease;
}

.detail-header {
  display: none;                          /* 顶部横条已移除 */
}
.detail-header-left { display: none; }
.detail-title { font-size: 17px; font-weight: 600; color: #1A1A1A; }
.detail-actions { display: none; }

/* --- 右侧操作按钮栏（替代原顶部横条） --- */
.detail-info-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: #FFFFFF;
  flex-shrink: 0;
}
.detail-info-actions .annotation-toggle { position: static; }
.detail-info-actions .close-btn { margin-left: auto; }
.detail-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  gap: 0;
  border-radius: 8px;
  border: none;
  background: rgba(0,0,0,0.05);
  font-size: 0;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
  color: #666666;
}
.detail-action-btn:hover { background: rgba(0,0,0,0.10); color: #333333; }

.detail-body {
  display: flex;
  overflow: hidden;
  flex: 1;
}
.detail-image-side {
  flex: 1;
  background: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* --- 图片视口（支持缩放拖拽） --- */
.detail-image-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;                      /* 裁剪超出部分 */
  cursor: grab;
}
.detail-image-viewport:active { cursor: grabbing; }
.detail-image-viewport img {
  max-width: none;
  max-height: none;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.15s ease;      /* 缩放过渡 */
  transform-origin: center center;
}
.detail-image-viewport.dragging img { transition: none; }  /* 拖拽时无过渡 */
/* --- 缩放/拖拽悬浮工具栏 --- */
.detail-zoom-toolbar {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.08);
  z-index: 10;
}
.zoom-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #AAAAAA;
  cursor: pointer;
  transition: all .15s ease;
}
.zoom-btn:hover { color: #1A1A1A; background: rgba(0,0,0,0.08); }
.zoom-ratio {
  font-size: 11px;
  font-weight: 600;
  color: #333333;
  min-width: 42px;
  text-align: center;
  font-family: 'Geist Mono', 'SF Mono', monospace;
}

.detail-info-side {
  width: 228px;                             /* 详情右侧信息栏宽度（在原 340px 基础上减少约三分之一） */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(0,0,0,0.08);
  background: #FFFFFF;                    /* 白色背景 */
}
.detail-info-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
}
.detail-info-content::-webkit-scrollbar { width: 6px; }
.detail-info-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
.detail-info-section { margin-bottom: 24px; }
.detail-info-label {
  font-size: 13px;
  font-weight: 500;
  color: #666666;                        /* 白色主题：次要文字 */
  margin-bottom: 8px;
}
.detail-info-value { font-size: 14px; line-height: 1.6; color: #333333; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-tag {
  height: 30px;
  padding: 0 12px;
  background: #F5F5F5;                    /* 浅灰标签 */
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: #333333;
  display: flex;
  align-items: center;
}
.detail-folder {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333333;                          /* 深色文字 */
}
.detail-date { font-family: 'Geist Mono', monospace; font-size: 13px; color: #999999; }

/* ========== Context Menu (右键菜单) ========== */
.context-menu {
  display: none;
  position: fixed;
  background: var(--card-bg);
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  padding: 4px;
  z-index: 10000;
  min-width: 160px;
}
.context-menu.show { display: block; animation: fadeIn 0.15s ease; }
.context-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
}
.context-item:hover { background: var(--hover-bg); }
.context-item.danger { color: var(--danger); }
.context-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ========== Empty State ========== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}
.empty-icon { margin-bottom: 16px; opacity: 0.3; }
.empty-title { font-size: 18px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.empty-desc { font-size: 14px; color: var(--text-placeholder); max-width: 400px; line-height: 1.6; }
.empty-paste-hint {
  margin-top: 24px;
  padding: 16px 32px;
  background: var(--primary-light);
  border-radius: var(--radius-btn);
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--text-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  animation: slideUp 0.3s ease;
  max-width: 300px;
}
.toast.success { background: var(--primary); }
.toast.error { background: var(--danger); }

/* ========== Text Annotation Input ========== */
.text-annotation-input {
  position: absolute;
  z-index: 20;
  background: rgba(255,255,255,0.95);
  border: 2px solid var(--primary);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  min-width: 100px;
}

/* ========== Sort Dropdown ========== */
.sort-dropdown {
  display: none;
  position: absolute;
  background: var(--card-bg);
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  padding: 4px;
  z-index: 9000;
  min-width: 140px;
}
.sort-dropdown.show { display: block; animation: fadeIn 0.15s ease; }
.sort-option {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
}
.sort-option:hover { background: var(--hover-bg); }
.sort-option.active { color: var(--primary); font-weight: 500; }

/* ========== New Folder Input ========== */
/* 通过调整右内边距将色钮左推，使30px色钮中心与数字中心横向对齐 */
.new-folder-input-wrapper {
  padding: 0 1px;
  height: 32px;
  display: flex;
  align-items: center;
}
.new-folder-input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

/* ========== 新建文件夹小弹窗 ========== */
.folder-create-overlay { z-index: 9000; }
.folder-create-card {
  width: 360px;
  max-width: calc(100vw - 40px);
  background: #FFFFFF;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  animation: fadeIn 0.2s ease;
  pointer-events: auto;
}
.folder-create-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.folder-create-title { font-size: 15px; font-weight: 600; color: #1A1A1A; }

.folder-create-step { display: flex; flex-direction: column; gap: 10px; }

.folder-type-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  background: #FFFFFF;
  cursor: pointer;
  text-align: left;
  color: #666666;
  transition: var(--transition);
}
.folder-type-btn:hover {
  border-color: var(--primary);
  background: #FAFAFA;
  color: var(--primary);
}
.folder-type-btn svg { flex-shrink: 0; }
.folder-type-text { display: flex; flex-direction: column; gap: 2px; }
.folder-type-name { font-size: 13.5px; font-weight: 600; color: #1A1A1A; }
.folder-type-desc { font-size: 11.5px; color: #999999; }

.folder-create-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
#folder-create-parent-select { margin-bottom: 14px; width: 100%; }
#folder-create-input { width: 100%; box-sizing: border-box; }

/* 文件夹名称栏 + 圆形颜色按钮 */
.folder-select-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.folder-select-row .new-folder-input { flex: 1; width: auto; min-width: 0; }
.folder-color-hint { font-size: 11px; color: var(--text-placeholder); margin-top: 6px; line-height: 1.4; }

.folder-color-btn {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px dashed #C8C8C8;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.folder-color-btn:hover { border-color: var(--primary); }
.folder-color-btn-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #C8C8C8;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}
.folder-color-btn.has-color { border-style: solid; border-color: rgba(0,0,0,0.12); }

/* 浮层 HSV 色彩选择器 */
.color-popover {
  position: fixed;
  z-index: 10000;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 174px;
  padding: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.18);
}
.color-popover.show { display: flex; }
.color-popover-wheel {
  width: 150px; height: 150px;
  border-radius: 50%;
  cursor: crosshair;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  touch-action: none;
}
.color-popover-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.color-popover-swatch {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: #6BA8A0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.10);
  flex-shrink: 0;
}
.color-popover-hex {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: #333333;
}
.color-popover-bright {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #808080, #6BA8A0);
  outline: none;
  cursor: pointer;
}
.color-popover-bright::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--primary);
  cursor: pointer;
}
.color-popover-bright::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--primary);
  cursor: pointer;
}
.color-popover-clear {
  width: 100%;
  padding: 7px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 8px;
  background: #F5F5F5;
  color: #666666;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.color-popover-clear:hover { background: #ECECEC; color: #333333; }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .sidebar { width: 220px; }
  .modal-card { width: calc(100vw - 40px); max-width: none; }
  .detail-card { width: calc(100vw - 40px); max-width: none; }
}
@media (max-width: 768px) {
  .sidebar { display: none; }
  .modal-card { flex-direction: column; height: auto; max-height: 90vh; width: calc(100vw - 32px); margin-right: 0; }
  .modal-left { width: 100%; height: 300px; }
  .modal-right { width: 100%; border-left: none; border-top: 1px solid rgba(0,0,0,0.08); }
  .modal-overlay { justify-content: center; padding-right: 20px; padding-left: 20px; }
  .detail-overlay { justify-content: center; padding: 0 12px; }
  .detail-card { flex-direction: column; height: 90vh; max-height: 90vh; }
  .detail-image-side { min-height: 260px; }
  .detail-info-side { width: 100%; border-left: none; border-top: 1px solid rgba(0,0,0,0.08); }
  .top-bar { padding: 0 16px; }
  .content-area { padding: 16px; }
  .floating-search { width: 60%; }
  .back-to-top { width: 40px; height: 40px; right: 16px; bottom: 16px; }
}

/* ========== 多格式素材：文件预览占位 ========== */
.file-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #F2F2F2;
  color: var(--fc, #8A8A8A);
}
.file-preview.kind-video { background: #EEF4FB; }
.file-preview.kind-pdf { background: #FBEDEB; }
.file-preview.kind-other { background: #F2F2F2; }
.file-preview-icon { color: var(--fc, #8A8A8A); display: flex; }
.file-preview-ext {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--fc, #8A8A8A);
}
/* 卡片内文件预览：撑满 .card-image */
.card-image .file-preview { height: auto; aspect-ratio: 4 / 3; }
.card-image .file-preview .file-preview-icon svg { width: 44px; height: 52px; }

/* 网格卡片中「其他文件」的横向信息卡片 */
.card-image.card-file-info {
  display: flex;
  align-items: stretch;
  height: auto;
  min-height: 0;
}
.card-image.card-file-info .file-card-other {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px;
  background: #F8F8F8;
  border-radius: var(--radius-card);
  height: auto;
  min-height: 0;
}
.card-image.card-file-info .file-card-icon {
  flex-shrink: 0;
  color: var(--fc, #8A8A8A);
  display: flex;
}
.card-image.card-file-info .file-card-icon svg { width: 48px; height: 60px; }
.card-image.card-file-info .file-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-image.card-file-info .file-card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
}
.card-image.card-file-info .file-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.card-image.card-file-info .file-card-type {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--fc, #8A8A8A);
  background: rgba(138,138,138,0.10);
  padding: 2px 6px;
  border-radius: 4px;
}
.card-image.card-file-info .file-card-size {
  font-size: 12px;
  color: var(--text-secondary);
}
.card-image.card-file-info .file-card-date {
  font-size: 12px;
  color: var(--text-placeholder);
}

/* 列表缩略图内文件预览 */
.list-thumb .file-preview { width: 100%; height: 100%; gap: 2px; }
.list-thumb .file-preview .file-preview-icon svg { width: 22px; height: 26px; }
.list-thumb .file-preview .file-preview-ext { font-size: 9px; }
/* 首页最爱区文件预览 */
.hero-file-preview { width: 100%; }
.hero-file-preview .file-preview { height: 100%; }
.hero-file-preview .file-preview .file-preview-icon svg { width: 36px; height: 42px; }

/* 卡片 / 列表内联预览：视频与 PDF 撑满容器 */
.file-preview-video,
.file-preview-preview {
  display: block;
  width: 100%;
  pointer-events: none;
}
.card-image .file-preview-video { height: auto; }
.card-image .file-preview-preview { width: 100%; height: auto; max-height: 520px; object-fit: contain; background: #FBEDEB; }
.list-thumb .file-preview-video,
.list-thumb .file-preview-preview {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
.card-image .file-preview-preview .file-preview {
  height: 100%;
  aspect-ratio: auto;
}
.file-preview-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.file-preview-preview iframe {
  border: none;
  display: block;
}
.detail-pdf-canvas-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FBEDEB;
}
.detail-media {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border: none;
}
.detail-media-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-placeholder, #999);
  font-size: 13px;
  background: #fff;
}
.detail-file-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: var(--fc, #8A8A8A);
}
.detail-file-icon { color: var(--fc, #8A8A8A); }
.detail-file-name { font-size: 15px; font-weight: 600; color: var(--text-primary); max-width: 80%; word-break: break-all; }
.detail-file-ext { font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; }
.detail-file-preview.kind-video { color: #4A90D9; }
.detail-file-preview.kind-pdf { color: #E0524D; }
.detail-file-preview.kind-other { color: #8A8A8A; }
.detail-file-download { margin-top: 4px; }
/* 编辑弹窗文件预览 */
.edit-file-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  color: var(--fc, #8A8A8A);
}
.edit-file-icon { color: var(--fc, #8A8A8A); }
.edit-file-ext { font-family: 'Geist Mono', monospace; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; }
.edit-file-name { font-size: 13px; color: var(--text-secondary); max-width: 80%; word-break: break-all; }
.edit-file-preview.kind-video { color: #4A90D9; }
.edit-file-preview.kind-pdf { color: #E0524D; }
.edit-file-preview.kind-other { color: #8A8A8A; }
/* 替换最爱弹窗内的文件预览 */
.replace-favorite-item .file-preview { height: 100%; gap: 4px; }
.replace-favorite-item .file-preview-icon svg { width: 30px; height: 34px; }
.replace-favorite-item .file-preview-ext { font-size: 10px; }

