/*--------------小桌機/平板橫向--------------*/
@media (max-width: 1199px) {

  /*行動版左側選單_選單*/
  #w #navmenu {
    display: block;
    position: fixed;
    width: 200px;
    height: 100%;
    left: 0px;
    top: 0px;
    background: #6c6c6c;
  }

  #w #navmenu .qa_title:hover {
    background: #000;
  }

  /*行動版左側選單_選單_submenu*/
  #menu #qaContent li .qa_title {
    padding: 15px;
    color: #fff;
    border-bottom: 1px solid #adadad;
    cursor: pointer;
  }

  #menu #qaContent li .qa_content li a {
    display: block;
    padding: 15px;
    color: #000;
    background: #eee;
  }

  /*主內容*/
  #w {
    position: relative;
    overflow-x: hidden;
  }

  #w #pagebody {
    position: relative;
    left: 0;
    z-index: 5;
    background: #fff;
  }

  #w #pagebody #content {
    display: block;
    z-index: 9999;
    padding-top: 45px;
  }

  /* === Header 基礎設定 === */
  #w #pagebody #toolbarnav {
    position: fixed;
    display: block;
    left: 0px;
    top: 0px;
    z-index: 9999;
    width: 100%;
    height: 60px;
    background: #fff;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.1);
  }

  #w #pagebody #toolbarnav #logo-mobile {
    position: absolute;
    left: 50%;
    width: 180px;
    margin-left: -90px;
  }

  /*Header彈出按鈕*/
  #w #pagebody #toolbarnav #menu-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 40px;
    margin: 8px;
    background-color: #6c6c6c;
    border-radius: 3px;
    box-shadow: inset 0 1 1px #000;
    cursor: pointer;
  }

  #w #pagebody #toolbarnav #menu-btn::before {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f0c9";
    display: inline-block;
    font-size: 24px;
    color: #eee;
  }

  /* === 導覽列 (Navigation) 設定 === */
  nav {
    line-height: 25px;
    margin-top: 0;
  }

  nav .nav-btn a {
    margin: 10px 0 0 10px;
    width: 100%;
  }


  /*統一設定*/
  .container {
    width: 96%;
    margin: 0 auto;
  }

  .container02 {
    width: 96%;
    margin: 0 auto;
  }

  #main {
    Width: 100%;
    Padding: 25PX;
  }

  br {
    display: none;
  }

  /*網頁版上方*/
  header {
    display: none;
  }

  nav {
    display: none;
  }

  /*首頁案例分享*/
  #index-case .case-model {
    opacity: 0.3;
    /* 在較小螢幕變透明或隱藏 */
    right: -15%;
  }

  #index-case .case-content {
    flex: 0 0 100%;
  }

  /*首頁醫美新知*/
  #index-news .news-flex-wrap {
    flex-direction: column;
  }

  #index-news .news-deco {
    display: none;
  }

  #index-news .news-content {
    width: 100%;
  }

  /*內頁banner*/
  #banner-inner {
    height: 45px;
    padding: 0;
  }

  #banner-inner.new-tech-bg {
    height: 45px;
    padding: 0;
    background-image: none;
    background:
      linear-gradient(to bottom, transparent 40%, #ffffff 100%),
      linear-gradient(90deg,
        #bfa79c 0%,
        #d9c1b0 50%,
        #f2e6de 100%);
    background-blend-mode: normal;
  }

  #banner-title-area span {
    display: none;
  }

  #banner-title-area h1,
  #banner-title-area h2 {
    font-size: 1.5rem;
    padding: 35px 0 25PX 0;
  }

  /*診所據點*/
  #location-content .clinic-intro .info-img {
    flex: 0 0 380px;
  }

  .location-nav .location-tabs {
    padding: 12px 25px;
  }

  /*醫療團隊*/
  #doctors-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
  }

  #doctors-content-inner {
    width: 100%;
    padding: 30px 0;
  }

  /*美型見證-分類*/
  .case-filter {
    border-bottom: none;
  }

  .case-filter select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    color: #4a4a4a;
    outline: none;
    letter-spacing: 1px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
  }

  /*美型見證*/
  #case {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /*服務療程內頁sitemap*/
  #sitemap-service {
    display: none;
  }

  /*聯絡我們*/
  #contact-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  /*--------------平板直向/手機橫向--------------*/
  @media (max-width: 768px) {
    .web {
      display: none;
    }

    .mobile {
      display: block;
    }

    #sitemap {
      display: none;
    }

    /*首頁診所據點*/
    #index-location .location-box {
      flex-direction: column;
      margin: 0 20px;
    }

    #index-location .location-img,
    #index-location .location-info {
      flex: 0 0 100%;
    }

    #index-location .location-info {
      padding: 40px 30px;
    }

    /*首頁案例分享*/
    #index-case {
      padding: 50px 0 50px 0;
    }

    #index-case .case-title {
      flex-direction: column;
      gap: 15px;
    }

    #index-case .case-list {
      flex-direction: column;
      align-items: center;
    }

    #index-case .case-img {
      width: 280px;
    }

    /*診所據點*/
    #location-content .clinic-intro .info-flex {
      flex-direction: column;
      gap: 30px;
    }

    #location-content .clinic-intro .info-img {
      flex: 0 0 auto;
      width: 100%;
    }

    #location-content .location-info-card {
      padding: 0;
    }

    #location-content .photo-item img {
      height: 220px;
    }

    #location-content .transport-container {
      flex-direction: column;
    }

    #location-content .transport-map {
      width: 100%;
      height: 300px;
    }

    /*醫療團隊*/
    #doctors-content {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px 15px;
    }

    #doctors-content-inner {
      width: 100%;
      padding: 30px 0;
    }

    #doctors-content .dr-info h3 {
      font-size: 18px;
      /* 手機板文字微調小 */
    }

    /*醫美新知*/
    #new-tech-list {
      margin: 30px 20px;
    }

    /*美型見證*/
    #case {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 30px;
    }

    /*服務療程內頁*/
    #service-content .entry-header {
      margin-bottom: 50px;
      display: block;
    }

    /*聯絡我們*/
    #contact-list {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 50px 50px;
    }

    /* 側邊立即諮詢區塊 */
    .side-cta-link {
      padding: 15px 8px;
    }

    .side-cta-link span {
      font-size: 0.85rem;
    }

    /*尾部注意事項*/
    .disclaimer-wrap {
      padding: 30px 20px;
    }

    /*尾部*/
    .footer-main {
      flex-direction: column;
    }

    .footer-info {
      margin-bottom: 40px;
    }

    .footer-links {
      flex-direction: column;
      gap: 30px;
    }

    .service-columns {
      gap: 20px;
    }

  }


  /*--------------手機直向--------------*/
  @media (max-width: 575px) {

    /*醫療團隊*/
    #doctors-content {
      grid-template-columns: repeat(1, 1fr);
      gap: 30px 20px;
    }

  }