@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
}

 h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  padding-top: 18px;
}
h5{
  text-align: center;
}

h6{
  color: brown;
}

/* ========== 通用：段落與清單 ========== */
.text-content, .modal-body, .shop-detail, #news, #gallery, #shop {
  line-height: 1.8;
  word-break: break-all;         /* 中文可換行，避免爆版 */
  overflow-wrap: break-word;     /* 英文/數字長字可斷行 */
}

/* 網址/長英數：更積極斷行（選用在含網址的容器） */
.has-url, .news-text {
  overflow-wrap: anywhere;       /* 任何位置允許換行(不影響中文字觀感) */
}

/* ========== 導覽列（桌機）：維持單行 ========== */
@media (min-width: 992px){
  #navMenu .navbar-nav { flex-wrap: nowrap; }
  #navMenu .nav-link   { white-space: nowrap; word-break: normal; }
}

/* ========== 標題（避免尷尬拆字） ========== */
h1, h2, h3, h4, h5, h6 {
  word-break: keep-all;          /* 優先整詞顯示 */
  overflow-wrap: break-word;     /* 不夠寬時才斷在詞邊 */
}

/* ========== 地址 / 電話：一行顯示 ========== */
.address, .phone, .shop-addr {
  white-space: nowrap;
}

/* ========== 表格（商店品項）：小螢幕也不溢出 ========== */
.table { table-layout: fixed; }  /* 固定欄寬，避免拉爆 */
.table td, .table th {
  word-break: break-word;
}

/* ========== 務必要斷在頓號後（少用，視覺需求時） ========== */
/* 在 HTML 用 &ZeroWidthSpace; 或 &#8203; 插在「、」後更精準 */
/* .force-break { word-break: break-all; } */

/* ========== 卡片摘要（兩行省略） ========== */
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== Modal 內文：左對齊好讀，圖片與縮圖統一 ========== */
.modal-body .news-text { text-align: left; }
.hero-img { max-height: 320px; width: 100%; object-fit: cover; }
.thumbs .thumb { width:110px; height:80px; object-fit:cover; }

/* ========== 關鍵字高亮（可用於重要詞） ========== */
.keyword {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  text-decoration-color: #2f6f79;
  font-weight: 600;
}



/* 導覽列樣式 */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
}

nav .logo {
  font-weight: bold;
  font-size: 20px;
  color: #333;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a , .logo a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.2s;
}

nav ul li a:hover , .logo a:hover {
  color: #007bff;
}

nav ul li.nav-item{
  width: 100%;
}

nav img{
  width: 70px;
}





/* 區塊通用樣式 */
section {
  padding: 100px 0 20px 60px;
  min-height:auto;
}

/* 主頁樣式 */
#hero {
  background-color: #3366;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 105vh;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 79px 0 0 0;
  overflow: hidden;
  padding-top: 79px;
}

#hero img {
  object-fit: fill;
  height: auto;
}

#hero h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

#hero p {
  font-size: 1.2em;
}


#news{

  max-width: 960px;
  margin: 0 auto;
}



#gallery{

  max-width: 960px;
  margin: 0 auto;
}


/* 關於我們 */
#about {
  max-width: 960px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}



#about h3 {
  font-size: 1.5rem;
  margin-top: 40px;
  color: #555;
}

#about p {
  margin-bottom: 20px;
}


/* 文字斷行與閱讀性 */
.news-text p{
  /*word-break: keep-all;        中文不亂拆字 */
  overflow-wrap: break-word;  /* 長網址/英數超長時換行 */
  line-height: 1.8;
  margin-bottom: .8rem;
  text-align: left;           /* 長段落較好讀；要置中可改 text-align:center */
}

/* 大圖可限制高度以避免過長 */
.hero-img{
  max-height: 320px;
  object-fit: cover;          /* 超出等比裁切 */
  width: 100%;
}

/* 小縮圖統一尺寸 */
.thumbs .thumb{
  width: 110px;
  height: 80px;
  object-fit: cover;
}




#gallery img {
  object-fit: cover;
  transition: transform 0.3s ease;
}
#gallery img:hover {
  transform: scale(1.05);
}

#gallery .card-body .img-fluid {
  width:auto;       
  height: 240px;        /* 固定高度 */
  object-fit: cover;   /* 裁切而不是壓縮變形 */
}



/* 商店介紹 */
#shop {
  background: #f5f5f5;
}

.shop-item {
  
  margin: 20px 0;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: background 0.3s;
    scroll-margin-top: 80px; /* 依你的 nav 高度調整 */
}

.shop-item:hover {
  background: #f0f8ff;
}

.shop-item h3 {
  margin-bottom: 12px;
  text-align: center;
  font-size: 1.5em;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
}

.shop-detail {
  display: none;
  margin-top: 10px;
  max-height:none;
  overflow-y: auto;
  padding-right: 10px;
  color: #555;
}
.shop-detail img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
  border-radius: 8px;
}

.shop-item.active .shop-detail {
  display: block;
}

.shop-detail {
  background: url('../images/wulai_0.png') center center no-repeat;
  background-size: cover;       /* 保持鋪滿 */
  background-attachment: fixed; /* 固定背景，不隨捲動 */
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 15px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2c3e50;
  text-align: center;
}


/* 移除表格預設背景，保持透明 */
.table {
  background-color: transparent !important;
  border-collapse: separate; /* 保持圓角 & 邊框效果 */
}

/* 表格列預設透明 */
.table-hover tbody tr {
  background-color: transparent;
}

/* 滑鼠移上去才高亮 */
.table-hover tbody tr:hover {
  background-color: #f5f6f708; /* 你可以換成 #f0f8ff 或其他淡色 */
}

/* 表格儲存格也保持透明 */
.table td, 
.table th {
  background-color: transparent !important;
  border: none; /* 如果你不要邊框，可以加這行 */
}




.shop-detail h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #2b2b2b;
}

.shop-detail p {
  margin: 8px 0;
}

.shop-detail strong {
  color: #284b92;
  font-weight: bold;
}

.shop-detail img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto 0;
  border-radius: 8px;
    text-align: center;
}


/* 其他連結 */
#links {
  background: #ffffff;
  text-align: center;
}

.link-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  width: 100px;
  transition: transform 0.2s;
}

.link-item:hover {
  transform: scale(1.05);
}

.link-item img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

.link-icons img{
    width:auto;
    height: 50px;
    margin: 20px;
}

#fb-root{
  display: inline;
  flex-wrap: wrap;
  justify-content: center;
}

.counterapi {
margin-top: 20px;
    margin-bottom: -35px;
}


.counterapi span{
    font-size:12px;
    color: #000;
    font-family: sans-serif;

}

a:link,a:visited,a:hover,a:active{
  text-decoration:none;
}


/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin: 20PX 0 0 0;
    background: #eee;
    font-size: 0.9em;
    background-color: #8b979b;
    color: white;
}

/* 響應式調整 */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  section {
    padding-top: 120px;
  }

  @media screen and (max-width: 768px) {


  #hero {
    height: auto;
  }

.carousel-inner {
    overflow: visible;
}


  #about,#news,#gallery,#links {
    padding: 65px 16px;
    font-size: 1rem;
  }

  #about h2 {
    font-size: 1.6rem;
  }

  #about h3 {
    font-size: 1.3rem;
  }
  #shop {
    padding: 65px 16px;
    font-size: 1rem;
  }
  .shop-detail {
    font-size: 1rem;
    padding: 16px;
    display: none;
  }

  .shop-detail h4 {
    font-size: 1.15rem;
  }

  .shop-item h3 {
    font-size: 1.3em;
    cursor: pointer;
  }

  
  .link-grid {
    flex-direction: column;
    gap: 20px;
  }
}

}

