/* =====Hero區===== */

/* mobile圖片 */
.hero-1 {
  background: url("../images/success-model/wooden-crate-pallet-manufacturing/hero/wooden-crate-pallet-manufacturing-hero@1x.jpg")
    center/cover no-repeat;
}

/* tablet圖片 */
@media (min-width: 768px) {
  .hero-1 {
    background: url("../images/success-model/wooden-crate-pallet-manufacturing/hero/wooden-crate-pallet-manufacturing-hero@tablet.jpg")
      center center / cover no-repeat;
  }
}

/* desktop圖片 */
@media (min-width: 1024px) {
  .hero-1 {
    background: url("../images/success-model/wooden-crate-pallet-manufacturing/hero/wooden-crate-pallet-manufacturing-hero@desktop.jpg")
      center center / cover no-repeat;
  }
}

/* =====背景圖===== */
.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("../images/success-model/shoe-cleaning-industry/shoe-cleaning-industry-block/shoe-cleaning-industry-bg@1x.jpg")
      center / cover no-repeat; /* 背景圖 */
  z-index: -2; /* 在內容底下 */
}

@media (min-width: 768px) {
  .bakery-block::before {
    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("../images/success-model/shoe-cleaning-industry/shoe-cleaning-industry-block/shoe-cleaning-industry-bg@tablet.jpg")
        center/cover no-repeat;
  }
}

@media (min-width: 1200px) {
  .bakery-block::before {
    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("../images/success-model/shoe-cleaning-industry/shoe-cleaning-industry-block/shoe-cleaning-industry-bg@desktop.jpg")
        center/cover no-repeat;
  }
}

:root {
  --case-maxw: 1120px;
  --case-radius: 16px;
  --case-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  --case-border: 1px solid rgba(0, 0, 0, 0.06);
  --case-accent: #2c295a; /* 你站上的主色可沿用 */
  --case-muted: #666;
  --case-bg: #ffffff;
  --case-soft: #f6f7fb; /* 很淡的底色 */
}

.case-section {
  padding: clamp(40px, 6vw, 88px) 0;
  background: var(--case-soft);
}

.case-container {
  width: min(100% - 32px, var(--case-maxw));
  margin-inline: auto;
}

/* Head */
.case-head {
  text-align: center;
  margin-bottom: clamp(18px, 3.2vw, 34px);
}

.case-tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(44, 41, 90, 0.08);
  color: var(--case-accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.case-title {
  margin: 0 0 10px;
  font-weight: 800;
  line-height: 1.2;
  font-size: clamp(24px, 5.4vw, 40px);
  color: #111;
}

.case-summary {
  margin: 0 auto;
  width: 100%;
  color: var(--case-muted);
  line-height: 1.7;
  font-size: clamp(15px, 3.9vw, 18px);
}

/* Body */
.case-body {
  background: var(--case-bg);
  border: var(--case-border);
  border-radius: var(--case-radius);
  box-shadow: var(--case-shadow);
  padding: clamp(16px, 3.4vw, 26px);
  margin-bottom: clamp(16px, 3vw, 26px);
}

.case-h {
  margin: 0 0 10px;
  font-size: clamp(18px, 4.4vw, 22px);
  font-weight: 800;
  color: #111;
}

.case-p {
  margin: 0;
  color: #333;
  line-height: 1.85;
  font-size: clamp(15px, 4vw, 17px);
}

/* Needs grid */
.need-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: clamp(12px, 2.2vw, 18px);
}

.need-card {
  background: var(--case-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
  padding: clamp(16px, 2.6vw, 22px);
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.92)
  );
}

/* 左側品牌色細條（提升質感與辨識） */
.need-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: rgba(44, 41, 90, 0.85); /* 可改成 var(--color-primary) */
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

/* 背景淡光點綴（非常淡，不搶文字） */
.need-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(44, 41, 90, 0.12),
    rgba(44, 41, 90, 0) 60%
  );
  pointer-events: none;
}

.need-no {
  width: auto;
  height: auto;
  border-radius: 999px;
  display: inline-flex;
  place-items: center;
  background: rgba(44, 41, 90, 0.1);
  color: rgba(44, 41, 90, 0.95);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid rgba(44, 41, 90, 0.16);
}

.need-title {
  margin: 0 0 8px;
  font-weight: 900;
  color: #111;
  font-size: clamp(17px, 4.4vw, 20px);
  line-height: 1.25;
}

.need-desc {
  margin: 0;
  color: #5d5d5d;
  line-height: 1.75;
  font-size: clamp(14px, 3.8vw, 16px);
}

.case-media {
  margin-top: clamp(40px, 8vw, 96px); /* 與 case-needs 保持空間 */
}

.case-media__figure {
  margin: 0 auto;
  max-width: 100%;
}

.case-media__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* 平板：2 欄 */
@media (min-width: 768px) {
  .case-head {
    text-align: left;
  }
  .case-summary {
    margin-left: 0;
  }

  .need-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

/* hover：僅桌機啟用，手機不亂跳 */
@media (hover: hover) and (pointer: fine) {
  .need-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease,
      border-color 0.18s ease;
  }
  .need-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
    border-color: rgba(44, 41, 90, 0.18);
  }
}

/* 平板以上：卡片內容左右更鬆 */
@media (min-width: 768px) {
  .need-card {
    padding: 22px;
  }
}

@media (min-width: 1200px) {
  .need-grid {
    grid-template-columns: repeat(
      4,
      minmax(0, 1fr)
    ); /* 桌機：需求卡改 4 欄（若你希望更像展示牆） */
    gap: 18px;
  }
  .case-media__figure {
    max-width: 1100px; /* 或 1200px，看你 container 寬度 */
  }
}
