body{
  background: var(--color-beige);
}
.hero {
  display: flex;
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
    padding-top: 30px; 
}
/* ── 左：文字區 ── */
.hero-left {
  flex: 0 0 42%;
  background: var(--color-beige-lt);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 64px 56px;
  gap: 0;
  position: relative;
  text-align: center;
}

.hero-script {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--color-text-md);
  line-height: 1.3;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.hero-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--color-text-lt);
  letter-spacing: 0.06em;
  margin-bottom: 48px;
}

.hero-tags span {
  padding: 0 10px;
  border-left: 1px solid var(--color-line);
}

.hero-tags span:first-child {
  padding-left: 0;
  border-left: none;
}

.hero-ring {
  width: 140px;
  display: block;
  margin: 0 auto;
}
/* ── 右：輪播圖 ── */
.hero-right {
  flex: 1 1 0;
  position: relative;
  overflow: hidden;
}
 
/* 每張圖片 */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}
 
.slide.active {
  opacity: 1;
  z-index: 1;
}
 
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
 
/* 輪播指示點 */
.slide-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
 
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition:transform 0.3s;
}
 
.dot.active {
  background: rgba(255,255,255,0.95);
  transform: scale(1.3);
}

/* ── 記錄下值得紀念的好日子── */
.wedding-note {
  background: var(--color-beige-lt);
  padding: 72px 80px 80px;
  border-top: 1px solid #E6E1DB;
  border-bottom: 1px solid #E6E1DB;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
 
/* ── Quote ── */
.wedding-quote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-align: center;
}
 
/* ── Checklist ── */
.wedding-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: center;
}
 
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text-md);
  letter-spacing: 0.06em;
}
 
.check-item::before {
  content: '✓';
  font-size: 0.85rem;
  color: var(--color-text-md);
  flex-shrink: 0;
}

/* ══════════════════════════════
   GALLERY SECTION
══════════════════════════════ */
.gallery-section {
  background: var(--color-beige-lt);
  display: flex;
  align-items: stretch;
  padding: 48px 64px;
  gap: 48px;
  min-height: 560px;
}
 
/* ── 左：主圖 ── */
.gallery-featured {
  flex: 0 0 auto;
  width: 480px;
  height: 480px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
 
.featured-img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: opacity 0.4s ease;
}
 
.featured-img.fading {
  opacity: 0;
}
 
/* We got married 疊字 */
.featured-script {
  position: absolute;
  bottom: 60px;
  left: 24px;
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: rgba(255,255,255,0.82);
  pointer-events: none;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.15);
}
 
/* ── 右：縮圖區 ── */
.gallery-right {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
 
/* 左右箭頭 */
.gallery-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-left: 4px;
}
 
.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
 
.nav-btn:hover { opacity: 1; }
 
.nav-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
 
/* 縮圖捲動容器 */
.thumbs-wrap {
  flex: 1 1 0;
  position: relative;
  overflow: hidden;
}
 
/* 右側淡出 */
.thumbs-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 100%;
  background: linear-gradient(to right, transparent, var(--color-beige-lt));
  pointer-events: none;
  z-index: 2;
}
 
.thumbs-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  cursor: grab;
  padding-top: 100px;
}
 
.thumbs-track:active { cursor: grabbing; }
.thumbs-track::-webkit-scrollbar { height: 3px; }
.thumbs-track::-webkit-scrollbar-track { background: transparent; }
.thumbs-track::-webkit-scrollbar-thumb { background: var(--color-line); border-radius: 2px; }
 
/* 單張縮圖 */
.thumb {
  flex-shrink: 0;
  width: 200px;
  height: 280px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
 
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
 
/* 未選中：稍微淡化 */
.thumb {
  opacity: 0.72;
  filter: saturate(0.7);
}
 
.thumb:hover {
  opacity: 0.9;
  filter: saturate(0.9);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
 
/* 選中 */
.thumb.active {
  opacity: 1;
  filter: saturate(1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
}
 
.thumb.active img {
  transform: scale(1.02);
}

/* ── 登記寫真方案 ── */
.pricing-section {
  padding: 30px 80px 72px;
  background: var(--color-beige-lt);
}
 
/* 頂部標題 */
.pricing-heading {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-md);
  letter-spacing: 0.06em;
  margin-bottom: 40px;
}
 
/* 兩欄 */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}
 
/* ── 卡片 ── */
.pricing-card {
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: 48px 36px 52px;
  position: relative;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}
 
/* 標題浮在邊框上 */
.card-label {
  position: absolute;
  top: -0.75em;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-beige-lt);
  padding: 0 16px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
 
/* 主要內容文字 */
.card-main {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.9;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
 
/* 價格 */
.card-price {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
 
/* 說明小字 */
.card-note {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--color-text-lt);
  line-height: 1.9;
  letter-spacing: 0.04em;
}

/* ── CTA Banner ── */
.cta-banner {
  position: relative;
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
 
/* 背景圖 */
.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 60%;
  transform: scale(1.3);
}
 
 
/* 左側漸層遮罩*/
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(244,243,240,0.72) 0%,
    rgba(244,243,240,0.45) 50%,
    rgba(244,243,240,0.0) 100%
  );
  z-index: 1;
}
 
/* 文字內容 */
.cta-content {
  position: relative;
  z-index: 2;
  padding: 13px 70px;
  margin-left: 140px; 
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 900px;
}
 
.cta-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 8px;
}
 
.cta-desc {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.8;
}
 
/* LINE 按鈕 */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  align-self:flex-start;
  background:#b8a898;
  color:white;
  padding:12px 42px;
  border-radius:50px;
  font-size:14px;
  letter-spacing:.18em;
  transition:.25s;
}


.cta-btn:hover {
  background:#a8998a;
  transform:translateY(-1px);
}

.page-end {
  text-align: center;
  font-size: 12px;
  color: #b5aca4;
  padding-bottom: 10px;
}
/* ══════════════════════════════
   RWD — 平板 (max-width: 1024px)
══════════════════════════════ */
@media (max-width: 1024px) {
 
  /* ── Hero ── */
  .hero {
    flex-direction: column;
    min-height: auto;
    padding-top: 60px;
  }
 
  .hero-left {
    flex: none;
    width: 100%;
    padding: 56px 40px 48px;
  }
 
  .hero-script {
    font-size: 2.4rem;
  }
 
  .hero-right {
    order: -1;
    width: 100%;
    height: 60vw;
    min-height: 340px;
    flex: none;
  }
 
  /* ── Wedding Note ── */
  .wedding-note {
    padding: 56px 48px 64px;
    gap: 28px;
  }
 
  .wedding-quote {
    font-size: 1.3rem;
  }
 
  /* ── Gallery ── */
  .gallery-section {
    flex-direction: column;
    padding: 40px 40px;
    gap: 32px;
    min-height: auto;
  }
 
  .gallery-featured {
    width: 100%;
    height: 360px;
    flex: none;
    border-radius: 4px;
    overflow: hidden;
  }
 
  .featured-img {
    width: 100%;
    height: 360px;
    min-height: unset;
    object-fit: cover;
    object-position: center top;
    display: block;
  }
 
  .gallery-right {
    width: 100%;
  }

.gallery-nav{
  object-fit: cover;
  object-position:100%;
  transform: scale(1.1);
  transform-origin: center top;
}
 
.thumbs-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  flex: none;
  height: 180px;
}

.thumbs-track {
  display: flex;
  flex-direction: row;
  width: max-content;
  gap: 12px;
  padding-top: 0;
}

.thumb {
  flex: 0 0 auto;
  width: 160px;
  height: 160px;
}
  /* ── Pricing ── */
  .pricing-section {
    padding: 30px 48px 64px;
  }
 
  .pricing-grid {
    gap: 20px;
  }
 
  .pricing-card {
    padding: 48px 24px 44px;
  }
 
  /* ── CTA ── */
  .cta-banner {
    min-height: 260px;
  }
 
  .cta-content {
    margin-left: 48px;
    padding: 24px 40px;
  }
 
  .cta-overlay {
    background: linear-gradient(
      to right,
      rgba(244,243,240,0.85) 0%,
      rgba(244,243,240,0.55) 60%,
      rgba(244,243,240,0.0) 100%
    );
  }
 
  .cta-title {
    font-size: 1.5rem;
  }
 
  .cta-desc {
    font-size: 14px;
  }
}
 
 
/* ══════════════════════════════
   RWD — 手機 (max-width: 640px)
══════════════════════════════ */
@media (max-width: 640px) {
 
  /* ── Hero ── */
  .hero {
    flex-direction: column;
    padding-top: 60px;
    min-height: auto;
  }
 
  /* 圖片在上，文字在下 */
  .hero-right {
    order: -1;
  }
 
  .hero-left {
    flex: none;
    width: 100%;
    padding: 48px 24px 40px;
  }
 
  .hero-script {
    font-size: 2rem;
    margin-bottom: 14px;
  }
 
  .hero-tags {
    font-size: 0.75rem;
    margin-bottom: 36px;
    letter-spacing: 0.04em;
  }
 
  .hero-tags span {
    padding: 0 7px;
  }
 
  .hero-ring {
    width: 110px;
  }
 
  .hero-right {
    width: 100%;
    height: 75vw;
    min-height: 280px;
    flex: none;
  }
 
  /* ── Wedding Note ── */
  .wedding-note {
    padding: 48px 24px 52px;
    gap: 24px;
  }
 
  .wedding-quote {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    line-height: 1.7;
  }
 
  .check-item {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
  }
 
  /* ── Gallery ── */
  .gallery-section {
    flex-direction: column;
    padding: 32px 20px;
    gap: 24px;
    min-height: auto;
  }
 
  .gallery-featured {
    width: 100%;
    height: 360px;
    flex: none;
    border-radius: 4px;
    overflow: hidden;
  }
 
  .featured-img {
    width: 100%;
    height: 360px;
    min-height: unset;
    object-fit: cover;
    object-position: center top;
    display: block;
  }
 
  .featured-script {
    font-size: 1.7rem;
    bottom: 40px;
    left: 16px;
  }
 
  .gallery-right {
    width: 100%;
    gap: 16px;
  }
 
  .gallery-nav {
    gap: 20px;
  }
 
  /* 主圖確保顯示 */
  .gallery-featured {
    display: block;
  }
 
  .thumbs-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    flex: none;
    height: 180px;
  }
  
  .thumbs-track {
    display: flex;
    flex-direction: row;
    width: max-content;
    gap: 12px;
    padding-top: 0;
  }
  
  .thumb {
    flex: 0 0 auto;
    width: 160px;
    height: 160px;
  }

  /* ── Pricing ── */
  .pricing-section {
    padding: 24px 20px 52px;
  }
 
  .pricing-heading {
    font-size: 17px;
    margin-bottom: 32px;
  }
 
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 100%;
  }
 
  .pricing-card {
    padding: 48px 24px 44px;
  }
 
  .card-label {
    font-size: 16px;
  }
 
  .card-main {
    font-size: 0.95rem;
  }
 
  .card-price {
    font-size: 1.4rem;
  }
 
  /* ── CTA Banner ── */
  .cta-banner {
    min-height: auto;
    align-items: flex-end;
  }
 
  .cta-bg img {
    object-position: center top;
    transform: scale(1.1);
  }
 
  /* 手機改為從上到下的遮罩，讓文字在圖片下方清晰顯示 */
  .cta-overlay {
    background: linear-gradient(
      to bottom,
      rgba(244,243,240,0.0) 0%,
      rgba(244,243,240,0.6) 45%,
      rgba(244,243,240,0.95) 75%,
      rgba(244,243,240,1.0) 100%
    );
  }
 
  .cta-content {
    margin-left: 0;
    padding: 180px 24px 40px;
    max-width: 100%;
    align-items: flex-start;
  }
 
  .cta-title {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }
 
  .cta-desc {
    font-size: 13px;
    letter-spacing: 0.04em;
    line-height: 1.9;
  }
 
  .cta-btn {
    padding: 11px 32px;
    font-size: 13px;
    margin-top: 16px;
  }
}
