.text-light-gray {
  color: #c9c9c9;
}
.figure {
  position: relative;
  overflow: hidden;
  margin: 10px 1%;
  width: 100%;
  background: #3085a3;
  text-align: center;
  cursor: pointer;
  aspect-ratio: 4/3; /* 確保圖片區域固定 */
}

.figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: 0.35s;
}

.figure figcaption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2em;
  box-sizing: border-box;
  color: #fff;
  text-transform: uppercase;
  font-size: 1em;
  background: rgba(0, 0, 0, 0.4); /* 可加強文字可讀性 */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.figure figcaption h2 {
  font-size: 1.2rem;
  line-height: 1.4;
  word-wrap: break-word;
  margin: 0;
  padding: 0 10px;
}
.figure figcaption::before,
.figure figcaption::after {
  pointer-events: none;
}

.figure figcaption,
.figure figcaption > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.figure figcaption > a {
  z-index: 1000;
  text-indent: 200%;
  white-space: nowrap;
  font-size: 0;
  opacity: 0;
}

.figure h2 {
  word-spacing: -0.15em;
  font-weight: 300;
}

.figure h2 span {
  font-weight: 800;
}

.figure h2,
.figure p {
  margin: 0;
}

.figure p {
  letter-spacing: 1px;
  font-size: 68.5%;
}
/* chico */
figure.effect-chico {
  position: relative;
  overflow: hidden;
  margin: 10px 1%;
  width: 100%;
  aspect-ratio: 4/3;
  background: #3085a3;
}

figure.effect-chico img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s, transform 0.35s;
  transform: scale(1.12);
}

figure.effect-chico:hover img {
  opacity: 0.5;
  transform: scale(1);
}

figure.effect-chico figcaption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2em;
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

figure.effect-chico figcaption::before {
  position: absolute;
  top: 30px;
  right: 30px;
  bottom: 30px;
  left: 30px;
  border: 1px solid #fff;
  content: "";
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

figure.effect-chico figcaption::before,
figure.effect-chico p {
  opacity: 0;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
}

figure.effect-chico h2 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0;
  word-wrap: break-word;
  padding: 0 1rem;
  color: #fff;
}
figure.effect-chico:hover figcaption::before,
figure.effect-chico:hover p {
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
}
@media screen and (max-width: 50em) {
  .content {
    padding: 0 10px;
    text-align: center;
  }
  .grid figure {
    display: inline-block;
    float: none;
    margin: 10px auto;
    width: 100%;
  }
}
*,
*:after,
*:before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}
.clearfix:after {
  clear: both;
}
/* 標題底線*/
.title-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
}

.title-underline::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: #299be8;
  transition: width 0.4s ease;
}

.title-underline:hover::after {
  width: 100%;
}

/*首頁承諾區塊*/
.bg-cover-box {
  width: 100%;
  height: 100%;
  min-height: 340px; /* 可自訂高度 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  border-radius: 8px; /* 可選 */
}

/* 保持 row 等高 */
.equal-height {
  display: flex;
  flex-wrap: wrap;
}
.equal-height > div {
  display: flex;
  flex-direction: column;
}

.border {
  border: 1px solid #2a6096 !important;
}

/*contact的四個icon*/
.icon-circle {
  width: 60px;
  height: 60px;
  background-color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 24px;
  transition: all 0.6s ease; /* 修正這行 */
}

.icon-circle:hover i {
  transform: rotate(360deg); /* 移到 i 上 */
  color: #fff;
}

.icon-circle i {
  transition: transform 0.6s ease;
  will-change: transform;
  color: #fff;
}

/*側邊工具列*/
.floating-tools {
  position: fixed;
  right: 20px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.tool-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.7); /* 半透明白 */
  color: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px; /* icon 縮小 */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: all 0.4s ease;
}

.tool-btn:hover {
  background: rgba(0, 123, 255, 0.9);
  color: #fff;
  transform: rotate(360deg);
}

/* slider div */
.slider-overlay-text-wrapper {
  position: absolute;
  top: 0;
  right: 0; /* 右側對齊 */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* 內容靠右 */
  padding: 0 5vw; /* 靠右距離邊界 */
  background: rgba(0, 0, 0, 0.4); /* 半透明黑背景 */
  z-index: 10;
  pointer-events: none;
}

.slider-text-box {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  padding: 40px 30px;
  max-width: 500px;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
}

.slider-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
}

.slider-text-box hr {
  border: none;
  height: 3px;
  background: linear-gradient(to right, #c0c0c0, #4682b4); /* 銀色到藍色 */
  margin: 15px 0;
}

.slider-subtitle {
  font-size: 2rem;
  color: #fff;
  line-height: 50px; /* 行高設定 */
}
@media (max-width: 992px) {
  .slider-title {
    font-size: 2.5rem;
  }

  .slider-subtitle {
    font-size: 1.2rem;
    line-height: 36px;
  }

  .slider-text-box {
    padding: 25px 20px;
    max-width: 90%;
  }

  .slider-overlay-text-wrapper {
    padding: 0 4vw;
    justify-content: center; /* 平板改為置中 */
  }
}

@media (max-width: 576px) {
  .slider-title {
    font-size: 2rem;
  }

  .slider-subtitle {
    font-size: 1rem;
    line-height: 28px;
  }

  .slider-text-box {
    padding: 20px 15px;
  }

  .slider-overlay-text-wrapper {
    padding: 0 3vw;
    justify-content: center;
  }
}

/*product sidemenu */
.product_dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: sans-serif;
  background: #fff;
}

.product_dropdown-menu ul {
  padding-left: 20px;
  background: #fff;
}
.product_dropdown-menu li a i {
  margin-left: auto;
  color: #999;
}

.product_dropdown-menu li {
  position: relative;
  border-bottom: 0px solid #eee;
}

.product_dropdown-menu li a {
  display: block;
  position: relative;
  padding: 12px 16px; /* 只設定左右 padding，右邊空出給 icon */
  color: #333;
  text-decoration: none;
  background: #fff;
  transition: background 0.2s ease;
}
.product_dropdown-menu li a:hover {
  background: #f0f0f0;
}

/* 隱藏子選單 */
.product_dropdown-menu li ul {
  display: none;
  position: static;
  background: #fff;
}

/* 展開子選單 */
.product_dropdown-menu li:hover > ul,
.product_dropdown-menu li:focus-within > ul {
  display: block;
}

/* 階層縮排效果 */
.product_dropdown-menu li ul {
  padding-left: 20px;
}

.product_dropdown-menu li ul ul {
  padding-left: 20px;
}

.product_dropdown-menu li ul ul ul {
  padding-left: 20px;
}

/* 限制到三層 */
.product_dropdown-menu li ul ul ul ul {
  display: none !important;
}

/* icon 樣式（右側箭頭） */
.product_dropdown-menu li a i.icon {
  position: absolute;
  right: 12px; /* 距離最右邊 12px */
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #999;
  pointer-events: none;
}

/*產品圖片輪播*/
/* === 主圖 swiper === */
.main-swiper {
  width: 100%;
  height: 500px;
  overflow: hidden;
  position: relative;
}

.main-swiper .swiper-wrapper {
  height: 100%;
}

.main-swiper .swiper-slide {
  height: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.main-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 填滿容器，超出部分裁切 */
  object-position: center;
  display: block;
}

/* === 縮圖 swiper === */
.thumb-swiper {
  width: 100%;
  height: 500px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.thumb-swiper .swiper-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.thumb-swiper .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #84ba3f;
}
.thumb-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* 讓 li 照常獨佔一行 */
.list-hand li.u {
  display: list-item; /* 或 block */
}

/* 改用文字底線（可調粗細與顏色），只畫在文字下 */
.list-hand li.u {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: #ff6a00;
  text-underline-offset: 10px;
}

/* 把原先的 inline-block 這條刪掉 */
.u {
  /* display:inline-block;  刪除 */
  line-height: 1.4;
  padding-bottom: 2px;
}
/* === 放大鏡 icon === */
.zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.4);
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  display: none;
  z-index: 10;
  pointer-events: none;
}
.zoom-container:hover .zoom-icon {
  display: block;
}

/* === 手機 RWD === */
@media (max-width: 991.98px) {
  .thumb-swiper {
    height: auto;
    padding: 10px 0;
  }
  .thumb-swiper .swiper-wrapper {
    flex-direction: row;
  }
  .thumb-swiper .swiper-slide {
    width: 80px !important;
    height: 80px !important;
    flex: 0 0 auto;
    margin-right: 10px;
  }
  .thumb-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
/* ===== rotate-box 基本結構與翻轉 ===== */
/* ===== 結構與 3D 翻面 ===== */
.rotate-box {
  position: relative;
  width: 100%;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.rotate-box-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.45s;
  will-change: transform;
  transform: translateZ(0);
  /* 防止 animate.css / wow 對這層套 transform/animation 造成覆蓋 */
  animation: none !important;
}

.rotate-box:hover .rotate-box-inner,
.rotate-box:focus-within .rotate-box-inner,
.rotate-box.is-flipped .rotate-box-inner {
  transform: translateZ(0) rotateY(180deg);
}

/* 固定比例（4:3） */
.rotate-box-ratio {
  aspect-ratio: 4 / 3;
}
@supports not (aspect-ratio: 1 / 1) {
  .rotate-box-ratio {
    position: relative;
  }
  .rotate-box-ratio::before {
    content: "";
    display: block;
    padding-top: 75%;
  }
  .rotate-box-inner {
    position: absolute;
    inset: 0;
  }
}

/* 兩面 */
.rotate-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  animation: none !important; /* 避免被外部動畫覆蓋 transform */
}

/* 正面 */
.rotate-front {
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.rotate-front img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rotate-front .caption {
  position: relative;
  z-index: 1;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  color: #fff;
  font-weight: 600;
  font-size: 18px;
}

/* 背面（預旋 180°） */
.rotate-back {
  transform: rotateY(180deg);
  position: relative;
  background: #f7f7f7;
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18px;
}
.rotate-back-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  pointer-events: none;
  z-index: 0;
  filter: brightness(1.05) saturate(0.9) blur(2px);
}
.rotate-back::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 0;
}
.rotate-back > *:not(.rotate-back-bg) {
  position: relative;
  z-index: 1;
}
.rotate-back h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.25);
}
.rotate-back p {
  opacity: 0.95;
  margin-bottom: 1rem;
}
.rotate-back .btn {
  background: #111;
  color: #fff;
  border: 0;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

/* 行動端：不要用 :hover 觸發（交給 JS）+ 加速 */
@media (hover: none), (pointer: coarse) {
  .rotate-box:hover .rotate-box-inner,
  .rotate-box:focus-within .rotate-box-inner {
    transform: none !important;
  }
  .rotate-box-inner {
    transition-duration: 0.35s;
  }
  .rotate-back-bg {
    filter: brightness(1.05) saturate(0.9);
  } /* 去掉 blur */
  .wow {
    visibility: visible !important;
  } /* 避免 WOW 把整排藏起來 */
}

/* 使用者偏好降低動效 */
@media (prefers-reduced-motion: reduce) {
  .rotate-box-inner {
    transition: none !important;
  }
}

/* ===== 可選的「高效能淡入淡出」模式（行動端卡就用） ===== */
/* 在 .rotate-box 上加 .rotate--fade 即可切換 */
.rotate--fade .rotate-box-inner {
  transform: none !important;
}
.rotate--fade .rotate-back {
  transform: none !important;
}

.rotate--fade .rotate-front,
.rotate--fade .rotate-back {
  transition: opacity 0.25s, visibility 0.25s;
}

.rotate--fade:not(.is-flipped) .rotate-front {
  opacity: 1;
  visibility: visible;
}
.rotate--fade:not(.is-flipped) .rotate-back {
  opacity: 0;
  visibility: hidden;
}

.rotate--fade.is-flipped .rotate-front {
  opacity: 0;
  visibility: hidden;
}
.rotate--fade.is-flipped .rotate-back {
  opacity: 1;
  visibility: visible;
}

@media (hover: none), (pointer: coarse) {
  .wow {
    visibility: visible !important;
  }
}

.svc-img {
  /* 固定比例 + cover 裁切 */
  aspect-ratio: 4/3;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
}

.svc-badge {
  /* 左上角數字徽章 */
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: #fff;
  border: 2px solid var(--brand);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
}

.svc-card {
  position: relative;
  height: 100%;
}

/*index 的feature */
.feature-text .feature-icon .fa-4x {
  font-size: clamp(20px, 7.5vw, 60px) !important;
  line-height: 1;
}

/*index slider text */
/* 基底（你原本的容器可保留） */
.slider-overlay-text-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 5vw;
}
/* 對齊：left/center/right 可切換 */
.slider-overlay-text-wrapper.right-align {
  justify-content: flex-end;
  text-align: right;
}
.slider-overlay-text-wrapper.center-align {
  justify-content: center;
  text-align: center;
}
.slider-overlay-text-wrapper.left-align {
  justify-content: flex-start;
  text-align: left;
}

/* 玻璃卡樣式 */
.style-glass .slider-text-box {
  --box-max: 680px;
  --pad: clamp(16px, 3vw, 28px);
  --radius: 18px;
  --glass-bg: rgba(0, 0, 0, 0.35);
  --glass-border: rgba(255, 255, 255, 0.25);
  --title: #fff;
  --subtitle: #f1f1f1;
  max-width: var(--box-max);
  padding: var(--pad);
  border-radius: var(--radius);
  color: #fff;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.style-glass .badge-pill {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.style-glass .slider-title {
  margin: 4px 0 10px;
  font-size: clamp(22px, 5vw, 48px);
  line-height: 1.15;
  color: var(--title);
}
.style-glass .slider-subtitle {
  font-size: clamp(14px, 2.2vw, 18px);
  line-height: 1.6;
  color: var(--subtitle);
  margin: 0 0 16px;
}

.style-glass .btn-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.style-glass.center-align .btn-row {
  justify-content: center;
}
.style-glass.left-align .btn-row {
  justify-content: flex-start;
}

/* 自訂按鈕（可換成 Bootstrap 的 .btn） */
.style-glass .btn-primary,
.style-glass .btn-outline {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
  will-change: transform;
}
.style-glass .btn-primary {
  background: #ff3b30;
  color: #fff;
}
.style-glass .btn-primary:hover {
  transform: translateY(-1px);
}
.style-glass .btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.style-glass .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* 手機：兩顆並排且同寬 */
@media (max-width: 575.98px) {
  .style-glass .btn-row {
    justify-content: space-between;
  }
  .style-glass .btn-row a {
    flex: 1;
    text-align: center;
  }
}

/* about SLDIER */
.cflow-swiper {
  --h: clamp(260px, 52vw, 520px);
  width: 100%;
  max-width: 980px;
  height: var(--h);
  margin: 24px auto;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cflow-swiper .swiper-wrapper {
  align-items: center;
}

/* slide 寬度用 auto，左右會露出；預設淡出 */
.cflow-swiper .swiper-slide {
  width: clamp(180px, 30vw, 360px);
  transition: opacity 0.35s ease, transform 0.35s ease, z-index 0.2s;
  opacity: 0.08;
}

.cflow-layer {
  transition: transform 0.35s ease, filter 0.35s ease;
  transform: scale(0.82);
  transform-origin: center;
  will-change: transform, filter;
}

/* 中間最大、最亮 */
.cflow-swiper .swiper-slide.swiper-slide-active {
  opacity: 1;
  z-index: 30;
}
.cflow-swiper .swiper-slide.swiper-slide-active .cflow-layer {
  transform: scale(1);
  filter: none;
}

/* 左右第一層 */
.cflow-swiper .swiper-slide.swiper-slide-prev,
.cflow-swiper .swiper-slide.swiper-slide-next {
  opacity: 0.65;
  z-index: 20;
}
.cflow-swiper .swiper-slide.swiper-slide-prev .cflow-layer,
.cflow-swiper .swiper-slide.swiper-slide-next .cflow-layer {
  transform: scale(0.9);
}

/* 左右第二層 */
.cflow-swiper .swiper-slide.second-prev,
.cflow-swiper .swiper-slide.second-next {
  opacity: 0.35;
  z-index: 10;
}
.cflow-swiper .swiper-slide.second-prev .cflow-layer,
.cflow-swiper .swiper-slide.second-next .cflow-layer {
  transform: scale(0.85);
}

.cflow-swiper
  .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(
    .swiper-slide-next
  ):not(.second-prev):not(.second-next) {
  opacity: 0;
  pointer-events: none;
}

/* 卡片：圓角白框 + 陰影；下方白框說明 */
.cflow-card {
  margin: 0;
}
.cflow-frame {
  background: #fff;
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}
.cflow-frame img {
  width: 100%;
  display: block;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.cflow-caption {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 12px;
  text-align: center;
  color: #444;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* 分頁點 */
.cflow-swiper .swiper-pagination {
  position: static;
  margin-top: 10px;
}
.cflow-swiper .swiper-pagination-bullet {
  opacity: 0.35;
}
.cflow-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

@media (min-width: 992px) {
  .cflow-swiper {
    --peek: clamp(48px, 6vw, 120px);
  }
  .cflow-swiper .swiper-wrapper {
    padding: 12px var(--peek); /* 左右留空、上下也留一點避免陰影被剪 */
    margin: 0; /* 確認沒有負 margin */
    box-sizing: border-box;
  }
  .cflow-swiper .swiper-slide {
    /* 卡片寬度放大；視窗越寬越大，但不超過 560px */
    width: clamp(300px, 36vw, 560px);
  }
  /* 左右第一層縮小比例降低，讓看起來更大一點 */
  .cflow-swiper .swiper-slide.swiper-slide-prev .cflow-layer,
  .cflow-swiper .swiper-slide.swiper-slide-next .cflow-layer {
    transform: scale(0.94);
  }
  /* 第二層也稍微放大 */
  .cflow-swiper .swiper-slide.second-prev .cflow-layer,
  .cflow-swiper .swiper-slide.second-next .cflow-layer {
    transform: scale(0.9);
  }

  .cflow-swiper .swiper-pagination {
    display: none;
  }
}

@media (min-width: 1400px) {
  .cflow-swiper {
    /* 讓容器變寬到可容納至少 2 張卡 + 邊距 */
    max-width: min(92vw, 1600px);
  }

  .cflow-swiper .swiper-slide {
    /* 把上限從 620 改為 560，讓 110 的 stretch 足以把左右推出來 */
    width: clamp(360px, 32vw, 620px);
  }
}

@media (min-width: 1920px) {
  .cflow-swiper .swiper-slide {
    /* 1920 再略收一點，確保左右可見面積足夠 */
    width: clamp(380px, 26vw, 560px);
  }
}

@media (max-width: 991px) {
  .cflow-swiper {
    --h: clamp(320px, 72vw, 580px); /* 高度放大 */
    height: auto;
  }
  .cflow-swiper .swiper-slide {
    width: min(92vw, 560px); /* 幾乎滿版，確保只見一張 */
    opacity: 0; /* 只顯示主卡 */
    height: auto;
  }
  .cflow-swiper .swiper-slide.swiper-slide-active {
    opacity: 1;
  }
  .cflow-layer {
    transform: scale(1);
  }

  .cflow-swiper .swiper-pagination {
    display: flex;
    position: static; /* 讓 dots 在輪播下方 */
    margin-top: 10px;
    justify-content: center;
    gap: 8px;
  }
  .cflow-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    opacity: 0.35;
  }
  .cflow-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
  }
  .cflow-swiper .swiper-wrapper {
    padding-bottom: 14px;
  }
}
