.phone-1{position:fixed;right:1%;top:50%;z-index:1000;}
.phone-2{position:fixed;right:1%;top:65%;z-index:1000;}
.line-1{position:fixed;right:1%;top:80%;z-index:1000;}

/*手機版-側欄浮動按鈕-縮小*/
@media (max-width: 430px){ 
  .phone-1, .phone-2, .fb, .line-1, .ig, .map, .wechat, .shop-1, .x-twitter, .pixnet, .youtube-1, .tiktok , .thread , .messenger-link , .mail-1 { 
    transform: scale(0.8);
    right:0;
  }
}

/*根元素*/
:root{
--bg:#ffffff; /* 背景(白) var(--bg)*/
--p:#000000; /* 段落文字 var(--p)*/
--card:#f1f1f1; /* 卡片底(淺灰) var(--card)*/
--text:#0451a3; /* 主要文字(藍) var(--text)*/
--text2:#ffca00; /* h3次要文字(橘黃) var(--text2)*/
--text3:#dd6b20; /* h4次要文字(暗橘) var(--text3)*/
--text4:#718096; /* 次要文字(灰藍) var(--text4)*/
--shadow: 0 5px 10px rgba(0,0,0,.25); /* 陰影 var(--shadow)*/
--gradient: linear-gradient(120deg, #244465 0%, #0451a3 100%); /* 漸層 var(--gradient)*/
}

/*logo&頁籤選單文字區塊左右靠齊*/
.topnavbar {
    background-color: #00346b;/*頁籤底圖顏色;background-color: rgba(255,255,255,0);透明Transparent*/
    position: relative;/*relative 頁籤&banner分開不重疊;頂置 fixed;*/
    line-height: 0;
    padding: 0;
}

.topnavbar .container {
  padding: 0;  /* 清除內距 */
  display: flex;
  align-items: flex-end;  /* center上下置中; flex-end靠下; */
  justify-content: space-around; /* 平均分配 */
}

.topnavbar .container #logo, 
.topnavbar .container #nav { 
  width: 100%; 
}

.topnavbar .container #nav { text-align: right; }/* 讓頁籤選單文字靠右 */


body {
    background-color: #fff;/*背景底色*/
    font-family: 'Noto Sans TC', sans-serif;/*套用google font字型Noto Sans TC黑體*/
}


/*動到表格手機不會破版*/
table {
  table-layout: fixed;
  word-wrap:break-word;
} 

hr {
  border-top: 1px solid #ddd;
  border-bottom: 0;
  margin: 2em 0;
}

/*編輯欄設定*/
#main-wrap .container {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--p);
}/*編輯欄文字*/

body[data-type="fullpage"]:not(#managehome) #wrap>*:not(:last-child) {
    margin-bottom: 0px;
}

body[data-type="fullpage"] #product-header.main {
      min-height: auto;/*產品-編輯框不設定高*/
}

.fcol p{  
  line-height: 2;
  text-wrap: pretty ;  /*適用內文,段落避開孤字*/
 }

h1, h2, h3, h4, h5, h6 { 
  text-wrap: balance ;  /*適用標題和短文案,視覺效果更平衡*/
} 

.fcol h2 { 
  color: var(--text);
  font-size: clamp(26px, 3vw, 36px);/*最小值 首選值 最大值 限制屬性值區間*/
  line-height:2;
}

.fcol h3 { 
  color: var(--text2);
  font-size: clamp(24px, 3vw, 30px);/*最小值 首選值 最大值 限制屬性值區間*/
}

.fcol h4 { 
  color: var(--text3);
  font-size: clamp(20px, 3vw, 24px);/*最小值 首選值 最大值 限制屬性值區間*/
}

/*nav*/
#nav ul li a {
    white-space: normal; /*自動換行*/
    font-size: 1.0rem;/*頁籤文字大小*/
    color: #ffffff;/*頁籤文字顏色*/
    padding: 10px 20px;/*頁籤文字間隔;padding:2px 16px 2px 16px;*/
    line-height: 1.3;
    transition: .3s;
}

#nav ul li a:hover  {
    color: var(--text2);/*頁籤滑過文字顏色*/
}
#nav ul li.current a {
    color: var(--text2);/*頁籤按下後文字顏色*/
    font-weight: 500;
}

#nav .subnav {
    background-color: #fff;/*次頁籤底色*/
    max-width: 400px;/*次頁籤背景最大寬度*/
    width: max-content;/*最大內容*/
    text-align: left;
}

#nav .subnav .has-subnav span{
    max-width: 400px;/*次頁籤文字背景最大寬度*/
}

#nav li.has-subnav ul li.has-subnav>div a::after, #nav>ul>li.has-subnav>a::after {
    padding-left: 2px;/*下拉選單箭頭距離*/
}

/*產品頁*/
#side h3 {
  /*background-color: var(--card);*/
  background-image: var(--gradient);
  border-radius: 10px 10px 0 0;
  font-size: 1.4em;
  font-weight: 700;
  color: var(--bg);
}
#side ul li a {
  font-size: 16px;
  color: #333;
  border-bottom: 1px dashed #ddd;
}
#side ul li a:hover {
  color: var(--text);
}

ul.product-list li a {
    color: var(--text);/*產品格文字顏色*/
    background-color: #eee;/*產品格底色*/
}
ul.product-list li a:hover {
    color: var(--text2);/*產品格滑過文字顏色*/
}
.productdetail .detail-spec h2 {
    color: #333;
    font-size: 30px;
}/*產品內頁標題文字*/

/*分頁h1title h1標題視覺隱藏但可讀取*/
body.about-us .h1title h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0); /* 舊版瀏覽器相容 */
  clip-path: inset(50%);  /* 現代標準寫法 */
  white-space: nowrap;
  border: 0;
}
body.about-us .fcol.fcol-header { position: absolute; }

/*分頁title文字*/
.h1title h1{
    color: var(--text);
  text-align: center;
}

a {
    color: var(--text2);/*連結顏色*/
    text-decoration: none;
}

.swiper-container {
  height: auto !important; /* 將容器預設的高拿掉 */
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(1200 / 1920 * 100%); /* 自定響應式圖片高度 */
}

.swiper-slide {
  width: 100% !important; /* 強制圖片寬度隨容器變更 */
}

body.about-us .fcol.fcol-1 {   
  background-color: var(--text);
}
body.about-us .fcol.fcol-6 {   
  background-color: var(--card);
}


.hero-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 1em;
}

.hero-tags span {
  background-color: rgba(255,255,255,0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: clamp(14px,2vw,16px);
  color: var(--bg);
}

/* 重要注意事項 */
.alert-box {
  background-color: var(--card);
  border-left: 4px solid var(--text2);
  padding: 15px;
  margin: 30px 0;
  border-radius: 0 4px 4px 0;
}

/* 表格排版 */
.table-responsive {
  width: 100%;
  overflow-x: auto;/*區塊內容寬度超出容器寬度時，自動在 水平方向 (X軸) 產生捲軸*/
  margin-top: 15px;
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  min-width: 600px;
}

.table-responsive th, .table-responsive td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.table-responsive th {
  background-image: var(--gradient);
  color: var(--bg);
  font-weight: 600;
}

.table-responsive tr:hover {
  background-color: #f7fafc;
}

.table-responsive .price-highlight {
  color: var(--text3);
  font-weight: bold;  
}

/* 網格清單-六佳專業服務與保障 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.feature-card {
  background: var(--card);
  padding: 20px;
  border-radius: 6px;
  border-top: 3px solid var(--text);
}

.feature-card h3 {
  color: var(--text3);
  margin-bottom: 10px;
  font-size: clamp(20px, 3vw, 24px);
}

.feature-card ul, .info-list {
  list-style-type: none;
}

.feature-card li, .info-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.feature-card li::before, .info-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--text);
  font-weight: bold;
}

/* 服務地區 */
.area-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.area-tag {
  background-color: #e2e8f0;
  color: #4a5568;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 14px;
}

/* 聯絡資訊區塊 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
  text-align: center;
}

.contact-card {
  background: var(--bg);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.contact-card h3 {
  color: var(--text);
  margin-bottom: 15px;
  font-size: 20px;
}

.phone-number {
  font-size: 22px;
  color: var(--text3);
  font-weight: bold;
  display: block;
  margin: 10px 0;
  text-decoration: none;
}