/* ==========================================================================
   玲珑跨海协同生态 - 双风格企业级设计系统 (Design System)
   ========================================================================== */

:root {
  /* 白昼浅色 (Daylight Mode) */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --bg-active: #e2e8f0;
  
  --border-subtle: #e2e8f0;
  --border-card: #cbd5e1;
  --border-focus: #0d9488;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --brand-teal: #0d9488;
  --brand-teal-hover: #0f766e;
  --brand-teal-light: #14b8a6;
  --brand-teal-bg: #f0fdfa;
  --brand-teal-border: #99f6e4;
  
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-purple: #7c3aed;
  
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 8px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 12px 24px -4px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
  --shadow-glow: 0 0 24px rgba(13, 148, 136, 0.15);
  
  --grid-dot-color: rgba(15, 23, 42, 0.06);
}

.dark {
  /* 黑曜深色 (Obsidian Dark Mode) */
  --bg-primary: #0B0E14;
  --bg-surface: #101622;
  --bg-card: #131b2a;
  --bg-hover: #1c2638;
  --bg-active: #243248;
  
  --border-subtle: #1e293b;
  --border-card: #28374d;
  --border-focus: #2dd4bf;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --brand-teal: #2dd4bf;
  --brand-teal-hover: #5eead4;
  --brand-teal-light: #14b8a6;
  --brand-teal-bg: rgba(45, 212, 191, 0.1);
  --brand-teal-border: rgba(45, 212, 191, 0.25);
  
  --accent-cyan: #38bdf8;
  --accent-emerald: #34d399;
  --accent-purple: #a855f7;
  
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 10px -1px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 16px 32px -4px rgb(0 0 0 / 0.6);
  --shadow-glow: 0 0 30px rgba(45, 212, 191, 0.2);
  
  --grid-dot-color: rgba(255, 255, 255, 0.04);
}

/* 基础平滑过渡与背景网格 */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background-image: radial-gradient(var(--grid-dot-color) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* 毛玻璃与卡片质感 */
.glass-panel {
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
}

/* 选项卡激活样式 */
.showcase-tab-btn.active {
  background-color: var(--brand-teal-bg);
  color: var(--brand-teal);
  border-color: var(--brand-teal-border);
  font-weight: 600;
}

.leads-filter-btn.active,
.trans-lang-btn.active,
.receipt-template-btn.active {
  background-color: var(--brand-teal);
  color: #ffffff;
}

/* 呼吸灯动画 */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.animate-pulse-dot {
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 图标微浮动动效 */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

