/* === CSS Reset 基礎設定 === */

/* 全域重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* HTML 和 body 基礎設定 */
html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

/* 圖片和媒體 */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 表單元素 */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* 連結 */
a {
  color: inherit;
  text-decoration: none;
}

/* 列表 */
ul,
ol {
  list-style: none;
}

/* 標題 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  line-height: 1.2;
}

/* 表格 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 移除瀏覽器預設樣式 */
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* 移動裝置優化 */
html {
  -webkit-tap-highlight-color: transparent;
}

/* === 專案特定樣式從這裡開始 === */
