:root{
  --hero-text:#fff;
  --hero-indicator-active:#e60012;
  --main-blue: #3957DC;
  --main-red: #e32824;
  --timeline-half-height: 200px;

  /* 字體 */
  --hero-title-font-lg: 64px;
  --hero-title-font-xs: 30px;
  /*--hero-subtitle-font-lg: 50px;*/
  --hero-subtitle-font-lg: 40px;
  --hero-subtitle-font-xs: 24px;
  --hero-slogan-font-lg: 30px;
  --hero-slogan-font-xs: 20px;

  /* 大型banner字體 */
  --banner-title-font-lg: 52px;
  --banner-title-font-xs: 38px;
  --banner-subtitle-font-lg: 42px;
  --banner-subtitle-font-xs: 28px;
}



@media (max-width: 768px) {
  :root {
    --timeline-half-height: 150px;
  }
}

*{box-sizing:border-box}
html,body{height:100%;}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI","Noto Sans TC","PingFang TC","Microsoft JhengHei",Arial,sans-serif;}
img {max-width: 100%;}

/* ==============================
   Index page (index.html) / + layout
   ============================== */
/* HERO */
.hero{position:relative;height:100vh;min-height:640px;overflow:hidden;background:#000}

/* Header */
/*.site-header{position:fixed;top:0;left:0;right:0;z-index:20;padding:18px 0}*/
/* ===== Fixed Header base ===== */
.site-header{
  position: fixed;
  padding:18px 0;
  top: 0; left: 0; right: 0;
  z-index: 99;
  background: transparent;

  transition:
    background-color .25s ease,
    backdrop-filter .25s ease,
    -webkit-backdrop-filter .25s ease;
}

/* ===== 滑動後：毛玻璃 ===== */
/*.site-header.is-blur{
  background-color: rgba(0,0,0,.35);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}*/
.site-header.is-blur{
  background-color: #FFF;
}
.site-header.is-blur #langCurrent {
    text-shadow: unset;
    color: #000;
}
.site-header.is-blur .burger span {
    box-shadow: unset;
    background-color: #000;
}

.site-header .logo-black {display: none;}
.site-header.is-blur {background-color: #FFF;box-shadow: 0px 0px 10px #AAA;}
.site-header.is-blur .logo-black {display: block;}
.site-header.is-blur .logo-white {display: none;}

.brand {
  width: 180px;
}
/* Language switcher */
.lang-switch{position:relative}
.lang-btn{
  width:44px;height:44px;border:0;background:transparent;color:#fff;
  font-weight:700;font-size:16px;letter-spacing:.5px;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;
}
.lang-btn:focus{outline:2px solid rgba(255,255,255,.35);outline-offset:2px;border-radius:10px}
.lang-menu{
  position:absolute;top:48px;right:52px;min-width:160px;
  background:rgba(0,0,0,.72);backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.18);border-radius:14px;
  padding:8px;display:none;z-index:30;
}
.lang-menu.is-open{display:block}
.lang-item{
  width:100%;border:0;background:transparent;color:#fff;text-align:left;
  padding:10px 12px;border-radius:10px;font-weight:700;cursor:pointer;
}
.lang-item:hover{background:rgba(255,255,255,.12)}
.lang-item.is-active{background:rgba(230,0,18,.18)}


/* Burger */
.burger{width:44px;height:44px;border:0;background:transparent;display:inline-flex;flex-direction:column;justify-content:center;gap:7px;cursor:pointer}
.burger span{height:2px;width:80%;background:rgba(255,255,255,.9);border-radius:2px;display:block;margin:0px auto;min-width: 25.6px;}

/* Carousel */
.hero-carousel{height:100%}
.hero-carousel .carousel-inner,.hero-carousel .carousel-item{height:100%}
.hero-slide{height:100%;width:100%;background-size:cover;background-position:center;transform:scale(1.02)}


/* 讓每張 slide 可以疊文字 */
.hero-carousel .carousel-item{ position:relative; }
.hero-caption{
  position:absolute; inset:0;
  z-index:15;
  display:flex;
  align-items:center;
}

/* 預設文字可見 */
.hero-text{
  opacity: 1;
  transform: translateX(0);
}
/* 讓每張 slide 可疊文字 */
.carousel-item{ position:relative; }

.hero-slide{
  height: 100vh;
  min-height: 640px;
  background-size: cover;
  background-position: center;
}

/* 文字層 */
.hero-caption{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  z-index: 5;
}

/* ===== AOS-like enter (replayable) ===== */
/* 初始狀態：左邊偏移 + 透明 */
.hero [data-aos]{
  opacity: 0;
  transform: translate3d(-32px,0,0);
  transition-property: opacity, transform;
  transition-timing-function: ease;
  will-change: opacity, transform;
}

/* 進場狀態 */
.hero [data-aos].aos-animate{
  opacity: 1;
  transform: translate3d(0,0,0);
}

/* ===== Leave (fadeout) ===== */
.carousel-item.is-leaving .hero-text{
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .28s ease, transform .28s ease;
}

/* （可選）避免切換時看到下一張文字瞬間出現 */
/*.carousel-item .hero-text{
  opacity: 1;
}
*/
/* Overlay gradient */
.hero-slide::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.40) 0%,rgba(0,0,0,.16) 55%,rgba(0,0,0,0) 100%);z-index:10;pointer-events:none}

/* Text layer */
.hero-content{position:absolute;inset:0;z-index:15;display:flex;align-items:center}
.hero-copy{max-width:720px}
.hero-title{color:var(--hero-text);margin:0 0 50px;line-height:1;text-shadow:0 8px 24px rgba(0,0,0,.35)}
.hero-title-sm{display:block;font-weight:900;font-size:70px;letter-spacing:1px}
.hero-title-lg{display:block;font-weight:900;font-size:86px;letter-spacing:1px}
.hero-subtitle{color:var(--hero-text);max-width:680px;text-shadow:0 8px 24px rgba(0,0,0,.35)}
.hero-subtitle h2{font-weight:800;font-size:44px;margin:0 0 10px}
.hero-subtitle p{font-size:24px;opacity:.95}
.hero-rule{height:2px;width:210px;background:rgba(255,255,255,.65);margin:10px 0 14px}


/* FCP中的白色文字加強陰影 */
#langCurrent {    text-shadow: 1px 1px 4px #000;}
.burger span {    box-shadow: 1px 1px 3px #000;}
.hero-title,
.hero-title-sm,
.hero-title-lg,
.hero-subtitle,
.hero-subtitle h2,
.hero-subtitle p {
  text-shadow: 4px 4px 10px #000;
}

/* Indicators (diamond) */
.hero-indicators{position:absolute;right:56px;bottom:72px;left:auto;margin:0;z-index:30;display:flex;gap:12px}
.hero-indicators [data-bs-target]{width:10px;height:10px;transform:rotate(45deg);border:1px solid rgba(255,255,255,.65);background:transparent;opacity:1;margin:0;box-shadow: 1px 1px 10px #000;}
.hero-indicators .active{background:var(--hero-indicator-active);border-color:var(--hero-indicator-active)}


/* 讓每張 carousel item 可以疊文字 */
.hero-carousel .carousel-item{position: relative;}
/* 每張圖的文字層 */
.hero-caption{position:absolute;inset:0;z-index:15;display:flex;align-items:center;}

/* ===== Overlay base (fade in/out) ===== */
.overlay-menu{
  position: fixed;
  inset: 0;
  z-index: 4000;

  /* 毛玻璃底 */
  background: rgba(245, 248, 255, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* 關閉狀態（可動畫） */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  /*transition: opacity .22s ease, visibility 0s linear .22s;*/
  transition: opacity .1s ease, visibility 0s linear .1s;
}

.overlay-menu.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  /*transition: opacity .22s ease, visibility 0s linear 0s;*/
  transition: opacity .1s ease, visibility 0s linear 0s;
  overflow-y: scroll;
}

/* 關閉動畫用（避免直接消失） */
.overlay-menu.is-closing{
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  /*transition: opacity .22s ease, visibility 0s linear .22s;*/
  transition: opacity .1s ease, visibility 0s linear .1s;
}

/* ===== Layout ===== */
.overlay-inner{
  position: absolute;
  inset: 0;
  padding: 28px 56px 56px;
  display: flex;
  flex-direction: column;

  background-image: url(../img/service_bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* close button */
.overlay-close{
  position: absolute;
  top: 18px;
  right: 22px;
  width: 56px;
  height: 56px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.overlay-close span{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transform-origin: center;
}
.overlay-close span:nth-child(1){ transform: translate(-50%,-50%) rotate(45deg); }
.overlay-close span:nth-child(2){ transform: translate(-50%,-50%) rotate(-45deg); }

/* ===== Cards grid ===== */
.overlay-nav{
  /*margin-top: 86px;*/
  margin-top: 3vw;
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 48px;
}

.overlay-link{
  display: block;
  text-decoration: none;
  color: #111;
  font-size: 22px;
  letter-spacing: .5px;

  /* 進場初始狀態（未開啟時/剛開啟時） */
  opacity: 0;
  transform: translateY(18px);
}

/*.overlay-link::before{
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;

  background: #dfe8ff;
  background-image: var(--thumb);
  background-size: cover;
  background-position: center;

  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
*/
.overlay-link{
  padding-top: 14px;
  /* 讓 transition 更順 */
  transition: opacity .18s ease;
}
.overlay-link::after{
  position: absolute;
  background-image: url(../img/arrow.png);
  background-size: contain;
  background-position: center center;
  content: "";
  width: 50px;
  height: 30px;
  display: inline-flex;
  margin-top: 3px;

  /* 效果 */
  display: inline-block; /* 才能 transform */
  transform: translateX(0);
  transition: transform .18s ease;
  will-change: transform;
}

/* ===== 開啟後：卡片依序往上淡入（兩排由左到右） ===== */
.overlay-menu.is-open .overlay-link{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .38s ease, transform .38s ease;
  transition-delay: var(--d, 0ms);
}

/* 分兩排、由左到右的 delay（6 張） */

.overlay-link::before{
  /* 卡片的圖片區（用 pseudo-element 撐出圖片） */
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;

  /* placeholder 圖（你可換成真圖） */
  background: #dfe8ff;
  background-size: cover;
  background-position: center;

  /* 陰影讓卡片浮起來 */
  box-shadow: 0 18px 40px rgba(0,0,0,.12);

  /* 圖片放大：只放大 ::before，不影響文字排版 */
  transform: scale(1);
  /*transition: transform .22s ease, box-shadow .22s ease;*/
  transition: transform .1s ease, box-shadow .1s ease;
  will-change: transform;
}
.overlay-link:nth-child(1)::before{ background-image: url("../img/link/thumb_01.jpg"); }
.overlay-link:nth-child(2)::before{ background-image: url("../img/link/thumb_02.jpg"); }
.overlay-link:nth-child(3)::before{ background-image: url("../img/link/thumb_03.jpg"); }
.overlay-link:nth-child(4)::before{ background-image: url("../img/link/thumb_04.jpg"); }
.overlay-link:nth-child(5)::before{ background-image: url("../img/link/thumb_05.jpg"); }
.overlay-link:nth-child(6)::before{ background-image: url("../img/link/thumb_06.jpg"); }
.overlay-menu.is-open .overlay-link:nth-child(1){ --d: 140ms; }
.overlay-menu.is-open .overlay-link:nth-child(2){ --d: 240ms; }
.overlay-menu.is-open .overlay-link:nth-child(3){ --d: 340ms; }
.overlay-menu.is-open .overlay-link:nth-child(4){ --d: 460ms; }
.overlay-menu.is-open .overlay-link:nth-child(5){ --d: 560ms; }
.overlay-menu.is-open .overlay-link:nth-child(6){ --d: 660ms; }

/* hover */
.overlay-link .overlay-text {transition: opacity .18s ease;}
.overlay-link:hover .overlay-text{ opacity: .6; }
.overlay-link:hover::before{
  transform: translateY(-2px) scale(1.03);
  transition: transform .18s ease;
  box-shadow: 0 22px 48px rgba(0,0,0,.16);
}
.overlay-link:hover::after{
  transform: translateX(8px);
}


/* RWD */
@media (max-width: 992px){
  .overlay-inner{ padding: 22px 20px 40px; }
  .overlay-nav{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    margin-top: 76px;
  }
  .overlay-link{ font-size: 20px; }
}
@media (max-width: 576px){
  .overlay-nav{gap: 22px; }
  .overlay-link{ font-size: 18px; }
}

/* 無障礙：降低動態 */
@media (prefers-reduced-motion: reduce){
  .overlay-menu,
  .overlay-menu.is-open .overlay-link{
    transition: none !important;
  }
  .overlay-link{
    opacity: 1 !important;
    transform: none !important;
  }
}


/* RWD */
@media (max-width:992px){
  .hero-title-sm{font-size:54px}
  .hero-title-lg{font-size:64px}
  .hero-subtitle h2{font-size:34px}
  .hero-subtitle p{font-size:18px}
  .hero-indicators{right:28px;bottom:46px}
}
@media (max-width:576px){
  .hero{min-height:560px}
  .brand-text{display:none}
  .hero-title-sm{font-size:46px;width: 100%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
  .hero-title-lg{font-size:48px;;width: 100%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
  .hero-subtitle h2{font-size:28px}
  .hero-subtitle p{font-size:16px}
  .hero-rule{width:160px}
}


/* ===== About (match screenshot style) ===== */
.about-wrap{
  background-image: url(../img/first-bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 84px 0 70px;
  color:#fff;
  overflow:hidden;
}

.about-title h2{
  font-weight:900;
  font-size:56px;
  letter-spacing:1px;
}
.about-en{
  opacity:.9;
  font-size:18px;
  letter-spacing:.5px;
}

.about-slogan{
  margin-top:22px;
  font-size:22px;
  font-weight:800;
}
.about-desc{
  opacity:.9;
  font-size:16px;
  line-height:1.9;
  max-width: 820px;
}

/* right 3 tall cards */
.about-cards{
  display:flex;
  gap:18px;
  justify-content:flex-end;
}
.about-card{
  /*width: 150px;*/
  width: auto;
  height: 25vw;
  min-height: 350px;
  max-height: 500px;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  overflow:hidden;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.about-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.40) 45%, rgba(0,0,0,.78) 100%);
}
.about-card-head, .about-card-body{
  position:relative;
  z-index:2;
  padding: 18px 16px;
}
.about-card-head .zh{
  text-align: center;
  font-size:28px;
  font-weight:900;
  line-height:1.1;
}
.about-card-head .en{
  text-align: center;
  font-size:18px;
  opacity:.9;
}
.about-card-border img {
  width: 100%;
}
.about-card-body{
  font-size:13px;
  opacity:.92;
  line-height:1.7;
}

/* meta bar */
.about-meta{
  margin-top: 40px;
  display:flex;
  align-items:center;
  gap:22px;
}
.about-pill{
  background: rgba(255,255,255,.92);
  color:#1943d7;
  border-radius: 16px;
  padding: 14px 18px;
  min-width: 170px;
  text-align: center;
}
.about-pill .t1{
  font-weight:900;
  font-size:22px;
  line-height:1.1;
}
.about-pill .t2{
  font-weight:800;
  font-size:16px;
  margin-top:6px;
  opacity:.95;
}
.about-kpis{
  display:flex;
  gap:18px;
  align-items:center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.22);
  flex:1;
}
.about-kpis .kpi{
  font-size:20px;
  font-weight:800;
  opacity:.95;
}
.about-kpis .dot{
  display:inline-block;
  margin-right: 8px;
  opacity:.9;
}

/* timeline */
/* 外層：負責置中 */
.about-timeline-wrap{
  display:flex;
  justify-content:center;
  overflow: hidden;
}

/* 捲動容器 */
.about-timeline{
  width:100%;
  /*max-width:1200px;*/
  max-width: 1920px;
  overflow-x:auto;
  overflow-y:hidden;
}

/* 會被 item 撐寬的內容層 */
.about-timeline-content{
  position:relative;
  display:flex;
  column-gap:28px;
  margin-top:44px;

  width: max-content;
}

/* scrollbar */
.about-timeline::-webkit-scrollbar{ height:8px; }
.about-timeline::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.18);
  border-radius: 99px;
}

/* 起始與結尾空白 */
.tl-spacer.start,
.tl-spacer.end{
  flex: 0 0 120px; /* 這個值同時控制左右留白 */
}

/* 這條線現在跟內容總寬走 */
.tl-line{
  position:absolute;
  left:0;
  right:0;
  height:1px;
  background: rgba(255,255,255,.28);
  pointer-events:none;
}

/* item */
.tl-item{
  position:relative;
  min-width:210px;
  flex:0 0 auto;
}

.tl-pin{
  position:absolute;
  top: 0px;
  left:6px;
  width:10px;
  height:10px;
  background:#e60012;
  transform: rotate(45deg);
}
.tl-pin-to-pin {
  width: 1px;
  background-color: #CCC;
  position: absolute;
  top: 10px;
  left: 10.5px;
  z-index: 0;
}
.tl-line-pin {
  position:absolute;
  left:6px;
  width:10px;
  height:10px;
  background:#FFF;
  transform: rotate(45deg);
}
.tl-content-section {
  padding-left: 35px;
}

.tl-title{
  font-size:20px;
  font-weight:900;
  margin-bottom:8px;
}

.tl-text{
  font-size:14px;
  opacity:.9;
  line-height:1.7;
  max-width:220px;
}

.tl-year{
  position:absolute;
  left:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:34px;
  padding:0 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.55);
  background: rgba(20,50,170,.25);
  font-weight:900;
  letter-spacing:.5px;
}

/* RWD */
@media (max-width: 992px){
  .about-title h2{font-size:44px}
  .about-cards{justify-content:flex-start}
  .about-card{height: 460px}
}
@media (max-width: 576px){
  .about-wrap{padding: 64px 0 56px}
  .about-title h2{font-size:38px}
  .about-card{height: 350px}
  .about-meta{flex-direction:column; align-items:flex-start}
  .about-kpis{width:100%;justify-content: center;}
  .about-pill {width: 100%;}
  .tl-spacer.start  {flex: 0;}
  .tl-item {width: auto;}
}
@media (max-width: 420px){
  .tl-text {max-width: 60vw;}
  .about-cards {flex-wrap: wrap;}
  .about-card{height: 200px; min-height: 200px;width: 100%}
}

/* ===== shared section heading ===== */
.section-head .section-title{
  font-weight: 900;
  font-size: 42px;
  margin: 0;
  color:#1f3fd6;
  letter-spacing: .5px;
  margin-left:-2px; /*視覺對齊*/
}
.section-head .section-sub{
  margin-top: 6px;
  font-size: 18px;
  opacity: .85;
  color:#2b2b2b;
}

/* ===== News Center ===== */
.news-section{
  padding: 80px 0;
  position: relative;
  background-image: url(../img/news_bg.jpg);
  background-repeat: no-repeat;
  background-size: contain;
}
.more-btn{
  margin-top: 48px;
  display: inline-flex;
  /*align-items: center;*/
  align-items: end;
  gap: 16px;
  text-decoration: none;
  color:#111;
  font-weight: 800;
  font-size: 22px;

}
.more-btn:hover * {
    opacity: 0.6!important;
}

.more-btn * {
    transition: opacity 0.28s!important;
}
.more-btn .inner-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.more-ico{
  width: 56px; height: 44px;
  border: 2px solid var(--main-red);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background-image: url(../img/arrow.png);
  background-size: contain;
  background-position: center center;
}
.more-btn:hover{ opacity: .9; }

a.news-link {text-decoration: none;}
a.news-link:hover img {
    transform: scale(1.1);
}

a.news-link img {
    transition: transform 0.28s;
}

a.news-link:hover .news-title {
    opacity: 0.7;
    text-decoration: underline;
}

.news-card{
  height:100%;
}
.news-meta{
  display:flex;
  justify-content: space-between;
  align-items:center;
  font-size: 14px;
  color:#222;
  margin-bottom: 10px;
}
.news-cat{ opacity:.8; }
.news-date{ opacity:.8; }

.news-img{
  position: relative;
  display:block;
  border-radius: 15px;
  overflow:hidden;
}
.news-img img{
  width:100%;
  height: 240px;
  object-fit: cover;
  display:block;
}
.news-arrow{
  position:absolute;
  background-color:#fff;
  background-image: url(../img/arrow.png);
  background-size: contain;
  background-position: center center;
  width: 60px;
  height: 40px;
  right: 0;
  bottom: 18px;
  border-radius: 10px 0 0 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--main-red);
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

.news-title{
  margin-top: 18px;
  display:block;
  color:#111;
  text-decoration:none;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.6;

  height: 3em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-title:hover{ text-decoration: underline; }

.news-divider{
  margin: 18px 0 14px;
  height: 1px;
  background: #dcdcdc;
}
.news-desc{
  color:#555;
  font-size: 14px;
  line-height: 1.9;
  margin:0;
  /* 限高3行 */
  height: 7em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
[lang="zh-Hant"] .news-title,
[lang="zh-Hant"] .news-desc {
    text-align: justify;
}

@media (max-width: 992px){
  .news-head-container {display: flex;}
  .news-head-container .more-btn {margin-left: auto;margin-top: 0;}
}
@media (max-width: 768px) {
  .news-section span.more-ico {
    height: 30px;
  }

  .news-section .more-btn .inner-container {
      align-items: end;
  }
}
@media (max-width: 576px){
  .news-section {background-size: 100vh;}
}


/* ===== Services ===== */
.services-section {
    padding: 70px 0 90px;
    background-image: url(../img/service_bg.png);
    background-repeat: no-repeat;
    background-size: 100%;
}

.svc-card{
  border-radius: 18px;
  overflow:hidden;
  /*height: 340px;*/
  height: 0px;
  padding-bottom: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}
.svc-card::before{
  content:"";
  position:absolute;
  inset:0;
  transition: transform .28s;
  background-size: cover;
  /*background: linear-gradient(180deg, rgba(0,0,0,.0) 0%, rgba(0,0,0,.08) 55%, rgba(0,0,0,.18) 100%);*/
}
.svc-card.svc-card-01::before {
  background-image:url(../img/service01.jpg);
}
.svc-card.svc-card-02::before {
  background-image:url(../img/service02.jpg);
}
.svc-card.svc-card-03::before {
  background-image:url(../img/service03.jpg);
}
.svc-anchor:hover .svc-card::before {
  transform: scale(1.1);
}

.svc-badge{
  position: absolute;
  left: 0px;
  bottom: 80px;
  background: #fff;
  border-radius: 10px;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  padding: 14px 16px;
  font-weight: 900;
  font-size: 26px;
  color: #111;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}
.svc-badge-arrow{
  color: var(--main-red);
  width: 56px;
  height: 44px;
  font-weight: 900;
  background-image: url(../img/arrow.png);
  background-size: contain;
  background-position: center center;
  transition: transform .28s;
}
  .svc-anchor:hover .svc-badge-arrow {
    transform: translateX(15px);
  }

.svc-list{
  margin-top: 14px;
  border-top: 1px solid #e6e6e6;
}
.svc-item{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 18px 0;
  border-bottom: 1px solid #e6e6e6;
  text-decoration:none;
  color:#111;
  font-weight: 800;
  font-size: 18px;
}
.svc-item .small{
  font-size: 0.8em;
}
/*.svc-item:hover{ opacity:.9; }*/
.svc-item span {transition: opacity .28s ease, background-image .28s ease;}
.svc-item:hover span{opacity: 0.7;}
.svc-item:hover span.small{opacity: 1;} /* 避免多層半透明 */
.svc-item:hover span.svc-item-arrow {
    opacity: 1;
    background-image: url(../img/arrow_r.png);
}
/*.svc-item-arrow{
  opacity:.8;
  font-weight:900;
}*/
.svc-item-arrow {
    background-image: url(../img/arrow_b.png);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    width: 18px;
    height: 26px;
}


/* RWD small */
@media (max-width: 992px){
  .svc-card{ padding-bottom: 50vw; }
}
@media (max-width: 576px){
  .section-head .section-title{ font-size: 34px;}
  .more-btn{ font-size: 18px; margin-top: 28px; }
  .news-img img{ height: 210px; }
  .svc-card{ padding-bottom: 60vw; }
  .services-section {background-size: cover;}
}

/* ===== Mobile: horizontal cards with "peek next" ===== */
@media (max-width: 767.98px) {

  .news-cards .row.g-4 {
    margin-left: 0px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;

    /* 讓第一張不會貼齊螢幕邊緣（也更像你截圖的效果） */
    padding: 0 16px;

    /* 取代原本 g-4 的間距，用橫向 gap */
    gap: 16px;

    /* 避免某些情況下出現左右反彈溢出 */
    overflow-y: hidden;
  }

  .news-cards .row.g-4 > [class*="col-"] {
    /* 每張卡片寬度：越小露出越多下一張 */
    flex: 0 0 82vw;        /* 建議 78~86vw 自己微調 */
    max-width: 82vw;

    /* Bootstrap 欄位會有 padding，手機橫滑時通常拿掉比較乾淨 */
    padding-left: 0;
    padding-right: 0;

    scroll-snap-align: start;
  }

  /* 卡片本體（可選） */
  .news-cards .news-card {
    height: 100%;
  }

  /* 隱藏 scrollbar */
  .news-cards .row.g-4::-webkit-scrollbar {
    display: none;
  }
  .news-cards .row.g-4 {
    scrollbar-width: none; /* Firefox */
  }
}

/* ===== Desktop / Tablet: keep original 3-column grid ===== */
@media (min-width: 768px) {
  .news-cards .row.g-4 {
    display: flex;      /* Bootstrap row 本來就是 flex */
    flex-wrap: wrap;
    overflow: visible;
    padding: 0;
    gap: 0;             /* 交回 Bootstrap 的 g-4 控制 */
    scroll-snap-type: none;
  }

  .news-cards .row.g-4 > [class*="col-"] {
    flex: initial;
    max-width: none;
    padding-left: var(--bs-gutter-x, .75rem);
    padding-right: var(--bs-gutter-x, .75rem);
  }
}


/* ===== Contact us (match screenshot) ===== */
.contact-section{
  background:#fff;
  padding: 80px 0 90px;
}

.contact-head{
  margin-bottom: 46px;
}
.contact-title{
  margin:0;
  font-weight: 900;
  font-size: 44px;
  color:#1f3fd6;
  letter-spacing:.5px;
}
.contact-sub{
  margin-top: 8px;
  font-size: 18px;
  opacity:.85;
}

.contact-info{ margin-top: 6px; }
.ci-row{
  display:flex;
  align-items:flex-start;
  gap:16px;
  padding: 20px 0;
}
.ci-ico{
  width:24px;
  min-width: 24px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--main-red);
  font-weight:900;
  font-size:18px;
}
  .ci-ico.ico-phone {
    background-image: url(../img/icon/phone.svg);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
  }
  .ci-ico.ico-mail {
    background-image: url(../img/icon/mail.svg);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
  }
  .ci-ico.ico-address {
    background-image: url(../img/icon/map-pin.svg);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
  }
  .ci-ico.ico-user {
    background-image: url(../img/icon/user.svg);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
  }
  .ci-ico.ico-email {
    background-image: url(../img/icon/email.svg);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
  }
  .ci-ico.ico-list {
    background-image: url(../img/icon/list.svg);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
  }
.ci-text{
  font-size:16px;
  color:#222;
  line-height:1.8;
}
.ci-line{
  height:1px;
  background:#e6e6e6;
}

.contact-form-title{
  margin: 34px 0 14px;
  font-size: 22px;
  font-weight: 900;
  color:#111;
}

.contact-input{
  border-radius: 6px;
  padding: 12px 12px;
  border:1px solid #d8d8d8;
}
.contact-textarea{
  border-radius: 6px;
  padding: 12px 12px;
  border:1px solid #d8d8d8;
  resize:none;
}

/* submit button like screenshot (red border icon + text) */
.contact-submit{
  border:0;
  background:transparent;
  display:inline-flex;
  align-items:center;
  gap:14px;
  cursor:pointer;
  padding:0;
}
.contact-submit:hover * {
    opacity: 0.6!important;
}

.contact-submit * {
    transition: opacity 0.28s!important;
}
.submit-ico{
  width: 56px;
  height: 36px; /*height: 44px;*/
  border: 2px solid var(--main-red);
  border-radius: 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--main-red);
  font-weight: 900;
  background-image: url(../img/arrow.png);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}
.back-ico {
    width: 56px;
    height: 36px;
    border: 2px solid var(--main-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-red);
    font-weight: 900;
    background-image: url(../img/arrow_reverse.png);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}
.contact-submit span:last-child{
  font-size: 22px;
  font-weight: 900;
  color:#111;
}
.contact-submit:hover{ opacity:.9; }

/* map */
.contact-map{
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
}
.contact-map iframe{
  width:100%;
  height: 520px;
  border:0;
  display:block;
}

/* RWD */
@media (max-width: 992px){
  .contact-form {margin-bottom: 45px;}
  .contact-map iframe{ height: 420px; }
}
@media (max-width: 576px){
  .contact-title{ font-size: 36px; }
  .contact-map iframe{ height: 320px; }
}

/* ===== Partners ===== */
.partners-section{
  padding: 70px 0 80px;
  background:#fff;
  overflow-x: hidden;
}

.partners-title{
  margin: 0;
  font-weight: 900;
  font-size: 40px;
  color:#1f3fd6; /* 跟你頁面主藍一致 */
  letter-spacing: .5px;
}
.partners-sub{
  margin-top: 8px;
  font-size: 18px;
  opacity:.85;
}

/* 右側 logo 區：用 flex wrap 做兩排，並保持置中 */
.partners-logos{
  display:flex;
  flex-wrap:wrap;
  justify-content: flex-start;
  align-items:center;
  gap: 20px 0px;   /* row gap / col gap */
  padding-top: 6px;
}

/* 每個 logo 容器：讓圖等高、置中 */
.partner-logo{
  /*width: 160px;*/              /* 控制每顆 logo 區域寬 */
  width: 20%;
  height: 70px;              /* 控制等高 */
  display:flex;
  align-items:center;
  justify-content:center;

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


/* RWD */
@media (max-width: 992px){
  .partners-logos{
    justify-content:flex-start;
    gap: 28px 28px;
  }
  .partner-logo{ width: 140px; height: 60px; }
}

@media (max-width: 576px){
  .partners-title{ font-size: 34px; }
  .partners-logos {display: grid;grid-template-columns: 1fr 1fr;}
  .partner-logo{ width: 100%; max-width: 120px; margin:auto; text-align: center; height: 56px; }
}

/* ===== Footer ===== */
.site-footer{
  position:relative;
  overflow:hidden;
}

.footer-wave{
  height: 220px;
  background: url("../img/footer_wave.jpg") center/cover no-repeat;
}

/* 藍底主區塊：用 mask 那張當背景（形成上緣弧線） */
.footer-main{
  background: var(--main-blue); /* 主藍底 */
  color:#fff;
  padding: 0px 0 26px;
  position: relative;
}
.footer-main:before { /* 避免藍邊 */
    content: "";
    position: absolute;
    height: 3px;
    width: 100%;
    top: -2px;
    background-color: var(--main-blue);
}

/* brand */
.footer-text-container {
  padding-top: 7rem !important;
}
.footer-logo {
  width: 180px;
}
.footer-logo-text{
  font-weight: 900;
  font-size: 22px;
  letter-spacing:.5px;
}

/* contact */
.footer-contact{
  max-width: 760px;
}
.fc-item{
  display:flex;
  align-items:flex-start;
  gap: 14px;
  padding: 12px 0;
  font-size: 18px;
  opacity: .95;
}
.fc-ico{
  width: 24px;
  height: 28px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}
  .fc-ico.ico-phone-w {
    background-image: url(../img/icon/phone-w.svg);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
  }
  .fc-ico.ico-mail-w {
    background-image: url(../img/icon/mail-w.svg);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
  }
  .fc-ico.ico-address-w {
    background-image: url(../img/icon/map-pin-w.svg);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
  }

/* right layout */
.footer-right-container {
  justify-content: right;
}

/* menu: 兩欄排列（對應設計） */
.footer-menu{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 54px;
  align-content:start;
  padding-top: 6px;
  text-align: right;
}
.fm-link{
  color:#fff;
  text-decoration:none;
  font-weight: 800;
  font-size: 18px;
  opacity:.95;
}
.fm-link:hover{ opacity:1; text-decoration:underline; }

/* qr */
.footer-qr{
  display:flex;
  gap: 16px;
  flex-direction: row-reverse;
  align-items: flex-end;
}
.footer-qr-img{
  width: 140px;
  height: 140px;
  border-radius: 8px;
  background:#fff;
  object-fit: cover;
}
.footer-qr-text{
  text-align:right;
  font-size: 16px;
  line-height: 1.8;
  opacity:.95;
  min-width: 160px;
}

/* divider & bottom */
.footer-divider{
  height:1px;
  background: rgba(255,255,255,.25);
  margin: 34px 0 18px;
}
.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
}
.footer-copy{
  font-size: 16px;
  opacity:.9;
}
.footer-social{
  display:flex;
  align-items:center;
  gap: 18px;
}
.fs-link{
  color:#fff;
  text-decoration:none;
  font-weight: 900;
  font-size: 18px;
  opacity:.95;
}
.fs-link:hover{ opacity:1; text-decoration:underline; }

/* RWD */
@media (max-width: 992px){
  .footer-right{ justify-content:flex-start; }
  .footer-qr-text{ text-align:left; }
  .footer-right-container {
      justify-content: start;
      width: 100%;
      max-width: unset;
  }

  .footer-menu {
      text-align: left;
  }

  .footer-right {
      display: flex;
      width: 100%;
  }

  .footer-qr {
      margin-top: 0px!important;
      flex: auto;
  }
}
@media (max-width: 768px) {
  .footer-menu {
    text-align: center;
  }
  .footer-right {
      flex-wrap: wrap;
      justify-content: center;
  }

  .footer-qr {
      justify-content: center;
      margin-top: 2rem!important;
      flex-direction: column;
      align-items: center;
      width: 100%;
  }

  .footer-qr-text {
      text-align: center;
  }
}
@media (max-width: 576px){
  /*.footer-main{ padding: 56px 0 22px; }*/
  /*.footer-menu{ gap: 14px; }*/
  /*.footer-right{ flex-direction:column; align-items:flex-start; }*/
  /*.footer-bottom{ flex-direction:column; align-items:flex-start; }*/

  /*.footer-qr-text {text-align: right;}*/
  /*.footer-qr {flex-wrap: wrap;flex-direction: row;justify-content: end;}*/
  /*.footer-text-container {padding-top: 0px!important;}*/
  .footer-wave {background-size: 200%;height: 30vw;}
  .footer-copy {
      width: 100%;
      font-size: 14px;
    text-align: center;
  }
  .footer-main {
    padding-bottom: 10px;
  }
  .footer-bottom {
      flex-wrap: wrap;
      flex-direction: column-reverse;
      gap: 10px;
  }

  .footer-social {
      gap: 40px;
  }
}




/* ==============================
   About page (about.html)
   ============================== */
/* ===== 通用樣式 ===== */
.white-fade-text {
  line-height: 1;
  background: linear-gradient(180deg, #FFF 0%, #FFF 50%, transparent 100%);
  white-space: nowrap;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.blue-fade-text {
  background: linear-gradient(180deg, var(--main-blue) 0%, var(--main-blue) 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.fade-opacity-blue-background {
  background: linear-gradient(90deg, rgba(57, 87, 220, 0.9) 0%, rgba(57, 87, 220, 0.4) 100%);
  box-shadow: 0px 4px 4px 0px #0000000D;
}

/* ===== Top hero (match jpg banner layout) ===== */
.about-hero{
  position: relative;
  height: 100vh;
  min-height: 720px;
  max-height: 1080px;
  overflow: hidden;
  background: #0a0f1f;
}

.about-hero-bg{
  position: absolute;
  inset: 0;
  background-image: url(../img/about-banner.jpg);
  background-size: cover;
  background-position: center;
}

/* bottom blue overlay band */
.about-hero-copy{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(57, 87, 220, 0.9) 0%, rgba(57, 87, 220, 0.4) 100%);
  color: #fff;
  padding: 50px 0;
}


.about-hero-title-en{
  font-weight: 900;
  /*font-size: var(--hero-title-font-lg);*/
  font-size: clamp(var(--hero-title-font-xs), 5vw, var(--hero-title-font-lg));
  line-height: 1;
}
.about-hero-title-zh{
  font-weight: 500;
  /*font-size: var(--hero-subtitle-font-lg);*/
  font-size: clamp(var(--hero-subtitle-font-xs), 4vw, var(--hero-subtitle-font-lg));
  margin-top: 8px;
  line-height: 1;
}

.about-hero-slogan{
  font-weight: 500;
  /*font-size: var(--hero-slogan-font-lg);*/
  font-size: clamp(var(--hero-slogan-font-xs), 3vw, var(--hero-slogan-font-lg));
  margin-bottom: 10px;
}
.about-hero-desc{
  font-size: 16px;
  line-height: 1.9;
  opacity: .95;
}

/* ===== WHAT ARE WE (企業簡介) ===== */
.about-what {
  position: relative;
  padding: 76px 0 90px;
  background: #f7faff;
  overflow: hidden;
}

.about-what::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/about-what-are-we-bg.png");
  background-size: cover;
  background-position: right;
  opacity: 1;
  pointer-events: none;
}

/* 兩欄：左卡片、右標題 */
.about-what-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 56px;
  align-items: start;
}

/* 左側卡片群：4+3 排列（符合你截圖） */
.about-what-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* 讓第 4~7 張落到第二排三張（空出第一行第4格） */
.about-what-cards .what-card:nth-child(4){
  grid-column: 1;
}

/* 單張卡片 */
.what-card {
  background: linear-gradient(90deg, rgba(57, 87, 220, 0.8) 0%, rgba(57, 87, 220, 0.56) 100%);
  border-radius: 12px;
  padding: 18px 18px;
  color: #fff;
  min-height: 118px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.what-card-no {
  font-weight: 900;
  font-size: 16px;
  opacity: 0.95;
  margin-bottom: 10px;
}

.what-card-text {
  font-size: 16px;
  line-height: 1.75;
  opacity: 0.96;
}

/* 右側標題 */
.about-what-title {
  text-align: right;
  padding-top: 14px;
}

.what-title-en {
  font-weight: 900;
  font-size: clamp(var(--hero-title-font-xs), 5vw, var(--hero-title-font-lg));
  letter-spacing: 0.5px;
  line-height: 1;
}

.what-title-zh {
  font-weight: 500;
  font-size: clamp(var(--hero-subtitle-font-xs), 4vw, var(--hero-subtitle-font-lg));
  color: var(--main-blue);
  margin-top: 8px;
}

/* ===== RWD ===== */
@media (max-width: 1200px) {
  .about-what-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-what-title {
    order: 1;
    text-align: right;
    padding-top: 0;
  }

  .about-what-cards {
    order: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* RWD 下取消 4+3 特殊排版，回歸自然流動 */
  .about-what-cards .what-card:nth-child(5),
  .about-what-cards .what-card:nth-child(6),
  .about-what-cards .what-card:nth-child(7) {
    grid-column: auto;
  }
}

@media (max-width: 992px) {
  .about-hero-slogan {margin-top:20px;}
}
@media (max-width: 640px) {
  .about-what-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== 集團沿革 ===== */
.about-history{
  position: relative;
  padding: 40px 0 90px;
  background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url(../img/service_bg.png);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: 0px -90px;
}
.history-head{
  max-width: 760px;
  padding: 18px 22px;
}
.history-title{
  font-weight: 500;
  font-size: clamp(var(--hero-subtitle-font-xs), 4vw, var(--hero-subtitle-font-lg));
  color: var(--main-blue);
  margin-top: 8px;
}
.history-desc{
  font-size: 16px;
  line-height: 1.9;
  color: #222;
  margin: 0;
}


/* reuse existing about-timeline styles from index, but tune colors for light bg */
.about-history .about-timeline::-webkit-scrollbar-thumb{ background: rgba(31,63,214,.22); }
.about-history .tl-line{ background: rgba(31,63,214,.18); }
.about-history .tl-pin-to-pin{ background: rgba(31,63,214,.20); }
.about-history .tl-line-pin{ background: #1f3fd6; }
.about-history .tl-year{
  border: 1px solid rgba(31,63,214,.35);
  background: transparent;
  color: #1f3fd6;
}
.about-history .tl-title{ color: #2b2b2b; }
.about-history .tl-text{ color: #2b2b2b; opacity: .85; }


/* about 頁面 timeline 調整 */

.about-timeline-content {height: calc(var(--timeline-half-height) * 2);padding: 10px;}
.tl-line {top: var(--timeline-half-height);}

.tl-line-pin {top: var(--timeline-half-height);margin-top: -14px;}

.tl-pin-to-pin {height: calc(var(--timeline-half-height) - 12px);}

.tl-item.down .tl-pin-to-pin, .tl-item.down .tl-pin {top: unset;bottom: 0px;}

.tl-year {top: calc(var(--timeline-half-height) + 30px);}

.tl-item.down .tl-year {top: calc(var(--timeline-half-height) - 60px);}

.tl-item.down {padding-top: calc(var(--timeline-half-height) + 30px);}



/* ===== 專業實力 ===== */
.about-capability{
  --cap-media-h: 420px;
  padding: 0px 0px 90px 0px;
  background-image: url(../img/about-capability-bg.jpg);
  background-repeat: no-repeat;
  position: relative;
  background-size: cover;
}
.about-capability:after {
    content: "";
    background: linear-gradient(0deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
    height: 200px;
    width: 100%;
    position: absolute;
    bottom: 0;
}
.simple-page-cap-carousel {--cap-media-h: 420px;overflow: hidden;}
.cap-head-container {
  display: flex;
  flex-direction: row-reverse;
  justify-content: left;
  padding: 40px;
}
.cap-header{
  display: flex;
  justify-content: space-between;
  align-items: top;
  margin-bottom: 18px;
  margin-left: auto;

}
.cap-header .cap-title{
  font-weight: 500;
  /*font-size: 40px;*/
  font-size: clamp(var(--hero-subtitle-font-xs), 4vw, var(--hero-subtitle-font-lg));
  color: #FFF;
  margin: 0px;
  white-space: nowrap;
}

.cap-tabs{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cap-sub-tabs:before {
    content: "";
    height: 1px;
    position: relative;
    display: block;
    margin-top: 30px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%, rgba(255, 255, 255, 0) 100%);
}
.cap-tab{
  color: #FFF;
  border: 1px solid #FFF;
  border-radius: 14px;
  background-color: transparent;
  padding: 10px 16px;
  font-size: clpam(16px, 2vw, 18px);
  font-weight: 900;
  cursor: pointer;
  transition: background-color 0.28s;
}
#capability .cap-tab {
  flex: 0 0 22%;
}
.cap-tab:hover {
  background-color: rgba(255, 255, 255, 0.15);
}
.cap-tab-anchor {scroll-margin-top: 100px;}
.cap-tab.is-active {color: var(--main-blue);background-color: #FFF;}


.cap-sub-list{position: absolute;left: 0;top: 0; padding-left: 10px;display: flex;flex-wrap: wrap;gap: 10px;opacity: 0;visibility: hidden;pointer-events: none;transform: translateY(-6px);transition: none;}
.cap-sub-list.is-active{position: relative;opacity: 1;visibility: visible;pointer-events: auto;transform: translateY(0);transition:opacity .25s ease,transform .25s ease;}
.cap-sub-list li { position:relative;list-style: none;padding-left: 1.3em;margin-right: 1.5rem;color: #FFF;cursor: pointer; }
.cap-sub-list li:before {content: "";position: absolute;left: 0px;width: 10px;height: 10px;top: 7px;background: #FFF;transform: rotate(45deg);}
.cap-sub-list li:hover {opacity: 0.8;}
.cap-sub-list li.is-active { font-weight: 900; }


.cap-carousel {width: 96%;margin: auto;}
.cap-carousel-wrap { position: relative; margin-top: 30px; }

.cap-cards{
  position:absolute;
  left:0;
  top:0;
  gap:28px;
  display:flex;

  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(0);

  transition:
    opacity .35s ease,
    visibility 0s linear .35s;
}

.cap-cards.is-active{
  position:relative;
  opacity:1;
  visibility:visible;
  pointer-events:auto;

  transition:
    opacity .35s ease,
    visibility 0s linear 0s;
}

/* 淡出中 */
.cap-cards.is-fading-out{
  opacity:0;
  pointer-events:none;
}


.cap-card{
  width: calc(50% - 14px);
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 18px 50px rgba(0,0,0,.08);
  position: relative;
}

.cap-card-media{
  position:relative;
  /*height:420px;*/
  height: var(--cap-media-h);
  background:#d1d5db;
}
.cap-card-media:before {
    position: absolute;
    top: 0;
    width: 100%;
    bottom: 0;
    background: radial-gradient(50% 61.61% at 50% 50%, rgba(40, 48, 80, 0.3) 0%, rgba(40, 48, 80, 0) 100%);
    content: "";
    z-index: 2;
    transition: opacity 0.28s;
}
.cap-card-media:hover:before {
    opacity: 0.5;
}
.cap-card-media:hover .cap-card-tag {
    opacity: 0.7;
}


.cap-card-slides{
  position:absolute;
  inset:0;
}
/* 疊放 + 淡入淡出 */
.cap-card-slides .slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity .6s ease;
  display:block;
}

.cap-card-slides .slide.is-active{
  opacity:1;
  z-index:1;
}

.cap-card-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.cap-arrow {
  position: absolute;
  /*top: 50%;*/
  top: calc(var(--cap-media-h) / 2);
  transform: translateY(-50%);
  background-color: initial;
  width: 21px;
  height: 62px;
  border: 0px;
  background-repeat: no-repeat;
}
.cap-arrow.prev { left: -2%; background-image: url(../img/blue-arrow-left.svg); }
.cap-arrow.next { right: -2%; background-image: url(../img/blue-arrow-right.svg); }
.cap-arrow[disabled] {opacity: 0.1;}

/* slides stack */
.cap-card-slides{
  position:absolute;
  inset:0;
}
.cap-card-slides .slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity .6s ease;
}
.cap-card-slides .slide.is-active{
  opacity:1;
  z-index:1;
}

/* center tag */
.cap-card-tag{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  font-size:54px;
  font-weight:700;
  letter-spacing:.12em;
  color:#fff;
  text-shadow:0 8px 24px rgba(0,0,0,.35);
  z-index:3;
  transition: opacity 0.28s;
}
.cap-card-body {
  padding: 30px;
  padding-bottom: 4em;
  min-height: 7em;
}
.cap-card-line {
    height: 1px;
    background-color: #C5C5C5;
    width: 90%;
    margin: 0px auto 40px;
    position: relative;
}

.cap-card-line:after {
    content: "";
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    border: 1px solid #C5C5C5;
    background: #FFF;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: -4px;
}

/* dots */
.cap-card-dots{
  position:absolute;
  left:18px;
  bottom:16px;
  display:flex;
  gap:10px;
  z-index:4;
}
.cap-card-dots .dot{
  width:10px;
  height:10px;
  transform:rotate(45deg);
  border:1px solid rgba(255,255,255,.8);
  background:transparent;
  cursor:pointer;
  box-shadow: 0px 0px 10px #444;
}
.cap-card-dots .dot.is-active{
  background:#e60012;
  border-color:#e60012;
  box-shadow: unset;
}

/* next btn */
.cap-card-next{
  position: absolute;
  right: 12px;
  bottom: 0px;
  width: 48px;
  border: 0px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 4;
}

/* ===============================
   Cap Card layout (2 cards / 1 card)
================================ */


/* Mobile：一張 */
@media (max-width: 1400px) {
  .cap-head-container {flex-wrap: wrap; max-width: 90%;margin: auto;}
  .cap-header {margin-left: 0px;}
}

@media (max-width:768px){
  .cap-arrow.prev {left: 2px;}
  .cap-arrow.next {right: 0px;}
  .cap-card{ width:90%; margin: auto;}
  .cap-cards{ gap:16px;flex-wrap:wrap; }
}

@media (max-width: 576px) {
  .cap-head-container {max-width: 100%;}
  .cap-tab {white-space: nowrap;}
  .cap-tabs-container {overflow: scroll;width: calc(100% + 40px);}
  .cap-tabs {flex-wrap: nowrap;flex-wrap: nowrap;padding-right: 40px;float: left; /* To size to content, & not be clamped to available width. */}
}

/* ===============================
   Card media + inner slider
================================ */
.cap-card-media{
  position:relative;
  height:360px;
  background:#d1d5db;
  overflow:hidden;
}
@media (max-width:768px){
  .cap-card-media{ height:280px; }
  .cap-card-body {min-height: auto;}
}



/* ===== 企業榮譽 ===== */
.about-honor{
  padding: 72px 0 92px;
}

.honor-title{
  font-weight: 500;
  font-size: clamp(var(--hero-subtitle-font-xs), 4vw, var(--hero-subtitle-font-lg));
  color: #1f3fd6;
  margin: 0 0 16px;
}

.honor-box{
  border: 1px solid rgba(230, 0, 18, .35);
  background: rgba(255,255,255,.78);
  padding: 22px 22px;
}

.honor-list{
  margin: 0;
  padding-left: 18px;
  color: #222;
  font-size: 16px;
  line-height: 1.9;
}

.honor-cert-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.honor-cert-item{
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.honor-cert-item img{
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.honor-cert-caption{
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 900;
  color: #1f3fd6;
}

@media (max-width: 992px){
  .about-hero{ min-height: 640px; }
  .about-hero-title{ left: 18px; bottom: 138px; }
  .what-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .what-title{ text-align: left; padding-top: 0; margin-top: 18px; }
  .honor-cert-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 576px){
/*  .about-hero-title-en{ font-size: 28px; }
  .about-hero-title-zh{ font-size: 22px; }*/
  .about-hero-title{ bottom: 152px; }
  .about-hero-desc{ font-size: 12px; }
  .honor-cert-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

figcaption {position: relative;padding-left: 20px;}
figcaption:before {position: absolute;top: calc(50% - 5px);left: 0px;width: 10px;height: 10px;background: #e60012;transform: rotate(45deg);content: "";}





/* ===== News page base ===== */
.page-news{
  background: #fff;
}

/* ===== News Hero ===== */
.news-hero{
  position: relative;
  height: 300px;
  min-height: 260px;
  overflow: hidden;
}
@media (min-width: 992px){
  .news-hero{ height: 360px; }
}

.news-hero-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}
.news-hero-shade{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.05) 100%);
}
.news-hero .container{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 34px;
}
.news-hero-copy{
  color: #fff;
}
.news-hero-en{
  font-size: clamp(var(--banner-title-font-xs), 5vw, var(--banner-title-font-lg));
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .5px;
  text-shadow: 4px 4px 10px #000;
}
.news-hero-zh{
  margin-top: 10px;
  font-size: clamp(var(--banner-subtitle-font-xs), 4vw, var(--banner-subtitle-font-lg));
  font-weight: 500;
  letter-spacing: 1px;
  text-shadow: 4px 4px 10px #000;
}


/* ===== Wrap spacing ===== */
.news-wrap{
  padding: 34px 0 80px;
}
#newsRow {
  scroll-margin-top: 80px;
}

/* ===== Tabs ===== */
.news-tabs{
  display: flex;
  gap: 16px;
  align-items: center;
}
.news-tab{
  appearance: none;
  border: 1px solid rgba(55, 88, 255, .55);
  background: #fff;
  color: var(--main-blue);
  font-weight: 800;
  border-radius: 10px;
  padding: 12px 22px;
  min-width: 140px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.news-tab:hover{
  border-color: rgba(55, 88, 255, .85);
}
.news-tab.is-active{
  background: var(--main-blue);
  border-color: var(--main-blue);
  color: #fff;
}

/* ===== News Card ===== */
.news-card{
  border-radius: 14px;
}

.news-meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(0,0,0,.55);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}
.news-tag{
  color: rgba(0,0,0,.65);
}
.news-date{
  white-space: nowrap;
}

.news-thumb{
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #e9eefc;
}
.news-thumb img{
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.news-title{
  margin: 16px 0 10px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
}
.news-title a{
  color: #111;
  text-decoration: none;
}
.news-title a:hover{
  text-decoration: underline;
}

.news-desc{
  margin: 0;
  color: rgba(0,0,0,.65);
  font-size: 13px;
  line-height: 1.85;
  border-top: 1px solid rgba(0,0,0,.12);
  padding-top: 14px;
}

/* Hover (和你首頁風格一致的微動態) */
.news-thumb img{
  transition: transform .25s ease;
}
.news-card:hover .news-thumb img{
  transform: scale(1.03);
}
@media (max-width:576px) {
  .news-tabs {
    flex-wrap: wrap;
    gap: 10px;
  }
  .news-tab {
    /*flex: 0 0 30%;
    min-width: 120px;*/
    min-width: 80px;
    width: 30%;
    padding: 10px 0px;
  }
}

/* ===== Pagination ===== */
.news-pagination{
  margin-top: 34px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.np-btn,
.np-prev,
.np-next{
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #111;
  font-weight: 800;
  font-size: 13px;
}
.np-btn.is-active{
  border-color: #ff3b30;
  color: #ff3b30;
}
.np-prev,
.np-next{
  border-color: transparent;
  color: #ff3b30;
  font-size: 18px;
}

.np-prev.is-disabled,
.np-next.is-disabled {
  opacity: 0.1;
  pointer-events: none;
  cursor: default;
}


/* ===== News Detail base ===== */
.page-news-detail{
  background: #fff;
}


/* ===== Wrap spacing ===== */
.nd-wrap{
  padding: 34px 0 90px;
}

.nd-container {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
@media (max-width: 768px){
  .nd-container {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Back button */
.nd-back{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111;
  font-weight: 800;
  margin-top: 6px;
}

/* Title */
.nd-title{
  margin: 0;
  color: var(--main-blue);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.65;
  letter-spacing: .2px;
}
@media (min-width: 992px){
  .nd-title{ font-size: 22px; }
}

/* Meta row */
.nd-meta{
  margin-top: 16px;
  display: flex;
  gap: 18px;
  align-items: center;
  color: rgba(0,0,0,.55);
  font-weight: 800;
  font-size: 13px;
}
.nd-tag{ color: rgba(0,0,0,.7); }
.nd-divider{
  height: 1px;
  background: rgba(0,0,0,.12);
  margin: 16px 0 22px;
}

/* Main image */
.nd-figure{
  margin: 0 0 18px;
}
.nd-figure img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e9eefc;
}

/* Article */
.nd-article{
  color: rgba(0,0,0,.72);
  line-height: 1.95;
}
.nd-article p{
  margin: 0 0 14px;
}


/* ===== MFG Page ===== */
.page-hero{
  position: relative;
  height: auto;
  min-height: max(900px, 100vh);
  /*min-height: 100vh;*/
  /*height: 100vh;*/
  /*min-height: 720px;*/
  max-height: 1080px;
  overflow: hidden;
  background: #0a0f1f;
}

.page-hero-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* bottom blue overlay band */
.page-hero-copy{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  background: linear-gradient(90deg, rgba(57, 87, 220, 0.9) 0%, rgba(57, 87, 220, 0.4) 100%);
  color: #fff;
  padding: 50px 0;
}


.page-hero-title-en{
  /*font-size: 64px;*/
  /*font-size: clamp(var(--banner-title-font-xs), 5vw, var(--banner-title-font-lg));*/
  /*font-weight: 900;*/
  font-size: clamp(var(--hero-title-font-xs), 4vw, var(--hero-title-font-lg));
  font-weight: 500;
  margin-top: 8px;
  line-height: 1;
}
.page-hero-title-zh{
  /*font-weight: 900;*/
  /*font-size: 50px;*/
  font-size: clamp(var(--hero-title-font-xs), 5vw, var(--hero-title-font-lg));
  font-weight: 900;
  margin-top: 8px;
  line-height: 1;
}

.page-hero-slogan{
  /*font-size: 30px;*/
  font-size: clamp(var(--hero-slogan-font-xs), 3vw, var(--hero-slogan-font-lg));
  font-weight: 900;
  margin-bottom: 10px;
}
.page-hero-desc{
  font-size: 16px;
  line-height: 1.9;
  opacity: .95;
}

.page-card-margin {
  margin-top: 80px;
  margin-bottom: 240px;
}

.px-large {padding-left:50px!important;padding-right: 50px!important;}

@media (max-width: 1200px) {
  .page-hero {max-height: unset;}
  .page-hero-title {flex-wrap: wrap;}
  .page-hero-copy{position: relative;margin-top: 40vh;}

  .cap-tabs {float: unset;overflow: scroll;padding-bottom: 10px;}
  .cap-sub-tabs:before {margin-top: 20px;}
}
@media (max-width: 486px) {
  .page-hero-title-en.mfg-en-title {
    margin-left: 0 !important;
  }
}
@media (max-width: 360px) {
  .page-hero-title-en.mfg-en-title {
    font-size: 28px;
    width: 100%;
  }
}



/* ===== Contact page base ===== */
.page-contact{
  background: #fff;
}

/* ===== Hero ===== */
.ct-hero{
  position: relative;
  height: 300px;
  min-height: 260px;
  overflow: hidden;
}
@media (min-width: 992px){
  .ct-hero{ height: 360px; }
}
.ct-hero-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}
.ct-hero-shade{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.05) 100%);
}
.ct-hero .container{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 34px;
}
.ct-hero-copy{ color: #fff; }
.ct-hero-en{
  /*font-size: 52px;*/
  font-size: clamp(var(--banner-title-font-xs), 5vw, var(--banner-title-font-lg));
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .5px;
  text-shadow: 4px 4px 10px #000;
}
.ct-hero-zh{
  margin-top: 10px;
  /*font-size: 34px;*/
  font-size: clamp(var(--banner-subtitle-font-xs), 4vw, var(--banner-subtitle-font-lg));
  font-weight: 500;
  letter-spacing: 1px;
  text-shadow: 4px 4px 10px #000;
}

/* ===== Global map section ===== */
.ct-global{
  position: relative;
  overflow: hidden;
  padding: 0;
  height: auto;
  min-height: 42vw;
}

/* 背景藍色大塊（設計稿那種藍底） */
.ct-global-bg{
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url(../img/maps.png);
  height: 42vw;
}
.ct-global-bg:before {
  content: "";
  background: linear-gradient(90deg, rgba(57, 87, 220, 0.8) 20.67%, rgba(57, 87, 220, 0.568) 61.06%, rgba(57, 87, 220, 0) 100%);
  width: 50%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

/* 內容 */
.ct-global .container{
  position: relative;
  z-index: 2;
  padding-top: 42px;
  padding-bottom: 46px;
}

.ct-global-grid{
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 28px;
  align-items: start;
}

/* left */
.ct-global-left{
  color: #fff;
}
.ct-global-title{
  margin: 0 0 14px;
  /*font-size: 34px;*/
  font-size: clamp(var(--hero-subtitle-font-xs), 4vw, var(--hero-subtitle-font-lg));;
  font-weight: 500;
  letter-spacing: 1px;
}
.ct-global-desc{
  margin: 0 0 18px;
  line-height: 1.9;
  color: rgba(255,255,255,.88);
  max-width: 360px;
}

/* office card */
.ct-office-card{
  width: min(420px, 100%);
  background: rgba(255,255,255,.96);
  border-radius: 10px;
  padding: 18px 18px 16px;
  color: #111;
  box-shadow: 0 18px 40px rgba(0,0,0,.15);
}
.ct-office-hd{
  font-weight: 900;
  font-size: 22px;
  color: var(--main-blue);
  margin-bottom: 10px;
}
.ct-office-row{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(0,0,0,.72);
  line-height: 1.7;
  margin-bottom: 8px;
}
.ct-office-row-sm{
  font-size: 0.8em;
}
.ct-office-hr{
  height: 1px;
  background: rgba(0,0,0,.1);
  margin: 12px 0;
}

/* simple icons (可換成你的 ico 類) */
.ct-ico{
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  flex: 0 0 18px;
  background: rgba(255,59,48,.16);
  position: relative;
}
.ct-ico::after{
  content:"";
  position:absolute;
  inset: 5px;
  border-radius: 2px;
  background: #ff3b30;
}
.ct-ico-pin::after{ border-radius: 999px; }
.ct-ico-list::after{ border-radius: 1px; }

/* right map */
.ct-global-pins {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  inset: 0;
  pointer-events: none; /* 只讓 pin 自己可點 */
  z-index: 3;
  height: 42vw;
}
.ct-map{
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
}
.ct-map img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: rgba(255,255,255,.35);
  mix-blend-mode: screen; /* 讓地圖更像設計稿那種淡白 */
  opacity: .95;
}

/* pins */
.ct-pin {
  --size: 12px;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  transform: translate(-50%, -50%) rotate(45deg);
  background: #e53935; /* 主紅 */
  border: 0px;
  cursor: pointer;
  pointer-events: auto;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background-color .25s ease;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.35);
}

/* 中間白色小菱形 */
.ct-pin::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #fff;
}

.ct-pin:hover {
  transform: translate(-50%, -50%) rotate(45deg) scale(1.15);
  box-shadow: 0 6px 16px rgba(229, 57, 53, 0.45);
}
/* focus（鍵盤可視） */
.ct-pin:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(229, 57, 53, 0.25),
    0 6px 16px rgba(229, 57, 53, 0.45);
}


.ct-pin.is-active {
  background: var(--main-red);
  box-shadow:
    0 0 0 6px rgba(255, 45, 45, 0.25),
    0 8px 20px rgba(255, 45, 45, 0.5);
  animation: pin-pulse 1.6s ease-out infinite;
}

.ct-pin.is-active::after {
  /*inset: 5px;*/
  background-color: var(--main-red);
}

/* 呼吸動畫（可拿掉） */
@keyframes pin-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 45, 45, 0.35),
      0 6px 14px rgba(255, 45, 45, 0.45);
  }
  70% {
    box-shadow:
      0 0 0 10px rgba(255, 45, 45, 0),
      0 10px 22px rgba(255, 45, 45, 0.55);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 45, 45, 0),
      0 6px 14px rgba(255, 45, 45, 0.45);
  }
}

.ct-pin-select-wrap{
  margin: 14px 0 10px;
  width: min(420px, 100%);
}
.ct-pin-select{
  font-weight: 700;
  border-radius: 10px;
}

/* ===== office cards stack ===== */
.ct-office-stack{
  position: relative;
  width: min(420px, 100%);
  min-height: 220px; /* 避免切換時容器高度跳 */
}

.ct-office-card{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;

  transition: opacity .22s ease, transform .22s ease;
}

.ct-office-card.is-active{
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ===== Form section ===== */
.ct-form-wrap{
  padding: 72px 0 86px;
  background: #fff;
}
.ct-form-title{
  text-align: center;
  color: var(--main-blue);
  /*font-size: 34px;*/
  font-size: clamp(var(--hero-subtitle-font-xs), 4vw, var(--hero-subtitle-font-lg));;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 0 0 24px;
}

.ct-form{
  width: min(760px, 100%);
  margin: 0 auto;
}

/* inputs */
.ct-input,
.ct-textarea{
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.16);
  padding: 10px 12px;
}
.ct-textarea{
  min-height: 140px;
  resize: vertical;
}

/* bottom row (note left / button right) */
.ct-form-bottom{
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.ct-note{
  color: rgba(0,0,0,.72);
  font-weight: 700;
}

@media (max-width: 992px){
  .ct-global-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ct-global-grid {
    margin-top: -300px;
  }

  .ct-global {
      margin-top: 300px;
      position: relative;
      overflow: visible;
  }
  .ct-global:before {
      content: "";
      background-color: var(--main-blue);
      width: 100%;
      height: 300px;
      top: -300px;
      left: 0px;
      position: absolute;
  }

  .ct-global-bg:before {
      width: 100%;
      background: linear-gradient(180deg, rgba(57, 87, 220, 1) 0%, rgba(57, 87, 220, 0.2) 81.06%, rgba(57, 87, 220, 0) 100%);
  }
  .ct-global-pins {
      z-index: 2;
  }

}
@media (max-width: 768px) {
  .ct-office-stack,.ct-office-card {width: 100%;}
  .ct-pin-select-wrap {width: 100%;}
  .ct-global-desc {max-width: 100%;}
  .ct-global-bg {
    background-size: cover;
    background: none;
  }

  .ct-global {
      height: auto;
      /*padding-bottom: 10vw;*/
      padding-bottom: 85%;
  }
  .ct-global-bg:after {
      background-image: url(../img/maps-xs.png);
      background-size: 100%;
      background-repeat: no-repeat;
      content: "";
      position: relative;
      display: block;
      top: 0;
      width: 100%;
      padding-bottom: 100%;
  }

  .ct-global-bg:before {
      width: 100%;
  }

  .ct-global-pins {
      display: none;
  }
  .ct-form-wrap {
    padding-top: 0px;
  }
}





@media (max-width: 576px){
  .ct-form-bottom{
    flex-direction: column;
    align-items: flex-start;
  }
}





@media (max-width: 640px) {
  .about-what-title {
    text-align: left; /*手機版本往左移動*/
  }
  .about-honor {padding-top: 30px;}
  .about-what-cards .what-card:nth-child(4) {grid-column: auto;}
  .about-what-cards {    grid-template-columns: repeat(2, minmax(0, 1fr));}

}


/* 超小手機 */
@media (max-width: 375px) {
  /* about頁面 */
  .history-head {padding: 0px;}
  .tl-spacer.start, .tl-spacer.end {flex: 0 0 0px;}
  .cap-head-container{padding-left: 10px;}
  .cap-tabs {padding-right: 10px;}
}
.popup-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.popup-box {
    width: 90%;
    max-width: 360px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.popup-box h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.popup-box p {
    margin: 0 0 20px;
    line-height: 1.6;
}

.popup-box button {
    padding: 10px 20px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.popup-success h3 {
    color: #1a7f37;
}

.popup-error h3 {
    color: #c62828;
}

a.no-link-color {color: inherit;transition: opacity 0.28s;}
a.no-link-color:hover {opacity: .6;}

/* debug use */
.nnn {background-color: red!important; color:white!important;}






/* 電腦版選單 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 24px;
}

.main-nav-link {
  color: #FFF;
  text-shadow: 4px 4px 10px #000;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
}

.site-header.is-blur .main-nav-link { color: #000; text-shadow:none;}
.main-nav-link:hover {
  opacity: 0.7;
}

.main-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #FFF;
  transition: width .25s ease;
}

.main-nav-link:hover::after {
  width: 100%;
}
.lang-chosen {filter: drop-shadow(4px 4px 10px #000);color:#FFF;}
.site-header.is-blur .lang-chosen {color: #000; filter: none;}
.lang-menu {top: 40px;right: 0;}
.overlay-link::before {
    background-image: none!important;
    display: none;
}

.overlay-nav {
    grid-template-columns: 1fr;
    gap: 16px;
}

.overlay-nav .overlay-link {
    border-bottom: 1px solid #999;
    padding-bottom: 10px;
}

.overlay-link .overlay-text {
    display: inline-block;
    line-height: 30px;
}

.overlay-link::after {
    margin-top: 0px;
    right: 0;
}

.cap-card-slides .slide {object-fit: contain;background-color: #FFF;}.cap-card-media:not(.with-bgmask)::before{display: none;}