/* css/style.css */
@font-face {
  font-family: OPlusSans3;
  src: url("../fonts/OPlusSans3-Medium.ttf");
}
@font-face {
  font-family: OPlusBold;
  src: url("../fonts/OPlusSans3-Bold.ttf");
}
@font-face {
  font-family: DelaSukoGothicOne;
  src: url("../fonts/DelaSukoGothicOne-R.ttf");
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "OPlusSans3", "PingFang SC", sans-serif, Robot, 思源黑体;
  background: #fff;
  color: #333;
  line-height: 1.5;
}
a {
  text-decoration: none;
  color: inherit;
}

/* 方便開發時觀察區塊，可暫時使用:
section {
  border: 1px dotted red;
} 
*/

/* 通用容器 */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 273px);
}

/* 或者你也可以定义一个类，应用于其它元素 */
.underline-on-hover {
  position: relative; /* 為了定位 ::after 伪元素 */
}
.underline-on-hover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px; /* 可根據需要微調位置 */
  transform: translateX(-50%) scaleX(0); /* 初始從中間收縮 */
  transform-origin: center;
  width: 100%;
  height: 2px; /* 下劃線粗細 */
  background-color: #fff;
  transition: transform 0.3s ease; /* 動畫過渡效果 */
}
/* 鼠標經過時啟動畫面效果 */
.underline-on-hover:hover::after {
  transform: translateX(-50%) scaleX(1);
}
