html{
    font-size: 16px;
    font-family: Arial, sans-serif;
}
/*test*/
body {
    font-family: "Lato", sans-serif;
}


.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #f1f1f1;
}

.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

.openbtn {
    font-size: 20px;
    cursor: pointer;
    background-color: #111;
    color: white;
    padding: 10px 15px;
    border: none;
}

.openbtn:hover {
    background-color: #444;
}

#main {
    transition: margin-left .5s;
    padding: 16px;
}


/*header & navbar styles*/
header {
    display:flex;
    justify-content: space-between;
    padding: 10px;
    position: sticky;
    top:0;
    width: 100%;
    background-color: white;
    z-index: 1000; /* Ensures header stays above carousel and other content */
}
.Logo{
    align-self: flex-start;
    text-decoration: none;
    color:black;
    font-size: 1.2rem;

}

/* 1. 徹底去除按鈕醜框 */
.navbar-toggler, 
.navbar-toggler:focus, 
.navbar-toggler:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

nav{
    display: flex;
    align-items: center;
}

.nav-text{
    margin: 5px 15px;
    text-decoration: none;
    color: black;
}

.nav-item{
    display: flex;
    flex-direction: column;
    align-items: center;
}


/*carousel styles*/



/*marketing features*/
.row{
    text-align: center;
}

.col-md-7{
   text-align: left;
}

.col-md-5{
    text-align: right;
}

.col-md-5.order-md-1{
    text-align: left;
}

.btn.btn-secondary{
    background-color: #ff6100;
    border-style: none;
}

.text-muted-2{
    font-size: 1.5rem;
    color:#818181
}
.lead{
    font-size: 0.5rem;
    color: black;
}


/*Service Page*/
.service-section {
  width: 100%;
  padding-top: 60px;   /* 加大間距，避開導覽列並留出呼吸空間 */
  padding-bottom: 60px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  flex: 1;              /* 【核心設定】讓這塊內容自動撐滿剩餘空間，強迫 Footer 置底 */
}

/* 主、副標題區塊 */
.section-header {
  width: 100%;          /* 關鍵：強制佔滿整個螢幕/父容器寬度 */
  text-align: center;
  margin-bottom: 50px;
  padding: 0 20px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #111111;
  margin: 0 0 12px 0;
  letter-spacing: 1px;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  margin-bottom: 20px;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 12s linear infinite;
  color: #ff5500; /* 配合右下角 LINE 按鈕的橘色主題 */
  font-weight: bold;
  font-size: 1.8rem;
}

@keyframes marquee {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

/* =================================================== */
/* 修正 2：解決手機版卡片擠壓變形（新增 RWD 響應式斷點） */
/* =================================================== */

/* 桌機版：預設橫向並排 */
.service-container {
  display: flex;
  flex-direction: row;       /* 1. 預設改為【橫向排列】 */
  flex-wrap: wrap;           /* 2. 空間不夠時自動折行（變直排） */
  justify-content: center;   /* 3. 關鍵：讓所有卡片在畫面上【水平居中】 */
  align-items: stretch;      /* 4. 關鍵：讓同排卡片【高度自動拉到一樣高】 */
  gap: 40px;               /* 卡片之間的間距 */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* 圓角陰影卡片本體 */
.service-card {
  flex: 1;
  min-width: 300px;        /* 【終極大招】強迫卡片最少要有 300px 寬！文字再也不會被擠扁 */
  max-width: 350px;        /* 【新增】限制最大寬度，防止在大螢幕上過度橫向變形 */
  margin: 0 auto;             /* 關鍵招式：當卡片被 max-width 限制時，自動左右外距置中！ */
  display: flex;
  flex-direction: column;
  min-height: 450px;
  border-bottom: 10px solid #e0e0e0;
  border-right: 10px solid #e0e0e0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
  overflow: hidden;
}

/* 上半部 1/3：服務項目 */
.card-header {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 40px 0px 40px;   /* 【調整】左右內襯加大到 40px，保護標題不碰壁 */
  border-bottom: 10px solid #eeeeee;
  text-align: center;
}

.card-header h2 {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333333;
}

/* 卡片內部分割線樣式 */
.card-divider {
  border: none;
  height: 1px;
  background-color: rgba(8, 8, 8); /* 淺灰色線條 */
  margin: 0px auto 20px auto;   /* 上邊距改為 8px（讓分隔線貼近價格），下邊距保持 20px */
  width: 80%;                /* 寬度佔卡片的 80%，留點左右邊界更美觀 */
}

/* 下半部 2/3：價目與細節 */
.card-body {
  flex: 2;
  display: flex;
  flex-direction: column;
  padding: 40px;  
  box-sizing: border-box; /* 確保內襯不會把卡片撐變形 */
  min-width: 0;            /* 【新增】全域核心：允許 Flex 子元素縮小到小於文字長度，這是觸發換行的關鍵 */
}

.card-body .price {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  color: #222222;
}

.card-body .details {
  font-size: 1.2rem;
  color: #666666;
  line-height: 2;
  text-align: center;
  width: 88%;             /* 【新增】確保寬度填滿 */
  word-break: break-all;   /* 【新增】最強制換行：一旦碰到底部 40px 的 Padding 邊界，文字就必須自動折行 */
  padding-left: 10%;
}

/* 讓清單項目文字排版更漂亮 */
.details ul {
  list-style-type: disc;     /* 保持圓點 */
  padding-left: 20px;         /* 控制圓點縮排距離 */
  margin: 0;
  text-align: left;           /* 關鍵：強制文字靠左對齊 */
}

.details li {
  margin-bottom: 12px;        /* 每個條目之間的間距 */
  line-height: 1.6;           /* 調整行高，讓換行時看起來更舒服不擁擠 */
  padding-left: 4px;          /* 圓點與文字之間的微小間距 */
}

/* 【手機版斷點】當螢幕寬度小於 768px 時自動切換 */
@media (max-width: 768px) {
  .service-container {
    flex-direction: column; /* 關鍵：將橫向排版改為垂直單欄排列（服務 2、3 自動往下推） */
    gap: 20px;              /* 稍微縮小手機版的卡片間距 */
  }

  .service-card {
    min-height: auto;       /* 取消手機版的固定高度，讓卡片高度隨文字內容彈性撐開，畫面更靈活 */
  }
}



/*Contact Page*/
.btn.btn-primary.btn-lg{
    background-color: #ff6100;
    border-style: none;
}

/*Footer*/
footer{
    background-color: #ff6100;
    text-align: center;
    vertical-align: middle;
    color: white;
    padding-top: 10px;
}

.termsprivacy a {
  color: #eeeeee;
}

/*terms*/
/* 容器整體置中與內距 */
.policy-container {
  max-width: 800px; /* 限制最大寬度，確保閱讀體驗 */
  margin: 0 auto;
  padding: 60px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111111;
  line-height: 1.6;
}

/* 頂部標題區樣式 */
.policy-header {
  display: flex;
  flex-direction: column; /* 核心修正：強制裡面的標題由上往下垂直排列 */
  margin-bottom: 48px;
}

.policy-title {
  font-size: 2.5rem; /* 56px */
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px 0;
  line-height: 1.1;
}

.policy-subtitle {
  display: block;
  width: 100%;
  font-size: 1.5rem; /* 36px */
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
  color: #999;
}

/* 文章內容段落樣式 */
.policy-content {
  margin-top: 40px;
}

.policy-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 1rem; /* 16px */
  font-weight: 700;
  text-transform: uppercase; /* 強制大寫 */
  letter-spacing: 0.05em;
  margin: 0 0 12px 0;
  color: #111111;
}

.policy-section p {
  font-size: 1.05rem;
  color: #333333;
  margin: 0 0 16px 0;
}

/* 手機版 RWD 調整 */
@media (max-width: 768px) {
  .policy-container {
    padding: 40px 16px;
  }
  
  .policy-title {
    font-size: 2.5rem;
  }
  
  .policy-subtitle {
    font-size: 1.65rem;
  }
}

/*privacy*/




.line-float-btn {
  position: fixed;    /* 關鍵：讓按鈕固定在螢幕上，不隨網頁滾動 */
  bottom: 100px;       /* 距離底部 20px */
  right: 20px;        /* 距離右邊 20px */
  width: 80px;
  height:80px;
  background-color: #ff6100; 
  color: white;
  border-radius: 50%; /* 圓形外觀 */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  z-index: 9999;      /* 確保它永遠在最上層，不會被其他元件擋住 */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s; /* 增加一點點動態美感 */
}

.line-float-btn:hover {
  transform: scale(1.1); /* 滑鼠移上去稍微放大，更有互動感 */
}


/* ==========================================
   全站 Footer 置底與手機版響應式 RWD 補強設定
   ========================================== */

/* 確保全域的最外層填滿整個瀏覽器畫面 */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 讓網頁高度至少跟螢幕一樣高 */
}

/* 【手機版斷點】當螢幕寬度小於 768px 時自動切換 */
@media (max-width: 1024px) {
  .service-container {
    flex-direction: column; /* 將卡片改為垂直單欄排列 */
    gap: 30px;              /* 手機版卡片之間的間距 */
  }

  .service-card {
    min-height: auto;       /* 取消固定高度，讓手機版依文字內容彈性伸縮 */
  }
}