@charset "utf-8";
/* ==========================================================================
   home.css — 首頁區塊（嚴格對照定稿效果圖 PSD 座標）
   ========================================================================== */

/* ---------- 1. Hero 首屏（807px · 兩屏自動輪播） ----------
   ① 品牌主打（原始定稿金調） ② 生產基地（江蘇廠區實景）
   ② 生產基地（江蘇廠區實景 + 暖黃蒙層）                                        */
.hero {
  position: relative;
  height: 807px;
  overflow: hidden;
  background: #F8ECD3;
}

.hero__viewport { position: absolute; inset: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  /* 首屏不淡入（避免首屏文字閃一下），JS 初始化後才開啟切換過渡 */
}

.hero.is-anim .hero__slide {
  transition: opacity 1s var(--ease), visibility 1s var(--ease);
}

.hero__slide.is-on { opacity: 1; visibility: visible; }

/* ① 品牌主打：背景圖自 PSD「圖片調色」層導出 */
.hero__slide--main {
  background: #F8ECD3 url("../img/hero-bg.jpg") center center / cover no-repeat;
}

/* ② 中科41週年生日會（整圖直出，文字已烙在圖上）；左對齊保左側文字，窄屏裁右側 */
.hero__slide--birthday {
  background: #F8ECD3 url("../img/hero-birthday.jpg") left center / cover no-repeat;
}

/* ③ 國際靈芝文化節（深藍舞台，整圖直出） */
.hero__slide--festival {
  background: #12233E url("../img/hero-festival.jpg") center center / cover no-repeat;
}

/* ④ 健康行業踐行者（產品貨架，整圖直出）；左側文案優先，窄屏時向左對齊裁右側 */
.hero__slide--shelf {
  background: #F3E4C9 url("../img/hero-shelf.jpg") left center / cover no-repeat;
}

/* ⑤ 港島巴士實拍：暖金底，左側文字版式沿用第①屏 */
.hero__slide--hkbus {
  background: #F6E7C6 url("../img/hero-bus.jpg") center center / cover no-repeat;
}

/* ② 生產基地：廠區實景 + 暖金黃蒙層，文字改深色融入暖調 */
.hero__slide--plant {
  background: #F0DFB8 url("../img/hero-plant.jpg") center center / cover no-repeat;
}

/* 生產基地屏：不加蒙層，文字面板用白色磨砂玻璃保證可讀 */
.hero__slide--plant .hero__copy {
  max-width: 640px;
  background: rgba(197, 15, 27, .93);
  border: none;
  border-radius: 14px;
  padding: 34px 38px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px -20px rgba(158, 10, 12, .5);
}

/* 首屏左右切換箭頭 */
.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  opacity: .78;
  transition: opacity .25s ease, background .25s ease, border-color .25s ease;
}

.hero__nav:hover {
  opacity: 1;
  background: rgba(255, 255, 255, .3);
  border-color: rgba(255, 255, 255, .85);
}

.hero__nav--prev { left: 26px; }
.hero__nav--next { right: 26px; }

.hero__nav svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* 生產基地屏（淺金）箭頭配色 */
.hero:has(.hero__slide--plant.is-on) .hero__nav {
  border-color: rgba(120, 95, 50, .4);
  background: rgba(255, 255, 255, .38);
  color: #3a3226;
}

.hero:has(.hero__slide--plant.is-on) .hero__nav:hover {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(120, 95, 50, .8);
}




.hero__in {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__art { display: none; }


.hero__copy { max-width: 540px; }

.hero h1 {
  font-family: var(--serif);
  font-size: 76px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--red-deep);
}

.hero__sub {
  margin-top: 44px;
  max-width: 480px;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: .02em;
  color: #33363C;
}

.hero__btns {
  margin-top: 100px;
  display: flex;
  gap: 13px;
}

.hero__btns .btn { min-width: 133px; }

/* 屏內小標籤（第二、三屏用） */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .24em;
  color: var(--gold-lt);
}

.hero__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: .8;
}

.hero__eyebrow--red { color: var(--red); }

/* 第二屏紅底面板：文字全部反白 */
.hero__copy--light h1 { color: #fff; }

.hero__copy--light .hero__sub { color: rgba(255, 255, 255, .9); }

.hero__slide--plant .hero__eyebrow { color: rgba(255, 255, 255, .85); }

/* 紅底上按鈕重配：主按鈕白底紅字，次按鈕白色描邊透明底 */
.hero__slide--plant .btn--red {
  background: #fff;
  color: var(--red-dk);
}
.hero__slide--plant .btn--red:hover {
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 24px -8px rgba(90, 8, 12, .45);
}

.hero__slide--plant .btn--ghost {
  border-color: rgba(255, 255, 255, .75);
  background: transparent;
  color: #fff;
}
.hero__slide--plant .btn--ghost:hover {
  background: rgba(255, 255, 255, .16);
  border-color: #fff;
  transform: translateY(-2px);
}

.hero__slide--plant .hero__btns { margin-top: 34px; }

/* ②-⑥ 照片屏：純圖展示 —— 圖片完整顯示（contain），同一張圖模糊壓暗鋪底填空 */
.hero__slide--photo {
  background-color: #171310;
  background-size: cover;
  background-position: center;
}

/* 底層：同一張 banner 圖放大模糊 + 壓暗，消除 contain 留白，讓畫面滿屏 */
.hero__slide--photo::before {
  content: "";
  position: absolute;
  inset: -60px;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(30px) brightness(.62) saturate(1.12);
  z-index: 1;
}

/* 上層：完整圖片，不裁切 */
.hero__slide--photo .hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}

.hero__slide--photo .hero__in,
.hero__slide--poster .hero__in { z-index: 3; }

.hero__slide--photo .hero__copy,
.hero__slide--poster .hero__copy {
  max-width: 560px;
  background: rgba(197, 15, 27, .92);
  border: none;
  border-radius: 14px;
  padding: 32px 36px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px -20px rgba(158, 10, 12, .55);
}

.hero__slide--photo h1,
.hero__slide--poster h1 {
  font-size: 52px;
  color: #fff;
}

.hero__slide--photo .hero__sub,
.hero__slide--poster .hero__sub {
  margin-top: 18px;
  color: rgba(255, 255, 255, .92);
}

.hero__slide--photo .hero__eyebrow,
.hero__slide--poster .hero__eyebrow { color: rgba(255, 255, 255, .85); }

.hero__slide--photo .hero__btns,
.hero__slide--poster .hero__btns { margin-top: 28px; }

/* 紅面板上按鈕：主鍵白底紅字，次鍵白描邊 */
.hero__slide--photo .btn--red,
.hero__slide--poster .btn--red {
  background: #fff;
  color: var(--red-dk);
}
.hero__slide--photo .btn--red:hover,
.hero__slide--poster .btn--red:hover {
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 24px -8px rgba(90, 8, 12, .45);
}
.hero__slide--photo .btn--ghost,
.hero__slide--poster .btn--ghost {
  border-color: rgba(255, 255, 255, .75);
  background: transparent;
  color: #fff;
}
.hero__slide--photo .btn--ghost:hover,
.hero__slide--poster .btn--ghost:hover {
  background: rgba(255, 255, 255, .16);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ④ 豎版海報屏：米金漸變底，海報等高靠右，文字面板靠左 */
.hero__slide--poster {
  background: linear-gradient(100deg, #F6EAD0 0%, #EFDDB6 46%, #E8CF9E 100%);
}

.hero__slide--poster .hero__poster {
  position: absolute;
  top: 0;
  right: 7%;
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 40px rgba(120, 82, 20, .28));
}

/* 照片/海報屏時箭頭與指示點改白色系 */
.hero:has(.hero__slide--photo.is-on) .hero__nav,
.hero:has(.hero__slide--poster.is-on) .hero__nav,
.hero:has(.hero__slide--festival.is-on) .hero__nav {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .16);
  color: #fff;
}
.hero:has(.hero__slide--photo.is-on) .hero__nav:hover,
.hero:has(.hero__slide--poster.is-on) .hero__nav:hover {
  background: rgba(255, 255, 255, .32);
  border-color: rgba(255, 255, 255, .85);
}

.hero:has(.hero__slide--photo.is-on) .hero__dots button,
.hero:has(.hero__slide--poster.is-on) .hero__dots button { background: rgba(255, 255, 255, .3); }
.hero:has(.hero__slide--photo.is-on) .hero__dots b,
.hero:has(.hero__slide--poster.is-on) .hero__dots b { color: rgba(255, 255, 255, .55); }
.hero:has(.hero__slide--photo.is-on) .hero__dots button.is-on b,
.hero:has(.hero__slide--poster.is-on) .hero__dots button.is-on b { color: #fff; }
.hero:has(.hero__slide--photo.is-on) .hero__dots button.is-on::after,
.hero:has(.hero__slide--poster.is-on) .hero__dots button.is-on::after { background: #fff; }

/* 深色屏工藝標籤 */
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero__chips li {
  padding: 7px 15px;
  font-size: 14px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .88);
  border: 1px solid rgba(227, 178, 104, .42);
  border-radius: 100px;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(2px);
}

/* 第三屏：產品列 + 文字，按鈕間距收一點 */



@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 1b. 首屏指示器 ---------- */
.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero__dots button {
  position: relative;
  width: 46px;
  height: 2px;
  padding: 0;
  background: rgba(34, 37, 42, .22);
  overflow: hidden;
  transition: background .4s var(--ease);
}

.hero__dots button.is-on { background: rgba(34, 37, 42, .28); }

.hero__dots button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}

.hero__dots button.is-on::after { transform: scaleX(1); transition: transform 6s linear; }

.hero__dots b {
  position: absolute;
  left: 0;
  top: -20px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .12em;
  color: rgba(34, 37, 42, .45);
  transition: color .4s var(--ease);
}

.hero__dots button.is-on b { color: var(--red); }

/* 不依賴 JS 的兜底：用 :has() 判斷當前屏是否為深色 */
.hero:has(.hero__slide--plant.is-on) .hero__dots button { background: rgba(255, 255, 255, .28); }
.hero:has(.hero__slide--plant.is-on) .hero__dots b { color: rgba(255, 255, 255, .5); }
.hero:has(.hero__slide--plant.is-on) .hero__dots button.is-on b { color: var(--gold-lt); }
.hero:has(.hero__slide--plant.is-on) .hero__dots button.is-on::after { background: var(--gold-lt); }


/* 金色 / 白描邊按鈕（深色屏專用） */
.btn--gold {
  background: var(--gold);
  color: #221703;
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(215, 153, 68, .6);
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ---------- 2. 公司介紹 + 全球佈局 ---------- */
.about { padding: 89px 0 99px; background: #fff; }

.about__grid {
  display: grid;
  grid-template-columns: 700px 1fr;
  gap: 62px;
  align-items: start;
}

/* 圖片輪播 */
.about__media {
  position: relative;
  height: 496px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 44px -18px rgba(48, 34, 14, .28);
  background: #EEE9E1;
}

.about__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s var(--ease), visibility .9s;
}

.about__slide.is-on { opacity: 1; visibility: visible; }

.about__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 7s linear;
}

.about__slide.is-on img { transform: scale(1.09); }

.about__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.about__dots button {
  width: 29px;
  height: 4px;
  background: rgba(255, 255, 255, .55);
  transition: background .3s var(--ease);
}

.about__dots button.is-on { background: var(--red); }

/* 文字 */
.about__copy { padding-top: 30px; }

.about__copy .sec-head__title { margin-top: 20px; }

/* 標題為公司全名，字距收緊以確保單行 */
.about__title { letter-spacing: -.01em; }

.about__text {
  margin-top: 38px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0;
  color: #3F4247;
  text-align: justify;
  text-justify: inter-ideograph;
}

.about__copy .tlink { margin-top: 44px; }

/* 全球佈局 4 卡 */
.city { margin-top: 51px; }

.city__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
}

.city__card {
  position: relative;
  height: 108px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #B7131D;
  box-shadow: 0 8px 20px -12px rgba(150, 10, 20, .6);
}

.city__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.35) contrast(1.05);
  opacity: .9;
  z-index: -2;
  transition: transform .8s var(--ease), opacity .5s;
}

.city__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(222, 52, 58, .58), rgba(198, 22, 34, .72));
  z-index: -1;
}

.city__card span {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .16em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(120, 0, 8, .45);
}

.city__card:hover img { transform: scale(1.08); opacity: .72; }

/* ---------- 3. 熱銷產品 ---------- */
.best {
  /* 底圖 = 图层115（米色 + 底部波浪，卡片处镂空）＋ PSD 裡 3% 攝影圖 */
  background: #FCF7F1 url("../img/bg-best.jpg") center bottom / 100% 100% no-repeat;
  padding: 89px 0 124px;
}

.best__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

.pcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #F1ECE3;
  border-radius: 6px;
  overflow: hidden;
  /* 供整卡點擊的覆蓋層定位用 */
  position: relative;
  cursor: pointer;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease);
}

.pcard:hover,
.pcard:focus-within {
  box-shadow: 0 22px 44px -20px rgba(48, 34, 14, .26);
  transform: translateY(-4px);
  border-color: rgba(220, 18, 32, .18);
}

.pcard__media {
  position: relative;
  height: 483px;
  display: grid;
  place-items: center;
  /* 頂部留出角標帶：新品標籤貼角，商品圖從標籤下方開始，互不遮擋 */
  padding: 56px 14px 0;
}

/* 用固定圖框 + object-fit: contain 控制，豎長圖也不會溢出圖框把文字區擠掉 */
.pcard__media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .6s var(--ease);
}

.pcard:hover .pcard__media img { transform: scale(1.045); }

.pcard__badge {
  position: absolute;
  left: 15px;
  top: 14px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 3px;
  font-size: 14px;
  letter-spacing: .04em;
  color: #fff;
  background: var(--red);
}

.pcard__badge--new { background: #C8873C; }
.pcard__badge svg { width: 13px; height: 13px; }

.pcard__body {
  padding: 0 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pcard__series {
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--red);
}

.pcard__name {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .02em;
  color: var(--ink-2);
}

.pcard__name a:hover { color: var(--red); }

/* 整卡可点：把商品名链接的伪元素拉伸铺满卡片。
   比给 article 套一层 <a> 更稳——不会因块级链接包住块级元素而产生
   语义与光标问题，也保住文字仍可正常选中。
   层次：覆盖层 z-index:1，购物车按钮 z-index:2 压在它上面，
   因此点按钮不会误触跳转 */
.pcard__name a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pcard__price {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ink);
}

.pcard__price .cur {
  font-size: 15px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .02em;
}

.pcard__price .num {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .02em;
}

.pcard__price .from {
  font-size: 14px;
  color: var(--text-2);
  margin-left: 2px;
}

.pcard__cart {
  margin-top: auto;
  height: 47px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  letter-spacing: .12em;
  border-radius: 2px;
  /* 压在整卡覆盖层之上，保证按钮自身可点 */
  position: relative;
  z-index: 2;
  transition: background .3s var(--ease);
}

.pcard__body .pcard__price + .pcard__cart { margin-top: 20px; }

/* 滑過整張卡時，按鈕一併轉深色——讓「可點」的信號集中在動作按鈕上，
   不必等指標真的移到按鈕上才回饋 */
.pcard:hover .pcard__cart,
.pcard:focus-within .pcard__cart,
.pcard__cart:hover { background: var(--red-dk); }

/* ---------- 4. 個性化選購（7 卡橫向滑動） ---------- */
.cats { padding: 94px 0 0; background: #fff; }

.cats__viewport { overflow: hidden; }

.cats__track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.cats__track::-webkit-scrollbar { display: none; }

.ccard {
  flex: 0 0 calc((100% - 78px) / 4);
  /* 比例對齊參考圖：卡寬 350 / 卡高 528 */
  aspect-ratio: 350 / 528;
  padding: 27px 27px 30px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #EAEAEA;
  scroll-snap-align: start;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  cursor: pointer;
}

.ccard__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #F2EEE7;
}

.ccard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.ccard:hover .ccard__media img { transform: scale(1.05); }

.ccard__num {
  margin: 25px 0 0;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: .1em;
  color: #A2A2A2;
}

.ccard__num em {
  font-style: normal;
  color: var(--ink-2);
}

.ccard__title {
  margin: 23px 0 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--red);
  line-height: 1.35;
}

.ccard__desc {
  margin: 19px 0 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: #989898;
}

.ccard__link {
  margin: 26px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .08em;
  color: #333333;
  width: max-content;
}

.ccard__link svg { width: 13px; height: 13px; color: var(--red); }

/* 無配圖的分類卡：米金底 + 大號編號，作為設計佔位（不用虛線框） */
.ccard__media--ph {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #FBF7F0 0%, #F4EBE3 52%, #F8EFE9 100%);
  position: relative;
}
.ccard__media--ph::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(190, 150, 100, .22);
}
.ccard__media--ph span {
  font-family: var(--serif);
  font-size: 76px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(197, 15, 27, .18);
  line-height: 1;
}

/* 佔位卡（圖片待補）：不顯示 hover 高亮，圖框用虛線提示待補 */
.ccard--empty { cursor: default; }
.ccard--empty .ccard__media {
  background: #FAF8F4;
  border: 1px dashed #E2DCD2;
}
.ccard--empty .ccard__link { visibility: hidden; }

/* 選中（紅底） */
.ccard.is-on {
  background: var(--red);
  border-color: var(--red);
}

.ccard.is-on .ccard__num { color: rgba(255, 255, 255, .55); }
.ccard.is-on .ccard__num em { color: rgba(255, 255, 255, .88); }
.ccard.is-on .ccard__title,
.ccard.is-on .ccard__desc,
.ccard.is-on .ccard__link { color: #fff; }
.ccard.is-on .ccard__link svg { color: #fff; }

/* 進度條 + 箭頭 */
.cats__foot {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}

.cats__bar {
  position: relative;
  flex: 1;
  height: 3px;
  background: #EFECE7;
  overflow: hidden;
}

.cats__bar i {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 25%;
  background: var(--red);
  transition: width .15s linear, transform .15s linear;
}

.cats__nav { display: flex; gap: 10px; }

.cats__nav button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: all .3s var(--ease);
}

.cats__nav button:hover { background: var(--red); border-color: var(--red); color: #fff; }
.cats__nav button:disabled { opacity: .35; cursor: default; }
.cats__nav button:disabled:hover { background: none; border-color: var(--line); color: var(--ink-2); }
.cats__nav svg { width: 13px; height: 13px; }

/* ---------- 5. 重點推薦 ---------- */
.selection { padding-top: 108px; background: #fff; }

.selection__band {
  /* 背景 = 图层22 米色底 + PSD 裡 4% multiply 攝影圖（依原混合參數合成） */
  background: #F3EEE8 url("../img/bg-selection.jpg") center center / cover no-repeat;
  padding: 109px 0 117px;
}

.rec__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.rcard {
  position: relative;
  height: 302px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 57px;
  color: #333;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 18px 44px -26px rgba(62, 44, 18, .26), 0 2px 8px rgba(62, 44, 18, .05);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}

.rcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -30px rgba(62, 44, 18, .34), 0 2px 8px rgba(62, 44, 18, .05);
}

/* 舊版金 / 紅底修飾類已停用，統一回白卡 */
.rcard--gold,
.rcard--red { background: #fff; }

/* 右側產品托盤：白卡上隱形，僅保留定位 */
.rcard__plate {
  position: absolute;
  right: 41px;
  top: 41px;
  width: 227px;
  height: 227px;
  display: grid;
  place-items: center;
  background: none;
  box-shadow: none;
}

.rcard__plate img {
  max-width: 216px;
  max-height: 207px;
  width: auto;
  object-fit: contain;
  transition: transform .6s var(--ease);
}

.rcard:hover .rcard__plate img { transform: scale(1.05); }

.rcard__title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.2;
  color: var(--red);
}

.rcard__desc {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .01em;
  color: #333;
  max-width: 300px;
}

.rcard .tlink {
  margin-top: 26px;
  color: var(--red);
  width: max-content;
}

.rcard .tlink::after { opacity: .85; }

/* 整卡可點：標題連結拉伸覆蓋整張卡，卡上任何位置（含產品圖、空白）都能點進詳情 */
.rcard { cursor: pointer; }
.rcard__stretch {
  color: inherit;
  text-decoration: none;
}
.rcard__stretch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}
/* 卡內文字與圖片保持自動層級（未定位），讓拉伸層穩定壓在其上接住點擊 */
.rcard__title,
.rcard__desc { position: static; }
.rcard__plate { z-index: auto; }
/* 「瞭解詳情」按鈕獨立置頂，自身可點並保留懸停反饋 */
.rcard .tlink { position: relative; z-index: 3; }

/* ---------- 5b. 推薦分類切換：大標題作切換 ---------- */
/* 兩個標題字級完全一致（與站內其他區塊大標題同級），
   只靠「顏色 + 紅底線」區分選中與否 —— 不做字級差，
   避免一大小兩塊並排的失衡感，也避免切換時字塊縮放帶動整行重排 */
.rec-switch {
  --sw: 48px;                /* 標題字級 = sec-head__title */
  display: flex;
  align-items: flex-end;
  gap: 26px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.rec-switch__btn {
  position: relative;
  padding: 0 0 12px;
  border: 0;
  background: none;
  font-family: var(--serif);
  font-size: var(--sw);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  color: #A29683;            /* 未選中：暖灰，米底約 2.6:1，看得出字形但明確次於選中 */
  cursor: pointer;
  white-space: nowrap;
  transition: color .3s var(--ease);
}

/* 底線：未選中為 1px 極淡細線（暗示可點），選中為 3px 紅線，
   同一條偽元素只改顏色與粗細，高度變化向上長，不影響基線 */
.rec-switch__btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #DED6C6;
  transition: height .28s var(--ease), background .28s var(--ease);
}

.rec-switch__btn:hover { color: #6E6459; }
.rec-switch__btn:hover::after { background: #C9BFAE; }

.rec-switch__btn.is-on { color: var(--ink-2); }

.rec-switch__btn.is-on::after {
  height: 3px;
  background: var(--red);
}

.rec-switch__btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 6px;
}

/* 竖分線：細淡，落在文字視覺中線（抵掉按鈕 12px 底部內距） */
.rec-switch__sep {
  align-self: flex-end;
  width: 1px;
  height: calc(var(--sw) * .42);
  margin-bottom: calc(12px + var(--sw) * .34);
  background: #D2C9B8;
  flex: 0 0 1px;
}

/* 面板切換：僅顯示當前項，淡入不影響佈局高度 */
.rec__panel { display: none; }

.rec__panel.is-on {
  display: block;
  animation: recFade .30s var(--ease);
}

@keyframes recFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 商品名較長（如「蝦紅素（升級版）」）：收一檔字號與字距，
   8 字在 29px 下約 240px，仍在文字欄（卡寬 - 左內距 - 托盤 285px）內，
   不會壓到右側產品圖；短標題（膚敏清／保肝素／創新番茄紅素）維持 36px 原字號 */
.rcard__title--long {
  font-size: 29px;
  letter-spacing: 0;
}

/* ---------- 6. 公司新聞 · 行業資訊 ---------- */
.news { padding: 90px 0 85px; background: #fff; }

.news__grid {
  display: grid;
  grid-template-columns: 1.09fr 1fr .94fr;
  gap: 16px;
  /* 拉伸對齊：卡片陰影框與行業動態面板同高、上下齊平 */
  align-items: stretch;
}

.ncard {
  position: relative;
  display: flex;
  flex-direction: column;
  /* 內留白：圖片不頂邊，文字左右有留白 */
  padding: 22px 22px 24px;
  background: #fff;
  border-radius: 4px;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}

/* 靠近（hover）時浮起並帶陰影 */
.ncard:hover {
  box-shadow: 0 22px 44px -20px rgba(48, 34, 14, .26);
  transform: translateY(-2px);
}

.ncard__media {
  height: 289px;
  border-radius: 4px;
  overflow: hidden;
  background: #F2EEE7;
  flex-shrink: 0;
}

.ncard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.ncard:hover .ncard__media img { transform: scale(1.04); }

.ncard__date {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--text-3);
}

.ncard__title {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: .02em;
  color: var(--ink-2);
  transition: color .3s var(--ease);
}

/* 靠近整張卡片即變紅，不必精準移到文字上 */
.ncard:hover .ncard__title { color: var(--red); }
.ncard__title a:hover { color: var(--red); }

.ncard__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-2);
  text-align: justify;
  /* 撐滿剩餘高度，讓卡片底部與面板齊平 */
  flex: 1 1 auto;
}

/* 行業動態面板 */
.npanel {
  /* 高度交給 grid stretch 統一，與左側新聞卡上下齊平 */
  min-height: 478px;
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 4px;
  box-shadow: 0 14px 40px -22px rgba(48, 34, 14, .3);
  padding: 30px 30px 8px;
  display: flex;
  flex-direction: column;
}

.npanel__tag {
  display: inline-grid;
  place-items: center;
  width: max-content;
  height: 40px;
  padding: 0 22px;
  border-radius: 20px;
  background: #1B1B1B;
  color: #fff;
  font-size: 14px;
  letter-spacing: .14em;
}

.npanel ul { margin-top: 20px; flex: 1; overflow: hidden; }

.npanel li {
  padding: 14px 0;
  border-bottom: 1px solid #EFEFEF;
}

.npanel li:last-child { border-bottom: 0; }

.npanel time {
  display: block;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--text-3);
  margin-bottom: 8px;
}

.npanel h4 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--ink-2);
  transition: color .3s var(--ease);
}

/* 靠近單條動態即變紅 */
.npanel li:hover h4 { color: var(--red); }
.npanel a:hover h4 { color: var(--red); }

/* ---------- 7. 響應式 ---------- */
@media (max-width: 1500px) {
  .hero h1 { font-size: 68px; }
  .hero { height: 720px; }
    .about__grid { grid-template-columns: 590px 1fr; gap: 46px; }
  .about__media { height: 420px; }
  .pcard__media { height: 420px; }
  .ccard { padding: 22px 22px 26px; }
  .ccard__title { font-size: 21px; }
  .ccard__desc { font-size: 14px; }
  .rcard { padding: 0 44px; }
  .rcard__title--long { font-size: 27px; }
  .rec-switch { --sw: 44px; gap: 22px; }
  .rcard__title { font-size: 32px; }
  .rcard__plate { width: 190px; height: 190px; right: 34px; }
  .rcard__plate img { max-width: 174px; max-height: 172px; }
  .npanel { min-height: 440px; }
  .ncard__media { height: 250px; }
}

@media (max-width: 1240px) {
  .rec-switch { --sw: 40px; gap: 20px; }
  .hero { height: 640px; }
  .hero__slide--main { background-position: 62% center; }
  /* ⑤ 巴士屏：中窄屏時底圖偏左保巴士完整，文字加磨砂面板保可讀 */
  .hero__slide--hkbus { background-position: 30% center; }
  .hero__slide--hkbus .hero__copy {
    background: rgba(252, 246, 232, .82);
    border-radius: 14px;
    padding: 28px 30px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 18px 44px -22px rgba(120, 82, 20, .35);
  }

  .hero h1 { font-size: 58px; }
  .hero__sub { font-size: 16px; margin-top: 30px; }
  .hero__btns { margin-top: 64px; }
  .about__grid { grid-template-columns: 480px 1fr; gap: 34px; }
  .about__media { height: 360px; }
  .about__text { font-size: 15px; line-height: 1.85; margin-top: 26px; }
  .best__grid { gap: 24px 18px; }
  .pcard__media { height: 360px; padding: 30px 12px 0; }
  .pcard__name { font-size: 21px; }
  .ccard { flex-basis: calc((100% - 52px) / 3); padding: 20px 20px 24px; }
  .ccard__num { font-size: 14px; }
  .ccard__title { font-size: 20px; }
  .rcard { height: 270px; padding: 0 34px; }
  .rcard__title--long { font-size: 24px; }
  .rcard__title { font-size: 27px; }
  .rcard__desc { font-size: 15px; margin-top: 10px; }
  .rcard__plate { width: 158px; height: 158px; right: 26px; top: 34px; }
  .rcard__plate img { max-width: 144px; max-height: 140px; }
  .news__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .npanel { grid-column: 1 / -1; height: auto; }
  .npanel ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
}

@media (max-width: 1024px) {
  .rec-switch { --sw: 34px; gap: 16px; }
  .hero { height: 560px; }
  .hero__slide--main { background-position: 68% center; }
    
  .hero__chips { margin-top: 22px; }
  .hero h1 { font-size: 46px; }
  .hero__sub { font-size: 15px; max-width: 380px; }
  .about__grid { grid-template-columns: 1fr; gap: 30px; }
  .about__media { height: 380px; }
  .about__copy { padding-top: 0; }
  .city__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .best__grid { grid-template-columns: 1fr 1fr; }
  .ccard { flex-basis: calc((100% - 26px) / 2); }
  .rec__grid { grid-template-columns: 1fr; gap: 16px; }
  .rcard { height: 230px; }
  .news__grid { grid-template-columns: 1fr; gap: 30px; }
  .npanel ul { grid-template-columns: 1fr; }
  .ncard__media { height: 240px; }
}

@media (max-width: 720px) {
  /* 手機端：輪播改為逐屏顯示（高度隨內容），第①屏文字在上、產品圖在下 */
  .hero { height: auto; }
  .hero__viewport { position: static; }
  .hero__slide { position: relative; inset: auto; display: none; }
  .hero__slide.is-on { display: block; }
  .hero.is-anim .hero__slide.is-on { animation: heroFade .6s var(--ease); }
  /* 第①③屏改 flex 縱排：文字在上、圖在下（需高於上面的 display:block） */
  .hero__slide--main.is-on,
  

  /* 只在啟用時才 flex（否則會蓋掉上面的 display:none，三屏疊在一起） */
  .hero__slide--main,
      .hero__in { order: 1; display: block; height: auto; }
  .hero__art {
    order: 2;
    display: block;
    position: static;
    width: 78%;
    max-width: 300px;
    height: auto;
    margin: 18px auto 0;
    filter: drop-shadow(0 16px 24px rgba(120, 82, 20, .2));
  }

  .hero__art img { display: block; width: 100%; height: auto; }

  /* ② 生產基地 */
  .hero__slide--plant { padding: 44px 0 54px; background-position: 72% center; }
  .hero__slide--plant .hero__copy { padding: 24px 22px; border-radius: 12px; }

  /* ②-⑥ 照片屏 / 海報屏：圖作背景鋪滿，面板在上 */
  .hero__slide--photo { padding: 52px 0 60px; min-height: 440px; }

  /* ③④ 整圖直出屏：手機端按原圖比例鋪滿 */
  .hero__slide--birthday,
  .hero__slide--festival,
  .hero__slide--shelf { aspect-ratio: 1920 / 807; }
  .hero__slide--photo .hero__copy,
  .hero__slide--poster .hero__copy { padding: 24px 22px; border-radius: 12px; }
  .hero__slide--photo h1,
  .hero__slide--poster h1 { font-size: 34px; }

  /* ④ 豎版海報（手機）：文字在上，海報縮寬居中在下 */
  .hero__slide--poster { padding: 52px 0 40px; }
  .hero__slide--poster .hero__poster {
    position: static;
    display: block;
    height: auto;
    width: 74%;
    max-width: 300px;
    margin: 22px auto 0;
  }
  .hero__chips { display: none; }
  .hero__eyebrow { margin-bottom: 16px; font-size: 14px; letter-spacing: .18em; }

    

  .hero__dots { bottom: 14px; gap: 8px; }
  .hero__dots button { width: 30px; }
  .hero__dots b { display: none; }
  .hero__nav { width: 38px; height: 38px; opacity: .92; }
  .hero__nav svg { width: 17px; height: 17px; }
  .hero__nav--prev { left: 10px; }
  .hero__nav--next { right: 10px; }

  .hero h1 { font-size: 34px; letter-spacing: .02em; line-height: 1.15; }
  .hero__sub { margin-top: 18px; font-size: 14px; line-height: 1.75; max-width: 100%; }
  .hero__sub br { display: none; }
  .hero__btns { margin-top: 24px; gap: 10px; }
  .hero__btns .btn { min-width: 108px; height: 44px; }
  .about { padding: 46px 0 54px; }
  .about__media { height: 240px; }
  .about__text { font-size: 14px; line-height: 1.9; margin-top: 20px; }
  .about__copy .tlink { margin-top: 26px; }
  .city { margin-top: 30px; }
  .city__card { height: 84px; }
  .city__card span { font-size: 14px; letter-spacing: .08em; }
  .best { padding: 46px 0 54px; }
  .best__grid { grid-template-columns: 1fr; gap: 16px; }
  .pcard__media { height: 320px; padding: 20px 12px 0; }
  .pcard__name { font-size: 20px; }
  .cats { padding: 46px 0 0; }
  .ccard { flex-basis: 76%; height: auto; padding: 18px 18px 22px; }
  .ccard__num { margin-top: 18px; font-size: 14px; }
  .ccard__title { margin-top: 16px; font-size: 19px; }
  .ccard__desc { margin-top: 14px; font-size: 14px; }
  .ccard__link { margin-top: 22px; }
  .cats__foot { margin-top: 20px; gap: 14px; }
  .cats__nav button { width: 32px; height: 32px; }
  .selection { padding-top: 50px; }
  .selection__band { padding: 46px 0 54px; }
  .rcard { height: auto; padding: 26px 22px; }
  .rcard__title--long { font-size: 22px; }
  .rec-switch { --sw: 27px; gap: 14px; margin-top: 14px; }
  .rec-switch__btn { padding-bottom: 8px; }
  .rec-switch__sep { margin-bottom: calc(8px + var(--sw) * .34); }
  .rcard__title { font-size: 24px; }
  .rcard__desc { font-size: 14px; max-width: 60%; }
  .rcard__plate { width: 110px; height: 110px; right: 18px; top: 24px; }
  .rcard__plate img { max-width: 100px; max-height: 96px; }
  .rcard .tlink { margin-top: 18px; }
  .news { padding: 46px 0 54px; }
  .ncard__media { height: 200px; }
  .ncard__title { font-size: 19px; }
  .npanel { padding: 20px 18px 4px; }
  .npanel h4 { font-size: 15px; }
}


/* ---------- 第 2 屏：孢子油賣點清單 ---------- */
.hero__copy--spore .hero__points {
  margin-top: 30px;
  display: grid;
  gap: 12px;
}

.hero__copy--spore .hero__points li {
  position: relative;
  padding-left: 30px;
  /* 與第一屏副標 .hero__sub 完全一致：繼承 --sans，不加粗 */
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.55;
  color: #33363C;
}

/* 勾選圖標：純 CSS 畫，不用圖片也不吃字體 */
.hero__copy--spore .hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
}

.hero__copy--spore .hero__points li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.hero__copy--spore .hero__btns { margin-top: 40px; }

@media (max-width: 720px) {
  .hero__copy--spore .hero__points { margin-top: 20px; gap: 9px; }
  .hero__copy--spore .hero__points li { font-size: 16px; padding-left: 25px; letter-spacing: .02em; }
  .hero__copy--spore .hero__points li::before { width: 15px; height: 15px; top: 4px; }
  .hero__copy--spore .hero__points li::after { left: 5px; top: 8px; width: 5px; height: 3px; }
  .hero__copy--spore .hero__btns { margin-top: 28px; }
}

/* ---------- 全球佈局：世界地圖 + 閃爍銷售點 ---------- */
.gmap { position: relative; margin-top: 10px; }
.gmap__img { width: 100%; display: block; }
.gmap__dot { position: absolute; transform: translate(-50%, -50%); }
.gmap__dot i {
  display: block; width: 14px; height: 14px; border-radius: 50%;
  background: #C0272D; box-shadow: 0 0 0 3px rgba(192, 39, 45, .22);
  position: relative; z-index: 1;
}
.gmap__dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px;
  margin: -7px 0 0 -7px; border-radius: 50%; background: rgba(192, 39, 45, .45);
  animation: gmapPulse 2s ease-out infinite;
}
.gmap__dot:nth-of-type(2)::before { animation-delay: .5s; }
.gmap__dot:nth-of-type(3)::before { animation-delay: 1s; }
.gmap__dot:nth-of-type(4)::before { animation-delay: 1.5s; }
@keyframes gmapPulse {
  0% { transform: scale(1); opacity: .8; }
  70%, 100% { transform: scale(3.4); opacity: 0; }
}
.gmap__dot span {
  position: absolute; left: 50%; top: 24px; transform: translateX(-50%);
  white-space: nowrap; font-size: 14px; letter-spacing: .08em; color: #6b5f52;
}
@media (max-width: 720px) {
  .gmap__dot i { width: 9px; height: 9px; box-shadow: 0 0 0 2px rgba(192, 39, 45, .22); }
  .gmap__dot::before { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
  .gmap__dot span { font-size: 11px; top: 15px; }
}

/* ---------- 地圖縮小置中 + 航線虛線 + 香港總部點 ---------- */
.gmap { max-width: 880px; margin: 10px auto 0; }
.gmap__routes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.gmap__route {
  fill: none; stroke: #C0272D; stroke-width: 1.8;
  stroke-dasharray: 5 7; stroke-linecap: round; opacity: .5;
  animation: routeFlow 1.2s linear infinite;
}
.gmap__route--slow { animation-duration: 2.4s; opacity: .4; }
@keyframes routeFlow { to { stroke-dashoffset: -24; } }
.gmap__dot { z-index: 2; }
.gmap__dot--hq i {
  width: 18px; height: 18px; background: #8a1c14;
  box-shadow: 0 0 0 4px rgba(138, 28, 20, .2), 0 2px 8px rgba(138, 28, 20, .35);
}
.gmap__dot--hq::before {
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  background: rgba(138, 28, 20, .45);
}
.gmap__dot--hq span {
  top: -24px; left: 50%; transform: translateX(-50%);
  font-weight: 600; color: #8a1c14; letter-spacing: .1em;
}
@media (prefers-reduced-motion: reduce) {
  .gmap__route, .gmap__dot::before { animation: none; }
}
@media (max-width: 720px) {
  .gmap__dot--hq i { width: 12px; height: 12px; box-shadow: 0 0 0 3px rgba(138, 28, 20, .2); }
  .gmap__dot--hq::before { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
  .gmap__dot--hq span { top: -17px; font-size: 10px; }
}

/* 澳門點：與香港錯開，標籤放點左側 */
.gmap__dot--mo span {
  left: -10px; top: 50%; transform: translate( -100%, -50% );
}
