/* 人因工程與防疲勞專業介面設計規範 (Ergo UI - White Morandi Edition) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+TC:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Inter', 'Noto Sans TC', system-ui, -apple-system, sans-serif;
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card-dark: #ffffff;
  --border-default: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  /* 莫蘭迪核心色系 (White Morandi Aesthetic Palette) */
  --morandi-blue: #4a7c9d;       /* 莫蘭迪霧霾藍 */
  --morandi-blue-light: #f0f6fa;
  --morandi-green: #508264;      /* 莫蘭迪鼠尾草綠 */
  --morandi-green-light: #f0f7f3;
  --morandi-oat: #b57e2a;        /* 莫蘭迪秋香杏黃 */
  --morandi-oat-light: #fdf7ee;
  --morandi-rose: #992c43;       /* 莫蘭迪煙燻莓紅 */
  --morandi-rose-light: #fcf2f4;
  --morandi-terracotta: #ad4e29; /* 莫蘭迪陶土焦糖 */
  --morandi-stone: #64748b;      /* 莫蘭迪灰石 */
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-tap-highlight-color: transparent;
  line-height: 1.5;
}

/* 專業白底卡片基底 (精緻微陰影、乾淨柔和邊框) */
.ergo-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.04), 0 1px 3px -1px rgba(15, 23, 42, 0.02);
}

/* 輕微淡入動畫 */
.fade-in {
  animation: fadeIn 0.2s ease-out forwards;
}

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

/* 觸控微回饋 (Press Feedback) */
.touch-press {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.touch-press:active {
  transform: scale(0.975);
}

/* 隱藏原生滾動條但保持滾動 */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 底部滑出抽屜 (Mobile Bottom Sheet Modal) */
#zone-scale-drawer {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  will-change: transform;
}
#zone-scale-drawer.sheet-open {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* 極簡平滑自定義捲軸 */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
