:root {
  --bg-primary: #161618;
  --bg-secondary: #131315;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-solid: #1c1c1f;
  --bg-hover: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(139, 92, 246, 0.3);
  --text-primary: #f5f5f7;
  --text-secondary: #8e8e93;
  --text-muted: #5a5a5e;
  --accent-primary: #8b5cf6;
  --accent-secondary: #a78bfa;
  --accent-light: #c4b5fd;
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --accent-glow: rgba(139, 92, 246, 0.4);
  --accent-bg: rgba(139, 92, 246, 0.12);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-secondary); text-decoration: none; }
a:hover { color: var(--accent-light); }

/* Layout */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 210px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}
.sidebar-logo {
  padding: 22px 20px;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  letter-spacing: -0.3px;
}
.sidebar-logo .logo-icon {
  font-size: 24px;
  margin-right: 10px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-nav { flex: 1; padding: 14px 12px; overflow-y: auto; }
.nav-item {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: var(--radius-md);
  margin-bottom: 2px;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active {
  background: var(--accent-bg);
  color: var(--text-primary);
  font-weight: 600;
}
.nav-item.active .icon { color: var(--accent-secondary); }
.nav-item .icon { margin-right: 11px; font-size: 18px; color: var(--text-muted); }
.nav-item:hover .icon { color: var(--text-secondary); }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border-color); font-size: 11px; color: var(--text-muted); }

.main-content {
  flex: 1;
  margin-left: 210px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  height: 64px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.topbar-search .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
}
.topbar-search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s;
}
.topbar-search input:focus {
  outline: none;
  border-color: var(--border-hover);
  background: var(--bg-hover);
}
.topbar-search input::placeholder { color: var(--text-muted); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: transparent;
}
.topbar-icon-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.topbar-user { display: flex; align-items: center; gap: 10px; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--border-color); }
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: #fff;
  cursor: pointer;
}
.user-name { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.logout-btn { font-size: 13px; color: var(--text-muted); cursor: pointer; padding: 6px 10px; border-radius: var(--radius-sm); transition: all 0.2s; }
.logout-btn:hover { color: var(--danger); background: rgba(239,68,68,0.1); }

.page-content { flex: 1; padding: 28px; }

/* Page Header */
.page-header { margin-bottom: 28px; }
.page-title { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 6px; }
.page-subtitle { font-size: 15px; color: var(--text-secondary); }

/* Cards - Glassmorphism */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.card:hover { border-color: var(--border-hover); }
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.card-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-title .icon { color: var(--accent-secondary); font-size: 18px; }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stat-card::before {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--bg-hover);
  border-radius: 20px;
  width: fit-content;
}
.stat-value {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-primary);
  line-height: 1;
}
.stat-value .unit { font-size: 20px; color: var(--text-secondary); font-weight: 500; }
.stat-progress { margin-top: 14px; height: 6px; background: var(--bg-hover); border-radius: 3px; overflow: hidden; }
.stat-progress-bar { height: 100%; background: var(--accent-gradient); border-radius: 3px; transition: width 0.5s ease; }

/* Dashboard Content Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

/* Project List Items */
.project-list-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.project-list-item:hover { border-color: var(--border-hover); background: rgba(139, 92, 246, 0.06); }
.project-list-item:last-child { margin-bottom: 0; }
.project-item-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center;
  margin-right: 12px;
  color: var(--accent-secondary);
  flex-shrink: 0;
}
.project-item-info { flex: 1; min-width: 0; }
.project-item-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.project-item-progress { display: flex; align-items: center; gap: 10px; }
.project-item-bar { flex: 1; height: 4px; background: var(--bg-card-solid); border-radius: 2px; overflow: hidden; max-width: 120px; }
.project-item-bar-fill { height: 100%; background: var(--accent-gradient); border-radius: 2px; }
.project-item-meta { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* Ring Progress */
.ring-progress-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
}
.ring-progress {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 20px;
}
.ring-progress svg { transform: rotate(-90deg); }
.ring-progress-bg { fill: none; stroke: var(--bg-hover); stroke-width: 14; }
.ring-progress-bar {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
}
.ring-progress-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.ring-progress-value { font-size: 36px; font-weight: 700; letter-spacing: -1px; }
.ring-progress-label { font-size: 14px; color: var(--text-secondary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.2px;
}
.btn-primary { background: var(--accent-gradient); color: #fff; box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3); }
.btn-primary:hover { opacity: 0.92; box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-hover); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { border-color: var(--border-hover); background: var(--accent-bg); }
.btn-danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; font-weight: 500; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-hover);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 120px; resize: vertical; font-family: inherit; }

/* Tables */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}
td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}
tr:hover td { background: var(--bg-hover); }
tr:last-child td { border-bottom: none; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-success { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-info { background: rgba(59,130,246,0.15); color: var(--info); }
.badge-primary { background: var(--accent-bg); color: var(--accent-secondary); }

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at top, #1e1b2e 0%, var(--bg-primary) 60%);
  padding: 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.auth-logo .logo-icon {
  font-size: 28px;
  margin-right: 10px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-subtitle { text-align: center; color: var(--text-secondary); font-size: 14px; margin-bottom: 32px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 13px; color: var(--text-muted); }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* Utility */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-2 { margin-top: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 16px; }
.w-full { width: 100%; }

/* Upload area */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.upload-area:hover { border-color: var(--accent-primary); background: var(--accent-bg); }
.upload-area-icon { font-size: 48px; color: var(--accent-secondary); margin-bottom: 14px; }
.upload-area-text { color: var(--text-secondary); font-size: 14px; }

/* Pagination */
.pagination { display: flex; gap: 6px; margin-top: 24px; justify-content: center; }
.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.pagination a:hover { border-color: var(--accent-primary); color: var(--accent-secondary); }
.pagination .current { background: var(--accent-gradient); color: #fff; border-color: transparent; }

/* Toast */
.toast-container { position: fixed; top: 24px; right: 24px; z-index: 9999; }
.toast {
  padding: 14px 22px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.3s ease;
}
.toast-success { background: var(--success); color: #fff; }
.toast-error { background: var(--danger); color: #fff; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* SVG Icons */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon svg { width: 100%; height: 100%; }
.icon-sm { font-size: 16px; }
.icon-md { font-size: 20px; }
.icon-lg { font-size: 28px; }
.icon-xl { font-size: 36px; }
.btn .icon { margin-right: 7px; }
.card-icon { font-size: 32px; margin-bottom: 16px; color: var(--accent-secondary); }
.feature-icon { font-size: 32px; margin-bottom: 16px; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pricing-icon { font-size: 24px; margin-bottom: 12px; }
.stat-icon { font-size: 24px; color: var(--accent-secondary); }
.step-icon { font-size: 24px; color: #fff; }
.logo-icon { font-size: 22px; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-right: 8px; }
.table-action .icon { font-size: 16px; }
.badge .icon { font-size: 12px; margin-right: 4px; }
.empty-state-icon { font-size: 64px; color: var(--text-muted); margin-bottom: 16px; }

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .main-content { margin-left: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .topbar-search { display: none; }
}

/* ========== 新增功能样式 ========== */

/* 资产库 */
.asset-library-layout { display: flex; gap: 20px; min-height: 600px; }
.asset-sidebar { width: 220px; flex-shrink: 0; }
.asset-category-item {
  display: flex; align-items: center; padding: 10px 14px;
  border-radius: var(--radius-md); cursor: pointer; margin-bottom: 4px;
  color: var(--text-secondary); font-size: 14px; transition: all 0.2s;
}
.asset-category-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.asset-category-item.active { background: var(--accent-bg); color: var(--text-primary); font-weight: 600; }
.asset-category-item .icon { margin-right: 10px; font-size: 18px; }
.asset-category-item .count { margin-left: auto; font-size: 12px; color: var(--text-muted); background: var(--bg-hover); padding: 2px 8px; border-radius: 10px; }
.asset-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; align-content: start; }
.asset-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: all 0.25s; position: relative;
}
.asset-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.asset-card.selected { border-color: var(--accent-primary); box-shadow: 0 0 0 2px var(--accent-bg); }
.asset-card-thumb {
  height: 140px; background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.asset-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.asset-card-thumb .icon { font-size: 40px; color: var(--text-muted); }
.asset-card-body { padding: 12px; }
.asset-card-name { font-size: 13px; font-weight: 600; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.asset-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: var(--bg-hover); color: var(--text-secondary);
}
.asset-checkbox {
  position: absolute; top: 8px; left: 8px; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3); border-radius: 4px;
  background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center;
  z-index: 2;
}
.asset-card.selected .asset-checkbox, .asset-card:hover .asset-checkbox { display: flex; }
.asset-checkbox.checked { background: var(--accent-primary); border-color: var(--accent-primary); }

/* 素材预览 - 灯箱 */
.lightbox-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-content { max-width: 90vw; max-height: 90vh; position: relative; }
.lightbox-content img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-lg); }
.lightbox-close {
  position: absolute; top: -40px; right: 0; width: 36px; height: 36px;
  background: rgba(255,255,255,0.1); border: none; border-radius: 50%;
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-info {
  position: absolute; bottom: -50px; left: 0; right: 0;
  color: var(--text-secondary); font-size: 13px; text-align: center;
}

/* 视频播放器 */
.video-player {
  background: #000; border-radius: var(--radius-lg); overflow: hidden;
  position: relative;
}
.video-player video { width: 100%; display: block; }
.video-controls {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: rgba(0,0,0,0.8);
}
.video-progress {
  flex: 1; height: 4px; background: rgba(255,255,255,0.2);
  border-radius: 2px; cursor: pointer; position: relative;
}
.video-progress-fill { height: 100%; background: var(--accent-gradient); border-radius: 2px; }
.video-time { font-size: 12px; color: var(--text-secondary); min-width: 90px; text-align: center; }
.video-btn {
  background: none; border: none; color: #fff; cursor: pointer;
  padding: 4px; display: flex; align-items: center; justify-content: center;
}
.video-btn:hover { color: var(--accent-secondary); }

/* 审片批注 */
.review-layout { display: flex; gap: 20px; height: calc(100vh - 160px); }
.review-player-area { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.review-canvas-wrap {
  position: relative; background: #000; border-radius: var(--radius-lg);
  overflow: hidden; flex: 1; display: flex; align-items: center; justify-content: center;
}
.review-canvas-wrap video, .review-canvas-wrap img { max-width: 100%; max-height: 100%; }
.annotation-layer {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  cursor: crosshair;
}
.annotation-box {
  position: absolute; border: 2px solid var(--accent-primary);
  background: rgba(139, 92, 246, 0.15); border-radius: 4px;
  cursor: pointer; transition: all 0.2s;
}
.annotation-box:hover { border-color: var(--accent-secondary); background: rgba(139, 92, 246, 0.25); }
.annotation-box.active { border-color: var(--warning); box-shadow: 0 0 0 2px rgba(245,158,11,0.3); }
.annotation-label {
  position: absolute; top: -20px; left: 0; background: var(--accent-primary);
  color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 3px;
  white-space: nowrap;
}
.review-sidebar { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.annotation-list { flex: 1; overflow-y: auto; }
.annotation-item {
  padding: 12px; background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); margin-bottom: 8px; cursor: pointer; transition: all 0.2s;
}
.annotation-item:hover { border-color: var(--border-hover); }
.annotation-item.active { border-color: var(--accent-primary); background: var(--accent-bg); }
.annotation-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.annotation-time { font-size: 12px; color: var(--accent-secondary); font-weight: 600; }
.annotation-author { font-size: 12px; color: var(--text-muted); }
.annotation-content { font-size: 13px; color: var(--text-primary); line-height: 1.5; }
.annotation-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; }

/* 版本管理 */
.version-timeline { position: relative; padding-left: 30px; }
.version-timeline::before {
  content: ''; position: absolute; left: 10px; top: 0; bottom: 0;
  width: 2px; background: var(--border-color);
}
.version-item {
  position: relative; padding: 16px; background: var(--bg-card);
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  margin-bottom: 12px; transition: all 0.2s;
}
.version-item:hover { border-color: var(--border-hover); }
.version-item::before {
  content: ''; position: absolute; left: -26px; top: 20px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-primary); border: 2px solid var(--bg-primary);
}
.version-item.milestone::before { background: var(--warning); }
.version-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.version-number { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.version-badge { font-size: 11px; padding: 2px 10px; border-radius: 10px; }
.version-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.version-desc { font-size: 13px; color: var(--text-secondary); }

/* 版本对比 */
.compare-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-panel {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
}
.compare-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border-color);
  display: flex; justify-content: space-between; align-items: center;
}
.compare-body { padding: 18px; overflow-y: auto; max-height: 600px; font-size: 13px; line-height: 1.8; }
.diff-add { background: rgba(16,185,129,0.15); color: var(--success); padding: 2px 4px; border-radius: 3px; }
.diff-remove { background: rgba(239,68,68,0.15); color: var(--danger); padding: 2px 4px; border-radius: 3px; text-decoration: line-through; }

/* 分镜画布 */
.canvas-container {
  position: relative; width: 100%; height: calc(100vh - 200px);
  background: var(--bg-secondary); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border-color);
}
.canvas-world {
  position: absolute; top: 0; left: 0; width: 5000px; height: 5000px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px; transform-origin: 0 0;
}
.canvas-toolbar {
  position: absolute; top: 12px; left: 12px; z-index: 10;
  display: flex; gap: 6px; background: var(--bg-card-solid);
  padding: 6px; border-radius: var(--radius-md); border: 1px solid var(--border-color);
}
.canvas-toolbar button {
  width: 32px; height: 32px; background: transparent; border: none;
  color: var(--text-secondary); cursor: pointer; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.canvas-toolbar button:hover { background: var(--bg-hover); color: var(--text-primary); }
.canvas-zoom-info {
  position: absolute; bottom: 12px; right: 12px; z-index: 10;
  background: var(--bg-card-solid); padding: 6px 14px; border-radius: var(--radius-md);
  font-size: 12px; color: var(--text-secondary); border: 1px solid var(--border-color);
}
.storyboard-node {
  position: absolute; width: 200px; background: var(--bg-card-solid);
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  cursor: move; user-select: none; transition: box-shadow 0.2s;
}
.storyboard-node:hover { border-color: var(--border-hover); }
.storyboard-node.dragging { box-shadow: 0 8px 24px rgba(0,0,0,0.5); z-index: 100; }
.storyboard-node.selected { border-color: var(--accent-primary); box-shadow: 0 0 0 2px var(--accent-bg); }
.storyboard-node-header {
  padding: 8px 12px; border-bottom: 1px solid var(--border-color);
  font-size: 12px; font-weight: 600; color: var(--accent-secondary);
  display: flex; justify-content: space-between; align-items: center;
}
.storyboard-node-body { padding: 10px 12px; font-size: 12px; color: var(--text-secondary); line-height: 1.5; max-height: 80px; overflow: hidden; }
.canvas-connection { position: absolute; pointer-events: none; }

/* 通知中心 */
.notification-panel {
  position: absolute; top: 50px; right: 0; width: 360px;
  background: var(--bg-card-solid); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  z-index: 200; overflow: hidden; display: none;
}
.notification-panel.show { display: block; animation: slideDown 0.2s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.notification-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border-color);
  display: flex; justify-content: space-between; align-items: center;
}
.notification-list { max-height: 400px; overflow-y: auto; }
.notification-item {
  padding: 14px 18px; border-bottom: 1px solid var(--border-color);
  cursor: pointer; transition: background 0.2s; display: flex; gap: 12px;
}
.notification-item:hover { background: var(--bg-hover); }
.notification-item.unread { background: var(--accent-bg); }
.notification-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-hover); color: var(--accent-secondary);
}
.notification-content { flex: 1; min-width: 0; }
.notification-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.notification-text { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notification-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.notification-badge {
  position: absolute; top: 4px; right: 4px; width: 8px; height: 8px;
  background: var(--danger); border-radius: 50%;
}

/* 模态框 */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 500;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: var(--bg-card-solid); border: 1px solid var(--border-color);
  border-radius: var(--radius-xl); width: 100%; max-width: 560px;
  max-height: 85vh; overflow: hidden; display: flex; flex-direction: column;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header {
  padding: 18px 24px; border-bottom: 1px solid var(--border-color);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-title { font-size: 17px; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px; background: transparent; border: none;
  color: var(--text-muted); cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer {
  padding: 16px 24px; border-top: 1px solid var(--border-color);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* 批量操作栏 */
.batch-bar {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--bg-card-solid); border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl); padding: 12px 24px;
  display: flex; align-items: center; gap: 16px; z-index: 100;
  box-shadow: var(--shadow-lg); animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.batch-count { font-size: 14px; font-weight: 600; color: var(--accent-secondary); }

/* 统计图表 */
.chart-bar-container { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding: 20px 0; }
.chart-bar {
  flex: 1; background: var(--accent-gradient); border-radius: 4px 4px 0 0;
  min-height: 4px; transition: height 0.5s ease; position: relative;
}
.chart-bar-label { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.chart-bar-value { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--text-secondary); font-weight: 600; }

/* 社区广场 */
.community-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.community-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: all 0.25s;
}
.community-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.community-cover { height: 160px; background: var(--bg-secondary); position: relative; overflow: hidden; }
.community-cover img { width: 100%; height: 100%; object-fit: cover; }
.community-info { padding: 16px; }
.community-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.community-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); }

/* 移动端适配增强 */
@media (max-width: 768px) {
  .asset-library-layout { flex-direction: column; }
  .asset-sidebar { width: 100%; display: flex; overflow-x: auto; gap: 4px; }
  .asset-category-item { flex-shrink: 0; }
  .review-layout { flex-direction: column; height: auto; }
  .review-sidebar { width: 100%; }
  .compare-layout { grid-template-columns: 1fr; }
  .canvas-container { height: 70vh; }
  .notification-panel { width: calc(100vw - 32px); right: 16px; }
  .modal { margin: 16px; max-width: none; }
}

/* 拖拽上传 */
.drag-over { border-color: var(--accent-primary) !important; background: var(--accent-bg) !important; }

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
