/* 載入手寫體中文字型 */
@import url("https://fonts.googleapis.com/css2?family=LXGW+WenKai+TC&display=swap");

/*
 * 設計系統 (Tailwind @theme 變數定義在各頁 <style type="text/tailwindcss"> 中):
 *   --color-pri: #1f2937   (主色,深灰)
 *   --color-sec: #d4a574   (強調色,暖駝)
 *   --color-btn: #9ca3af   (中性按鈕灰)
 *   --font-handwriting: "LXGW WenKai TC"
 */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  letter-spacing: 0.05em;
  scrollbar-width: thin;
  scrollbar-color: rgb(31 41 55 / 0.4) transparent;
  scroll-behavior: smooth;
}

body {
  font-family: "LXGW WenKai TC", ui-sans-serif, system-ui, sans-serif;
  color: #1f2937;
  background-color: #fafafa;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: rgb(31 41 55 / 0.4);
  border-radius: 10px;
}
@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar-thumb:hover {
    background-color: rgb(31 41 55 / 0.7);
  }
}

/* Hero 輪播淡入淡出 */
.slide {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}
.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* 滾動進場 */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .slide,
  .reveal {
    transition: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
