/* 顏色管理 */
:root {
  /* 主要顏色 */
  --main: #ff6100; /* 橘主色 */
  --second: #e0e0e0; /* 淺灰 */
  --third: #202020; /* 深灰/黑 */
  --round: #f5d8cc; /* 圓角背景 */
  --accent-1: #bbdaac; /* 強調色1 (綠) */
  --accent-2: #aedce7; /* 強調色2 (藍) */
  --text-primary: #222; /* 文字 */
  --text-secondary: #333; /* 文字02 */

  /* 按鈕 */
  --button-success: #22c55e; /* 成功綠 */
  --button-error: #ef4444; /* 錯誤紅 */

  /* 主要顏色-RGB（透明度/陰影/漸層） */
  --main-rgb: 255, 97, 0;
  --second-rgb: 224, 224, 224;
  --third-rgb: 32, 32, 32;
  --accent1-rgb: 187, 218, 172;
  --accent2-rgb: 174, 220, 231;
  --button-success-rgb: 34, 197, 94;
  --button-error-rgb: 239, 68, 68;

  /* highlight-bar 用的漸層 */
  --main-light: #ffefe6;
  --main-mid: #ff8a4d;
  --accent-1-a10: rgba(187, 218, 172, 0.1);
  --accent-1-a70: rgba(187, 218, 172, 0.7);
  --accent-2-a10: rgba(174, 220, 231, 0.1);
  --accent-2-a70: rgba(174, 220, 231, 0.7);

  /* 常用灰色 */
  --gray-600: #525252;
}

/* 全局樣式 */

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-VariableFont_opsz_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans TC";
  src: url("/fonts/NotoSansTC-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Inter", "Noto Sans TC", system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[x-cloak] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main-border-color {
  border-color: var(--main);
}
.second-border-color {
  border-color: var(--second);
}
