/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-brands/css/uicons-brands.css');
.fi-brands-line {
      font-size: 24px; /* 調整大小 */
      color: #ffffff;  /* Line 的官方綠色 */
      vertical-align: middle;
  }

@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-brands/css/uicons-brands.css');
.fi-brands-threads-circle {
      font-size: 24px; /* 調整大小 */
      color: #ffffff; 
      vertical-align: middle;
  }


.custom-line-icon, .custom-threads-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 32px; /* 手機版 w-8 */
    width: 32px;
    height: 32px;
    color: white !important;
    flex-shrink: 0;
  }

  @media (min-width: 768px) {
    .custom-line-icon, .custom-threads-icon {
      font-size: 40px; /* 電腦版 w-10 */
      width: 40px;
      height: 40px;
    }
  }
.text-prevent-overflow {
    max-width: 100%;       /* 限制不超過父容器 */
	word-break: keep-all;     /* 強制在任何字元間換行，適合長 Email */
    overflow-wrap: break-word; /* 確保長單字會換行而不溢出 */
    display: block;            /* 確保它是區塊元素以進行換行 */
}

/* 網格容器設定 */
.custom-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 手機版 2 欄 */
    gap: 12px;
    padding: 16px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* 基礎卡片樣式 */
.contact-card {
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column; /* 預設垂直排 */
    justify-content: space-between;
    transition: all 0.2s ease-in-out;
    color: white !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.contact-card:hover {
    transform: scale(1.02);
}

a:hover {
    text-decoration: none !important; /* 強制移除底線 */
    border-bottom: none !important;  /* 有些網頁是用 border 模擬底線，也要一併移除 */
}

/* 卡片顏色與特殊佈局 */
.card-line {
    grid-column: span 2; /* 手機版 LINE 佔兩欄 */
    background-color: #06C755;
    flex-direction: row; /* 手機版 LINE 橫向排 */
    align-items: center;
    gap: 12px;
}

.card-phone { background-color: #0284c7; }
.card-email { background-color: #d97706; }

/* 內部元件樣式 */
.icon-svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.tag-label {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.8;
    margin-bottom: 2px;
}

.main-title {
    font-size: 1.125rem;
    font-weight: bold;
    line-height: 1.2;
}

.main-title-small {
    font-size: 0.85rem;
    font-weight: bold;
    word-break: break-all;
}

.badge {
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
}

/* 裝飾用的發光球 */
.card-glow {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 5rem;
    height: 5rem;
    background: white;
    opacity: 0.2;
    border-radius: 50%;
    filter: blur(20px);
    display: none;
}

/* 電腦版調整 (螢幕寬度大於 768px) */
@media (min-width: 768px) {
    .custom-contact-grid {
        grid-template-columns: repeat(3, 1fr); /* 電腦版 3 欄 */
        gap: 1rem;
    }
    
    .contact-card {
        padding: 1.5rem;
        border-radius: 2rem;
    }

    .card-line {
        grid-column: span 1; /* 電腦版回歸 1 欄 */
        flex-direction: column; /* 電腦版回歸垂直排 */
        align-items: flex-start;
    }

    .card-glow { display: block; }

    .icon-svg {
        width: 40px;
        height: 40px;
    }

    .tag-label, .badge { font-size: 12px; }
}

/* 隱藏/顯示箭頭 */
.chevron-icon { opacity: 0.8; }
@media (min-width: 768px) {
    .chevron-icon { display: none; } /* 電腦版隱藏箭頭 */
}
/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 
/* --- 電腦版設定 (預設) --- */

/* 1. 設定卡片的外層容器 */
.nfd-wb-features__features-4 > .is-layout-flex {
    display: flex;              /* 啟用彈性排版 */
    flex-wrap: wrap;            /* 允許換行 (預防螢幕太窄時破版) */
    justify-content: center;    /* 內容置中 */
    gap: 3%;                    /* 卡片之間的間距 (左右各留空間) */
}

/* 2. 設定三個卡片本體 */
.nfd-wb-features__features-4 .nfd-shadow-xs {
    /* 原理：
       3個卡片 x 31% = 93% 
       剩下的 7% 留給 gap (間距) 分配
    */
    width: 31% !important;      
    flex-grow: 0;               /* 禁止卡片過度拉伸 */
    margin: 0 !important;       /* 清除編輯器可能產生的額外邊距 */
}


/* --- 手機版設定 (螢幕小於 768px) --- */
@media screen and (max-width: 768px) {
    
    /* 讓卡片變回 100% 寬度 */
    .nfd-wb-features__features-4 .nfd-shadow-xs {
        width: 100% !important;
        margin-bottom: 24px !important; /* 增加垂直間距，避免黏在一起 */
    }
    
    /* 調整容器間距，避免手機版左右被撐開 */
    .nfd-wb-features__features-4 > .is-layout-flex {
        gap: 0; 
    }
}

/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 

.badge-recommended {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #D4C5A5; /* 圖片中的金黃色 */
  color: #3C3836;           /* 深色文字 */
  font-size: 14px;
  font-weight: bold;
  padding: 6px 15px;
  border-bottom-left-radius: 12px; /* 左下圓角 */
  border-top-right-radius: 12px; /* 左下圓角 */
}
/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 

.circle-icon-bg {
    /* 1. 設定圓形外觀 */
    width: 36px;            /* 設定寬度 */
    height: 36px;           /* 設定高度 (必須與寬度相同) */
    background-color: #ffffff; /* 這裡設定您的底色 (例如淺灰) */
    border-radius: 50%;     /* 變成圓形的關鍵 */

    /* 2. 讓圖片居中並保持比例 */
	padding: 7px;
    object-fit: contain;    /* 確保圖片縮放時不會變形 */
    box-sizing: border-box; /* 確保 padding 不會把圓撐大 */
    
    /* 3. (選用) 如果是行內圖片，加上這個比較好對齊文字 */
    vertical-align: middle; 
}

.circle-icon-wrapper {
    /* 1. 【關鍵】強制設定固定的寬高，確保是正方形 */
    width: 48px;       /* 設定寬度 (對應 Tailwind 的 p-3 撐開後的大小) */
    height: 48px;      /* 設定高度 (必須跟寬度一模一樣) */
    padding: 6px;        /* 既然設定了寬高，就歸零 padding，避免影響計算 */

    /* 2. 讓裡面的 Icon 絕對置中 */
    display: inline-flex;      
    align-items: center;       
    justify-content: center;   

    /* 3. 外觀設定 */
    background-color: #F5F5F0; /* 淺米色底 */
    border-radius: 50%;        /* 因為寬高一樣，設 50% 就會是完美正圓 */
    color: #C5A065;            /* Icon 顏色 */

    /* 4. 位置調整 */
    margin-right: 16px;        /* 右邊留白 */
    flex-shrink: 0; /* 防止圓形被擠扁 */
    
    /* 5. 確保邊框計算方式一致 (保險起見) */
    box-sizing: border-box;
}

/* 確保裡面的 SVG 大小固定 */
.circle-icon-wrapper img {
    width: 24px;
    height: 24px;
}
/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 

/* --- 手機版清單強制全寬 (768px 以下觸發) --- */
@media (max-width: 767px) {
    .list-mobile-full {
        width: 100% !important;
        max-width: 100% !important; /* 覆蓋可能存在的最大寬度限制 */
        margin-left: 0 !important;  /* 清除左邊界 */
        margin-right: 0 !important; /* 清除右邊界 */
		padding-left: 0;
        box-sizing: border-box;     /* 確保 padding 不會把寬度撐破 100% */
    }
}

    .list-mobile-full {
        width: 100% !important;
        max-width: 100% !important; /* 覆蓋可能存在的最大寬度限制 */
        margin-left: 0 !important;  /* 清除左邊界 */
        margin-right: 0 !important; /* 清除右邊界 */
        box-sizing: border-box;     /* 確保 padding 不會把寬度撐破 100% */
    }


/* 1. 先把預設的醜醜黑點去掉 */
ul.custom-icon-list {
    list-style-type: none !important; /* 移除預設符號 */
    padding-left: 0 !important;       /* 移除預設縮排 */
}

/* 2. 設定每一行的位置 */
ul.custom-icon-list li {
    position: relative;      /* 讓 Icon 可以根據這行字來定位 */
    padding-left: 30px;      /* 左邊留白給 Icon (依 Icon 大小調整) */
    margin-bottom: 10px;     /* 每一行之間的距離 */
}
/*3.*/
ul.custom-icon-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    
    /* 這裡是用 Base64 編碼的 SVG，直接貼上就能用 */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23C5A065"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
    
    background-size: contain;
    background-repeat: no-repeat;
}
/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 

/* --- 手機版預設：按鈕置中 --- */
.btn-mobile-center {
    display: block !important;        /* 讓按鈕變成區塊元素，才能用 margin 置中 */
    width: 100% !important;    /* 寬度只包住文字，避免變成 100% 寬 */
    margin-left: auto !important;     /* 左邊自動推擠 */
    margin-right: auto !important;    /* 右邊自動推擠 -> 結果就是置中 */
}

/* --- 電腦版 (768px以上)：恢復靠左 --- */
@media (min-width: 768px) {
    .btn-mobile-center {
        display: inline-block !important; /* 恢復成一般按鈕排列 */
        margin-left: 0 !important;        /* 移除置中推擠 */
        margin-right: 0 !important;
		width: fit-content !important;
    }
}
/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 

.shadow-lg {
    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 

/* --- 第一部分：手機版 (所有螢幕都先套用這個) --- */
.md\:text-5xl {
    /* 把 1.8rem 改成你想要的手機字體大小 */
    font-size: 1.875rem !important; 
    line-height: 1.2 !important;
}
.text-xl {
    font-size: 1.25rem !important;  /* 約 20px */
    line-height: 1.75rem !important;
}
.text-2xl {
    font-size: 1.5rem !important;   /* 手機大小 */
    line-height: 2rem !important;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-base {
    font-size: 1rem !important;
}

.text-sm {
    font-size: 0.875rem ;
}

.text-lg {
	font-size: 1.125rem;
    line-height: 1.75rem;
}
.mb-0\.5 {
    margin-bottom: 0.125rem;
}

.py-0\.5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* --- 第二部分：電腦與平板版 (只有螢幕夠寬時才覆蓋上面的設定) --- */
@media (min-width: 768px) {
    .md\:text-5xl {
        /* 這裡維持原本電腦版想要的大尺寸 */
        font-size: 3.75rem !important;
        line-height: 1 !important;
    }
    
    .md\:leading-tight {
        line-height: 1.25 !important;
    }
	
	.md\:text-4xl {
        font-size: 2.25rem !important; /* 電腦變大 */
        line-height: 2.5rem !important;
    }
	
	.md\:text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
	.md\:text-base {
        font-size: 1rem !important;
    }
	.md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
	
	.md\:mb-1 {
        margin-bottom: 0.25rem;
    }
	
	.md\:py-1 {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
	
	.md\:text-xs {
        font-size: 0.75rem;
        line-height: 1rem;
    }
}


/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 

.text-shadow-basic {
  /* 語法：X軸位移 Y軸位移 模糊半徑 顏色(含透明度) */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 

/* 設定圖片的外框容器 */
.img-zoom-in {
    overflow: hidden !important; /* 關鍵！這行讓圖片放大時不會超出框框 */
    display: block;              /* 確保結構正常 */
    border-radius: 8px;          /* (選用) 幫圖片加一點圓角，比較好看 */
}

/* 設定圖片本體的動畫 */
.img-zoom-in img {
    transition: transform 0.6s ease !important; /* 設定 0.6秒慢速平滑過渡 */
    will-change: transform; /* 告訴瀏覽器準備變形，優化效能 */
}

/* 當滑鼠移到外框時，裡面的圖片放大 */
.img-zoom-in:hover img {
    transform: scale(1.1) !important; /* 放大 1.1 倍，你可以改 1.05 或 1.2 */
}
/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 

/* 1. 設定基礎動畫過渡，確保滑鼠移開時也會平滑縮回去 */
.wp-block-button__link {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* 2. 設定滑鼠懸停 (Hover) 時的狀態 */
.wp-block-button__link:hover {
    /* 放大 1.05 倍 (數值越大放越大，建議不要超過 1.1) */
    transform: scale(1.05) !important;
    
    /* 添加陰影：X軸位移 Y軸位移 模糊半徑 顏色(黑色帶20%透明度) */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
    
    /* (選用) 確保按鈕在最上層，不會被旁邊的東西蓋住 */
    position: relative;
    z-index: 10;
}

/* 定義懸浮效果的 Class */
.hover-lift-shadow {
    /* 設定平滑過渡，讓飄移不會卡卡的 */
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    
    /* 讓瀏覽器知道這個物件會變形，優化效能 */
    will-change: transform; 
}

/* 設定滑鼠移過去 (Hover) 的狀態 */
.hover-lift-shadow:hover {
    /* 1. 垂直向上移動 8px (負數代表往上) */
    transform: translateY(-8px) !important;
    
    /* 2. 產生擴散的陰影，模擬物體離地面的距離 */
    /* 參數：X偏移 Y偏移 模糊半徑 顏色(黑色帶15%透明度) */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/* 這是訂閱和單品的懸浮按鈕*/
/* 1. 設定基礎動畫過渡 */
.wp-block-button__link_2 {
    /* 關鍵修改：在 transition 中加入 background-color 和 color
       這樣顏色變化才會有漸變效果，而不是生硬的切換 
    */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease !important;
	border-radius: 25px
}

/* 2. 設定滑鼠懸停 (Hover) 時的狀態 */
.wp-block-button__link_2:hover {
    /* 原有的放大效果 */
    transform: scale(1.05) !important;
    
    /* 原有的陰影效果 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
    
    /* 新增：背景顏色變更 (#D4C5A5) */
    background-color: #D4C5A5 !important;
    
    /* 新增：文字顏色變更 (#3C3836) */
    color: #3C3836 !important;
    
    /* 確保層級 */
    position: relative;
    z-index: 0;
	border-radius: 25px
}

/*濾掛體驗包*/
/* 1. 設定基礎動畫過渡 */
.wp-block-button__link_3 {
    /* 關鍵修改：在 transition 中加入 background-color 和 color
       這樣顏色變化才會有漸變效果，而不是生硬的切換 
    */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease !important;
	border-radius: 25px
}

/* 2. 設定滑鼠懸停 (Hover) 時的狀態 */
.wp-block-button__link_3:hover {
    /* 原有的放大效果 */
    transform: scale(1.05) !important;
    
    /* 原有的陰影效果 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
    
    /* 新增：背景顏色變更 (#D4C5A5) */
    background-color: #c2b291 !important;
    
    /* 新增：文字顏色變更 (#3C3836) */
    color: #3C3836 !important;
    
    /* 確保層級 */
    position: relative;
    z-index: 0;
	border-radius: 25px
}
