/* =====================================================
   DESIGN SYSTEM — CSS Custom Properties
   東光醫療器材 Brand: 亮橘 Vivid Orange #E8681A
   全站僅使用亮橘家族＋暖色中性，避免多色系雜亂
   換色時只需改本檔的色彩變數（含 --color-primary-rgb）
   ===================================================== */

:root {
  /* Brand Colors — vivid warm orange */
  --color-primary:        #E8681A;
  --color-primary-rgb:    232, 104, 26;  /* 供 rgba() 衍生透明色使用 */
  --color-primary-dark:   #C25007;
  --color-primary-light:  #F19256;
  --color-primary-pale:   #FEF0E4;

  /* Warm Neutrals */
  --color-bg:             #FCF8F2;
  --color-surface:        #FFFFFF;  /* 卡片、頁首等浮出面（原 --color-white 已併入） */
  --color-border:         #F0DCC6;
  --color-border-light:   #F7EEE2;
  --color-text-primary:   #33200F;
  --color-text-secondary: #8A6A50;
  --color-text-muted:     #C0A98E;
  --color-footer-bg:      #301A08;

  /* Typography */
  --font-primary:  'Noto Sans TC', 'Microsoft JhengHei', '微軟正黑體', 'PingFang TC', sans-serif;
  --font-heading:  'Noto Sans TC', 'Microsoft JhengHei', '微軟正黑體', 'PingFang TC', sans-serif;
  --font-size-xs:   11px;
  --font-size-sm:   13px;
  --font-size-base: 15px;
  --font-size-md:   16px;
  --font-size-lg:   18px;
  --font-size-xl:   22px;
  --font-size-2xl:  28px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold:   700;
  --line-height-tight:  1.35;
  --line-height-base:   1.75;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Layout */
  --header-height:      64px;
  --sidebar-width:      220px;
  --content-max-width: 1280px;

  /* Borders & Radius */
  --radius-sm:   3px;
  --radius-md:   6px;
  --radius-lg:   8px;
  --radius-full: 999px;

  /* Shadows — simple */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.10);
  --shadow-card:  0 2px 6px rgba(0,0,0,0.09);
  --shadow-hover: 0 4px 12px rgba(var(--color-primary-rgb), 0.18);
  --shadow-header:0 2px 4px rgba(0,0,0,0.10);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
}

/* =====================================================
   RESET & BASE
   ===================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  line-height: var(--line-height-base);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

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

input, button {
  outline: none;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Utility */
.hidden, [hidden] {
  display: none !important;
}

.view {
  display: none;
}

.view.active {
  display: block;
}
