/* ==========================================================================
   明健 MING JIAN - 基礎核心樣式表 (BASE TOKENS & FOUNDATIONS)
   適用於全站所有頁面（index.html、recipes.html、products.html 等）
   ========================================================================== */

/* --- 1. 設計變數與權杖 (DESIGN TOKENS) --- */
:root {
  /* 品牌核心主色系 (Primary Brand Colors) */
  --color-primary: #004727;          /* ZENB 經典森林深綠色 (使用率最高) */
  --color-primary-dark: #00361d;
  --color-primary-light: #2f8052;     /* 次級標籤與重點綠 */
  
  /* 輔助與底色 (Pastels & Backgrounds) */
  --color-mint-bg: #C5DED2;          /* 波浪轉折與特色底色 (薄荷鼠尾草綠) */
  --color-mint-light: #E7EDEA;       /* 淺薄荷灰 */
  --color-neutral-bg: #F7F7F7;       /* 灰白色區塊背景 */
  --color-white: #FFFFFF;
  
  /* 強調與 CTA 色彩 (Accents & Highlights) */
  --color-cta-yellow: #FED141;       /* 浮動底欄與主促銷黃色 */
  --color-cta-yellow-hover: #ffda65;
  --color-accent-orange: #EC9A0A;    /* 特價與標籤橘黃 */
  --color-accent-red: #CC3044;       /* 折扣亮眼紅 */
  
  /* 文字與中性色 (Typography & Neutrals) */
  --color-text-main: #1A1A1A;        /* 主要內文深黑 */
  --color-text-muted: #5D6360;       /* 次要說明與附註灰 */
  --color-border: #D3DBD7;          /* 邊框淡灰 */
  --color-border-light: #E6E6E6;

  /* 字型設定 (Fonts) */
  --font-main: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --font-en: "Montserrat", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* 容器寬度與間距 (Layout Dimensions) */
  --container-max-width: 1140px;
  --header-height: 72px;
  --header-height-sp: 60px;
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-full: 9999px;
  
  /* 動態過渡效果 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0, 71, 39, 0.08);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* --- 2. 基礎重置與排版 (BASE RESETS) --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-main);
  background-color: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

.font-en {
  font-family: var(--font-en);
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- 標題與標籤通用樣式 --- */
.section-title {
  color: var(--color-primary);
  font-size: 2.125rem; /* 34px */
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
}

.caption-tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* --- 按鈕系統 (BUTTON SYSTEM) --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--border-radius-full);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 71, 39, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 71, 39, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: #F3F8F5;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 71, 39, 0.12);
}

.btn-block {
  width: 100%;
}
