@charset "utf-8";
@layer reset {
  /* 1. Global Box-sizing & Fluid Layout Defaults */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  /* 2. Document & Viewport Setup */
  html {
    color-scheme: light dark;
    min-height: 100dvh;
    scroll-behavior: smooth;
    /* Enables smooth transitions for height: auto / min-content */
    interpolate-size: allow-keywords; 
    /* 預留滾動條空間，避免內容因為滾動條突然出現/消失而產生畫面左右跳動；但會造成電腦瀏覽器在較小尺寸情況下右邊突兀出現空白間距，故暫時先註銷
    scrollbar-gutter: stable;  */
  }

  body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  /* 3. Media & Embedded Elements */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
  }

  /* 4. Typography & Modern Text-Wrapping */
  h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
    font-weight: max(600, 1em);
  }

  p, li {
    text-wrap: pretty;
  }

  /* 5. Forms & Interactive Elements */
  input, button, textarea, select {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
  }

  button, select, [role="button"] {
    cursor: pointer;
  }

  /* 6. List & Table Utilities */
  ol, ul, menu {
    list-style: none;
  }

  table {
    border-collapse: collapse;
  }

  /* 7. 輔助功能優先 */
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
}

/* 其他常用樣式 */
.fl{
	float: left;
}
.fr{
	float: right;
}
.tal{
	text-align: left;
}
.tar{
	text-align: right;
}
.tac{
	text-align: center;
}
.clr{
	clear: both;
}