/* ══════════════════════════════════════════
   SHARED BASE — 三專案共用基底
   適用：project_Salon / project_Uniform_Invoice / project_receipt
   載入：在各專案 CSS 的 <link> 之前引入此檔
   各專案 CSS 只需保留元件樣式與專案專屬的小型 :root 區塊。
══════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Design Tokens ── */
:root {

  /* ────────────────────────────────────
     Brand Scale（Slate Blue-Gray 品牌主色）
     數字越大越深；0 = 白，950 = 近黑
     ──────────────────────────────────── */
  --brand-950: #2b3345;
  --brand-900: #3c4560;
  --brand-800: #4a5469;
  --brand-700: #5e687f;
  --brand-600: #6b7590;
  --brand-500: #7886a3;
  --brand-400: #9ba4b8;
  --brand-300: #afb7ca;
  --brand-200: #cdd2db;
  --brand-100: #d6dbe4;
  --brand-50:  #eceef2;
  --brand-0:   #ffffff;

  /* ────────────────────────────────────
     Neutral Gray Scale（通用中性灰）
     ──────────────────────────────────── */
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* ────────────────────────────────────
     Semantic Text
     ──────────────────────────────────── */
  --text-primary:   var(--brand-950);
  --text-secondary: var(--brand-800);
  --text-muted:     var(--brand-500);

  /* ────────────────────────────────────
     Semantic Surface / Border
     ──────────────────────────────────── */
  --bg:           #f4f5f8;
  --surface:      #ffffff;
  --border:       var(--brand-100);
  --border-mid:   var(--brand-300);
  --border-light: rgba(94, 104, 127, 0.15);

  /* ────────────────────────────────────
     Semantic Accent（品牌次要強調）
     ──────────────────────────────────── */
  --accent:        var(--brand-700);
  --accent-mid:    var(--brand-600);
  --accent-soft:   var(--brand-500);
  --accent-light:  #eaecf2;
  --accent-subtle: #f2f4f8;

  /* ────────────────────────────────────
     Highlight（橘色跨專案強調色）
     ──────────────────────────────────── */
  --highlight:       #ff8b2b;
  --highlight-light: #ffe2cc;

  /* ────────────────────────────────────
     Status Colors
     ──────────────────────────────────── */
  --success:       #10b981;
  --success-light: #d1fae5;
  --warning:       #f59e0b;
  --warning-light: #fef3c7;
  --danger:        #ef4444;
  --danger-light:  #fff4f4;
  --warn:          #c0392b;   /* 作廢 / 嚴重警示（深紅，比 danger 更強） */
  --warn-light:    #fdf3f2;
  --info:          #4a86f7;
  --info-light:    #d9eaff;

  /* ────────────────────────────────────
     Spacing Scale
     ──────────────────────────────────── */
  --spacing-xs:  0.5rem;   /*  8px */
  --spacing-sm:  1rem;     /* 16px */
  --spacing-md:  1.5rem;   /* 24px */
  --spacing-lg:  2rem;     /* 32px */
  --spacing-xl:  3rem;     /* 48px */
  --spacing-2xl: 4rem;     /* 64px */

  /* ────────────────────────────────────
     Border Radius
     ──────────────────────────────────── */
  --radius-sm:   0.375rem;  /*  6px */
  --radius-md:   0.5rem;    /*  8px */
  --radius-lg:   0.75rem;   /* 12px */
  --radius-xl:   1rem;      /* 16px */
  --radius-2xl:  1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* ────────────────────────────────────
     Shadow（以品牌色調製，比純黑更細緻）
     ──────────────────────────────────── */
  --shadow-sm: 0 1px 4px  rgba(74, 84, 105, 0.08);
  --shadow-md: 0 4px 16px rgba(74, 84, 105, 0.12);
  --shadow-lg: 0 12px 40px rgba(74, 84, 105, 0.18);
  --shadow-xl: 0 20px 48px rgba(74, 84, 105, 0.22);

  /* ────────────────────────────────────
     Transition
     ──────────────────────────────────── */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;

  /* ────────────────────────────────────
     官網頁首/頁尾色彩（對應 zoom-world.tw
     SiteNew.css 的 --darkgray-color / --lightgray-color）
     ──────────────────────────────────── */
  --site-dark:  #333333;
  --site-light: #F9F9F9;
}

/* ── Base HTML ── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family:
    'Noto Sans TC',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'Segoe UI Emoji',
    'Apple Color Emoji',
    'Noto Color Emoji',
    'Microsoft JhengHei',
    '微軟正黑體',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


/* ══════════════════════════════════════════
   全站導覽列 / 頁尾（複製自 zoom-world.tw 官網樣式，
   對應原站 Styles/SiteNew.css 的 .header-container / .main-footer 等規則）
   三專案共用，需搭配各頁 <head> 載入 Orbitron 字體
══════════════════════════════════════════ */
.ev-site-header {
  padding: 1rem;
  background: var(--site-light);
}
.ev-site-header .header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ev-site-header .logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-500);
  text-decoration: none;
}
.ev-site-header .nav-links {
  list-style: none;
  display: flex;
}
.ev-site-header .nav-links li { margin-left: 2rem; }
.ev-site-header .nav-links a {
  font-weight: 500;
  color: var(--site-dark);
  text-decoration: none;
  transition: color 200ms ease;
}
.ev-site-header .nav-links a:hover { color: var(--brand-500); }

.ev-site-footer {
  padding: 3rem 2rem;
  background: var(--site-dark);
  color: #fff;
  text-align: center;
}
.ev-site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 1.5rem;
}
.ev-site-footer .footer-top {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1.5rem;
}
.ev-site-footer .footer-nav {
  display: flex; flex-wrap: wrap;
  gap: 1.2rem;
}
.ev-site-footer .footer-nav a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}
.ev-site-footer .footer-nav a:hover { text-decoration: underline; }
.ev-site-footer .contact a { color: #fff; text-decoration: none; }
.ev-site-footer .contact p { margin: 2px 0; }
.ev-site-footer .footer-bottom {
  font-size: 0.8rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .ev-site-header .header-container { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .ev-site-header .logo { margin-bottom: 0; }
  .ev-site-header .main-nav { width: 100%; }
  .ev-site-header .nav-links { justify-content: space-between; width: 100%; }
  .ev-site-header .nav-links li { margin-left: 0; }
  .ev-site-footer .footer-top { flex-direction: column; gap: 1rem; border-bottom: none; padding-bottom: 0; }
}
