/* 优化版CSS - 压缩和性能优化 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #165DFF;
  --secondary: #36CFC9;
  --neutral-100: #F2F3F5;
  --neutral-200: #E5E6EB;
  --neutral-300: #C9CDD4;
  --neutral-400: #86909C;
  --neutral-500: #4E5969;
  --neutral-600: #272E3B;
  --neutral-700: #1D2129;
}

/* 性能优化的基础样式 */
.content-auto { content-visibility: auto; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--primary), var(--secondary)); }
.from-primary { --tw-gradient-from: var(--primary); }
.to-secondary { --tw-gradient-to: var(--secondary); }

/* 强制显示品牌图标 */
.w-8 { width: 2rem !important; }
.h-8 { height: 2rem !important; }
.w-6 { width: 1.5rem !important; }
.h-6 { height: 1.5rem !important; }
.rounded-lg { border-radius: 0.5rem !important; }

.bg-gradient-to-r.from-primary.to-secondary {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  display: block !important;
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 0.5rem !important;
}

.w-6.h-6.rounded-lg.bg-gradient-to-r.from-primary.to-secondary {
  background: linear-gradient(135deg, #667eea, #764ba2) !important;
  display: block !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  border-radius: 0.5rem !important;
}

/* 统计脚本样式优化 */
#LA-DATA-WIDGET, div[id*="LA_"], .la-widget {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 auto !important;
}

/* 交互样式优化 */
.color-input-focus {
  ring: 2px solid rgba(22, 93, 255, 0.5);
  border-color: var(--primary);
  transition: all 0.2s;
}

.gradient-transition { transition: all 0.5s ease-in-out; }

.slider-thumb {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.slider-track {
  height: 0.25rem;
  border-radius: 9999px;
  background-color: var(--neutral-200);
}

.card-hover {
  transition: all 0.3s;
}

.card-hover:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* 字体优化 */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-display: swap;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .card-hover:hover {
    transform: translateY(-2px);
  }
  
  .slider-thumb {
    width: 1.2rem;
    height: 1.2rem;
  }
}