@charset "UTF-8";
/* CSS Document */
/* --- 全局與基礎設定 --- */
*, *::before, *::after {
  box-sizing: border-box;
}
:root {
  --gold-color: #aca561;
  --dark-gold-color: #8f8951;
  --light-gold-color: #e7e4d1;
  --text-primary: #333333;
  --text-secondary: #aca561;
  --text-thirdary: #666666;
  --bg-light-gray: #f3f4f6;
  --bg-dark: #1f2937;
  --bg-lightest-gray: #f9fafb;
  --step-inactive-color: #e5e7eb;
  --step-active-color: var(--gold-color);
  --panel-w: 520px;
  --line: #e5e7eb;
  --chip: #fff;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, .1);
  --panel-bg: #fff;
  --submenu-bg: #f4f1e1;
  --text-gray: #848484;
  --primary-blue: #3b82f6;
}
body {
  font-family: 'Noto Sans TC', 'Montserrat', sans-serif;
  background-color: var(--bg-light-gray);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.6;
}
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.section {
  padding-top: 1rem;
  padding-bottom: .5rem;
}
.content-box {
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  padding: 3rem 1.5rem;
  border-radius: 0.75rem;
}
.content-box2 {
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  padding: 2rem 1.5rem;
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-align: center;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 42rem;
  margin: 0 auto 3rem auto;
  text-align: center;
}
/* --- 1. 進站廣告 --- */
.interstitial-ad {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ad-content {
  position: relative;
  width: 91.666667%;
  max-width: 36rem;
  max-height: 85vh;
}
.ad-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
}
.close-ad-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2px);
  border-radius: 9999px;
  padding: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
  z-index: 10;
}
.close-ad-btn:hover {
  background-color: #f3f4f6;
}
/* --- 2. Header (導覽列) --- */
.main-header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 40;
  transition: all 0.3s;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-color);
  letter-spacing: 0.1em;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
}
.icon-button {
  color: var(--text-secondary)
}
.icon-button:hover {
  color: var(--dark-gold-color);
} 
.header-search {
  display: none; /* Mobile first：先隱藏，桌機再開 */
  align-items: center;
}
.search-input {
  height: 36px;
  width: clamp(180px, 24vw, 320px);
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  padding: 0 .9rem;
  font-size: .9rem;
  background: #fff;
  outline: none;
}
.search-input::placeholder {
  color: #9ca3af;
}
/* 手機右上角放大鏡 */
.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
}
.search-desktop {
  display: none;
  position: relative;
}
/* 手機搜尋面板 */
.search-panel {
  display: none; /* 由 JS 控制 hidden / 顯示 */
  background: var(--cream);
  border-top: 1px solid #eee;
  position: relative;
  z-index: 45; /* 高於 header 的導覽列 */
  padding: .75rem 0 1rem;
}
.search-panel-inner {
  position: relative;
}
.search-input-mobile {
  height: 44px;
  width: 100%;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  padding: 0 1rem;
  font-size: 1rem;
  background: #fff;
}
.search-close {
  position: absolute;
  right: .5rem;
  top: 0;
  height: 44px;
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
}
/* 使用者頭像按鈕 */
.user-menu {
  position: relative;
}
.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.profile-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.profile-button.has-avatar img {
  display: block;
}
.profile-button.has-avatar .user-fallback {
  display: none;
}
/* 下拉 */
.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1);
  z-index: 2100;
  min-width: 180px;
  overflow: hidden;
}
.user-dropdown.show {
  display: block;
}
.user-item {
  display: block;
  padding: .75rem 1rem;
  font-size: .875rem;
  text-decoration: none;
  color: var(--text-primary);
}
/* 手機搜尋條：放在 Banner 下方，滿版寬 */
.mobile-search, #mobile-search-bar {
  display: block;
  width: 100vw; /* 滿版寬 */
  margin-left: 50%;
  transform: translateX(-50%); /* 讓滿版寬置中，不受 container 影響 */
  background: var(--cream);
  border-bottom: 1px solid #e5e7eb;
  padding: .75rem 0; /* 外層不要左右 padding，內層自己控 */
  position: relative;
  z-index: 5;
}
.mobile-search-bar[hidden] {
  display: none !important;
}
/* 內層加最大寬與左右間距，對齊頁面容器 */
.mobile-search-row {
  position: relative;
  padding: 16px 16px 18px; /* 左右/下內距 */
  padding-top: 36px; /* ↑ 調這個值可決定輸入框距上方的距離 */
  min-height: 78px; /* ↑ 調整整列高度 */
}
.mobile-search-input {
  width: 100%;
  height: 32px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0 2.75rem 0 1rem; /* 預留右側給 X */
  font-size: .9rem;
  outline: none;
}
.mobile-search-input:focus {
  border-color: var(--gold-color);
  box-shadow: 0 0 0 3px rgba(172, 165, 97, .15);
}
/* X：在輸入框右上，點了關閉 */
.mobile-search-close {
  position: absolute;
  top: 0px; /* ↑ 想更貼上緣就再小一點 */
  right: 14px; /* ↑ 想更靠右就再小一點 */
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent; /* 只有圖示，不加底 */
  line-height: 0;
  cursor: pointer;
  z-index: 2; /* 確保在最上層可點 */
}
.mobile-search-close:hover {
  background: #f3f4f6;
}
.mobile-search-close svg {
  width: 20px;
  height: 20px;
}
.user-item:hover {
  background: #f9fafb;
}
.main-nav {
  /*display: none;  Mobile first */
	display: block;
background-color:#fff;
	
}
.main-nav .container {
    display: flex;         
    align-items: center;    
    gap: 2rem;             
}
/* 基礎樣式 (手機版) */
.nav-item-dropdown {
  position: static; /* 手機上，觸發點不需要特殊定位 */
}

.menu-panel {
  display: none; /* 預設隱藏 */
  position: absolute;
  top: 100%; /* 緊貼在父層(.main-nav)的底部 */
  left: 0;
  width: 100vw; /* 寬度為 100% 螢幕寬 */
  
  background: white;
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 1100;
  max-height: calc(100vh - 10rem); /* 避免選單過長，擋住整個畫面 */
  overflow-y: auto;
  padding: 12px;
}

.menu-panel.open {
  display: block; /* 當 JS 加上 .open class 時顯示 */
}	
.nav-link {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
}
.nav-link:hover {
  color: var(--gold-color);
}
.chev {
  transition: transform .25s
}
.chev.open {
  transform: rotate(180deg)
}

.mobile-menu-btn {
	display:none;/* 直接隱藏漢堡按鈕 */
  border: none;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px
}
.mobile-menu-btn:hover {
  background: #f3f4f6
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cta-button {
  display: inline-flex; /* Mobile first */
  background-color: transparent;
  border: 2px solid var(--gold-color);
  color: var(--gold-color);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s;
}
.cta-button:hover {
  background-color: var(--gold-color);
  color: white;
}
.mobile-menu .cta-button {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  background-color: var(--gold-color);
  color: white;
}




/* 手風琴（第二層分類） */
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .25rem 0;
  color: var(--text);
  text-decoration: none;
}
.mobile-dropdown-arrow {
  transition: transform .25s;
}
.mobile-dropdown-arrow.open {
  transform: rotate(180deg)；
}
.mobile-nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  padding-left: 16px;
}
.mobile-nav-submenu.open {
  background: var(--submenu-bg);
  max-height: 70vh;
  overflow: auto;
  border-radius: 10px;
  padding: 12px;
  margin: 6px 0 12px;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.mobile-nav-link + .mobile-nav-submenu.open {
  margin-top: 8px;
}
.mobile-nav-submenu.open .mobile-subheading:not(:first-child) {
  border-top: 1px dashed var(--submenu-border);
  padding-top: .75rem;
  margin-top: .75rem;
}
.mobile-nav-submenu a {
  display: block;
  padding: .5rem 0;
  color: var(--muted);
  text-decoration: none；
}
/* 標題 + 膠囊列（常駐） */
.mobile-subheading {
  margin: .75rem 0 .25rem 0;
  font-weight: 700;
  color: var(--text)；
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0.25rem 0 0.75rem 0;
  border-bottom: solid 1px var(--line);
}
.pill-row a {
  background: var(--chip);
  padding: .45rem .85rem;
  border-radius: 9999px;
  color: var(--text-gray);
  text-decoration: none;
  line-height: 1;
}
.pill-row a:hover {
  background: var(--gold-color);
  color: white;
}
.pill-row a:active {
  transform: translateY(1px)；
}
/* 手機選單容器 */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 8px 16px 16px;
}
.mobile-menu .section-link {
  display: block;
  color: #4b5563;
  text-decoration: none;
  padding: .5rem 0;
}
.mobile-menu .section-link:hover {
  color: var(--gold)
}
.language-selector {
  position: relative;
}
.lang-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  border: 1px solid #d1d5db;
  padding: 0.5rem; /* Smaller padding for mobile */
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.lang-button .lang-text, .lang-button .lang-chevron {
  display: none; /* Hide text and chevron on mobile */
}
.lang-button svg {
  width: 1.25rem;
  height: 1.25rem;
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  z-index: 50;
  min-width: 150px;
  overflow: hidden;
}
.lang-dropdown.show {
  display: block;
}
.lang-option {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.875rem;
}
.lang-option:hover {
  background-color: #f9fafb;
}
/* --- 3. Banner 廣告區 --- */
.hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
}

.carousel-container {
  position: relative;
  height: 100%;
}
.carousel-item {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  padding: 0.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}
.carousel-btn:hover {
  background-color: white;
}
.carousel-btn.prev {
  left: 1rem;
}
.carousel-btn.next {
  right: 1rem;
}
.dots-container {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background-color: #d1d5db;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}
.dot.active {
  background-color: var(--gold-color);
}
/* --- 4. 六大功能項目 --- */
#features .content-box {
  text-align: center;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-row-gap: 2rem;
  grid-column-gap: 2rem;
  max-width: 48rem;
  margin: 0 auto;
}
.feature-item {
  cursor: pointer;
}
.feature-icon-wrapper {
  width: 90%; /* 讓寬度隨容器縮放 */
  height: auto; /* 讓高度自動計算 */
  aspect-ratio: 1 / 1; /* 保持 1:1 的長寬比，形成正圓 */
  margin: 0 auto;
  background-color: #efefef;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: all 0.3s;
}
.feature-item:hover .feature-icon-wrapper {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
  border-color: var(--gold-color);
}
.feature-icon-wrapper i {
  width: 3rem;
  height: 3rem;
  color: var(--gold-color);
}
.feature-item h3 {
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}
.feature-icon-wrapper img {
  width: 50%; /* 圖片大小設為圓圈的一半 */
  height: 50%;
  object-fit: contain;
}
.expand-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s ease-in-out;
  margin-top: 3rem;
  text-align: left;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
.expand-content.show {
  max-height: 500px;
}
.expand-content-inner {
  background-color: white;
  padding: 2rem;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}
.expand-content-inner h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 1rem;
}
.member-cta-box {
  margin-top: 1rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  background-color: white;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(192, 158, 109, 0.3);
  border-radius: 0.75rem;
}
.member-cta-box h3 {
  font-size: 1.875rem;
  font-weight: 700;
}
.member-cta-box p {
  margin: 0 auto 1rem auto;
  color: var(--text-secondary);
}
.member-cta-box .cta-button-solid {
  margin-top: 2rem;
  background-color: var(--gold-color);
  color: white;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.member-cta-box .cta-button-solid:hover {
  background-color: var(--dark-gold-color);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}
/* --- 5. 美容展資訊 --- */
.expo-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}
.expo-card {
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s;
  text-align: left;
  border-radius: 0.5rem;
}
.expo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.expo-card img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
}
.expo-card-content {
  padding: 1.5rem;
}
.expo-card-content .date {
  font-size: 0.875rem;
}
.expo-card-content h3 {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.expo-card-content .location {
  margin-top: 0.75rem;
  color: var(--text-secondary);
}
.expo-card-content .learn-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--gold-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}
.expo-card-content .learn-more:hover {
  color: var(--dark-gold-color);
}
/* --- 6. 美業快訊新聞 --- */
.news-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: flex-start;
  text-align: left;
}
.featured-news-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.featured-news-img-wrapper {
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
}
.featured-news-img-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s;
}
.featured-news-link:hover .featured-news-img-wrapper img {
  transform: scale(1.05);
}
.featured-news-content {
  margin-top: 1rem;
}
.featured-news-content .date {
  font-size: 0.875rem;
}
.featured-news-content h3 {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  transition: color 0.3s;
}
.featured-news-link:hover .featured-news-content h3 {
  color: var(--gold-color);
}
.featured-news-content p {
  margin-top: 0.75rem;
}
.news-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.news-list-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
}
.news-list-item img {
  width: 8rem;
  height: 6rem;
  object-fit: cover;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  transition: transform 0.3s;
  border-radius: 0.5rem;
}
.news-list-item:hover img {
  transform: scale(1.05);
}
.news-list-item h4 {
  margin-top: 0.25rem;
  font-weight: 700;
  font-size: 1.125rem;
  transition: color 0.3s;
}
.news-list-item:hover h4 {
  color: var(--gold-color);
}
/* --- 7. 熱門話題 --- */
.topics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.topic-card {
  position: relative;
  display: block;
  background-color: #111827;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  border-radius: 0.5rem;
}
.topic-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  transition: all 0.5s;
}
.topic-card:hover .topic-card-bg {
  opacity: 0.4;
  transform: scale(1.1);
}
.topic-card-content {
  position: relative;
  padding: 2rem;
  color: white;
}
.topic-card-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
}
.topic-card-content p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #d1d5db;
}
/* --- Concept Section --- */
.concept-layout {
  display: flex;
  flex-direction: column; /* Mobile-first: stacked */
  align-items: center;
  gap: 2rem;
}
.concept-image {
  width: 100%;
  max-width: 300px; /* Limit image size on mobile */
}
.concept-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}
.concept-text {
  text-align: center;
}
.concept-text .section-title {
  text-align: center;
}
.concept-text p {
  text-align: left;
}
/* --- Page Header (NEW) --- */
.page-header {
  padding: 1rem 1rem;
  margin-bottom: 1rem;
  background-color: var(--light-gold-color);
  background-image: url('');
  background-blend-mode: overlay;
  background-size: cover;
  background-position: center;
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin: 0;
}
/* --- 法規專區頁面樣式 --- */
.regulation-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.regulation-intro-image {
  width: 100%;
  max-width: 400px;
  border-radius: 0.75rem;
}
.regulation-intro-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: left;
}
.full-width-image {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
}
.expert-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.expert-photo {
  width: 200px;
  height: 200px;
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.expert-info {
  text-align: left;
}
.expert-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}
.expert-info .title {
  color: var(--gold-color);
  font-weight: 600;
  margin-bottom: 0rem;
  text-align: center;
}
.expert-info .bio {
  text-align: left;
  color: var(--text-secondary);
}
.social-qr-codes {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.qr-code-item {
  text-align: center;
}
.qr-code-item img {
  width: 150px;
  height: 150px;
  border: 1px solid #eee;
  padding: 0.5rem;
  border-radius: 0.5rem;
}
.qr-code-item p {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}
/* --- Pagination  --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin-top: 3rem;
  gap: 0.5rem;
}
.page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  transition: all 0.3s;
}
.page-item .page-link:hover {
  border-color: var(--gold-color);
  color: var(--gold-color);
}
.page-item.active .page-link {
  background-color: var(--gold-color);
  border-color: var(--gold-color);
  color: white;
  font-weight: 700;
}
.page-item.disabled .page-link {
  color: #d1d5db;
  cursor: not-allowed;
}
.page-item.disabled .page-link:hover {
  border-color: #d1d5db;
}
/* --- 公司簡介頁面樣式 --- */
.hero-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  display: block; /* Remove bottom space */
}
.company-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  padding-top: 1rem; /* Add some space at the top */
}
.company-logo {
  width: 120px;
  height: auto;
  object-fit: contain;
}
.company-details h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}
.company-details .country {
  font-size: 1rem;
  color: var(--text-primary);
  margin-top: 0.25rem;
}
.company-stats {
  /*display: flex;*/
  gap: 1rem;
  margin-top: 1rem;
  color: var(--text-primary);
  font-size: 0.875rem;
}
.company-stats span:not(:last-child) {
  border-right: 1px solid #e5e7eb;
  padding-right: 1rem;
}
.contact-info-grid {
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 2rem;
}
.contact-info-item {
  display: flex;
  font-size: 0.875rem;
}
.contact-info-label {
  width: 106px;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-primary);
}
.contact-info-value {
  color: var(--text-thirdary);
}
.company-description {
  padding: 2rem 0;
  line-height: 1.8;
  border-top: 1px solid #e5e7eb;
  color: var(--text-thirdary);
}
.section-divider {
  border: 0;
  height: 1px;
  background-color: #e5e7eb;
  margin: 2rem 0;
}
.product-showcase h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--gold-color);
  padding-left: 1rem;
}
.product-carousel {
  position: relative;
  overflow: hidden;
  padding: 1rem;
}
.product-category {
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.product-category_2 {
  font-size: 0.8rem;
  color: var(--text-thirdary);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
/* --- 8. Footer --- */
.main-footer {
  background-color: var(--bg-dark);
  color: white;
  padding-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}
.footer-grid h4 {
  font-weight: 600;
  color: #e5e7eb;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-grid a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-grid a:hover {
  color: var(--gold-color);
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}
/* --- 9. AI 客服 --- */
.ai-chat-widget {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 40;
}
.ai-chat-button {
  background-color: var(--gold-color);
  color: white;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.ai-chat-button:hover {
  background-color: var(--dark-gold-color);
  transform: scale(1.1);
}
.ai-chat-button svg {
  width: 2rem;
  height: 2rem;
}
.ai-chat-window {
  display: none;
  position: absolute;
  bottom: 5rem;
  right: 0;
  width: 20rem;
  height: 24rem;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  border: 1px solid #e5e7eb;
}
.ai-chat-window.show {
  display: flex;
}
.ai-chat-header {
  padding: 1rem;
  background-color: #f3f4f6;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.ai-chat-header h3 {
  font-weight: 700;
}
.ai-chat-header p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.ai-chat-body {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
}
.ai-chat-body .message {
  background-color: #e5e7eb;
  padding: 0.75rem;
  border-radius: 0.5rem;
  max-width: 83.333333%;
  font-size: 0.875rem;
}
.ai-chat-footer {
  padding: 0.5rem;
  border-top: 1px solid #e5e7eb;
}
.ai-chat-footer input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  outline: none;
}
.ai-chat-footer input:focus {
  border-color: var(--gold-color);
  box-shadow: 0 0 0 2px rgba(192, 158, 109, 0.5);
}
/* ---login --*/
/* --- 主要容器 --- */
.login-container {
  width: 100%;
  max-width: 28rem; /* 448px */
  margin: 1.5rem auto;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem; /* 8px */
  padding: 2.5rem 2rem;
}
.input-wrapper {
  position: relative;
}
.input-with-icon {
  padding-right: 3rem; /* Make space for the icon */
}
/* 密碼可視性切換按鈕 */
.password-toggle {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
}
/* --- 額外選項 (記住我/忘記密碼) --- */
.extra-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.forgot-password-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}
.forgot-password-link:hover {
  color: var(--gold-color);
}
.login-button {
  width: 100%;
  background-color: var(--gold-color);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.login-button:hover {
  background-color: var(--dark-gold-color);
}
/*隱私權頁面 */
.privacy-container {
  width: 100%;
  max-width: 56rem; /* 896px */
  margin: 1rem auto;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem; /* 8px */
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
/* --- 頁首 --- */
.privacy-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}
.privacy-header h1 {
  font-size: 1.5rem; /* 24px */
  font-weight: 600;
  margin: 0;
}
/* --- 內文區塊 --- */
.privacy-content {
  padding: 1.5rem;
  overflow-y: auto; /* Make content scrollable */
  flex-grow: 1;
}
.privacy-content h2 {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.25rem;
}
.privacy-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
}
/* --- 頁尾 --- */
.privacy-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: #f9fafb;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}
.agreement-section {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}
.agreement-section input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  accent-color: var(--gold-color);
}
.agreement-section label {
  font-size: 0.875rem;
  color: var(--text-primary);
}
.button-group {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}
.btn {
  padding: 0.6rem 1.5rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-cancel {
  background-color: white;
  border-color: #d1d5db;
  color: var(--text-primary);
}
.btn-cancel:hover {
  background-color: #f3f4f6;
}
.btn-next {
  background-color: var(--gold-color);
  color: white;
  border-color: var(--gold-color);
}
.btn-next:hover {
  background-color: var(--dark-gold-color);
}
.btn-next:disabled {
  background-color: #d1d5db;
  border-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
}
/* --- 註冊連結 --- */
.register-link-wrapper {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-primary);
}
.register-link {
  color: var(--gold-color);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}
.register-link:hover {
  color: var(--dark-gold-color);
}
/*---Signsup ---*/
.signup-container {
  width: 100%;
  max-width: 42rem; /* 672px */
  margin: 1.5rem auto;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem; /* 8px */
  padding: 2rem;
}
/* --- Logo --- */
.logo-wrapper {
  text-align: center;
  margin-bottom: 2rem;
}
.logo {
  display: inline-block;
  font-size: 1.875rem; /* 30px */
  font-weight: 700;
  letter-spacing: 0.1em;
  font-family: 'Montserrat', sans-serif;
  color: var(--gold-color);
  text-decoration: none;
}
/* --- 步驟指示器 --- */
.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.step {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.step-inactive {
  background-color: var(--step-inactive-color);
  color: #9ca3af;
}
.step-active {
  background-color: var(--step-active-color);
  color: white;
  box-shadow: 0 4px 10px rgba(192, 158, 109, 0.4);
}
.step-line {
  height: 2px;
  width: 100%;
  max-width: 4rem; /* Max width on large screens */
  background-color: var(--step-inactive-color);
}
/* --- 身份選擇 --- */
.role-selection {
  text-align: center;
  margin-bottom: 2rem;
}
.role-selection h2 {
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  margin-bottom: 1rem;
}
.role-buttons {
  display: flex;
  flex-direction: column; /* UPDATED: Mobile-first is column */
  align-items: center;
  gap: 0.75rem;
}
.role-button {
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  border: 2px solid var(--step-inactive-color);
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 250px;
}
.role-button:hover {
  border-color: #d1d5db;
}
.role-button.active {
  border-color: var(--gold-color);
  background-color: #fffbeb;
  box-shadow: 0 0 0 3px rgba(192, 158, 109, 0.2);
}
/* --- 表單通用樣式 --- */
.form-section, .form-step {
  /* display: none; All steps hidden by default */
}
.form-section.active, .form-step.active {
  display: block;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.input-group {
  display: flex;
  gap: 0.5rem;
}
.input-group .form-input {
  flex-grow: 1;
}
.form-input, .form-select {
  margin-top: 0.25rem;
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem; /* 6px */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.form-input::placeholder {
  color: #9ca3af;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold-color);
  box-shadow: 0 0 0 1px var(--gold-color);
}
.form-subtitle {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.btn-secondary {
  padding: 0.5rem 1rem;
  background-color: #e5e7eb;
  color: var(--text-primary);
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 0.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-secondary:hover {
  background-color: #d1d5db;
}
/* --- Checkbox Group --- */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr; /* UPDATED: Mobile-first is 1 column */
  gap: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 1rem;
  margin-top: 0.25rem;
}
.checkbox-item {
  display: flex;
  align-items: center;
}
.checkbox-item input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  accent-color: var(--gold-color);
}
.checkbox-item label {
  font-size: 0.5em;
}
/* --- 提交按鈕 --- */
.submit-wrapper {
  margin-top: 2.5rem;
  text-align: center;
  display: none; /* Initially hidden */
}
.submit-button {
  width: 100%;
  max-width: 250px;
  background-color: var(--gold-color);
  color: white;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.submit-button:hover {
  background-color: var(--dark-gold-color);
}
.verify-info {
  text-align: center;
}
.info-text {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  color: var(--text-primary);
}
.info-email {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.info-prompt {
  margin-bottom: 2rem;
  color: var(--text-secondary);
}
.code-inputs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.code-input {
  width: 3.5rem;
  height: 4rem;
  text-align: center;
  font-size: 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.code-input:focus {
  outline: none;
  border-color: var(--gold-color);
  box-shadow: 0 0 0 2px rgba(192, 158, 109, 0.4);
}
.resend-wrapper {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-primay);
  text-align: center;
}
.resend-link {
  color: var(--gold-color);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
}
.resend-link:hover {
  color: var(--dark-gold-color);
}
/* --- Password Step Specific --- */
.password-rules {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.password-rules li {
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
}
.password-rules svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  color: #d1d5db; /* Default color */
}
.password-rules li.valid svg {
  color: #10b981; /* Green for valid */
}
/* --- Breadcrumb (NEW) --- */
.breadcrumb {
  font-size: 0.875rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}
.breadcrumb li {
  display: flex;
  align-items: center;
}
.breadcrumb li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb li a:hover {
  color: var(--gold-color);
}
.breadcrumb li:not(:last-child)::after {
  content: '>';
  margin: 0 0.75rem;
  color: #d1d5db;
}
.breadcrumb li[aria-current="page"] {
  color: var(--text-gray);
  font-weight: 500;
}
/* --- Product Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Mobile: 2 columns */
  gap: 1.5rem;
}
.product-grid a {
  text-decoration: none;
}
.product-card {
  background-color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 100 / 56; /* Square aspect ratio */
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info {
  padding: 1rem;
}
.product-info p {
  margin-bottom: 0px;
}
.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  /* Truncate long text */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-company, .product-origin {
  font-size: 0.875rem;
  color: var(--text-gray);
  margin-top: 0.25rem;
}
/*filter bar*/
.filter-wrap {
  max-width: 1200px;
  margin: 24px auto;
}
/* 輔助：隱藏但保留可讀性（無障礙） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}
/* 工具列 */
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
}
.filter-trigger {
  position: relative;
  display: inline-block;
} /* 桌機錨點 */
.filter-trigger .panel {
  background-color: rgba(255, 255, 248, 0.95);
}
.spacer {
  flex: 1
} /* 把右側按鈕推到最右 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: #374151
}
.btn svg {
  width: 16px;
  height: 16px
}
.btn-primary {
  background: var(--gold-color);
  border-color: var(--gold-color);
  color: #fff
}
.btn.active {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}
/* 右側「圖片 / 影片」圖示按鈕 */
.view-toggle {
  display: flex;
  gap: 8px;
  align-items: center
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: transparent;
  cursor: pointer;
  color: #9ca3af;
  transition: all .2s ease;
}
.icon-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}
.icon-btn.active {
  background: #eef2ff;
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}
.icon-btn svg {
  width: 24px;
  height: 24px
}
/* 面板共用 */
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18)
}
.panel-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line)
}
.panel-hd h2 {
  margin: 0;
  font-size: 16px
}
.close-btn {
  border: 0;
  background: none;
  padding: 4px;
  cursor: pointer
}
.panel-bd {
  padding: 16px
}
.group {
  margin-bottom: 18px
}
.group-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  cursor: pointer
}
.group-hd h3 {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.group-hd svg {
  transition: transform .25s
}
.group-hd.open svg {
  transform: rotate(180deg)
}
.group-bd {
  overflow: hidden;
  max-height: 0;
  transition: max-height .28s ease
}
.group-bd.open {
  max-height: 520px
}
.checkbox-item {
  display: flex;
  gap: 0px;
  align-items: center;
  padding: 6px 0;
}
.panel-ft {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  justify-content: flex-end
}
.panel-ft .btn {
  min-width: 92px;
  justify-content: center
}
/* 手機：底部滑出 Bottom Sheet */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
  z-index: 60
}
.overlay.show {
  opacity: 1;
  visibility: visible
}
#mobileHost {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 61
}
#mobileHost.show {
  display: block
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(100%);
  transition: transform .28s ease;
  display: flex;
  justify-content: center
}
#mobileHost.show .sheet {
  transform: translateY(0)
}
#mobileHost .panel {
  width: 100%;
  max-width: none;
  border-radius: 16px 16px 0px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
  background-color: rgba(255, 255, 248, 0.95);
  z-index: 1100;
}
#mobileHost .panel-bd {
  max-height: 70vh;
  overflow: auto
}
#mobileHost .grab {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #d1d5db;
  margin: 8px auto 0
}
/* --- 響應式設計 (Responsive) --- */
@media (min-width: 540px) { /* 在這裡新增一個斷點 */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr); /* 螢幕寬於 540px 時變為兩排 */
    grid-column-gap: 0rem;
  }
}
@media (min-width: 640px) { /* sm */
  .container {
    padding-left: 4.5rem;
    padding-right: 4.5rem;
  }
  .section {
    padding-top: 1rem;
    padding-bottom: .5rem;
  }
  .cta-button {
    display: block;
  }
  .language-selector {
    display: block;
  }
  .lang-button {
    padding: 0.5rem 1rem;
  }
  .lang-button .lang-text, .lang-button .lang-chevron {
    display: inline;
  }
  .mobile-menu-btn {
    display: none;
  }
  .expo-grid, .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .role-buttons {
    flex-direction: row; /* UPDATED: Row layout for wider screens */
    justify-content: center;
    gap: 1rem;
  }
  .role-button {
    width: auto;
  }
  .checkbox-group {
    grid-template-columns: repeat(2, 1fr); /* UPDATED: 2 columns for wider screens */
  }
  .social-qr-codes {
    flex-direction: row;
    justify-content: center;
  }
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  } /* 2 columns on wider screens */
}
	
@media (min-width: 768px) { /* md */
  .header-search {
    display: flex;
  }
  .search-toggle {
    display: none;
  }
  .search-panel {
    display: none !important;
  } /* 桌機不顯示手機面板 */
  .mobile-menu-btn {
    display: none
  }
  .search-desktop {
    display: inline-flex;
    width: clamp(240px, 24vw, 380px);
  }
  .search-desktop input {
    width: 100%;
    height: 38px;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 0 2.6rem 0 .9rem;
    font-size: .95rem;
    outline: none;
  }
  .search-desktop input:focus {
    border-color: var(--gold-color);
    box-shadow: 0 0 0 3px rgba(172, 165, 97, .15);
  }
  .search-desktop .search-desktop-icon {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 9999px;
    cursor: pointer;
    color: var(--text-secondary);
  }
  .search-desktop .search-desktop-icon:hover {
    background: #f3f4f6;
  }
  .profile-button {
    width: 40px;
    height: 40px;
  }
	.cta-button {
    display: block;
  }
	.main-nav {
    display: flex;
    gap: 1.5rem;
  }
.nav-item-dropdown {
    position: relative;
  }

  /* 在桌機上，讓下拉選單相對於「產業」按鈕來定位 */
  .menu-panel {
    top: calc(100% + 8px); /* 位置：從父元素底部再往下 8px */
    left: 0;               /* 位置：與父元素左側對齊 */
    width: var(--panel-w); /* 寬度：使用您預設的 520px 寬度 */
    
    border: 1px solid var(--line); /* 桌機版加上邊框 */
    border-radius: 10px;       /* 桌機版加上圓角 */
    border-top: none;          /* 桌機版不需要頂部邊框 */
  }
  .mobile-menu-btn {
    display: none;
  }
  .hero-banner {
    height: 300px;
  }
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 5rem;
  }
  .news-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .concept-layout {
    flex-direction: row;
    text-align: left;
  }
  .concept-image {
    width: 20%;
    flex-shrink: 0;
    max-width: none;
  }
  .concept-text {
    width: 80%;
    text-align: left;
  }
  .concept-text .section-title {
    text-align: left;
  }
  .regulation-intro {
    flex-direction: row;
    text-align: left;
    padding: 0rem 4rem;
  }
  .regulation-intro-image {
    width: 40%;
    flex-shrink: 0;
  }
  .regulation-intro-text {
    width: 60%;
  }
  .expert-profile {
    flex-direction: row;
    text-align: left;
    padding: 0rem 4rem;
    align-items: flex-start;
  }
  .expert-info {
    text-align: left;
  }
  .expert-info h3, .expert-info .title {
    text-align: left;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .overlay, #mobileHost {
    display: none !important
  }
  .filter-trigger .panel {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: min(960px, calc(100vw - 32px));
    display: none;
    background-color: rgba(255, 255, 248, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
  }
  .filter-trigger.is-open .panel {
    display: block;
    z-index: 1100;
  }
  .panel-hd {
    display: none
  }
  .panel-bd {
    max-height: 70vh;
    overflow: auto
  }
  .group {
    margin: 0 0 16px 0
  }
  .group-hd {
    border: 0;
    padding: 0 0 8px 0
  } /* 桌機可收合 */
  .group-bd {
    max-height: none
  }
  .checkbox-item {
    display: inline-flex;
    padding: 0;
    margin-right: 16px;
    margin-bottom: 8px
  }
  .panel-ft {
    border-top: 0;
    padding-top: 0
  }
  .hero-image {
    height: 300px;
  }
  .company-header {
    flex-direction: row;
    text-align: left;
  }
}
@media (min-width: 1024px) { /* lg */
  .main-nav {
    gap: 2rem;
  }
  .expo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-row-gap: 2rem;
  }
}
	
/* --- 請在 CSS 最下方加入這整段 --- */
@media (max-width: 767px) {
  .main-nav .container {
    flex-wrap: nowrap;     /* 禁止項目換行 */
    overflow-x: auto;      /* 允許橫向捲動 */
    

    /* 隱藏滾動條 */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
  }

  .main-nav .container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
  }

  .main-nav .container .nav-link,
  .main-nav .container .nav-item-dropdown {
	  
      flex-shrink: 0; /* 確保項目在空間不足時不會被壓縮 */
  }
}	
