/* ==========================================================================
   💎 SAiGEN 全站高奢靜奢風（Quiet Luxury）完整 CSS 系統
   ========================================================================== */
:root {
  --bs-body-font-family: 'Inter', sans-serif;
  --bs-body-bg: #f7f9fb;
  --bs-body-color: #191c1e;
  --color-gold-custom: #f7d5a4;
  --color-navy-dark: #0f1c36;
}

/* 1. 全域與根元素防護：強制封鎖水平溢出，徹底根除手機版右側白邊與捲動異常 */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: var(--bs-body-font-family);
  -webkit-font-smoothing: antialiased;
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* 靜奢藍金色彩常數 */
.bg-secondary {
  background-color: #725b38 !important;
}
.text-secondary {
  color: #725b38 !important;
}
.text-xxs {
  font-size: 0.7rem;
}

/* ==========================================================================
   ✨ 頂部沉浸式 Banner 區塊與互動設定
   ========================================================================== */
.about-banner-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-color: var(--color-navy-dark);
  margin-top: 0 !important;
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  overflow: hidden;
}

@media (min-width: 768px) {
  .about-banner-section {
    min-height: 520px;
  }
}

.banner-bg-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.banner-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(1.04) contrast(108%) saturate(95%) hue-rotate(-5deg);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 28, 54, 0.9) 0%,
    rgba(15, 28, 54, 0.72) 45%,
    rgba(15, 28, 54, 0.35) 75%,
    rgba(15, 28, 54, 0.1) 100%
  );
  pointer-events: none;
}

/* ==========================================================================
   ✨ 森林底圖專屬濾鏡與底部 CTA 系統（含完美 Zoom In / Zoom Out 互動）
   ========================================================================== */
.advisory-zoom-section {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.advisory-bg-container {
  position: absolute;
  inset: 0;
  overflow: hidden !important;
  width: 100%;
  height: 100%;
}

.static-navy-filter-bg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1);
  filter: brightness(0.88) contrast(108%) saturate(75%) hue-rotate(-8deg);
  -webkit-filter: brightness(0.88) contrast(108%) saturate(75%) hue-rotate(-8deg);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), filter 1.4s ease;
  will-change: transform;
}

.advisory-zoom-section:hover .static-navy-filter-bg {
  transform: scale(1.07);
  filter: brightness(0.95) contrast(106%) saturate(85%) hue-rotate(-8deg);
}

/* 底部預約健檢 CTA 按鈕系統 */
.advisory-cta-btn {
  background-color: #f7d5a4 !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  color: #0f1c36 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.advisory-cta-btn:hover {
  background-color: #ffffff !important;
  border-color: #f7d5a4 !important;
  color: #0f1c36 !important;
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 2.5rem rgba(247, 213, 164, 0.5), 0 4px 15px rgba(0, 0, 0, 0.5);
}

.advisory-cta-btn .advisory-arrow {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.advisory-cta-btn:hover .advisory-arrow {
  transform: translateX(5px);
}

/* ==========================================================================
   ✨ 服務項目：大器留白、呼吸感與視覺層級優化系統
   ========================================================================== */
.service-row-item {
  padding-top: 5.5rem !important;
  padding-bottom: 5.5rem !important;
}

.service-title {
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.service-desc {
  line-height: 2.1 !important;
  letter-spacing: 0.01em;
  color: #383f45 !important;
}

.static-glass-badge {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(114, 91, 56, 0.15);
  color: #221610 !important;
  font-weight: 500;
  font-size: 0.8rem;
  box-shadow: 0 2px 6px rgba(15, 28, 54, 0.02);
  transition: none !important;
  transform: none !important;
}

.service-img-frame {
  height: 420px !important;
  border: 1px solid rgba(114, 91, 56, 0.2);
  box-shadow: 0 1rem 3rem rgba(15, 28, 54, 0.08);
  background-color: #ffffff;
}

/* ==========================================================================
   💎 感謝頁面專屬：區塊留白、卡片設計與雜誌風引言系統
   ========================================================================== */
.thankyou-hero-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 6.5rem !important;
  padding-bottom: 6.5rem !important;
  background-color: var(--color-navy-dark);
}

.thankyou-spaced-section {
  padding-top: 6.5rem !important;
  padding-bottom: 6.5rem !important;
}

@media (min-width: 992px) {
  .thankyou-hero-section {
    padding-top: 8.5rem !important;
    padding-bottom: 8.5rem !important;
  }
  
.thankyou-spaced-section {
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
  }
}
.thankyou-spaced-section .text-center.mb-5,
.thankyou-spaced-section .text-center.mb-lg-6 {
  margin-bottom: 4rem !important;
}
.thankyou-hero-desc {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: #ffffff !important;
}

/* 步驟卡片設計 (Thank You Step Card) */
.thankyou-step-card {
  background: #ffffff;
  border: 1px solid rgba(114, 91, 56, 0.15);
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0.5rem 1.5rem rgba(50, 42, 38, 0.03);
  height: 100%;
}

.thankyou-step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 2.5rem rgba(114, 91, 56, 0.1);
  border-color: rgba(114, 91, 56, 0.35);
}

/* 雜誌風引言區塊專屬樣式 */
.thankyou-editorial-rule {
  width: 40px;
  height: 2px;
  background-color: var(--color-gold-custom, #f7d5a4);
  opacity: 0.85;
}

.thankyou-editorial-quote {
  font-size: 1.5rem;
  line-height: 1.8;
  letter-spacing: -0.01em;
  max-width: 720px;
}

@media (min-width: 992px) {
  .thankyou-editorial-quote {
    font-size: 1.75rem;
  }
}

/* 感謝頁高奢主按鈕：尊榮金色實心 */
.thankyou-editorial-btn-primary {
  background-color: #f7d5a4 !important;
  color: #0f1c36 !important;
  border: 1px solid #f7d5a4 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 240px;
}

.thankyou-editorial-btn-primary:hover {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #0f1c36 !important;
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 2.5rem rgba(247, 213, 164, 0.4), 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* 感謝頁高奢次按鈕：深色毛玻璃透光 */
.thankyou-editorial-btn-outline {
  background-color: rgba(15, 28, 54, 0.5) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 280px;
}

.thankyou-editorial-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.3), 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   📱 響應式優化 (Responsive Design)
   ========================================================================== */
@media (max-width: 991.98px) {
  .service-row-item .row {
    display: flex;
    flex-direction: column;
  }

  .service-row-item .col-lg-6:has(.service-img-frame) {
    order: 1 !important;
    margin-bottom: 1.5rem !important;
  }

  .service-row-item .col-lg-6:not(:has(.service-img-frame)) {
    order: 2 !important;
  }

  .service-row-item {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .service-img-frame {
    height: 280px !important;
  }
}

@media (max-width: 767.98px) {
  .thankyou-editorial-btn-primary,
  .thankyou-editorial-btn-outline {
    width: 100%;
    min-width: auto;
  }
}

/* 文字高反差陰影常數 */
.text-shadow-lg {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.9);
}

.text-shadow-md {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.9), 0 1px 5px rgba(0, 0, 0, 0.7);
}

/* Back to Top 按鈕系統 */
.btn-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: #0f1c36;
  color: #f7d5a4;
  border: 1px solid rgba(247, 213, 164, 0.3);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1040;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.btn-back-to-top:hover {
  background: #1a2f5a;
  transform: translateY(-3px);
}

.top-arrow-icon {
  width: 18px;
  height: 18px;
}

.top-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}