:root {
  --banner-radius: 24px;
  --banner-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  --banner-shadow-hover: 0 18px 48px rgba(0, 0, 0, 0.18);
  --banner-accent: #ac8d56;
  --banner-badge-bg: rgba(255, 255, 255, 0.78);
  --banner-badge-brd: rgba(172, 141, 86, 0.2);
  --brand-gray-light: #b3b3b3;
  --brand-gray-dark: #6a6a6a;
  /*VER1*/
  --mag-accent: #111; /* 雜誌風重點線條色 */
  --mag-muted: #6b7280; /* 次要文字 */
  --mag-card-radius: 18px; /* 卡片圓角 */
  --mag-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.bg-lightyellow {
  background: #e6dcc8;
}
.bg-verylightgray {
  background: #f6f6f6;
}
.bg-footgray {
  background: url("../../images/materials/hex-footer.jpg") left bottom / contain
      no-repeat,
    #ebebeb;
}
.text-brown {
  color: #ac8d56;
}
.container-latte {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
}
section.big-section {
  padding-top: 0px;
  padding-bottom: 120px;
}
footer {
  padding-top: 80px;
  padding-bottom: 30px;
}
/* 依你的需求，把 1200–1919 切細，避免項目擠爆或太鬆 */
@media (min-width: 576px) {
  .container-latte {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container-latte {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container-latte {
    max-width: 960px;
  }
} /* lg */
@media (min-width: 1200px) {
  .container-latte {
    max-width: 1100px;
  }
} /* 自訂 */
@media (min-width: 1400px) {
  .container-latte {
    max-width: 1280px;
  }
} /* 自訂 */
@media (min-width: 1600px) {
  .container-latte {
    max-width: 1440px;
  }
} /* 自訂 */
@media (min-width: 1920px) {
  .container-latte {
    max-width: 1600px;
  }
} /* 2K 桌機 */

/* 想要更緊湊的 navbar 內邊距（可選） 
.navbar .container-latte {
  --bs-gutter-x: 1rem; 
}*/

.navbar > .container-latte {
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between;
}

section {
  padding-bottom: 0px;
}

header .navbar-brand img {
  max-height: 80px;
}
header .navbar-brand {
  padding: 0px;
}

@media (min-width: 1200px) {
  section {
    padding-top: 70px;
  }
}
@media (max-width: 991px) {
  section {
    padding-top: 0;
    padding-bottom: 50px;
  }
  header .navbar-brand img {
    height: 70px;
  }
}

.bg-gray {
  background: #e8e7e7;
}
.bg-lightgray {
  background: #a5a69f;
}
.bg-footer {
  background: #f7f2ef;
}
html.dd-open {
  scroll-behavior: auto;
}
html.dd-open .navbar .collapse,
html.dd-open .navbar .collapsing {
  transition: none !important;
}

/* slider 置中 */
/* 容器微調：讓卡片垂直置中、留出可視空間 */
/* 讓這一段可以超出容器顯示（避免右邊被裁切） */
.peek-ctx {
  overflow: visible !important;
}

/* 把主題的右推效果關掉（否則整個區塊被推右邊） */
.peek-fix {
  margin-right: 0 !important;
  right: 0 !important;
  transform: none !important;
}

.peek-viewport {
  overflow: hidden;
  position: relative;
}

/* 控制兩側要露出多少：--peek；控制中心再小一點：--center-narrow */
.peek-swiper {
  --peek: clamp(56px, 8vw, 140px); /* 左右各露出多少（加大就露更多） */
  --center-narrow: 2.4; /* 中心縮多少（越大越小） */
  --hero-ratio: 5/3; /*高度*/

  padding-inline: var(--peek);
  overflow: visible;
}
@media (max-width: 767.98px) {
  .peek-swiper {
    --peek: 0px;
    --center-narrow: 0;
    --hero-ratio: 1/1; /* 手機 1:1 */
  }
}

/* 置中＋固定主卡寬度：雙邊各留出 --peek 的空間 */
.peek-swiper .swiper-wrapper {
  align-items: center;
}
.peek-swiper .swiper-slide {
  width: calc(100% - (var(--peek) * var(--center-narrow)));
  transition: transform 0.45s ease, opacity 0.45s ease;
}

/* 視覺層次 */
.peek-swiper .swiper-slide {
  transform: scale(0.9);
  opacity: 0.75;
}
.peek-swiper .swiper-slide-prev,
.peek-swiper .swiper-slide-next {
  transform: scale(0.94);
  opacity: 0.9;
  z-index: 2;
}
.peek-swiper .swiper-slide-active {
  transform: scale(1);
  opacity: 1;
  z-index: 3;
}

/* 讓非主卡片的文字層淡化*/
.peek-swiper .swiper-slide:not(.swiper-slide-active) .image-content {
  opacity: 0;
  pointer-events: none;
}
.peek-swiper .swiper-slide-active .image-content {
  opacity: 1;
}

.peek-swiper .interactive-banner-style-09 {
  border-radius: 22px;
  aspect-ratio: var(--hero-ratio);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), inset 0 0 0 10px #fff;
}
.peek-swiper .interactive-banner-style-09 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  aspect-ratio: 16 / 7;
}

.swiper-pagination-bullets-01 {
  position: static !important;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  margin-top: 24px;
  z-index: 20;
}

/* ===== 六角形分類牆（雜誌感） ===== */

.hexrail-swiper,
.hexrail-swiper .swiper-wrapper,
.hexrail-swiper .swiper-slide {
  height: auto !important;
  min-height: 200px !important;
  overflow: visible !important;
}

/* 全域控制：間距、錯位、漸層寬度與高度 */
.hexrail-swiper {
  --hex-gap: 15px; /* 兩顆之間的距離（越小越緊） */
  --stagger: 9%; /* 偶數張往下位移量（1 上一下） */
  --veil-pad-x: 12%; /* 漸層左右縮進（不讓兩側被蓋住） */
  --veil-height: 34%; /* 漸層高度，數值越大覆蓋越高 */
  --cap-pad-y: 8px; /* caption 內距 */
  padding: 25px 0;
  overflow: visible !important;
}
@media (max-width: 767.98px) {
  .hexrail-swiper {
    --hex-gap: 8px;
    --stagger: 5%;
    --veil-height: 38%;
  }
}

.hexrail-swiper .swiper-wrapper {
  display: flex;
}
.hexrail-swiper .swiper-slide {
  flex: 0 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.hexrail-swiper .slide-hex,
.hexrail-swiper .hex {
  width: 100%;
  margin: 0;
}

/* 去掉卡片容器多餘 padding/margin */
.hexrail-swiper .services-box-style-01,
.hexrail-swiper .hover-box,
.hexrail-swiper .last-paragraph-no-margin {
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
}

/* 六角：寬度 100%（大小由 slidesPerView 決定）；高度用 ::before 生成 */
.hexrail-swiper .slide-hex {
  width: 100%;
  display: grid;
  place-items: center;
}
.hexrail-swiper .hex {
  width: 100%;
  position: relative;
  display: block;
  box-sizing: border-box;
  -webkit-clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.08));
}
.hexrail-swiper .hex::before {
  content: "";
  display: block;
  padding-top: 86.602%;
}

/* 圖片鋪滿六角 */
.hexrail-swiper .hex__img,
.hexrail-swiper .hex__cap {
  position: absolute;
  inset: 0;
}
.hexrail-swiper .hex__img {
  display: block;
  background: #ccc center/cover no-repeat; /* 若先看到灰底 → 檢查路徑 */
  z-index: 1;
  transition: transform 0.35s ease;
}
.hexrail-swiper .hex:hover .hex__img {
  transform: scale(1.04);
}

/* 底部“窄”漸層：只蓋下方中段，不蓋左右兩側 */
.hexrail-swiper .hex::after {
  content: "";
  position: absolute;
  left: var(--veil-pad-x);
  right: var(--veil-pad-x);
  bottom: 0;
  height: var(--veil-height);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.58) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2; /* 在圖片上、caption 下 */
  pointer-events: none;
}

/* caption：透明背景，位於漸層之上（文字清楚可讀） */
.hexrail-swiper .hex__cap {
  inset: auto calc(var(--veil-pad-x)) 6% calc(var(--veil-pad-x));
  padding: calc(var(--cap-pad-y) + 2px) 0 var(--cap-pad-y);
  color: #fff;
  text-align: center;
  z-index: 3;
  background: none; /* 不要左右兩側漸層 */
}
.hexrail-swiper .hex__cap em {
  display: block;
  font-style: normal;
  font-weight: 700;
}
.hexrail-swiper .hex__cap small {
  display: block;
  opacity: 0.9;
  font-size: 0.86rem;
  margin-top: 2px;
}

/* 1 上一下：偶數向下 */
.hexrail-swiper .swiper-slide:nth-child(even) .slide-hex {
  transform: translateY(var(--stagger));
}

/* 分頁深色（白底清楚）——保留你的現有 selector */
.slider-four-slide-pagination-1 .swiper-pagination-bullet {
  background: #222;
  opacity: 0.35;
}
.slider-four-slide-pagination-1 .swiper-pagination-bullet-active {
  background: #000;
  opacity: 1;
}

/*   左右箭頭    */

.col-md-12.position-relative {
  position: relative;
}

/* 依斷點調整左右內縮距離：要多靠外就加大數值 */
:root {
  --nav-offset-lg: 3px;
  --nav-offset-md: 16px;
  --nav-offset-sm: 10px;
}

/* 絕對定位在整個區塊（不是在 slide 上） */
.col-md-12.position-relative .slider-one-slide-prev-06,
.col-md-12.position-relative .slider-one-slide-next-06 {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 99; /* 高於圖片 */
  pointer-events: auto;
}

/* 左右距離（進白邊） */
@media (min-width: 1200px) {
  .col-md-12.position-relative .slider-one-slide-prev-06 {
    left: var(--nav-offset-lg);
    top: 43%;
  }
  .col-md-12.position-relative .slider-one-slide-next-06 {
    right: var(--nav-offset-lg);
    top: 43%;
  }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .col-md-12.position-relative .slider-one-slide-prev-06 {
    left: var(--nav-offset-md);
    top: 42%;
  }
  .col-md-12.position-relative .slider-one-slide-next-06 {
    right: var(--nav-offset-md);
    top: 42%;
  }
}
@media (max-width: 767.98px) {
  .col-md-12.position-relative .slider-one-slide-prev-06 {
    left: var(--nav-offset-sm);
    top: 35%;
  }
  .col-md-12.position-relative .slider-one-slide-next-06 {
    right: var(--nav-offset-sm);
    top: 35%;
  }
}

/* 箭頭顏色在白底上更清楚（可依需要調） */
.slider-one-slide-prev-06 i,
.slider-one-slide-next-06 i {
  color: #111;
}

/* 確保 swiper 不裁切箭頭 */
.hexrail-swiper {
  overflow: visible;
}

/* View All Categiories 樣式 */
.catalog-more {
  margin-top: 14px; /* 與上方卡片距離 */
  text-align: center;
}
.more-link {
  display: inline-block;
  color: #111;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  border-bottom: 1px solid currentColor; /* 細底線 */
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.more-link:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

/* Footer */
/* 左下角蜂巢背景：所有樣式共用 */

footer .footer-logo img {
  max-height: 100px;
}
.footer-quick-links {
  columns: 2; /* 自動分成兩欄 */
  column-gap: 28px;
  max-width: 720px; /* 讓行長別太寬，可依需求調整或拿掉 */
  margin: 0;
}
.footer-quick-links a {
  display: block;
  padding: 4px 0;
  break-inside: avoid;
}
@media (max-width: 575.98px) {
  .footer-quick-links {
    columns: 1;
  }
}

.footer-dark,
.footer-dark p,
.footer-dark a,
.footer-dark span,
.footer-dark li {
  color: #111;
}

.footer-dark a:hover {
  color: #000;
}

.footer-dark .text-white,
.footer-dark .bi,
.footer-dark i,
.footer-dark .feather,
.footer-dark [class*="line-icon-"] {
  color: #111 !important;
}

.footer-dark .bg-white-transparent-very-light {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
}

.footer-dark .fs-16.fw-500.d-block {
  margin-bottom: 6px !important;
}

/* ============= 快速連結 2 欄 Grid（手機 1 欄） ============= */
.footer-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 8px;
  margin: 0;
  padding: 0;
}
.footer-quick-links a {
  display: block;
  padding: 4px 0;
  text-decoration: none;
}

/* 手機改回一欄 */
@media (max-width: 575.98px) {
  .footer-quick-links {
    grid-template-columns: 1fr;
  }
}

/* banner */
/* ==== Banner Card – 優雅質感版 ==== */
.banner-card {
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.16);
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateZ(0); /* 防鋸齒 */
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  isolation: isolate;
  aspect-ratio: 16 / 9; /* 預設比例（可改 5/3、3/2） */
}

/* 手機比例稍高，視覺更飽滿 */
@media (max-width: 575.98px) {
  .banner-card {
    aspect-ratio: 4 / 3;
  }
}

.banner-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

/* 底部漸層：讓白字在任何底圖都清晰 */
.banner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.1) 55%,
    rgba(0, 0, 0, 0) 70%
  );
  z-index: 1;
  pointer-events: none;
}

/* 玻璃感貼紙（badge） */
.banner-card__badge {
  position: absolute;
  left: clamp(16px, 2vw, 24px);
  bottom: clamp(16px, 2vw, 22px);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.banner-card__badge strong {
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;
  font-size: clamp(18px, 2.2vw, 22px);
}

.banner-card__badge small {
  opacity: 0.9;
  font-size: clamp(12px, 1.6vw, 14px);
}

/* Hover / Focus：微抬升＋影像輕微放大 */
.banner-card:hover,
.banner-card:focus-visible {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.banner-card:hover .banner-card__img,
.banner-card:focus-visible .banner-card__img {
  transform: scale(1.06);
}

/* 鍵盤可及性 */
.banner-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* 動畫偏好：使用者關閉動態時停掉 */
@media (prefers-reduced-motion: reduce) {
  .banner-card,
  .banner-card__img {
    transition: none;
  }
}

/*index_1 category ul */

.list-plain2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 55px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-plain2col li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 22px;
}
.list-plain2col li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0.25em;
  font-weight: 800;
}
.list-plain2col a {
  color: #111;
  text-decoration: none;
}
.list-plain2col a:hover {
  opacity: 0.75;
}
@media (max-width: 575.98px) {
  .list-plain2col {
    grid-template-columns: 1fr;
  }
}

/* banner index_1 */
/* ===== Runway (彩色 + 高可讀版) ===== */
.banner-card--runway {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16/9;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
}

/* 改：保留彩色，微增彩度與對比（不要灰階） */
.banner-card--runway .banner-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(104%) contrast(104%) brightness(1);
  transform: scale(1.02);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.35s ease;
}

/* 改：只在底部做較強的暗角，讓白字清楚 */
.banner-card--runway::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 32%,
    rgba(0, 0, 0, 0) 60%
  );
}

/* 改：badge 做成輕玻璃底，提升可讀性 */
.banner-card--runway .banner-card__badge {
  position: absolute;
  left: clamp(18px, 2.2vw, 28px);
  bottom: clamp(16px, 2vw, 22px);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 10px 14px;
  border-radius: 14px;
  color: #fff;
}

/* 改：不要描邊字，改實心白字 + 柔和陰影 */
.banner-card--runway .banner-card__badge strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  line-height: 1;
  font-size: clamp(26px, 3.8vw, 40px);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* 副標略小，保持對比 */
.banner-card--runway .banner-card__badge small {
  display: block;
  margin-top: 2px;
  color: #fff;
  opacity: 0.95;
  font-size: clamp(12px, 1.6vw, 14px);
  letter-spacing: 0.04em;
}

/* Hover：輕微放大即可 */
.banner-card--runway:hover .banner-card__img {
  transform: scale(1.06);
  filter: saturate(108%) contrast(108%) brightness(1);
}

@media (max-width: 575.98px) {
  .banner-card--runway {
    aspect-ratio: 4/3;
  }
}
