/* Tailwind CSS - 设计师工作室精简版 */
/* 基础重置 */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

/* 基础样式 */
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
  margin: 0;
  font-family: inherit;
  line-height: inherit;
}

/* 布局类 */
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }

.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }

/* 响应式布局 */
@media (min-width: 768px) {
  .md\\:hidden { display: none; }
  .md\\:flex { display: flex; }
  .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\\:block { display: block; }
  .md\\:ml-64 { margin-left: 16rem; }
}

@media (min-width: 1024px) {
  .lg\\:flex { display: flex; }
  .lg\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\\:items-center { align-items: center; }
  .lg\\:justify-between { justify-content: space-between; }
  .lg\\:p-8 { padding: 2rem; }
}

/* 间距 */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }

.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.ml-0 { margin-left: 0; }
.ml-3 { margin-left: 0.75rem; }

.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.75rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }

.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* 尺寸 */
.w-3 { width: 0.75rem; }
.w-5 { width: 1.25rem; }
.w-10 { width: 2.5rem; }
.w-16 { width: 4rem; }
.w-48 { width: 12rem; }
.w-full { width: 100%; }

.h-3 { height: 0.75rem; }
.h-5 { height: 1.25rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.h-64 { height: 16rem; }
.h-full { height: 100%; }

.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* 颜色 - 背景 */
.bg-white { background-color: rgb(255 255 255); }
.bg-gray-100 { background-color: rgb(243 244 246); }
.bg-gray-200 { background-color: rgb(229 231 235); }
.bg-green-50 { background-color: rgb(236 253 245); }
.bg-green-100 { background-color: rgb(209 250 229); }
.bg-green-500 { background-color: rgb(34 197 94); }
.bg-green-600 { background-color: rgb(22 163 74); }
.bg-green-700 { background-color: rgb(21 128 61); }
.bg-blue-50 { background-color: rgb(239 246 255); }
.bg-blue-100 { background-color: rgb(219 234 254); }
.bg-blue-500 { background-color: rgb(59 130 246); }
.bg-blue-600 { background-color: rgb(37 99 235); }
.bg-purple-50 { background-color: rgb(250 245 255); }
.bg-purple-100 { background-color: rgb(243 232 255); }
.bg-purple-500 { background-color: rgb(168 85 247); }
.bg-purple-600 { background-color: rgb(147 51 234); }
.bg-pink-500 { background-color: rgb(236 72 153); }
.bg-red-50 { background-color: rgb(254 242 242); }
.bg-red-100 { background-color: rgb(254 226 226); }
.bg-red-500 { background-color: rgb(239 68 68); }
.bg-red-600 { background-color: rgb(220 38 38); }
.bg-yellow-50 { background-color: rgb(254 249 195); }
.bg-yellow-100 { background-color: rgb(254 240 138); }
.bg-yellow-500 { background-color: rgb(234 179 8); }
.bg-yellow-600 { background-color: rgb(202 138 4); }

/* 颜色 - 文本 */
.text-white { color: rgb(255 255 255); }
.text-gray-400 { color: rgb(156 163 175); }
.text-gray-500 { color: rgb(107 114 128); }
.text-gray-600 { color: rgb(75 85 99); }
.text-gray-700 { color: rgb(55 65 81); }
.text-gray-900 { color: rgb(17 24 39); }
.text-green-600 { color: rgb(22 163 74); }
.text-green-700 { color: rgb(21 128 61); }
.text-blue-600 { color: rgb(37 99 235); }
.text-blue-700 { color: rgb(29 78 216); }
.text-purple-600 { color: rgb(147 51 234); }
.text-purple-800 { color: rgb(107 33 168); }
.text-red-600 { color: rgb(220 38 38); }
.text-red-700 { color: rgb(185 28 28); }
.text-yellow-600 { color: rgb(202 138 4); }
.text-yellow-700 { color: rgb(161 98 7); }

/* 字体大小 */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

/* 字体粗细 */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* 边框 */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-gray-200 { border-color: rgb(229 231 235); }
.border-gray-300 { border-color: rgb(209 213 219); }

/* 圆角 */
.rounded { border-radius: 0.25rem; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

/* 阴影 */
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

/* 渐变背景 */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-blue-500 { --tw-gradient-from: #3b82f6; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0)); }
.to-purple-500 { --tw-gradient-to: #a855f7; }
.from-purple-500 { --tw-gradient-from: #a855f7; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(168, 85, 247, 0)); }
.to-pink-500 { --tw-gradient-to: #ec4899; }

/* 动画 */
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-spin { animation: spin 1s linear-infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 过渡 */
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* 悬停状态 */
.hover\\:bg-gray-200:hover { background-color: rgb(229 231 235); }
.hover\\:bg-red-50:hover { background-color: rgb(254 242 242); }
.hover\\:text-purple-800:hover { color: rgb(107 33 168); }

/* 相对定位 */
.relative { position: relative; }
.absolute { position: absolute; }

/* Z-index */
.z-50 { z-index: 50; }

/* 光标 */
.cursor-pointer { cursor: pointer; }

/* 溢出 */
.overflow-hidden { overflow: hidden; }

/* 表单控件 */
.input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgb(209 213 219);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: rgb(59 130 246);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 按钮基础样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: rgb(59 130 246);
  color: rgb(255 255 255);
}

.btn-primary:hover {
  background-color: rgb(37 99 235);
}

.btn-secondary {
  background-color: rgb(107 114 128);
  color: rgb(255 255 255);
}

.btn-secondary:hover {
  background-color: rgb(75 85 99);
}

/* 卡片样式 */
.card {
  background-color: rgb(255 255 255);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  border: 1px solid rgb(229 231 235);
}

/* 工具栏样式 */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: rgb(255 255 255);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* 筛选和排序 */
.modern-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgb(209 213 219);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background-color: rgb(255 255 255);
}

/* 搜索框 */
.search-container {
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  color: rgb(156 163 175);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  border: 1px solid rgb(209 213 219);
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

/* 视图切换 */
.view-switcher {
  display: flex;
  background-color: rgb(243 244 246);
  border-radius: 0.5rem;
  padding: 0.25rem;
  gap: 0.25rem;
}

.view-btn {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.view-btn.active {
  background-color: rgb(59 130 246);
  color: rgb(255 255 255);
}

.view-btn:hover:not(.active) {
  background-color: rgb(229 231 235);
}

/* 导航链接 */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: rgb(55 65 81);
  transition: all 0.2s;
}

.nav-link:hover {
  background-color: rgb(243 244 246);
}

.nav-link.active {
  background-color: rgb(59 130 246);
  color: rgb(255 255 255);
}

.nav-link .icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 导航徽章 */
.nav-badge {
  margin-left: auto;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgb(239 68 68);
  color: rgb(255 255 255);
}

.nav-badge.earnings {
  background-color: rgb(34 197 94);
}

/* 内容区域 */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

/* 骨架屏 */
.skeleton-loading .skeleton-card {
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: rgb(255 255 255);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  margin-bottom: 1rem;
}

.skeleton {
  background-color: rgb(243 244 246);
  border-radius: 0.25rem;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-image {
  height: 12rem;
  margin-bottom: 1rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 70%;
  margin-bottom: 0.5rem;
}

.skeleton-text {
  height: 1rem;
  width: 90%;
  margin-bottom: 0.5rem;
}

.skeleton-button {
  height: 2rem;
  width: 30%;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgb(17 24 39);
  margin-bottom: 0.5rem;
}

.empty-state-description {
  color: rgb(107 114 128);
  margin-bottom: 2rem;
}

.empty-state-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* 分页 */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem;
}

.pagination-info {
  color: rgb(107 114 128);
  font-size: 0.875rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgb(209 213 219);
  border-radius: 0.375rem;
  background-color: rgb(255 255 255);
  color: rgb(55 65 81);
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background-color: rgb(243 244 246);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn.active {
  background-color: rgb(59 130 246);
  color: rgb(255 255 255);
  border-color: rgb(59 130 246);
}

.pagination-numbers {
  display: flex;
  gap: 0.25rem;
  margin: 0 0.5rem;
}

/* 统计卡片 */
.stat-card {
  background-color: rgb(255 255 255);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px 0 rgb(0 0 0 / 0.15);
}

/* 新的统计卡片样式 */
.stats-overview {
  background: linear-gradient(135deg, rgb(248 250 252) 0%, rgb(241 245 249) 100%);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgb(226 232 240);
}

.stats-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(15 23 42);
  margin-bottom: 0.5rem;
}

.stats-header p {
  color: rgb(100 116 139);
  font-size: 0.875rem;
}

.stats-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .stats-grid {
    gap: 1.5rem;
  }
}

.stats-card {
  background: rgb(255 255 255);
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  border: 1px solid rgb(241 245 249);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.stats-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  border-color: rgb(226 232 240);
}

.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.stats-card-primary::before { background: linear-gradient(90deg, rgb(168 85 247), rgb(147 51 234), rgb(168 85 247)); }
.stats-card-success::before { background: linear-gradient(90deg, rgb(34 197 94), rgb(22 163 74), rgb(34 197 94)); }
.stats-card-warning::before { background: linear-gradient(90deg, rgb(245 158 11), rgb(217 119 6), rgb(245 158 11)); }
.stats-card-info::before { background: linear-gradient(90deg, rgb(59 130 246), rgb(37 99 235), rgb(59 130 246)); }

.stats-card-inner {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stats-icon {
  flex-shrink: 0;
}

.icon-bg {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.stats-content {
  flex: 1;
  min-width: 0;
}

.stats-value {
  font-size: 2rem;
  font-weight: 800;
  color: rgb(15 23 42);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stats-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(51 65 85);
  margin-bottom: 0.5rem;
}

.stats-trend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.trend-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(100 116 139);
}

.trend-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  background-color: rgb(241 245 249);
  color: rgb(51 65 85);
}

.stats-card-primary .trend-badge { background-color: rgb(250 245 255); color: rgb(147 51 234); }
.stats-card-success .trend-badge { background-color: rgb(236 253 245); color: rgb(22 163 74); }
.stats-card-warning .trend-badge { background-color: rgb(254 249 195); color: rgb(202 138 4); }
.stats-card-info .trend-badge { background-color: rgb(239 246 255); color: rgb(37 99 235); }

/* 动画效果 */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 640px) {
  .stats-overview {
    padding: 1.5rem;
  }

  .stats-card-inner {
    padding: 1rem;
    gap: 0.75rem;
  }

  .icon-bg {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .stats-value {
    font-size: 1.5rem;
  }

  .stats-label {
    font-size: 0.8125rem;
  }
}

@media (min-width: 1024px) {
  .stats-card-inner {
    padding: 2rem;
  }

  .stats-value {
    font-size: 2.25rem;
  }
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 表单标签 */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(17 24 39);
  margin-bottom: 0.5rem;
}

/* 消息项 */
.message-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid rgb(243 244 246);
}

.message-item.unread {
  background-color: rgb(239 246 255);
}

/* 帮助项 */
.help-section {
  margin-bottom: 2rem;
}

.help-item {
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: rgb(249 250 251);
  margin-bottom: 0.5rem;
}

.help-item-title {
  font-weight: 600;
  color: rgb(17 24 39);
  margin-bottom: 0.5rem;
}

.help-item-content {
  color: rgb(107 114 128);
  font-size: 0.875rem;
}

/* 标签页 */
.format-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: rgb(243 244 246);
  color: rgb(55 65 81);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.format-tag.size-tag {
  background-color: rgb(254 242 242);
  color: rgb(185 28 28);
}

/* 上传区域 */
.upload-area-modern {
  border: 2px dashed rgb(209 213 219);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.upload-area-modern:hover {
  border-color: rgb(59 130 246);
  background-color: rgb(239 246 255);
}

.upload-area-modern.drag-over {
  border-color: rgb(34 197 94);
  background-color: rgb(236 253 245);
}

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.upload-icon-wrapper {
  width: 4rem;
  height: 4rem;
  background-color: rgb(239 246 255);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-icon {
  font-size: 2rem;
  color: rgb(59 130 246);
}

.upload-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgb(17 24 39);
}

.upload-subtitle {
  color: rgb(107 114 128);
}

.upload-formats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* 进度条 */
.progress-bar {
  width: 100%;
  height: 0.5rem;
  background-color: rgb(243 244 246);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-modern {
  height: 100%;
  background-color: rgb(59 130 246);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* 图表容器 */
.chart-container {
  height: 300px;
}

/* 指标卡片 */
.metric-card {
  background-color: rgb(255 255 255);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.metric-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-content {
  flex: 1;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(17 24 39);
}

.metric-label {
  font-size: 0.875rem;
  color: rgb(107 114 128);
}

.metric-change {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.metric-change.positive {
  color: rgb(22 163 74);
}

.metric-change.negative {
  color: rgb(220 38 38);
}

/* 移动端优化 */
@media (max-width: 767px) {
  .mobile-menu-btn {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .toolbar-left,
  .toolbar-right {
    justify-content: center;
  }

  .upload-title {
    font-size: 1rem;
  }

  .pagination-container {
    flex-direction: column;
    gap: 1rem;
  }
}

/* 响应式网格 */
@media (min-width: 640px) {
  .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgb(243 244 246);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: rgb(209 213 219);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(156 163 175);
}

/* 用户菜单下拉样式 */
#user-dropdown {
  min-width: 12rem;
  background: rgb(255 255 255);
  border: 1px solid rgb(229 231 235);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  z-index: 50;
}

/* 编辑器样式 */
.editor-toolbar {
  background: rgb(255 255 255);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  border: 1px solid rgb(241 245 249);
}

.editor-workspace {
  min-height: 600px;
}

.tool-group {
  padding: 1rem 0;
  border-bottom: 1px solid rgb(243 244 246);
}

.tool-group:last-child {
  border-bottom: none;
}

.tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem;
  border: 1px solid rgb(229 231 235);
  border-radius: 0.5rem;
  background: rgb(255 255 255);
  color: rgb(55 65 81);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 3rem;
}

.tool-btn:hover {
  border-color: rgb(59 130 246);
  background: rgb(239 246 255);
  color: rgb(59 130 246);
}

.tool-btn:active {
  transform: scale(0.95);
}

.tool-btn i {
  font-size: 1rem;
  margin-bottom: 0.125rem;
}

.editor-canvas-container {
  position: relative;
  background: rgb(249 250 252);
  min-height: 500px;
  border-radius: 0 0 0.5rem 0.5rem;
  overflow: hidden;
}

.editor-canvas {
  position: relative;
  width: 800px;
  height: 600px;
  background: rgb(255 255 255);
  margin: 2rem auto;
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}

.canvas-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgb(156 163 175);
}

.canvas-placeholder i {
  opacity: 0.5;
}

/* 编辑器元素样式 */
.editor-element {
  position: absolute;
  cursor: move;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.editor-element:hover {
  border-color: rgb(59 130 246);
}

.editor-element.selected {
  border-color: rgb(59 130 246);
  box-shadow: 0 0 0 1px rgb(59 130 246);
}

.editor-element.selected::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  width: 6px;
  height: 6px;
  background: rgb(59 130 246);
  border-radius: 50%;
  border: 2px solid rgb(255 255 255);
}

.editor-element.selected::before {
  content: '';
  position: absolute;
  top: -6px;
  right: -6px;
  width: 6px;
  height: 6px;
  background: rgb(59 130 246);
  border-radius: 50%;
  border: 2px solid rgb(255 255 255);
}

.element-resize-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgb(59 130 246);
  border: 1px solid rgb(255 255 255);
  border-radius: 50%;
  cursor: nw-resize;
  opacity: 0;
  transition: opacity 0.2s;
}

.editor-element.selected .element-resize-handle {
  opacity: 1;
}

.element-resize-handle.br {
  bottom: -4px;
  right: -4px;
  cursor: nw-resize;
}

.element-resize-handle.bl {
  bottom: -4px;
  left: -4px;
  cursor: ne-resize;
}

.element-resize-handle.tr {
  top: -4px;
  right: -4px;
  cursor: ne-resize;
}

.element-resize-handle.tl {
  top: -4px;
  left: -4px;
  cursor: nw-resize;
}

/* 响应式编辑器 */
@media (max-width: 1024px) {
  .editor-workspace .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .editor-canvas {
    width: 100%;
    height: 400px;
    margin: 1rem auto;
  }
}

@media (max-width: 640px) {
  .editor-toolbar .flex {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .editor-toolbar .flex > div:last-child {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tool-group .grid {
    grid-template-columns: 1fr;
  }

  .tool-btn {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .tool-btn i {
    margin-bottom: 0;
  }
}