@charset "UTF-8";
/* ==========================================================================
   果吉思公版網站 - Modern CSS Reset & Base Rules
   更新版本：Modern Web Standards (2026 Edition)
   ========================================================================== */

/* 1. 全域 CSS Box Sizing 與平滑捲動設定 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* 2. 基礎 Body 設定與字體優化 */
body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: "Inter", "Outfit", "Roboto", "Noto Sans TC", "微軟正黑體", "Microsoft JhengHei", sans-serif;
  color: var(--text-main, #222222);
  background-color: var(--bg-main, #ffffff);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 3. 標題與文字段落排印 */
h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* 4. 清單與連結 */
ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 5. 圖片與多媒體元件自適應 */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 6. 表單與互動控制元件 */
input, button, textarea, select, optgroup, option {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

button, input[type="button"], input[type="submit"], input[type="reset"] {
  cursor: pointer;
  transition: all 0.3s ease;
}

button:disabled, input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* 7. 表格樣式重置 */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

caption, th {
  text-align: left;
}

/* 8. 無障礙焦點提示 (Accessibility Focus) */
:focus-visible {
  outline: 2px solid var(--accent-color, #e78d09);
  outline-offset: 2px;
}

/* 9. 文字反選配色 */
::selection {
  background-color: var(--accent-color, #e78d09);
  color: #ffffff;
}
::-moz-selection {
  background-color: var(--accent-color, #e78d09);
  color: #ffffff;
}

/* 10. 相容舊版自訂清除浮動與工具類別 */
.CleanFormat {
  clear: both;
}

#wrap, #warp {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}