.phone{position:fixed;right:1%;top:40%;z-index:1000;}

/*手機版-側欄浮動按鈕-縮小*/
@media (max-width: 414px){ 
  .phone { 
    transform: scale(0.8);
    right:0;
  }
}

/*套用google font字型Noto Sans TC黑體*/
#t-700{
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 700;
  color: #268be3;
  font-size: 40px;
}
@media only screen and (max-width: 768px){
  #t-700 { font-size: 30px; }
}

/*LOGO語法*/
.topnavbar .container {
  text-align: justify;
  padding: 10px 0 0 0;
}

.topnavbar .container::after {
  display: inline-block;
  width: 100%;
}

#logo h1 { text-align: center; }



/*banner*/
.swiper-container {
  height: auto !important; /* 將容器預設的高拿掉 */
}

.swiper-wrapper, .swiper-slide {
  height: 0 !important;
  padding-bottom: calc(900 / 1920 * 100%); /* 自定響應式圖片高度 */
}

.swiper-slide {
  width: 100% !important; /* 強制圖片寬度隨容器變更 */
}


/*按鈕背影*/
.topnavbar {
    background-color: rgba(255,255,255,0);/*頁籤底圖顏色;background-color: rgba(255,255,255,0);透明Transparent*/
  /*  position: relative;/*relative 頁籤&banner分開不重疊;頂置 fixed;*/
    line-height: 0;
    padding: 0;/*頁籤間距*/
}

/*nav*/
#nav ul li a {
    font-size: 1.0rem;/*頁籤文字大小*/
    color: #000;/*頁籤文字顏色*/
    padding: 10px 20px;/*頁籤文字間隔;padding:2px 16px 2px 16px;*/
    line-height: 1.3;
    transition: .3s;
}

#nav ul li a:hover  {
    color: #000;/*頁籤滑過文字顏色*/
}
#nav ul li.current a {
    color: #000;/*頁籤按下後文字顏色*/
    font-weight: 400;
}

#nav .subnav {
    background-color: #fff;/*次頁籤底色*/
    max-width: 400px;/*次頁籤背景最大寬度*/
    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;/*下拉選單箭頭距離*/
}

/*頁籤按鈕上底線滑入特效-底線短*/
#nav ul li a::before {
  content:"";
  border-top:3px solid #00508f;
  width:0;
  position:absolute;
  left:0;
  right:0;
  top:0px;
  margin:0 auto;
  transition:.3s all ease;
}
#nav ul li a:hover::before {
    width: 70%;
}


/*各層編輯欄*/
#bodyinhome .fcol.fcol-1 { 
  width: 100%;
   background-attachment: scroll; /*fixed固定背景; scroll捲動背景*/
   background-repeat: no-repeat;
   background-position:center;
   background-size: cover;/*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
   background-image: -webkit-linear-gradient(-75deg,#00508f 15%, #fff 15% , #fff  85% ,#00508f 85%);  
  padding:3em 0;
}

#bodyinhome .fcol.fcol-2 .container {
   width: 100%;
   background-image: -webkit-linear-gradient(top, #ffffff 10% ,#333333  10%, #333333 90% ,#ffffff  90%);
   padding: 0;
}/*拉寬編輯欄設定*/

#bodyinhome .fcol.fcol-3 .container {
   width: 80%;
   padding: 0;
}/*拉寬編輯欄設定*/

#bodyinhome .fcol.fcol-4 .container {
   width: 100%;
   padding: 0;
}/*拉寬編輯欄設定*/




#bodyinhome .fcol.fcol-6 {
  background-color:#382e24;
}

body.about-us .fcol.fcol-2 {
  background-color:#00508f;
}

body.about-us .fcol.fcol-2 .container {
  width: 100%;
}




/*我們的產品*/
.snip1585 {
  background-color: #000;
  color: #fff;
  display: inline-block;
  font-size: 24px;
  margin: 0 auto;
  min-width: 160px;
  overflow: hidden;
  position: relative;
  text-align: center;
  width: 100%;
}

.snip1585 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.45s ease;
  transition: all 0.45s ease;
}

.snip1585:after {
  background-color: rgba(0, 0, 0,  0.6);
  border-top:100% solid rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 0;
  bottom: -300px;
  left: 0;
  right: 0;
  content: '';
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  z-index: 1;
  opacity: 0;
}

.snip1585:after {
  -webkit-transform: scaleY(0);
  transform: scaleY(0);
}

.snip1585 img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;/*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
  display: block;
}

@media only screen and (max-width: 768px){
  .snip1585 img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
  }
}
.snip1585 figcaption {
  position: absolute;
    top: 0;
    bottom: -10px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    line-height: 1.5;
    opacity: 1;
    -webkit-transition-delay: 0s;
    transition-delay: 0s;
}

.snip1585 h3 {
  font-size: 1em;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 5px;
  text-transform: uppercase;
  color: #fff;
  background-color: rgb(25 103 181 / 70%);
}

.snip1585 h3 span {
  display: block;
  font-weight: 400;
  font-size:14px;
  color: #fff;
}

.snip1585 a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

.snip1585:hover > img,
.snip1585.hover > img {
  opacity: 0.7;
}

.snip1585:hover:after,
.snip1585.hover:after {
  -webkit-transform: scale(1);
  transform: scale(1);
  opacity: 1;
}

.snip1585 span { opacity: 0;}

.snip1585:hover figcaption,
.snip1585.hover figcaption,
.snip1585:hover span,
.snip1585.hover span {
  opacity: 1;
  -webkit-transition-delay: 0.1s;
  transition-delay: 0.1s;
  bottom:0px;
}

/*關於我們_我們的設備*/
.snip1374 {
  position: relative;
  overflow: hidden;
  margin: 0 auto 0;
  min-width: 160px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  text-align: center;
  background-color: #000000;
  text-shadow: 2px 2px 5px #000000;/*文字陰影*/
}
.snip1374 figcaption {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
 -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
.snip1374 h2{
  font-family: 'Noto Sans TC', sans-serif;
  text-transform: uppercase;/*文字大寫*/
  color:#ffffff;/*文字顏色*/
  font-size: 1.2rem;/*文字大小*/
  font-weight: 700;/*文字粗細*/
  line-height: 1.5;/*文字行距*/
  letter-spacing: 2px;　/* 設定文字間距 */
}
.snip1374 img {
  object-fit: cover;  /*cover圖片剪裁不拉伸壓縮 ; contain不拉伸壓縮.等比縮放)*/
  width: 100%;
  height: 250px;
  vertical-align: top;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
  -webkit-transform: scale(1);
  transform: scale(1);
}
.snip1374:hover img,
.snip1374.hover img {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
  opacity: 0.5;
}
.snip1374 a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}



/*公司簡介_服務類別*/
.brand-1 {  text-align: center;  margin: 0 auto;}
.brand-1 img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background-color: #fff;
  border: 2px solid #eee;
  padding: 0px;
  margin: auto ;
}

/*title文字顏色*/
.h1title {
    text-align: center;
    color: #000;
    border-bottom: 0px solid #1967b5;    
}

/*了解更多*/
.bg-icon1  {
    color: #333;
    border: 1px solid #333;
    letter-spacing: 5px;
    display: inline-block;
    padding: 18px 45px;
    text-decoration: none;    
    font-size: 16px;
    transition: all 0.2s;
}

.bg-icon1:hover  {
  background-color: #00508f; 
  color: #fff;
}

.bg-icon1 a { color:#fff;}


/*設備按鈕*/
.receptacle {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: #1a365d;
    margin-bottom: 40px;
    font-weight: 700;
}

.category-section {
    margin-bottom: 35px;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

@media (max-width: 576px) {
    .category-section {
        padding: 15px;
    }
}

.category-title {
    font-size: 1.3rem;
    color: #2b6cb0;
    border-left: 5px solid #2b6cb0;
    padding-left: 12px;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.button-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -7.5px;
    margin-right: -7.5px;
    margin-top: -7.5px;
    margin-bottom: -7.5px;
}

/* 【關鍵修改區】 */
.equipment-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.25s ease;
    box-sizing: border-box;
    margin: 7.5px;
    
    /* 調整這裡：改為 0 不自動放大，並限制最大寬度為三分之一 */
    flex: 0 1 calc(33.333% - 15px);
    max-width: calc(33.333% - 15px);
    min-width: 260px; 
}

/* 手機版維持原本的滿版設定 */
@media (max-width: 576px) {
    .equipment-btn {
        flex: 1 1 calc(100% - 15px);
        max-width: calc(100% - 15px); /* 同步加上最大寬度限制 */
        min-width: 0;
    }
}

.equipment-btn:hover {
    background: #2b6cb0;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(43, 108, 176, 0.25);
    border-color: #2b6cb0;
}

.equipment-name {
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
    padding-right: 10px;
}

.quantity-badge {
    background: rgba(0, 0, 0, 0.06);
    color: #718096;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.equipment-btn:hover .quantity-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}



/*消除留白*/
body[data-type="fullpage"]:not(#managehome) #wrap>*:not(:last-child) {
    margin-bottom: 0px;
}

body[data-type="fullpage"] #product-header.main {
      min-height: auto;/*產品-編輯框不設定高*/
}