* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  background-color: #570f52;
  scroll-behavior: smooth;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  touch-action: none;             /* 禁止觸控滑動、雙指縮放 */
  overscroll-behavior: none;      /* 禁止邊界回彈（如 iOS） */
  user-select: none;              /* 禁止選取文字 */
  -webkit-user-drag: none;        /* 禁止拖移 */
  -webkit-tap-highlight-color: transparent; /* 點擊無藍色高光 */

}

a {
  user-select: none;
}


/* -------- 各頁面專屬背景 -------- */
body.page-index,
body.page-index html {
  background: url('../images/bgIndex.jpg') no-repeat center center;
  background-size: cover;
    position: fixed;
}

body.page-executive,
body.page-executive html {
  background: url('../images/executiveBg.jpg') no-repeat center center;
  background-size: cover;
    position: fixed;
}

body.page-senior,
body.page-senior html {
  background: url('../images/executiveBg.jpg') no-repeat center center;
  background-size: cover;
    position: fixed;
}

body.page-director,
body.page-director html {
  background: url('../images/directorBg.png') no-repeat top center;
  background-size: cover;
  scroll-behavior: smooth;
  
}



.button-group a:focus {
  outline: none;
}

a:focus,
a:active {
  outline: none;
  background: transparent;
  color: inherit;
}

a img {
  outline: none;
}



/* 清除 a 標籤的點擊藍框 */
a,
a:focus,
a:active {
  outline: none !important;
  background: none !important;
  color: inherit;
  text-decoration: none;
}

/* 清除圖片可能的點擊藍框 */
a img,
a:focus img,
a:active img {
  outline: none !important;
  border: none !important;
}


/* 容器 */
.wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.container {
  width: 100%;
  height: 100vh;
  /* position: relative; */
  color: white;
  transform-origin: top center;
  
}


/* 共用Logo與右上文字 */
.logo {
  position: fixed;
  top: 4vh;
  left: 2vw;
  width: clamp(200px, 18vw, 300px) !important;
  min-width: 200px !important;
  max-width: 300px !important;
  z-index: 1;
}
 
.side-title {
  position: fixed;
  top: 4.5vh;
  right: 2vw;
  font-size: 2.5rem;
  letter-spacing: 0.42rem !important;
  font-weight: bold;
  color: rgb(211, 173, 67);
  z-index: 1;
    white-space: nowrap;
}



@media screen and (max-width: 1512px), screen and (max-height: 720px) {
  .logo {
    width: 100px !important;
    max-width: 100px !important;
    top: 2vh !important;
    left: 2vw !important;
  }
  .side-title {
    font-size: 1.6rem;          /* 字級變小 */
    max-width: 200px;           /* 或再縮小一點 */
    padding: 0.18em 0.6em;      /* 視覺上更精緻 */
  
  }
}


/* 中央標題 */
.center-block {
  max-width: 1350px;
  margin: 8vh auto 0;
  padding: 0 2vw;
  text-align: center;
    padding-top: 14vh; 
}

/* .title {
  position: relative;             
  width: 100%;                    
  max-width: 1350px;
  margin: 4vh auto 2vh auto;   
  padding: 1vh 1rem;
  text-align: center;
  z-index: 2;
  box-sizing: border-box;
} */



.title h1,
.main-title {
  font-size: clamp(2.5rem, 3vw, 4rem) !important;
  font-weight: 900;
  color: white;
  letter-spacing: 0.4rem;
  line-height: 1.2;
}

.title h2,
.date-title {
  font-size: clamp(1.8rem, 2vw, 3rem) !important;
  color: #d4a42b;
  font-weight: 700;
  letter-spacing: 0.1rem;
  margin-bottom: 0.5rem;
}


/*首頁 */


/* 首頁按鈕區 */
.button-group-wrapper {
  height: calc(100vh - 8vh - 120px - 10vh);
  display: flex;
  justify-content: center;
  align-items: center;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: clamp(2vw, 4vw, 80px); /* 原本2.5vw，拉大間距 */
  flex-wrap: wrap;
}

.button-group a img {
width: clamp(200px, 14vw, 280px)
  height: auto;
  transition: transform 0.3s ease;
}

.button-group a:hover img {
  transform: scale(1.05);
}

html.page-index,
body.page-index {
  overflow: hidden !important;   /* 關閉橫向與縱向捲軸 */
  height: 100vh !important;      /* 確保視窗內部不會溢出 */
}

body.page-index .button-group {
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(2px, 1vw, 20px) !important;
}

body.page-index .button-group-wrapper {
  overflow-x: auto;
  padding: 0 5vw;
  box-sizing: border-box;
  height: calc(100vh - 8vh - 120px - 10vh);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-5vh) !important;
  overflow-x: visible;
    padding: 0 5vw;
    box-sizing: border-box;
}

body.page-index {
  overflow-x: visible ;

}

body.page-index .wrapper {
  height: 100vh;            /* 佔滿整個視窗高度 */
  display: flex;
  justify-content: center;  /* 水平置中 */
  align-items: center;      /* 垂直置中 */
}
  

/* 1. 針對首頁解除水平裁切，讓按鈕不被裁掉 */
body.page-index,
body.page-index html,
body.page-index body {
  overflow-x: visible ;
}

/* 2. 在按鈕區兩側留點空，避免緊貼邊緣 */
body.page-index .button-group-wrapper {
  overflow-x: visible;       /* 確保子元素可溢出 */
  padding: 0 5vw;            /* 左右各留 5vw 空間 */
  box-sizing: border-box;
}

/* 保留同列三顆、不換行 */
body.page-index .button-group {
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(40px, 8vw, 120px);
}


body.page-index .button-group a img {
  width:400px !important;  /* 或你想要的固定寬度 */
  height: auto !important;
}

/* index結束 */



/* executive按鈕區 */

/* .page-index .title ,
  .page-executive .title ,
  .page-executive .title ,
  .page-senior .title ,
  .page-director-top */
  .title {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95vw;
    max-width: 1350px;
    text-align: center;
    margin: 0;
    z-index: 120;
    pointer-events: none;
    margin-top: 10vh;
    position: fixed;
    }


.leader-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 1240px;
  /* ✅ 固定整體寬度：280px * 4 + 40px * 3 */
  margin: 6vh auto;
  gap: 40px 2px;
    justify-content: center; /* ✅ 每排自動置中 */
    /* row-gap: 40px, column-gap: 24px */
  /* row-gap, column-gap 
}

.leader {
  width: 280px;
  /* ✅ 固定卡片寬度，不再使用 clamp 或 vw */
  text-align: center;
  
}



.photo-wrapper {
  position: relative;
  display: inline-block;
}

 .leader-photo 
 {
  aspect-ratio: 4 / 5;           /* ✅ 改為 4:5 */
  object-fit: cover;             /* ✅ 固定比例內裁切 */
  width: 100%;
  max-height: 360px;
  border-radius: 1.5rem;
  margin-bottom: 16px;
  box-shadow: 0 0 24px 8px rgba(212, 164, 43, 0.35);
  cursor: pointer;
}



.number-img {
  position: absolute;
  top: -1rem;   /* 貼近頂部，負值往上 */
  left: -1rem;  /* 貼近左側，負值往左 */
  width: 3rem !important;
  height: auto;
  pointer-events: none;
  z-index: 10;
  object-fit: contain;
}





.leader-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5vw;
  /* 控制左右之間的空隙 */
}

.leader img {
  height: auto;
  display: block;
  margin: 0 auto;
  cursor: pointer;
  margin-bottom: 7px;
}


.leader {
    transition: transform 0.25s ease;
}

.leader:hover {
  transform: scale(1.03);
  /* 放大 5% */
}


.name {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  color: white;
  letter-spacing: 0.12rem;
  text-decoration: none;
}

/* 響應式 */
@media screen and (max-width: 1919px) {
  body.page-executive .container,
  body.page-senior .container,
  body.page-director-top .container {
  transform: scale(0.85);
  }

  .button-group a img {
  /* 最小 240px、建議佔 18vw、最大 360px */
  width: clamp(240px, 18vw, 360px);
  height: auto;
  transition: transform 0.3s ease;
  }
}

.button-group a img:hover {
  transform: scale(1.05);
}



.popup:target {
  overflow-x: hidden;
}

.popup:target body,
.popup:target html {
  overflow-x: hidden;
}



/* director page 開始 */


body.page-director {
  background-image: url('../images/directorBg.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-attachment: fixed;  /* ✅ 背景固定 */
  overflow-x: hidden;
}

.page-director .wrapper {
  min-height: 100vh;
  overflow-x: hidden;
  box-sizing: border-box;
}


.page-director .container {
  min-height: 100%;
  padding-bottom:30vh;  /* 可依需要調整為 5vh～15vh */
  position: relative;
}

.page-director .bottom-spacer {
  height: 10vh;
}




.page-director .container {
  background: none !important;
  background-image: none !important;
  background-attachment: scroll !important;
}




/* 小標題區（含左右線） */
.page-director .grid-container {
  width: 100%;
  max-width: 1050px;     /* 想要的最寬度 */
  margin: 0 auto;        /* 置中 */
  padding: 0 1rem;       /* 小螢幕留白 */
  box-sizing: border-box;
}

.page-director .leader img{
     margin-bottom: 0;
}

.page-director .sub-title-bar {
  max-width: 1240px;              /* 與 .leader-grid 同寬 */
  margin: 4vh auto 4vh auto;      /* 自動左右置中 */
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  box-sizing: border-box;
}

.page-director .sub-title-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #d3ad43;
  opacity: 0.8;
  transform: translateY(-50%);
  z-index: 0;
}



.page-director .sub-title {
  background-color: #d3ad43;
  color: #ffffff;
  font-size: 1.7em;        /* 更大字體 */
  font-weight: bold;
  padding: 0.4rem 2rem;
  letter-spacing: 0.2rem;
  text-align: center;
  white-space: nowrap;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* 照片區塊（每排最多 6 個） */

/* 保護 body、html 不出 scroll 條 */
html, body {
  overflow-x: hidden !important;
}

.page-director .sub-title-bar::before {
  left: 0;
  right: 0;
}



.page-director .leader-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 880px;
  margin: 0 auto;
}


        



@media (max-width: 1280px) {
  .page-director .leader-grid { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 800px) {
  .page-director .leader-grid { grid-template-columns: repeat(2,1fr); }
}

.page-director .leader {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

/* 卡片本身 */


.page-director .leader img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain;
}

/* 照片樣式 */
 .page-director .leader-photo {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

/* 姓名樣式 */
.page-director .name {
  display: block;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
}

/* 隱藏空白卡片 */
 .leader.placeholder {
  visibility: hidden;
}


/* 中央標題 */
.page-director .center-block {
    padding-top: 0; 
margin: 0;
}


/* -------- 筆電螢幕 RWD -------- */



  .page-director .grid-container {
    width: 86vw;
    max-width: 920px;
    padding: 0 0.5rem;
  }
  .page-director .sub-title-bar {
    max-width: 920px;
    padding: 0 0.5rem;
  }
  .page-director .sub-title-bar::before {
    left: 0.5rem;
    right: 0.5rem;
  }
  .page-director .sub-title {
    font-size: 1.7rem;     
    padding: 0.3rem 1.3rem; 
  }
  .page-director .leader-grid {
    gap: 36px 18px;         
  }
  .page-director .leader {
    max-width: 130px;
  }
  .page-director .leader-photo {
    max-width: 130px;
  }
  




  .page-director .grid-container {
    margin-top: 0.5vh !important;    /* 上移一點 */
    margin-bottom: 0 !important;     /* 可視需求設定 */
  }





.page-director .title {
  position: relative;  /* ✅ 跟著正常排版走 */
  margin-top: 10vh;      /* 如果需要留距離上方 */
}






/* test*/


/* director page 結束 */






/* award page 開始 */

html, body, .page-award {
  overflow-x: hidden;
}

.page-award .name-bg {
  max-width: 100%;
  height: auto;
  display: block;
}


body.page-award {
  overflow-x: hidden;
  background: url('../images/awardBg.jpg') no-repeat center top;
  background-size: cover;
      scroll-behavior: smooth;
          overflow-x: hidden;

}

/* .page-director .title 
.page-award .title {
    position: relative;
/* padding-bottom: 20px;}*/




/* 主區塊包覆 */
.page-award .wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;


}



.page-award .title {
  position: relative;  /* ✅ 跟著正常排版走 */
  margin-top: 10vh;      /* 如果需要留距離上方 */
}

.page-award .leader img {
  margin-bottom: 0;
}

.page-award .container {
  width: 100% ;         /* 滿寬但不超出 */
  max-width: 1050px ;   /* 以這個為最大寬度 */
  margin: 0 auto ;      /* 置中 */
  padding: 0 1rem;                /* 左右內側留點空隙 */
  box-sizing: border-box;   
  z-index: 1;
  
}


/* 區塊小標圖片 */
.page-award .section-title {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 1vh auto 5vh;
}

.page-award .section-image {
  max-width: 260px;
  width: 22vw;
  height: auto;
}

/* 小標文字區 */
.page-award .sub-title-bar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 95vw;
  max-width: 1350px;
  margin: 4vh auto 2vh;
}

.page-award .sub-title-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #d3ad43;
  opacity: 0.8;
  z-index: 0;
}

.page-award .sub-title {
  background-color: #d3ad43;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: bold;
  padding: 0.4rem 2rem;
  letter-spacing: 0.2rem;
  text-align: center;
  white-space: nowrap;
  line-height: 1.8;
  border-radius: 0.5rem;
  position: relative;
  z-index: 1;
}


/* 卡片統一調整 */
.page-award .leader {
  
  text-align: center;
}

/* .page-award .five-cols .leader {
  width: 170px;
}

.page-award .six-cols .leader {
  width: 145px;
} */

/* 名字框 */
.page-award .name-wrapper {
  position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
 height: 80px; /* 或根據背景圖設 */
    aspect-ratio: 5 / 2;
    /* ✅ 建議補這個，或改成固定高度 */
    overflow: hidden;/* ✅ 防止超出產生 scroll */
      transition: transform 0.3s ease;
}


.name-wrapper:hover {
  transform: scale(1.05);
}

.page-award .name-bg {
  width: 100%;
  display: block;
  height: auto;
}

/* —— award.html 名字文字超重金色多層陰影 —— */
.page-award .name-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;

  /* ✅ 字少夠大，字多能縮 */
  font-size: clamp(1.07rem, 1.1vw, 1.1rem);
  font-weight: bold;
  line-height: 1.4;
  padding: 0 0.5em;
  /* ✅ 這是關鍵：讓中文字永遠保持一行 */
  white-space: nowrap;
  word-break: keep-all;

  max-width: 100%;
  /* ✅ 撐到最大寬度，避免過早斷字 */
  pointer-events: none;

  text-shadow: 2px 2px 6px rgba(205, 149, 7, 0.8)
}


.page-award .leader-photo {
  width: 100%;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.page-award .leader-photo:hover {
  transform: scale(1.05);
}

/* 隱藏空格 */
.page-award .leader.placeholder {
  visibility: hidden;
    min-height: 130px;  /* ✅ 跟一般卡片高度一致 */
}

.page-award .footer-spacer {
  height: 10vh;  
}

.popup-title {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 95vw;
  max-width: 1350px;
  text-align: center;
  margin-top: 10vh;   /* ✅ 這行讓它與主頁標題位置一致 */
  z-index: 9999;
  pointer-events: none;
}

  
  .page-award .leader-grid.five-cols,
  .page-award .leader-grid.six-cols {
    max-width: 880px;
    /* padding: 0 1rem;      如果你有側邊內距 */
    gap: 2.5vh 1vw;
    
    /* ★ 新增：水平置中 grid 容器 */
    margin: 0 auto;
    
    /* ★ 若要把項目也水平置中，再補這兩條： */
    justify-content: center;  /* 置中整個 grid 內容（當 grid-width < container-width 時有用） */
    justify-items: center;  
  }

  .page-award .leader-grid.five-cols,
  .page-award .leader-grid.six-cols {
    max-width: 880px;
    gap: 2.5vh 1vw;  /* 間距也可縮小 */
  }

  .page-award .section-title {
    margin: 2vh auto 4vh;
  }

  .page-award .section-image {
    width: 16vw;  /* 圖片也可稍微縮小 */
  }

  .page-award .five-cols .leader {
    width: 150px;
  }

  .page-award .six-cols .leader {
    width: 130px;
  }






/* test*/


/* award page 結束 */





/* executive、senior、director-top popup 開始 */


.popup {
  position: fixed ;
  top: 4vh ;
  left: 50% ;
  transform: translateX(-50%) translateY(100px) ;
  width: 67% ;
  max-width: 1200px ;
  height: calc(100vh - 10vh) ;
  overflow-y: auto ;
  flex-direction: column ;
  align-items: center ;
  background: transparent ;
  z-index: 10000 ;
  opacity: 0 ;
  pointer-events: none ;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.popup:target {
  opacity: 1 ;
  pointer-events: auto ;
  transform: translateX(-50%) translateY(20px) ; 
}


/* 內容容器：恢復原本設定＋下移整組 */
.popup-content {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 2;
  background-image: url('../images/popupBg1.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  /* 從原本 calc(4rem+6vh) 改成更大 */
  padding: calc(4rem + 8vh) 1rem 4rem ;
  overflow: hidden;
}


/* 共用光點樣式 */
.popup-dot {
  position: absolute;
    width: 2px;
    /* ✅ 更細，像光束線 */
    height: 80px;
    /* ✅ 更長，像光線射出 */
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
    opacity: 0;
    animation: dot-beam-line 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    filter: blur(1px);
}

/* —— 各光點位置＋不同動畫延遲 —— */
.dot-1 { top: 10%; left: 15%; animation-delay: 0s; }
.dot-2 { top: 20%; left: 70%; animation-delay: 0.5s; }
.dot-3 { top: 40%; left: 30%; animation-delay: 1s; }
.dot-4 { top: 60%; left: 80%; animation-delay: 1.5s; }
.dot-5 { top: 75%; left: 20%; animation-delay: 0.3s; }
.dot-6 { top: 85%; left: 50%; animation-delay: 0.8s; }
.dot-7 { top: 50%; left: 10%; animation-delay: 1.2s; }
.dot-8 { top: 30%; left: 50%; animation-delay: 0.6s; }
.dot-9  { top: 45%;  left: 15%;  animation-delay: 0.8s;   }
.dot-10 { top: 50%;  left: 85%;  animation-delay: 1.1s;   }
.dot-11 { top: 55%;  left: 25%;  animation-delay: 1.4s;   }
.dot-12 { top: 60%;  left: 45%;  animation-delay: 1.7s;   }
.dot-13 { top: 65%;  left: 65%;  animation-delay: 0.4s;   }
.dot-14 { top: 70%;  left: 35%;  animation-delay: 0.7s;   }
.dot-15 { top: 75%;  left: 55%;  animation-delay: 1s;     }
.dot-16 { top: 80%;  left: 75%;  animation-delay: 1.3s;   }
.dot-17 { top: 85%;  left: 20%;  animation-delay: 1.6s;   }
.dot-18 { top: 90%;  left: 50%;  animation-delay: 1.9s;   }
.dot-19 { top: 95%;  left: 10%;  animation-delay: 0.1s;   }
.dot-20 { top: 98%;  left: 90%;  animation-delay: 0.8s;   }
/* 淡入淡出 + 發光縮放動畫 */
@keyframes dot-beam-line {
  0% {
    transform: translateY(30px) scaleY(0.2);
    opacity: 0;
  }

  20% {
    opacity: 1;
    transform: translateY(10px) scaleY(1);
  }

  60% {
    opacity: 0.6;
    transform: translateY(-20px) scaleY(1.2);
  }

  100% {
    opacity: 0;
    transform: translateY(-40px) scaleY(0.2);
  }
}

/* 共用光點樣式 */
.popup-dot2 {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), transparent 60%);
  border-radius: 50%;
  opacity: 0.8;
  animation: dot-fade 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  filter: blur(1px);
}

/* —— 各光點位置＋不同動畫延遲 —— */
.dot2-1 {
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.dot2-2 {
  top: 20%;
  left: 70%;
  animation-delay: 0.5s;
}

.dot2-3 {
  top: 40%;
  left: 30%;
  animation-delay: 1s;
}

.dot2-4 {
  top: 60%;
  left: 80%;
  animation-delay: 1.5s;
}

.dot2-5 {
  top: 75%;
  left: 20%;
  animation-delay: 0.3s;
}

.dot2-6 {
  top: 85%;
  left: 50%;
  animation-delay: 0.8s;
}

.dot2-7 {
  top: 50%;
  left: 10%;
  animation-delay: 1.2s;
}

/* 淡入淡出 + 發光縮放動畫 */
@keyframes dot-fade {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.6);
  }
}



.bg-dot-1 {
  top: 45%;
  left: 48%;
  box-shadow:
    0 0 50px 30px rgba(179, 121, 113, 1),
    0 0 150px 75px rgba(179, 121, 113, 0.6),
    0 0 240px 120px rgba(179, 121, 113, 0.3),
    0 0 360px 180px rgba(179, 121, 113, 0.1);
  animation: dot-move 12s ease-in-out infinite;
}

/* 2號：中偏右—大 */
.bg-dot-2 {
  top: 47%;
  left: 52%;
  box-shadow:
    0 0 40px 20px rgba(179, 121, 113, 1),
    0 0 120px 60px rgba(179, 121, 113, 0.6),
    0 0 200px 100px rgba(179, 121, 113, 0.3),
    0 0 300px 150px rgba(179, 121, 113, 0.1);
  animation: dot-move-rev 14s ease-in-out infinite;
}

/* 3號：左上—中等 */
.bg-dot-3 {
  top: 20%;
  left: 20%;
  box-shadow:
    0 0 30px 15px rgba(179, 121, 113, 1),
    0 0 100px 50px rgba(179, 121, 113, 0.6),
    0 0 180px 90px rgba(179, 121, 113, 0.3),
    0 0 260px 130px rgba(179, 121, 113, 0.1);
  animation: dot-move 16s ease-in-out infinite;
}

/* 4號：右上—偏小 */
.bg-dot-4 {
  top: 25%;
  right: 25%;
  box-shadow:
    0 0 25px 12px rgba(179, 121, 113, 1),
    0 0 80px 40px rgba(179, 121, 113, 0.6),
    0 0 140px 70px rgba(179, 121, 113, 0.3),
    0 0 200px100px rgba(179, 121, 113, 0.1);
  animation: dot-move-rev 18s ease-in-out infinite;
}

/* 5號：下方中央—最大 */
.bg-dot-5 {
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow:
    0 0 60px 35px rgba(179, 121, 113, 1),
    0 0 160px 80px rgba(179, 121, 113, 0.6),
    0 0 260px130px rgba(179, 121, 113, 0.3),
    0 0 380px190px rgba(179, 121, 113, 0.1);
  animation: dot-move 14s ease-in-out infinite;
}

/* 6號：下方偏右—小 */
.bg-dot-6 {
  bottom: 25%;
  right: 20%;
  box-shadow:
    0 0 20px 10px rgba(179, 121, 113, 1),
    0 0 60px 30px rgba(179, 121, 113, 0.6),
    0 0 120px 60px rgba(179, 121, 113, 0.3),
    0 0 180px 90px rgba(179, 121, 113, 0.1);
  animation: dot-move-rev 15s ease-in-out infinite;
}

/* 7號：左下—中偏大 */
.bg-dot-7 {
  bottom: 15%;
  left: 15%;
  box-shadow:
    0 0 35px 18px rgba(179, 121, 113, 1),
    0 0 110px 55px rgba(179, 121, 113, 0.6),
    0 0 190px 95px rgba(179, 121, 113, 0.3),
    0 0 280px140px rgba(179, 121, 113, 0.1);
  animation: dot-move-rev 17s ease-in-out infinite;
}

/* 8號：右中偏上—最小 */
.bg-dot-8 {
  top: 30%;
  left: 70%;
  box-shadow:
    0 0 15px 8px rgba(179, 121, 113, 1),
    0 0 50px 25px rgba(179, 121, 113, 0.6),
    0 0 100px 50px rgba(179, 121, 113, 0.3),
    0 0 150px 75px rgba(179, 121, 113, 0.1);
  animation: dot-move 13s ease-in-out infinite;
}


/* —— 共用移動＋淡入淡出 keyframes —— */
@keyframes dot-move {
  0% {
    transform: translate(0px, 0px) scale(1);
    opacity: 0.3;
  }

  25% {
    transform: translate(80px, -40px) scale(1.1);
    opacity: 0.6;
  }

  50% {
    transform: translate(-60px, 60px) scale(1.2);
    opacity: 0.8;
  }

  75% {
    transform: translate(40px, 20px) scale(1.1);
    opacity: 0.6;
  }

  100% {
    transform: translate(0px, 0px) scale(1);
    opacity: 0.3;
  }
}

@keyframes dot-move-rev {
  0% {
    transform: translate(0px, 0px) scale(1);
    opacity: 0.3;
  }

  25% {
    transform: translate(-80px, 40px) scale(1.1);
    opacity: 0.6;
  }

  50% {
    transform: translate(60px, -60px) scale(1.2);
    opacity: 0.8;
  }

  75% {
    transform: translate(-40px, -20px) scale(1.1);
    opacity: 0.6;
  }

  100% {
    transform: translate(0px, 0px) scale(1);
    opacity: 0.3;
  }
}

/*光束 結束*/

.bg-dot {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 0;
  transform-origin: center;
  /* 保留原本的 box-shadow 暈染 */
  box-shadow:
    0 0 30px 20px rgba(179, 121, 113, 1),
    0 0 120px 60px rgba(179, 121, 113, 0.6),
    0 0 240px 120px rgba(179, 121, 113, 0.3),
    0 0 360px 180px rgba(179, 121, 113, 0.1);
}

/* 第一層核心：大範圍模糊，鋪滿亮度 */
.bg-dot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  background: rgba(179, 121, 113, 1);
  border-radius: 50%;
  filter: blur(30px) opacity(1);
  z-index: 1;
}

/* 第二層核心：極集中光點，加強飽和 */
.bg-dot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: rgba(179, 121, 113, 1);
  border-radius: 50%;
  filter: blur(8px) opacity(1.2);
  z-index: 2;
}


/* —— 各光點起始位置 & 動畫設定 —— */

.bg-dot-1 {
  top: 45%;
  left: 48%;
  box-shadow:
    0 0 50px 30px rgba(179, 121, 113, 1),
    0 0 150px 75px rgba(179, 121, 113, 0.6),
    0 0 240px 120px rgba(179, 121, 113, 0.3),
    0 0 360px 180px rgba(179, 121, 113, 0.1);
  animation: dot-move 12s ease-in-out infinite;
}

/* 2號：中偏右—大 */
.bg-dot-2 {
  top: 47%;
  left: 52%;
  box-shadow:
    0 0 40px 20px rgba(179, 121, 113, 1),
    0 0 120px 60px rgba(179, 121, 113, 0.6),
    0 0 200px 100px rgba(179, 121, 113, 0.3),
    0 0 300px 150px rgba(179, 121, 113, 0.1);
  animation: dot-move-rev 14s ease-in-out infinite;
}

/* 3號：左上—中等 */
.bg-dot-3 {
  top: 20%;
  left: 20%;
  box-shadow:
    0 0 30px 15px rgba(179, 121, 113, 1),
    0 0 100px 50px rgba(179, 121, 113, 0.6),
    0 0 180px 90px rgba(179, 121, 113, 0.3),
    0 0 260px 130px rgba(179, 121, 113, 0.1);
  animation: dot-move 16s ease-in-out infinite;
}

/* 4號：右上—偏小 */
.bg-dot-4 {
  top: 25%;
  right: 25%;
  box-shadow:
    0 0 25px 12px rgba(179, 121, 113, 1),
    0 0 80px 40px rgba(179, 121, 113, 0.6),
    0 0 140px 70px rgba(179, 121, 113, 0.3),
    0 0 200px100px rgba(179, 121, 113, 0.1);
  animation: dot-move-rev 18s ease-in-out infinite;
}

/* 5號：下方中央—最大 */
.bg-dot-5 {
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow:
    0 0 60px 35px rgba(179, 121, 113, 1),
    0 0 160px 80px rgba(179, 121, 113, 0.6),
    0 0 260px130px rgba(179, 121, 113, 0.3),
    0 0 380px190px rgba(179, 121, 113, 0.1);
  animation: dot-move 14s ease-in-out infinite;
}

/* 6號：下方偏右—小 */
.bg-dot-6 {
  bottom: 25%;
  right: 20%;
  box-shadow:
    0 0 20px 10px rgba(179, 121, 113, 1),
    0 0 60px 30px rgba(179, 121, 113, 0.6),
    0 0 120px 60px rgba(179, 121, 113, 0.3),
    0 0 180px 90px rgba(179, 121, 113, 0.1);
  animation: dot-move-rev 15s ease-in-out infinite;
}

/* 7號：左下—中偏大 */
.bg-dot-7 {
  bottom: 15%;
  left: 15%;
  box-shadow:
    0 0 35px 18px rgba(179, 121, 113, 1),
    0 0 110px 55px rgba(179, 121, 113, 0.6),
    0 0 190px 95px rgba(179, 121, 113, 0.3),
    0 0 280px140px rgba(179, 121, 113, 0.1);
  animation: dot-move-rev 17s ease-in-out infinite;
}

/* 8號：右中偏上—最小 */
.bg-dot-8 {
  top: 30%;
  left: 70%;
  box-shadow:
    0 0 15px 8px rgba(179, 121, 113, 1),
    0 0 50px 25px rgba(179, 121, 113, 0.6),
    0 0 100px 50px rgba(179, 121, 113, 0.3),
    0 0 150px 75px rgba(179, 121, 113, 0.1);
  animation: dot-move 13s ease-in-out infinite;
}


/* —— 共用移動＋淡入淡出 keyframes —— */
@keyframes dot-move {
  0% {
    transform: translate(0px, 0px) scale(1);
    opacity: 0.3;
  }

  25% {
    transform: translate(80px, -40px) scale(1.1);
    opacity: 0.6;
  }

  50% {
    transform: translate(-60px, 60px) scale(1.2);
    opacity: 0.8;
  }

  75% {
    transform: translate(40px, 20px) scale(1.1);
    opacity: 0.6;
  }

  100% {
    transform: translate(0px, 0px) scale(1);
    opacity: 0.3;
  }
}

@keyframes dot-move-rev {
  0% {
    transform: translate(0px, 0px) scale(1);
    opacity: 0.3;
  }

  25% {
    transform: translate(-80px, 40px) scale(1.1);
    opacity: 0.6;
  }

  50% {
    transform: translate(60px, -60px) scale(1.2);
    opacity: 0.8;
  }

  75% {
    transform: translate(-40px, -20px) scale(1.1);
    opacity: 0.6;
  }

  100% {
    transform: translate(0px, 0px) scale(1);
    opacity: 0.3;
  }
}





/* 關閉按鈕 */
.popup .close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  z-index: 11000;
  width: clamp(32px, 2.8vw, 40px);
  height: clamp(32px, 2.8vw, 40px);
  line-height: clamp(32px, 2.8vw, 40px);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  /* ✅ 大螢幕不會過大 */
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-weight: 100;
  opacity: 60%;
}

/* 人物照片：放大並下移 */
.popup-photo {
  width: clamp(330px, 50vw, 430px) ;
  max-width: 430px ;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2rem;
  margin: 30px auto 60px ;
  position: relative;
  top: -10px ;
  z-index: 1;
  box-shadow: 0 0 20px 6px rgba(212,164,43,0.3);
}

/* 緞帶＋名字：放大並下移 */
.popup-ribbon-wrapper {
  position: relative;           /* → 提供絕對定位參考 */
  display: inline-block;        /* → wrapper 寬度跟內容一致 */
  width: clamp(300px, 40vw, 500px);
  margin-top: -50px;            /* → 將緞帶往照片下方推 */
  z-index: 2;
  text-align: center;
}

.popup-ribbon-wrapper .popup-ribbon img {
  width: 100%;
  height: auto;
  display: block;
}

.popup-ribbon-wrapper .popup-name-wrapper {
  position: absolute;
  /* 垂直置中於緞帶 */
  top: 5% ;
  left: 50% ;
  transform: translateX(-50%) ;
  width: 100%;
  text-align: center;
  pointer-events: none;
}

.popup-ribbon-wrapper .popup-namefont {
  display: inline-block;
  white-space: nowrap;
  font-weight: bold;
  font-size: 2.3rem ;
  color: #440c3a;
}

@media screen and (max-width: 1512px) {
  .popup {
    width: 70% ;
    max-width: 1000px ;
  }
  .popup-photo {
    width: 330px ;
    max-width: 330px ;
  }
  .popup-ribbon-wrapper {
    width: 380px ;
    max-width: 380px ;
  }
  .popup-ribbon-wrapper .popup-namefont {
    font-size: 1.7rem ;
  }
}

body.page-senior .leader-grid,
body.page-executive .leader-grid,
body.page-director-top .leader-grid {
  width: clamp(1080px, 64vw, 1240px);
  margin: 8vh auto 5vh auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: clamp(16px, 1.8vw, 24px);
  row-gap: clamp(32px, 4vh, 48px);
  justify-content: center;
}

/* ✅ 人物照片再大，但保留彈性 */
.leader .leader-photo {
  width: 100%;
height: clamp(230px, 27.5vh, 280px);
  /* 原本最高 260，現在最多 300 */
  object-fit: cover;
  display: block;
}

/* ✅ 數字圖示再大，但不撐爆 */
.leader .number-img {
  width: clamp(72px, 6.5vw, 100px);
  /* 原本 max 90 → 現在拉到 100 */
  height: auto;
  display: block;
  margin: 0 auto 0.5vh auto;
}



/* executive、senior、director-top popup 結束 */




/* directorpopup 開始 */



.director-popup {
  position: fixed ;
  top: 4vh ;
  left: 50% ;
  transform: translateX(-50%) translateY(100px) ; 
  width: 67% ;
  max-width: 1200px ;
  height: calc(100vh - 10vh) ;
  overflow-y: auto ;
  flex-direction: column ;
  align-items: center ;
  background: transparent ;
  z-index: 10000 ;
  opacity: 0 ;
  pointer-events: none ;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
    overflow: hidden;
}

.director-popup:target {
  opacity: 1 ;
  pointer-events: auto ;
  transform: translateX(-50%) translateY(20px) ; 
}


/* 內容容器 */
.director-popup-content {

  box-sizing: border-box;
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 2;
  background-image: url('../images/popupBg2.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  /* 從原本 calc(4rem+6vh) 改成更大 */
  padding: calc(4rem + 8vh) 1rem 4rem ;
  overflow: hidden;
}


.popup-title {
  text-align: center;
  margin: 2rem auto 1.5rem auto;
  padding: 0;
  line-height: 1.4;
}

.popup-date-title {
    font-size: clamp(1.8rem, 2vw, 3rem) !important;
    color: #d4a42b;
    font-weight: 700;
    letter-spacing: 0.1rem;
    margin-bottom: 0.5rem;
}

.popup-main-title {
font-size: clamp(2.5rem, 3vw, 4rem) !important;
    font-weight: 900;
    color: white;
    letter-spacing: 0.4rem;
    line-height: 1.2;
}



/* 關閉按鈕 */
.director-popup .close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  z-index: 11000;
  width: clamp(32px, 2.8vw, 40px);
  height: clamp(32px, 2.8vw, 40px);
  line-height: clamp(32px, 2.8vw, 40px);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  /* ✅ 大螢幕不會過大 */
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-weight: 100;
  opacity: 60%;
}
/* ─── 人物照片 ─────────────────────────────────── */
.director-popup-photo {
  width: clamp(330px, 50vw, 430px);
  max-width: 430px;
  aspect-ratio: 4/5;
  object-fit: cover;
  margin: 30px auto 60px;
  position: relative;
  top: -10px;
  z-index: 1;
}

/* ─── 緞帶＋名字：放大並下移，文字絕對水平＋垂直置中 ───────────────── */
.director-popup-ribbon-wrapper {
  position: relative;            /* ← 提供絕對定位參考 */
  display: inline-block;         /* ← 依內容自動寬度 */
  width: clamp(300px, 40vw, 500px);
  margin-top: -50px;             /* ← 往照片下方推緞帶 */
  z-index: 2;
  text-align: center;
}






/* 緞帶圖片：100% 寬度填滿 wrapper */
..director-popup-ribbon img {
  height: auto;
    display: block;
    margin: 0 auto;
}



/* 姓名區塊：真正垂直＋水平都置中 */
.director-popup-ribbon-wrapper .director-popup-name-wrapper {
  position: absolute;
  bottom: 0;
  left: 50%;
 transform: translate(-50%, 90%); /* ✅ 向下移動一點 */
  width: auto; 
  justify-content: center;
  pointer-events: none;
  
  z-index: 3;                    /* 確保文字蓋在緞帶上 */
}

/* 姓名字體樣式 */

.director-popup-ribbon-wrapper .director-popup-namefont {
  position: absolute;
    top: 50%;
    left: 50%;
transform: translate(-50%, -50%);
font-size: 2.3rem;
    /* ✅ 不要太大避免爆出緞帶 */
    font-weight: bold;
    white-space: nowrap;
    /* ✅ 一行不換行 */
    word-break: keep-all;
    /* ✅ 中文整段不中斷 */
    /* ✅ 避免撐爆緞帶 */
      line-height: 1.1;

    text-align: center;
    pointer-events: none;
  color: #440c3a;
  }





  
/* ─── 響應式：max-width 1512px ───────────────── */
@media screen and (max-width: 1512px) {
  /* 整體 popup 寬度 */
  .popup {
    width: 70%;
    max-width: 1000px;
  }

  /* 人物照片 */
  .director-popup-photo {
    width: 330px;
    max-width: 330px;
  }

  /* 緞帶＋名字 wrapper */
  .director-popup-ribbon-wrapper {
    width: 380px;
  }

  /* 緞帶上的字體大小 */
  .director-popup-ribbon-wrapper .director-popup-namefont {
    font-size: 1.7rem;
  }
}







/* awardpopup 開始 */


.award-popup {
  position: fixed ;
  top: 4vh ;
  left: 50% ;
  transform: translateX(-50%) translateY(100px) ; 
  width: 67% ;
  max-width: 1200px ;
  height: calc(100vh - 10vh) ;
  overflow-y: auto ;
  flex-direction: column ;
  align-items: center ;
  background: transparent ;
  z-index: 10000 ;
  opacity: 0 ;
  pointer-events: none ;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
    overflow: hidden;
}


.award-popup:target {
  opacity: 1 ;
  pointer-events: auto ;
  transform: translateX(-50%) translateY(20px) ; 
}

.main-title.main-popup { display: none; }

/* 內容容器 */
.award-popup-content {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 2;
  background-image: url('../images/popupBg3.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  /* 從原本 calc(4rem+6vh) 改成更大 */
  padding: calc(4rem + 8vh) 1rem 4rem ;
  overflow: hidden;
}

/* 關閉按鈕 */
.award-popup .close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  z-index: 11000;
  width: clamp(32px, 2.8vw, 40px);
  height: clamp(32px, 2.8vw, 40px);
  line-height: clamp(32px, 2.8vw, 40px);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  /* ✅ 大螢幕不會過大 */
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-weight: 100;
  opacity: 60%;
}

/* 人物照片：放大並下移 */
.award-popup-photo {
  width: clamp(330px, 50vw, 430px) ;
  max-width: 430px ;
  aspect-ratio: 4/5;
  object-fit: cover;
  margin: 30px auto 60px ;
  position: relative;
  top: -10px ;
  z-index: 1;
}

/* 緞帶＋名字：放大並下移 */
.award-popup-ribbon-wrapper {
  width: clamp(300px, 40vw, 500px) ;
  position: relative;
  display: inline-block;
  /* 將緞帶往照片下方推 */
  margin-top: -50px;
  z-index: 2;
  text-align: center;
}



.award-popup-ribbon-wrapper .award-popup-ribbon img {
  /* ✅ 視覺剛好，不用太大 */
  height: auto;
    display: block;
    margin: 0 auto;
}



.award-popup-ribbon-wrapper .award-popup-name-wrapper {
  position: absolute;
  bottom: 0;
  left: 50%;
 transform: translate(-50%, 90%); /* ✅ 向下移動一點 */
  width: auto; 
}


.award-popup-namefont {
  position: absolute;
    top: 50%;
    left: 50%;
transform: translate(-50%, -60%);
font-size: 2.3rem;
    /* ✅ 不要太大避免爆出緞帶 */
    font-weight: bold;
    white-space: nowrap;
    /* ✅ 一行不換行 */
    word-break: keep-all;
    /* ✅ 中文整段不中斷 */
    max-width: 90%;
    /* ✅ 避免撐爆緞帶 */
      line-height: 1.1;

    text-align: center;
    pointer-events: none;
    text-shadow: 2px 2px 6px rgba(205, 149, 7, 0.8);
  }
  /* .popup-namefont .zh-name {
  font-size: 1.4rem;
}

.award-popup-namefont .en-name {
  font-size: 2rem;
  letter-spacing: 0.05em;
} */

.main-title.main-popup { display: none; }
.popup:target ~ .title .main-default { display: none; }
.popup:target ~ .title .main-popup { display: block; }

.page-award .award-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);  /* ✅ 固定 6 欄 */
  gap: 40px 24px;
  width: 100%;
  max-width: 1350px;
  margin: 3vh auto;
  padding: 0 1rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

.page-award .award {
  width: 100%;
  max-width: unset;
  box-sizing: border-box;
}


@media (max-width: 1280px) {
  .page-award .award-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 800px) {
  .page-award .award-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


html, body {
  overflow-x: hidden !important;   /* ✅ 只禁止橫向 scroll */
  overflow-y: auto !important;     /* ✅ 保留垂直 scroll */
}
.page-award {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
}

/* 強制容器排版不撐出視窗 */
.page-award .award-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 40px 24px !important;
  padding: 0 1rem !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 1350px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* 單個卡片寬度 */
.page-award .award {
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* 關鍵：圖片不可撐爆容器 */
.page-award .award img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain;
}



/* ─── 響應式：max-width 1512px ───────────────── */
@media screen and (max-width: 1512px) {
  /* 整體 popup 寬度 */
  .award-popup {
    width: 70%;
    max-width: 1000px;
  }

  /* 人物照片 */
  .award-popup-photo {
    width: 330px;
    max-width: 330px;
  }

  /* 緞帶＋名字 wrapper */
  .award-popup-ribbon-wrapper {
    width: 380px;
  }

  /* 緞帶上的字體大小 */
  .award-popup-ribbon-wrapper .award-popup-namefont {
    font-size: 1.7rem;
  }
}








/*------*/

/* 1. 針對 5 欄 */
.page-award .leader-grid.five-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 每排 5 欄 */
  gap: 2.5vh 1vw;
  justify-content: center; /* 💥關鍵：置中最後一排 */
  justify-items: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* 2. 針對 6 欄 */
.page-award .leader-grid.six-cols {
  display: grid;
  width: 100%;
  max-width: 1200px;
  margin: 3vh auto;
  padding: 0 !important;
  box-sizing: border-box;

justify-content: center;
  justify-items: center;

  grid-template-columns: repeat(6, 145px) !important;  /* 固定每欄 145px */
  gap: 2.5vh 1.5vw;
}

/* 3. 確保 .leader 沒有死板寬度 */
.page-award .leader {
  text-align: center;
}




/* awardpopup 結束 */



/* —— index光暈效果 + 閃爍動畫 開始—— */

.index-glow-left {
  position: fixed;
  top: 0; left: 0;
  width: 1000px; height: 1000px;           /* 放大範圍 */
  background: radial-gradient(
    circle,
    rgba(176, 102, 255, 0.7),              /* 提高 alpha */
    rgba(108, 42, 255, 0.5) 20%,
    transparent 80%
  );
  filter: blur(60px);                      /* 縮小 blur */
  pointer-events: none;
  z-index: 0;                             /* 內容上方，背景下方 */
  animation: flicker-left 2.5s ease-in-out infinite;
  transform: none;
}

.index-glow-right {
  position: fixed;                         /* 跟左側同為 fixed */
  top: 50%; left: 50%;                     /* 視窗中心 */
  width: 1000px; height: 1000px;
  background: radial-gradient(
    circle,
    rgba(255, 153, 204, 0.5),              /* 提高 alpha */
    rgba(255, 102, 178, 0.3) 60%,
    transparent 80%
  );
  transform: translate(-50%, -50%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: flicker-right 2.5s ease-in-out infinite;
}

/* keyframes 保留不動 */
@keyframes flicker-left {
  0%,100% { opacity: 0.3; }
  50%     { opacity: 0.8; transform: scale(1.06); }
}
@keyframes flicker-right {
  0%,100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
  50%     { opacity: 0.4; transform: translate(-50%, -50%) scale(1.08); }
}


body.page-index::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/noise.png') repeat;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 2;
}

/* —— index光暈效果 + 閃爍動畫 結束—— */





/* —— index光暈效果 + 閃爍動畫 開始—— */

.award-glow-left {
  position: fixed;
  top: 0; left: 0;
  width: 1000px; height: 1000px;           /* 放大範圍 */
  background: radial-gradient(
    circle,
    rgba(224, 195, 255, 0.7),              /* 提高 alpha */
    rgba(108, 42, 255, 0.5) 20%,
    transparent 80%
  );
  filter: blur(60px);                      /* 縮小 blur */
  pointer-events: none;
  z-index: 0;                             /* 內容上方，背景下方 */
  animation: flicker-left 2.5s ease-in-out infinite;
  transform: none;
}

.award-glow-right {
  position: fixed;                         /* 跟左側同為 fixed */
  top: 50%; left: 50%;                     /* 視窗中心 */
  width: 1000px; height: 1000px;
  background: radial-gradient(
    circle,
    rgba(255, 153, 204, 0.5),              /* 提高 alpha */
    rgba(255, 102, 178, 0.3) 60%,
    transparent 80%
  );
  transform: translate(-50%, -50%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: flicker-right 2.5s ease-in-out infinite;
}

/* keyframes 保留不動 */
@keyframes flicker-left {
  0%,100% { opacity: 0.3; }
  50%     { opacity: 0.8; transform: scale(1.06); }
}
@keyframes flicker-right {
  0%,100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
  50%     { opacity: 0.4; transform: translate(-50%, -50%) scale(1.08); }
}



/* —— index光暈效果 + 閃爍動畫 結束—— */


 .popup-glow-left {
  position: absolute;
  top: 2%;
  left: 2%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(226, 90, 226, 0.4) ,
        rgba(47, 12, 41, 0.7) 70%,    
    transparent 80%
  );
  filter: blur(30px);                    /* ⬇ 適度聚焦 */
  pointer-events: none;
  z-index: 0;
  animation: popup-flicker-left 3s ease-in-out infinite;
}

.popup-glow-right {
  position: absolute;
  bottom: 15%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(250, 62, 250, 0.4) ,
        rgba(131, 32, 115, 0.7)0%,  
    transparent 80%
  );
  filter: blur(30px);                    /* ⬇ 模糊降低 */
  pointer-events: none;
  z-index: 0;
  animation: popup-flicker-right 4s ease-in-out infinite;
}


@keyframes popup-flicker-left {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(30px, -30px) scale(1.15);
    opacity: 1;
  }
}

@keyframes popup-flicker-right {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-30px, 30px) scale(1.15);
    opacity: 1;
  }
}



/* —— 多顆黃光點移動 開始 —— */


.bg-dot {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 0;
  transform-origin: center;
  /* 保留原本的 box-shadow 暈染 */
  box-shadow:
    0 0 30px 20px rgba(179,121,113,1),
    0 0 120px 60px rgba(179,121,113,0.6),
    0 0 240px 120px rgba(179,121,113,0.3),
    0 0 360px 180px rgba(179,121,113,0.1);
}

/* 第一層核心：大範圍模糊，鋪滿亮度 */
.bg-dot::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 60px;
  background: rgba(179,121,113,1);
  border-radius: 50%;
  filter: blur(30px) opacity(1);
  z-index: 1;
}

/* 第二層核心：極集中光點，加強飽和 */
.bg-dot::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 20px; height: 20px;
  background: rgba(179,121,113,1);
  border-radius: 50%;
filter: none;
  z-index: 2;
}


/* —— 各光點起始位置 & 動畫設定 —— */





.bg-dot-1 {
  top: 45%; left: 48%;
  box-shadow:
    0 0 50px 30px rgba(179,121,113,1),
    0 0 150px 75px rgba(179,121,113,0.6),
    0 0 240px 120px rgba(179,121,113,0.3),
    0 0 360px 180px rgba(179,121,113,0.1);
  animation: dot-move 12s ease-in-out infinite;
}

/* 2號：中偏右—大 */
.bg-dot-2 {
  top: 47%; left: 52%;
  box-shadow:
    0 0 40px 20px rgba(179,121,113,1),
    0 0 120px 60px rgba(179,121,113,0.6),
    0 0 200px 100px rgba(179,121,113,0.3),
    0 0 300px 150px rgba(179,121,113,0.1);
  animation: dot-move-rev 14s ease-in-out infinite;
}

/* 3號：左上—中等 */
.bg-dot-3 {
  top: 20%; left: 20%;
  box-shadow:
    0 0 30px 15px rgba(179,121,113,1),
    0 0 100px 50px rgba(179,121,113,0.6),
    0 0 180px 90px rgba(179,121,113,0.3),
    0 0 260px 130px rgba(179,121,113,0.1);
  animation: dot-move 16s ease-in-out infinite;
}

/* 4號：右上—偏小 */
.bg-dot-4 {
  top: 25%; right: 25%;
  box-shadow:
    0 0 25px 12px rgba(179,121,113,1),
    0 0  80px 40px rgba(179,121,113,0.6),
    0 0 140px 70px rgba(179,121,113,0.3),
    0 0 200px100px rgba(179,121,113,0.1);
  animation: dot-move-rev 18s ease-in-out infinite;
}

/* 5號：下方中央—最大 */
.bg-dot-5 {
  bottom: 20%; left: 50%;
  transform: translateX(-50%);
  box-shadow:
    0 0 60px 35px rgba(179,121,113,1),
    0 0 160px 80px rgba(179,121,113,0.6),
    0 0 260px130px rgba(179,121,113,0.3),
    0 0 380px190px rgba(179,121,113,0.1);
  animation: dot-move 14s ease-in-out infinite;
}

/* 6號：下方偏右—小 */
.bg-dot-6 {
  bottom: 25%; right: 20%;
  box-shadow:
    0 0 20px 10px rgba(179,121,113,1),
    0 0  60px 30px rgba(179,121,113,0.6),
    0 0 120px 60px rgba(179,121,113,0.3),
    0 0 180px 90px rgba(179,121,113,0.1);
  animation: dot-move-rev 15s ease-in-out infinite;
}

/* 7號：左下—中偏大 */
.bg-dot-7 {
  bottom: 15%; left: 15%;
  box-shadow:
    0 0 35px 18px rgba(179,121,113,1),
    0 0 110px 55px rgba(179,121,113,0.6),
    0 0 190px 95px rgba(179,121,113,0.3),
    0 0 280px140px rgba(179,121,113,0.1);
  animation: dot-move-rev 17s ease-in-out infinite;
}

/* 8號：右中偏上—最小 */
.bg-dot-8 {
  top: 30%; left: 70%;
  box-shadow:
    0 0 15px  8px rgba(179,121,113,1),
    0 0  50px 25px rgba(179,121,113,0.6),
    0 0 100px 50px rgba(179,121,113,0.3),
    0 0 150px 75px rgba(179,121,113,0.1);
  animation: dot-move 13s ease-in-out infinite;
}


/* —— 共用移動＋淡入淡出 keyframes —— */
@keyframes dot-move {
  0%   { transform: translate(0px,   0px)    scale(1); opacity:0.3; }
  25%  { transform: translate(80px, -40px)   scale(1.1); opacity:0.6; }
  50%  { transform: translate(-60px, 60px)   scale(1.2); opacity:0.8; }
  75%  { transform: translate(40px,  20px)   scale(1.1); opacity:0.6; }
  100% { transform: translate(0px,   0px)    scale(1); opacity:0.3; }
}
@keyframes dot-move-rev {
  0%   { transform: translate(0px,   0px)    scale(1); opacity:0.3; }
  25%  { transform: translate(-80px, 40px)   scale(1.1); opacity:0.6; }
  50%  { transform: translate(60px, -60px)   scale(1.2); opacity:0.8; }
  75%  { transform: translate(-40px, -20px)  scale(1.1); opacity:0.6; }
  100% { transform: translate(0px,   0px)    scale(1); opacity:0.3; }
}


/* —— 多顆黃光點移動 結束 —— */



/* —— 星星閃爍共用設定 —— */
.star-glow {
  position: fixed;  
  background: url('../images/star-glow.png') no-repeat center center;
  background-size: contain;
  pointer-events: none;
  transform-origin: center;
  animation-name: star-pulse;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-fill-mode: both;    /* ← 新增：載入前後都保持 keyframe 樣式 */
  mix-blend-mode: screen;
  z-index: 0;
}

/* —— 各顆星星大小＋位置＋時間軸（含負延遲） —— */
/* 1號：特大，靠近中間 */
.star-1 {
  width: 140px;
  height: 140px;
  top: 20%;
  left: 10%;              /* 從 0 → 10% */
  transform: translateX(-50%);
  animation-duration: 2s;
  animation-delay: -0.5s;
}

/* 2號：中大 */
.star-2 {
width: 110px;
    height: 110px;
    top: 15%;
    right: 10%;
    transform: translateX(50%);
    animation-duration: 2.5s;
    animation-delay: -1s;
}

/* 3號：中等 */
.star-3 {
    width: 100px;
    height: 100px;
    top: 25%;
    right: 14%;
    transform: translateX(50%);
    animation-duration: 3s;
    animation-delay: -1.5s;
}

/* 4號：偏小 */
.star-4 {
  width: 80px;
  height: 80px;
  top: 45%;
  right: 12%;             /* 從 0 → 12% */
  transform: translateX(50%);
  animation-duration: 2.2s;
  animation-delay: -0.7s;
}

/* 5號：特大 */
.star-5 {
  width: 150px;
  height: 150px;
  bottom: 5%;
  left: 10%;              /* 從 0 → 10% */
  transform: translateX(-50%);
  animation-duration: 2.8s;
  animation-delay: -1.2s;
}

/* 6號：小 */
.star-6 {
  width: 70px;
  height: 70px;
  bottom: 5%;
  right: 10%;             /* 從 0 → 10% */
  transform: translateX(50%);
  animation-duration: 3.2s;
  animation-delay: -0.9s;
}

/* 7號：中等 */
.star-7 {
    width: 100px;
    height: 100px;
    top: 35%;
    left: 5%;
    transform: translateX(-50%);
    animation-duration: 2.3s;
    animation-delay: -1.1s;
}

/* 8號：偏大 */
.star-8 {
  width: 120px;
  height: 120px;
  bottom: 30%;
  left: 12%;              /* 從 0 → 12% */
  transform: translateX(-50%);
  animation-duration: 3.5s;
  animation-delay: -1.8s;
}
@keyframes star-pulse {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}
/* —— diretor星星 —— */




/* —— diretorpopup星星 —— */

.popup-stars {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
    mix-blend-mode: screen;
}

.popup-stars .star-glow {
  background: url('../images/star-glow.png') no-repeat center center;
  background-size: contain;
  position: absolute;
  animation-name: star-pulse;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-fill-mode: both;
  mix-blend-mode: screen;
  opacity: 0.75;
  z-index: 0;
}

/* 分布於四周邊角＋不同時間差 */
.inner-star-1 {
  width: 80px;
  height: 80px;
  top: 6%;
  left: 5%;
  transform: translateX(-50%);
  animation-duration: 2.4s;
  animation-delay: -0.6s;
}

.inner-star-2 {
  width: 70px;
  height: 70px;
  top: 10%;
  right: 6%;
  transform: translateX(50%);
  animation-duration: 2.8s;
  animation-delay: -1.1s;
}

.inner-star-3 {
  width: 75px;
  height: 75px;
  bottom: 8%;
  left: 6%;
  transform: translateX(-50%);
  animation-duration: 3.2s;
  animation-delay: -0.9s;
}

.inner-star-4 {
  width: 65px;
  height: 65px;
  bottom: 10%;
  right: 5%;
  transform: translateX(50%);
  animation-duration: 3.6s;
  animation-delay: -1.4s;
}

.inner-star-5 {
  width: 60px;
  height: 60px;
  top: 50%;
  left: 4%;
  transform: translateX(-50%);
  animation-duration: 2.9s;
  animation-delay: -0.7s;
}

/* —— diretorpopup星星 —— */


/* —— award 頁面專屬光暈色彩＆位置 —— */
/* —— 動態光牆動畫：左側 —— */
@keyframes glow-wall-left {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-48%, -52%) scale(1.08);
    opacity: 0.8;
  }
}

/* —— 動態光牆動畫：右側 —— */
@keyframes glow-wall-right {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-52%, -48%) scale(1.08);
    opacity: 0.8;
  }
}
/* —— 左側動態光牆動畫 —— */
@keyframes glow-wall-left {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate(-48%, -52%) scale(1.07);
    opacity: 0.8;
  }
}

/* —— 右側動態光牆動畫 —— */
@keyframes glow-wall-right {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate(-52%, -48%) scale(1.07);
    opacity: 0.8;
  }
}

/* —— award 頁面左側光暈 —— */


html, body {
  overflow-x: hidden !important;
}




@media screen and (max-height: 720px) {
  body.page-senior .container {
    transform: scale(0.85);     /* 整體縮小至 85% */
    transform-origin: top center;
  }

  body.page-senior .wrapper {
    height: 100vh;
    overflow: hidden;
  }

  html, body {
    overflow: hidden !important; /* 禁止 scroll bar 出現 */
  }
}









/* ========== AWARD 頁面：排行榜排版統一設定 ========== */


/* 🟦 五個一排（five-cols）*/
.page-award .leader-grid.five-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
    gap: 10px 20px;
  max-width: 1240px;
  margin: 6vh auto;
}

.page-award .five-cols .leader {
  width: 185px;
  /* ✅ 控制每排剛好五個 */
  box-sizing: border-box;
}

/* 🟩 六個一排（six-cols）*/
.page-award .leader-grid.six-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 24px;
  max-width: 1240px;
  margin: 6vh auto;
}

.page-award .six-cols .leader {
  width: 160px;
  /* ✅ 控制每排剛好六個 */
  box-sizing: border-box;
}

/* ✅ 通用圖片設定：不撐爆卡片 */
.page-award .leader-photo {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}


/* ✅ 保險補一個卡片內的文字排版設定 */
.page-award .leader {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}








/* ========== 4K 螢幕設定 ========== */




@media screen and (min-width: 2560px) {
  html {
    zoom: 2; /* 直接放大整體畫面兩倍 */
    transform-origin: top center;
  }
}







/* ========== 4K 螢幕設定（director + award 特製版）========== */
