/* @import url(https://fonts.googleapis.com/earlyaccess/cwtexyen.css); */

@font-face {
    font-family: 'TypeLand';
    src: url('/webfont/TypeLand.woff') format('woff'); 

}
/* 全局樣式 */
* {
    margin: 0;
    padding: 0;    
    text-decoration:none;
    List-style: none;
    box-sizing: border-box;    
    font-family: 'TypeLand'; /* 添加備用字體 */
}

/* 全域變數 */
:root {
    /* 紙白 */
  --back_color_01: #F8F8F8;
  /* 紙黃 255, 242, 214*/
  --back_color_02: #FFF2D6;
  /* 油畫效果色 */
  --oil_color_effect: palevioletred;
  /* 油墨黑 */
  --oil_color_black:rgb(34, 34, 34);
  /* 油畫白 */
  --oil_paper_color: #FFF2D6;
  --slider_width_cover:80vw;
  --slider_width_inside:79vw;
  /* 段落高 */
  --secttion_hight:900px;

  all: initial;
  width: var(--search-wrapper-width);
  max-width: var(--search-wrapper-max);
}
/* 全域 */
/* ---------------------------------------------------------------- */
html{
    scroll-behavior: smooth;
}

body {
    /* height: 100vh; */
    /* width:100vw; */
    overflow-x: hidden;
    background: rgb(14, 14, 14);
    /* font-family: 'TypeLand', 'Noto Sans TC', sans-serif; */

    margin: 0; /* 移除預設邊距 */
    padding: 0; /* 移除預設內邊距 */
}

/* 導航按鈕 */
.nav-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
     /* 新增陰影提升可視性 */
     box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-button:hover {
    background: rgba(0, 0, 0, 0.9);
}

/*  */
/* 000 - 首頁 - btn*/

.float_bar{
    position: relative;
    width: 100%;
    height: auto; /* 自動高度 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0; /* 添加一些內邊距 */
}

.btn-container{

   position: fixed;  /* 固定定位 */
   top: 0;           /* 貼齊頂部-1 */
   left: 0;          /* 貼齊左側 */
   right: 0;         /* 貼齊右側 */
   z-index: 1000;    /* 確保在最上層 */
   
   width: auto;
   max-width: 460px; /* 最大寬度 */
   height: 80px;     /* 固定高度 */
   margin: 0 auto;   /* 水平置中 */
   padding:10px;   /* 左右內距 0 8px; */

   background:transparent; /* 半透明背景 */
   backdrop-filter: blur(5px);        /* 毛玻璃效果 */
   border-radius: 15px;      /* 只圓角下方 */
   display: flex;
   justify-content: space-around;
   align-items: center;
   border: var(--oil_color_black) dashed .3px; 
}

.bar_btn{
    width: 60px;
    height: 60px;
    
    background:rgba(14, 14, 14, 0.3);    
    border-radius: 10px;    
    border: var(--oil_paper_color) groove 0.01px;

    line-height:60PX;  
    letter-spacing: 0.1em;

    text-align: center;
}

.bar_btn a{
    text-decoration: none;
    color: var(--oil_paper_color);
}

.bar_btn:hover  a {
    color: rgb(248, 248, 248);
    /* background-color: rgb(34, 34, 34); */
    text-shadow: RED -2px 0,
                  cyan 2px 0;
    transform: scale(1.1);
    animation: 1s;
}
.bar_btn:hover {
    background-color: rgba(255, 242, 214,.1);
}

/* 滑動輪播樣式 */
.slider-container {
    margin-top: 0px; /* 為導航欄留出空間 */
    width: 100%;
    height: calc(100vh ); /* 減去導航欄高度 */
    position: relative;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
  }
  
  .slide.active {
    opacity: 1;
    z-index: 2;
  }


.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

}

.slide-content {
    display:none;
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 20px;
    text-align: center;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}
body::after {
    content: url('../img/store_oil/1.webp') url('../img/store_oil/1c.webp')
             url('../img/store_oil/2.we1.webp') url('../img/store_oil/2c.webp')
             url('../img/store_oil/3.we1.webp') url('../img/store_oil/3c.webp');
    display: none;
  }
.store-image {
    width: 100%; /* 根據需要調整 */
    height: 100%; /* 根據需要調整 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.5);
    border: .18em solid rgb(14, 14, 14,0.4) ;
    /* border: none; */
    width: 45px;
    height:45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: var(--oil_color_black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: .15em solid rgb(233, 233, 233) ;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    
    background: rgba(14, 14, 14, 0.9);
}

/* 內容區塊樣式 */
section {
    width: 100%;
    min-height: 100vh;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#section1 {
    background-color: #111;
    /* background-color: var(--oil_color_black); */
}

#section2 {
    /* background-color: var(--oil_color_black); */
    background-color: #111;
    /* background-color: var(--oil_color_black);
      padding: 80px 20px;
      text-align: center;
      position: relative;
      overflow: hidden;*/
} 


/* #section4 {
    background-color: oil_color_black;
    padding: 80px 0; /* 上下留白 
    color: var(--back_color_02);

} */

/* #section5 { */
    /* background-color:#ced4da; */
    /* gap: 10px;
    
    padding-top: 40px;
    padding-bottom: 20px;
    overflow: visible !important; */
/* } */

#section6 {
    /* background-color: oil_color_black;
    color: white; */
    background-color: #111;
    /* background-color: var(--oil_color_black); */
    color: white;
    padding: 80px 20px; /* 增加上下內距 */
}

#section6 h2 {
    color: white;
    margin-bottom: 80px; /* 增加標題下方間距 */
    letter-spacing: 15px;
}
/*  */
.partner-group {
    margin-top: 30px; /* 增加與標題的距離 */
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* 增加圖片之間的間距 */
    max-width: 1200px; /* 增加最大寬度容納更多圖片 */
    margin: 0 auto;
}

/* 交錯排列效果 */
.partner-logos a {
    flex: 0 0 calc(20% - 24px); /* 基礎5個一排的寬度 */
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

/* 交替行調整 */
.partner-logos a:nth-child(8n+1),
.partner-logos a:nth-child(8n+2),
.partner-logos a:nth-child(8n+3),
.partner-logos a:nth-child(8n+4) {
    flex: 0 0 calc(25% - 24px); /* 4個一排的寬度 */
}

/* 圖片樣式 */
.partner-logos img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 100px; /* 控制圖片高度一致 */
    filter: grayscale(30%) brightness(1.1);
    transition: all 0.3s ease;
}

.partner-logos a:hover img {
    filter: grayscale(0%) brightness(1.2);
    transform: scale(1.05);
}
/*  */
.partner-group {
    margin-top: 30px; /* 增加與標題的距離 */
}

#section6 p {
    color: rgba(255, 255, 255, 0.8);
}

.section-content {
    max-width: 800px;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    ;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
    margin-bottom: 30px;
}

/* ======================================================= */
/* 000 */
.store-info {
    /* font-family: 'Microsoft JhengHei', Arial, sans-serif; */
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    /* background-color: #111; */
    border-radius: 8px;
    /* opacity: 40%; */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    filter: blur(0.6px);
  }
  
  .store-info h2 {
    color:  #fff;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #fff;
    padding-bottom: 10px;
  }
  
  .store-details {
    margin-bottom: 20px;
  }
  
  .store-details p {
    margin: 8px 0;
    font-size: 16px;
  }
  
  .business-hours h3 {
    color: greenyellow;
    text-align: center;
    margin: 20px 0 15px;
  }
  .business-hours {
    margin: 20px 0;
    /* font-family: 'Microsoft JhengHei', Arial, sans-serif; */
  }
  
  .business-hours h3 {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #fff;
  }
  
  .business-hours-container {
    max-width: 600px;
    margin: 20px auto;
    /* font-family: 'Microsoft JhengHei', 'PingFang TC', 'Heiti TC', sans-serif; */
  }
  
  .business-hours-container h3 {
    text-align: center;
    font-size: 1.3em;
    color: #fff;
    margin-bottom: 15px;
  }
  
  .hours-table-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .hours-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    /* background: white; */
    /* border-radius: 12px; */
    overflow: hidden;
  }
  
  .hours-table th,
  .hours-table td {
    padding: 12px 8px;
    text-align: center;
    border: 0.8px solid #fff;
  }
  
  /* 圓角處理 */ .hours-table thead tr:first-child th:first-child {
    border-top-left-radius: 10px;
  }
  .hours-table thead tr:first-child th:last-child {
    border-top-right-radius: 10px;
  }
  .hours-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
  }
  .hours-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
  }
  
 
  /* 表頭樣式 */
  .hours-table thead th {
    /* background-color: #f5f5f5; */
    font-weight: 500;
    /* color: #fff; */
    border-bottom-width: 0.5px;
  }
  
  .time-header {
    width: 25%;
    /* background-color: #f5f5f5; */
  }
  
  .time-range {
    text-align: right;
    padding-right: 15px !important;
    /* background-color: #fff; */
    font-weight: 500;
  }
  
  /* .empty-cell {
    background-color: #fff;
    border: none !important;
    width: 10px;
  }
   */
  /* 營業狀態樣式 */
  .open {
    color: #4CAF50; /* 綠色 */
    font-weight: bold;
    font-size: 1.1em;
  }
  
  .closed {
    color: #F44336; /* 紅色 */
    font-weight: bold;
  }
/* ======================================================= */
/* 001 內容區塊 */
/* 主區塊樣式 */
.stores .story {
    position: relative;
    padding: 3rem 0;
    /* background-color: #fff; */
}

.overflow {
    overflow: hidden;
}

.store_info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   
    align-items: top;
    gap: 2rem;
    padding: 0.1rem;
}

/* 單個店家資訊卡片 */
.info {
    background: var(--oil_paper_color);
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: .1rem;    /* 內距 */
    width: 100%;
    max-width: 360px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 20px; /* 新增：彈性基礎值 */
}
#section1 table,.worktable ,#section1 .job_content, #section1 .support{
    background-color:rgb(210, 182, 135);
    /* rgb(246, 190, 12); */
    color: rgb(14, 14, 14);
    border-radius: 10px;
    letter-spacing:2px;
    padding:8px;
    margin:6px;
    line-height: 23px;    
    flex-grow: 1;
}

.info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.txt h2 {
    color: var(--oil_color_black);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-align: center;
    /* letter-spacing: 2PX; */
    background-color:rgb(210, 182, 135);

    border-radius: 10px;
   padding:8px;
    margin:6px;
}

.txt p {
    margin-bottom: 1.5rem;
    color: var(--oil_color_black);
    font-size: 0.95rem;
    background-color:rgb(211, 15, 58);
    background-color:rgb(210, 182, 135);
    border-radius: 10px;
    padding:8px;
    margin:6px;
}

/* 營業時間表格樣式 */
.worktable {
    width: 97%;
    /* margin-bottom: 1.5rem; */
    font-size: 0.9rem;
    background-color:rgb(210, 182, 135);
    border-radius: 10px;
    padding:8px;
    margin:3px;
}


.worktable td {
    border: rgba(14, 14, 14,.2) 1px dotted;
    border-spacing: 1px;
    align-items: center;
    text-align: center;  
    
}

.v {
    /* color: #27ae60; */
    font-weight: bold;
}

.X {
    color: #e74c3c;
    font-weight: bold;
}

/* 健保標示 */
.support {
    padding: 0.8rem;
    margin: 1rem 0;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;

    background-color:rgb(210, 182, 135);
    border-radius: 10px;
    padding:8px;
    margin:3px;
}

.support span {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;}

#s01 span, #s02 span {
    color: #e74c3c;
}

#s03 span {
    color: #27ae60;
}

.job_inside {
    padding: 1rem;

    background-color:rgb(210, 182, 135);
    border-radius: 10px;
    padding:8px;
    margin:3px;
}

.job_inside > span, .job_title {
    
    display: block;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* .job_inside ul { */
    /* list-style-type: none; */
/* } */

.job_inside li {
    padding: 0.3rem 0;
    color: #555;
    position: relative;
    padding-left: 1.2rem;
}

.job_list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.job_list ul {
    flex: 1;
    min-width: 120px;
}
#section1 .overflow .store_info .info:hover ,#section1 .papper:hover {    
    transform: translateX(-0.3em) translateY(-0.3em);
    border: 1px solid #171717;
    box-shadow: 5px 5px 0px #333333;
}
#section1 .info h2:hover,#section1 .info p:hover,#section1 .info .worktable:hover,#section2 .info .job_content:hover 
,#section1 .info .support:hover ,#section1 .info .job_content:hover{    
    transform: translateX(-0.2em) translateY(-0.2em);
    border: 1px solid #171717;
    box-shadow: 5px 5px 0px #666666;
    z-index: 1;
}
/* 002 - 品牌 */
/* ======================================================= */
     /* 合併的主要區塊 */
     #combined-section {
        padding: 80px 20px;
        background-color: #111;
        color: white;
        min-height: 100vh;
    }

    .section-content {
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
    }

    /* 主標題 */
    .main-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
        letter-spacing: 5px;
        position: relative;
        display: inline-block;
    }

    .main-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background-color: var(--oil_color_effect);
    }

    .main-subtitle {
        font-size: 1.2rem;
        margin-bottom: 40px;
        color: rgba(255, 255, 255, 0.8);
    }

    /* 切換按鈕組 */
    .toggle-buttons {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 50px;
    }

    .toggle-btn {
        padding: 12px 24px;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(212, 175, 55, 0.3);
        border-radius: 8px;
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 1rem;
        letter-spacing: 0.1rem;
        min-width: 120px;
    }

    .toggle-btn:hover {
        background: rgba(212, 175, 55, 0.2);
        border-color: var(--oil_color_effect);
    }

    .toggle-btn.active {
        background: var(--oil_color_effect);
        border-color: var(--oil_color_effect);
        color: #111;
        font-weight: bold;
    }

    /* 內容區塊 */
    .content-panel {
        display: none;
        animation: fadeIn 0.5s ease-in-out;
    }

    .content-panel.active {
        display: block;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* 品牌故事時間軸樣式 */
    .timeline-container {
        width: 100%;
        overflow-x: auto;
        padding: 40px 0;
        position: relative;
        -ms-overflow-style: none;
        scrollbar-width: none;
        mask-image: linear-gradient(
            to right,
            black 0%,
            black calc(100% - 60px),
            transparent 100%
        );
        cursor: grab;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .timeline-container::-webkit-scrollbar {
        display: none;
    }

    .timeline-wrapper {
        display: flex;
        position: relative;
        gap: 60px;
        padding: 20px calc(50% - 140px);
        user-select: none;
        min-width: min-content;
    }

    .timeline-item {
        position: relative;
        text-align: center;
        flex-shrink: 0;
        width: 280px;
    }

    .timeline-dot {
        width: 16px;
        height: 16px;
        background: var(--oil_color_effect);
        border-radius: 50%;
        margin: 0 auto;
        position: relative;
        z-index: 2;
    }

    .timeline-item:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 8px;
        left: calc(50% + 8px);
        width: calc(100% + 60px - 16px);
        height: 2px;
        background: rgba(255,255,255,0.3);
        z-index: 1;
    }

    .timeline-content.story-card {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border-radius: 15px;
        padding: 25px;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 242, 214, 0.1);
        margin-top: 20px;
        min-height: 220px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .timeline-content.story-card:hover {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        border-color: var(--oil_color_effect);
    }

    .timeline-content h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        color: var(--back_color_02);
        letter-spacing: 0.2rem;
    }

    .timeline-content p {
        font-size: 1rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.8);
        margin: 0;
        text-align: left;
        letter-spacing: 0.15rem;
    }

    /* 中藥文化網格樣式 */
    .culture-intro {
        text-align: center;
        margin-bottom: 3rem;
    }

    .culture-intro h3 {
        font-size: 1.8rem;
        color: #fff;
        margin-bottom: 1rem;
        position: relative;
        display: inline-block;
    }

    .culture-intro h3::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 2px;
        background: var(--oil_color_effect);
    }

    .culture-intro p {
        max-width: 800px;
        margin: 0 auto;
        color: #ccc;
        font-size: 1.1rem;
    }

    .grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.2rem;
        margin-top: 2rem;
    }

    .technique-card {
        background: var(--oil_paper_color);
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .technique-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .img-placeholder {
        height: 180px;
        background: rgb(210, 182, 135);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #666;
        font-size: 1rem;
        overflow: hidden;
        position: relative;
    }

    .img-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .technique-card:hover .img-placeholder img {
        transform: scale(1.05);
    }

    .card-content {
        padding: 1.2rem;
    }

    .card-content h3 {
        color: #2c3e50;
        margin-bottom: 0.6rem;
        font-size: 1.2rem;
        letter-spacing: 1rem;
    }

    .card-content p {
        color: #555;
        margin-bottom: 0.8rem;
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: left;
    }
/* ##03 - 整合搜尋系統  -- */
/* ======================================================= */
/* ======================================================= */




/* 整合搜尋系統 */
#integrated-search {
    background-color: var(--oil_color_black);
    position: relative;
    text-align: center;
    padding: 80px 0;
    background-image: url('/img/bg/www.png');
    background-repeat: repeat;
    background-size: 350px 350px;
    background-position: top left;
    opacity: .9;
    /* overflow: hidden;  */
    /* 確保鹿不會超出section範圍 */
}

#integrated-search .wrapper {
    width: 95%;
    position: relative;
    background-color: #d2b687;
    padding: 50px 30px;
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 
        0 0 15px rgba(0, 0, 0, 0.3),
        inset 0 0 0 4px #FFF2D6;
    border: 1px solid #e0d4bd;
    transition: all ease 0.3s;
}

#integrated-search .wrapper:hover {
    animation: 1s;
    box-shadow: 5px 5px 20px 1px #ffbb763f;
    border: 1px solid rgba(255, 255, 255, 0.454);
    z-index: 10;
}

#integrated-search h1 {
    text-align: center;
    margin-bottom: 25px;
}

/* 神農圖片調整 */
#integrated-search .herb-corner-img {
    position: absolute;
    top: -157px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: auto;
    z-index: 3;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    pointer-events: none;
}
/* 調整內卡上邊距 */
#integrated-search .inner-card {
    padding-top: 10px; /* 減少頂部空間 */
}

#integrated-search .herb-corner-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 搜尋欄位容器 */
.search-container {
    /* position: relative;
    margin-bottom: 25px; */
    margin-top: 20px; /* 增加與圖片的間距 */
}

/* 搜尋輸入框 */
#universalSearchInput {
    position: relative;
    z-index: 2;
    padding: 15px 20px;
    width: 100%;
    font-size: clamp(16px, 4vw, 18px);
    border: 2px solid #999;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
    transition: all 0.3s ease;
}

#universalSearchInput:focus {
    border-color: #666;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    outline: none;
}

/* 搜尋選項 */
.search-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.search-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
    color: #5a3e1f;
    font-weight: 500;
}

.search-options input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #5a3e1f;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-options input[type="radio"]:checked {
    background-color: #5a3e1f;
    box-shadow: inset 0 0 0 3px #d2b687;
}

/* 結果區 */
#universalResults {
    width: 100%;
    margin: 20px auto 0;
}
/* 橫式開始 */
/* 中藥結果容器 - 水平滾動 + 導航系統 */
.herbs-container-wrapper {
    position: relative;
    margin: 0 -20px;
    padding: 0 40px;
}

.herbs-container {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 30px 10px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* 隱藏原生滾動條 */
    /* mask-image: linear-gradient(
        90deg, 
        transparent 0%, 
        #000 20px, 
        #000 calc(100% - 20px), 
        transparent 100%
    ); */
}
.herbs-container::-webkit-scrollbar {
    display: none; /* 隱藏 WebKit 滾動條 */
}

/* 自定義導航箭頭 */
/* .scroll-nav {
    position: absolute;
    top: 0;
    height: 100%;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    background: linear-gradient(
        90deg, 
        rgba(210, 182, 135, 0.8) 0%, 
        rgba(210, 182, 135, 0) 100%
    );
}

.scroll-nav.right {
    right: 0;
    background: linear-gradient(
        270deg, 
        rgba(210, 182, 135, 0.8) 0%, 
        rgba(210, 182, 135, 0) 100%
    );
}

.herbs-container-wrapper:hover .scroll-nav {
    opacity: 1;
} */

/* 箭頭圖標 */
/* .scroll-nav::after {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    border-top: 3px solid #5a3e1f;
    border-right: 3px solid #5a3e1f;
    transform: rotate(45deg);
    box-shadow: 1px -1px 3px rgba(255, 255, 255, 0.8);
}

.scroll-nav.left::after {
    transform: rotate(-135deg);
    margin-left: 8px;
}

.scroll-nav.right::after {
    margin-right: 8px;
} */

/* 中藥卡片樣式 */
.herb-card {
    flex: 0 0 auto;
    /* width: 280px;
    min-height: 360px; */
    width: 320px;
    min-height: 520px;
    background-color: #fff;
    color: #111;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.herb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.herb-card h3 {

    font-size: 1.5rem;
    margin: 0 0 15px 0;
    color: #5a3e1f;
    padding-top: 10px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #d2b687;
}
.herb-card span {

    font-size: 0.6rem;
    color: #5a3e1f;
 
}
.herb-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.herb-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    padding-left: 10%;
    text-align: left;
    color: var(--oil_color_black);
    
}

.herb-card p::before {
    content: '•';
    position: absolute;
    left: 10%;
    color: #d2b687;
    font-weight: bold;
}

.herb-card strong {
    color: #5a3e1f;
    font-weight: 600;
}


/* 調整圖片區域適應新佈局 */
.herb-img-wrapper {
    position: relative;
    margin-top: 15px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.herb-bg-circle {
    position: absolute;
    bottom: -50PX;
    width: 150px;
    height: 150px;
    background-color: #d2b687;
    border-radius: 50%;
    opacity: 0.2;
}

.herb-img {
    position: relative;
    bottom: -50PX;
    max-height: 200px;
    max-width: 100%;
    z-index: 2;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}
.herb-card:hover .herb-img {
    transform: scale(1.05);
}
/* 書籍卡片樣式 */
.books-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    /* padding: 20px 10px; */
    padding: 20px 10px 30px 10px; /* 增加底部padding */
    scrollbar-width: thin;
    scrollbar-color: #d2b687 #f5f5f5;
}

.books-container::-webkit-scrollbar {
    height: 8px;
}

.books-container::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.books-container::-webkit-scrollbar-thumb {
    background-color: #d2b687;
    border-radius: 10px;
}

.book-card {
    position: relative;
    flex: 0 0 auto;
    width: 190px;
    height: 254px;
    background: var(--back_color_02);
    background-image: url('../img/tool/books.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.8;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.book-card::before {
    position: absolute;
    content: '';
    height: 0;
    width: 0;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(236, 237, 228,1) 0%, rgba(156, 157, 141,1) 50%, rgba(229, 231, 218,1) 50%, rgba(226, 228, 214,1) 60%);
    border-radius: 0 0 0.5em 0;
    box-shadow: 0.2em 0.2em 0.2em rgba(0, 0, 0, 0.6);
    transition: 0.3s;
}

.book-card:hover::before {
    width: 1.5em;
    height: 1.5em;
}

.book-card:hover {
    border: 1px solid var(--oil_color_black);
    transform: scale(1.05);
    rotate: 5deg;
    opacity: 1;
    box-shadow: 0px 0px 20px 1px #ffbb763f;
    border: 1px solid rgba(255, 255, 255, 0.454);
    z-index: 10;
}

.book-card .category {
    position: absolute;
    top: 10px;
    right: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    writing-mode: vertical-rl;
    text-orientation: upright;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 10;
    letter-spacing: 6px;
    line-height: 1.6;
}

.book-card .source {
    position: absolute;
    top: 80px;
    right: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    writing-mode: vertical-rl;
    text-orientation: upright;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 10;
    letter-spacing: 6px;
    line-height: 1.6;
}

.book-card .title {
    position: absolute;
    top: 10%;
    left: 15%;
    letter-spacing: 8px;
    font-size: 20px;
    writing-mode: vertical-lr;
    white-space: nowrap;
}

.book-card .btn {
    width: 30px;
    height: 30px;
    text-align: center;
    position: absolute;
    bottom: 2%;
    left: 82%;
    color: rgb(236, 236, 236);
    font-size: 18px;
    background-color: rgba(14, 14, 14, 0.8);
    border: rgba(14, 14, 14, 0.75) dashed 1.5px;
    border-radius: 0.25em;
    transition: 0.2s ease;
}

.book-card .btn:hover {
    color: #0d0d0d;
    border-color: var(--back_color_02);
    text-shadow: RED -2px 0, cyan 2px 0;
}

/* 無結果提示 */
.no-results {
    text-align: center;
    padding: 30px;
    color: #5a3e1f;
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

/* 動畫效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.herb-card, .books-container {
    animation: fadeIn 0.5s ease-out;
}
/* ======================================================= */
/* ======================================================= */
.acupoint-container,
.cml-container,
.prescription-container {
    display: block;           /* 改為 block，讓卡片一張一行 */
    padding: 20px 10px;
}

.acupoint-container::-webkit-scrollbar,
.cml-container::-webkit-scrollbar {
    height: 8px;
}

.acupoint-container::-webkit-scrollbar-thumb,
.cml-container::-webkit-scrollbar-thumb {
    background-color: #d2b687;
    border-radius: 10px;
}



.speech-card {
    width: 100%;
    margin-bottom: 20px;

    background: #fffdf8;
    border: 2px solid #d2b687;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.speech-card:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 0 #5a3e1f;
}



.speech-card .title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #5a3e1f;
    margin-bottom: 10px;
    line-height: 1.4;
}

.speech-card .subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #7a5c30;
    margin-bottom: 8px;
}

.speech-card .content {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #444;
    white-space: pre-wrap;
    text-align: center;
}

.speech-card .content strong {
    display: block;
    margin-top: 12px;
    font-weight: bold;
    color: #5a3e1f;
    font-size: 1rem;
}
/* ======================================================= */
/* 處方 */
/* .prescription-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 10px 40px 10px;
    scrollbar-width: thin;
    scrollbar-color: #d2b687 #f5f5f5;
  }
   */
  .prescription-container::-webkit-scrollbar {
    height: 8px;
  }
  .prescription-container::-webkit-scrollbar-thumb {
    background-color: #d2b687;
    border-radius: 10px;
  }
/* ======================================================= */
/* 左右華鬼 */
.scrollable-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 20px 0;
    
  }
  
  .scrollable-content {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 24px;
    padding: 10px;
  }
  
  .scrollable-content::-webkit-scrollbar {
    display: none;
  }
  .scrollable-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .scroll-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: #f3e8d3;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
    text-align: center;
    line-height: 36px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 3;
    color: #5a3e1f;
    user-select: none;
  }
  
  .scroll-nav.left { left: 0; }
  .scroll-nav.right { right: 0; }
  
  .scroll-nav {
    display: none;
}

/* ======================================================= */

/* 圖片模態框樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    animation: fadeIn 0.3s;
}

.modal-content {
    display: block;
    margin: 8% auto;
    max-width: 35%;
    max-height: 35%;
    /* border: 3px solid #d2b687; */
    /* border-radius: 8px;
    box-shadow: 0 0 20px rgba(210, 182, 135, 0.5); */
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #fff;
    padding: 10px 0;
    font-size: 1.2rem;
    letter-spacing: .5rem;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: #d2b687;
    transform: scale(1.2);
}

/* 淡入動畫 */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* ======================================================= */
/* [［［［　鹿　］］］] */
/* ======================================================= */
/* 鹿的動畫樣式 */
/* 鹿的樣式 */
.deer {
    position: absolute;
    height: auto;
    pointer-events: auto; /* 允許鼠標交互 */
    user-select: none;
    will-change: transform; /* 優化性能 */
    transform-origin: center;
    opacity: 1;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 確保鹿不會超出背景範圍 */
#deer-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -10;
}


/* ======================================================= */
/* ##04 - 學堂 */

.main-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }
  .main-subtitle {
    margin-bottom: 30px;
    color: #ccc;
  }
  .toggle-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
  }
  .toggle-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #888;
    border-radius: 8px;
    cursor: pointer;
  }
  .toggle-btn.active {
    background: palevioletred;
    border-color: palevioletred;
  }
  .herb-index-group {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }
  .index-block {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    min-width: 180px;
  }
  .index-block h3 {
    color: palevioletred;
    font-size: 20px;
    margin-bottom: 14px;
    letter-spacing: .3rem;
  }
  .index-block ul {
    list-style: none;
    padding: 0;
  }
  .index-block li a {
    color: var(--back_color_02);
    /* text-decoration: underline; */
    line-height: 2.5;
  }

  .index-block li a:hover {
    background-color: palevioletred;
    color: #111;
  }
  /* 收合動畫 */


  .expand-list {
    display: none;
    transition: max-height 0.6s ease-out;
  }
  .index-block:hover .expand-list {
    display: block;
  }
  .hover-expand {
    cursor: pointer;
    position: relative;
  }
  .hover-expand::after {
    content: "☰";
    opacity: .6;
    font-size: 0.7em;
    position: absolute;
    right: -15px;
    top: 25px;
    transition: transform 0.3s ease;
  }
  .index-block:hover .hover-expand::after {
    transform: rotate(180deg);
  }

/* ======================================================= */
/* ##05 - 合作夥伴 -- */
#partners {
    padding: 80px 20px;
    /* background-color: #111; */
    color: #fff;
    text-align: center;
  }
  
  #partners h2 {
    font-size: 32px;
    margin-bottom: 20px;
    letter-spacing: 6px;
    color: #f8f8f8;
  }
  
  .partner-logos {
    max-width: 960px;           /* ✅ 限制最大寬度 */
    margin: 0 auto;             /* ✅ 水平置中 */
    display: flex;
    flex-wrap: wrap;            /* ✅ 超過寬度自動換行 */
    justify-content: center;
    gap: 30px 40px;             /* ✅ 間距：上下30px、左右40px */
  }
  
  .partner-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 80px;
    padding: 10px;
    border-radius: 10px;
    transition: transform 0.3s ease;
  }
  
  .partner-logos a:hover {
    transform: scale(1.1);
  }
  
  .partner-logos img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
  }
  
  .partner-logos a:hover img {
    filter: grayscale(0%);
  }
  
/* ======================================================= */
/* 頁腳樣式 */
.footer {
    background-color: var(--oil_color_black);
    /* #343a40; */
    color: #ffffff;
    padding: 40px 0 0;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #f8f9fa;
}

.footer-section p {
    color: #adb5bd;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    /* background-color: #212529; */
    background-color:#111;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

.footer-bottom p {
    color: #adb5bd;
    margin: 0;
}
/* ======================================================= */
/* media */

/* 大桌面設備 (大於1440px) */
@media (min-width: 1440px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* 標準桌面設備 (992px-1440px) */
@media (max-width: 1440px) {
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* 002 */
@media (max-width: 1200px) {
    .store_info {
        gap: .1rem;
        /* gap: 1.5rem; */
    }
    
    .info {
        max-width: 350px;
    }
    /* 004 */
    .deer {
        max-width: 150px; /* 大平板 */
    }
}

/* 響應式設計 */
@media (max-width: 1024px) {
    /* ##06 */
    .partner-logos a {
        flex: 0 0 calc(25% - 20px) !important; /* 平板設備固定4個一排 */
    }
}
/* 平板設備 (768px-992px) */
@media (max-width: 992px) {
    /* 001 */
    .store_info {
        gap: .1rem;
        /* gap: 1.5rem; */
    }
    
    .info {
        max-width: 350px;
    }

    
    /* 004 */
    .deer {
        max-width: 100px;
    }
}
@media (max-width: 768px) {

    /* nav */
    .nav-button {
        top: auto;       /* 取消頂部定位 */
        bottom: 20px;    /* 移動到底部 */
        right: 20px;     /* 保持在右側 */
        left: auto;      /* 確保不會被左側影響 */
        /* 調整按鈕大小更適合觸控 */
        padding: 12px 18px;
        font-size: 15px;
        /* 更明顯的背景色 */
        background: rgba(0, 0, 0, 0.8);
    }
    /*  */
    .slide-content {
        bottom: 10%;
        width: 90%;
        padding: 15px;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    /* #004 */
    .deer {
        max-width: 100px; /* 大手機 */
        bottom: 15% !important; /* 調整垂直位置 */
    }
    /*##06  */
    .partner-logos a {
        flex: 0 0 calc(33.333% - 20px) !important; /* 手機設備3個一排 */
    }
    /*  */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
}
/* 小手機設備 (小於576px) */
@media (max-width: 576px) {
    /* 001 */
    .info {
        /* padding: 1rem; */
        padding: .1rem;
    }
    
    .txt h2 {
        font-size: 1.5rem;
    }
    
    .worktable {
        font-size: 0.8rem;
    }
    
    .times {
        padding-right: 0.5rem;
    }
    
    .job_list {
        flex-direction: column;
        gap: 0;
    }
    
    .job_list ul {
        min-width: 100%;
    }
    /* 004 */
    .deer {
        max-width: 80px;
    }
    
    /* 手機上減少最大鹿數量 */
    #deer-container {
        --max-deer: 5; /* 覆蓋JS設定的最大數量 */
    }
}
    /* 小手機特殊調整 */
@media (max-height: 600px) {
        #section2 .img-placeholder {
            height: 150px; /* 低高度設備調整 */
        }
}
@media (max-width: 480px) {
    /* nav */
    .nav-button {
        bottom: 15px;
        right: 15px;
        padding: 10px 15px;
        font-size: 14px;
    }
    /*  */
    .hours-table th,
    .hours-table td {
      padding: 8px 4px;
      font-size: 14px;
    }
    
    .time-range {
      padding-right: 8px !important;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    /* ##06 */
    .partner-logos a {
        flex: 0 0 calc(50% - 20px) !important; /* 小手機2個一排 */
    }
}
/* 橫屏裝置特殊調整 */
@media (max-height: 500px) {
    .deer {
        max-width: 70px;
        bottom: 5% !important;
    }
}
/* 超小屏幕 (360px) */
@media (max-width: 360px) {
    #section4 h1, #section5 h1{
        font-size: 20px;
        text-align: center;
    }
    
    #searchInput ,#bookSearchInput{
        padding: 10px;
        font-size: 14px;
    }
    }