﻿/* optimize CSS */
/* chatbot相關css */
#chatbot-container{
  position: fixed;
  bottom: 0px;  /* 調整容器與頁面底部的距離 */
  left: 20px; /* 調整容器的左側距離 */
  width: 380px;
  height: 620px;
  z-index: 9998;
 
}
#chatbot-frame{
  width: 360px;
  height: 620px;
  border: none;
  padding: 0px;
}
/* 20250722 */
#open-chatbot-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 80px; /* 可依圖大小調整 */
  height: 80px;
  background-image: url('https://www.apacer.com/upload/media/chatbot/img/apachat.svg');
  background-size: contain;         /* 保留圖片比例 */
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;   /* 沒有背景色 */
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 9998;
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}
@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

#open-chatbot-btn {
  animation: float 3s ease-in-out infinite;
}

/* 20250722 end*/
/* CN-footer-hidden */
div.footer-extra-msg-block {
    display: none;
}
/* gaming overview換背景圖 */

.cta-section.zadak .cta-bg {
  background-image: url(https://www.apacer.com/upload/media/zadak/overview/gaming-button-1920_360.png);
}
@media screen and (max-width: 767px) {
 
.cta-section.zadak .cta-bg {
  background-image: url(https://www.apacer.com/upload/media/zadak/overview/gaming-button-257_170.jpg);
}
}
/* 首頁文字tab隱藏 */
.kv-tab-wrapper{
    display:none;
}
/* 20250704zad-yellow-bg 換背景顏色 */
.zad-yellow-bg {
  background-color: #000;
}
/* 20250707 三角型 換背景顏色 */
.triangle-bg.zad-yellow {
  border-color: #fff0 #fff0 #000 #fff0;
}
/* smart IOT-BgColor- */
/* .smart-intro{
background-color: #2c466e;
color:#fff;
} */
/* 產品頁下方檔案橫向連結-檔案名稱欄位加大 */
 .type1 .download-pair .download-content:first-child {
    width:250px;
} 
/* 20250218-首頁kv黑底拿掉 */
.kv-content::after {
    background: transparent linear-gradient(359deg, rgba(0, 0, 0, .8) 0, rgba(84, 84, 84, 0) 0px) 0 0 no-repeat;
}
/* 20250305-首頁新聞專區壓在圖上的標題文字拿掉 */
.news-card .card-info {
    display: none;
    }
/* kv-tab-underline */
.kv-tab-wrapper::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
height: 10px;
width: 100%;
background-repeat: no-repeat;
background: linear-gradient(to right,#008c7d calc((100% - 1286px)/ 2),#008c7d calc((100% - 1286px)/ 2),#008c7d calc(((100% - 1286px)/ 2) + 215px),#8dc711 calc(((100% - 1286px)/ 2) + 215px),#8dc711 calc(((100% - 1286px)/ 2) + 430px),#fabe00 calc(((100% - 1286px)/ 2) + 430px),#fabe00 calc(((100% - 1286px)/ 2) + 643px),#335c9b calc(((100% - 1286px)/ 2) + 643px),#335c9b calc(((100% - 1286px)/ 2) + 857px)) !important;
z-index: 0
}
/* productList-h5-title*/
.prod-cards-block .text-block h5 {
    line-height: 30px;
    text-align: center;
    height: 75px;
}
/* productList*/
.prod-cards-block .text-block {
    word-wrap: break-word;
    padding: 0px 25px 20px 25px;
}
/* go to top icon */
#go-top-btn {
bottom: 20px;
right: 70px;
position: fixed ;
}
/* TeamUse-hidden */
/* div.m-footer-bottom-group:nth-child(1)>div.m-footer-bottom-item:nth-last-child(1){
display:none
} */
/* IndFilter-hidden */
.spec-select-block {
    display: none;
    margin-top: 30px;
}
/* PersonalFilter-show */
div.personal-compare>div.filter-gray-block>div>div>div.spec-select-block {
    display: flex;
}
/* menu-foucs-status*/
.navbar-default .navbar-nav>li>a, .navbar-nav>li>a,.go-back-lv2:hover,.lv1-fixed-block, .lv1-fixed-block .go-back:hover{
    color: #fff;
}
.navbar-default .navbar-nav>li>a:focus, .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:active, .navbar-nav>li>a:active,.go-back-lv2:focus,.lv1-fixed-block, .lv1-fixed-block .go-back:focus,.go-back-lv2:active,.lv1-fixed-block, .lv1-fixed-block .go-back:active{
    color: #a7ea2a;
}

/* 產品左圖右文右圖左文的圖片可以縮放-桌機+筆電 */
@media (min-width: 1280px) {  
    .img-intro-container .content-item {
      display: flex;
      min-height: 0px;
      width: 100%;
    }
    .img-intro-container .content-item:nth-child(2n) .text-content {
      width: 50%;
      padding-right:45px;
      padding-left: calc((100% - 1280px) / 2);
    }
    .img-intro-container .content-item:nth-child(2n) .text-content.bg-cover{
      padding-left: 45px;
    }
    .img-intro-container .content-item:nth-child(1n) .text-content.bg-cover{
      padding-right: calc((100% - 1280px) / 2);
    }

    .img-intro-container .text-content {
      width: 50%;
      padding-right: calc((100% - 1280px) / 2);
      padding-left: 45px;
      padding-top:0px;
      padding-bottom: 0px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      background-color: #444;
      color: white;
      box-sizing: border-box;
    }
  
    .img-intro-container .text-content .font-48 {
      font-size: 48px;
      line-height: 60px;
      margin-bottom: 16px;
    }
    .img-intro-container .text-content .text {
      font-size: 18px;
      line-height: 30px;
      margin: 0;
    }
    .img-intro-container .img-content {
      width: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .img-intro-container .content-item:nth-child(2n) .img-content {
      width: 50%;
      height: auto;
    }
  
    .img-intro-container .img-block {
      width: 100%;
      aspect-ratio: 60 / 37; /* 關鍵比例設定 */
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
    }
  
    .img-intro-container .img-block img {
      width: 100%;
      height: 100%;
      object-fit: contain; /* 保持比例不裁切 */
      image-rendering: optimizeQuality;
      display: block;
    }
  }
  @media (min-width: 991px) and (max-width: 1279px) {
    .img-intro-container .img-content {
      width: 100%;
      height:auto;
    }
    .img-intro-container .img-block img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        image-rendering: optimizeQuality;
        display: block;
    }
    
    .img-intro-container .text-content .font-48 {
      font-size: 32px;
      line-height: 48px;
      margin-bottom: 16px;
      padding: 0 5%;
      
    }
    .img-intro-container .text-content .text {
      font-size: 16px;
      line-height: 28px;
      margin: 0;
      padding:0 5%;
    }
}

/* Mobile */
@media screen and (max-width: 767px){
    /* IndList-checked */
    .prod-cards.checked .img-block {
        padding: 36px 2px 20px 18px;
        border: none;
        border-top: 3px solid var(--ap-green) ;
        border-left: 3px solid var(--ap-green) ;
        border-right: 3px solid var(--ap-green);
    }
    .prod-cards.checked .text-block {
        padding: 36px 20px 20px;
        width: 100%;
        height: 100%;
        border: none;
        border-top: 0px solid var(--ap-green) ;
        border-right: 3px solid var(--ap-green) ;
        border-left: 3px solid var(--ap-green) ;
        border-radius: 0px;
        word-wrap: break-word;
    }
    
    /* PersonalList-checked */
    .personal-compare .prod-cards.checked .text-block{
        width: 100%;
        height: 100%;
        border: none;
        border-top: 0px solid var(--light-green);
        border-right: 3px solid var(--light-green);
        border-left: 3px solid var(--light-green);
        border-radius: 0;
        word-wrap: break-word;
    }
    .personal-compare .prod-cards.checked .img-block {
        padding: 36px 2px 20px 18px;
        border-top: 3px solid var(--light-green);
        border-left: 3px solid var(--light-green);
        border-right: 3px solid var(--light-green);
    }
    /* mb-go-to-top-icon */
    #go-top-btn {
    right: 30px;
    }
    /*mb-ProductList*/
    .prod-cards-block .text-block .spec {
    margin-top: 20px ;
    padding: 0 25px 20px 25px;
    text-align: left;
    word-wrap: break-word;
    }
    .prod-cards-block .text-block h5 {
    text-align: center;
    height: auto;
    }
    .prod-cards-block .img-block {
    padding:0;
    border: 0px;
    border-radius: 0;
    }
    .prod-cards-block .img {
    width: 100%;
    height: 100%;
    }
    .prod-cards-block .text-block {
    padding: 20px 22px 20px 22px;
    height: 100%;
    border: 1px; 
    width: 100%;
    }
    .prod-cards-block .prod-cards {
    width: 320px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-gray2);
    text-align: center;
    }
    /* 機器人CSS */
    /* chatbot相關css */
   #chatbot-container{
      width: 100%;
      height:auto;
      left: 0px;
      top: 0px;
    
    }
  #chatbot-frame{
    width: 100%;
    height: 100%;
    
  }
  #chatbot-icon {
    position: fixed;
    width:50px;
    height:50px;
    bottom:20px;
    right:20px;
  }
    }
    

