/* @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);

   /* 控制玻璃質感的模糊程度和飽和度 */
   --global--size: clamp(2rem, 4vw, 5rem);
   --anim--hover-time: 400ms;
   --anim--hover-ease: cubic-bezier(0.25, 1, 0.5, 1);
   --border-width: clamp(1px, 0.0625em, 4px);

     /* ✅ 玻璃特效通用變數 */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: blur(10px);
  --glass-shadow:
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
    0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.2),
    0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2);
}
/* 全域 */
/* ---------------------------------------------------------------- */
html{
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
    overflow-x: hidden;
    background: rgb(14, 14, 14);

    margin: 0; /* 移除預設邊距 */
    padding: 0; /* 移除預設內邊距 */
}
/* 玻璃特效 */
.glass-box {
    background: rgba(255,255,255,0.05);
    padding: 15px;

    position: relative;
    border-radius: 1.8rem; 
    background: linear-gradient(
      -75deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.05)
    );
    padding: 1.25rem;
    backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    box-shadow:
      inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
      inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
      0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.2),
      0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2),
      0 0 0 0 rgba(255, 255, 255, 1);
    border: none;
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
    overflow: hidden;
    z-index: 10;

    /* background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: .5rem;
    padding: 1.5rem;
    transition: all 0.3s ease; */

  }

.glass-box:hover {
    transform: translateY(-5px);
    backdrop-filter: blur(0.01em);
    -webkit-backdrop-filter: blur(0.01em);
    box-shadow:
      inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
      inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
      0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
      0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.5),
      0 0 0 0 rgba(255, 255, 255, 1);
    transition: transform 0.3s ease;
    z-index: 10;
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.08); */

    /* border-color: var(--oil_color_effect); */
  }

/* 導航按鈕 */
.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: 15px;    
    border: var(--oil_paper_color) groove 0.01rem;
    text-shadow: 0em 0.3em 0.05em rgba(0, 0, 0, 0.3);
    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);
}

/* =================[LOGO]========================== */
#logo-link {
  position: relative;          /* ✅ 關鍵：讓 a 的 inset:0 參考這個容器 */
  width: 60px;
  height: 60px;
  background: rgba(14,14,14,0.3);
  border-radius: 15px;
  border: var(--oil_paper_color) groove 0.01rem;
  /* line-height: 60px;  建議移除，避免干擾置中 */
  letter-spacing: 0.1em;
  text-align: center;
}

#logo-link a {
  position: absolute;
  inset: 0;
  display: flex;               /* ✅ 用 a 來置中 img */
  align-items: center;
  justify-content: center;
}

#logo-link img {
  display: block;
  max-width: 90%;
  height: auto;
  /* transition: filter 0.1s ease; */
}

#logo-link:hover img {
  filter: drop-shadow(-2px 0 red) drop-shadow(2px 0 cyan);
  animation: 1s;
}

#logo-link:hover {
  background-color: rgba(255, 242, 214, 0.1);
  }
/* ============================================= */
/* 滑動輪播樣式 */
.slider-container {
    margin-top: 0px; /* 為導航欄留出空間 */
    width: 100vw;
    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: .8rem;
    color: var(--oil_paper_color);
    display: flex;
    align-items: center;
    justify-content: center;
    /* transition: all 0.3s ease; */
}

.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: 100vw;
    min-height: 100vh;
    padding: 80px 20px;
    height: auto; 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#section1 {
    /* width: 100vw;
    min-height: 100vh;   */
    /* ✅ 改成最小高度 */
    /* height: auto;        */
    /* ✅ 讓它自動撐開高度 */
    background-image: url('/img/paper/big_table.webp'); 
    background-position: left;
}

#section2 {
    background-color: #111;
} 

#section6 {
    background-color: #111;
    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 {
    font-weight: 500;
    border-bottom-width: 0.5px;
  }
  
  .time-header {
    width: 25%;
  }
  
  .time-range {
    text-align: right;
    padding-right: 15px !important;
    font-weight: 500;
  }
  
  /* 營業狀態樣式 */
  .open {
    color: #4CAF50; /* 綠色 */
    font-weight: bold;
    font-size: 1.1em;
  }
  
  .closed {
    color: #F44336; /* 紅色 */
    font-weight: bold;
  }
/* ======================================================= */
/* 001 內容區塊 */
/* 主區塊樣式 */

.store_info {
       
    height: auto;        
    /* ✅ 不固定高度 */
    flex-direction: row; /* 原桌面版保持橫排 */
    flex-wrap: wrap;     /* 卡片太多可自動換行 */

    display: flex;
    justify-content: center;  /* 水平置中 */
    align-items: center;      /* 垂直置中 */

    gap: 2rem;
    padding: 0.1rem;
    /* width: 100vw;
    height:100%; */
    /* border-radius: 2rem; */
    /* background-image: url('/img/paper/table.png');  */
}

/* 單個店家資訊卡片 */
.info {
    position: relative;
    height:750px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding:  1rem;  
    
    max-width: 360px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 20px;
    z-index: 1; /* 確保文字在上層 */
}
/* 透明背景 */
.info::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('/img/paper/laminate_wood_texture.webp'); 
    /* background-size: cover; */
    background-position: center;
    opacity: .85; 
    z-index: -1;  
  }

.info:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
#section1 table,
#section1 .worktable ,
#section1 .job_content,
#section1 .txt h2,
#section1 .txt p,
#section1 .support{
    color: var(--oil_color_black);
    /* background-color: #295f3f; */
    padding:8px;
    margin:6px;
    letter-spacing:.1rem;
    line-height: 23px;    
    flex-grow: 1;
}


#section1 .txt h2 {
    text-align: center;

    font-size: 1.6rem;
    margin-top: 1rem;
    margin-bottom: 1rem;

    letter-spacing:.3rem;
    line-height: 1.3;
}

#section1 .txt p {
    font-size: 0.95rem;
    letter-spacing:.05rem;
    margin-bottom: 1rem;
}

/* 營業時間表格樣式 */

#section1 .worktb{
    display: flex;
    /* flex-wrap: wrap; */
    align-items: flex-start;
    justify-content: center;   
    /* background-color: #295f3f; */
    height: 8.5rem;
}
#section1 .worktable {
    /* width: 95%; */
    /* background-color: red; */
    font-size: 0.9rem;
    
    /* margin:3px; */
}

#section1 .worktable td {
    border: rgba(14, 14, 14,.2) 1px dotted;
    border-spacing: 1px;
    align-items: center;
    text-align: center;      
}

.v {
    font-weight: bold;
}

.X {
    color: #e74c3c;
    font-weight: bold;
}

/* 健保標示 */
.support {
    text-align: left;
    font-size: 0.9rem;
}

#s01 span, #s02 span {
    color: #e74c3c;
    letter-spacing: .3rem;
}

#s03 span {
    color: #295f3f;
    letter-spacing: .3rem;
}

#section1 .job_content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: top;
    padding: 1rem;
    margin:3px;
 
}
#section1 .job_items{
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .3rem;
    color: #333;
}
#section1 .job_list{    
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap:1rem;            
}


#section1 .job_inside{
    /* background-color: red; */
    width: 100%;
    height: 220px;
}

.job_inside li {
    color: #333;
}

.job_inside span{
    margin-bottom: 100rem;
    height: 14px;
}
.job_list ul {
    flex: 1;
}
.job_inside span{
    margin-bottom: 100rem;
    height: 14px;
}

/* 直 */
.vertical-text {
    letter-spacing: .2rem;
    width: 100%;
    height: 100%;
    
    writing-mode: vertical-lr;
    text-orientation: upright;
    line-height: 2.7rem;
  }

/* 002 - 品牌 */
/* ======================================================= */
     /* 合併的主要區塊 */
#combined-section {
    /* height: 100vh;
    height: auto; 
    background-repeat: repeat;            */
    /* 可重複平鋪，若你是無縫波浪圖 */
    /* background-size: 100vw 100%;               */
     /* 保持原圖尺寸 */
    /* background-position: center top;      */
    /* 從上方中央開始對齊 */
    /* background-attachment: fixed;         */
    /* 視窗滾動時背景固定不動 */
    /* position: relative; */
    /* z-index: 1;  */
    /* 確保文字在上層 */


    /* filter: grayscale(25%) brightness(1.1); */
    /* padding: 80px 20px; */
    /* background-color: #111; */
    /* color: white; */
    /* min-height: 100vh; */
    
/* 因為按鈕跑出來 所以用下面 */
    background-color: var(--oil_color_black);
    position: relative;
    text-align: center;
    padding: 80px 0 20px;
    background-image: url('/img/bg/www.webp');
    background-repeat: repeat;
    background-attachment: fixed;   
    background-size: 350px 350px;
    background-position: top left;
    opacity: .9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}
#combined-section::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;          /* ✅ 底部要撐滿 */
    left: 0; right: 0;
    height: 100%;               /* ✅ 高度從父元素繼承 */
    background-image: url('/img/paper/wave.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.8; /* ✅ 背景透明度 */
    z-index: -1;  /* ✅ 在文字下方 */
  }


#combined-section .section-content {
    max-width: 1200px;     /* ✅ 固定最大寬度 */
    width: 100%;           /* ✅ 滿版寬度以便左右置中 */
    margin: 0 auto;        /* ✅ 置中對齊 */
    text-align: center;


  }
/* 主標題 */
.main-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    letter-spacing: 5px;
    position: relative;
    display: inline-block;
    /* color:  var(--oil_color_effect); */
}
.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: 20px;
    color: rgba(255, 255, 255, 0.8);
}
/* 切換按鈕組 */

/* =============================玻璃按鈕============================== */
/* 通用雙按鈕切換樣式 */
.dual-toggle {
    width: fit-content; /* ✅ 只包住內容按鈕，不拉寬 */
    margin: 0 auto;     /* ✅ 水平置中 */
    position: relative;
    display: inline-flex;
    align-items: center;
    border-radius: 999vw;
    overflow: hidden;
    gap: 0;
    padding: 0;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
  }
  .dual-toggle .toggle-btn {
    width: 12rem;
    flex: 0 0 12rem; /* ✅ 關鍵：確保不被壓縮或展開 */
    text-align: center;
    z-index: 1;
    border: none;
    background: transparent;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    text-shadow: 0em 0.3em 0.05em rgba(0, 0, 0, 0.2);
    transition: color 0.4s ease;
  }
  .dual-toggle .toggle-btn.active {
    font-weight: bold;
  }
  .dual-toggle .slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 12rem;         /* ✅ 一定要和上面 toggle-btn 一樣寬 */
    height: 100%;
    background: palevioletred;
    border-radius: 6rem;
    /* transition: color var(--anim--hover-time) var(--anim--hover-ease); */
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 0;
    
  }
  .dual-toggle .toggle-btn:nth-child(2).active ~ .slider {
    transform: translateX(12rem);
  }
  .dual-toggle .toggle-btn:nth-child(1).active ~ .slider {
    transform: translateX(0%);
  }
  
    /* 內容區塊 */
    .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 h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        color: var(--back_color_02);
        /* color: var(--oil_color_black);   */
        text-shadow: 0em 0.25em 0.05em rgba(0, 0, 0, 0.25);
        letter-spacing: 0.2rem;
    }

    .timeline-content p {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--back_color_02);
        /* color: rgba(255, 255, 255, 1); */
        /* color: var(--oil_color_black);   */
        text-shadow: 0em 0.2em 0.2em rgba(0, 0, 0, 0.3);

        margin: 0;
        text-align: left;
        letter-spacing: 0.15rem;
    }

    /* 中藥文化網格樣式 */
    .culture-intro {
        text-align: center;
        margin-top: 1.2rem;
        margin-bottom: 2rem;
    }

    .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: #fff;
        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 - 整合搜尋系統  -- */
/* ======================================================= */

/* ======================================================= */
/* [［［［　鹿　］］］] */
/* ======================================================= */


/* 確保鹿不會超出背景範圍 */
#deer-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -10;
}
/* 鹿的動畫樣式 */
/* 鹿的樣式 */
.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;
}

/* ======================================================= */
/* ##04 - 學堂 */
#section-herb-index{
background-color: var(--oil_color_black);
position: relative;
text-align: center;
padding: 80px 0 20px;
background-image: url('/img/bg/www.webp');
background-repeat: repeat;
background-attachment: fixed;   
background-size: 350px 350px;
background-position: top left;
opacity: .9;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow: hidden;
}

  .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;

    position: relative;
    /* border-radius: 0.8rem; */
    border-radius: 1.8rem; 
    background: linear-gradient(
      -75deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0.05)
    );
    padding: 1.25rem;
    backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    box-shadow:
      inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
      inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
      0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.2),
      0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2),
      0 0 0 0 rgba(255, 255, 255, 1);
    border: none;
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
    overflow: hidden;
  }
  /* ======================= */

  #section-herb-index .index-block:hover {
    backdrop-filter: blur(0.01em);
    -webkit-backdrop-filter: blur(0.01em);
    box-shadow:
      inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
      inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
      0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
      0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.5),
      0 0 0 0 rgba(255, 255, 255, 1);
  }  
  
  #section-herb-index .index-block:active {
    box-shadow:
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
    0 0.125em 0.125em -0.125em rgba(0, 0, 0, 0.2),
    0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2),
    0 0.225em 0.05em 0 rgba(0, 0, 0, 0.05),
    0 0.25em 0 0 rgba(255, 255, 255, 0.75),
    inset 0 0.25em 0.05em 0 rgba(0, 0, 0, 0.15);   
  }

  #section-herb-index .index-block::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    width: calc(100% + var(--border-width));
    height: calc(100% + var(--border-width));
    top: calc(0% - var(--border-width) / 2);
    left: calc(0% - var(--border-width) / 2);
    padding: var(--border-width);
    box-sizing: border-box;
    background:
      conic-gradient(
        from var(--angle-1) at 50% 50%,
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0) 5% 40%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0) 60% 95%,
        rgba(0, 0, 0, 0.5)
      ),
      linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: all var(--anim--hover-time) var(--anim--hover-ease),
      --angle-1 500ms ease;
  }
  
  /* ======================= */
  .index-block h3 {
    letter-spacing: 0.1em;      /* 略微負間距，與按鈕一致 */
    font-weight: 500;             
    color: var(--oil_paper_color); 
    /* 中度字重 */
    font-size: 1.1rem;            /* 略大於一般文字 */
     /*color: rgba(50, 50, 50, 1);   深灰色文字 */
    text-shadow: 0em 0.25em 0.05em rgba(0, 0, 0, 0.2); /* 柔和陰影 */
    margin-bottom: 0.2rem;
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
    margin-bottom: 1rem;
  }
  .index-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    letter-spacing: -0.05em;
    font-weight: 400;
    font-size: 1rem;
  }
  .index-block li a {
    display: block;
    
    margin-top: .1rem;
    color: var(--oil_paper_color); 
    line-height: 2.5;
    text-decoration: none;
    letter-spacing: .06em;
    font-weight: 500;
    text-shadow: 0em 0.3em 0.05em rgba(0, 0, 0, 0.2);
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
    opacity: .8;
  }

  .index-block li a:hover {
    color: palevioletred;
    /* color: var(--oil_color_black); */
    border-radius: 0.75rem;
    text-shadow: 0.025em 0.025em 0.025em rgba(0, 0, 0, 0.12);
  }
  /* 收合動畫 */
  .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: -8px;
    top: 4px;
    transition: transform 0.3s ease;
  }
  .index-block:hover .hover-expand::after {
    transform: rotate(180deg);
  }
/* ================== */
/*  radio 按 鈕 ================== */



/* ======================================================= */
/* ##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) {
    /* #001 */
    .store_info {
        flex-direction: column;      /* 改為直排 */
        align-items: center;
        height: auto;                /* 高度隨內容調整 */
        padding: 2rem 1rem;
      }
    
      .info {
        max-width: 90vw;
        width: 100%;
        height: auto;
      }
    
      .job_inside {
        height: auto;
      }
    
      .vertical-text {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        line-height: 1.8rem;
      }
    /* ##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) {
/* 001 */
#section1 .job_inside {
    height: auto !important;         /* ✅ 讓內容自動撐高 */
    overflow: visible !important;
  }

  #section1 .vertical-text {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    line-height: 1.8rem;
    display: block;
  }

  #section1 .job_list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  #section1 .job_list ul {
    width: 100%;
  }

  #section1 .job_list li {
    font-size: 1rem;
    padding-left: 0.5rem;
  }

   /*  */
/* 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; /* 調整垂直位置 */
    }
    .dual-toggle .toggle-btn {
      width: 50vw;
      flex: 1 1 50vw; /* 自動縮放 */
    }
  
    .dual-toggle .slider {
      width: 50vw;
    }
    /*##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) {
    /* 001 */
    .info {
        padding: 1rem;
      }
    
      .txt h2 {
        font-size: 1.2rem;
      }
    
      .job_items {
        font-size: 1rem;
      }
    
      .job_list ul li {
        font-size: 0.95rem;
      }
      #section1 .vertical-text {
        overflow-x: auto;
        max-width: 100%;
      }
    
      #section1 .job_list {
        flex-wrap: nowrap;
      }
      /* 002 */
        #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;
    }
    }
/* for 智慧型裝置 */
@media (hover: none) {
      .index-block .expand-list {
        display: none;
      }
      .index-block .expand-list.show {
        display: block !important;
      }
    }
    