/* 珮豐花園 靜態網站樣式表（純 CSS，無需任何建置工具） */

/* 色彩系統：SPA Pastel Editorial
   暖白／純白 60%．裸粉／霧藍 30%．炭黑／沙灰／暖灰褐 10% */
:root {
  /* 基礎色票 */
  --warm-white: #fcf8f7;
  --pure-white: #ffffff;
  --blush: #fee0d5;
  --powder-blue: #d1e4e8;
  --soft-sand: #d8cfc7;
  --warm-taupe: #a79185;
  --charcoal: #292a2b;

  /* 語意變數（沿用原有名稱，全站自動套用） */
  --background: var(--warm-white);
  /* 大面積交替區塊用極淡裸粉，避免整站過粉 */
  --background-soft: #fdf1ec;
  /* 品牌情緒區（首屏、頁首橫幅）才使用飽和裸粉 */
  --brand-wash: var(--blush);
  --calm-wash: #eef5f7;
  --nude-pink: var(--blush);
  --nude-pink-40: rgba(254, 224, 213, 0.45);
  --nude-pink-50: rgba(254, 224, 213, 0.6);
  --nude-pink-60: rgba(254, 224, 213, 0.75);
  --nude-pink-70: rgba(254, 224, 213, 0.9);
  --cta: var(--charcoal);
  --cta-dark: #000000;
  --accent: var(--warm-taupe);
  --text-main: var(--charcoal);
  --text-soft: #625b57;
  --border-soft: var(--soft-sand);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-50: rgba(255, 255, 255, 0.5);

  /* 形狀與陰影：極簡、極淡 */
  --radius-sm: 3px;
  --radius-md: 8px;
  --shadow-soft: 0 18px 42px rgba(41, 42, 43, 0.07);

  /* 字距 */
  --tracking-display: 0.12em;
  --tracking-label: 0.18em;

  /* 頁首實際高度（含底線）：僅供手機選單計算面板高度用，
     main.js 會量測後覆寫。切勿拿來設定頁首自身高度，否則會互相推高。 */
  --header-height: 89px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-main);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
  margin: 0;
  color: var(--text-main);
  font-weight: 500;
  letter-spacing: var(--tracking-display);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.display {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-style: italic;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }
}

.section {
  padding: 80px 0;
}

@media (min-width: 640px) {
  .section {
    padding: 128px 0;
  }
}

.section--soft {
  background: var(--background-soft);
}

.section--pink {
  background: var(--nude-pink-40);
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading--left {
  margin: 0 0 40px;
  text-align: left;
}

@media (min-width: 640px) {
  .section-heading {
    margin-bottom: 56px;
  }
}

.section-heading__eyebrow {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.8125rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--text-soft);
}

.section-heading__title {
  font-size: 1.5rem;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .section-heading__title {
    font-size: 1.875rem;
  }
}

.section-heading__desc {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 248, 247, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(216, 207, 199, 0.8);
}

.site-header__inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .site-header__inner {
    padding: 0 32px;
  }
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo__img {
  height: 73px;
  width: auto;
  display: block;
}

.main-nav {
  display: none;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: inline-block;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover {
  color: var(--cta);
}

.main-nav a.is-active {
  color: var(--cta);
  border-bottom-color: var(--cta);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 180px;
  margin-top: 14px;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  max-height: 0;
  transform: translateX(-50%);
  transition: max-height 0.9s ease, opacity 0.7s ease, padding 0.9s ease, visibility 0.9s;
  z-index: 60;
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  max-height: 320px;
  padding: 8px;
}

.nav-dropdown a {
  display: block;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown a:hover {
  background: var(--background-soft);
  color: var(--cta);
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .main-nav {
    display: block;
    /* 導覽列往下移，使其底部與「立即預約」按鈕矩形底部對齊 */
    transform: translateY(8px);
  }
  .header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  /* 漢堡按鈕與手機選單的隱藏規則寫在下方 Mobile menu 區塊，
     必須排在 .mobile-menu-toggle 基礎樣式之後才會生效。 */
}

.header-cta .btn {
  width: 84.21px;
  height: 40px;
  padding: 0;
  white-space: nowrap;
}

.header-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.header-icon-link svg {
  width: 20px;
  height: 20px;
}

.header-icon-link:hover {
  color: var(--cta);
  border-color: var(--cta);
  background: var(--background-soft);
}

/* Mobile menu */
.mobile-menu-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 1px;
  background: var(--text-main);
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 選單面板：頁首有 backdrop-filter，會成為 fixed 子元素的容器區塊，
   因此改用 absolute 掛在頁首下方（頁首為 sticky，本身即定位祖先）。 */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  background: var(--background);
  border-top: 1px solid var(--border-soft);
  padding: 32px 24px 48px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open {
  display: block;
}

/* 選單開啟時鎖住頁面捲動，避免背景跟著滑動 */
body.has-mobile-menu-open {
  overflow: hidden;
}

/* 桌機版：隱藏漢堡按鈕與選單面板。
   這段必須放在上方基礎樣式之後，否則會被 display: flex／block 蓋過去。 */
@media (min-width: 768px) {
  .mobile-menu-toggle,
  .mobile-menu,
  .mobile-menu.is-open {
    display: none;
  }
}

.mobile-menu ul li a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 18px;
}

.mobile-menu ul li a.is-active {
  color: var(--cta);
  font-weight: 500;
}

.mobile-menu__actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  min-height: 48px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.24s, color 0.24s, border-color 0.24s;
}

.btn--primary {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--warm-white);
}

.btn--primary:hover {
  background: transparent;
  color: var(--charcoal);
}

.btn--outline {
  border-color: var(--charcoal);
  color: var(--charcoal);
  background: transparent;
}

.btn--outline:hover {
  background: var(--blush);
  color: var(--charcoal);
}

.btn--full {
  width: 100%;
}

/* Hero（首屏文案排版，供輪播面板沿用） */
.hero__title {
  font-size: 1.875rem;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .hero__title {
    font-size: 2.5rem;
  }
}

.hero__desc {
  margin-top: 24px;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   Hero carousel（首屏全寬廣告輪播：4 張，左右箭頭 + 圓點 + 自動播放）
   ============================================================ */
.hero-carousel {
  position: relative;
  height: clamp(520px, 86vh, 620px);
  overflow: hidden;
  background: var(--brand-wash);
}

@media (min-width: 640px) {
  .hero-carousel {
    height: clamp(560px, 80vh, 720px);
  }
}

/* 所有投影片疊在同一格，用 opacity 交叉淡入。
   visibility 一起切換，避免隱藏頁的連結仍被滑鼠點到。 */
.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease, visibility 0s;
}

.hero-carousel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 左濃右淡的暗角：讓面板邊緣與照片自然銜接，也壓下背景雜訊 */
.hero-carousel__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(41, 42, 43, 0.38) 0%,
    rgba(41, 42, 43, 0.16) 45%,
    rgba(41, 42, 43, 0) 72%
  );
}

/* 粉嫩設計稿本身已是淺色，用極淡版本，避免把配色壓濁 */
.hero-carousel__scrim--light {
  background: linear-gradient(
    100deg,
    rgba(41, 42, 43, 0.1) 0%,
    rgba(41, 42, 43, 0.04) 45%,
    rgba(41, 42, 43, 0) 70%
  );
}

.hero-carousel__content {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  /* 底部留白讓出手機版的控制列 */
  padding: 0 20px 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* 桌機左右各留 80px，讓左右箭頭不會壓到面板 */
@media (min-width: 640px) {
  .hero-carousel__content {
    padding: 0 80px;
  }
}

/* 留白在畫面中央的廣告圖（如 ad-01），面板改置中才不會蓋到左側照片。
   置中時面板收窄，避免兩側溢出中央留白帶、壓到拼貼照片。 */
.hero-carousel__content--center {
  align-items: center;
}

.hero-carousel__content--center .hero-carousel__panel {
  max-width: 520px;
}

/* 面板預設透明，啟用時才淡入。否則交叉淡入的 0.9 秒內，
   前後兩張的文字會同時可見並互相重疊。
   透明度由 class 直接控制、不交給動畫的 fill，動畫沒跑到時文字才不會整個消失。 */
.hero-carousel__panel {
  opacity: 0;
  transition: opacity 0.45s ease;
  /* 620px 才容得下最長那行標題「而是一場被理解的療癒。」不被拆開 */
  max-width: 620px;
  padding: 28px 24px;
  background: rgba(252, 248, 247, 0.93);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(41, 42, 43, 0.08);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 640px) {
  .hero-carousel__panel {
    padding: 44px 48px;
  }
}

/* 小尺寸手機（如 320×568）文案較長時，面板會頂到底部控制列，這裡收緊各項間距 */
@media (max-width: 400px) {
  .hero-carousel__panel {
    padding: 22px 18px;
  }

  .hero-carousel__panel .hero__title {
    font-size: 1.625rem;
  }

  .hero-carousel__panel .hero__desc {
    margin-top: 16px;
  }

  .hero-carousel__panel .hero__actions {
    margin-top: 22px;
    gap: 10px;
  }

  .hero-carousel__panel .btn {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 13px;
  }
}

.hero-carousel__eyebrow {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--text-soft);
}

/* 進場動畫：依投影片順序輪替三種方向，維持廣告感。
   延遲 0.35s 等上一張的圖片淡出過半，文字才不會打架。 */
.hero-carousel__slide.is-active .hero-carousel__panel {
  opacity: 1;
  transition-delay: 0.35s;
  animation: heroPanelRise 0.8s ease 0.35s backwards;
}

.hero-carousel__slide:nth-child(2).is-active .hero-carousel__panel {
  animation-name: heroPanelLeft;
}

/* --bare：移除文字白框（第 1、3 張共用）。
   移除底色/模糊/邊框/陰影/內距，讓文字直接落在圖面上。 */
.hero-carousel__slide--bare .hero-carousel__panel {
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* --bare：大標與說明字級加大（第 1、3 張共用） */
.hero-carousel__slide--bare .hero__title {
  font-size: 2.375rem; /* 手機 38px */
  color: #5e4634;
}

.hero-carousel__slide--bare .hero__desc {
  font-size: 17px;
}

@media (min-width: 640px) {
  .hero-carousel__slide--bare .hero__title {
    font-size: 3.25rem; /* 桌機 52px */
  }
}

/* --shift：文字整體左移（僅第 1 張）。移除進場位移動畫，改用固定左移。
   左移「最大不裁切」：寬螢幕最多左移 150px；螢幕變窄時自動夾減，
   保留左側約 20px 安全間距，文字不會被推出畫面。
   可用空間 = 內容框左外距 max(0,(100vw-1152)/2) + 內距 80 − 安全間距 20 = …+60 */
.hero-carousel__slide--shift.is-active .hero-carousel__panel {
  animation: none;
}

@media (min-width: 640px) {
  .hero-carousel__slide--shift .hero-carousel__panel {
    transform: translateX(calc(-1 * min(150px, max(0px, (100vw - 1152px) / 2) + 60px)));
  }
}

/* --bubble：第 4 張白框改為圓角對話框（大圓角 + 左上尾巴）。
   ::before 疊一個小三角當尾巴，顏色沿用面板底色，讓白框像對話氣泡。 */
.hero-carousel__slide--bubble .hero-carousel__panel {
  position: relative;
  border-radius: 20px;
}

.hero-carousel__slide--bubble .hero-carousel__panel::before {
  content: "";
  position: absolute;
  top: 36px;
  right: -33px;
  width: 0;
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 34px solid rgba(252, 248, 247, 0.93);
  /* 對齊面板右緣的細邊，讓尾巴看起來與氣泡相連 */
  filter: drop-shadow(1px 0 0 rgba(41, 42, 43, 0.06));
}

.hero-carousel__slide:nth-child(3).is-active .hero-carousel__panel {
  animation-name: heroPanelDrop;
}

.hero-carousel__slide.is-active .hero-carousel__img {
  animation: heroImgZoom 7s ease-out both;
}

/* 只動 transform：透明度交給上面的 transition 控制 */
@keyframes heroPanelDrop {
  from {
    transform: translateY(-30px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes heroPanelLeft {
  from {
    transform: translateX(-40px);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes heroPanelRise {
  from {
    transform: translateY(30px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes heroImgZoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

/* ---- 左右箭頭 ---- */
.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(41, 42, 43, 0.14);
  border-radius: 999px;
  background: rgba(252, 248, 247, 0.88);
  color: var(--charcoal);
  cursor: pointer;
  transition: background 0.24s, color 0.24s, border-color 0.24s;
}

.hero-carousel__arrow:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--warm-white);
}

.hero-carousel__arrow:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 3px;
}

.hero-carousel__arrow svg {
  width: 20px;
  height: 20px;
}

.hero-carousel__arrow--prev {
  left: 16px;
}

.hero-carousel__arrow--next {
  right: 16px;
}

@media (min-width: 640px) {
  .hero-carousel__arrow--prev {
    left: 24px;
  }

  .hero-carousel__arrow--next {
    right: 24px;
  }
}

/* 手機版把箭頭移到底部控制列，避免蓋住面板 */
@media (max-width: 639px) {
  .hero-carousel__arrow {
    top: auto;
    bottom: 20px;
    transform: none;
    width: 40px;
    height: 40px;
  }

  /* 讓圓點與兩側箭頭在同一條水平中線上 */
  .hero-carousel__dots {
    bottom: 36px;
  }
}

/* ---- 圓點 ---- */
.hero-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(41, 42, 43, 0.18);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}

.hero-carousel__dot.is-active {
  width: 24px;
  background: #fff;
}

.hero-carousel__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__slide {
    transition: none;
  }

  .hero-carousel__slide.is-active .hero-carousel__panel,
  .hero-carousel__slide.is-active .hero-carousel__img {
    animation: none;
  }

  .hero-carousel__panel {
    transition: none;
  }
}

/* Simple page header (non-hero pages) */
.page-header {
  position: relative;
  overflow: hidden;
  /* 沒有背景圖的頁面仍沿用原本的裸粉底 */
  background: var(--brand-wash);
}

.page-header__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 淡壓底。0.38 是實測下限：更淡的話，照片暗處（頭髮、植栽、陰影）
   即使加上光暈仍會掉到 WCAG AA 的 4.5:1 以下。 */
.page-header__scrim {
  position: absolute;
  inset: 0;
  background: rgba(252, 248, 247, 0.38);
}

.page-header__inner {
  position: relative;
  z-index: 1;
  max-width: 768px;
  margin: 0 auto;
  padding: 88px 20px;
  text-align: center;
}

/* 有背景圖的頁首：不放面板，文字直接壓在照片上，靠貼著字的光暈維持可讀性。
   用 :has() 精準命中，沒有圖的頁首（member.html）不受影響。 */
.page-header:has(.page-header__img) .page-header__eyebrow,
.page-header:has(.page-header__img) .page-header__title,
.page-header:has(.page-header__img) .page-header__desc,
.page-header:has(.page-header__img) .small-note {
  text-shadow:
    0 0 10px rgba(252, 248, 247, 1),
    0 0 20px rgba(252, 248, 247, 0.9),
    0 0 36px rgba(252, 248, 247, 0.7);
}

/* 說明與附註原本的柔灰 #625b57 在照片上會糊掉（實測 22% 筆畫不及格），
   在有圖的頁首改用炭黑，光暈才撐得住。 */
.page-header:has(.page-header__img) .page-header__desc,
.page-header:has(.page-header__img) .small-note {
  color: var(--text-main);
}

/* 文字整體左右位移。位移量隨視窗收放，不用斷點硬切，
   避免在門檻上下一格就從滿位移跳回置中。
   50vw - 408px＝單側可讓出的空間（已扣掉 768 內容框、捲軸與 16px 留白），
   空間不足時自動縮小位移，永遠不會把文字推出畫面。
   位移量由各頁在 section 上以 --page-header-shift 指定。 */
.page-header--shift-left .page-header__inner {
  right: clamp(0px, calc(50vw - 408px), var(--page-header-shift, 0px));
}

.page-header--shift-right .page-header__inner {
  left: clamp(0px, calc(50vw - 408px), var(--page-header-shift, 0px));
}

/* 舊瀏覽器不支援 :has()，光暈與加深都不會生效，改回整片壓底保住可讀性 */
@supports not selector(:has(*)) {
  .page-header__scrim {
    background: rgba(252, 248, 247, 0.9);
  }
}

@media (min-width: 640px) {
  .page-header__inner {
    padding: 128px 32px;
  }
}

.page-header--wide .page-header__inner {
  max-width: 1024px;
  text-align: left;
  padding: 48px 20px;
}

@media (min-width: 640px) {
  .page-header--wide .page-header__inner {
    padding: 56px 32px;
  }
}

/* 細項頁主視覺：矮窄細帶。放背景圖但高度刻意壓低、內容垂直置中，
   與首頁的滿版高橫幅做出層級區隔（首頁＝高橫幅置中，細項頁＝矮細帶左對齊）。 */
.page-header--band {
  min-height: 180px;
  display: flex;
  align-items: center;
}

@media (min-width: 640px) {
  .page-header--band {
    min-height: 240px;
  }
}

.page-header--band .page-header__inner {
  width: 100%;
}

.page-header__eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--cta);
}

.page-header__title {
  margin-top: 12px;
  font-size: 1.875rem;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .page-header__title {
    font-size: 2.25rem;
  }
}

.page-header__desc {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
}

.page-header--wide .page-header__desc {
  max-width: 640px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--text-soft);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb a:hover {
  color: var(--cta);
}

.breadcrumb .current {
  color: var(--text-main);
}

/* Grid utilities */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* ── 雜誌式主秀區塊 ──
   主卡橫向 60／40 分欄置頂，其餘卡片在下方等分排列。
   刻意不用「跨欄跨列」的拼圖式格線：卡片數量不固定時，
   跨列會在格線尾端留下空洞，區塊高度也會失控。 */
/* 主卡：大圖、大標、無框，從等重卡片中浮出。
   本身即為 60／40 分欄格線，維持 <a> 的可點擊範圍與無障礙語意。 */
.card.card--lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
  border: none;
  background: transparent;
  overflow: visible;
}

@media (min-width: 900px) {
  .card.card--lead {
    grid-template-columns: 60fr 40fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 64px;
  }
}

.card.card--lead .img-placeholder,
.card.card--lead .img-photo {
  aspect-ratio: 3 / 2;
}

/* 服務分類卡的實際照片：一般卡沿用 4:3，圓角上緣與卡片一致 */
.card .img-photo {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

/* 精選產品卡：正方形照片，沿用原佔位框 1:1 比例 */
.card .img-photo--square {
  aspect-ratio: 1 / 1;
}

/* 最新消息卡：寬幅照片，沿用原佔位框 16:9 比例 */
.card .img-photo--wide {
  aspect-ratio: 16 / 9;
}

.card.card--lead .card__body {
  padding: 0;
  gap: 14px;
  justify-content: center;
}

.card.card--lead .card__title {
  font-size: 1.5rem;
  line-height: 1.45;
}

.card.card--lead .card__desc {
  flex: 0 0 auto;
  font-size: 15px;
  max-width: 46ch;
}

@media (min-width: 900px) {
  .card.card--lead .card__title {
    font-size: 1.875rem;
  }
}

.card.card--lead:hover {
  box-shadow: none;
}

.card.card--lead:hover .card__title {
  color: var(--warm-taupe);
}

/* 店內空間：主視覺橫幅置頂，細項在下方等分 */
.space-lead {
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .space-lead {
    margin-bottom: 40px;
  }
}

/* ── 圖文分欄 40／60 ── */
.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 40fr 60fr;
    gap: 64px;
  }

  /* 交替方向：偶數個分欄圖片移到右側，建立左右節奏 */
  .split--reverse > *:first-child {
    order: 2;
  }
}

/* ── 極細水平線，用來建立區塊節奏 ── */
.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--border-soft);
}

.rule--short {
  width: 64px;
  margin-bottom: 28px;
  background: var(--charcoal);
}

.section-heading--left .rule--short {
  margin-left: 0;
}

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--pure-white);
  transition: box-shadow 0.24s, border-color 0.24s;
}

.card:hover {
  box-shadow: var(--shadow-soft);
  border-color: var(--warm-taupe);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
}

.card__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cta);
}

.card__title {
  font-size: 1.05rem;
}

.card__desc {
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  font-size: 13px;
}

.card__meta-link {
  font-weight: 500;
  color: var(--cta);
}

.card:hover .card__meta-link {
  text-decoration: underline;
}

.card__badge {
  display: inline-block;
  width: fit-content;
  border-radius: 999px;
  background: var(--nude-pink-60);
  padding: 2px 10px;
  font-size: 12px;
  color: var(--text-main);
}

/* Image placeholder */
.img-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--nude-pink-70), var(--background-soft) 60%, var(--background));
  aspect-ratio: 4 / 3;
}

.img-placeholder--square { aspect-ratio: 1 / 1; }
.img-placeholder--tall { aspect-ratio: 4 / 5; }
.img-placeholder--wide { aspect-ratio: 16 / 9; }

/* 實際照片取代直式佔位框（品牌頁經營者照）。維持 4:5 直式，
   cover 讓不同尺寸的照片都填滿而不變形。 */
.brand-figure {
  width: 100%;
  /* height:auto 讓 aspect-ratio 主導；否則 img 的 height 屬性會鎖死高度 */
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

/* 實際照片填入原佔位框。比例沿用同時掛上的 --wide / --square，
   height:auto 讓 aspect-ratio 主導，cover 填滿不變形。 */
.img-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

/* 空間氛圍：實際照片 + 下方置中小標題。統一 4:3 比例讓四格整齊。 */
.space-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.space-figure .img-photo {
  aspect-ratio: 4 / 3;
}

.space-figure__caption {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.img-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background:
    radial-gradient(circle at 25% 25%, rgba(254, 224, 213, 0.9), transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(209, 228, 232, 0.75), transparent 60%);
}

.img-placeholder__label {
  position: relative;
  padding: 0 24px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-soft);
}

.img-placeholder__label small {
  display: block;
  font-size: 11px;
  color: var(--text-soft);
}

/* Steps / numbered list */
.numbered {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--nude-pink);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--cta);
  flex-shrink: 0;
}

.numbered--outline {
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--cta);
}

.why-item, .belief-item {
  text-align: center;
}

@media (min-width: 640px) {
  .why-item, .belief-item {
    text-align: left;
  }
  .why-item .numbered, .belief-item .numbered {
    margin-left: 0;
  }
}

.why-item .numbered, .belief-item .numbered {
  margin: 0 auto 12px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-list li {
  display: flex;
  gap: 16px;
}

.step-list .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--nude-pink);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--cta);
  flex-shrink: 0;
}

.step-list .step-title {
  font-weight: 500;
}

.step-list .step-desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* Checklist */
.check-list {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .check-list--2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--white-60);
  padding: 14px 16px;
  font-size: 15px;
}

.check-list .check-mark {
  color: var(--cta);
  margin-top: 2px;
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bullet-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
}

.bullet-list .bullet {
  color: var(--cta);
}

.caution-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* Quote */
.quote {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--white-60);
  padding: 24px;
  font-size: 15px;
  line-height: 1.75;
}

.quote-link {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--cta);
}

.tag {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--white-60);
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-soft);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Filter buttons (reviews) */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: transparent;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--cta);
  color: var(--cta);
}

.filter-btn.is-active {
  border-color: var(--cta);
  background: var(--cta);
  color: #fff;
}

.review-card {
  display: none;
}

.review-card.is-visible {
  display: flex;
}

/* FAQ accordion */
.faq {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--white-50);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border-soft);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

@media (min-width: 640px) {
  .faq-question {
    padding: 20px 24px;
  }
}

.faq-icon {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--cta);
  transition: transform 0.2s;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
}

@media (min-width: 640px) {
  .faq-answer {
    padding: 0 24px 20px;
  }
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* Detail layout */
.detail-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .detail-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.detail-block + .detail-block {
  margin-top: 48px;
}

.info-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--white-60);
  padding: 24px;
}

.info-card__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-soft);
}

.info-card__value {
  margin-top: 4px;
  font-size: 1.125rem;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.price-trial {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cta);
}

.price-list {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cta);
}

.price-list--struck {
  font-size: 13px;
  color: var(--text-soft);
  text-decoration: line-through;
}

.info-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-soft);
}

.sidebar-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-label {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-soft);
}

.pending-badge {
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--nude-pink-70);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
}

.pending-note {
  margin-bottom: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--nude-pink-40);
  padding: 20px;
  font-size: 14px;
  line-height: 1.7;
}

.field-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .field-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.field-box {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--white-60);
  padding: 16px;
}

.field-box__label {
  font-size: 12px;
  color: var(--text-soft);
}

.field-box__value {
  margin-top: 4px;
  font-size: 15px;
}

.chip-link {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--white-60);
  padding: 8px 16px;
  font-size: 14px;
}

.chip-link:hover {
  border-color: var(--cta);
  color: var(--cta);
}

/* CTA block */
.cta-block {
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  background: var(--nude-pink-50);
  padding: 48px 24px;
  text-align: center;
}

@media (min-width: 640px) {
  .cta-block {
    padding: 48px 64px;
  }
}

.cta-block__title {
  font-size: 1.5rem;
}

@media (min-width: 640px) {
  .cta-block__title {
    font-size: 1.875rem;
  }
}

.cta-block__desc {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
}

.cta-block__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.cta-block--quote {
  padding: 32px 24px;
}

/* Contact page */
.contact-info dt {
  font-size: 13px;
  color: var(--text-soft);
}

.contact-info dd {
  margin: 2px 0 0;
}

.contact-info > div + div {
  margin-top: 16px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 260px;
}

.hours-row .closed {
  color: var(--text-soft);
}

.map-frame {
  margin-top: 24px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--cta);
}

.map-link:hover {
  text-decoration: underline;
}

.booking-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
}

.booking-steps li {
  display: flex;
  gap: 8px;
}

.booking-steps .step-index {
  color: var(--cta);
}

/* Form */
.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-field .required {
  color: #9c5b52;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: #fff;
  padding: 12px 16px;
  font-size: 15px;
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--powder-blue);
  box-shadow: 0 0 0 3px rgba(209, 228, 232, 0.55);
}

.form-error {
  margin-top: 4px;
  font-size: 12px;
  color: #9c5b52;
}

.form-row-2 {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--nude-pink-40);
  padding: 32px;
  text-align: center;
}

.form-success__title {
  font-size: 1.125rem;
  font-weight: 500;
}

.form-success__desc {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
}

.form-submit-error {
  font-size: 14px;
  color: var(--cta);
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border-soft);
  background: var(--calm-wash);
}

/* 連續圖案背景。圖案放在 ::before 而非 background，
   文字才能維持在完整對比的圖層上，不被圖案干擾。
   調整 opacity 即可控制圖案強弱。 */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../images/patten03.svg");
  background-repeat: repeat;
  background-size: 280px 280px;
  opacity: 0.5;
}

.site-footer__inner,
.site-footer__bottom {
  position: relative;
  z-index: 1;
}

.site-footer__inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 640px) {
  .site-footer__inner {
    padding: 64px 32px;
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand__en {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--cta);
}

.footer-brand__zh {
  margin-top: 4px;
  font-size: 14px;
}

.footer-brand__desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 260px;
}

.footer-social {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  color: var(--text-soft);
}

/* 社群圖示：不加外框——沙灰細框壓在頁尾圖案上對比僅 1.16，
   等於看不見。保留 40px 見方的點擊範圍以符合觸控最小尺寸。 */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: -10px;
  color: var(--text-soft);
  transition: color 0.24s ease, transform 0.24s ease;
}

.social-link:first-child {
  margin-left: 0;
}

/* hover 往「更深」走：暖灰褐壓在頁尾圖案上只有 2.26，
   低於圖形元素 3.0 的門檻，滑過去反而更難辨識。 */
.social-link:hover {
  color: var(--charcoal);
  transform: translateY(-2px);
}

.social-link:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.social-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 40px;
  font-size: 14px;
}

@media (min-width: 640px) {
  .footer-nav ul {
    grid-template-columns: 1fr;
  }
}

.footer-nav a:hover {
  color: var(--cta);
}

.footer-contact {
  font-size: 14px;
  color: var(--text-soft);
}

.footer-contact a:hover {
  color: var(--cta);
}

.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--cta);
}

.footer-contact__label {
  font-weight: 500;
  color: var(--text-main);
}

.site-footer__bottom {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

@media (min-width: 640px) {
  .site-footer__bottom {
    padding: 0 32px 48px;
  }
}

.footer-disclaimer {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-soft);
}

.footer-copyright {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-soft);
}

/* Line float button */
.line-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .line-float {
    display: none;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.small-note {
  font-size: 12px;
  color: var(--text-soft);
}

/* ── 最新消息 ── */

/* 列表沿用等分卡片格線；日期與分類構成編輯式的資訊列 */
.news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .news-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .news-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 40px;
  }
}

.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.news-date {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.tag--pinned {
  border-color: var(--charcoal);
  color: var(--charcoal);
  background: var(--blush);
}

/* 篩選後被隱藏的卡片 */
.news-list .card.is-hidden {
  display: none;
}

/* ── 消息詳細頁 ── */
.section--article-head {
  padding-bottom: 0;
}

.section--article-body {
  padding-top: 48px;
}

@media (min-width: 640px) {
  .section--article-body {
    padding-top: 64px;
  }
}

.article-head {
  max-width: 720px;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-title {
  font-size: 1.75rem;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .article-title {
    font-size: 2.5rem;
  }
}

.article-lead {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-soft);
}

/* 內文欄寬約 44 個中文字（SKILL 建議 38–62）。
   不用 ch：中文字型下 ch 等於數字寬度，會讓實際字數少掉三成。 */
.article-body {
  max-width: 44em;
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 1rem;
  line-height: 2;
}

.article-related {
  max-width: 44em;
  margin-top: 56px;
}

.article-related__label {
  margin: 28px 0 16px;
  font-size: 12px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-soft);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
