@charset "UTF-8";
/* =========================================================
   RWD breakpoints: 1920 / 1200 / 992 / 768 / 640 / 500
   500 以下鎖定 viewport width=500，故 500 中斷點即涵蓋所有小螢幕
   ========================================================= */

   @media screen and (max-width: 1400px) {
    .kv::after{
      content: "";
      background: url(../img/kvtta.png) no-repeat;
      width: 100%;
      max-width: 1206px;
      height: 1015px;
      position: absolute;
      z-index: -2;
      top: 0;
      left: -20%;
    }
   }


/* ---------------- 1200 ---------------- */
@media screen and (max-width: 1200px) {
  .logo { width: 170px; left: 24px; top: 20px; }
  .kv{
    background-position-x: 90%;
    background-position-y: 230px;
  }
  
  .kv::after{
    content: "";
    width: 100%;
    max-width: 2000px;
    height: 500px;
    top: 5%;
    left: 0;
    background-size: cover;
    background: linear-gradient(to bottom, #fff 60%, transparent 100%);
    }
    
  .kv-title{
    width: 100%;
    margin: 0 auto;
    padding-top: 10%;
  }
  .kv-box2,.kv-box1{
    width: 45%;}
  .kv-box2-big { font-size: 19px; }
  .kv-box2-big b { font-size: 24px; }
  .p3-card { padding: 30px 44px; }
  .pop-title { font-size: 26px; margin-bottom: 24px; }
  .kv-boxs-m{display: block;}

  /* ------- popup: 手機水平移動 ------- */
  .pop {
    padding: 40px 20px 30px;
    border-radius: 22px;
    background-size: 100% 100%;
    width: 70%;
  }
  .pop-card {
    width: 100%;
    align-items: center;
    padding: 0 20px;
  }
}

@media screen and (max-height: 800px){
  .pop{
    height: 90vh;
  }
  .pop-inner {
    height: 90%;
    margin: 0 5px;
    overflow-y: scroll;
  }
  /* Chrome / Edge / Safari */
  ::-webkit-scrollbar {
    width: 8px;
    
  }
  ::-webkit-scrollbar-track {
    background: #b9b9b9;
    border-radius: 10px;
   
  }
  ::-webkit-scrollbar-thumb {
    background: #a9823f;
    border-radius: 10px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #a9823f;
  }
}

/* ---------------- 992 以下通用 ---------- */
@media screen and (max-width: 992px) {
  .kv{
    background-position-x: 100%;
    background-position-y: 130%;
    overflow: hidden;
    background-size: 1400px;
  }
  .kv-inner { top: 6%;}
  .kv-date{
    padding-left: 0;
    text-align: center;
    padding-top: 5px;
}
  
  /* 992px 以下：KV 才使用 Swiper；993px 以上完全沿用 PC 排版 */
  .kv-boxes.kv-swiper {
    width: 100%;
    margin: 30px auto 0;
    overflow: hidden;
    display: block;
  }

  .kv-boxes.kv-swiper .swiper-wrapper {
    display: flex;
    width: 100%;
  }

  .kv-boxes.kv-swiper .swiper-slide {
    width: 100% !important;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
  }

  .kv-boxes.kv-swiper .swiper-pagination {
    bottom: 0px;
    z-index: 10;
  }

  .kv-boxes.kv-swiper .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    opacity: 1;
    background: #c9c0b4;
  }

  .kv-boxes.kv-swiper .swiper-pagination-bullet-active {
    background: var(--gold);
  }

  .kv-boxes.kv-swiper .kv-box1,
  .kv-boxes.kv-swiper .kv-box2 {
    width: 100%;
    max-width: 100%;
  }
  .kv-bg { position: relative; }
  .p2-flex { flex-direction: column; }

  .p2-cards { 
    width: 100%;
    flex-direction: column;
    align-items: center;
    position: relative;
    gap: 20px;
   }

  .p2-card2::after,.p2-card1::after {content: ""; display: none;}
  .p3 { padding-bottom: 25%;}
  .p3-card { padding: 28px 30px; }
  .pop-cards { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .pop-card-name { font-size: 17px; }

  .p3-card-bg1,.p3-card-bg2,.p3-card-bg3 {
    width: 100%;
    height: auto;
    background-image: url(../img/p3bg2-m.png);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease-in;
    margin-bottom: 10px;
    padding: 60px 0 ;
  }

  .p3-card.p3-card-bg1>div, .p3-card.p3-card-bg2>div, .p3-card.p3-card-bg3>div{
    margin-top: 20px;
    top: 12%;
    gap: 10px;
    position: relative;
    flex-direction: column;
    margin-left: 0;
    margin: 0 auto;
  }

  .p3-list {width: 90%;}
  .p2-photo {padding-bottom: 0px;}
  .p2-inner {padding-bottom: 0px;}
  .p3-deco1 {top: -80px;}
  .p3-deco2 {top: 60px;}
  .p3-deco3 {position: absolute !important;top: -40px;}


}

/* ---------------- 768 ---------------- */
@media screen and (max-width: 768px) {
  .kv{
    background-position-x: calc(100% + 0px);
  }

  .header { height: 64px; }
  .logo { width: 140px; left: 16px; top: 16px; }

  .kv-title { align-items: center; }

  .kv-bg { margin-top: -10px; }
  .kv-bg img { min-height: 260px; object-fit: cover; }

  .kv-boxes { width: 88%; gap: 24px; margin-top: 24px; }
  .kv-box-list { font-size: 13px; }
  .kv-box2-content { top: 26%; }

  .sec-title .line { width: 50px; }

  .p2-inner { padding-top: 40px; }
  .p2-card { padding: 22px 24px 22px 90px; min-height: 110px; border-radius: 26px; }
  .p2-num { left: 22px; font-size: 28px; }
  .p2-card-title { font-size: 17px; }
  .p2-leaf { display: none; }
  
  .p3-inner { gap: 20px; }
  .p3-card-head img { height: 32px; }
  .p3-deco { display: none; }

  .p4 { padding-bottom: 50px; }
  /* .p4-list { font-size: 13px; } */

.none{
  display: block;
}
.block{
  display: none;
}
  .p5-toggle {  padding: 20px 0; }


  
}

/* ---------------- 640 ---------------- */
@media screen and (max-width: 640px) {
  .kv{
    background-position-x: calc(100% + 150px);
  }
    /* floating buttons: 齊底 */
    .float-btns {
      flex-direction: row;
      width: 100%;
      bottom: 0;
      gap: 0;
      right: 0;
      transition: all 0.3 ease-in;
    }
    .float-btn{
      width: 33.333333%;
      height: auto;
    }

    .float-btn span{top:-20px;}

    .float-btn-img1{
      background: none;
      background-color: #ae8847;
      max-width: 100%;
    }
    .float-btn-img2{
      background: none;
      background-color: #63714e;
      max-width: 100%;
    }
    .float-btn-img3{
      background: none;
      background-color: #836a8c;
      max-width: 100%;
    }

    .Ttable-mb {
        display: block;
        width: 100%;
    }
    .footer {padding-bottom: 110px;}
    .p3-list li,.float-btn span,.p3-list--purple b {font-size: 26px;}

  }
