/* ==========================================================================
   全域設定
   ========================================================================== */
body {
  font-family: sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  background-color: #d8d7dc;
}

/* ==========================================================================
   GSAP 初始隱藏防護 (防止重整時元素提早曝光閃爍 FOUC)
   ========================================================================== */
.banner-bg,
.logo-wrapper,
.introduction-wrapper,
.slogan-wrapper,
.quiet-realm-wrapper,
.architecture-wrapper,
.serene-text-wrapper,
.intro-divider,
.location-highlights-wrapper,
.feature-texture-wrapper,
.feature-lifestyle-wrapper,
.feature-vertical-wrapper,
.feature-item,
.silence-bg,
.silence-inner,
.ls-title-wrap,
.ls-vert-wrap,
.ls-main-img,
.ls-bg-text,
.ls-quote-wrap,
.ls-desc-wrap,
.ls-sv-side,
.ls-sv-figure {
  visibility: hidden;
  opacity: 0;
}

/* ==========================================================================
   Main Banner (等比例縮小鐵則)
   ========================================================================== */
.main-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #0d3870; /* 相近的湛藍底色，防止圖片載入空隙 */
}

/* 滿版背景圖撐起高度 */
.banner-bg {
  width: 100%;
  height: auto;
  display: block;
}

/* 內容容器覆蓋全螢幕 */
.banner-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* 避免擋住背後可能的點擊 (目前雖無，但為首頁習慣) */
}

/* --- 定位各個元素 --- */

/* 左上角 Logo */
.logo-wrapper {
  position: absolute;
  top: 3.5%;
  left: 3.5%;
  width: 10%;
}

/* 中左 介紹文字 (巨蛋 x 微笑公園) */
.introduction-wrapper {
  position: absolute;
  top: 14%;
  left: 8%;
  width: 33%; /* 佔據左側約1/3寬度 */
}

/* 左下角 建築物主視覺 */
.architecture-wrapper {
  position: absolute;
  bottom: 0%; /* 貼齊底部 */
  left: 0%; /* 貼齊左側 */
  width: 100%; /* 恢復電腦版適中比例 */
  z-index: 2;
}

/* 右上 Slogan (正市心 最安靜) */
.slogan-wrapper {
  position: absolute;
  top: 14%;
  right: 10%;
  width: 25%;
}

/* 右下 專案名稱 (靜の界) */
.quiet-realm-wrapper {
  position: absolute;
  bottom: 8%;
  right: 10%;
  width: 18%;
}

/* 統一所有的 img 屬性，確保完美等比例縮放 */
.logo-wrapper img,
.introduction-wrapper img,
.slogan-wrapper img,
.quiet-realm-wrapper img,
.architecture-wrapper img,
.serene-text-wrapper img,
.location-highlights-wrapper img,
.feature-texture-wrapper img,
.feature-lifestyle-wrapper img,
.feature-vertical-wrapper img,
.feature-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   Feature Section (等比例縮放鐵則 - 不規則疊圖)
   ========================================================================== */
.feature-section {
  width: 100%;
  padding: 8% 0;
  position: relative;
  overflow: hidden;
}

.feature-container {
  position: relative;
  width: 100%;
  /* 移除 max-width，以便讓抽象圖貼齊視窗邊緣 */
  height: 90vw; /* 基礎比例高度 */
}

/* 左上：抽象圖 (貼齊左邊視窗邊框，並依需求下移) */
.feature-texture-wrapper {
  position: absolute;
  top: 10%;
  left: 0;
  width: 50%;
  z-index: 1;
}

/* 右側：實景圖 */
.feature-lifestyle-wrapper {
  position: absolute;
  top: 6%;
  left: 50%;
  width: 45%;
  z-index: 2;
}

/* 最右側：垂直標語 (局部重疊實景圖，還原設計稿感) */
.feature-vertical-wrapper {
  position: absolute;
  top: 15%;
  left: 92%;
  width: 5%;
  z-index: 3;
}

/* 左下：三段文字資訊 */
.feature-content-list {
  position: absolute;
  top: 55%;
  left: 10%;
  width: 30%;
  z-index: 3;
  display: flex;
  flex-direction: column;
}

.feature-item {
  width: 100%;
  margin-bottom: 25%; /* 增加間距至 25% */
}

.feature-item:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Intro Section (等比例縮放鐵則)
   ========================================================================== */
.intro-section {
  width: 100%;
  padding: 12% 0 0; /* 使用 % 確保垂直間距隨寬度縮放 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-container {
  position: relative;
  width: 100%;
  max-width: 1200px; /* 限制最大寬度以維持電腦版美感，但內縮仍然依比例 */
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.serene-text-wrapper {
  width: 100%; /* 電腦版佔比 */
  margin-bottom: 2%;
}

.location-highlights-wrapper {
  width: 60%;
  margin-top: 2%;
}

/* ==========================================================================
   Silence Section (設計感轉場區塊 - 等比例縮放)
   ========================================================================== */
.silence-section {
  padding: 12% 0 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.silence-bg-wrapper {
  width: 100%;
}

.silence-bg {
  width: 100%;
  height: auto;
  display: block;
}

.silence-content {
  position: absolute;
  top: 6%; /* 下調位置，修正原本過高的問題，並對齊曲線重心 */
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.silence-inner {
  width: 100%; /* 依使用者要求設為滿版 */
  text-align: center;
  z-index: 2;
}

.silence-logo-wrapper {
  width: 100%;
  margin: 0 auto;
}

/* --- 斷點微調 (RWD 鐵則：嚴格遵守等比例縮放，避免元素重疊) --- */

@media (max-width: 1024px) {
  .logo-wrapper {
    width: 12%;
  }
  .introduction-wrapper {
    width: 33%; /* 保持原本比例，不刻意放大太多以免碰撞 */
    top: 12%;
  }
  .slogan-wrapper {
    width: 25%;
    top: 12%;
  }
  .quiet-realm-wrapper {
    width: 18%;
    bottom: 6%;
  }
  .architecture-wrapper {
    width: 65%; /* 平板版拉大比例 */
  }

  .serene-text-wrapper {
    width: 70%;
  }
  .location-highlights-wrapper {
    width: 50%;
  }

  /* Feature Section RWD (Tablet) - 緊湊拼圖還原 */

  .feature-container {
    height: 140vw;
  }
  .feature-texture-wrapper {
    width: 45%;
    top: 12%;
    aspect-ratio: 4 / 5; /* 拼圖區質地圖佔位 */
  }
  .feature-lifestyle-wrapper {
    width: 50%;
    left: 45%;
    top: 8%;
    aspect-ratio: 3 / 4; /* 拼圖區實景圖佔位 */
  }
  .feature-vertical-wrapper {
    width: 6%;
    left: 92%;
    top: 14%;
  }
  .feature-content-list {
    width: 35%;
    left: 5%;
    top: 45%;
  }

  .silence-section {
    padding: 0;
  }

  /* Silence Section Tablet */
  .silence-inner {
    width: 100%;
    padding: 0 4%;
  }
}

@media (max-width: 768px) {
  .logo-wrapper {
    width: 15%;
    top: 4%;
    left: 4%;
  }
  .introduction-wrapper {
    width: 36%;
    top: 13%;
    left: 6%;
  }
  .slogan-wrapper {
    width: 25%;
    top: 13%;
    right: 8%;
  }
  .quiet-realm-wrapper {
    width: 18%;
    bottom: 6%;
    right: 8%;
  }
  .architecture-wrapper {
    width: 90%; /* 手機版大幅放大以凸顯建築氣勢 */
  }

  .serene-text-wrapper {
    width: 85%;
  }
  .location-highlights-wrapper {
    width: 70%;
  }
  .intro-divider {
    height: 30px;
  }

  /* Feature Section Mobile (緊湊拼圖還原) */
  .feature-section {
    padding-bottom: 2%; /* 縮小手機版區塊間隙 */
  }
  .feature-container {
    height: 155vw; /* 依設計稿截圖比例調整 */
    max-height: none;
  }
  .feature-texture-wrapper {
    width: 45%;
    top: 13%;
    left: 0;
    aspect-ratio: 4 / 5;
  }
  .feature-lifestyle-wrapper {
    width: 50%;
    top: 10%;
    left: 45%;
    aspect-ratio: 3 / 4;
  }
  .feature-vertical-wrapper {
    display: block; /* 手機版還原垂直標語 */
    left: 92%;
    top: 15%;
    width: 6%;
  }
  .feature-content-list {
    width: 38%;
    left: 3%;
    top: 45%; /* 定位於抽象圖正下方，實景圖左邊 */
  }
  .feature-item {
    margin-bottom: 25%; /* 維持 Desktop 開闊間距感 */
  }

  /* Silence Section Mobile */
  .silence-inner {
    width: 80%; /* 縮小行動版比例，增加留白呼吸感 */
  }
  .silence-logo-wrapper {
    width: 80%;
    margin-bottom: 0;
  }
}

/* ==========================================================================
   Lifestyle Collage Section (生活風格區塊 - 佈局型類別)
   ========================================================================== */
.ls-collage-section {
  background-color: #f6f6f6;
  padding: 10% 0 15%;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ls-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  padding: 0 8%;
}

/* 頂部標頭 */
.ls-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8%;
}

.ls-title-wrap {
  width: 32%; /* 左側標語寬度 */
}

.ls-vert-wrap {
  width: 3.5%; /* 右側垂直文字寬度 */
  margin-right: -1%;
}

.ls-vert-wrap img,
.ls-title-wrap img,
.ls-bg-text img,
.ls-main-img img,
.ls-quote-wrap img,
.ls-desc-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* 核心視覺區 */
.ls-visual-box {
  position: relative;
  width: 100%;
  margin-bottom: 6%;
}

.ls-main-img {
  position: relative;
  width: 100%;
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  aspect-ratio: 16 / 9; /* 生活風格主圖佔位 */
  background-color: #eee;
}

.ls-bg-text {
  position: absolute;
  bottom: -27%; /* 修正為更深程度的重疊 (約1/3字高) */
  left: 50%;
  transform: translateX(-50%);
  width: 102%; /* 稍微寬於照片，與設計稿邊緣對位感一致 */
  z-index: 1;
  pointer-events: none;
}

/* 底部文字區 */
.ls-footer {
  position: relative;
  width: 100%;
  padding-top: 25%;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 改為左對齊 */
  text-align: left;
}

.ls-quote-wrap {
  width: 70%; /* 稍微加寬 */
  margin-bottom: 4%;
}

.ls-desc-wrap {
  width: 100%; /* 依要求設為 100% */
}

.ls-desc-small {
  width: 65%; /* 單獨調小此張圖的寬度 */
}

/* --- 斷點微調 (RWD 鐵則) --- */

@media (max-width: 1024px) {
  .ls-container {
    padding: 0 6%;
  }
  .ls-title-wrap {
    width: 45%;
  }
  .ls-quote-wrap {
    width: 85%;
  }
  .ls-desc-wrap {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .ls-collage-section {
    padding: 15% 0 25%;
  }
  .ls-header {
    margin-bottom: 8%; /* 縮小間距，使標頭更凝聚 */
  }
  .ls-title-wrap {
    width: 50%; /* 從原本 65% 調小 */
  }
  .ls-vert-wrap {
    width: 7%; /* 從原本 10% 調小 */
  }
  .ls-main-img {
    width: 100%;
  }
  .ls-footer {
    padding-top: 20%;
  }
  .ls-quote-wrap {
    width: 95%;
  }
  .ls-desc-wrap {
    width: 100%;
  }
  .ls-desc-small {
    width: 70%; /* 單獨調小此張圖的寬度 */
  }
}

/* ==========================================================================
   Side Visual Section (側邊標語實景佈局 - 通用型)
   ========================================================================== */
.ls-side-visual-section {
  background-color: #f6f6f6;
  padding: 10% 0;
  width: 100%;
}

.ls-sv-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* 左側飾條容器 */
.ls-sv-side {
  width: 4%; /* 依設計稿視覺比例 */
  position: sticky;
  top: 15%;
}

.ls-sv-side img {
  width: 100%;
  height: auto;
  display: block;
}

/* 右側主實景圖容器 */
.ls-sv-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.ls-sv-figure {
  width: 82%;
  background-color: #eee;
}

/* --- Side Visual RWD --- */

@media (max-width: 1024px) {
  .ls-sv-container {
    padding: 0 4%;
  }
  .ls-sv-side {
    width: 7%; /* 配合桌面版 Slim 感，從 15% 調小 */
  }
  .ls-sv-figure {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .ls-side-visual-section {
    padding: 12% 0; /* 略微縮減上下內距 */
  }
  .ls-sv-container {
    flex-direction: row;
    padding: 0 4%;
    align-items: center; /* 垂直居中，確保飾條與照片中心點對齊 */
  }
  .ls-sv-side {
    width: 5%; /* 精確計算：5% * 17.5 比例正好契合照片高度 */
    margin-right: 3%;
    position: relative;
    top: 0;
  }
  .ls-sv-figure {
    width: 90%;
  }
}

/* ==========================================================================
   Contact Section (聯絡預約區塊)
   ========================================================================== */
.contact-section {
  position: relative;
  width: 100%;
  padding: 12% 0 10%; /* 增加頂部內距，讓背景圖的「天空/高處」能顯現更多 */
  background: #022a4b url("../images/FormBG.jpg") center bottom / cover
    no-repeat;
  color: #fff;
  overflow: hidden;
}

.contact-container {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.contact-header {
  width: 100%;
  margin-bottom: 50px;
  text-align: center;
}

.contact-header img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* Form Styles */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  width: 100%;
}

/* 統一間距由 .booking-form 的 gap 控制 */
/* Input Styles */
.booking-form input[type="text"],
.booking-form input[type="tel"],
.booking-form textarea,
.booking-form select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05); /* 半透明 Ghost 風格 */
  border: 1px solid rgba(255, 255, 255, 0.6); /* 更細緻的白線 */
  padding: 12px 18px;
  color: #fff;
  font-size: 1.1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  border-radius: 0;
}

.booking-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M1 4l5 5 5-5' stroke='white' fill='none' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
}

.booking-form select option {
  background: #022a4b;
  color: #fff;
}

.booking-form textarea {
  height: 100px;
  resize: none;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
}

/* Radio & Checkbox Custom Styles */
.radio-group {
  display: flex;
  gap: 25px;
}

.radio-container,
.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 32px;
  cursor: pointer;
  font-size: 1.05rem;
  -webkit-user-select: none;
  user-select: none;
  color: #fff;
}

.radio-container input,
.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  border: 1px solid #fff; /* 回歸設計稿的 1px 純白細線 */
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.radio-container input:checked ~ .checkmark:after,
.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

/* 打勾符號 (精確對位版) */
.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 性別單選勾選符號 (改為與複選框一致的 Checkmark，避免方形填充過重) */
.radio-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Select Row Specific */
.select-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.select-row label {
  white-space: nowrap;
  font-size: 1.1rem;
}

/* Footer Info (設計稿高還原版) */
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center; /* 核心居中 */
  margin: 15px 0 20px;
}

.privacy-wrap {
  position: relative; /* 建立絕對定位錨點 */
  font-size: 0.9rem; /* 從 1rem 微調 */
  letter-spacing: 0.02rem;
  line-height: 1.2;
  margin-bottom: 0px !important;
}

.privacy-wrap a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px; /* 增加底線間距，更具質感 */
}

.phone-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0; /* 避免被擠壓 */
}

.phone-label {
  font-size: 0.8rem; /* 從 0.85rem 微調 */
  padding: 2px 6px; /* 更緊湊的邊框 */
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.phone-number {
  font-size: 1.15rem; /* 從 1.25rem 微調 */
  color: #fff;
  text-decoration: none;
  font-weight: 800; /* 更粗壯的電話號碼 */
  letter-spacing: 0.02rem;
  line-height: 1;
  white-space: nowrap; /* 禁止換行 */
}

/* Submit Button */
.submit-wrap {
  margin-top: 20px;
}

.submit-btn {
  width: 100%;
  background: #003a6c;
  color: #fff;
  border: none;
  padding: 18px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease;
  letter-spacing: 0.3rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.submit-btn:hover {
  background: #004d8f;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.privacy-text {
  padding-right: 10px;
}

/* --- Validation Styles --- */
.input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 25px; /* 為錯誤訊息預留空間 */
}

.input-wrapper.radio-row {
  margin-bottom: 12px;
}

.input-wrapper.optional-field {
  margin-bottom: 5px; /* 選填欄位不需要預留錯誤訊息空間 */
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease !important;
}

.error-message {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  font-size: 0.85rem;
  color: #ff4d4d;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 5;
  pointer-events: none;
}

/* 複選框錯誤訊息特殊處理 */
.form-footer .error-message {
  position: absolute; /* 不佔用高度，避免破壞 align-items: center 的基準線 */
  top: 100%;
  left: 0;
  margin-top: 5px;
}

.validation-icon {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.input-wrapper.select-row .validation-icon,
.form-row.split .input-wrapper .validation-icon {
  right: 40px;
}

.form-row.split {
  display: flex;
  gap: 15px;
}

.form-row.split .input-wrapper {
  flex: 1;
}

/* Invalid State - 錯誤狀態 */
.input-wrapper.is-invalid input,
.input-wrapper.is-invalid select,
.input-wrapper.is-invalid textarea {
  border-color: #ff4d4d !important;
  background: rgba(255, 77, 77, 0.05);
}

.input-wrapper.is-invalid .error-message,
.input-wrapper.is-invalid .validation-icon {
  opacity: 1;
  visibility: visible;
}

.input-wrapper.is-invalid .validation-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff4d4d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
}

/* Valid State - 正確狀態 */
.input-wrapper.is-valid input,
.input-wrapper.is-valid select,
.input-wrapper.is-valid textarea {
  border-color: #5cb85c !important;
}

.input-wrapper.is-valid .validation-icon {
  opacity: 1;
  visibility: visible;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235cb85c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
}

/* 隱私條款邊框校正 */
.input-wrapper.privacy-wrap.is-invalid .checkmark {
  border-color: #ff4d4d;
}
.input-wrapper.privacy-wrap.is-valid .checkmark {
  border-color: #5cb85c;
}

.hidden-honeypot {
  display: none;
}

/* --- Contact RWD --- */
@media (max-width: 768px) {
  .contact-section {
    padding: 20% 5%;
  }
  .form-row.split {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .radio-group {
    padding: 10px 0 20px 5px;
  }
  .select-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .privacy-wrap .checkbox-container {
    flex-direction: column;
    align-items: flex-start; /* 手機版改為靠左對齊，上下疊放 */
    gap: 4px;
  }
  .form-footer {
    gap: 10px; /* 縮小間距以適應手機寬度 */
  }
  .phone-number {
    font-size: 1.1rem; /* 手機版同步縮小 */
  }
}

/* ==========================================================================
   Privacy Modal Styles
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #fff;
  width: 90%;
  max-width: 800px;
  padding: 40px;
  border-radius: 2px;
  position: relative;
  transform: scale(0.85) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #022a4b;
}

.modal-title {
  color: #022a4b;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  letter-spacing: 2px;
}

.modal-body {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 15px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}

.modal-body p {
  margin-bottom: 15px;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
  background-color: #022a4b;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-track {
  background-color: #f0f0f0;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 30px 20px;
  }
  .modal-title {
    font-size: 1.4rem;
  }
  .modal-body {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   Bottom Navigation Bar (Fixed Quick Actions)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  background: rgba(13, 56, 112, 0.75); /* 調低飽和度與透明度 */
  -webkit-backdrop-filter: blur(15px); /* 增強毛玻璃 */
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.25);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 5px;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  position: relative;
}

.bottom-nav-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.bottom-nav-item span {
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 1px;
}

.bottom-nav-item svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (hover: hover) {
  .bottom-nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
  }
}

/* 考慮 RWD：PC 端懸浮靠中 */
@media (min-width: 1200px) {
  .bottom-nav {
    width: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 25px;
    border-radius: 50px;
    padding: 0; /* 移除內距，讓 hover 能填滿圓角 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden; /* 關鍵：裁切子元素的 hover 背景 */
  }
  .bottom-nav-item {
    flex: none;
    padding: 12px 35px;
  }
  /* 為頭尾增加內距，補償移除 parent padding 的視覺感 */
  .bottom-nav-item:first-child {
    padding-left: 45px;
  }
  .bottom-nav-item:last-child {
    padding-right: 45px;
  }
}

/* 底部預留空間 (避免擋住內容) */
@media (max-width: 768px) {
  body {
    padding-bottom: 70px; /* 與導航欄高度對應 */
  }
}
