body {
  background: #181e24;
  color: #fff;
  font-family: "Noto Sans TC", Arial, sans-serif;
  padding-bottom: 60px;
}

.pricing-card {
    background: linear-gradient(145deg, #23272e, #1a1e24); /* 或 #232b35，您CSS中有兩個定義 */
    border-radius: 12px;
    padding: 1.8rem; /* 或 1.5rem */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); /* 或 0 4px 8px */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem; /* 或 1.5em */
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffe27a; /* 目前設定為黃色強調色 */
    margin-bottom: 1rem;
}

/* .main-title (採用你CSS中較後面的定義，若與其他頁面共用，應移至main.css) */
.main-title {
  font-size: 2rem;
  font-weight: bold;
  color: #ffe27a;
  text-align: center;
  margin-bottom: 0.5rem;
  margin-top: 2em; /* 從原CSS的 .main-title 保留 */
  text-shadow: 1px 1px 8px rgba(255, 226, 122, 0.6);
}

.sub-title {
  font-size: 1.2rem;
  color: #e0d9cd;
  text-align: center;
  margin-bottom: 2em; /* 從原CSS的 .sub-title 保留 */
}

.section-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffe27a;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 6px rgba(255, 226, 122, 0.6);
  text-align: center; /* 預設置中 */
  position: relative; /* 為了 ::before 偽元素 */
  z-index: 1;
}

.section-title-decorated::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 1.5rem;
  background: linear-gradient(90deg, #7f3f98, #ff5c5c);
  z-index: -1;
  opacity: 0.8;
  border-radius: 10px;
}
@media (max-width: 767px) {
  .section-title {
    /* 這是你CSS中 @media (max-width: 767px) 最後的 .section-title */
    font-size: 1.2rem;
  }
  .section-title-decorated::before {
    /* 調整手機版背景線 */
    height: 1rem;
    width: 70%;
  }
}

.text-container {
  border-left: 3px solid #ffe27a; /* 預設版本 */
  padding-left: 20px;
  line-height: 1.8;
  font-size: 1.2rem;
  margin-top: 2rem; /* 從第一個定義 */
}
.text-container.alt-border {
  /* 第二種 border 樣式 */
  border-left: 2px solid #fff;
  display: flex; /* 如果需要 flex 特性 */
  align-items: flex-start;
  justify-content: flex-start;
}
.text-container p {
  /* 確保 p 元素在 text-container 內無額外 margin */
  margin: 0;
}

.content-box img {
  border-radius: 10px;
  width: 100%;
  margin-bottom: 0.8em;
}

.highlight-section {
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  background: linear-gradient(145deg, #1a1d23, #23272e);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 10px rgba(255, 255, 255, 0.05);
}

.highlight-title {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 12px rgba(255, 92, 92, 0.8),
    0px 0px 16px rgba(127, 63, 152, 0.6);
}

.highlight-title span {
  color: #ff5c5c;
  font-style: italic;
}

.highlight-subtitle {
  font-size: 1.5rem;
  color: #d3d3d3;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 8px rgba(255, 255, 255, 0.2);
}

.highlight-subtitle span {
  color: #ff5c5c;
  font-weight: bold;
}

.wave-decor {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 30px;
  background: url("./img/hotsearch/decor-wave.jpg") repeat-x;
  opacity: 0.8;
}

/* Mobile Version */
@media (max-width: 768px) {
  .highlight-section {
    padding: 3rem 1rem;
  }

  .highlight-title {
    font-size: 2.2rem;
  }

  .highlight-subtitle {
    font-size: 1.2rem;
    line-height: 1.8rem;
  }

  .wave-decor {
    height: 20px;
  }
}

.section-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #ffe27a;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.section-container {
  text-align: center;
  margin: 2rem 0;
  position: relative;
  padding: 1.5rem 0;
  background: linear-gradient(90deg, #181e24 10%, #232b35 90%);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.section-title-2 {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
  text-align: center;
  padding: 5px;
}

.section-title-2 span {
  color: #ff5c5c;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #d3d3d3;
  margin-top: 0.5rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #d3d3d3;
  margin-top: 0.5rem;
}

.section-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 1.5rem;
  background: linear-gradient(90deg, #7f3f98, #ff5c5c);
  z-index: -1;
  opacity: 0.8;
  border-radius: 10px;
}

.row img {
  border-radius: 10px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.row img:hover {
  transform: scale(1.05);
  /* 放大效果 */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
  /* 增強陰影效果 */
}

.gallery-container {
  overflow-x: auto;
  /* 保持水平滾動 */
  white-space: nowrap;
  /* 防止內容換行 */
  padding-bottom: 15px;
  scrollbar-width: none;
  /* 隱藏 Firefox 的滾輪 */
}

.gallery-container::-webkit-scrollbar {
  display: none;
  /* 隱藏 Chrome/Safari 的滾輪 */
}

.gallery-container::-webkit-scrollbar-thumb {
  background-color: #7f3f98;
  /* Scrollbar thumb color */
  border-radius: 10px;
}

.gallery-container::-webkit-scrollbar-track {
  background: #232b35;
  /* Scrollbar track color */
}

.gallery-item {
  display: inline-block;
  /* Display items in a horizontal row */
  width: 90%;
  /* Adjust width for smaller screens */
  max-width: 300px;
  /* Limit maximum width */
  margin-right: 15px;
}

.gallery-item img {
  border-radius: 10px;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
  /* Slight zoom effect */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
}

@media (min-width: 768px) {
  .gallery-container {
    overflow: hidden;
    display: none;
    /* Disable horizontal scrolling on larger screens */
  }

  .gallery-item {
    display: inline-block;
    width: 30%;
    /* Show items in a grid-like layout */
  }
}

/* Desktop Grid Layout */
.desktop-row img {
  border-radius: 10px;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.desktop-row img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
}

/* Mobile Version */
.gallery-container {
  display: none;
}

h1.text-center {
  font-size: 2.8rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(255, 92, 92, 0.8),
    0px 0px 12px rgba(127, 63, 152, 0.6);
  margin-bottom: 1.5rem;
}

h1.text-center::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ff5c5c, #7f3f98);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.final-section {
  position: relative;
  text-align: center;
  padding: 3rem 2rem;
  margin: 3rem 0;
  background: linear-gradient(145deg, #1a1d23, #23272e);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6),
    inset 0 2px 10px rgba(255, 255, 255, 0.05);
}

.final-message {
  font-size: 1.4rem;
  line-height: 2.5rem;
  color: #d3d3d3;
  margin: 0;
  text-shadow: 1px 1px 10px rgba(255, 255, 255, 0.1);
}

.final-message span {
  color: #ff5c5c;
  font-weight: bold;
  text-shadow: 1px 1px 12px rgba(255, 92, 92, 0.6);
}

.final-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  z-index: -1;
  background: radial-gradient(
    circle at center,
    rgba(255, 92, 92, 0.2),
    transparent
  );
}

@media (max-width: 768px) {
  .gallery-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 15px;
    display: block;
  }

  .gallery-container::-webkit-scrollbar {
    display: none;
  }

  .gallery-item {
    display: inline-block;
    width: 90%;
    max-width: 300px;
    margin-right: 15px;
  }

  .gallery-item img {
    border-radius: 10px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
  }

  .desktop-row {
    display: none;
    /* Hide grid layout on mobile */
  }

  .section-subtitle {
    font-size: 1rem;
    /* 縮小副標題文字大小 */
  }

  .section-container {
    padding: 1rem 0;
    /* 調整容器的內邊距 */
  }

  .final-section {
    padding: 2rem 1rem;
  }

  .final-message {
    font-size: 0.8rem;
    line-height: 2rem;
  }
}

@media (max-width: 767px) {
  .section-title {
    font-size: 1.2rem;
  }

  .section-title::before {
    height: 1rem;
    /* 縮小背景高度 */
    width: 70%;
    /* 縮小背景寬度 */
    margin-top: -13px;
  }

  .content-box,
  .pricing-card {
    padding: 1em;
  }

  .footer-logo {
    width: 90px;
  }

  .text-container {
    margin: 1.5rem auto;
  }

  .content-description {
    font-size: 1rem;
    line-height: 1.8rem;
  }

  h1.text-center {
    font-size: 1rem;
    /* 縮小字體大小 */
    text-shadow: 1px 1px 6px rgba(255, 92, 92, 0.8),
      0px 0px 8px rgba(127, 63, 152, 0.6);
  }

  h1.text-center::after {
    width: 60px;
    /* 縮小底部裝飾線寬度 */
    height: 3px;
  }

  .row img {
    margin-bottom: 1rem;
    /* 增加間距 */
  }
}

/* --- tk-hotsearch.php - Interactive Button Design --- */

/* 按鈕上下浮動動畫 (如果您的 main.css 或此檔案中尚未定義) */
@keyframes buttonFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0px); }
}

/* 按鈕主體樣式 */
.btn-buy-hotsearch {
    /* 基礎樣式 */
    display: inline-block;
    position: relative; /* 為了偽元素定位 */
    overflow: hidden;   /* 隱藏超出範圍的光影效果 */
    vertical-align: middle;
    
    /* 顏色與背景 */
    background: linear-gradient(135deg, #ff5c5c, #7f3f98); /* 您偏好的紫色到紅色漸層 */
    color: #fff;
    
    /* 字體與大小 */
    font-size: 1rem;
    font-weight: 700;
    padding: 0.8rem 2rem;
    
    /* 形狀與陰影 */
    border: none;
    border-radius: 50px; /* 膠囊形狀 */
    box-shadow: 0 5px 15px rgba(255, 92, 92, 0.25);
    
    /* 動畫與過渡 */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* 平滑的過渡效果 */
    animation: buttonFloat 3s ease-in-out infinite; /* 套用浮動動畫 */
    will-change: transform, box-shadow;
}

/* 滑鼠懸浮效果 */
.btn-buy-hotsearch:hover {
    color: #fff;
    box-shadow: 0 10px 25px rgba(255, 92, 92, 0.4);
    transform: translateY(-4px) scale(1.05); /* 上浮並輕微放大 */
    animation-play-state: paused; /* 滑鼠移過時暫停浮動 */
}

/* 光影掠過效果 (使用 ::after 偽元素) */
.btn-buy-hotsearch::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    background-image: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    transform: rotate(45deg) translateX(-150%);
    transition: transform 0s ease-in-out;
}

.btn-buy-hotsearch:hover::after {
    transform: rotate(45deg) translateX(150%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); /* 讓光影快速掠過 */
}

/* 按鈕內圖示樣式 */
.btn-buy-hotsearch .fa {
    margin-right: 8px;
    vertical-align: -1px; /* 微調圖示垂直位置 */
}