@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Lora:ital,wght@0,400..700;1,400..700&family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+TC:wght@200..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
/*.lora-<uniquifier> {
  font-family: "Lora", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}*/

/*
Bickham Script Pro 3 Regular
font-family: "bickham-script-pro-3", sans-serif;
font-weight: 400;
font-style: normal;
Bickham Script Pro 3 Bold
font-family: "bickham-script-pro-3", sans-serif;
font-weight: 700;
font-style: normal;
*/
.Bickham-Script-Pro-3-Regular {
  font-family: "bickham-script-pro-3", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lora-Regular {
  font-family: "Lora", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.lora-Bold {
  font-family: "Lora", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

body,
html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  height: auto;
  min-height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  --vw-base: calc(100vw / 1920);
  background-color: #f3eee7;
  cursor: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
}

button,
input,
textarea,
select,
option {
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  -webkit-border-radius: 0px;
  border-radius: 0;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
}


.container {
  width: 100%;
  height: auto;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
}

.no-scroll {
  overflow: hidden;
  /* 禁止滚动条 */
  touch-action: none;
  /* 禁止移动端触摸滚动 */
  position: fixed;
  /* 防止页面跳动 */
  width: 100%;
  height: 100vh;
}

.opacity {
  opacity: 1;
  position: relative;
  visibility: visible;
}

/*影片區*/
.main1 {
  width: 100%;
  height: calc(950 * var(--vw-base));
  position: relative;
  background-color: #f3eee7;
  /* 確保超出容器的部分被隱藏，達成裁切感 */
  overflow: hidden;
}

/* 這裡維持你的動畫觸發 */
.main1.active {
  animation: m1-bg-motion 1.5s forwards;
  animation-delay: 0s;
  animation-timing-function: ease-out;
}

.m1-bg {
  width: 100%;
  /* 初始高度與容器一致 */
  height: calc(950 * var(--vw-base));
  position: relative;
  margin: 0 auto;
  z-index: 98;
  overflow: hidden;
  /* 重要：裁切關鍵 */
}

/* 動畫改為縮減容器高度 */
@keyframes m1-bg-motion {
  0% {
    height: calc(950 * var(--vw-base));
  }

  100% {
    height: calc(760 * var(--vw-base));
  }
}
.m1-bg img {
  object-fit: cover;
  width: 100%;
  /* 關鍵：高度固定為原始高度，不要隨父層縮放 */
  height: calc(950 * var(--vw-base));
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

.m1-txt {
  width: 100%;
  height: calc(540*var(--vw-base));
  position: absolute;
  /* bottom: 0; */
  top: calc(240 * var(--vw-base));
  left: 0;
  z-index: 105;
  overflow: hidden;
}

.m1-t1 {
  color: rgba(255, 255, 255, 0.2);
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: calc(48 * var(--vw-base));
  line-height: 3vw;
  letter-spacing: 0em;
  transform: scaleX(0.95);
  transform-origin: left center;
  writing-mode: vertical-rl;
  display: block;
  position: absolute;
  left: 12.6vw;
  top: 0.4vw;
  width: calc(50 * var(--vw-base));
  height: calc(260 * var(--vw-base));
  overflow: hidden;
  opacity: 0;
}

.m1-t2 {
  color: rgba(255, 255, 255, 0.6);
  line-height: 3vw;
  font-size: calc(22 * var(--vw-base));
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.05em;
  font-weight: 600;
  transform: scaleX(0.95);
  transform-origin: left center;
  display: block;
  position: absolute;
  left: 12.75vw;
  top: 13.3vw;
  width: calc(120 * var(--vw-base));
  height: calc(50 * var(--vw-base));
  overflow: hidden;
  opacity: 0;
}

.m1-t1.active {
  animation: m1-t1-ani 1.5s ease;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

.m1-t2.active {
  animation: m1-t2-ani 1.5s ease;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

@keyframes m1-t1-ani {
  0% {
    left: 11.65vw;
    transform: scaleX(0.95);
    opacity: 0;
  }

  100% {
    left: 12.65vw;
    transform: scaleX(0.95);
    opacity: 1;
  }
}

@keyframes m1-t2-ani {
  0% {
    left: 13.75vw;
    transform: scaleX(0.95);
    opacity: 0;
  }

  100% {
    left: 12.75vw;
    transform: scaleX(0.95);
    opacity: 1;
  }
}

.m1-line {
  width: 1px;
  height: calc(0*var(--vw-base));
  background-color: rgba(255, 255, 255, .35);
  position: absolute;
  left: 12.7vw;
  top: 0.4vw;
  overflow: hidden;
  /* 🔴 很重要，避免 after 超出 */
}

.m1-line.active {
  animation: m1-line 1.5s linear;
  animation-delay: 2s;
  animation-fill-mode: forwards;
}

@keyframes m1-line {
  0% {
    height: calc(0*var(--vw-base));
  }

  100% {
    height: calc(665*var(--vw-base));
  }
}

.m1-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 1);

  transform-origin: top;
  transform: scaleY(0);
}

@keyframes drawLine {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }

  70% {
    transform: scaleY(1);
    opacity: 1;
  }

  100% {
    transform: scaleY(1);
    opacity: 0;
    /* 畫完淡出再重來 */
  }
}

.m1-line.active::after {
  animation: drawLine 3s ease-in-out infinite;
  animation-delay: 3s;
  
}




/*main2*/
#main2 {
  width: 100%;
  height: calc(760 * var(--vw-base));
  position: relative;
  overflow: hidden !important;
  background-color: #f3eee7;
}

.m2-line1 {
  width: 1px;
  height: calc(0*var(--vw-base));
  background-color: rgba(137, 126, 121, 0.5);
  position: absolute;
  left: 12.7vw;
  top: 0vw;
  overflow: hidden;
  /* 🔴 很重要，避免 after 超出 */
  z-index: 10;
}

.m2-line1.active {
  animation: m2-1-line 1s linear;
  animation-delay: 0s;
  animation-fill-mode: forwards;
}

.m2-line2 {
  width: 1px;
  height: calc(0*var(--vw-base));
  background-color: rgba(137, 126, 121, 0.5);
  position: absolute;
  left: 69vw;
  bottom: 0vw;
  overflow: hidden;
  /* 🔴 很重要，避免 after 超出 */
  z-index: 10;
}

.m2-line2.active {
  animation: m2-2-line 1s linear;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
}

.m2-line3 {
  width: 1px;
  height: calc(0*var(--vw-base));
  background-color: rgba(137, 126, 121, 0.5);
  position: absolute;
  left: 86.5vw;
  top: 0vw;
  overflow: hidden;
  /* 🔴 很重要，避免 after 超出 */
  z-index: 5;
}

.m2-line3.active {
  animation: m2-3-line 1s linear;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

@keyframes m2-1-line {
  from {
    height: 0
  }

  to {
    height: calc(760*var(--vw-base));
  }
}

@keyframes m2-2-line {
  from {
    height: 0
  }

  to {
    height: calc(760*var(--vw-base));
  }
}

@keyframes m2-3-line {
  from {
    height: 0
  }

  to {
    height: calc(760*var(--vw-base));
  }
}

.m2-txt {
  position: relative;
  margin-top: 9vw;
  margin-left: 15.5vw;
  width: 70vw;
  z-index: 10;
}

.m2-txt-title {
  width: calc(700*var(--vw-base));
  overflow: hidden;
  color: #756b66;
  font-size: calc(22 * var(--vw-base));
  line-height: calc(70 * var(--vw-base));
  font-weight: 700;
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.05em;
  transform: scaleX(0.95);
  transform-origin: left center;
  display: block;
}

.m2-txt-cent {
  width: calc(700*var(--vw-base));
  overflow: hidden;
  color: #756b66;
  font-size: calc(16 * var(--vw-base));
  line-height: calc(33 * var(--vw-base));
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.05em;
  transform: scaleX(0.95);
  transform-origin: left center;
  display: block;
}

.m2-txt-cent.cent2 {
  margin-top: 1.5vw;
}

#main2 .m2-pic {
  position: absolute;
  top: 13vw;
  right: 0;
  width: calc(814*var(--vw-base));
  height: calc(277*var(--vw-base));
  overflow: hidden !important;
  z-index: 20;
}

#main2 .m2-pic img {
  display: block;
  width: 110%;
  /* 👈 比容器大，才有橫向可移動空間 */
  height: 100%;
  object-fit: cover;
}



/*main3*/
#main3 {
  width: 100%;
  height: calc(685 * var(--vw-base));
  position: relative;
  overflow: hidden !important;
  background-color: #eae0d7;
}

.m3-line3 {
  width: 1px;
  height: calc(0*var(--vw-base));
  background-color: rgba(137, 126, 121, 0.5);
  position: absolute;
  left: 86.5vw;
  top: 0vw;
  overflow: hidden;
  /* 🔴 很重要，避免 after 超出 */
  z-index: 5;
}

.m3-line3.active {
  animation: m3-3-line 1s linear;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
}

.m3-line4 {
  width: 0;
  height: 1px;
  background-color: rgba(137, 126, 121, 0.5);
  position: absolute;
  left: 0vw;
  bottom: 0vw;
  overflow: hidden;
  /* 🔴 很重要，避免 after 超出 */
  z-index: 5;
}

.m3-line4.active {
  animation: m3-4-line 1s linear;
  animation-delay: 0s;
  animation-fill-mode: forwards;
}

@keyframes m3-3-line {
  from {
    height: 0
  }

  to {
    height: calc(685*var(--vw-base));
  }
}

@keyframes m3-4-line {
  from {
    width: 0
  }

  to {
    width: 100%;
  }
}

.m3-txt {
  position: relative;
  margin-top: 13.5vw;
  margin-left: 55vw;
  width: 70vw;
  z-index: 10;
}

.m3-txt-title {
  width: calc(500*var(--vw-base));
  overflow: hidden;
  color: #756b66;
  font-size: calc(22 * var(--vw-base));
  line-height: calc(70 * var(--vw-base));
  font-weight: 700;
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.05em;
  transform: scaleX(0.95);
  transform-origin: left center;
  display: block;
}

.m3-txt-cent {
  width: calc(500 * var(--vw-base));
  overflow: hidden;
  color: #756b66;
  font-size: calc(16 * var(--vw-base));
  line-height: calc(33 * var(--vw-base));
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.05em;
  margin-left: 5.75vw;
  transform: scaleX(0.95);
  transform-origin: left center;
  display: block;
}

#main3 .m3-pic {
  position: absolute;
  top: 11vw;
  left: 0;
  width: calc(814*var(--vw-base));
  height: calc(277*var(--vw-base));
  overflow: hidden !important;
  z-index: 20;
}

#main3 .m3-pic img {
  display: block;
  width: 110%;
  /* 👈 比容器大，才有橫向可移動空間 */
  height: 100%;
  object-fit: cover;
}





/* ======================================================
   main4 容器與背景線條
====================================================== */
#main4 {
  width: 100%;
  height: calc(900 * var(--vw-base));
  position: relative;
  overflow: hidden !important;
  background-color: #f3eee7;
}

/* 背景垂直線 3：圓盤貼齊的目標 */
.m4-line3 {
  left: 86.5vw;
  top: 0;
  width: 1px;
  height: calc(0 * var(--vw-base));
  background-color: rgba(137, 126, 121, 0.5);
  position: absolute;
  overflow: hidden;
  z-index: 5;
}

.m4-line3.active {
  animation: m4-3-line 1s linear 1s forwards;
}

@keyframes m4-3-line {
  to {
    height: calc(950 * var(--vw-base));
  }
}

.m4-line4 {
  left: 0vw;
  top: 23.6vw;
  width: 0vw;
  height: 1px;
  background-color: rgba(137, 126, 121, 0.5);
  position: absolute;
  overflow: hidden;
  z-index: 5;
}

.m4-line4.active {
  animation: m4-4-line 1s linear 1s forwards;
}

.m4-line5 {
  right: 0vw;
  bottom: 0vw;
  width: 0%;
  height: 1px;
  background-color: rgba(137, 126, 121, 0.5);
  position: absolute;
  overflow: hidden;
  z-index: 5;
}

.m4-line5.active {
  animation: m4-5-line 1s linear 1s forwards;
}

@keyframes m4-3-line {
  to {
    height: calc(950 * var(--vw-base));
  }
}

@keyframes m4-4-line {
  to {
    width: 86.5vw;
  }
}

@keyframes m4-5-line {
  to {
    width: 100%;
  }
}

/* 其他線條保持您的原始設定 */
.m4-line1 {
  left: 12.7vw;
  top: 0;
  z-index: 10;
  position: absolute;
  width: 1px;
  height: 0;
  background-color: rgba(137, 126, 121, 0.5);
}

.m4-line2 {
  left: 69vw;
  bottom: 0;
  z-index: 10;
  position: absolute;
  width: 1px;
  height: 0;
  background-color: rgba(137, 126, 121, 0.5);
}

.m4-line1.active {
  animation: m4-1-line 1s linear forwards;
}

.m4-line2.active {
  animation: m4-2-line 1s linear .5s forwards;
}

@keyframes m4-1-line {
  to {
    height: calc(950 * var(--vw-base));
  }
}

@keyframes m4-2-line {
  to {
    height: calc(950 * var(--vw-base));
  }
}



.m4-txt {
  position: relative;
  margin-top: 17.3vw;
  margin-left: 15.5vw;
  width: 50vw;
  z-index: 10;
  pointer-events: auto;
  user-select: none;
}

/* 只負責視覺比例 */
.m4-scale {
  display: inline-block;
  transform: scaleX(0.95);
  transform-origin: left center;
}

.m4-txt-title {
  width: calc(500 * var(--vw-base));
  color: #756b66;
  font-size: calc(22 * var(--vw-base));
  line-height: calc(30 * var(--vw-base));
  font-weight: 700;
  font-family: "Noto Serif TC", serif;
  letter-spacing: .05em;
  margin-bottom: .6vw;
}

.m4-txt-stitle {
  width: calc(500 * var(--vw-base));
  color: #756b66;
  font-size: calc(18 * var(--vw-base));
  line-height: calc(30 * var(--vw-base));
  font-weight: 700;
  font-family: "Noto Serif TC", serif;
  letter-spacing: .05em;
  margin-bottom: 5vw;
}

.m4-txt-stitle {
  position: relative;
  width: auto;
  display: inline-block;
}

.m4-eng {
  position: absolute;
  right: -7.5vw;
  top: -0.25vw;
  font-family: "Lora", serif;
  font-size: calc(48 * var(--vw-base));
  letter-spacing: .02em;
  font-weight: 400;
  color: rgba(182, 170, 160, 0.2);
  pointer-events: none;
  white-space: nowrap;
}

.m4-txt-cent {
  width: calc(500 * var(--vw-base));
  color: #756b66;
  font-size: calc(16 * var(--vw-base));
  line-height: calc(33 * var(--vw-base));
  font-family: "Noto Serif TC", serif;
  letter-spacing: .05em;
}

/* ✅ 內層 scale 永遠固定，不要 transition transform */
.m4-scale {
  display: inline-block;
  transform: scaleX(0.95);
  transform-origin: left center;
  transition: none !important;
}

/* ======================================================
   🔥 核心修正：右側圓盤 (貼齊線條關鍵)
====================================================== */
.m4-wheel {
  position: absolute;
  left: 69vw;
  top: 6vw;
  width: calc(675 * var(--vw-base));
  height: calc(675 * var(--vw-base));
  transform: translate(-50%, 0);
  z-index: 30;

  /* 強力裁切：確保所有內容不超出圓形邊界 */
  border-radius: 50% !important;
  overflow: hidden !important;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  isolation: isolate;
}

.m4-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 10;
  pointer-events: none;
  transform: rotate(-90deg);
  /* 從 12 點鐘開始 */
  opacity: 0.5;
  /* 這裡定義變數，讓 GSAP 好操作 */
  --draw-percent: 0%;
}

.m4-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;

  /* 🔴 關鍵 1：這 1px 的 padding 就是你看到的線條粗細 */
  padding: 1px;

  /* 🔴 關鍵 2：顏色一定要是不透明或高濃度，1px 才不會消失 */
  background: conic-gradient(rgba(137, 126, 121, 0.5) var(--draw-percent),
      transparent var(--draw-percent));

  /* 🔴 關鍵 3：這段魔術會把中間「實心」的部分完全摳掉 */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;

  /* 🔴 關鍵 4：必須有這行透明邊框，mask 的 content-box 才會生效 */
  border: 1px solid transparent;
}

/* 確保色塊不要壓到線 */
.m4-quads {
  position: absolute;
  inset: 0px;
  /* 往內縮一點，保護外圈 border */
  z-index: 2;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0 !important;
  transition: opacity .5s ease;
}

/* 確保 Quads 容器本身在 ready 時是可見的 */
#main4.is-ready .m4-quads {
  opacity: 1 !important;
  visibility: visible;

}

.m4-quad {
  position: absolute;
  width: 50.1%;
  /* 稍微多一點點防止中間有縫 */
  height: 50.1%;
  opacity: 0;
  /* 初始隱藏，hover 時變 1 */
  transition: opacity .5s ease;

  /* 🔴 關鍵：確保這裡有背景色或漸層 */
  background: radial-gradient(circle at var(--gx) var(--gy),
      rgba(137, 126, 121, 0.05) 0%,
      rgba(137, 126, 121, 0.2) 60%,
      rgba(137, 126, 121, 0.4) 100%);
}

/* 🟢 使用 inset round 方式裁切扇形（最穩定） */
.m4-quad-tl {
  left: 0;
  top: 0;
  --gx: 100%;
  --gy: 100%;
  clip-path: inset(0 0 0 0 round 100% 0 0 0);
}

.m4-quad-tr {
  right: 0;
  top: 0;
  --gx: 0%;
  --gy: 100%;
  clip-path: inset(0 0 0 0 round 0 100% 0 0);
}

.m4-quad-bl {
  left: 0;
  bottom: 0;
  --gx: 100%;
  --gy: 0%;
  clip-path: inset(0 0 0 0 round 0 0 0 100%);
}

.m4-quad-br {
  right: 0;
  bottom: 0;
  --gx: 0%;
  --gy: 0%;
  clip-path: inset(0 0 0 0 round 0 0 100% 0);
}

/* 修正 Hover 邏輯：按鈕 hover 時，後方的 quads 裡面的特定象限顯示 */
.m4-btn-tl:hover~.m4-quads .m4-quad-tl,
.m4-btn-tl.active~.m4-quads .m4-quad-tl {
  opacity: 1 !important;
}

.m4-btn-tr:hover~.m4-quads .m4-quad-tr,
.m4-btn-tr.active~.m4-quads .m4-quad-tr {
  opacity: 1 !important;
}

.m4-btn-bl:hover~.m4-quads .m4-quad-bl,
.m4-btn-bl.active~.m4-quads .m4-quad-bl {
  opacity: 1 !important;
}

.m4-btn-br:hover~.m4-quads .m4-quad-br,
.m4-btn-br.active~.m4-quads .m4-quad-br {
  opacity: 1 !important;
}


/* ======================================================
   十字線與內容 (z-index 調優)
====================================================== */
.m4-cross {
  position: absolute;
  pointer-events: none;
  z-index: 6;
  /* 在色塊上，在圓環下 */
}

.m4-cross-h {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background-color: rgba(137, 126, 121, 0);
}

.m4-cross-v {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: rgba(137, 126, 121, 0);
}

.m4-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(260 * var(--vw-base));
  height: calc(260 * var(--vw-base));
  transform: translate(-50%, -50%);
  overflow: hidden;
  z-index: 20;
  /* 確保在所有線條最上方 */
  background-color: #f3eee7;
}

#m4Img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .25s ease;
}

/* ======================================================
   按鈕與互動區域 (Quads)
====================================================== */
.m4-btn {
  position: absolute;
  width: 50%;
  height: 50%;
  z-index: 50;
  background: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
  /* 裁切關鍵 */
}

.m4-btn-tl {
  left: 0;
  top: 0;
}

.m4-btn-tr {
  right: 0;
  top: 0;
}

.m4-btn-bl {
  left: 0;
  bottom: 0;
}

.m4-btn-br {
  right: 0;
  bottom: 0;
}


/* ======================================================
   按鈕文字（視覺位置）
====================================================== */
.m4-btn-inner {
  position: absolute;
  pointer-events: none;
  /* 事件留給 m4-btn */
  font-family: "Lora", "Noto Serif TC", serif;
  font-size: calc(22 * var(--vw-base));
  letter-spacing: 0em;
  color: #756b66;
  transition: color .25s ease;
  z-index: 2;
}

/* 各象限文字位置（可微調百分比） */
.m4-btn-tl .m4-btn-inner {
  right: 50%;
  bottom: 50%;
  transform: translate(50%, 50%);
}

.m4-btn-tr .m4-btn-inner {
  left: 50%;
  bottom: 50%;
  transform: translate(-50%, 50%);
}

.m4-btn-bl .m4-btn-inner {
  right: 50%;
  top: 50%;
  transform: translate(50%, -50%);
}

.m4-btn-br .m4-btn-inner {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}



/* ======================================================
   中英文字切換：只淡入淡出
====================================================== */
.m4-btn-zh {
  display: block;
  transition: opacity .3s ease;
  font-family: "Noto Serif TC", serif;
  font-size: calc(22 * var(--vw-base));
  font-weight: 600;
  line-height: calc(50 * var(--vw-base));
}

.m4-btn-en {
  display: block;
  position: absolute;
  inset: 0;
  transition: opacity .3s ease;
  font-family: "Lora", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: calc(22 * var(--vw-base));
  line-height: calc(50 * var(--vw-base));
}

.m4-btn-en .bst {
  font-family: "Lora", serif;
  font-size: calc(36 * var(--vw-base));
  font-weight: 700;
}

.m4-btn-zh {
  opacity: 0;
}

/* hover：英 → 中 */
.m4-btn:hover .m4-btn-en {
  opacity: 0;
}

.m4-btn:hover .m4-btn-zh {
  opacity: 1;
}

/* active：中文停留 */
.m4-btn.active .m4-btn-en {
  opacity: 0;
}

.m4-btn.active .m4-btn-zh {
  opacity: 1;
}

.m4-btn.active .m4-btn-inner {
  color: rgba(117, 107, 102, 1);
}

/* ======================================================
   防呆：確保可點
====================================================== */
.m4-circle,
.m4-cross {
  pointer-events: none;
}


/* ✅ 修正：移除 transform 的 transition，讓 GSAP 完全掌控位移 */
#m4Title,
#m4STitleText,
#m4Eng,
#m4Cent {
  /* 🔴 只保留 opacity 的 transition 給點擊切換時使用 */
  transition: opacity .45s ease;
  will-change: opacity, transform;
}

/* ✅ 確保 scale 層可以被 GSAP 操控 y 軸 */
.m4-scale {
  display: inline-block;
  will-change: transform, opacity;
  /* 🔴 絕對不要在這邊寫 transition: transform，會造成抖動 */
  transition: opacity 0.4s ease;
}