/* 全局樣式 */
:root {
    --primary-color: #256145;
    --secondary-color: #4a90e2;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: "Fira Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* 標題樣式 */
h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: "Fira Sans", sans-serif;
    font-weight: 700;
}

h2 {
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: "Fira Sans", sans-serif;
    font-weight: 500;
    font-style: italic;
    /* color: #256145; */
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* 段落樣式 */
p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #333;
}

/* 導航欄樣式 */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    overflow: visible; /* 允許下拉選單顯示 */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
}

.navbar .container {
    overflow: visible; /* 允許下拉選單顯示 */
    position: relative;
    z-index: 1001;
}

.navbar-nav {
    flex-wrap: nowrap; /* 防止換行 */
    overflow: visible; /* 允許下拉選單顯示 */
    scrollbar-width: none; /* Firefox 隱藏滾動條 */
    -ms-overflow-style: none; /* IE 隱藏滾動條 */
}

.navbar-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari 隱藏滾動條 */
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

/* 最後一個nav-link（English）的樣式 */
.nav-item:last-child .nav-link {
    color: #555;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: #009b54 !important;
}

/* 桌面版隱藏移動端導航 */
@media (min-width: 1025px) {
    .navbar-toggler {
        display: none !important;
    }
    
    .navbar-collapse {
        display: flex !important;
    }
    
    /* 確保導航欄在所有桌面版寬度都保持固定 */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }
}

/* 平板和移動端顯示漢堡選單 */
@media (max-width: 1024px) {
    .navbar-toggler {
        display: block !important;
    }
    
    .navbar-collapse {
        display: none !important;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
}

/* 按鈕樣式 */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #1a4330;
    border-color: #1a4330;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* 卡片樣式 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 1.5rem;
}

/* 產品特色區塊 */
.product-features {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.product-features .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: var(--white);
    font-size: 2rem;
}

.product-features h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.product-features p {
    text-align: center;
    color: #666;
}

/* 產品優勢區塊 */
.product-benefits {
    padding: 80px 0;
}

.benefit-card {
    text-align: center;
    border-right: 1px solid rgba(37, 97, 69, 0.3);
}

.benefit-card:last-child {
    border-right: none;
}

.benefit-card .icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
}

.benefit-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #000;
    margin-bottom: 0;
}

/* 產品英雄區塊 */
.product-hero {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.product-hero .product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 40px;
}

.product-hero .product-image img {
    max-width: 100%;
    height: auto;
    /* border-radius: 10px; */
    /* box-shadow: 0 4px 20px rgba(0,0,0,0.1); */
}

.product-hero .product-features {
    padding: 0;
    background: none;
}

.product-hero .product-features .icon-wrapper {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

/* 解決方案區塊 */
.solution-approach {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.solution-approach .row {
    display: flex;
    align-items: center;
    margin: 0;
}

.solution-approach .col-lg-6 {
    padding: 0 15px;
}

.solution-approach .image-block {
    height: 100%;
    display: flex;
    align-items: center;
    padding-right: 40px;
    text-align: center;
}

.solution-approach .image-block img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.solution-approach .content-block {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 40px;
}

/* 挑戰概述區塊 */
.challenge-overview {
    margin-top: 70px;
}

.challenge-overview h1 {
    text-align: center;
    margin-bottom: 40px;
}

.challenge-overview .image-block {
    width: 80%;
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}

.challenge-overview .image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* 響應式調整 */
@media screen and (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .product-hero {
        padding: 60px 0;
    }

    .product-hero .product-image {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .solution-approach {
        padding: 60px 0;
    }

    .solution-approach .row {
        flex-direction: column;
    }

    .solution-approach .image-block {
        margin-bottom: 30px;
        padding-right: 0;
    }

    .solution-approach .content-block {
        padding-left: 0;
    }

    .solution-approach .image-block img {
        max-width: 400px;
    }

    .challenge-overview h1 {
        margin-bottom: 30px;
    }

    .challenge-overview .image-block {
        width: 90%;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .product-hero {
        padding: 40px 0;
    }

    .product-hero .product-image img {
        max-width: 100%;
    }

    .solution-approach {
        padding: 40px 0;
    }

    .solution-approach .image-block img {
        max-width: 300px;
    }

    .challenge-overview h1 {
        margin-bottom: 25px;
    }

    .challenge-overview .image-block {
        width: 95%;
        margin-bottom: 25px;
    }
}

/* 段落文字使用 Fira Sans */
p, 
.small-text,
.caption,
.description,
.content-text,
.card-text,
small {
    font-family: 'Fira Sans', 'Noto Sans TC', sans-serif;
    font-weight: 400;
}


h1,h2,h3{
    font-family: "Fira Sans", sans-serif;
    font-weight: 700;
}
/* 主標題只針對特定 class */
.hero-title, 
.main-title {
    font-family: 'Fredoka', 'Noto Sans TC', sans-serif;
    font-weight: 600;
}

/* 導航選單使用 ABeeZee */
.nav-link,
.navbar-nav li a {
    
    font-family: "Fira Sans", sans-serif;
  font-weight: 700;
  font-style: italic;
  color: #000;
    /* color: #fff; */
}

/* 保持其他文字的字體設定 */
body {
    font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
}

/* footer 使用 ABeeZee */
footer,
.footer-content,
.footer p,
.footer a,
.footer span,
.footer li {
    font-family: 'ABeeZee', 'Noto Sans TC', sans-serif;
}

/* 如果 footer 中有標題，也一併更新 */
.footer h3,
.footer h4,
.footer h5,
.footer h6 {
    font-family: 'ABeeZee', 'Noto Sans TC', sans-serif;
}

/* 如果有特定的 footer class 名稱，也可以這樣寫 */
.footer-links,
.footer-contact,
.footer-social,
.footer-copyright {
    font-family: 'ABeeZee', 'Noto Sans TC', sans-serif;
}

/* 移除 header 背景色 */
header,
.header {
    background-color: transparent;
}

/* 設定 nav 背景色 */
nav,
.navbar,
.navbar-expand-lg {
    background-color: #f7f7f7;
    padding: 10px 0;
    border-bottom: 1px solid #ffffff;  
}

/* 如果使用 Bootstrap，確保覆蓋預設樣式 */
.navbar.bg-light {
    background-color: #f7f7f7 !important;
}

/* 基本布局設定 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 主要內容區域 */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* 重要：防止 flex 子元素溢出 */
}

.ct-wrapper{ margin-top: 90px;}

/* 主視覺區域 */
.hero-section {
    flex: 1;
    width: 100%;
    background-image: url('../images/kv.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

/* 確保主視覺區域內所有文字元素都是白色 */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p,
.hero-section span,
.hero-title,
.hero-subtitle,
.hero-description {
    color: #ffffff;
}

/* 如果有按鈕文字也設為白色 */
.hero-section .btn {
    color: #ffffff;
}

/* Footer */
footer {
    background-color: #009b54;
    color: #fff;
    width: 100%;
    flex-shrink: 0; /* 防止壓縮 */
}

/* 移除所有可能造成間距的元素 */
.container-fluid,
.row,
[class*="col-"] {
    margin: 0;
    padding: 0;
}

/* 為 product-cards 內的 col-lg-4 恢復適當的間距 */
.product-cards .col-lg-4 {
    margin-bottom: 25px;
    padding: 0 10px;
}

.product-cards .col-lg-4:first-child {
    padding-left: 0;
}

.product-cards .col-lg-4:last-child {
    padding-right: 0;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .hero-section {
        height: calc(100vh - 60px);
    }
}

/* 基礎字體大小設定 */
html {
    font-size: 16px; /* 基準字體大小 */
}

/* 標題字體大小 */
.hero-title {
    font-size: 3.5rem;  /* 56px */
}

.main-title {
    font-size: 2.5rem;  /* 40px */
}

/* 一般段落文字 */
p {
    font-size: 1.25rem;    /* 16px */
}

/* RWD 字體縮放 */
@media screen and (max-width: 1440px) {
    html {
        font-size: 15px;
    }
}

@media screen and (max-width: 1280px) {
    html {
        font-size: 14px;
    }
}

@media screen and (max-width: 992px) {
    html {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 3rem;  /* 39px */
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 2.5rem;  /* 30px */
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 11px;
    }
    
    .hero-title {
        font-size: 2rem;  /* 22px */
    }
}

/* 特別小的螢幕 */
@media screen and (max-width: 375px) {
    html {
        font-size: 10px;
    }
}

/* 導航選單項目間距和分隔線 */
.nav-item {
    margin: 0 15px;  /* 進一步縮小左右間距 */
    position: relative;
}

/* 桌機版的分隔線 */
.nav-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 1px;
    background-color: #000000;
    opacity: 0.5;
}

/* 確保最後一個項目沒有分隔線和右邊距 */
.nav-item:last-child {
    margin-right: 0;
}

/* 手機版移除分隔線 */
@media screen and (max-width: 767px) {
    .nav-item:not(:last-child)::after {
        display: none;  /* 移除分隔線 */
    }
    
    .nav-item {
        border-bottom: 1px solid rgba(0,0,0,0.1);  /* 可選：加入底部分隔線 */
    }
    
    .nav-item:last-child {
        border-bottom: none;  /* 最後一項不需要底部分隔線 */
    }
}

@media screen and (max-width: 576px) {
    .nav-item {
        margin: 10px 0;
    }
    
    /* 在手機版移除分隔線 */
    .nav-item:not(:last-child)::after {
        display: none;
    }
}

/* Logo 樣式 */
.navbar-brand {
    padding: 0;
    margin: 0;
}

.logo {
    height: 42.5px;  /* 縮小 15% (50px * 0.85) */
    width: auto;
    min-width: 153px;  /* 縮小 15% (180px * 0.85) */
    display: block;
}

/* 響應式調整 */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 8px 0;  /* 手機版稍微縮小間距 */
    }
    
    .logo {
        height: 34px;  /* 縮小 15% (40px * 0.85) */
        min-width: 119px;  /* 縮小 15% (140px * 0.85) */
    }
    
    .nav-item {
        margin: 0 10px; /* 在較小螢幕上進一步縮小間距 */
        font-size: 1.3rem;
        padding: 10px 0;
    }
    
    /* 調整移動端的 margin-top */
    .ct-wrapper {
        margin-top: 70px; /* 平板和移動端導航欄較小，減少 margin-top */
    }
}

@media screen and (max-width: 1200px) {
    .nav-item {
        margin: 0 12px; /* 在中等螢幕上調整間距 */
    }
}

/* 首頁添加 home-page class */
.home-page {  /* 在首頁的 body 加上 .home-page class */
    overflow: hidden; /* 防止出現卷軸 */
}

.home-page .hero-section {
    height: calc(100vh - 90px); /* 扣掉 nav 高度 */
    width: 100%;
    background-image: url('../images/kv.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.home-page footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

/* 其他頁面的 footer */
footer {
    /* background-color: #02d364; */
    width: 100%;
}

/* 一般選單項目樣式 */
.nav-item .nav-link {
    color: #000000;
    position: relative;
    transition: color 0.3s ease;
}

/* 移除 dropdown 選單的預設底線 */
.nav-item.dropdown .nav-link::after {
    display: none;
}

/* 自定義底線動畫 */
.nav-item .nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #009b54;
    transition: width 0.3s ease;
}

/* 滑入時底線展開 */
.nav-item .nav-link:hover::before {
    width: 100%;
}

/* 確保hover時文字顏色改變 */
.nav-item .nav-link:hover {
    color: #009b54 !important;
}

/* Dropdown 容器 */
.nav-item.dropdown {
    position: relative;
    overflow: visible;
}

/* Solution 選單滑入效果 */
.nav-item.dropdown:hover .nav-link {
    color: #009b54;
}

.nav-item.dropdown:hover .nav-link::before {
    width: 100%;
}

/* 增加感應區域 */
.nav-item.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    margin: 5px 0 0 0;
    background: transparent;
}

/* Dropdown 選單 */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 280px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(0);
    transition: all 0.3s ease;
    border: none;
    z-index: 9999; /* 確保下拉選單在最上層 */
}

/* 滑入時顯示下拉選單（桌面版） */
@media (min-width: 768px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        z-index: 9999 !important;
    }
    
    /* 確保Bootstrap點擊也能顯示下拉選單 */
    .dropdown-menu.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        z-index: 9999 !important;
    }
    

}

/* 下拉選單選項樣式 */
.dropdown-menu .dropdown-item {
    padding: 12px 20px;
    color: #000000;
    transition: color 0.3s ease, background-color 0.3s ease;
    white-space: normal;
    line-height: 1.4;
}

/* 下拉選單選項滑入效果 */
.dropdown-menu .dropdown-item:hover {
    color: #009b54;
    background-color: rgba(0,155,84,0.1);
}

/* 移除 Bootstrap 預設的下拉箭頭 */
.dropdown-toggle::after {
    display: none;
}

/* 當前頁面的選單項目狀態 */
.nav-item .nav-link.active {
    color: #009b54;
}

.nav-item .nav-link.active::before {
    width: 100%;
}

/* 漢堡選單按鈕樣式 */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    background: transparent;
}

/* 移除 Bootstrap 預設的 focus 效果 */
.navbar-toggler:focus {
    box-shadow: none;
}

/* 漢堡選單的三條線 */
.navbar-toggler-icon {
    background-image: none !important;
    position: relative;
    transition: background-color 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #000;
    transition: transform 0.3s ease;
}

/* 中間的線 */
.navbar-toggler-icon {
    width: 30px;
    height: 2px;
    background-color: #000;
    display: block;
    transition: all 0.3s ease;
}

/* 上面的線 */
.navbar-toggler-icon::before {
    top: -8px;
}

/* 下面的線 */
.navbar-toggler-icon::after {
    bottom: -8px;
}

/* 展開時的動畫效果 */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent; /* 中間線消失 */
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: translateY(8px) rotate(45deg); /* 上線轉成 \  */
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: translateY(-8px) rotate(-45deg); /* 下線轉成 / */
}

/* Nav placeholder 高度設定 */
#nav-placeholder {
    height: 90px; /* 與 navbar 實際高度相同 */
    width: 100%;
}

/* 確保 container 內容不被覆蓋 */
.container {
    /* padding-top: 20px; */
}

/* 手機版移除上方間距 */
@media screen and (max-width: 767px) {
    .container {
        padding-top: 0;
    }
}

/* 響應式調整 */
@media screen and (max-width: 767px) {
    #nav-placeholder {
        height: 80px; /* 手機版可能需要較小的高度 */
    }

    /* 手機版選單容器 */
    .navbar-collapse {
        padding: 0 20px;  /* 左右各縮進 20px */
    }

    /* 或者直接調整 ul */
    .navbar-nav {
        padding: 0 20px;
    }

    /* 選單項目樣式 */
    .nav-item {
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    /* 下拉選單也跟著縮進 */
    .dropdown-menu {
        padding: 0 20px;
        margin: 0 -20px;  /* 抵消父元素的 padding */
        position: static; /* 手機版使用靜態定位 */
        opacity: 1;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: transparent;
        display: none; /* 手機版預設隱藏，由Bootstrap控制 */
    }
    
    /* 手機版下拉選單顯示時 */
    .dropdown-menu.show {
        display: block !important;
    }
}

/* 圖片容器和圖片大小控制 */
.pic01-container img,
img.pic01,
.pic01 {
    max-width: 100%;
    height: auto;
    width: 600px;  /* 設定較小的寬度，可以根據需求調整 */
    display: block;
    margin: 0 auto;  /* 圖片置中 */
}

/* 響應式調整 */
@media screen and (max-width: 768px) {
    .pic01-container img,
    img.pic01,
    .pic01 {
        width: 100%;  /* 在手機版使用全寬 */
        max-width: 450px;  /* 限制最大寬度 */
    }
}

/* 控制特定圖片大小 */
img[src*="pic01.jpg"] {
    max-width: 400px !important;
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* 手機版圖片尺寸 */
@media screen and (max-width: 768px) {
    img[src*="pic01.jpg"] {
        max-width: 280px !important;  /* 手機版縮小到 280px */
        width: 100% !important;
    }
}

/* 更小螢幕的尺寸 */
@media screen and (max-width: 576px) {
    img[src*="pic01.jpg"] {
        max-width: 250px !important;  /* 更小螢幕時再縮小一點 */
    }
}

/* 或者使用組合選擇器，更具體地指向這張圖片 */
img.img-fluid[src*="pic01.jpg"] {
    max-width: 320px !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 30px;
}



.kv_title{width: 80%; margin: 0 auto; font-size: 3.3rem;}
.kv_title_span{font-size:5.5rem;}

.mission_ct {
    /* width: 100%; */
    margin: 0 auto;
}

/* 手機版內縮設定 */
@media screen and (max-width: 767px) {
    .mission_ct {
        width: 90%;  /* 或是使用具體像素 padding */
        margin: 0 auto;
        padding: 0 20px;  /* 左右內縮 */
    }
}

/* 更小螢幕的設定 */
@media screen and (max-width: 576px) {
    .mission_ct {
        width: 95%;
        padding: 0 15px;  /* 更小螢幕稍微縮小 padding */
    }
}

/* 背景圖片區塊 - 電腦版 */
.about-banner {
    width: 100%;
    height: 100vh;  /* 改為 100vh，佔滿整個視窗高度 */
    background-image: url('../images/about.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin:  0;
    padding: 20px 0;
    display: flex;
    align-items: center;
}


.agriculture-hero, .superbug-hero, .product-hero, .contact-hero {
    margin: 71px 0 0 0;
}


/* 內容區塊 */

.about_title{font-style: italic;}

.about-content {
    position: relative;
    z-index: 1;
    width: 50%;
    padding-left: 8%;
    color: #000;
}

/* 手機版保持原樣 */
@media screen and (max-width: 767px) {
    .about-banner {
        height: auto;
        background-image: none;
        display: block;
    }
    
    .about-banner::before {
        content: '';
        display: block;
        width: 100%;
        height: 300px;
        background-image: url('../images/about.jpg');
        background-size: cover;
        background-position: center;
        margin-bottom: 30px;
    }
    
    .about-content {
        width: 100%;
        padding: 30px 20px;
        color: #000000;
        background-color: #ffffff;
    }
}

@media screen and (max-width: 576px) {
    .about-banner::before {
        height: 250px;
    }
    
    .about-content {
        padding: 20px 15px;
    }
}

/* h1 字體大小設定 */
h1 {
    font-size: 2.5rem;  /* 從原本的大小縮小 */
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family:Fira Sans ;
    font-weight: 700;
    font-style: italic;

}


h2{
    font-size: 2.1rem;  /* 從原本的大小縮小 */
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family:Fira Sans ;
    font-weight: 500;
    font-style: italic;
}

h3{
    font-size: 1.8rem;  /* 從原本的大小縮小 */
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family:Fira Sans ;
    font-weight: 400;
    font-style: italic;
}

p{  font-size: 0.9375rem;  /* 從原本的大小縮小 1px */
    line-height: 1.3;
    margin-bottom: 1rem;
    font-family:Fira Sans ;
    font-weight: 300;
   }
/* 響應式調整 */
@media screen and (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 1.75rem;
    }
}

/* 增加選擇器權重來覆蓋 Bootstrap */
.about-banner h1,
.about-content h1,
h1.about-title {
    font-size: 2.5rem !important;  /* 使用 !important 確保覆蓋 */
    line-height: 1.2;
    margin-bottom: 1rem;
    
}

/* 響應式調整 */
@media screen and (max-width: 767px) {
    .about-banner h1,
    .about-content h1,
    h1.about-title {
        font-size: 2rem !important;
    }
}

@media screen and (max-width: 576px) {
    .about-banner h1,
    .about-content h1,
    h1.about-title {
        font-size: 1.75rem !important;
    }
}

/* about.html 中的 lead 段落設定 */
.about-content .lead,
.about-banner .lead {
    padding: 0 6% 0 0;
}

/* 響應式調整 */
@media screen and (max-width: 767px) {
    .about-content .lead,
    .about-banner .lead {
        padding: 0;  /* 手機版可以移除右側內距 */
    }
} 




/* technology.html */
.container_box{ position:  relative; }

/* Technology Page Styles */
.tech-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/tech_bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin-top: 71px;
}

.tech-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 5%;
}

.tech-hero-content .row {
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.tech_tt {
    text-align: center;
    width: 65%;
}

.tech-title {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.tech-subtitle {
    font-size: clamp(1.2rem, 2vw, 2rem);
    font-style: italic;
    margin-bottom: 2rem;
    color: #ccc;
}

.macs-logo {
    width: 25%;
    text-align: center;
}

.macs-logo img {
    width: 100%;
    max-width: 280px;
    height: auto;
}

/* 響應式調整 - 手機版改為垂直排列 */
@media screen and (max-width: 768px) {
    .tech-hero-section {
        min-height: auto;  /* 移除最小高度限制 */
        margin-top: 80px;
        padding: 60px 0;  /* 改用 padding 來控制高度 */
    }

    .tech-hero-content {
        padding: 0 5%;
    }

    .tech-hero-content .row {
        flex-direction: column;
        gap: 0rem;
    }

    .tech_tt {
        width: 100%;
    }

    .macs-logo {
        width: 85%;
    }

    .macs-logo img {
        max-width: 380px;
    }
}

@media screen and (max-width: 576px) {
    .tech-hero-section {
        padding: 40px 0;  /* 更小螢幕時減少上下間距 */
    }

    .macs-logo {
        width: 90%;
    }

    .macs-logo img {
        max-width: 320px;
    }
}

.diagram-section {
    background: white;
    padding: 120px 0;
}

.reaction-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 2vw, 2rem);
    padding: 0 20px;
}

.diagram-item {
    text-align: center;
    flex-shrink: 1;
}

.diagram-item img {
    width: 100%;
    max-width: 120px;
    height: auto;
}

.diagram-item h4 {
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    margin-top: 10px;
}

.diagram-item i {
    font-size: clamp(1rem, 1.5vw, 2rem);
}

/* 響應式調整 */
@media screen and (max-width: 767px) {
    .diagram-section {
        padding: 80px 0;
    }

    .reaction-diagram {
        gap: 1.2rem;
    }

    .diagram-item img {
        max-width: 110px;  /* 增加圖片大小 */
    }
}

@media screen and (max-width: 768px) {
    .diagram-section {
        padding: 60px 0;
    }

    .reaction-diagram {
        gap: 1rem;
        padding: 0 15px;
    }

    .diagram-item img {
        max-width: 90px;  /* 增加圖片大小 */
    }

    .diagram-item i {
        font-size: clamp(1.5rem, 2vw, 2.5rem);  /* 增加 icon 大小 */
    }
}

@media screen and (max-width: 576px) {
    .diagram-section {
        padding: 40px 0;
    }

    .reaction-diagram {
        gap: 0.8rem;
        padding: 0 10px;
    }

    .diagram-item img {
        max-width: 75px;  /* 增加圖片大小 */
    }
}

/* 響應式調整 */
/* 平板 */
@media screen and (max-width: 767px) {
    .tech-hero-section {
        min-height: 400px;
        padding: 60px 0;
    }
    
    .tech-title {
        font-size: 3rem;
    }
    
    .tech-subtitle {
        font-size: 1.75rem;
    }
    
    .macs-logo {
        width: 30%;
        right: 5%;
    }
}

@media screen and (max-width: 768px) {
    .tech-hero-section {
        /* min-height: 350px; */
        padding: 40px 0;
    }
    
    .tech-title {
        font-size: 2.5rem;
    }
    
    .tech-subtitle {
        font-size: 1.5rem;
    }
    
    .macs-logo {
        width: 33%;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        /* margin: 20px auto 0; */
    }
}



.tech_tt{ 
    text-align: center;
    /* width: 65%; */

}

.macs-logo{ text-align: center;}
.macs-logo img {width: 100%;}

/* Technology Features Styles - 已移至 zhiyan.css */

/* Contact Card Styles */
.contact-card {
    text-align: center;
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card .icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card .icon-wrapper i,
.contact-card .icon-wrapper .material-icons {
    font-size: 3.5rem;
    color: #009b54;
}

.contact-card h3 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    margin-bottom: 0px;
    color: #333;
    line-height: 1.3;
}

.contact-card p,
.contact-card a {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #009b54;
}


.contact-card i{ 
    font-size: 2.5rem; 
    margin: 20px 0;}

.info-item{ margin:0 0 20px 0;}    

/* 響應式調整 */
@media screen and (max-width: 768px) {
    .contact-card {
        padding: 30px 20px;
        margin-bottom: 30px;
    }

    .contact-card .icon-wrapper {
        margin-bottom: 15px;
    }

    .contact-card h3 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .contact-card p,
    .contact-card a {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 576px) {
    .contact-card {
        padding: 25px 15px;
    }

    .contact-card h3 {
        font-size: 2rem;
    }

    .contact-card p,
    .contact-card a {
        font-size: 1.3rem;
    }
}

/* Product Features Styles */
.product-features {
    padding: 40px 0;
}

.product-features h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 30px;
    color: #333;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin: 0px 0;
    /* padding: 20px 0; */
    /* background: #fff; */
    /* border-radius: 10px; */
    /* box-shadow: 0 1px 5px rgba(0,0,0,0.05); */
    /* transition: transform 0.3s ease; */
    /* border-bottom: 1px dotted #888e; */
}

/* .feature-item:hover {
    transform: translateY(-5px);
} */

.benefit-card i{ font-size: 2rem; margin: 0 0 10px 0;}


.feature-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    background: #fff;
    /* border-radius: 50%; */
    border-right: 1px dotted rgb(15, 14, 14);
    /* color:#000; */
}

.feature-icon i,
.feature-icon .material-icons {
    font-size: 1.85rem;
    color: #000;
}

.feature-content {
    flex: 1;
   
}

.feature-content h3 {
    /* font-size: 1.5rem; */
    margin-bottom: 0px;
    color: #333;
     text-align: left;
}

.feature-content p {
    /* font-size: 1.1rem; */
    line-height: 1.6;
    color: #000;
    margin: 0;
     text-align: left;
}

/* 響應式調整 */
@media screen and (max-width: 768px) {
    .product-features {
        padding: 30px 0;
    }

    .feature-item {
        padding: 15px;
        margin-bottom: 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    .feature-icon i,
    .feature-icon .material-icons {
        font-size: 2rem;
    }

    .feature-content h3 {
        /* font-size: 1.3rem; */
    }

    .feature-content p {
        /* font-size: 1rem; */
    }
}

@media screen and (max-width: 576px) {
    .product-features {
        padding: 20px 0;
    }

    .feature-item {
        padding: 12px;
        margin-bottom: 15px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .feature-icon i,
    .feature-icon .material-icons {
        font-size: 1.8rem;
    }

    .feature-content h3 {
        /* font-size: 1.2rem; */
    }

    .feature-content p {
        /* font-size: 0.95rem; */
    }
}

/* Product Hero Section */
.product-hero {
    padding: 80px 0;
    background-color: #fff;
}

.product-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    /* box-shadow: 0 4px 20px rgba(0,0,0,0.1); */
    max-height: 600px;
}

.product-features {
    padding-left: 40px;
}

.product-features h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 40px;
    color: #333;
}
.benefit-card {
    text-align: center;
    border-right: 1px solid rgba(37, 97, 69, 0.3);  /* 使用 rgba 設置透明度 */
    padding: 0 0 50px 0;
    margin: 50px 0 0 0;
}

/* 修改選擇器，確保只有最後一個卡片沒有右邊框 */
.row > div:last-child .benefit-card {
    border-right: none;
}



.agriculture-hero,.case-study{ padding: 0 18%;}
.agriculture-hero .image-block{ width: 90%; margin: 30px auto;}
.case-study .image-block{ width: 75%;margin: 30px auto;}

.challenge-overview {
    margin-top: 70px;
}

.challenge-overview h1 {
    text-align: center;
    margin-bottom: 40px;
}

.challenge-overview .image-block {
    width: 80%;
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}

.challenge-overview .image-block img {
    max-width: 100%;
    height: auto;
    /* border-radius: 10px; */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* 響應式調整 */
@media screen and (max-width: 767px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.9rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    p {
        font-size: 1.3rem;
    }
    .challenge-overview h1 {
        margin-bottom: 30px;
    }

    .challenge-overview .image-block {
        width: 90%;
        margin-bottom: 30px;
    }
    .agriculture-hero,.case-study{ padding: 0 6%;}
    .agriculture-hero .image-block{width: 100%;}
    .case-study .image-block {width: 100%;}
    .challenge-overview{ width: 90%; margin: 40px auto 0 auto;
}
}

@media screen and (max-width: 576px) {
    .challenge-overview h1 {
        margin-bottom: 25px;
    }

    .challenge-overview .image-block {
        width: 95%;
        margin-bottom: 25px;
    }

    h1 {
        font-size: 2.8rem;
        
        
    }
    h2 {
        font-size: 2.6rem;
        
    }
    h3 {
        font-size: 2.1rem;
    }
}

/* 響應式調整 - 在小螢幕時改變邊框 */
@media screen and (max-width: 767px) {
    .benefit-card {
        border-right: none;
        border-bottom: 1px solid rgba(37, 97, 69, 0.3);  /* 使用相同的透明度 */
    }

    /* 最後一個卡片不需要底部邊框 */
    .row > div:last-child .benefit-card {
        border-bottom: none;
    }
}

.benefit-card i {
    font-size: 3rem;
}

.benefit-card .benefit-icon {
    margin: 20px 0;
}

/* .benefit-card .benefit-icon,.benefit-card h3{ text-align: center;}    */

/* 響應式調整 */
@media screen and (max-width: 767px) {
    .product-hero {
        padding: 60px 0;
    }

    .product-features {
        padding-left: 0;
        margin-top: 40px;
    }

    .product-image {
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 576px) {
    .product-hero {
        padding: 40px 0;
    }

    .product-features h1 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}

.solution-approach {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.solution-approach .row {
    display: flex;
    align-items: center;
    margin: 0;
}

.solution-approach .col-lg-6 {
    padding: 0 15px;
}

.solution-approach .image-block {
    height: 100%;
    display: flex;
    align-items: center;
    padding-right: 40px;
    text-align: center;
}

.solution-approach .image-block img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.solution-approach .content-block {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 40px;
}

/* 響應式調整 */
@media screen and (max-width: 767px) {
    .solution-approach {
        padding: 60px 0;
    }

    .solution-approach .row {
        flex-direction: column;
    }

    .solution-approach .image-block {
        margin-bottom: 30px;
        padding-right: 0;
    }

    .solution-approach .content-block {
        padding-left: 0;
    }

    .solution-approach .image-block img {
        max-width: 400px;
    }
}

@media screen and (max-width: 576px) {
    .solution-approach {
        padding: 40px 0;
    }

    .solution-approach .image-block img {
        max-width: 300px;
    }
}

/* footer 使用 ABeeZee */
footer,
.footer-content,
.footer p,
.footer a,
.footer span,
.footer li {
    font-family: 'ABeeZee', 'Noto Sans TC', sans-serif;
}

/* 如果 footer 中有標題，也一併更新 */
.footer h3,
.footer h4,
.footer h5,
.footer h6 {
    font-family: 'ABeeZee', 'Noto Sans TC', sans-serif;
}

/* 如果有特定的 footer class 名稱，也可以這樣寫 */
.footer-links,
.footer-contact,
.footer-social,
.footer-copyright {
    font-family: 'ABeeZee', 'Noto Sans TC', sans-serif;
}

/* 響應式調整 */
@media screen and (max-width: 768px) {
    footer,
    .footer-content,
    .footer p,
    .footer a,
    .footer span,
    .footer li,
    .footer h3,
    .footer h4,
    .footer h5,
    .footer h6,
    .footer-links,
    .footer-contact,
    .footer-social,
    .footer-copyright {
        font-size: 0.9rem;  /* 手機版字體縮小 */
    }
}

@media screen and (max-width: 576px) {
    footer,
    .footer-content,
    .footer p,
    .footer a,
    .footer span,
    .footer li,
    .footer h3,
    .footer h4,
    .footer h5,
    .footer h6,
    .footer-links,
    .footer-contact,
    .footer-social,
    .footer-copyright {
        font-size: 0.85rem;  /* 更小螢幕時字體再縮小 */
    }
}

/* 特定頁面的 h2 樣式覆蓋 */
.product-features h2,
.solution-approach h2 {
    font-size: 2.5rem;
    border-bottom: 1px dotted #fff;
    padding: 0 3% 50px 3%;
    margin: 20px 0;
    color: #fff;
}

@media screen and (max-width: 768px) {
    .product-features h2,
    .solution-approach h2 {
        font-size: 2rem;
        padding: 0 3% 30px 3%;
    }
}

@media screen and (max-width: 576px) {
    .product-features h2,
    .solution-approach h2 {
        font-size: 3rem;
        padding: 0 3% 20px 3%;
    }
}

/* 手機版圖片替換 */
@media screen and (max-width: 768px) {
    img[src*="agriculture_3_ch"] {
        content: url("../images/agriculture_2_ch.jpg");
    }
    img[src*="agriculture_3.jpg"] {
        content: url("../images/agriculture_2.jpg");
    }
}

@media screen and (max-width: 576px) {
    img[src*="agriculture_3_ch"] {
        content: url("../images/agriculture_2_ch.jpg");
    }
    img[src*="agriculture_3.jpg"] {
        content: url("../images/agriculture_2.jpg");
    }
}



@media (min-width: 768px) and (max-width: 1024px) {

    .nav-item {
            
            font-size: 1.3rem;
            padding: 10px 0;
        }


        .nav-item:not(:last-child)::after{
            display: none;
        }



    }