/**
 * 富高地產網站 - 全域樣式
 * 主色調：黃色 (#FFD700)
 * 設計風格：現代、簡潔、專業
 */

/* ==================== CSS 變數定義 ==================== */
:root {
  /* 主色調 - 黃色系 */
  --primary-color: #FFD700;      /* 金黃色 */
  --primary-dark: #E6C200;       /* 深金黃 */
  --primary-light: #FFED4E;      /* 淺金黃 */

  /* 輔助色 */
  --secondary-color: #333333;    /* 深灰色 */
  --accent-color: #00A6FF;       /* 藍色 */

  /* 背景色 */
  --bg-white: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-gray: #E9ECEF;

  /* 文字色 */
  --text-primary: #212529;
  --text-secondary: #6C757D;
  --text-white: #FFFFFF;

  /* 邊框色 */
  --border-color: #DEE2E6;

  /* 陰影 */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
  --shadow-yellow: 0 5px 20px rgba(255,215,0,0.3);
}

/* ==================== 全域樣式重置 ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==================== 導航列樣式 ==================== */
.main-header {
  background: #FFFFFF;
  border-bottom: 4px solid var(--primary-color);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 12px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color) !important;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.company-logo {
  height: 65px;
  width: auto;
  margin-right: 10px;
}

.navbar-nav .nav-link {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 10px 15px;
  margin: 0 3px;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
  white-space: nowrap;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.navbar-nav .nav-link:hover {
  color: var(--text-primary);
  background-color: #FFF9E6;
}

.navbar-nav .nav-link:hover::before {
  width: 70%;
}

.navbar-nav .nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
  background-color: #FFF4CC;
}

.navbar-nav .nav-link.active::before {
  width: 70%;
}

/* 聯絡按鈕 */
.contact-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-light);
  transition: all 0.3s ease;
}

.contact-btn img {
  width: 24px;
  height: 24px;
}

.contact-btn:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

/* ==================== 物業卡片樣式 ==================== */
.property-card {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  border: 2px solid transparent;
}

.property-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(255, 215, 0, 0.4);
  border-color: var(--primary-color);
}

.property-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.property-card-body {
  padding: 20px;
}

.property-type-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: var(--text-primary);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* 放售類型：綠色 badge */
.property-card.type-sale .property-type-badge {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* 出租類型：保持黃色 badge (預設樣式) */
.property-card.type-rent .property-type-badge {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.property-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.property-area {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.property-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 10px 0;
}

/* 放售類型：綠色價格 */
.property-card.type-sale .property-price {
  color: #28a745;
}

/* 出租類型：橙色價格 */
.property-card.type-rent .property-price {
  color: #ff8c00;
}

.property-ref {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==================== 輪播區塊樣式 ==================== */
.carousel-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
  letter-spacing: 2px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  border-radius: 10px;
}

/* Swiper 自訂樣式 */
.property-swiper {
  padding: 30px 0;
  overflow: visible !important;
  position: relative;
}

.property-swiper .swiper-wrapper {
  align-items: center;
  /* 不添加 padding，讓卡片自然排列 */
}

/* Swiper 滑塊樣式 - 固定寬度 */
.swiper-slide {
  flex-shrink: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
  transform: scale(1);
}

/* 響應式卡片寬度 */
@media (min-width: 1280px) {
  .swiper-slide {
    width: calc((100% - 100px) / 6) !important;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .swiper-slide {
    width: calc((100% - 80px) / 4) !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .swiper-slide {
    width: calc((100% - 60px) / 3) !important;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .swiper-slide {
    width: calc((100% - 30px) / 1) !important;
  }
}

@media (max-width: 575px) {
  .swiper-slide {
    width: calc(100% - 40px) !important;
  }
}

/* 確保卡片容器正確顯示 */
.property-card {
  width: 100%;
  height: 100%;
}

.swiper-button-prev,
.swiper-button-next {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 2px solid #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 100 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  position: absolute !important;
}

/* 調整箭頭位置：左箭頭在卡片1和卡片2之間，右箭頭在卡片5和卡片6之間 */
.swiper-button-prev {
  left: calc(16.666% - 22px) !important;
}

.swiper-button-next {
  right: calc(16.666% - 22px) !important;
}

.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 18px;
  font-weight: bold;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.6);
}

/* ==================== 成交記錄表格樣式 ==================== */
.transactions-section {
  padding: 60px 0;
  background-color: var(--bg-white);
}

.transactions-table {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.table {
  margin-bottom: 0;
}

.table thead {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: var(--text-primary);
}

.table thead th {
  font-weight: 700;
  border: none;
  padding: 18px 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.table tbody tr {
  transition: background-color 0.3s ease;
}

.table tbody tr:hover {
  background-color: var(--bg-light);
}

.table tbody td {
  padding: 12px 15px;
  vertical-align: middle;
}

/* 主頁成交記錄滾動容器 */
.transactions-table {
  position: relative;
}

.transactions-table > .table {
  margin-bottom: 0;
  table-layout: fixed;
  width: 100%;
}

.transactions-table > .table thead {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.transactions-table > .table thead th:nth-child(1) { width: 10%; }
.transactions-table > .table thead th:nth-child(2) { width: 35%; }
.transactions-table > .table thead th:nth-child(3) { width: 10%; }
.transactions-table > .table thead th:nth-child(4) { width: 15%; }
.transactions-table > .table thead th:nth-child(5) { width: 12%; }
.transactions-table > .table thead th:nth-child(6) { width: 18%; }

.transactions-scroll-container {
  max-height: 500px;
  overflow-y: auto;
  scroll-behavior: smooth;
  display: block;
}

.transactions-body-table {
  margin-bottom: 0;
  table-layout: fixed;
  width: 100%;
}

.transactions-body-table tbody {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.transactions-body-table tbody td:nth-child(1) { width: 10%; }
.transactions-body-table tbody td:nth-child(2) { width: 35%; }
.transactions-body-table tbody td:nth-child(3) { width: 10%; }
.transactions-body-table tbody td:nth-child(4) { width: 15%; }
.transactions-body-table tbody td:nth-child(5) { width: 12%; }
.transactions-body-table tbody td:nth-child(6) { width: 18%; }

.transactions-scroll-container::-webkit-scrollbar {
  width: 8px;
}

.transactions-scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.transactions-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 10px;
}

.transactions-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ==================== 頁尾樣式 ==================== */
.main-footer {
  background: linear-gradient(135deg, #FFDF00 0%, #FF8C00 100%);
  color: var(--text-primary);
  padding: 40px 0 20px;
  margin-top: 60px;
  box-shadow: 0 -4px 20px rgba(255, 223, 0, 0.3);
}

.footer-section {
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-title i {
  margin-right: 8px;
  color: var(--text-primary);
}

.footer-contact,
.footer-locations {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li,
.footer-locations li {
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--text-white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 2px solid rgba(0,0,0,0.1);
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

/* ==================== 按鈕樣式 ==================== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
  color: var(--text-primary);
  font-weight: 600;
  padding: 12px 36px;
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  letter-spacing: 1px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--text-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.5);
}

.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 12px 36px;
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  letter-spacing: 1px;
}

.btn-success:hover {
  background: linear-gradient(135deg, #218838 0%, #28a745 100%);
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(40, 167, 69, 0.5);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
  font-weight: 600;
  padding: 10px 30px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--text-primary);
}

/* ==================== 工具類 ==================== */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.section-padding {
  padding: 60px 0;
}

/* ==================== Modal 彈窗樣式 ==================== */
.modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: var(--text-primary);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom: none;
  padding: 20px 30px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.modal-body {
  padding: 30px;
}

.modal-detail-card,
.modal-gallery-card,
.modal-description-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 20px;
}

.modal-detail-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.modal-detail-table {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.modal-detail-table tbody tr {
  border-bottom: 1px solid var(--border-color);
}

.modal-detail-table tbody tr:last-child {
  border-bottom: none;
}

.modal-detail-table tbody td {
  padding: 12px 8px;
  vertical-align: middle;
}

.modal-detail-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  width: 40%;
}

.modal-detail-table tbody td:last-child {
  color: var(--text-primary);
}

.modal-detail-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* Modal 圖片畫廊 */
.modal-gallery-main-swiper {
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.modal-gallery-main-swiper .swiper-wrapper {
  display: flex;
  align-items: center;
}

.modal-gallery-main-swiper .swiper-slide {
  width: 100% !important;
  height: 400px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}

.modal-gallery-main-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-gallery-thumbs-swiper {
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.modal-gallery-thumbs-swiper .swiper-slide {
  width: 25%;
  height: 100%;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
}

.modal-gallery-thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--primary-color);
}

.modal-gallery-thumbs-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-description-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Modal 響應式 */
@media (max-width: 992px) {
  .modal-gallery-main-swiper .swiper-slide {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .modal-body {
    padding: 20px;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-title {
    font-size: 1.2rem;
  }

  .modal-gallery-main-swiper .swiper-slide {
    height: 250px;
  }

  .modal-gallery-thumbs-swiper {
    height: 60px;
  }

  /* 手機版縮圖調整 - 每個縮圖固定寬度 */
  .modal-gallery-thumbs-swiper .swiper-slide {
    width: 80px !important;
    flex-shrink: 0;
  }
}

/* ==================== 銀行估價頁面樣式 ==================== */
.page-header {
  background: linear-gradient(135deg, #FFDF00 0%, #FF8C00 100%);
  padding: 60px 0;
  text-align: center;
  margin-bottom: 60px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.page-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
}

.bank-valuation-section {
  padding: 60px 0;
}

/* 資訊卡片 */
.info-card {
  display: flex;
  align-items: flex-start;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-right: 20px;
  flex-shrink: 0;
}

.info-content h5 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.info-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* 銀行卡片 */
.bank-card {
  display: block;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bank-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(255, 165, 0, 0.2);
}

.bank-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.bank-card:hover::before {
  transform: scaleX(1);
}

.bank-logo-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 15px;
}

.bank-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bank-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.bank-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.bank-link-icon {
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* 溫馨提示卡片 */
.tips-card {
  background: linear-gradient(135deg, #FFF9E6 0%, #FFF4CC 100%);
  padding: 30px;
  border-radius: 16px;
  border-left: 5px solid var(--primary-color);
}

.tips-card h5 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.tips-card h5 i {
  color: var(--primary-color);
  margin-right: 10px;
}

.tips-card ul {
  margin: 0;
  padding-left: 20px;
}

.tips-card ul li {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

/* ==================== 按揭計算機樣式 ==================== */
.calculator-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.calculator-card:hover {
  box-shadow: 0 8px 24px rgba(255, 165, 0, 0.15);
}

.calculator-card h4,
.calculator-card h5 {
  color: var(--text-primary);
  font-weight: 600;
}

/* 首期比例快捷按鈕縮小 33% */
.calculator-card .btn-sm {
  font-size: 0.67rem;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
}

.result-card {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.result-highlight {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.result-stress-test {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 5px solid var(--primary-color);
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.result-icon {
  background: rgba(255, 255, 255, 0.3);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  flex-shrink: 0;
}

.result-icon-small {
  background: var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  flex-shrink: 0;
}

.result-content {
  flex: 1;
}

.result-label {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 5px;
  font-weight: 500;
  opacity: 0.95;
}

.result-value {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.result-label-dark {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.result-value-dark {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  margin: 5px 0;
}

.result-table {
  margin-bottom: 0;
}

.result-table td {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1rem;
}

.result-table tr:last-child td {
  border-bottom: none;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* ==================== 業主放盤表單樣式 ==================== */
.owner-listing-card {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.form-section-title {
  color: var(--text-primary);
  font-weight: 600;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary-color);
}

.form-label.required::after {
  content: " *";
  color: #dc3545;
  font-weight: bold;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.service-info-card {
  background: linear-gradient(135deg, #FFF9E6 0%, #FFF4CC 100%);
  padding: 25px;
  border-radius: 16px;
  border-left: 5px solid var(--primary-color);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  padding: 8px 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ==================== 搵心水盤樣式 ==================== */
.facilities-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@media (max-width: 576px) {
  .facilities-checkboxes {
    grid-template-columns: 1fr;
  }
}

.facilities-checkboxes .form-check {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin: 0;
}

.facilities-checkboxes .form-check:hover {
  background: #e9ecef;
  transform: translateX(3px);
}

.facilities-checkboxes .form-check-input {
  margin-top: 0;
  margin-right: 10px;
}

.facilities-checkboxes .form-check-label {
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
}

.price-range-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.price-range-group .form-control {
  flex: 1;
}

.price-range-separator {
  color: var(--text-secondary);
  font-weight: 500;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .price-range-group {
    flex-direction: column;
    gap: 10px;
  }

  .price-range-separator {
    display: none;
  }
}

/* ==================== 響應式設計 ==================== */

/* ==================== 漢堡選單樣式優化 ==================== */

/* 漢堡按鈕樣式 */
.navbar-toggler {
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.3s ease;
  background-color: var(--primary-color);
  min-width: 44px;
  min-height: 44px;
}

.navbar-toggler:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: scale(1.05);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(51, 51, 51, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 24px;
  height: 24px;
}

/* 展開選單樣式 */
@media (max-width: 991px) {
  .navbar-collapse {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF9E6 100%);
    border-radius: 12px;
    margin-top: 15px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
  }

  .navbar-nav {
    margin: 0 !important;
  }

  .navbar-nav .nav-link {
    font-size: 1.05rem;
    padding: 14px 20px;
    margin: 5px 0;
    border-radius: 8px;
    background-color: #FFFFFF;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .navbar-nav .nav-link:hover {
    background-color: #FFF4CC;
    border-left-color: var(--primary-color);
    padding-left: 25px;
  }

  .navbar-nav .nav-link.active {
    background-color: var(--primary-color);
    border-left-color: var(--primary-dark);
    font-weight: 700;
  }

  .navbar-nav .nav-link::before {
    display: none;
  }

  .contact-buttons {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--primary-color);
    justify-content: center;
    gap: 15px;
  }

  .contact-btn {
    width: 48px;
    height: 48px;
  }

  .contact-btn img {
    width: 28px;
    height: 28px;
  }
}

/* 導航欄響應式調整 */
@media (max-width: 1200px) {
  .navbar-nav .nav-link {
    font-size: 0.95rem;
    padding: 10px 12px;
    margin: 0 2px;
  }
}

@media (max-width: 992px) {
  .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 10px 10px;
    margin: 0 1px;
  }
}

@media (max-width: 768px) {
  /* 導航與標題 */
  .company-logo {
    height: 50px;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  /* 輪播優化 */
  .property-swiper {
    padding: 20px 10px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 40px !important;
    height: 40px !important;
  }

  .swiper-button-prev:after,
  .swiper-button-next:after {
    font-size: 18px;
  }

  /* 調整箭頭位置 - 手機版放在兩側 */
  .swiper-button-prev {
    left: 5px !important;
  }

  .swiper-button-next {
    right: 5px !important;
  }

  /* 卡片優化 */
  .property-card-body {
    padding: 15px;
  }

  .property-title {
    font-size: 1.1rem;
  }

  .property-price {
    font-size: 1.3rem;
  }

  .owner-listing-card {
    padding: 25px;
  }

  .result-value {
    font-size: 2rem;
  }

  .calculator-card,
  .result-card {
    padding: 20px;
  }

  .result-highlight {
    flex-direction: column;
    text-align: center;
  }

  /* 成交記錄表格 - 手機版卡片化 */
  .transactions-table {
    display: none; /* 隱藏桌面版表格 */
  }

  /* 顯示手機版卡片佈局（後續添加） */
  .transactions-mobile-cards {
    display: block;
  }

  /* 頁尾堆疊 */
  .footer-section {
    margin-bottom: 30px;
  }

  .main-footer {
    padding: 30px 0 15px;
  }
}

@media (max-width: 576px) {
  /* 更小的手機 */
  .company-logo {
    height: 45px;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  .property-card-body {
    padding: 12px;
  }

  .property-title {
    font-size: 1rem;
  }

  .property-price {
    font-size: 1.2rem;
  }

  .table {
    font-size: 0.85rem;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 36px !important;
    height: 36px !important;
  }

  .swiper-button-prev:after,
  .swiper-button-next:after {
    font-size: 16px;
  }

  /* 頁尾文字縮小 */
  .footer-title {
    font-size: 1.1rem;
  }

  .footer-links li,
  .footer-contact li,
  .footer-locations li {
    font-size: 0.9rem;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }
}

/* ==================== 手機版物業卡片樣式 ==================== */

.properties-mobile-cards,
.shops-mobile-cards {
  display: none; /* 桌面版隱藏 */
}

/* 手機版"更多"按鈕 */
.mobile-more-btn-wrapper {
  display: none;
  text-align: center;
  margin-top: 15px;
  padding-bottom: 10px;
}

.mobile-more-btn {
  background: var(--primary-color);
  border: none;
  color: var(--secondary-color);
  font-weight: 600;
  padding: 10px 30px;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-more-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.mobile-more-btn i {
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  /* 隱藏輪播區塊 */
  .property-swiper {
    display: none !important;
  }

  /* 顯示卡片列表 */
  .properties-mobile-cards,
  .shops-mobile-cards {
    display: block;
  }

  /* 顯示更多按鈕 */
  .mobile-more-btn-wrapper {
    display: block;
  }

  .property-mobile-card {
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--primary-color);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    height: 120px;
  }

  .property-mobile-card:hover {
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
  }

  .property-mobile-card-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
  }

  .property-mobile-card-body {
    flex: 1;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
  }

  .property-mobile-type-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
  }

  .property-mobile-card.type-sale .property-mobile-type-badge {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #ffffff;
  }

  .property-mobile-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    padding-right: 50px;
    line-height: 1.3;
  }

  .property-mobile-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: auto;
  }

  .property-mobile-detail-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
  }

  .property-mobile-price {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 4px 0 2px 0;
    line-height: 1;
  }

  .property-mobile-card.type-sale .property-mobile-price {
    color: #28a745;
  }

  .property-mobile-card.type-rent .property-mobile-price {
    color: #ff8c00;
  }

  .property-mobile-ref {
    font-size: 0.75rem;
    color: var(--text-secondary);
  }
}

/* ==================== 手機版成交記錄卡片樣式 ==================== */

.transactions-mobile-cards {
  display: none; /* 桌面版隱藏 */
}

@media (max-width: 768px) {
  .transactions-mobile-cards {
    display: block;
  }

  .transaction-mobile-card {
    background: white;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
  }

  .transaction-mobile-card:hover {
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    transform: translateX(3px);
  }

  .transaction-mobile-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--bg-light);
  }

  .transaction-mobile-card .card-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
  }

  .transaction-mobile-card .card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
  }

  .transaction-mobile-card .card-address {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
  }

  .transaction-mobile-card .card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
  }

  .transaction-mobile-card .detail-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
  }

  .transaction-mobile-card .detail-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
  }

  .transaction-mobile-card .detail-value {
    color: var(--text-primary);
    font-weight: 600;
  }
}

/* ==================== 銀行估價頁面響應式 ==================== */

@media (max-width: 768px) {
  .page-header {
    padding: 40px 0;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-description {
    font-size: 1rem;
  }

  .bank-valuation-section {
    padding: 40px 0;
  }

  .info-card {
    flex-direction: column;
    padding: 20px;
  }

  .info-icon {
    font-size: 2rem;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .bank-card {
    padding: 25px;
  }

  .bank-logo-wrapper {
    width: 100px;
    height: 100px;
  }

  .tips-card {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .page-title {
    font-size: 1.8rem;
  }

  .bank-card {
    padding: 20px;
  }

  .bank-logo-wrapper {
    width: 80px;
    height: 80px;
  }

  .bank-name {
    font-size: 1.1rem;
  }
}

/* ==================== 按揭計算機頁面響應式 ==================== */

@media (max-width: 768px) {
  .calculator-card {
    padding: 25px;
  }

  .result-card {
    padding: 20px;
  }

  .result-highlight {
    padding: 25px;
  }

  .result-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .result-value {
    font-size: 2rem;
  }

  .result-value-dark {
    font-size: 1.8rem;
  }

  .result-stress-test {
    padding: 20px;
  }

  .result-icon-small {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .calculator-card,
  .result-card {
    padding: 20px;
  }

  .calculator-card h4 {
    font-size: 1.3rem;
  }

  .result-value {
    font-size: 1.8rem;
  }

  .result-label {
    font-size: 0.9rem;
  }

  .result-table td {
    font-size: 0.9rem;
    padding: 10px 0;
  }
}

/* ==================== 業主放盤頁面響應式 ==================== */

@media (max-width: 768px) {
  .owner-listing-card {
    padding: 20px;
  }

  .form-section-title {
    font-size: 1.3rem;
  }

  .service-info-card {
    padding: 20px;
  }

  /* 表單標籤與輸入框 */
  .form-label {
    font-size: 0.95rem;
  }

  .form-control,
  .form-select {
    font-size: 16px; /* 避免 iOS 自動縮放 */
    min-height: 44px;
  }

  textarea.form-control {
    min-height: 100px;
  }
}

@media (max-width: 576px) {
  .owner-listing-card {
    padding: 15px;
  }

  .form-section-title {
    font-size: 1.2rem;
  }
}

/* ==================== 搵心水盤頁面響應式 ==================== */

@media (max-width: 768px) {
  .facilities-checkboxes {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .facilities-checkboxes .form-check {
    padding: 10px 12px;
  }

  .price-range-group {
    flex-direction: column;
    gap: 10px;
  }

  .price-range-separator {
    display: none;
  }

  /* 搜尋表單 */
  .search-card {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .facilities-checkboxes .form-check {
    font-size: 0.95rem;
  }
}

/* ==================== 關於我們頁面響應式 ==================== */

@media (max-width: 768px) {
  .about-hero {
    height: 350px;
  }

  .about-hero-title {
    font-size: 2.5rem;
    letter-spacing: 3px;
  }

  .about-hero-subtitle {
    font-size: 1.3rem;
    letter-spacing: 5px;
  }

  .about-hero-tagline {
    font-size: 1.1rem;
  }

  .about-section,
  .philosophy-section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-content-card,
  .philosophy-card {
    padding: 30px;
    margin-bottom: 20px;
  }

  .feature-card {
    padding: 25px 20px;
  }

  .about-cta {
    padding: 50px 0;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .about-hero {
    height: 300px;
  }

  .about-hero-title {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .about-hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 3px;
  }

  .about-hero-tagline {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .about-content-card,
  .philosophy-card {
    padding: 20px;
  }

  .about-content-card h4,
  .philosophy-card h4 {
    font-size: 1.5rem;
  }

  .about-content-card p,
  .philosophy-card p {
    font-size: 1rem;
  }

  .feature-card h5 {
    font-size: 1.2rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }

  .about-cta .btn-light,
  .about-cta .btn-outline-light {
    padding: 12px 25px;
    font-size: 0.95rem;
  }
}

/* ==================== 成交記錄頁面響應式 ==================== */

/* 手機版卡片列表 */
.mobile-cards-list {
  display: none;
}

@media (max-width: 768px) {
  .filters-card {
    padding: 20px;
  }

  /* 圓形圖卡片 - 2×2 佈局，縮小 50% */
  .stats-section .row {
    gap: 10px;
  }

  .stats-section .col-md-6,
  .stats-section .col-lg-3 {
    flex: 0 0 calc(50% - 5px);
    max-width: calc(50% - 5px);
    padding: 0 !important;
  }

  .chart-card {
    padding: 12px;
    margin-bottom: 10px;
    min-height: auto;
  }

  .chart-title {
    font-size: 0.75rem;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom-width: 2px;
  }

  .chart-card canvas {
    max-height: 140px;
  }

  .table-header {
    padding: 15px 20px;
  }

  .table-header h5 {
    font-size: 1.1rem;
  }

  .sort-dropdown {
    width: 100%;
    margin-top: 10px;
  }

  .sort-dropdown .form-select {
    width: 100%;
  }

  /* 隱藏桌面版表格，顯示手機版卡片 */
  .desktop-table {
    display: none !important;
  }

  .mobile-cards-list {
    display: block;
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .chart-card {
    padding: 15px;
  }

  .chart-title {
    font-size: 0.95rem;
  }

  .transaction-count {
    font-size: 1rem;
  }

  .transaction-count span {
    font-size: 1.2rem;
  }
}

/* ==================== 私隱政策、Cookie、免責聲明頁面響應式 ==================== */

@media (max-width: 768px) {
  .privacy-content,
  .cookie-content,
  .disclaimer-content {
    padding: 40px 0;
  }

  .privacy-intro {
    padding: 25px;
  }

  .privacy-section {
    padding: 30px 0;
  }

  .section-number {
    font-size: 3.5rem;
    top: 25px;
  }

  .privacy-section .section-title {
    font-size: 1.6rem;
  }

  .protection-card,
  .cookie-type-card,
  .responsibility-card {
    padding: 20px;
  }

  .rights-grid,
  .choice-cards,
  .responsibility-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .contact-info-box,
  .acknowledgment-box {
    padding: 25px;
  }
}

@media (max-width: 576px) {
  .privacy-section .section-title {
    font-size: 1.4rem;
  }

  .section-content {
    font-size: 1rem;
  }

  .protection-card h5,
  .cookie-type-card h4,
  .responsibility-card h5 {
    font-size: 1.1rem;
  }
}

/* ==================== 關於我們頁面樣式 ==================== */

/* Hero Section with Background Image */
.about-hero {
  position: relative;
  height: 500px;
  background-image: url('../photo/icon/maonshan.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(255, 215, 0, 0.4) 100%);
  z-index: 1;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.about-hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: 5px;
  animation: fadeInUp 1s ease-out;
}

.about-hero-subtitle {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 10px;
  animation: fadeInUp 1.2s ease-out;
}

.about-hero-tagline {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: fadeInUp 1.4s ease-out;
}

.about-hero-tagline i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.section-header {
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.section-title i {
  color: var(--primary-color);
  margin-right: 15px;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
  margin: 0 auto;
  border-radius: 2px;
}

.about-content-card {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: all 0.3s ease;
  border-left: 5px solid var(--primary-color);
}

.about-content-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-yellow);
}

.about-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.about-icon i {
  font-size: 2rem;
  color: white;
}

.about-content-card h4 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.about-content-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

/* Feature Cards */
.feature-card {
  background: white;
  padding: 35px 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-yellow);
  border-top-color: var(--primary-dark);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #fff9e6, #fff4cc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.feature-icon i {
  font-size: 2.2rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
  color: white;
  transform: scale(1.1);
}

.feature-card h5 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.feature-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Philosophy Section */
.philosophy-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.philosophy-intro {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--primary-color);
  margin-bottom: 50px;
}

.philosophy-intro .lead {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--secondary-color);
  line-height: 1.8;
  margin: 0;
}

.philosophy-card {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: all 0.3s ease;
  border-right: 5px solid var(--primary-color);
}

.philosophy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-yellow);
}

.philosophy-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.philosophy-icon i {
  font-size: 2rem;
  color: white;
}

.philosophy-card h4 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.philosophy-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

/* Core Values Section */
.core-values-section {
  margin-top: 60px;
  padding: 50px 40px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.core-values-section h4 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.core-values-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
  border-radius: 2px;
}

.value-card {
  background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-yellow);
  border-color: var(--primary-color);
}

.value-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.3;
  margin-bottom: 10px;
  line-height: 1;
}

.value-card h5 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.value-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* About CTA Section */
.about-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: white;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
  margin: 0;
}

.about-cta .btn-light {
  background: white;
  color: var(--primary-dark);
  border: none;
  font-weight: 600;
  padding: 15px 35px;
  transition: all 0.3s ease;
}

.about-cta .btn-light:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.about-cta .btn-outline-light {
  border: 2px solid white;
  color: white;
  font-weight: 600;
  padding: 15px 35px;
  transition: all 0.3s ease;
}

.about-cta .btn-outline-light:hover {
  background: white;
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ==================== 私隱政策頁面樣式 ==================== */

.privacy-content {
  padding: 60px 0;
  background: #FFFFFF;
}

.privacy-intro {
  background: linear-gradient(135deg, #FFF9E6 0%, #FFF4CC 100%);
  padding: 40px;
  border-radius: 15px;
  border-left: 5px solid var(--primary-color);
  box-shadow: var(--shadow-md);
}

.privacy-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.privacy-intro p:last-child {
  margin-bottom: 0;
}

.privacy-section {
  position: relative;
  padding: 50px 0;
  border-bottom: 2px solid #F0F0F0;
}

.privacy-section:last-of-type {
  border-bottom: none;
}

.section-number {
  position: absolute;
  top: 40px;
  left: 0;
  font-size: 5rem;
  font-weight: 700;
  color: #FFE082;
  opacity: 0.3;
  z-index: 0;
  line-height: 1;
}

.privacy-section .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 15px;
}

.privacy-section .section-title i {
  color: var(--primary-color);
  font-size: 1.8rem;
}

.section-content {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.section-content h5 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.section-content ul {
  list-style: none;
  padding-left: 0;
}

.section-content ul li {
  padding-left: 30px;
  margin-bottom: 12px;
  position: relative;
}

.section-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* 保護措施卡片 */
.protection-card {
  background: #FFFFFF;
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary-color);
  height: 100%;
  transition: all 0.3s ease;
}

.protection-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-yellow);
}

.protection-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FFF9E6, #FFF4CC);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.protection-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.protection-card h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 12px;
}

.protection-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* 權利網格 */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.right-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF9E6 100%);
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #FFE082;
  transition: all 0.3s ease;
}

.right-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-yellow);
  border-color: var(--primary-color);
}

.right-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.right-icon i {
  font-size: 2rem;
  color: white;
}

.right-card h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.right-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* 聯絡資訊框 */
.contact-info-box {
  background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
  padding: 40px;
  border-radius: 15px;
  border: 2px solid #E0E0E0;
  margin-top: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 5px;
  min-width: 25px;
}

.info-item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.info-item p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* 確認聲明 */
.privacy-acknowledgment {
  margin-top: 60px;
  margin-bottom: 40px;
}

.acknowledgment-box {
  background: linear-gradient(135deg, #FFDF00 0%, #FF8C00 100%);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.acknowledgment-box h4 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.acknowledgment-box h4 i {
  color: #4CAF50;
  font-size: 2rem;
}

.acknowledgment-box p {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin: 0;
  font-weight: 500;
}

/* Alert 樣式優化 */
.privacy-section .alert {
  border-left: 4px solid;
  border-radius: 8px;
  padding: 20px;
  margin-top: 25px;
}

.privacy-section .alert-info {
  background: #E3F2FD;
  border-left-color: #2196F3;
  color: #0D47A1;
}

.privacy-section .alert-warning {
  background: #FFF3E0;
  border-left-color: #FF9800;
  color: #E65100;
}

.privacy-section .alert-secondary {
  background: #F5F5F5;
  border-left-color: #9E9E9E;
  color: #424242;
}

.privacy-section .alert a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.privacy-section .alert a:hover {
  color: var(--primary-color);
}

/* ==================== Cookie 政策額外樣式 ==================== */

.info-box {
  background: #FFFFFF;
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
  height: 100%;
}

.info-box .info-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.info-box .info-icon i {
  color: white;
  font-size: 1.5rem;
}

.info-box h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.info-box ul {
  margin-bottom: 0;
}

.cookie-type-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border-left: 5px solid;
  transition: all 0.3s ease;
}

.cookie-type-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-yellow);
}

.cookie-type-card:nth-child(1) { border-left-color: #F44336; }
.cookie-type-card:nth-child(2) { border-left-color: #2196F3; }
.cookie-type-card:nth-child(3) { border-left-color: #FF9800; }
.cookie-type-card:nth-child(4) { border-left-color: #4CAF50; }

.cookie-type-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.cookie-type-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-type-icon.essential { background: linear-gradient(135deg, #F44336, #D32F2F); }
.cookie-type-icon.functional { background: linear-gradient(135deg, #2196F3, #1976D2); }
.cookie-type-icon.analytics { background: linear-gradient(135deg, #FF9800, #F57C00); }
.cookie-type-icon.marketing { background: linear-gradient(135deg, #4CAF50, #388E3C); }

.cookie-type-icon i {
  color: white;
  font-size: 1.8rem;
}

.cookie-type-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 0;
}

.duration-card {
  background: linear-gradient(135deg, #FFFFFF, #FFF9E6);
  padding: 30px;
  border-radius: 12px;
  border: 2px solid #FFE082;
  height: 100%;
  text-align: center;
  transition: all 0.3s ease;
}

.duration-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-yellow);
}

.duration-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.duration-icon i {
  font-size: 2.2rem;
  color: white;
}

.third-party-box {
  background: #F5F5F5;
  padding: 30px;
  border-radius: 12px;
  border: 2px solid #E0E0E0;
  margin-top: 20px;
}

.third-party-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.third-party-header h5 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.browser-guide {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.browser-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.browser-item i {
  font-size: 2rem;
  color: var(--primary-color);
  min-width: 30px;
}

.browser-item strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.browser-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.choice-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.choice-card {
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border-top: 4px solid;
}

.choice-card:nth-child(1) { border-top-color: #4CAF50; }
.choice-card:nth-child(2) { border-top-color: #2196F3; }
.choice-card:nth-child(3) { border-top-color: #9E9E9E; }

.choice-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-yellow);
}

.choice-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.choice-icon.accept { background: linear-gradient(135deg, #4CAF50, #388E3C); }
.choice-icon.customize { background: linear-gradient(135deg, #2196F3, #1976D2); }
.choice-icon.reject { background: linear-gradient(135deg, #9E9E9E, #757575); }

.choice-icon i {
  color: white;
  font-size: 2rem;
}

.related-links {
  background: #F8F9FA;
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.related-links h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.related-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-links li {
  margin-bottom: 10px;
}

.related-links a {
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-links a:hover {
  color: var(--primary-color);
  padding-left: 10px;
}

.related-links a i {
  color: var(--primary-color);
}

/* ==================== 免責聲明額外樣式 ==================== */

.disclaimer-box {
  background: white;
  padding: 25px;
  border-radius: 12px;
  border-left: 5px solid;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.disclaimer-box.warning {
  border-left-color: #FF9800;
  background: #FFF3E0;
}

.disclaimer-box > i {
  font-size: 2rem;
  color: #FF9800;
  flex-shrink: 0;
}

.disclaimer-box h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.responsibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.responsibility-card {
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.responsibility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-yellow);
}

.resp-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.resp-icon i {
  color: white;
  font-size: 2rem;
}

.responsibility-card h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.responsibility-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.limitation-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid #F44336;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.limitation-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #F44336;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.limitation-card h5 i {
  font-size: 1.3rem;
}

.limitation-card ul {
  margin-bottom: 0;
}

.third-party-disclaimer {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #E8F5E9;
  padding: 30px;
  border-radius: 12px;
  border-left: 5px solid #4CAF50;
  margin-top: 20px;
}

.tpd-icon {
  width: 60px;
  height: 60px;
  background: #4CAF50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tpd-icon i {
  color: white;
  font-size: 1.8rem;
}

.tpd-content h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.copyright-box {
  background: #FFF3E0;
  padding: 25px;
  border-radius: 12px;
  border-left: 5px solid #FF9800;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 20px;
}

.copyright-box > i {
  font-size: 2rem;
  color: #FF9800;
  flex-shrink: 0;
}

.copyright-box h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.agent-info-box {
  background: linear-gradient(135deg, #FFF9E6, #FFF4CC);
  padding: 35px;
  border-radius: 15px;
  border: 3px solid var(--primary-color);
  margin-top: 20px;
}

/* ==================== 成交記錄頁面樣式 ==================== */

/* 頁面標題 */
.transaction-count {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.transaction-count span {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.3rem;
}

/* 篩選區域 */
.filters-section {
  padding: 30px 0;
  background: var(--bg-light);
}

.filters-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 65px;
}

.filter-item .form-select,
.filter-item .btn {
  flex: 1;
}

/* 桌面版篩選順序控制 */
@media (min-width: 769px) {
  .filters-card .row {
    display: flex;
    flex-wrap: wrap;
  }

  .filter-col-1 { order: 1; }  /* 物業類型 */
  .filter-col-2 { order: 2; }  /* 屋苑 */
  .filter-col-4 { order: 3; }  /* 間隔 */
  .filter-col-5 { order: 4; }  /* 實用面積 */
  .filter-col-3 { order: 5; }  /* 成交價 */
  .filter-col-6 { order: 6; }  /* 重設 */
}

/* 重設按鈕樣式 */
.reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  min-height: 38px;
}

.reset-btn i {
  font-size: 1rem;
}

.filters-card .form-select {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.filters-card .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

/* 統計圖表區域 */
.stats-section {
  padding: 40px 0;
  background: white;
}

.chart-card {
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.chart-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(255, 215, 0, 0.25);
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 10px;
}

.chart-card canvas {
  max-height: 280px;
  margin: auto;
}

/* 成交記錄列表 */
.transactions-list-section {
  padding: 40px 0 60px;
  background: var(--bg-light);
}

.table-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.table-header {
  padding: 20px 25px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.table-header h5 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 0;
}

.sort-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-dropdown label {
  font-weight: 600;
  color: var(--secondary-color);
  margin: 0;
  font-size: 0.95rem;
}

.sort-dropdown .form-select {
  width: auto;
  min-width: 180px;
  border: 2px solid var(--secondary-color);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.9rem;
}

/* 表格樣式 */
.table-card .table {
  margin: 0;
  table-layout: fixed;
  width: 100%;
}

.table-card .table thead th {
  background: var(--bg-light);
  color: var(--secondary-color);
  font-weight: 700;
  padding: 15px;
  border-bottom: 3px solid var(--primary-color);
  font-size: 0.95rem;
  text-align: left;
}

.table-card .table thead th:nth-child(1) { width: 10%; }  /* 日期 */
.table-card .table thead th:nth-child(2) { width: 35%; }  /* 地址 */
.table-card .table thead th:nth-child(3) { width: 10%; }  /* 間隔 */
.table-card .table thead th:nth-child(4) { width: 15%; }  /* 成交價 */
.table-card .table thead th:nth-child(5) { width: 12%; }  /* 面積(實) */
.table-card .table thead th:nth-child(6) { width: 18%; }  /* 呎價(實) */

.table-card .table tbody td {
  padding: 15px;
  vertical-align: middle;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-card .table tbody tr:hover {
  background: #FFFBF0;
  transition: background 0.3s ease;
}

.table-card .table tbody td strong {
  font-size: 1.05rem;
  color: #28a745;
}

/* 成交價綠色 */
.table tbody strong.transaction-price {
  color: #28a745;
  font-weight: 700;
}

/* 分頁樣式 */
.pagination-wrapper {
  padding: 25px;
  background: var(--bg-light);
}

.pagination .page-item .page-link {
  color: var(--secondary-color);
  border: 2px solid var(--border-color);
  padding: 8px 15px;
  margin: 0 3px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination .page-item .page-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--secondary-color);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-color: var(--primary-color);
  color: var(--secondary-color);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.pagination .page-item.disabled .page-link {
  color: var(--text-secondary);
  background: var(--bg-gray);
  border-color: var(--border-color);
}

/* ==================== Download Page Styles ==================== */

/* Download Hero Section */
.download-hero {
  position: relative;
  height: 450px;
  background-image: url('../photo/icon/maonshan2.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.download-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(255, 215, 0, 0.4) 100%);
  z-index: 1;
}

.download-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 40px 20px;
}

.download-hero .hero-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.download-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: 3px;
}

.download-hero-subtitle {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 25px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 5px;
}

.download-hero-tagline {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0.95;
}

.download-hero-tagline i {
  color: var(--primary-color);
  font-size: 1.4rem;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* App Features Section */
.app-features-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.feature-card-download {
  background: white;
  border-radius: 15px;
  padding: 40px 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  border: 2px solid transparent;
}

.feature-card-download:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
  border-color: var(--primary-color);
}

.feature-icon-download {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.feature-card-download h5 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.feature-card-download p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0;
}

/* Download Section */
.download-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.download-main-card {
  background: white;
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 3px solid var(--primary-color);
}

.download-info {
  padding-right: 30px;
}

.download-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.download-title i {
  color: #3DDC84;
  margin-right: 10px;
}

.download-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.app-info-box {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
}

.app-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1rem;
}

.app-info-item:last-child {
  margin-bottom: 0;
}

.app-info-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
  width: 25px;
}

.btn-download-main {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--secondary-color);
  padding: 18px 50px;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  border: none;
  cursor: pointer;
}

.btn-download-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
  color: var(--secondary-color);
}

.btn-download-main i {
  margin-right: 10px;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.download-note {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.download-note i {
  color: #0066CC;
}

/* QR Section */
.qr-section {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.qr-placeholder {
  width: 220px;
  height: 220px;
  border: 3px dashed var(--border-color);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
}

.qr-placeholder i {
  font-size: 4rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.qr-placeholder p {
  text-align: center;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Installation Steps Section */
.install-steps-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.install-step-card {
  background: white;
  border-radius: 15px;
  padding: 40px 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.install-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.install-step-card:hover::before {
  transform: scaleX(1);
}

.install-step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.step-number {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.step-icon {
  font-size: 3rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.install-step-card h5 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.install-step-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.accordion-item {
  border: 1px solid var(--border-color);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
}

.accordion-button {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary-color);
  background: white;
  padding: 20px 25px;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--secondary-color);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
  border-color: var(--primary-color);
}

.accordion-body {
  padding: 25px;
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.8;
}

/* Download CTA Section */
.download-cta {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
  padding: 60px 0;
  color: white;
}

.download-cta .cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.download-cta .cta-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

/* Responsive Styles for Download Page */
@media (max-width: 991px) {
  .download-hero {
    height: 400px;
  }

  .download-hero-title {
    font-size: 2.5rem;
  }

  .download-hero-subtitle {
    font-size: 1.3rem;
  }

  .download-info {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .qr-section {
    margin-top: 20px;
  }
}

@media (max-width: 767px) {
  .download-hero {
    height: 350px;
  }

  .download-hero-title {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .download-hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 3px;
  }

  .download-hero-tagline {
    font-size: 1rem;
  }

  .download-main-card {
    padding: 30px 20px;
  }

  .btn-download-main {
    padding: 15px 35px;
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
  }

  .download-cta .cta-title {
    font-size: 1.5rem;
  }

  .download-cta .cta-subtitle {
    font-size: 1rem;
  }
}