/* 基本重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DFKai-SB", "Microsoft JhengHei", "標楷體", sans-serif;
    line-height: 1.6;
    margin-top: 60px; 
    color: #333;  
    background-color: #f5f5f3;
    transition: all 0.3s ease; 
}

h4{ /* 置中 */
    color: #e70f0f;
    font-family: "DFKai-SB", sans-serif,'Noto Sans TC';
    font-size: 28px;
    text-align: center;
    line-height: 1.5;
    font-weight: 900;
   }
h5{ /* 靠左 */
    color: #f71b1b;
    font-family: "DFKai-SB", sans-serif;
    font-size: 24px;
    text-indent: 20px; /* 設定文字左邊界*/	
    line-height: 1.2;
   }
h6{    
    font-size: 22px; 
    color: #8b0000;   
   }
h7{    
    font-size: 22px; 
    color: #ffffff;   
   }

   .h41{ /* div class="h41"設定用 */
    color: #ce683c;
    font-family: "DFKai-SB", sans-serif,'Noto Sans TC';
    font-size: 22px;
    text-align: center;
    line-height: 1.3;
    font-weight: 800;
   }   

/* 互動式閱讀設定開始 */
/* 暗黑模式開始 */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode .related-topics {
    background-color: transparent;
}

.dark-mode .section-title {
    color: #e0e0e0;
    border-bottom-color: #8b0000;
}

.dark-mode .header {
    background-color: #1a1a1a;
}

.dark-mode .content-card {
    background-color: #1e1e1e;
    border-color: #333;
}

.dark-mode .topic-card {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
}

.dark-mode .topic-card:hover {
    background-color: #3a3a3a;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.dark-mode .topic-card p {
    color: #aaa;
}

.dark-mode .card-icon {
    opacity: 0.9;
}

.dark-mode h1, .dark-mode h2, .dark-mode h3 {
    color: #f5f5f5;
}
/* 暗黑模式結束 */

 /* 容器設定-新 */
.container, .main-content {
  width: 80%;
  max-width: 1400px;  /* max-width: 65ch（约700px）保證可讀性*/
  min-width: 300px; /* 确保手机端最小可用宽度 */
  margin: 0 auto;
  padding: 20px;
}

.img-container {
  float: right;
  margin: 0 0 15px 15px;
  max-width: 100%;
  /* 自動調整右邊距 */
 
  right: 15px;
  position: relative; /* 或 absolute/fixed 取決於需求 */
  /* z-index: 9999; 確保圖片在最上層 */
}

.content {
    max-width: 90%;
    margin: 0 auto;
    /* margin: 20px; */
    padding: 20px;
    text-indent: 2em; /* 標題2 個中文字的縮排 */
    line-height: 1.6;
    font-size: 18px;
}

/* 響應式圖片設定 */
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 滑鼠懸停時進一步放大 */
.img-container:hover .responsive-img {
  transform: scale(1.25);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}


/* 桌面版設定 */
@media (min-width: 768px) {
    .img-container {
        width: 375px;
    }
    .topic-card {
        margin: 20px;
    }
}

@media (min-width: 2000px) {
  .container, .main-content {
    max-width: 80%;
  }
}
/* 手機版設定 */
@media screen and (max-width: 767px) {
    .container, .content {
        width: 95%;
        padding: 10px;
    }
    
    .img-container {
        float: none;
        clear: both; /* 清除浮動 */
        margin: 15px auto;
        width: 100%;
        justify-content: center; /* 水平置中 */
        text-align: center;
    }

    .img-container figure {
        float: none;
        margin: 20px auto;
        text-align: center;
    }
    
    figcaption {
        margin-top: 8px;
        font-size: 0.9em;
        color: #666;
        font-style: italic;
    }
    
    .dark-mode figcaption {
        color: #aaa;
    }

    .img-container:hover .responsive-img {
    transform: scale(1.05);  /* 手機上懸停輕微放大 */
    }
    
    .topic-card {
        margin: 0 auto;
        padding: 5px;
    }
    
    .content {
        font-size: 16px;
        line-height: 1.5;
    }
}

@media (min-width: 2000px) {
    .container, .main-content {
        max-width: 80%;
    }
}

/* 圖片樣式設定開始 */
.image-container {
            text-align: center;
            margin: 25px 0;
        }

        .responsive-image {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .image-caption {
            text-align: center;
            margin-top: 15px;
            font-style: italic;
            color: #6c757d;
            font-size: 1rem;
        }

    @media (max-width: 1024px) {    
        .responsive-image {
        max-width: 90%;
        }
    }

    @media (max-width: 768px) {
        .responsive-image {
            max-width: 95%;
        }
    }
        
    @media (max-width: 480px) {
        .responsive-image {
            max-width: 100%;
        }
    }
/* 圖片樣式設定結束 */



/* 頁首樣式 */
.header {
    background-color: #8b0000;
    color: white;
    padding: 30px 0 1px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content p:nth-child(1) {  /* 第一個 p 元素 */
    margin-top: 10px;
    margin-bottom: 5px;
    color: #ff0000; /* 紅色 */
}

.header-content p:nth-child(2) {  /* 第二個 p 元素 */
    margin-top: 5px;
    margin-bottom: 5px;
    color: #00ff00; /* 綠色 */
}

.header-content p:nth-child(3) {  /* 第三個 p 元素 */
    margin-top: 5px;
    margin-bottom: 10px;
    color: #0000ff; /* 藍色 */
}

.dark-mode .header-content p {
    color: #ffffff; /* 白色文字 */
}


h1 {
    text-align: center; /* 確保文字置中 */
    position: relative; /* 為偽元素建立定位基準 */
    padding-bottom: 10px; /* 預留空間給下劃線 */
    color: #f70505;
    font-size: 2.2rem;
  }
  
  h1::after {
    content: "";
    position: absolute;
    left: 50%; /* 從中間開始 */
    bottom: 0;
    width: 160px; /* 下劃線長度 */
    height: 4px;
    background: #ff0000;
    transform: translateX(-50%); /* 水平置中 */
  }

.subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 5px;
}

  .highlight-red {
    color: red;
  }

/* 工具欄 */
.toolbar {
    position: fixed;
    top: 60px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.tool-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(147, 219, 231, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.tool-btn:hover {
    transform: scale(1.1);
    background-color: white;
}

.tool-btn i {
    font-size: 1.2rem;
    color: #333;
}

.dark-mode .tool-btn {
    background-color: rgba(30,30,30,0.9);
}

.dark-mode .tool-btn i {
    color: #e0e0e0;
}

/* 內容卡片 */
.content-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: all 0.3s;
    width: 100%;
    position: relative;
    scroll-margin-top: 30px; /* 根據您的導航欄高度調整超連結定位 */
}

.dark-mode .content-card {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* 內容樣式 */
.article-meta {
    text-align: right;
    margin-bottom: 30px;
    color: #666;
    font-size: 0.9rem;
}

.dark-mode .article-meta {
    color: #aaa;
}

h2 {
    font-size: 1.8rem;
    color: #8b0000;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.dark-mode h2 {
    border-bottom-color: #333;
}

h3 {
    font-size: 1.5rem;
    color: #8b0000;
    margin: 35px 0 20px;
    position: relative;
    padding-left: 15px;
}

.dark-mode h3 {
    color: #f5f5f5;
}

h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    height: 60%;
    width: 5px;
    background-color: #8b0000;
    border-radius: 5px;
}

p {
    margin-bottom: 25px;
    font-size: 20px;/* 設定網頁文字大小 */
    text-align: justify;
    text-justify: inter-ideograph;
}
/* <p>•黑字<span style="color:red">紅字</span>，黑字。</p> */
/* 下面有重複設定
.highlight {
    background-color: #fff9c4;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.3s;
} */

.red-text {
    color: #8b0000;
    font-weight: 500;
}

/* 引用框 */
blockquote {
    border-left: 4px solid #8b0000;
    padding: 15px 20px;
    margin: 25px 0;
    background-color: #f9f9f9;
    font-style: italic;
    color: #555;
}


.dark-mode blockquote {
    background-color: #1e1e1e;
    color: #ccc;
    border-left-color: #8b0000;
}

/* 表格樣式 
避免表格超出螢幕寬：<div class="scrollable-table">
  <table><tr>
    <th>品種</th> </tr></table> </div>*/
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

table td {
    padding: 15px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.dark-mode table td {
    border-color: #444;
}

/* 目錄導航 側邊選單*/
/* 上面已有設定.content-card {
    scroll-margin-top: 30px; 調整這個值控制超連結定位時與頂端的偏移量 
使用目錄導航設定範本-吃素者的建議飲食方子.htm
或併用提示設定應放在後面，例<div class="content-card" id="section6">
    <h3 class="section-title">相關主題探索</h3>
    <div class="related-topics">  
    <div class="topic-grid">
}*/
.toc-container {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-height: 80vh;
    overflow-y: auto;
    width: 250px;
    z-index: 90;
    display: none;
}

.dark-mode .toc-container {
    background-color: #1e1e1e;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.toc-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #8b0000;
    font-weight: bold;
}

.dark-mode .toc-title {
    color: #b42828;
}

.toc-list {
    list-style: none;
}

.toc-item {
    margin-bottom: 10px;
}

.toc-link {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: block;
    padding: 0.1px 0;
}

.dark-mode .toc-link {
    color: #ccc;
}

.toc-link:hover {
    color: #6d15d2;
    transform: translateX(5px);
}

.toc-link.active {
    color: #bd3a3a;
    font-weight: bold;
}

/* 第二階層文字樣式 */
.toc-subitem {
    color: #666;
    font-size: 1.0em;
    cursor: default; /* 保持預設游標 */
    transition: color 0.2s ease; /* 添加平滑過渡效果 */
}

/* 第二階層 hover 效果 */
.toc-subitem:hover {
    color: #007bff; /* 藍色 */
}

/* 第二階層暗黑模式適配 */
.dark-mode .toc-subitem {
    color: #aaa;
}

.dark-mode .toc-subitem:hover {
    color: #4da6ff; /* 暗黑模式下的藍色 */
}

/* 第二層列表縮排 */
.toc-sublist {
    list-style: none;
    margin: 5px 0 0 15px; /* 左側縮排 15px */
    padding: 0;
}

.toc-sublink {
    display: block;
    color: #666;
    font-size: 1.0em;
    text-decoration: none;
    padding: 2px 0;
    transition: color 0.2s ease;
}

.toc-sublink:hover {
    color: #007bff;
}

/* 暗黑模式適配 */
.dark-mode .toc-sublink {
    color: #aaa;
}

.dark-mode .toc-sublink:hover {
    color: #4da6ff;
}

/* 響應式調整 */
@media (max-width: 1200px) {
    .toc-container {
        left: 10px;
        width: 220px;
    }
}

@media (max-width: 992px) {
    .toc-container {
        position: static;
        transform: none;
        max-height: none;
        width: 100%;
        margin-bottom: 30px;
        display: block !important;
    }
    
    .container {
        padding-top: 80px;
    }
    
    .toolbar {
        top: 70px;
        right: 10px;
    }
}


/* 手機版專用樣式 */
@media (max-width: 768px) {
    .toolbar {
        bottom: 10px !important; /* 強制底部定位 */
        top: auto !important; /* 取消頂部定位 */
        width: 96%; /* 稍微縮減寬度 */
        max-width: 400px; /* 設定最大寬度 */
        justify-content: space-evenly;
        padding: 10px 5px;
        margin: 0 auto;
    }
    
    .tool-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* 搜尋下拉框調整 */
    .search-dropdown {
        position: fixed;
        bottom: 70px !important; /* 從底部向上彈出 */
        left: 1% !important;
        transform: translateX(-50%) !important;
        width: 92vw; /* 稍小於視窗寬度 */
        height: 400px !important;
        max-width: 400px !important;
        top: auto !important;
    }
}

/* 超小屏幕調整 */
@media (max-width: 480px) {
    .toolbar {
        gap: 8px;
        padding: 8px 3px;
    }
    
    .tool-btn {
        width: 36px;
        height: 36px;
    }
}

/* 搜尋功能樣式 */
.search-container {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: none;
    z-index: 101;
    border: 1px solid #eee;
}

.dark-mode .search-dropdown {
    background-color: #1e1e1e;
    border-color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.search-dropdown.active {
    display: block;
}

.search-type {
    display: flex;
    margin-bottom: 15px;
}

.search-type input {
    margin-right: 5px;
}

.search-type label {
    margin-right: 15px;
    color: #333;
    cursor: pointer;
}

.dark-mode .search-type label {
    color: #e0e0e0;
}

.search-option {
    margin-bottom: 15px;
}

.search-option label {
    display: block;
    margin-bottom: 8px;
    color: #8b0000;
    font-weight: bold;
}

.dark-mode .search-option label {
    color: #f5f5f5;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.dark-mode .search-input {
    background-color: #1e1e1e;
    border-color: #444;
    color: #e0e0e0;
}

.search-btn {
    background-color: #8b0000;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #6d0000;
}

@media (max-width: 768px) {
    .container {
        padding: 5px;
        padding-top: 70px;
    }
    
    .header {
        padding: 20px 0;
    }
    
    
      /* 手机端减小下划线粗细 */  
      h1 {
        padding-bottom: 8px; /* 减少预留空间 */
        font-size: 1.8rem; /* 调小字体大小 */
      }
      
      h1::after {
        width: 120px; /* 缩短下划线长度 */
        height: 3px; /* 减细下划线 */
      }  
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .content-card {
        padding: 5px 5px 1px 5px;
        margin: 0 auto; /* 確保置中 */
        /* 如果父容器限制了宽度 */        
        width: calc(100% + 28px); /* 抵消父容器的padding */
        }
    

    .search-dropdown {
        width: 280px;
        right: -50px;
    }
}

@media (max-width: 480px) {
    h1 {
        padding-bottom: 6px;
        font-size: 1.5rem;
    }
      
    h1::after {
        width: 100px;
        height: 2px;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .toolbar {
        top: 5px;
        right: 5px;
    }
    
    .tool-btn {
        width: 35px;
        height: 35px;
    }

    .search-dropdown {
        width: 250px;
        right: -80px;
    }
}

/* 互動式閱讀設定結束 */

/* 主要導航欄開始 */
.main-nav {
    background-color: rgba(10, 136, 23, 0.9);
    color: white;
    position: fixed;
    width: 100%;
    height: 60px;
    align-items: center;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0 10px;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
}

.nav-link {    
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}

.nav-link:hover {
    text-decoration: none;
    color: rgba(239, 2, 2, 0.8);
}

/* 針對導航菜單中的 li 項目 */
.main-nav ul.menu li,
.main-nav ul.submenu li {
  font-size: 17px; /* 調整為您想要的大小，例如 18px */
}

/* 針對內容區域的 checklist li 項目 */
.content-card ul.checklist li {
  font-size: 20px; /* 調整為您想要的大小，例如 16px */
  line-height: 1.6; /* 可同時調整行高增加可讀性 */
}

/* 如果需要特別強調某些 li 項目 */
.content-card ul.checklist li strong {
  font-size: 20px; /* 更大的字體 */
  font-weight: bold;
}



/* 主選單樣式 */
.menu {
    display: flex;
    list-style: none;
    justify-content: space-between;
    justify-content: center;  /* 水平居中 */
    align-items: center;  /* 垂直居中（可選） */
    padding-right: 60px;
    padding-top: 0px;
}

.menu > li {
    position: relative;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 1rem;
    display: block;
}

/* 下拉選單樣式 */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(38, 186, 53, 0.9);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    list-style: none;
}

.level-1 {
    background-color: rgba(100, 231, 113, 1);    
}

.level-2 {
    left: 100%;
    top: 0;
    background-color: rgba(32, 227, 52, 1);
}

.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    
}

.has-submenu a:hover {
    background-color: #47d557;
    color: #ffffff;
}

.menu a:hover {
    background-color: #47d557;
    color: #ffffff;
}

/* 浮動導航欄 - 默認隱藏 */
.floating-nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #333;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    display: none;
}

.floating-menu {
    display: flex;
    list-style: none;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.5rem;
}

.floating-menu li {
    margin-right: 1rem;
}

.floating-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: inline-block;
}

/* 手機版樣式 */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding-right: 50px;
    color: rgb(255, 255, 255);
}

.mobile-menu-toggle:hover {
    color: rgb(11, 238, 64);
}

/* RWD 響應式設計 */
@media (max-width: 992px) {
    /* 平板樣式 */
    .company-name {
         display: none; /*隱藏公司名稱 */
    } 
}

@media (max-width: 768px) {
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        margin: 0 auto; /* 移除這個會讓選單置中的設定 */
        text-align: left; /* 確保文字靠左 */
        align-items: flex-start; /* flex項目靠左 */
        padding: 0; /* 移除內間距 */
        gap: 0; /* 移除flex項目間隙 */        
        width: 80%;
        height: calc(100vh - 40px);
        background-color: #0eac18;
        flex-direction: column;        
    }

    .company-name {
        display: block; /*顯示公司名稱 */
   } 
    
    .menu.active {
        display: flex;
        justify-content: left;  /* 靠左 */
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        padding-left: 1rem;
    }
    
    .has-submenu:hover > .submenu,
    .submenu.active {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .floating-nav {
        display: block;
        background-color: #15bf21;
    }
    
    .floating-nav.visible {
        transform: translateY(0);
    }
}
/* 主要導航欄結束 */

/* 回頂部浮動按鈕樣式開始 */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.floating-buttons.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.floating-button:hover {
    background-color: #555;
    transform: scale(1.1);
}

.floating-button svg {
    width: 24px;
    height: 24px;
}

.back-to-top {
    background-color: #007bff;
}

.select-all {
    background-color: #28a745;
}

.back-to-bottom {
    background-color: #6f42c1; 
}

/* 響應式設計 */
        @media (max-width: 768px) {
            .floating-buttons {
                bottom: 15px;
                right: 15px;
            }
            
            .floating-button {
                width: 45px;
                height: 45px;
            }
            
            .floating-button svg {
                width: 20px;
                height: 20px;
            }
        }

        @media (max-width: 480px) {
            .floating-buttons {
                bottom: 10px;
                right: 10px;
            }
            
            .floating-button {
                width: 40px;
                height: 40px;
            }
            
            .floating-button svg {
                width: 18px;
                height: 18px;
            }
        }
/* 回頂部浮動按鈕樣式結束 */

/* 二欄佈局專用 */
.layout-two-column {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px; /* 欄間距 */
}

.layout-two-column .left-sidebar {
    flex: 0 0 30%; /* 左欄固定30%寬度 */
    position: sticky;
    top: 20px; /* 與頂部距離 */
    align-self: flex-start; /* 避免高度拉伸 */
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.layout-two-column .main-content {
    flex: 0 0 70%;
    padding-left: 10px;
    min-width: 0; /* 防止內容溢出 */
}

/* 平滑過渡效果 */
.layout-two-column {
    transition: all 0.3s ease;
}

/* 手機端響應式設計 - 改為單欄布局 */
@media (max-width: 768px) {
    .container.layout-two-column {
        display: flex;
        flex-direction: column; /* 改為垂直排列 */
        width: 100%;
        padding: 5;
        margin: 5; 
        overflow: visible;
        height: auto;       
    }
    
    .left-sidebar {
        flex: 1 1 100%; /* 佔滿全部寬度 */
        width: 100%;
        min-width: 100%; /* 強制最小寬度 */
        position: static; /* 取消固定定位 */
        max-height: none; /* 取消高度限制 */
        /* order: 1; 將目錄移到內容下方 */
        margin: 15px 0 0 0;
        padding: 15px;
        border-top: 1px solid #eee;
        box-sizing: border-box;
        /* 視覺增強 */
        background: #fff; /* 確保背景覆蓋 */
        box-shadow: none; /* 清除可能存在的陰影 */
        position: static !important; /* 強制取消固定定位 */
        top: auto !important;
        bottom: auto !important;
        z-index: auto !important;
    }
            
    .main-content {
        position: relative;
        z-index: 1; /* 確保內容在上層 */
        /* order: 2; 內容區在上方 */
    }
      
    /* 手機端目錄樣式調整 */
    .toc {
        padding: 15px;
        background: #f8f8f8;
        border-radius: 8px;
        width: 100% !important;
        max-width: 100% !important;
    }
}



/* 針對小手機的額外調整 */
@media (max-width: 480px) {
    .left-sidebar {
        padding: 10px;
    }
}

/* 共用目錄樣式 */
.toc {
    position: sticky;
    top: 20px;
    background-color: white;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border-radius: 5px;
}

.toc ul {
    list-style: none;
    padding-left: 10px;
}

.layout-one-column .toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.toc a:hover {
    background-color: #f0f0f0;
}

.layout-one-column .toc a {
    border: 1px solid #eee;
}


/* 三欄及二欄佈局的標題保持原樣 */
.layout-two-column h2,
.layout-two-column h3,
.layout-three-column h2,
.layout-three-column h3 {
    padding-top: 50px;
    margin-top: -30px;
    scroll-margin-top: 20px;
}

/* 修改現有的.title-nav樣式 */
.title-nav {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 8px; /* 為滾動條留出空間 */
    
    /* 自定義滾動條 */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #c1c1c1 #f5f5f5; /* Firefox */
}

/* Chrome/Safari/Edge 滾動條樣式 */
.title-nav::-webkit-scrollbar {
    width: 8px;
}

.title-nav::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.title-nav::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 4px;
    border: 2px solid #f5f5f5;
}

.title-nav::-webkit-scrollbar-thumb:hover {
    background-color: #a8a8a8;
}

/* 增加滑鼠懸停時滾動條更明顯 */
.title-nav:hover::-webkit-scrollbar-thumb {
    background-color: #a8a8a8;
}

/* 滾動條軌道陰影效果 */
.title-nav {
    background: 
        linear-gradient(#f5f5f5 30%, rgba(245,245,245,0)),
        linear-gradient(rgba(245,245,245,0), #f5f5f5 70%) 0 100%,
        radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.2), rgba(0,0,0,0)),
        radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
    background-attachment: local, local, scroll, scroll;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .title-nav {
        scrollbar-width: none; /* Firefox */
    }
    
    .title-nav::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Edge */
    }    
}

/* 滾動位置指示器 */
.title-nav.scrollable.at-top {
    background: 
        linear-gradient(rgba(245,245,245,0), #f5f5f5 70%) 0 100%,
        radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 40px, 100% 14px;
}

.title-nav.scrollable.at-bottom {
    background: 
        linear-gradient(#f5f5f5 30%, rgba(245,245,245,0)),
        radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.2), rgba(0,0,0,0));
    background-repeat: no-repeat;
    background-size: 100% 40px, 100% 14px;
}

.title-nav.scrollable:not(.at-top):not(.at-bottom) {
    background: 
        linear-gradient(#f5f5f5 30%, rgba(245,245,245,0)),
        linear-gradient(rgba(245,245,245,0), #f5f5f5 70%) 0 100%,
        radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.2), rgba(0,0,0,0)),
        radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.2), rgba(0,0,0,0)) 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
}
/* 二欄佈局專用結束 */

/* 搜尋列開始 */
header-search {
    background-color: #f8f8f8;
    padding: 1px;
    margin-top: 0px;
    border-bottom: 1px solid #ddd;
}

/* 搜尋欄樣式 */
.search-container {
    display: flex;
    justify-content: space-between;
    margin-top: 1px;/* 設50px避免內容被固定導航欄遮擋 */
    margin-bottom: 10px;
    gap: 10px; /* 兩個搜尋框之間的間距 */
}

.search-form {
    display: flex;
    flex: 1;
    max-width: 30%; /* 50%讓兩個搜尋框平分寬度 */
}

.search-form input[type="text"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
}

.search-form button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 0 4px 4px 0;
    background-color: #f8f8f8;
    cursor: pointer;
}

.search-form button:hover {
    background-color: #b4e7e4;
    color: rgb(33, 66, 211);/* 文字顏色 */
    font-weight: bold; /* 設定文字粗體 */
}

/* 小螢幕搜尋列樣式 */
@media (max-width: 768px) {
    header-search {
        background-color: #f8f8f8;
        padding: 1px;
        margin-top: 1px; /* 避免內容被固定導航欄遮擋 */
        border-bottom: 1px solid #ddd;
    }

    .search-container {
        flex-direction: column;
        gap: 5px;
    }

    .search-form {
        max-width: 100%;
    }
}
/* 搜尋列結束 */

/* 分類導航樣式開始 */
.category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 20px 0;
}

.category {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    min-height: 100%; /* 確保卡片最小高度填滿容器 */
}

/* 清除浮動以確保正確布局 */
.category-container::after {
    content: "";
    display: table;
    clear: both;
}
.category:hover {
    transform: translateY(-5px);
}

.category-header {
    background: #34db47;
    color: white;
    padding: 15px 20px;
    font-size: 20px;
}

.category-list {
    list-style: none;
    padding: 15px 20px;
    font-size: 20px;
}

.category-item {
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.category-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #27ae60;
    transition: color 0.3s;
    font-size: 20px;
}

.category-link:hover {
    color: #106d37;
    background-color: #f1f8e9;
}

.category-link::before {
    content: "→";
    margin-right: 10px;
    color: #3498db;
    font-weight: bold;
    transition: margin 0.3s;
}

.category-link:hover::before {
    margin-right: 15px;
}

.dark-mode .category {
    background-color: #1a1a1a;
    color: #ff6e6e;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* 確保卡片容器在暗黑模式下也有正確背景 */
.dark-mode .category-container {
    background-color: #1a1a1a; /* 與body暗黑背景相同 */
}


.dark-mode .category-header {
    background-color: #1a2e22;
    color: #a5d6a7;
}

.dark-mode .category-list {
    border-color: #37474f;
    background-color: #1e1e1e;
}

.dark-mode .category-item {
    border-color: #37474f;
}

.dark-mode .category-link {
    background-color: #2d2d2d;
    color: #81c784;
}

.dark-mode .category-link:hover {
    background-color: #2e3d32;
    color: #66bb6a;
}


/* 響應式調整 */
@media (max-width: 768px) {
    .category {
        min-width: 100%;
    }
    
    .category-header {
        padding: 12px 15px;
        font-size: 1.1rem;
    }
    
    .category-list {
        padding: 12px 15px;
    }
    
    .category-link {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .category-link:hover {
        padding-left: 20px;
    }
}

@media (max-width: 480px) { 
    .category-header {
        font-size: 1.2rem;
        padding: 10px 12px;
    }
       
    .category-link {
        font-size: 1rem;
        padding: 10px 12px;
    }
}
/* 分類導航樣式結束 */

/* 首頁圖片靠右顯示文字環繞設定開始 
舊設定 width="309" height="329"
圖片顯示小<div class="author-image-float">
    <a href="人體健康金鑰.htm" target="_self" title="人體健康的奧秘">
    <img src="../images/人體健康的奧秘-1.png" alt="人體健康的奧秘" title="人體健康的奧秘" class="fluid-img topic-card">
    </a></div> 
或-佳-圖片可調大小，寬最大350，設定width="250" height="300在手機不偏一邊
<div class="content-card" id="section3">  <h3 style="color:#0066FF">香蕉草莓冰淇淋</h3>
    <div class="img-container">
        <figure style="float:right;margin:20px">
            <img src="../images/vege-fruit/香蕉-樹上蕉.jpg" width="250" height="300" border="0" alt="未成熟香蕉-樹上蕉" title="未成熟香蕉-樹上蕉" style="float:right;margin:20px" class="topic-card">
            <figcaption>未成熟香蕉不消化，不應食用</figcaption>
        </figure></div>
    <div class="recipe-tips"或用note，不能用method>
    <p>文字內容</p></div></div>
或圖長>寬<div class="float-media-container right"> <!-- 增加 right/left 方向控制 -->
      <figure class="responsive-float-figure">
      <img src="../images/vege-fruit/打點滴-1.jpg" alt="香蕉切片" title="香蕉切片" class="fluid-img topic-card">
      <figcaption>香蕉切片</figcaption> <!-- 非必要 -->
      </figure> </div>
或圖大小可調<div class="recipe-tips">
      <img src="../images/vege-fruit/豐水梨.jpg" width="250" height="300" border="0" alt="豐水梨" title="豐水梨" style="float:right;margin:20px" class="topic-card"><p>梨子被...</p>
        <p>市場...</p> </div>
或若接清單限用<ul style="list-style-position: inside; list-style-type: '🟡 '; padding-left: 0; margin: 0;">
或圖片未靠右，只顯示圖片的設定<div class="image-container">       
    <img src="../images/人體健康的奧秘.png" alt="人體健康的奧秘" title="人體健康金鑰" class="responsive-image">
    <p class="image-caption">人體健康的奧秘</p></div>
    */

.author-image-float {
    float: right;
    margin: 0 0 20px 20px;
    right: 30px;
    width: 300px; /* 調整圖片大小 */
    position: relative; /* 或 absolute/fixed 取決於需求 */
    /* z-index: 9999; 確保圖片在最上層 */
}

.author-image-float img {
    width: 100%;
    height: auto;
}

.clearfix {
    clear: both;
}

/* float核心浮動系統自動調整比例開始
<div class="float-media-container right">
<figure class="responsive-float-figure">
      <img src="../images/vege-fruit/香蕉-樹上蕉.jpg" alt="香蕉切片" title="香蕉切片" class="fluid-img topic-card">
      <figcaption>香蕉切片</figcaption></figure>
</div> */
.float-media-container {
  box-sizing: border-box;
  margin: 1em 0;  
  /* 基礎設定 */
  width: clamp(200px, 30vw, 400px); /* 最小200px，理想30vw，最大400px */
}

.float-media-container.right {
  float: right;
  margin-left: 2em;
  margin-right: 1em;
}

.float-media-container.left {
  float: left;
  margin-right: 2em;
  margin-left: 1em;
}

.responsive-float-figure {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: #fff;
}

/* 橫向圖片 (寬>高) 自動加大寬度 */
.responsive-float-figure[data-ratio="landscape"] {
  width: clamp(250px, 40vw, 500px);
}

/* 縱向圖片 (高>寬) 自動減小寬度 */
.responsive-float-figure[data-ratio="portrait"] {
  width: clamp(150px, 25vw, 300px);
}

.fluid-img {
  width: 100%;
  height: auto;
  object-fit: contain; /* 關鍵！保持原始比例 */
  display: block;
}

figcaption {
  padding: 0.5em 1em;
  font-size: 1.0em;
  text-align: center;
  color: #666;
}

/* 響應式控制 */
@media (min-width: 1200px) {
  .float-media-container {
    width: 33%; /* 大螢幕佔1/3寬度 */
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .float-media-container {
    width: 45%; /* 中螢幕佔約一半 */
  }
}

@media (max-width: 767px) {
  .float-media-container {
    float: none !important;
    width: 100% !important;
    margin: 1em 0 !important;
  }
}
/* float核心浮動系統結束 */
/* 首頁圖片靠右顯示文字環繞設定結束 */

/* 表格現代化呈現開始 */
.food-guide {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: "標楷體", "Microsoft JhengHei", sans-serif;
  }
  
  .food-category {
    margin-bottom: 30px;
    background: #dff1f3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  }
  
  .category-title {
    padding: 15px 20px;
    background: #e74c3c;
    color: white;
  }
  
  .category-title h2 {
    margin: 0;
    font-size: 26px;
    font-weight: bold;
  }
  
  .divider {
    height: 3px;
    background: rgba(255,255,255,0.3);
    margin-top: 8px;
  }
  
  .food-items {
    padding: 20px;
  }
  
  .item-group {
    margin-bottom: 20px;
  }
  
  .item-group h3, .recommendation h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 22px;
    border-left: 4px solid #e74c3c;
    padding-left: 10px;
  }
  
  div.recommendation h3 {
  font-size: 20px !important; /* 慎用!important */
  }

  .items {
    display: flex;
    font-size: 17px; /* 無作用 */
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .items a, .items span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e0e6ed;
    color: #3a5169;
    text-decoration: none;
    font-size: 17px; /* 非超連結文字大小設定 */
    transition: all 0.3s ease;
  }

  .items a {
    background: #f0f8ff; /* 有超連結淡藍背景 */
    font-size: 18px; /* 超連結文字大小設定 */
  }

  .items span {
    background: white; /* 無超連結白色背景 */
    opacity: 0.7;/* 降低不透明度 */
  }

 

  .items a:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
  }
  
  .highlight {
    background: #fde8e8 !important;
    color: #e74c3c !important;
    font-weight: bold;
    border-color: #e74c3c !important;  
  } 
  
  /* 懸停狀態 */
.highlight:hover {
    background: linear-gradient(to right, #ffdbdb, #ec4e4e) !important; /* 更深的紅色背景 */
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2); /* 可選：添加紅色陰影 */
    color: #fefefe !important; /* */ 
  }

  /* 暗黑模式 */
.dark-mode .content-card .highlight {
    background-color: #5d4037 !important;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
}

.dark-mode .highlight {
    background-color: #5d4037;
    color: #fff;
}


.dark-mode .highlight:hover {
    color: #079de3;
}
  .recommendation {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
  }
  
  .recommendation h3 {
    margin: 0 0 8px 0;
    color: #2980b9;
    font-size: 20px;
  }
  
  .recommendation p {
    margin: 0;
    line-height: 1.6;
  }
  
  .recommendation a {
    color: #2980b9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recommendation a:hover {
    text-decoration: underline;
}


  /* 響應式设计 */
  @media (max-width: 768px) {
    .food-items {
      padding: 15px;
    }
    
    .items {
      gap: 8px;
    }
    
    .items a, .items span {
      padding: 5px 10px;
      font-size: 14px;
    }
    
    .category-title {
      padding: 12px 15px;
    }
    
    .category-title h2 {
      font-size: 18px;
    }
  }
  
  @media (max-width: 480px) {
    .items {
      gap: 6px;
    }
    
    .items a, .items span {
      padding: 4px 8px;
      font-size: 13px;
    }
  }
/* 表格現代化呈現結束 */

/* 相片多媒體元素開始 
<!-- 以下圖片區開始 -->
<div class="media-container">
    <div class="media-item1">
        <img src="../images/vege-fruit/柳橙-多-2.jpg" width="300" height="280" border="0" alt="柳橙" title="柳橙" class="media-image">
        <p class="media-caption">香吉士</p>
    </div>
    <div class="media-item1">
        <img src="../images/vege-fruit/柳橙-多.jpg" width="300" height="280" border="0" alt="柳橙" title="柳橙" class="media-image">
        <p class="media-caption">茂谷柑</p>
    </div>
</div>
    <!-- 以上圖片區結束 --> */
.media-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  /* 新增：使項目水平居中 */
    gap: 40px;
    margin: 10px auto;
    padding: 0 5px;
}

.media-item {
    display: inline-block; /* 讓 transform 能影響整個容器 */
    transition: transform 0.5s ease; /* 將 transition 移到容器 */
    flex: 0 0 auto;  /* flex: 1;水平排列 */
    min-width: 300px;
    max-width: 100%;    /* 防止超出容器 */
}


.media-item1 {
    display: inline-block; /* 讓 transform 能影響整個容器 */
    transition: transform 0.5s ease; /* 將 transition 移到容器 */
    flex: 1;  /*flex: 0 0 auto; 垂直排列 */
    min-width: 300px;
    max-width: 100%;    /* 防止超出容器 */
}

.media-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.media-image:hover {
    transform: scale(1.02);
}


/* 圖片響應式設定 */
.media-item1 img {
    width: 100%;
     /* 要固定高度，不可設height: auto; */
    display: block;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: transform 0.5s ease;
}

.media-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: transform 0.5s ease; /* 保留圖片的 transition */
}

.media-caption {
    text-align: center;
    padding: 12px 5px;
    margin: 0;
    color: #358f21;
    font-size: clamp(0.9rem, 2vw, 1rem);
    background: #f8f8f8;
    border-radius: 0 0 10px 10px;
    transition: all 0.5s ease; /* 為文字添加 transition */
}

/* 互動效果 */
.media-item1:hover,
.media-item:hover {
    transform: translateY(-5px);    
}

.media-item1:hover img,
.media-item:hover img {
    transform: scale(1.05); /* 圖片放大效果 */
}

.media-item1:hover .media-caption,
.media-item:hover .media-caption {
    transform: scale(1.03); /* 文字同步放大 */
    padding-bottom: 15px; /* 可選：增加一點底部間距 */
}

.media-item1:hover img,
.media-item:hover img {
    transform: scale(1.03);
}

/* 響應式斷點設定 */
@media (max-width: 768px) {
    .media-item, .media-item1 {
        flex: 0 0 calc(50% - 20px); /* 兩欄布局 */
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .media-container {
        gap: 10px;
    }
    
    .media-item, .media-item1 {
        flex: 0 0 100%; /* 單欄布局 */
        border-radius: 8px;
    }
    
    .media-caption {
        padding: 8px 5px;
    }
}

/* 高解析度設備適配 */
@media 
(min-resolution: 2dppx) and (min-width: 1200px),
(-webkit-min-device-pixel-ratio: 2) and (min-width: 1200px) {
    .media-item, .media-item1 {
        max-width: 320px;
    }
}
/* 相片多媒體元素結束 */

/* 現代化表格設計開始 */
.modern-therapy-table {
    max-width: 950px;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    font-family: 標楷體, KaiTi, "Microsoft JhengHei", sans-serif;
  }
  
  .table-header {
    display: flex;
    background: #139346;
    color: white;
    font-weight: bold;
    font-size: 22px;
  }
  
  .table-row {
    display: flex;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
  }
  
  .table-row:hover {
    background: #d6f0e9;
  }
  
  .col-therapy {
    width: 30%;
    padding: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
  }

  .col-desc {
    width: 70%;
    padding: 15px;
    font-size: 18px;
    line-height: 1.5;
  }
  
.col-desc, .col-therapy:hover {
    color: #085a10;
}

  
  .table-header .col-therapy,
  .table-header .col-desc {
    padding: 12px 15px;
  }
  
  .modern-therapy-table a {
    color: #1f6e3e;
    text-decoration: none;
    font-weight: bold;
    display: block;
    width: 100%;
  }
  
  .modern-therapy-table a:hover {
    text-decoration: underline;
    color: #0eb939;
  }
  
  /* 特殊連結的特殊樣式 */
  .modern-therapy-table .col-therapy a[href="救肝三：六：九淨化排毒法.htm"],
  .modern-therapy-table .col-therapy a[href="醫療靈媒速療法.htm"] {
    color: #87a518;
  }

  .modern-therapy-table .col-therapy a:hover[href="救肝三：六：九淨化排毒法.htm"],
  .modern-therapy-table .col-therapy a:hover[href="醫療靈媒速療法.htm"] {
    color: #0d930a;
  }

  .col-desc a {
    display: inline;
    white-space: nowrap;
  }
  
  /* 響應式設計 */
  @media (max-width: 768px) {
    .modern-therapy-table {
      width: 95%;
    }
    
    .table-header {
      font-size: 16px;
    }
    
    .col-therapy, .col-desc {
      padding: 10px;
      font-size: 15px;
    }
    
    .col-therapy {
      width: 35%;
    }
    
    .col-desc {
      width: 65%;
    }
  }
/* 現代化表格設計結束 */

/* 現代化表格-食物分類設計開始 */
.food-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: "標楷體", "Microsoft JhengHei", sans-serif;
  }
  
  .food-category {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
  }
  
  /* 分類標題 */
  .category-header-food {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 18px 25px;
  }
  
  .category-header-food h2 {
    margin: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .category-header-food p {
    margin: 5px 0 0;
    opacity: 0.9;
    font-size: 14px;
  }
  
  /* 食物項目列表 */
  .category-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 20px;
  }
  
  .food-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
  }
  
  .food-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  .food-item i {
    color: #e74c3c;
    width: 20px;
    text-align: center;
  }
  
  /* 特殊高亮項目 上面已有設定
  .highlight {
    border-left: 4px solid #e74c3c;
    background: #fde8e8;
  } */

  .food-item highlight:hover {
    background: #e94444;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  /* 不同分類的主題色 */
  .avoid-foods .category-header-food {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
  }

  .avoid-foods :hover {
    background-color: #ffcdd2;
    transform: translateY(-2px);
}
  
.problem-foods :hover {
    background-color: #42a0b1;
    transform: translateY(-2px);
}
  
  .problem-foods .category-header-food {
    background: linear-gradient(135deg, #3498db, #025084);
  }


  .problem-foods .food-item {
    background-color: #ffecb3;
    color: #ff8f00;
}

  .problem-foods .food-item:hover {
    background-color: #ffe082;
    transform: translateY(-2px);
}

  
  /* 響應式調整 */
  @media (max-width: 768px) {
    .food-categories {
      grid-template-columns: 1fr;
    }
    
    .category-items {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .category-items {
      grid-template-columns: 1fr;
    }
    
    .category-header-food h2 {
      font-size: 20px;
    }
  }
/* 現代化表格-食物分類設計結束 */

/* 現代化表格-單一卡片網格佈局設計開始 */
/* 內容段落樣式 */
.health-content {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.health-text {
    margin: 0;
}

/* 相關主題區塊 */
.section-title {
    color: #2c3e50;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 22px;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

/* 卡片網格佈局 */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* 單個卡片樣式 */
.topic-card {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #eee;
}

.related-topics {
    margin: 40px auto;
    max-width: 1200px;
    padding: 20px;
    transition: background-color 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.topic-card h4 {
    margin: 0 0 10px;
    color: #2b6aaa;
    font-size: 18px;
}

.topic-card p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .topic-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
        
    .section-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .topic-grid {
        grid-template-columns: 1fr;
    }
    
    .health-content {
        padding: 15px;
    }
    .topic-card {
        min-height: 160px;
        padding: 5px;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}
/* 現代化表格-單一卡片網格佈局設計結束 */

/* 現代化表格-卡片式網格佈局-補充品頁面設計開始 */
:root {
    --primary-color: #4a6f28;
    --secondary-color: #6b8c42;
    --accent-color: #8fb339;
    --light-color: #f5f9f0;
    --dark-color: #2c3e1a;
}

h1, h2, h3 {
    color: var(--primary-color);
}

h2 {    
    border-bottom: 1px solid var(--accent-color);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.nav-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.nav-card a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: bold;
    font-size: 1.1rem;
    display: block;
    height: 100%;
}

.nav-card.en {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.info-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 40px;
}

.info-section h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-top: 0;
}

ul.checklist {
    list-style-type: none;
    padding-left: 0;
}

ul.checklist li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
}

ul.checklist li:before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.supplement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.supplement-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.supplement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    background-color: #f9fff0;
}

.supplement-card a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: bold;
    font-size: 1.1rem;
    display: block;
}

.supplement-card .en-name {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}


.external-link a {
    text-align: center;
    margin-top: 30px;
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word; /* 強制所有內容可斷行 */
    white-space: normal; /* 覆蓋預設nowrap行為 */
    line-height: 1.5; /* 增加行高提高可讀性 */
}

.external-link a {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.external-link a:hover {
    background-color: var(--secondary-color);
}

/* 暗黑模式樣式 */
.dark-mode .navigation h2 {
    color: #81d4fa;
    border-bottom-color: #8b0000;
}

.dark-mode .nav-card {
    background-color: #2d2d2d;
    border-color: #444;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .nav-card a {
    color: #e0e0e0;
}

.dark-mode .nav-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.dark-mode .nav-card:hover a {
    color: #4fc3f7;
}

.dark-mode .supplements h2 {
    color: #81d4fa;
    border-bottom-color: #8b0000;
}

.dark-mode .supplement-card {
    background-color: #2d2d2d;
    border-color: #444;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.dark-mode .supplement-card:hover {
    background-color: #3a3a3a;
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.dark-mode .supplement-card a {
    color: #496e15;
}

.dark-mode .supplement-card .en-name {
    color: #bbb;
}


@media (max-width: 768px) {
    .nav-grid, .supplement-grid {
        grid-template-columns: 1fr;
    }   
    
    .external-link {
        padding: 0 15px; /* 限制容器邊距 */
    }
    .external-link a {
        display: block; /* 改為塊級元素 */
        width: 100%;
        padding: 12px 10px; /* 調整內距 */
        white-space: normal; /* 允許文字換行 */
        text-align: center;
    }
   
    /* 如果是特別長的連結文字 */
    .external-link.long-text a {
        word-break: break-word;
    }

    .navigation {
        margin: 30px auto;
        padding: 0 15px;
    }
    
    .navigation h2 {
        font-size: 1.5rem;
    }
      
    .nav-card a {
        padding: 15px;
        font-size: 1rem;
    }
    
    .supplements {
        margin: 30px auto;
        padding: 0 15px;
    }
    
    .supplements h2 {
        font-size: 1.5rem;
    }
    
    .supplement-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .supplement-card {
        padding: 15px;
    }
    
    .supplement-card a {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .supplement-grid, .nav-grid {
        grid-template-columns: 1fr;
    }
    
    .navigation h2 {
        font-size: 1.3rem;
    }
    
    .nav-card a {
        padding: 12px;
        font-size: 0.95rem;
    }

    .supplements h2 {
        font-size: 1.3rem;
    }
    
    .supplement-card a {
        font-size: 0.95rem;
    }
    
    .supplement-card .en-name {
        font-size: 0.85rem;
    }
}

/* 現代化表格-卡片式網格佈局-補充品頁面設計結束 */


/* 現代化段落頁面設計-釋疑 開始 */
.modern-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: "標楷體", "KaiTi", "楷体", serif;
    line-height: 1.6;
}

.quote-text {
    font-size: 1.2rem;
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f8f8;
    border-left: 4px solid #4a90e2;
    text-align: left;
    line-height: 1.8;
}

.quote-text cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    text-align: right;
    color: #666;
}

.community-cta {
    text-align: center;
    margin: 40px 0;
}

.community-text {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f0f7ff;
    border-radius: 5px;
}

.qr-image {
    width: 250px;
    height: 250px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.qr-image:hover {
    transform: scale(1.05);
}

/* 暗黑模式樣式 */
.dark-mode .modern-content {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode .quote-text {
    background-color: #1e1e1e;
    color: #ccc;
    border-left-color: #8b0000;
}

.dark-mode .quote-text cite {
    color: #999;
}

.dark-mode .community-text {
    background-color: #1a2a3a;
    color: #e0e0e0;
}

.dark-mode .health-content {
    background-color: #2a2a2a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode .health-text {
    color: #e0e0e0;
}

.dark-mode .qr-image {
    border-color: #444;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.dark-mode .food-category {
    background-color: #2d2d2d;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .category-title h2 {
    color: #e0e0e0;
}

.dark-mode .category-title p,
.dark-mode .recommendation p,
.dark-mode .media-caption {
    color: #bbb;
    background-color: #056e77;
}

.dark-mode .recommendation {
    background-color: #056e77;
}

.dark-mode .category-header-food p {
    color: #bbb;
}

.dark-mode .divider {
    background: linear-gradient(to right, #8b0000, #6a1b9a);
}

.dark-mode .item-group h3,
.dark-mode .recommendation h3 {
    color: #64b5f6;
}

.dark-mode .items a,
.dark-mode .items span {
    background-color: #035a6f;
    color: #90caf9;
}

.dark-mode .items a:hover {
    background-color: #4a4a4a;
}

.dark-mode .items .highlight {
    background-color: #1e3a8a;
    color: #bbdefb;
}

.dark-mode .recommendation a {
    color: #64b5f6;
}

.dark-mode .media-image {
    border-color: #444;
    filter: brightness(0.9);
}

/* 應避免的食物暗黑模式 */
.dark-mode .avoid-foods {
    background-color: #3a1e1e;
    border-color: #5c2a2a;
}

.dark-mode .avoid-foods .category-header-food h2 {
    color: #ff6e6e;
}

.dark-mode .avoid-foods .food-item {
    background-color: #4a2a2a;
    color: #ff8a8a;
}

.dark-mode .avoid-foods .food-item:hover {
    background-color: #5c3a3a;
}

.dark-mode .avoid-foods .food-item.highlight {
    background-color: #7a3a3a;
    color: #ff6e6e;
}

.dark-mode .col-desc {
    color: #929090;
}

.dark-mode .col-therapy {
    color: #929090;
}

/* 問題食物解析暗黑模式 */
.dark-mode .problem-foods {
    background-color: #3a2e1e;
    border-color: #5c4a2a;
}

.dark-mode .problem-foods .category-header-food h2 {
    color: #ffb74d;
}

.dark-mode .problem-foods .food-item {
    background-color: #4a3a2a;
    color: #ffb74d;
}

.dark-mode .problem-foods .food-item:hover {
    background-color: #5c4a3a;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .modern-content {
        padding: 15px;
    }
     
    .health-text {
        font-size: 1rem;
    }

    .quote-text {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .qr-image {
        width: 200px;
        height: 200px;
    }
    /* 插入div class="modern-therapy-table"設定 */
    .table-row {
        flex-direction: column;
        padding: 12px 0;
    }
    
    .col-therapy {
        flex: 1 1 100%;
        padding-right: 0;
        margin-bottom: 8px;
    }
    
    .col-therapy a {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .quote-text {
        font-size: 1rem;
        padding: 10px;
    }
    
    .community-text {
        font-size: 1rem;
    }

    .health-content {
        padding: 15px;
    }
    
    .health-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
 /* 插入div class="modern-therapy-table"設定 */
    .table-row {
        padding: 10px 0;
    }
    
    .col-therapy a {
        font-size: 0.95rem;
    }
    
    .col-desc {
        font-size: 0.9rem;
    }
}
/* 現代化段落頁面設計-釋疑 結束 */

/* 現代化頁面設計-補充品 開始 */
.note {
    background-color: #e8f4fc;
    padding: 15px;
    border-left: 4px solid #3498db;
    margin-bottom: 20px;
    border-radius: 0 5px 5px 0;
}
.supplement-list {
    list-style-type: none;
    padding: 0;
}
.supplement-item {
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s;
}
.supplement-item:hover {
    background-color: #eef7ff;
}
.supplement-name {
    font-weight: bold;
    color: #2980b9;
    display: inline-block;
    margin-bottom: 3px;
}
.dosage {
    color: #27ae60;
}
.english-name {
    font-style: italic;
    color: #7f8c8d;
    font-size: 0.9em;
    display: block;
    margin-top: 3px;
}
.reference {
    color: #e74c3c;
    font-weight: bold;
}
.section-supplement {
    background-color: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 暗黑模式設定 */
.dark-mode .section-supplement {
    background-color: #7a3a3a;
    color: #ff6e6e;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.dark-mode .note {
    background-color: #5a2a2a;
    border-left-color: #ff6e6e;
    color: #ffb6b6;
}

.dark-mode .supplement-item {
    border-bottom-color: #5a2a2a;
}

.dark-mode .supplement-item:hover {
    background-color: #5a2a2a;
}

.dark-mode .supplement-name {
    color: #ffb6b6;
}

.dark-mode .dosage {
    color: #a5ffa5;
}

.dark-mode .english-name {
    color: #d4b9b9;
}

.dark-mode .reference {
    color: #ff8a8a;
}

/* 平板設備 (768px 到 1024px) */
@media screen and (max-width: 1024px) {
    .section-supplement {
        padding: 18px;
        margin-bottom: 25px;
    }
    .supplement-item {
        padding: 10px 12px;
    }
}

/* 手機設備 (小於 768px) */
@media screen and (max-width: 767px) {
    .section-supplement {
        padding: 15px;
        margin-bottom: 20px;
    }

    .note {
        display: flow-root; /* 現代清除浮動的方式 */
        text-align: center;
        padding: 12px;
        font-size: 0.95em;
    }

    .note img.topic-card {
        float: none; /* 手機取消浮動，電腦保留 */
        display: inline-block;
        margin: 20px auto;
    }

    /*.note {
        padding: 12px;
        font-size: 0.95em;
    }*/

    .supplement-item {
        padding: 8px 10px;
    }
    .supplement-name {
        display: block;
        margin-bottom: 5px;
    }
    .english-name {
        font-size: 0.85em;
    }
    
    .content-card,
    .section-supplement {
        position: relative; /* 為了讓圖片定位在卡片內部 */
        padding: 15px;
    }
    
    .dark-mode .content-card,
    .dark-mode .section-supplement {
        padding: 15px;
    }
    
}

/* 非常小的手機設備 (小於 480px) */
@media screen and (max-width: 480px) {    
    .section-supplement {
        padding: 12px;
    }
    .supplement-item {
        padding: 7px 8px;
    }
        
    .content-card,
    .section-supplement {
        padding: 12px;
    }
    
    .dark-mode .content-card,
    .dark-mode .section-supplement {
        padding: 12px;
    }
}
/* 現代化頁面設計-補充品  結束 */

/* 現代化頁面設計-食譜  開始 */
.recipe-intro {
    max-width: 800px;
    margin: 10px auto;
    padding: 10px;
    text-align: center;
    font-size: 1.2rem;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.recipe-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.recipe-category {
    margin-bottom: 40px;
}

.recipe-category h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a90e2;
    transition: all 0.3s ease;
}

.recipe-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}


.recipe-card:hover .card-icon {
    transform: scale(1.1);
}

.recipe-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.recipe-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    transition: color 0.3s ease;
}

/* 特殊卡片樣式 */
.recipe-card.highlight {
    background-color: #e3f2fd;
    border-color: #bbdefb;
}

.recipe-card.highlight h4 {
    color: #1565c0;
}

.recipe-card.external {
    background-color: #e8f5e9;
    border-color: #c8e6c9;
}

.recipe-card.external h4 {
    color: #2e7d32;
}

.recipe-tips {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    font-size: 1.2rem;
    line-height: 1.8;
    transition: all 0.3s ease;
}

.recipe-tips p {
    margin: 0 0 15px 0;
}

.recipe-tips p:last-child {
    margin-bottom: 0;
}

/* 暗黑模式樣式 */
.dark-mode .recipe-intro {
    color: #e0e0e0;
}

.dark-mode .recipe-category h3 {
    color: #81d4fa;
    border-bottom-color: #8b0000;
}

.dark-mode .recipe-card {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .recipe-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.dark-mode .recipe-card h4 {
    color: #81d4fa;
}

.dark-mode .recipe-card p {
    color: #bbb;
}

.dark-mode .recipe-card.highlight {
    background-color: #1a2a3a;
    border-color: #3a5a7a;
}

.dark-mode .recipe-card.highlight h4 {
    color: #64b5f6;
}

.dark-mode .recipe-card.external {
    background-color: #1a2e22;
    border-color: #3a5a3a;
}

.dark-mode .recipe-card.external h4 {
    color: #81c784;
}

.dark-mode .recipe-tips {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

/* 響應式設計 */
/* 上面已有設定 @media (max-width: 1024px) {
    .topic-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
} */

@media (max-width: 768px) {
    .recipe-intro,
    .recipe-tips {
        padding: 15px;
        margin: 20px 15px;
        display: flow-root; /* 現代清除浮動的方式 */
        text-align: center;
        font-size: 0.95em;
    }
    
    .recipe-tips img.topic-card {
        float: none; /* 手機取消浮動，電腦保留 */
        display: inline-block;
        margin: 20px auto;
    }

    .recipe-grid {
        padding: 15px;
    }
    
    .recipe-category h3 {
        font-size: 1.3rem;
    }
    
    .recipe-card {
        padding: 15px;
    }
    
    .card-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    /* 上面已有設定 .topic-grid {
        grid-template-columns: 1fr;
    } */
    
    .recipe-intro,
    .recipe-tips {
        font-size: 1rem;
    }
    
    .recipe-card h4 {
        font-size: 1rem;
    }
    
    .recipe-card p {
        font-size: 0.85rem;
    }
}

/* 現代化頁面設計-食譜  結束 */

/* 現代化頁面設計-補充品超連結  開始
<a href="#section92" class="modern-link">腦神經發炎方案</a> */
.modern-link {
    color: #984705;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.modern-link::before,
.modern-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    background-color: #14b363;
    transition: width 0.3s ease;
}

.modern-link::before {
    left: 50%;
}

.modern-link::after {
    right: 50%;
}

.modern-link:hover {
    color: #053629;
}

.modern-link:hover::before,
.modern-link:hover::after {
    width: 50%;
}

  /* 焦點狀態（無障礙設計） */
  .modern-link:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
  }
  
  /* 點擊時的瞬間效果 */
  .modern-link:active {
    color: #24ccd8;
  }

/* 暗黑模式 */
.dark-mode .modern-link {
    color: #3c92bd;
}

.dark-mode .modern-link:hover {
    color: #03a3ed;
}

.dark-mode .modern-link::before,
.dark-mode .modern-link::after {
    background-color: #efe1e1;
}

/* 同一個網頁內的超連結樣式 */
/* 基本內部連結樣式 */
.internal-link {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  /* 滑鼠懸停效果 */
  .internal-link:hover {
    color: #004499;
    text-decoration: underline;
  }
  
  /* 訪問過的連結樣式 */
  .internal-link:visited {
    color: #663399;
  }
  
  /* 焦點狀態（無障礙設計） */
  .internal-link:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
  }
  
  /* 點擊時的瞬間效果 */
  .internal-link:active {
    color: #cc0000;
  }

/* 現代化頁面設計-補充品超連結  結束 */

/* 表格樣式開始，範例 內容網頁用-梨子成熟指南-完成.htm*/
.scrollable-table {
  max-height: 85vh;
  overflow-y: auto;
  margin: 15px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

th {
  background-color: #8bc34a;
  color: white;
  position: sticky;
  top: 0;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #f1f8e9;
}

.numeric {
  font-family: monospace;
  text-align: right;
}

.table-controls {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.sort-btn {
  background: #f1f8e9;
  border: 1px solid #8bc34a;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.sort-btn:hover {
  background: #8bc34a;
  color: white;
}

/* 為高接梨單元格添加特殊data屬性
同時設定二屬性class="sweet-mark green-mark" */
tr td:first-child[data-high-graft="true"] {
  position: relative;
}

/* 台灣特色標記 */
.high-graft-mark {
  position: relative;
  display: inline-block;
  padding-right: 15px;
}
.high-graft-mark::after {
  content: "ⓣ";
  color: #e53935;
  font-size: 0.8em;
  position: absolute;
  right: 0;
  top: -0.2em;
}

/* 數值強調標記開始 */
.high-value {
  color: #2e7d32; /* 深綠色 */
  font-weight: bold;
  position: relative;
}
.high-value::after {
  content: "↑";
  margin-left: 3px;
  font-size: 0.8em;
}

.low-value {
  color: #4028c6; /* 深紅色 */
  font-weight: bold;
  position: relative;
}
.low-value::after {
  content: "↓";
  margin-left: 3px;
  font-size: 0.8em;
}
/* 數值強調標記結束 */

/* 單獨設定ⓣ符號樣式 */
.t-mark {
  color: #e53935; /* 红色 */
  font-size: 0.9em; /* 稍微放大 */
  position: relative;
  vertical-align: super;
}

/* 深色模式統一管理 */
@media (prefers-color-scheme: dark) {
  :root:not(.light-mode) {
    /* 表格行 */
    tr:nth-child(even) {
      background-color: #2a2a2a;
    }
    tr:hover {
      background-color: #333;
    }
    
    /* 按鈕 */
    .sort-btn {
      background: #333;
      border-color: #689f38;
    }
    
    /* 表格容器 */
    .scrollable-table {
      background: #1e1e1e;
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
  }
}

.sort-btn.active {
  background: #8bc34a;
  color: white;
}

/* 暗黑模式 */
.dark-mode .scrollable-table {
  background: #1e1e1e;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dark-mode table {
  color: #e0e0e0;
}

.dark-mode th {
  background-color: #1f3d04;
  border-bottom-color: #444;
}

.dark-mode td {
  border-bottom-color: #444;
}

.dark-mode tr:nth-child(even) {
  background-color: #2a2a2a;
}

.dark-mode tr:hover {
  background-color: #333;
}

.dark-mode .sort-btn {
  background: #333;
  border-color: #689f38;
  color: #e0e0e0;
}

.dark-mode .sort-btn:hover {
  background: #689f38;
  color: white;
}

.dark-mode .table-note {
  color: #aaa;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .table-container {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  #pear-table {
    min-width: 100%;
    font-size: 0.9em;
  }
  
  #pear-table th, 
  #pear-table td {
    padding: 8px 5px;
  }
  
  #pear-table th:after {
    right: 3px;
  }
}

@media (max-width: 480px) {
  #pear-table {
    font-size: 0.85em;
  }
  
  #pear-table th {
    padding: 6px 3px;
  }
  
  .numeric {
    font-family: inherit; /* 小屏幕取消等寬字體 */
  }
  
  /* 高接梨標記簡化 */
  tr td:first-child:contains("高接梨")::after {
    content: "";
  }
}

/* 打印優化 */
@media print {
  .table-container {
    box-shadow: none;
    border: none;
  }
  
  #pear-table {
    min-width: auto;
  }
}
/* 表格樣式結束 */

/* 手風琴互動元素開始 */
/* <div class="accordion">
    <div class="accordion-item">
        <div class="accordion-header">
            <h5>生薑功效</h5>
            <i class="fas fa-chevron-down"></i>
        </div>                    
        <div class="accordion-content">
            <div class="accordion-content-inner">
                <p>生薑含有...。</p>
            </div>
        </div>
    </div>
</div> */
.accordion {
    margin: 30px 0;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    padding: 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    background-color: #f1f4d1;
}

.accordion-header:hover {
    background-color: #f0f0f0;
}

.accordion-header h4 {
    margin: 0;
    color: #8b0000;
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content-inner {
    padding: 20px;
}

.accordion-item.active .accordion-header {
    background-color: #8b0000;
    color: white;
}

.accordion-item.active .accordion-header h4 {
    color: white;
}

/* 暗黑模式 */
.dark-mode .accordion-header {
    color: #81d4fa;
    background-color: #424345
}

/* 手風琴互動元素結束 */

/* == 食物列表樣式設定 */
/* <div class="food-items">
    <div class="item-group">
        <h3>野性食物舉例</h3>
        <div class="items">
        <span>小蘿蔔葉</span> 
        </div>
    </div>
</div>*/

/* 瓜果專用視覺標記開始 */
  .seedless-mark:after { content: " 籽少"; font-size:0.8em; color:#27ae60; }
  .seeded-mark:after { content: " 籽多"; font-size:0.8em; color:#e74c3c; }
  
  /* 瓜果互動元素樣式 */
  #melon-varieties {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 4px;
    /*cursor: pointer;  */
  }
  #melon-varieties {
    background-color: #e9ecef;
    border-color: #adb5bd;
  }

.dark-mode #melon-varieties {
    background: #1f1b1b;
}

  /* 瓜果新增專用樣式 */
  .sweet-mark {
    position: relative;
    color: #e91e63; /* 粉紅色強調 */
    font-weight: bold;
  }
  .sweet-mark:after {
    content: " 高甜";
    font-size: 0.7em;
    background: #ffeb3b;
    color: #000;
    padding: 2px 4px;
    border-radius: 4px;
    margin-left: 5px;
  }
  .recommended {
    background: #4caf50;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8em;
  }
/* 瓜果專用視覺標記結束 */

 /* 奇異果專用視覺標記開始 */
  /* <p或td><span class="premium-mark">水果名</span></p或/td>*/
  .premium-mark {
    color: #f39c12;
    font-weight: bold;
  }
  .premium-mark:after {
    content: "好評";
    background: #c2185b;
    color: #f39c12;
    font-size: 0.7em;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 5px;
    right: -1.5em;
  }

  .mini-mark:after {
    content: "迷你";
    background: #81d4fa;
    color: #01579b;
    font-size: 0.7em;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 5px;
  } 

th {
  user-select: none;
}

th:hover {
  background: #4c810f;
}
 /* 奇異果專用視覺標記結束 */

  /* 蕉類專用視覺標記開始 */
  .rare-mark {
    color: #e91e63;
    font-weight: bold;
    position: relative;
  }
  .rare-mark:after {
    content: "稀有";
    background: #9b59b6;
    color: white;
    font-size: 0.7em;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 5px;
  }
  
  /* 調整特殊品種標記 */
  .green-mark {
    color: #229322; /* 改為綠色系 */
  }
    /* 蕉類專用視覺標記結束 */

    /* 無花果專用視覺標記開始 */ 
.brown-mark {
    color: #5d4037;
    font-weight: bold;
}

.gold-mark {
    color: #ff8f00;
    font-weight: bold;
    position: relative;
}
.gold-mark:after {
    content: "堅果香";
    background: #fff8e1;
    color: #ff8f00;
    font-size: 0.7em;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 5px;
}  
    /* 無花果專用視覺標記結束 */ 

     /* 番薯專用視覺標記開始 */
  .yellow-mark {
    color: #ffb300;
    font-weight: bold;
  }
  .red-mark {
    color: #e53935;
    font-weight: bold;
  }
  .purple-mark {
    color: #8e24aa;
    font-weight: bold;
  }

  .orange-mark {
    color: #fb8c00;
    font-weight: bold;
  }

/* 解決欄寬問題 */
#melon-table th {
    min-width: 60px;  /* 最小保留60px防止擠壓 */
    overflow: hidden;
    text-overflow: ellipsis;  /* 文字過長顯示省略号 */
    white-space: nowrap;
}

#melon-table td:nth-child(3), /* 產季節列 */
#melon-table td:nth-child(5) { /* 糖度列 */
    padding: 8px 4px;  /* 减少左右padding */
    font-size: 0.9em;  /* 適當縮小字号 */
}

#melon-table td:nth-child(6) { /* β-胡蘿蔔素列 */
    letter-spacing: -0.5px;  /* 緊縮字符間距 */
}
     /* 番薯專用視覺標記結束 */

/* == 網格展現 == */
/* == 小網格開始 ==
搭配提示設定使用：<div class="recipe-tips">
        <h4>提示標題</h4>
<div class="variety-grid">
    <div class="variety">
        <h5>黑使命<br> Black Mission</h5>
        <p>深紫色外皮</p>
    </div>  </div></div>
或<div class="toppings-grid">
        <div>藍莓，只有4字</div>
        </div><可多網格></div>
或<div class="related-topics">
    <div class="content-card" id="section3">
    <h3 class="section-title">💮相關主題探索</h3>
    <div class="topic-grid">
    <!-- 卡片1 -->
    <a href="水果恐懼症Fruit Fear.htm" class="topic-card">
    <div class="card-icon">🍎</div>
    <h4>水果恐懼症</h4>
        <p>探索"適量水果"概念擔心過量水果的真相</p>
    </a> </div></div></div> */ 
/* 基礎網格樣式 */
.variety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: clamp(10px, 2vw, 15px);
  padding: 0 clamp(10px, 3vw, 20px);
}

.variety {
  background: rgba(109, 76, 65, 0.05);
  padding: clamp(8px, 2vw, 12px);
  border-radius: 8px;
  transition: all 0.3s ease;
}
        
.variety:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 配料網格響應式 */
.toppings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100px, 100%), 1fr));
  gap: clamp(8px, 1.5vw, 10px);
  margin: clamp(5px, 2vw, 10px) 0;
  padding: 0 10px;
}

.toppings-grid div {
  background-color: #f5e5ab;
  padding: clamp(6px, 1.5vw, 8px);
  border-radius: 5px;
  text-align: center;
  font-size: clamp(0.8rem, 3vw, 1rem);
}
.toppings-grid div:hover {
    color: #079de3;
}

/* 暗黑模式 */

.dark-mode .toppings-grid div {
    color: #81d4fa;
    background-color: #94780a;
}

.dark-mode .toppings-grid div:hover {
    color: #079de3;
}

/* 響應式調整 */
@media (max-width: 768px) {
  .variety-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  }
  
  .toppings-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(80px, 100%), 1fr));
  }
}

@media (max-width: 480px) {
  .variety-grid {
    grid-template-columns: 1fr;
  }
  
  .toppings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .serving {
    text-align: center;
  }
}

/* 通用響應式單位 */
.serving {
  font-style: italic;
  text-align: left;
  margin-top: clamp(15px, 3vw, 20px);
  padding: 0 clamp(10px, 3vw, 15px);
  font-size: clamp(0.9rem, 3vw, 1rem);
}
/* == 小網格結束 == */
/* == 大網格開始 == */
/*<div class="snack-combos">
        <div class="combo-card">
            <h5>花椰菜 + 蘋果切片</h5>
            <p>降低甲狀腺炎症。</p>
            <span class="combo-icon">圖案在右🥦+🍎</span>                    
        </div>
        <div class="combo-card">
            <span class="usage-icon">圖案在上一行左🌞</span>
            <p><strong>曬後修復</strong>：鎮靜曬傷肌膚，加速癒合</p>
        </div></div> */
.snack-combos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.combo-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-top: 4px solid var(--thyroid-green);
  transition: all 0.3s ease;
  position: relative;
}

.combo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.combo-icon { /* == 小圖案在右邊顯示 == */
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 1.5em;
  opacity: 0.7;
}

.usage-icon { /* == 小圖案在上一列左邊顯示 == */
    font-size: 1.5em;
    display: block;
    margin-bottom: 5px;
}

/* 暗黑模式 */
.dark-mode .combo-card {
    color: #81d4fa;
    background-color: #424345;
}

.dark-mode .combo-card:hover {
    color: #079de3;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .snack-combos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .combo-card {
    padding: 15px;
  }
  
  .combo-icon {
    font-size: 1.2em;
    top: 15px;
    right: 15px;
  }
}
/* == 大網格結束 == */

/* == 左右比較用網格開始 == 
<div class="comparison-card">
    <h5>野生 vs 栽培藍莓</h5>
    <div class="comparison-grid">
        <div class="wild-side">
            <h6>🌱 野生藍莓</h6>
            <ul style="list-style-position: inside; list-style-type: '👍 '; padding-left: 0; margin: 0;">
                <li>原始品種</li></ul></div><div class="cultivated-side"></div></div>
或置中顯示<div class="topic-grid">
              <!-- 卡片1 -->
            <a href="../四大尊者食物/鮮榨西芹汁.htm"  title="鮮榨西芹汁" class="topic-card">
                <div class="card-icon">🌿</div>
                <h4>鮮榨西芹汁</h4>
                <p>深入了解"鮮榨西芹汁"並解惑</p></a>
        </div>*/
/* 野生vs栽培比較 */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 15px 0;
}

.wild-side {
    background: rgba(106, 90, 205, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed #6a5acd;
    transition: all 0.3s ease;
}

.wild-side:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cultivated-side {
    background: rgba(0,0,0,0.03);
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed #999;
    transition: all 0.3s ease;
}

.cultivated-side:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* == 左右網格結束 == */

/*<!-- 相關主題卡片*3 -->
    <div class="related-topics">
        <h3 class="section-title">💮相關主題探索+底線</h3>          
        <div class="topic-grid">
              <!-- 卡片1 -->
            <a href="../水鹽醋及其他/迴腸崇高生物.htm" class="topic-card">
                  <div class="card-icon">🍎</div>
                  <h4>迴腸崇高生物</h4>
                  <p>它們蘊藏著來自神與太陽的能量。</p>
            </a><!-- 卡片2&3 --></div></div>*/
/* == 網格展現結束 == */

/* == 清單樣式 ==<ul class="healing-list">
    <li><strong>脂肪代謝</strong>：結合..</li></ul> 或使用<ol>結果都一樣
    消除文字間距：<ul style="list-style-position: inside; list-style-type: '🟡 '; padding-left: 0; margin: 0;">
    或<ul class="checklist"><li>內容</li></ul> 或用circle、square、disc、none，用checklist已設定"✓"，不會有過多空隙
    */
.healing-list {
  padding-left: 25px; /* 整體縮進 */
  list-style-position: inside; /* 讓編號包含在內距中 */
  counter-reset: list-counter; /* 初始化計數器 */
}

.healing-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 0; /* 移除左邊距 */
  counter-increment: list-counter; /* 遞增計數器 */
}

/* 隱藏原生列表符號 */
.healing-list {
  list-style-type: none;
}

/* 自訂數字編號 */
.healing-list li::before {
  content: counter(list-counter) ".\00a0✓"; /* 組合數字與✓  或用▸ 🟡*/
  color: #689f38;
  position: absolute;
  left: -40px; /* 向左移動 */
  width: 25px;
  text-align: right;
}


/* ========== 深色模式 ========== */
@media (prefers-color-scheme: dark) {  
  .healing-list li:before {
    color: #81c784;
  }
}
/* == 清單樣式結束 */

/* 提示區塊設定開始 
<div class="pro-tip"><p>💡 專業小建議：</p></div>，
或用<div class="recipe-tips">🌿❤️📌💡⭐️🌱
或<blockquote class="highlight-quote">內容
                </blockquote> 
或<div class="usage-methods">
    <div class="method">
        <h5>🍋 蜂蜜檸檬薑水</h5>
        <p>溫水混合新鮮檸檬汁、薑汁與蜂蜜</p>
    </div></div>
或<div class="note">
<p>請先閱讀〈<a href="補充品知識.htm" class="modern-link" target="_self">補充品法則</a>〉。</p></div>
或<p class="availability"></p>
或<div class="related-topics"><h3 class="section-title">外層有id="section1"就仍然有目錄功能</h3></div>
或<div class="directions">或"ingredients">
或<p>內容<span class="highlight">強調的內容...</span>內容</p>
或<p或td><span class="recommended premium-mark">可以同時用2個屬性設定</span></p或/td>
或<span class="sweet-mark">甜美人</span> 
或<span style="background:#4caf50;color:white;padding:2px 6px;border-radius:4px;">有機推薦</span>*/

.pro-tip {
   /* border-top: 3px solid #e67e22; 柿子橙色主題 */
  background-color: #ebf8e8;            /* 淺綠背景 */
  border-left: 4px solid #4CAF50;       /* 左側綠色警示條 */
  padding: 12px 16px;                     /* 內間距 */
  margin: 20px 0;                         /* 外間距 */
  border-radius: 0 4px 4px 0;             /* 右側圓角 */
  font-size: 1.1em;                       /* 稍小字體 */
  position: relative;                     /* 定位基準 */
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2); /* 輕微陰影 */
}

.pro-tip:hover {
    color: #109e15;
}

/* 暗黑模式 */
.dark-mode .pro-tip {
    color: #81d4fa;
    background-color: #424345;
}

.dark-mode .pro-tip:hover {
    color: #079de3;
}

.availability {
  font-size: 1.15em;
  color: #e67e22;
  margin-top: 10px;
}

/* 使用方式 */
.usage-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.method {
    background: #fff8e1;
    padding: 12px;
    border-radius: 8px;
}

/* 暗黑模式 */
.dark-mode .usage-methods .method {
    color: #81d4fa;
    background-color: #574605;
}

.dark-mode .method {
    color: #81d4fa;
    background-color: #574605;
}

.dark-mode .method:hover {
    color: #079de3;
    background-color: #766624
}

/* 行動優先設計 - 手機版 (預設) */
@media (max-width: 575.98px) {  
  .pro-tip {
    margin: 15px -15px;
    border-radius: 0;
    border-left: none;
    border-top: 3px solid #4CAF50;
    font-size: 0.85em;
  }
}

/* 平板豎屏 (576px - 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .pro-tip {
    padding: 10px 14px;
    margin: 18px 0;
  }
}

/* 深色模式適配 */
@media (prefers-color-scheme: dark) {
  .pro-tip {
    background-color: #1a202c;
    border-left-color: #68d391;
  }
}

/* 高對比模式適配 */
@media (prefers-contrast: high) {
  .pro-tip {
    border-left-width: 6px;
    background-color: #fff !important;
    color: #000 !important;
  }
}

/* 觸控設備優化 */
@media (hover: none) and (pointer: coarse) {
  .pro-tip {
    padding: 15px;
    margin: 25px 0;
  }
}


.ingredients, 
.directions {
  /* 基礎樣式 */
  background-color: rgba(15,225,55,0.1);
  padding: clamp(15px, 3vw, 20px);
  border-radius: clamp(6px, 1.5vw, 8px);
  box-shadow: 
    0 2px 5px rgba(0,0,0,0.1),
    0 1px 3px rgba(0,0,0,0.05); /* 多層陰影 */
  margin-bottom: clamp(15px, 4vw, 20px);
  margin-top: clamp(15px, 4vw, 20px);
  
  /* 響應式邊框 */
  border: 1px solid rgba(0,0,0,0.05);
  
  /* 動畫效果 */
  transition: all 0.3s ease;
  
  /* 防止內容溢出 */
  overflow: hidden;
}


.dark-mode .ingredients, 
.dark-mode .directions {
    background: #766624;
}  

/* 滑鼠懸停效果 */
.ingredients:hover,
.directions:hover {
  color: #e67e22; /* 懸停時文字顏色（南瓜橙） */
  
  /* 可選：同時改變背景色增強效果 */
  background-color: #f0f7ff;
  
  /* 可選：陰影強化 */
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 增加焦點狀態 */
.dark-mode .ingredients:hover,
.dark-mode .directions:hover,
.dark-mode .ingredients:focus-visible,
.dark-mode .directions:focus-visible {
    color: #81d4fa;
    background-color: #574605;
    outline: 2px solid rgba(129, 212, 250, 0.3);
}

/* 平板斷點 (768px以下) */
@media (max-width: 768px) {
  .ingredients,
  .directions {
    padding: clamp(12px, 2.5vw, 15px);
    margin-bottom: clamp(12px, 3vw, 15px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }
}

/* 手機斷點 (480px以下) */
@media (max-width: 480px) {
  .ingredients,
  .directions {
    border-radius: clamp(4px, 1vw, 6px);
    padding: 12px;
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
    
    /* 手機橫屏適應 */
    @media (orientation: landscape) {
      padding: 10px 15px;
    }
  }
}

/* 高對比模式適應 */
@media (prefers-contrast: more) {
  .ingredients,
  .directions {
    border: 2px solid black;
    box-shadow: none;
  }
}

/* 暗黑模式適應 */
@media (prefers-color-scheme: dark) {
  .ingredients,
  .directions {
    background-color: #2d2d2d;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.1);
  }
}
/* 提示區塊設定結束 */


/* 現代化Footer 樣式 開始 */
.site-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f5ff 100%);
    padding: 2rem 0;
    border-top: 3px solid #e74c3c;
}

.copyright {
    color: #34495e;
    font-size: 0.9rem;
    font-family: 'Noto Sans TC', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.copyright::before,
.copyright::after {
    content: "❖";
    color: #e74c3c;
    font-size: 0.8rem;
}

.dark-mode .site-footer {
    background: #1f1b1b;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 0;
    }
    
    .copyright {
        font-size: 0.85rem;
    }
}
/* 現代化Footer 樣式 結束*/





