/* ************************基礎設定************************ */
@font-face {
    font-family: "GenYoGothic";
    src: url("../genyog-font-master/otf/TW/GenYoGothic2TW-N.otf")
      format("opentype");
    font-style: normal;
  }
  
  @font-face {
    font-family: "GenYoGothic-M";
    src: url("../genyog-font-master/otf/TW/GenKiGothic2TW-M.otf")
      format("opentype");
    font-style: normal;
  }
  
  @font-face {
    font-family: "GenYoGothic-B";
    src: url("../genyog-font-master/otf/TW/GenKiGothic2TW-B.otf")
      format("opentype");
    font-style: normal;
  }
  
  body {
    font-family: "GenYoGothic", sans-serif;
    background-color: #ffffff;
  }
  
  #contact {
    background-color: #ffffff !important;
  }
  
  h2.heading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    margin: 0;
    padding: 20px 0;
    color: #565656;
    font-size: calc(1.5rem + 1.8vw);
  }
  
  /* * {
    font-family: "Cactus Classical Serif", serif;
    font-weight: 400;
    font-style: normal;
  } */
  
  .navbar {
    background-color: #cbae7d;
    font-family: "GenYoGothic-M";
  }
  
  .navbar-nav {
    font-size: 23px;
  }
  
  .dropdown-menu .dropdown-item {
    font-size: 20px;
  }
  
  .title {
    font-family: "GenyoGothic-B" !important;
  }
  
  .heading_title {
    font-family: "GenyoGothic-M" !important;
  }
  
  .navbar {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* ************************introduce************************ */
  
  #introduce {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(98vh);
    margin: auto;
    background-color: #e9edf7;
  }
  
  #introduce h1 {
    color: #000;
    font-size: 50px;
  }
  
  #introduce p {
    color: #666;
    font-size: 30px;
  }
  
  #introduce .btn-dark {
    background-color: #000;
    border-color: #000;
  }
  
  #introduce .btn-dark:hover {
    background-color: #333;
    border-color: #333;
  }
  
  #introduce .circular-img {
    object-fit: cover;
    border-radius: 50%;
    width: 100%;
  }
  
  #introduce {
    overflow-x: hidden;
    overflow-y: hidden;
  }
  
  #introduce img {
    object-fit: cover;
    max-width: 500px;
    width: 100%;
  }
  
  @media screen and (max-width: 992px) {
    #introduce img {
      width: 410px;
    }
  }
  
  @media screen and (max-width: 646px) {
    #introduce img {
      width: 349px;
    }
  }
  
  @media screen and (max-width: 468px) {
    #introduce img {
      width: 296px;
    }
  }
  
  @media screen and (max-width: 992px) {
    #introduce h1 {
      margin-top: 100px;
    }
  }
  
  @media screen and (max-width: 564px) {
    #introduce p {
      font-size: 4.5vw;
    }
  }
  
  @media screen and (max-width: 543px) {
    #introduce p {
      font-size: 4.8vw;
    }
  }
  
  @media screen and (max-width: 405px) {
    #introduce p {
      font-size: 4.5vw;
    }
  }
  
  @media screen and (max-width: 504px) {
    #introduce h1 {
      font-size: 9.4vw;
    }
  }
  
  @media screen and (max-width: 488px) {
    #introduce h1 {
      font-size: 9vw;
    }
  }
  
  @media screen and (max-width: 418px) {
    #introduce h1 {
      font-size: 8.6vw;
    }
  }
  
  /* ***********************服務介紹************************ */
  
  #service{
    margin-top: 64px;
  }
  
  #service_section {
    padding-block: min(20vh, 2rem);
    width: min(76.5rem, 90%);
    margin-inline: auto;
    color: #111;
  }
  
  #service_section .row {
    --bs-gutter-x: 0rem;
  }
  
  #service_section .custom-image {
    box-shadow: 0 8px 8px #3c3c3c; /* 垂直偏移為正，只有下方有陰影 */
    border-radius: 8px;
    padding: 5px;
  }
  
  .image-section1 .image-section2 {
    width: 100%;
    max-height: 100%;
    overflow: hidden;
  }
  
  #service_section .custom-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  @media (max-width: 768px) {
    #service_section .custom-image {
      background-size: contain;
      height: auto;
    }
  }
  
  #service_section p {
    margin-top: 5px;
    font-family: "GenYoGothic-M";
    line-height: 25px;
    letter-spacing: 2px;
  }
  
  .text-section1 p,
  .text-section2 p {
    font-size: 18px;
  }
  
  .text-section1,
  .text-section2 {
    padding-left: 0px;
    padding-right: 0px;
    max-width: 48%;
    width: auto;
  }
  
  .text-section1 {
    margin-right: 0px;
    order: 2;
    margin-left: auto;
  }
  
  .image-section1 {
    order: 1;
  }
  
  .text-section2 {
    margin-right: auto;
    margin-left: 0px;
    order: 1;
  }
  
  .image-section2 {
    order: 2;
  }
  
  .image-section1 img,
  .image-section2 img {
    display: block;
    margin: 0 auto;
    max-width: calc(100%);
    width: 100%;
    height: 100%;
  }
  
  @media (max-width: 992px) {
    .row .text-section1,
    .row .text-section2 {
      order: 1;
    }
  
    .row .image-section1,
    .row .image-section2 {
      order: 2;
    }
  
    .text-section1,
    .text-section2 {
      max-width: 100%;
    }
  
    .text-section2 {
      margin-top: 10px;
    }
  }
  
  #service_section {
    overflow-x: hidden;
  }
  
  /* ************************服務內容及價格*******************************/
  #card {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "GenYoGothic-M";
    width: min(76.5rem, 90%);
    margin-inline: auto;
  }
  
  #card .container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    max-width: 100%;
    overflow-x: hidden; /* 防止橫向溢出 */
  }
  
  #card .card {
    padding: 15px;
    padding-bottom: 30px; /* 增加底部內邊距以確保按鈕與底部有距離 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    overflow: hidden;
    border: none;
    display: flex;
    flex-direction: column;
    height: auto;
    border-radius: 25px;
  }
  
  #card .card_content {
    width: 90%;
    height: 100%;
    margin: 0 auto;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
  }
  
  #card .card h2 {
    margin-bottom: 10px;
  }
  
  #card .card p,
  #card .card li,
  #card .card a,
  #card .card span {
    line-height: 1.7;
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  #card .light-commerce,
  #card .official-website {
    background-color: #e9edf7;
  }
  
  #card ul {
    padding-left: 20px; /* 確保列表項有左側間距 */
    margin-bottom: 15px; /* 列表與其他元素之間的間距 */
  }
  
  #card li {
    margin-bottom: 10px; /* 列表項之間的間距 */
    line-height: 1.5; /* 增加行高以避免文字擁擠 */
  }
  
  #card .price-section,
  #card .price-section2 {
    margin-top: auto; /* 將按鈕部分推到卡片底部 */
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    margin-bottom: 0px; /* 確保按鈕距離卡片底部 10px */
  }
  #card .price-section1 {
    margin-top: 140px !important;
    padding-bottom: 20px;
  }
  
  #card .no-hidden-fees {
    font-size: 25px;
    font-weight: 500;
    color: #f75965;
    margin: 0;
    display: flex;
    align-items: center;
  }
  
  #card .purchase-btn {
    background-color: #C6D1EE;
    font-family: "GenYoGothic";
    text-decoration: none;
    font-size: 18px;
    color: black;
    font-weight: 800;
    /* text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.3); */
    border: none;
    padding: 0 20px; /* 移除上下 padding，保持高度一致 */
    border-radius: 15px;
    cursor: pointer;
    height: 50px; /* 固定按鈕高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    font-size: 20px;
  }
  
  #card .purchase-btn:hover {
    background-color: #C6D1EE;
    box-shadow: 0px 6px 0px #685540;
    transform: translateY(2px);
  }
  
  #card .price {
    font-size: 1.8em;
    color: #f75965;
    display: flex;
  }
  
  #card .price-report {
    font-size: 1.8em;
    color: #f75965;
  }
  
  #card .card-content {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* 保持所有子元素的寬度一致 */
    height: 100%; /* 視需求調整 */
  }
  
  .price-section {
    margin-top: auto; /* 將按鈕區域推至最底部 */
  }
  
  @media (max-width: 768px) {
    #card .container {
      flex-direction: column;
      align-items: center;
    }
  
    #card .card {
      width: 100%; /* 小螢幕上卡片寬度適應容器 */
    }
  }
  
  @media (max-width: 1200px) {
    #card .container {
      justify-content: space-around;
    }
  
    #card .card {
      width: 100%; /* 在小於 1200px 時，卡片寬度適應容器 */
    }
  }
  
  #card .header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  #card .details {
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
  }
  
  #card .details:hover {
    color: #0dcaf0;
  }
  
  #card .details span {
    color: #8dbfbc;
    font-size: 20px;
  }
  
  #card .details i {
    margin-left: 5px;
    transition: transform 0.3s ease;
  }
  
  #card .details.active i {
    transform: rotate(180deg);
  }
  
  #card .material-icons {
    vertical-align: middle;
    color: #6a6a6a;
    font-size: 24px;
  }
  
  #card .card-content .material-icons {
    color: #fc9c7d;
  }
  
  #card .card-content {
    transition: opacity 0.3s ease-out;
  }
  
  #card .details-content {
    border-radius: 25px;
    position: absolute;
    top: 60px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background-color: #ffffff;
    padding: 20px;
    overflow-y: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  }
  
  #card .details-content.show {
    max-height: calc(100% - 80px);
    opacity: 1;
  }
  
  #card .details-content h3 {
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.5em;
    color: black;
    margin-bottom: 10px;
  }
  
  #card .details-content ul {
    padding: 0;
  }
  
  #card .details-content li {
    line-height: 1.5;
    margin-left: 15px;
    font-size: 20px;
    color: black;
    margin-bottom: 5px;
  }
  
  #card .details-content2 li {
    font-size: 20px;
  }
  
  @media (max-width: 475px) {
    #card .price-section,
    #card .price-section2 {
      flex-direction: column;
      gap: 10px;
    }
  
    #card .price {
      margin-bottom: 10px;
    }
  }
  
  /* ************************樣版參考************************ */
  
  #case_section .card {
    --circle-radius: 60px;
    width: 100%;
    min-height: 460px;
    background-color: #ffffff;
    border-radius: var(--circle-radius);
    overflow: hidden;
    margin-bottom: 20px;
  }
  
  #case_section .card__img {
    position: relative;
    width: 100%;
    height: 200px;
    background: url("https://via.placeholder.com/400x200") no-repeat center center /
      cover;
    filter: blur(24px);
    transition: filter 0.4s;
  }
  
  #case_section .row {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
  }
  
  .card__img::before,
  .card__img::after {
    content: "";
    position: absolute;
  }
  
  .card__img::before {
    bottom: calc(var(--circle-radius) * -1);
    width: 100%;
    height: calc(var(--circle-radius) * 2);
    border-radius: var(--circle-radius) var(--circle-radius) 0 0;
    background-color: #fff;
  }
  
  .card__img::after {
    right: 0;
    bottom: var(--circle-radius);
    width: calc(var(--circle-radius) * 2);
    height: calc(var(--circle-radius) * 2);
    border-radius: 50%;
    background: transparent;
    box-shadow: var(--circle-radius) var(--circle-radius) 0 0 #fff;
  }
  
  #case_section .card__content {
    position: relative;
    bottom: calc(var(--circle-radius) / 2);
    margin-inline: 40px;
    display: grid;
    grid-template-rows: min-content 0fr;
    transition: grid-template-rows 0.4s;
    color: #565656;
  }
  
  #case_section .card__content__subheading {
    font-size: 20px;
  }
  
  .card__content__text {
    overflow: hidden;
    opacity: 0;
    transition: margin 0s 0.4s, opacity 0.4s;
    color: #565656;
  }
  
  .card__content__button {
    opacity: 0;
    color: #000;
    /* 設置按鈕文字顏色 */
    font-size: 16px;
    /* 確保字體大小適中 */
    transition: opacity 0.4s ease-in-out;
    /* 增加過度效果 */
  }
  
  /* 卡片hover效果 */
  #case_section .card:hover .card__img {
    filter: blur(0);
    transition-delay: 0s;
  }
  
  #case_section .card:hover .card__content {
    grid-template-rows: min-content 1fr;
    transition-delay: 0s;
  }
  
  .card:hover .card__content__text {
    margin-top: 16px;
    opacity: 1;
    transition-delay: 0.4s, 0.4s;
  }
  
  .card:hover .card__content__button {
    opacity: 1;
    transition-delay: 0.4s;
  }
  
  #case_section {
    width: min(76.5rem, 90%);
    margin-inline: auto;
    color: #111;
  }
  
  #case_section h2 {
    text-transform: capitalize;
    letter-spacing: 0.025em;
    font-size: clamp(2rem, 1.8125rem + 0.75vw, 2.6rem);
    color: #565656;
    font-weight: bold;
  }
  
  #case_section a {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    /* 使用父元素的顏色 */
  }
  
  #case_section .container {
    margin-top: 5em;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 2rem;
  }
  
  #case_section .container .card:nth-child(1) .box .icon .iconBox {
    background: #e9edf7;
  }
  
  #case_section .container .card:nth-child(2) .box .icon .iconBox {
    background: #6dd6d0;
  }
  
  #case_section .container .card:nth-child(3) .box .icon .iconBox {
    background: #9eacb4;
  }
  
  #case_section .container .card ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.625rem;
  }
  
  #case_section .container .card ul li {
    text-transform: uppercase;
    background: var(--clr-tag);
    color: #282828;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.375rem 0.625rem;
    border-radius: 0.188rem;
  }
  
  #case_section a:hover,
  a:focus {
    text-decoration: none;
    /* 滑鼠移過或獲得焦點時依然無下劃線 */
    color: inherit;
    /* 滑鼠移過或獲得焦點時使用父元素的顏色 */
    outline: none;
    /* 移除聚焦時的外框 */
    transform: scale(1.05);
    /* 略微放大按鈕 */
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  }
  
  #case_section .container .card ul .branding {
    color: white;
  }
  
  #case_section .container .card ul .packaging {
    color: white;
  }
  
  #case_section .container .card ul .marketing {
    color: white;
  }
  
  #case_section .container .card .content {
    padding: 0.938rem 0.625rem;
  }
  
  #case_section .container .card .content h3 {
    text-transform: capitalize;
    font-size: clamp(1.5rem, 1.3909rem + 0.4364vw, 1.8rem);
    color: #565656;
  }
  
  #case_section .container .card .content p {
    margin: 0.625rem 0 1.25rem;
    color: #565656;
    font-family: "GenYoGothic";
  }
  
  #case_section .container .card-inner {
    position: relative;
    width: inherit;
    height: 18.75rem;
    background: var(--clr);
    border-radius: 40px;
    border-bottom-right-radius: 0;
    overflow: hidden;
  }
  
  #case_section .container .card-inner .box {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 40px;
    overflow: hidden;
  }
  
  #case_section .container .card-inner .box .imgBox {
    position: absolute;
    inset: 0;
  }
  
  #case_section .container .card-inner .box .imgBox img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
  }
  
  #case_section .container .card-inner .box .icon {
    position: absolute;
    bottom: -0.375rem;
    right: -0.375rem;
    width: 6rem;
    height: 6rem;
    background: var(--clr);
    border-top-left-radius: 50%;
  }
  
  #case_section .container .card-inner .box .icon:hover .iconBox {
    transform: scale(1.1);
  }
  
  #case_section .container .card-inner .box .icon::before {
    position: absolute;
    content: "";
    bottom: 0.375rem;
    left: -1.25rem;
    background: transparent;
    width: 1.25rem;
    height: 1.25rem;
    border-bottom-right-radius: 1.25rem;
    box-shadow: 0.313rem 0.313rem 0 0.313rem #fff;
  }
  
  #case_section .container .card-inner .box .icon::after {
    position: absolute;
    content: "";
    top: -1.25rem;
    right: 0.375rem;
    background: transparent;
    width: 1.25rem;
    height: 1.25rem;
    border-bottom-right-radius: 1.25rem;
    box-shadow: 0.313rem 0.313rem 0 0.313rem var(--clr);
  }
  
  #case_section .container .card-inner .box .icon .iconBox {
    position: absolute;
    inset: 0.625rem;
    background: #282828;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
  }
  
  #case_section .container .card-inner .box .icon .iconBox span {
    color: #685540;
    font-size: 2.5rem;
  }
  
  @media (min-width: 576px) {
    #case_section .container,
    .container-sm {
      max-width: 100%;
    }
  }
  
  @media (min-width: 768px) {
    #case_section .container,
    .container-md,
    .container-sm {
      max-width: 100%;
    }
  
    .row.g-4.d-flex.justify-content-center {
      margin: auto;
    }
  
    .custom-container {
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
  }
  
  /* 基本的卡片樣式 */
  .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
  }
  
  /* 價格區塊對齊底部並向下移動 */
  .price-section,
  .price-section2 {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
  }
  
  /* *************** 聯絡我們 ****************/
  .btn-send {
    background-color: #e9edf7;
    font-family: "GenYoGothic-M";
    color: #685540;
  }