/* ===== Bakery Section ===== */
.bakery-block {
  position: relative;
  padding: clamp(28px, 6vw, 72px) 0;
}

.bakery-head {
  text-align: center;
  margin-bottom: clamp(16px, 3vw, 28px);
}
.bakery-title {
  font-weight: 800;
  line-height: 1.2;
  font-size: clamp(24px, 3.6vw, 40px);
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}
.bakery-sub {
  margin: 0 0 6px;
  font-size: clamp(18px, 2.6vw, 28px);
  letter-spacing: 0.2px;
  opacity: 0.9;
  display: inline; /* 讓寬度剛好包住文字 */
  font-weight: 700;
  line-height: 1.2;
  /* 用背景漸層做“底線高光” */
  background-image: linear-gradient(transparent calc(100% - 0.38em), #f6b04a 0);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding-bottom: 0.08em; /* 讓底線與文字有一點呼吸 */
  border-radius: 4px; /* 讓底線兩側邊緣更柔和（可改） */
}
.bakery-lead {
  margin: 0;
  font-size: clamp(18px, 2.8vw, 26px); /* 手機≥18px、桌機到 26px */
  color: var(--text-secondary, #555);
  line-height: 2.5;
  font-size: clamp(16px, 2.2vw, 22px);
  opacity: 0.95;
}

/* list */
.bakery-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(18px, 3.5vw, 28px);
}

/* card（一列一張，手機置中） */
.bakery-item {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
  background: transparent;
  border-radius: 16px;
  padding: clamp(14px, 3.4vw, 22px);
  /* box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06); */
}

.bakery-figure {
  margin: 0 auto;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.bakery-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bakery-content {
  text-align: left;
}
.bakery-h3 {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: 0.2px;
}
.bakery-text {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.8;
  color: var(--text-secondary, #555);
}

/* 平板：雙欄交錯（更像你的設計稿節奏） */
@media (min-width: 768px) {
  .bakery-list {
    grid-template-columns: 1fr 1fr;
  }
  .bakery-item {
    grid-template-columns: 136px 1fr;
    align-items: center;
    gap: 18px;
  }
  /* 讓第 2、4 張在視覺上左右反轉（交錯） */
  .bakery-item:nth-child(2),
  .bakery-item:nth-child(4),
  .bakery-item:nth-child(6) {
    grid-template-columns: 1fr 136px;
  }
  .bakery-item:nth-child(2) .bakery-figure,
  .bakery-item:nth-child(4) .bakery-figure,
  .bakery-item:nth-child(6) .bakery-figure {
    order: 2;
    margin-left: auto;
  }
  .bakery-item:nth-child(2) .bakery-content,
  .bakery-item:nth-child(4) .bakery-content,
  .bakery-item:nth-child(6) .bakery-content {
    order: 1;
    text-align: right;
  }
}

/* 桌機：更舒適的左右留白與尺寸 */
@media (min-width: 1200px) {
  .bakery-block {
    padding: 72px 0;
  }
  .bakery-figure {
    width: 140px;
    height: 140px;
  }
  .bakery-item {
    gap: 22px;
  }
}

/* ===== Bakery 區塊：背景圖 + 白色薄紗 ===== */
/* ✅ 背景圖 + 白紗 */
.bakery-block {
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    /* 白紗透明度，想更清楚就降到 .75；想更淡就升到 .9 */
      url("../images/success-model/bakery/bakery-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* 確保整段有高度讓背景看得到 */
  padding: clamp(40px, 6vw, 80px) 0;
}

/* 背景圖--這邊要另外處理因為已經有各別寫在model-bakery */
.bakery-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* 先鋪一層柔和的頂部到下方的淡白漸層，避免上方文字太突兀 */ linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.55) 35%,
      rgba(255, 255, 255, 0.35) 100%
    ),
    url("../assets/images/bakery/bakery-bg.jpg") center / cover no-repeat; /* 背景圖 */
  z-index: -2; /* 在內容底下 */
}

/* 白色薄紗（微霧面） */
.bakery-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12); /* 調整 0.08~0.18 看喜好 */
  z-index: -1;
  pointer-events: none;
}

/* 文字層確保在最上面 */
.bakery-block .container {
  position: relative;
  z-index: 1;
}

/* 手機邊界再多一點呼吸（你可微調） */
@media (max-width: 576px) {
  .bakery-block .container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* 手機版：只把標題置中 */
@media (max-width: 767.98px) {
  .bakery-block .bakery-h3 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(18px, 5vw, 22px); /* 原18→20~22左右 */
    margin-bottom: 6px;
  }

  /* 手機版：加大卡片內文左右留白 */
  .bakery-block .bakery-content {
    /* 上 右/左 下 的內距；可依需要微調數字 */
    padding: 12px clamp(14px, 5vw, 22px) 16px; /* ← 比前一版更窄 */
    /* 段落本身維持緊貼容器，不額外縮排 */
    .bakery-block .bakery-text {
      margin-left: 0;
      margin-right: 0;
    }
  }

  /* 內文放大＋加行高，閱讀更舒服 */
  .bakery-block .bakery-text {
    font-size: clamp(15px, 4.2vw, 17px); /* 原14→15~17 */
    line-height: 1.7; /* 原1.6→1.7 */
    letter-spacing: 0.2px;
  }

  /* 手機微調：底線略厚一點看起來更扎實 */
  .bakery-sub {
    background-image: linear-gradient(
      transparent calc(100% - 0.46em),
      #f6b04a 0
    );
  }
}
