/* ============================================================
   藝妍美學館 - 客戶案例頁樣式 (cases.css)
   風格來源：.專案本案\風格\美容02\美甲-客戶案例.html
   命名：遵守 .github\專案架構\css命名規則.md（BEM）
   Block 對應允許清單：wrap / section / page-header / tabs / btn / gallery / review / tag / footer
   ============================================================ */

/* ===== 核心變數 ===== */
:root {
  --cream: #faf5ef;
  --cream-2: #f3e9df;
  --rose: #c48a79;
  --rose-deep: #a86e5d;
  --gold: #b08d57;
  --ink: #4a3b33;
  --ink-soft: #7a6a60;
  --line: #e7d9cc;
}

/* ===== 全域重設 ===== */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
}
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.section { padding: 50px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  letter-spacing: .3em;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
}
h1, h2, h3, h4 { font-weight: 700; letter-spacing: .03em; line-height: 1.35; }
.title { font-size: 28px; margin-bottom: 10px; color: var(--ink); }
.lead { font-size: 16px; color: var(--ink-soft); max-width: 540px; margin: 0 auto; }

/* ===== 頁首 ===== */
.page-header {
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.page-header__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(var(--hero-blur, 0));
  transform: scale(1.05);
  z-index: 0;
}
.page-header.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(74, 59, 51, .45);
  z-index: 1;
}
.page-header.has-bg { color: #fff; }
.page-header.has-bg .page-header__title { color: #fff; }
.page-header.has-bg .page-header__sub { color: #f6ece4; }
.page-header__title {
  font-size: 30px;
  letter-spacing: .06em;
}
.page-header__sub {
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ===== 分類標籤（tabs Block） ===== */
.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 40px;
}
.tabs__btn {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all .25s ease;
}
.tabs__btn:hover,
.tabs__btn--active {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
  box-shadow: 0 4px 12px rgba(196, 138, 121, .25);
}

/* ===== 作品展示網格（gallery Block） ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 70px;
}
.gallery__card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(74, 59, 51, .05);
  transition: all .3s cubic-bezier(.165, .84, .44, 1);
  display: flex;
  flex-direction: column;
}
.gallery__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(74, 59, 51, .12);
  border-color: rgba(196, 138, 121, .4);
}
.gallery__media {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.gallery__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.gallery__tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-light, #f7f3ec);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(176, 141, 87, .2);
}
.gallery__artist {
  font-size: 12px;
  color: var(--ink-soft);
}
.gallery__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.gallery__desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}
.gallery__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 0;
  background: var(--cream);
  color: var(--rose-deep);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  transition: all .25s ease;
  border: 1px solid var(--line);
}
.gallery__card:hover .gallery__btn {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}

/* ===== 顧客口碑評語區（review Block，深色） ===== */
.review-section {
  background: linear-gradient(135deg, #4A3B33 0%, #322620 100%);
  color: #F3E9DF;
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 10px 30px rgba(74, 59, 51, .05);
}
.review-section__header {
  text-align: center;
  margin-bottom: 36px;
}
.review-section__title {
  font-size: 26px;
  color: #fff;
  margin-bottom: 8px;
}
.review-section__sub {
  font-size: 14px;
  color: #c9b8ac;
}
.review-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-card__stars {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 12px;
}
.review-card__text {
  font-size: 13px;
  line-height: 1.7;
  color: #e8dfd8;
  margin-bottom: 16px;
}
.review-card__author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #a39388;
  border-top: 1px dashed rgba(255, 255, 255, .1);
  padding-top: 12px;
}
.review-card__author strong { color: #fff; font-weight: 600; }

/* ===== 響應式 ===== */
@media (max-width: 992px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  nav .wrap { padding: 0 24px; }
}
@media (max-width: 768px) {
  .review-section__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px !important; }
  nav .wrap { padding: 0 16px !important; }
  .page-header .wrap { padding: 0 16px !important; }

  .section { padding: 36px 0; }
  .page-header { padding: 24px 0 20px; }
  .page-header__title { font-size: 24px; }
  .title { font-size: 22px; }

  .gallery { grid-template-columns: 1fr; gap: 20px; }
  .gallery__media { height: 240px; }
  .review-section { padding: 30px 20px; }
  .review-section__title { font-size: 22px; }
  footer { font-size: 11px; padding: 14px 12px; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 12px !important; }
  nav .wrap { padding: 0 12px !important; }
  .page-header .wrap { padding: 0 12px !important; }
  .page-header__title { font-size: 20px; }
  .title { font-size: 18px; }
}
