
/* ----- Hero (cinematic) ----- */
.hero {
  position: relative;
  min-height: 830px;
  color: #fff;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(0, 0, 0, .34), rgba(0, 0, 0, .34)),
    url('../../assets/udy-banner.webp') center/cover;
}

.hero-inner {
  width: min(calc(100% - 40px), 1100px);
  margin: 0 auto;
  text-align: center;
}

h1,
h2,
h3 {
  margin: 0;
}

.hero h1,
.hero h2 {
  font-family: "Noto Serif TC";
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.25;
  letter-spacing: .12em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .35);
  margin-bottom: 18px;
}

.hero p {
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: .18em;
  margin: 0 auto 34px;
  max-width: 800px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

/* Hero CTA:白色外框 pill 按鈕,定位於 hero 底部附近(對齊 Figma 3322-4010) */
.cta {
  position: absolute;
  left: 50%;
  bottom: clamp(36px, 7vh, 80px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 36px;
  color: #fff;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .03em;
  white-space: nowrap;
  border: 1.5px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  transition: background-color .2s ease, border-color .2s ease;
}

.cta:hover {
  background: rgba(255, 255, 255, .14);
  border-color: #fff;
}

.cta__arrow {
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 980px) {
  .hero {
    min-height: 74vh;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: clamp(440px, 62vh, 560px);
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(28px, 7vw, 40px);
    letter-spacing: 0.08em;
  }

  /* 手機版:副標縮小字體與字距,避免單行過寬 */
  .hero p {
    font-size: clamp(12px, 3.4vw, 16px);
    letter-spacing: .06em;
  }

  /* 手機版:標題各段斷行,隱藏中間的分隔點 */
  .hero-title__part {
    display: block;
  }

  .hero-title__sep {
    display: none;
  }
}

.section-about {
  padding-right: 0;
}

.intro-bleed {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  padding-left: max(20px, calc((100% - min(calc(100% - 40px), 1200px)) / 2));
}

.intro-bleed__text {
  max-width: 480px;
}

.section-about .title-small {
  font-size: 18px;
  margin-bottom: 12px;
}

.section-about .title-large {
  font-size: clamp(22px, 2.75vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-about .lead {
  font-size: 17px;
  line-height: 1.85;
}

.title-small {
  color: var(--accent);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .08em;
  margin-bottom: 16px;
  font-family: serif;
}

.title-large {
  color: var(--accent);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 22px;
  font-family: "Noto Serif TC", "Songti TC", serif;
}

.lead {
  font-size: 22px;
  color: var(--accent);
  line-height: 1.9;
  font-family: serif;
}

.card-image {
  min-height: 540px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
  background: url('../../assets/udy-section-1-v2.webp') center/cover;
}

.section-about .card-image {
  border-radius: 14px 0 0 14px;
  box-shadow: -10px 20px 44px rgba(0, 0, 0, .12);
  min-height: min(52vw, 520px);
}

.services {
  background: var(--svc-bg);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 54px;
  text-align: center;
}

.section-head .line {
  width: 78px;
  height: 1px;
  background: var(--dark)
}

.section-head h2 {
  font-size: 28px;
  letter-spacing: .2em;
  font-family: serif;
  color: var(--dark)
}

.service-wrap {
  display: grid;
  grid-template-columns: minmax(132px, 0.12fr) minmax(0, 0.70fr) minmax(200px, 0.18fr);
  gap: clamp(24px, 3.2vw, 40px);
  align-items: start;
}

.service-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 110px;
  width: 100%;
}

.service-sidebar__counter {
  font-family: "Noto Serif TC", "Songti TC", serif;
  margin: 0 0 10px;
  line-height: 1.2;
  text-align: center;
  width: 100%;
}

.service-sidebar__current {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--svc-ink);
}

.service-sidebar__counter-rest {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  color: #b8b2a8;
}

.service-menu__btn-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.service-menu__row-icon {
  display: block;
  width: auto;
  max-width: min(104px, 100%);
  height: auto;
  object-fit: contain;
  align-self: center;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.22s ease, margin 0.22s ease;
  pointer-events: none;
}

.service-menu__btn.active .service-menu__row-icon {
  max-height: 76px;
  opacity: 1;
  margin-bottom: 10px;
}

.service-menu__label {
  display: block;
  text-align: center;
  line-height: 1.35;
}

.service-menu {
  position: relative;
  align-self: stretch;
  width: 100%;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 10px 0 0;
  margin: 0;
}

/* 桌機:wrapper 不產生盒子,track 與按鈕視同 .service-menu 直接子元素 */
.service-menu__inner {
  display: contents;
}

.service-menu__track {
  position: absolute;
  right: 18px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: var(--svc-rail);
  pointer-events: none;
}

.service-menu__btn {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  column-gap: 12px;
  padding: 8px 0 8px 2px;
  border: none;
  margin: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-family: "Noto Serif TC", "Songti TC", "LiSong Pro", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--svc-muted);
  width: 100%;
}

.service-menu__btn:hover {
  color: var(--svc-ink);
}

.service-menu__btn.active {
  color: var(--svc-ink);
}

.dot {
  flex-shrink: 0;
  justify-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9c3bb;
  box-shadow: 0 0 0 3px var(--svc-bg);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.service-menu__btn.active .dot {
  width: 12px;
  height: 12px;
  background: var(--svc-ink);
  box-shadow: 0 0 0 4px var(--svc-bg);
}

.service-photo {
  min-height: min(52vw, 520px);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  line-height: 0;
}

.service-photo__img {
  display: block;
  width: 100%;
  min-height: min(52vw, 520px);
  height: min(52vw, 520px);
  object-fit: cover;
  object-position: center;
}

.service-copy {
  padding-top: 4px;
  max-width: 320px;
}

.service-copy h3 {
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 700;
  color: var(--svc-ink);
  font-family: "Noto Serif TC", "Songti TC", serif;
  letter-spacing: .08em;
  margin-bottom: 14px;
  line-height: 1.35;
}

.service-copy .mini-line {
  width: 100%;
  max-width: 120px;
  height: 1px;
  background: var(--svc-ink);
  opacity: .35;
  margin: 0 0 22px;
}

.service-copy__body {
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: .06em;
  color: #5c5650;
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 700;
}

.btn--service {
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  padding: 11px 26px 11px 24px;
}

.btn--service .btn__arrow {
  margin-left: 6px;
  font-weight: 500;
}

/* ---------- Section: 場館圖牆 (Gallery) ---------- */
.section-gallery {
  background: var(--accent-2);
  padding: 96px 0 112px;
  overflow: hidden;
}

.gallery-stage {
  position: relative;
  width: min(calc(100% - 40px), 1086px);
  margin: 0 auto;
  aspect-ratio: 1086 / 1030;
}

.gallery-item {
  position: absolute;
  margin: 0;
  border-radius: 6px;
  overflow: visible;
  box-shadow: 0 18px 40px rgba(60, 50, 45, .14);
  transition:
    top 0.65s cubic-bezier(.5, .1, .25, 1),
    left 0.65s cubic-bezier(.5, .1, .25, 1),
    width 0.65s cubic-bezier(.5, .1, .25, 1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* 初始(壓縮)版位 = Figma frame 1887719140 (Group 105)
   stage 為 1086 × 1030 容器,位置/寬度標準化成 % */
.gallery-item--top {
  /* 晴光御守牌位 (上),G105: 470×264 @ (209, 0) */
  top: 0;
  left: 19.25%;
  width: 43.28%;
  aspect-ratio: 576 / 324;
  z-index: 2;
}

.gallery-item--altarRight {
  /* 尊榮牌位 (右上),G105: 288×244 @ (707, 113) */
  top: 10.97%;
  left: 65.10%;
  width: 26.52%;
  aspect-ratio: 353 / 300;
  z-index: 3;
}

.gallery-item--main {
  /* 藝展區 (中左大圖),G105: 580×319 @ (51, 235) */
  top: 22.82%;
  left: 4.70%;
  width: 53.40%;
  aspect-ratio: 630 / 390;
  z-index: 4;
}

.gallery-item--hallway {
  /* 晴光御守牌位 (右下),G105: 353×316 @ (502, 345) */
  top: 33.50%;
  left: 46.22%;
  width: 32.50%;
  aspect-ratio: 433 / 388;
  z-index: 5;
}

.gallery-item--altar {
  /* 接待大廳 (底),G105: 301×193 @ (0, 503) */
  top: 48.83%;
  left: 0;
  width: 27.72%;
  aspect-ratio: 418 / 268;
  z-index: 5;
}

/* Caption (triangle arrow + label) — Figma Group 97 樣式 */
.gallery-item__caption {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.55vw, 20px);
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #6d4d28;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.45s ease 0.2s, transform 0.65s cubic-bezier(.5, .1, .25, 1) 0.2s;
}

.gallery-item--caption-right .gallery-item__caption {
  top: 50%;
  left: 100%;
  flex-direction: row;
  transform: translate(10px, -50%);
}

/* --top 的 label 在 Figma 是貼齊圖片上緣 (y≈15/324),避免與 altarRight 重疊 */
.gallery-item--top.gallery-item--caption-right .gallery-item__caption {
  top: 4.6%;
  transform: translate(10px, 0);
}

.gallery-item--caption-top .gallery-item__caption {
  left: 50%;
  bottom: 100%;
  flex-direction: column-reverse;
  transform: translate(-50%, -10px);
}

/* --altarRight 的 label 在 Figma 是靠右 (x=911 在 353px 寬內約 63.5%),這裡再向右推 */
.gallery-item--altarRight.gallery-item--caption-top .gallery-item__caption {
  left: 85%;
}

.gallery-item--caption-bottom .gallery-item__caption {
  left: 50%;
  top: 100%;
  flex-direction: column;
  transform: translate(-50%, 10px);
}

/* --main 的 label 在 Figma 為 x=0 (對齊圖片左緣) */
.gallery-item--main.gallery-item--caption-bottom .gallery-item__caption {
  left: 0;
  transform: translate(0, 10px);
}

.gallery-item__arrow {
  flex: none;
  width: 13px;
  height: 15px;
  color: #6d4d28;
}

/* Triangle points toward the image */
.gallery-item--caption-right .gallery-item__arrow {
  transform: rotate(180deg);
}

.gallery-item--caption-top .gallery-item__arrow {
  transform: rotate(90deg);
}

.gallery-item--caption-bottom .gallery-item__arrow {
  transform: rotate(-90deg);
}

/* Hover: 展開到 Figma frame 1887719139 (Group 97) + 標籤顯示 */
@media (hover: hover) {
  .gallery-stage:hover .gallery-item--top {
    top: 0;
    left: 7.78%;
    width: 53.04%;
  }

  .gallery-stage:hover .gallery-item--altarRight {
    top: 9.13%;
    left: 63.26%;
    width: 32.5%;
  }

  .gallery-stage:hover .gallery-item--main {
    top: 34.08%;
    left: 0;
    width: 58.01%;
  }

  .gallery-stage:hover .gallery-item--hallway {
    top: 41.17%;
    left: 60.15%;
    width: 39.87%;
  }

  .gallery-stage:hover .gallery-item--altar {
    top: 74%;
    left: 15.59%;
    width: 38.49%;
  }

  .gallery-stage:hover .gallery-item__caption {
    opacity: 1;
  }

  .gallery-stage:hover .gallery-item--caption-right .gallery-item__caption {
    transform: translate(22px, -50%);
  }

  .gallery-stage:hover .gallery-item--top.gallery-item--caption-right .gallery-item__caption {
    transform: translate(22px, 0);
  }

  .gallery-stage:hover .gallery-item--caption-top .gallery-item__caption {
    transform: translate(-50%, -22px);
  }

  .gallery-stage:hover .gallery-item--caption-bottom .gallery-item__caption {
    transform: translate(-50%, 22px);
  }

  .gallery-stage:hover .gallery-item--main.gallery-item--caption-bottom .gallery-item__caption {
    transform: translate(0, 22px);
  }
}

/* ---------- Section: 最新消息 ---------- */
.section-news {
  background: #fff;
  padding: 96px 0 112px;
}

.news-head {
  display: flex;
  align-items: baseline;
  gap: 26px;
  margin-bottom: 60px;
}

.news-head__zh {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--svc-ink);
}

.news-head__en {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: #a39d95;
  text-transform: uppercase;
}

.news-layout {
  display: grid;
  grid-template-columns: 388fr 573fr;
  gap: 50px;
  align-items: start;
}

.news-card {
  display: block;
  color: inherit;
}

.news-card__image {
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #ede7df;
}

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

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.news-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--svc-ink);
}

.news-card__date {
  font-family: var(--font-display);
  color: var(--svc-ink);
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.news-card__date-ym {
  font-size: 11px;
  font-weight: 500;
}

.news-card__date-d {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.news-card__excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: #5c5650;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Feature card (左大卡):圖在上,內文在下 */
.news-card--feature .news-card__image {
  aspect-ratio: 388 / 348;
  margin-bottom: 26px;
}

/* List card (右側 3 條):圖在左,內文在右 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.news-card--list {
  display: grid;
  grid-template-columns: 166px 1fr;
  gap: 30px;
  height: 148px;
}

.news-card--list .news-card__image {
  aspect-ratio: 1 / 1;
  height: 100%;
}

/* ---------- Tablet / 中段 (≤980px) ---------- */
@media (max-width: 980px) {

  .intro-bleed,
  .service-wrap {
    grid-template-columns: 1fr;
  }

  .intro-bleed {
    padding-right: max(20px, calc((100% - min(calc(100% - 40px), 1200px)) / 2));
  }

  .section-about .card-image {
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .12);
    min-height: 320px;
  }

  .service-sidebar {
    position: static;
    max-width: 320px;
    margin: 0 auto;
    align-items: center;
  }

  .service-sidebar__counter {
    text-align: center;
  }

  .service-copy {
    max-width: none;
    text-align: center;
  }

  .service-copy .mini-line {
    margin-left: auto;
    margin-right: auto;
  }

  .card-image,
  .service-photo {
    min-height: 320px;
  }

  .service-photo__img {
    min-height: 320px;
    height: 320px;
  }

/* News:平板維持桌機版型,但縮減欄寬 */
  .news-layout {
    grid-template-columns: 340fr 1fr;
    gap: 36px;
  }
}

/* ---------- Mobile (≤767px) ---------- */
@media (max-width: 767px) {
  .container {
    width: min(calc(100% - 28px), 1200px);
  }

  .section {
    padding: 50px 0;
  }

.lead {
    font-size: 18px;
  }

  /* About:標題 / 圖 / 內文 全部置中 */
  .section-about .intro-bleed {
    justify-items: center;
    text-align: center;
    gap: 24px;
  }

  .intro-bleed__text {
    max-width: none;
    text-align: center;
  }

  .section-about .lead {
    font-size: 16px;
    color: #6d4d28;
  }

  .section-about .card-image {
    width: 100%;
    max-width: 320px;
    min-height: 0;
    aspect-ratio: 320 / 220;
    margin: 0 auto;
  }

  .section-head h2 {
    font-size: 26px;
  }

  /* 服務項目:側邊直向選單 → 頂部橫向可捲動標籤 */
  .service-sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-items: stretch;
    gap: 0;
  }

  .service-sidebar__counter {
    text-align: left;
    margin-bottom: 14px;
  }

  /* 選單本身只當水平捲動視窗 */
  .service-menu {
    display: block;
    position: relative;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .service-menu::-webkit-scrollbar {
    display: none;
  }

  /* 內層依內容寬度(max-content)排所有標籤,線跨滿此層 → 每個圓點都有線 */
  .service-menu__inner {
    display: flex;
    position: relative;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 26px;
    width: max-content;
    min-width: 100%;
    padding: 0 0 14px;
  }

  /* 一條水平線穿過所有圓點(圓點中心 = 軌道格中心 6px),寬度 = 內層全寬 */
  .service-menu__track {
    display: block;
    top: 6px;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
    background: var(--svc-rail);
  }

  .service-menu__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: auto;
    flex: 0 0 auto;
    padding: 0;
    white-space: nowrap;
  }

  /* 圓點:固定 12px 軌道格,內層圓點置中 → 放大時對稱、始終落在線上 */
  .service-menu__btn .dot {
    order: -1;
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .service-menu__btn .dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c9c3bb;
    box-shadow: 0 0 0 4px var(--svc-bg);
    transition: width .2s ease, height .2s ease, background .2s ease;
  }

  .service-menu__btn.active .dot {
    width: 12px;
    height: 12px;
    background: transparent;
    box-shadow: none;
  }

  .service-menu__btn.active .dot::before {
    width: 12px;
    height: 12px;
    background: var(--svc-ink);
  }

  .service-menu__btn-main {
    flex-direction: column-reverse;
  }

  .service-menu__btn.active .service-menu__row-icon {
    max-height: 44px;
    margin: 8px 0 0;
  }

  .service-photo,
  .service-photo__img {
    min-height: 0;
    height: auto;
  }

  .service-photo__img {
    aspect-ratio: 1 / 1;
  }

  .service-copy {
    max-width: none;
    text-align: left;
  }

  .service-copy h3 {
    font-size: 26px;
  }

  .service-copy .mini-line {
    margin-left: 0;
    margin-right: 0;
  }

  /* 場館圖牆:疊圖 → 300px 方形直向堆疊 + 標籤 */
  .section-gallery {
    padding: 56px 0;
  }

  .gallery-stage {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
  }

  .gallery-item {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
    aspect-ratio: auto;
    box-shadow: none;
    overflow: visible;
  }

  /* 圖固定正方形、陰影與圓角在圖本身,caption 在圖下方不被覆蓋 */
  .gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 14px 32px rgba(60, 50, 45, .14);
  }

  .gallery-item__caption {
    position: static;
    opacity: 1;
    transform: none;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    margin-top: 14px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-size: 20px;
    white-space: normal;
  }

  .gallery-item--caption-top .gallery-item__caption,
  .gallery-item--caption-bottom .gallery-item__caption {
    flex-direction: row;
    justify-content: flex-start;
  }

  /* 手機版隱藏方向箭頭,只留文字 */
  .gallery-item__arrow {
    display: none;
  }

  /* 桌機變體用 transform 做絕對定位位移;手機改靜態堆疊後必須清掉(含 0,3,0 高權重選擇器),否則 label 會位移蓋到圖片 */
  .gallery-item--caption-right .gallery-item__caption,
  .gallery-item--caption-top .gallery-item__caption,
  .gallery-item--caption-bottom .gallery-item__caption,
  .gallery-item--top.gallery-item--caption-right .gallery-item__caption,
  .gallery-item--main.gallery-item--caption-bottom .gallery-item__caption {
    transform: none;
  }

  .gallery-item--caption-top .gallery-item__arrow,
  .gallery-item--caption-bottom .gallery-item__arrow {
    transform: none;
  }

  .gallery-item--caption-right .gallery-item__arrow {
    transform: rotate(180deg);
  }

  /* 最新消息:全部改為圖上文下大卡直向堆疊 */
  .section-news {
    padding: 56px 0 80px;
  }

  .news-head {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 32px;
  }

  .news-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .news-list {
    gap: 60px;
  }

  .news-card--feature .news-card__image,
  .news-card--list .news-card__image {
    aspect-ratio: 242 / 217;
    height: auto;
    margin-bottom: 0;
  }

  .news-card--list {
    grid-template-columns: 1fr;
    gap: 24px;
    height: auto;
  }

  .news-card__title {
    font-size: 22px;
  }

  .news-card__date-d {
    font-size: 40px;
  }

  .news-card__excerpt {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }
}
