:root {
  --forest: #26362d;        /* 主深色：hero、聯絡區、頁尾 */
  --forest-2: #2f4338;
  --green: #5f7f6b;         /* 品牌綠（logo 色） */
  --sand: #f5f1ea;          /* 米白底 */
  --paper: #fbfaf7;
  --ink: #1c211e;
  --muted: #5c655f;
  --rule: #dcd8cf;
  --cream: #efe9dd;
  --line: #06c755;
  --header-h: 72px;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper);
  line-height: 1.85; letter-spacing: 0.02em; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.4; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.04em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
h3 { font-size: 1.22rem; letter-spacing: 0.04em; }
p { margin: 0; }

/* 中文斷行：.ph 是一個不可拆的語句片段（用在標題、卡片短句、地址），只在片段之間換行；
   標題與短句平均分配每行字數 */
.ph { display: inline-block; }
/* 長段落正常斷行，只把最後一個短句綁在一起，避免末行孤字 */
.nw { white-space: nowrap; }
/* common.js 斷詞完成後才啟用：只在 <wbr>（詞與詞之間）和標點處換行；
   萬一有一個詞比整行還寬，才退回任意位置換行，避免撐破版面 */
.word-wrap-zh :is(p, h1, h2, h3, h4, dd, li, .case-title, .pcard-title) { word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, .case-title, .pcard-title, .service p, .steps p, .clients-note { text-wrap: balance; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
p, dd, li { text-wrap: pretty; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 112px); }
.section-more { text-align: center; margin-top: 64px; }
.eyebrow {
  font-size: 1.25rem; font-weight: 700; letter-spacing: 0.2em; color: var(--green);
  margin-bottom: 22px;
}
.eyebrow-light { color: #b9c9bd; }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 820px; }
.section-sub { color: var(--muted); margin-top: 18px; }
.section-head-split {
  max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
}
.section-head-split > p { color: var(--muted); max-width: 440px; justify-self: end; }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 34px; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.12em;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  transition: background-color .25s, color .25s, border-color .25s; cursor: pointer; font-family: inherit;
}
.btn-sm { padding: 9px 22px; font-size: 0.88rem; }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--green); }
.btn-light { background: var(--cream); color: var(--forest); }
.btn-light:hover { background: #fff; }
.btn-outline { background: transparent; border-color: var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; }
.text-link {
  text-decoration: none; font-weight: 500; letter-spacing: 0.1em;
  border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: opacity .2s;
}
.text-link:hover { opacity: 0.7; }
.text-link-light { color: var(--cream); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(251, 250, 247, 0.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.site-brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--forest); }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.22em; }
.brand-sub { font-size: 0.78rem; letter-spacing: 0.2em; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--rule); }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a { white-space: nowrap; }
.site-nav a:not(.btn) { text-decoration: none; font-size: 0.93rem; letter-spacing: 0.1em; color: var(--ink); position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--green); transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .2s, opacity .2s; }

/* Hero：純文字、置中 */
.hero {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: min(calc(100vh - var(--header-h)), 720px);
  padding: clamp(80px, 12vw, 140px) 24px; background: var(--forest); color: var(--cream);
}
.hero-copy { max-width: 820px; }
.kicker { font-size: 1rem; letter-spacing: 0.22em; color: #b9c9bd; margin-bottom: 32px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.45; color: #fff; }
.lead { margin: 32px auto 0; max-width: 600px; color: rgba(239, 233, 221, 0.82); font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px; margin-top: 48px; }

/* Clients marquee */
.clients { padding: clamp(64px, 8vw, 96px) 0; background: var(--paper); }
.clients-title, .clients-note { text-align: center; color: var(--muted); }
.clients-title { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.2em; color: var(--green); margin-bottom: 36px; }
.clients-note { font-size: 0.85rem; margin-top: 28px; padding: 0 24px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--duration, 48s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; }
.client {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px;
  width: 168px; padding: 0 20px; flex-shrink: 0;
}
.client img {
  height: 52px; width: auto; max-width: 128px; object-fit: contain;
  filter: grayscale(1); opacity: 0.72; transition: filter .3s, opacity .3s;
}
.client:hover img { filter: none; opacity: 1; }
.client span { font-size: 0.78rem; color: var(--muted); white-space: nowrap; letter-spacing: 0.06em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 28px; }
  .marquee-set[aria-hidden] { display: none; }
  .marquee { mask-image: none; }
}

/* About */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); }
.statement { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.5; }
.about-body { padding-top: 38px; }
.about-body p { color: var(--muted); font-size: 1.04rem; }
.about-body p + p { margin-top: 1.2em; }

/* Services */
.services { background: var(--sand); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.service-img { aspect-ratio: 4 / 5; background: #fff; overflow: hidden; margin-bottom: 22px; }
.service-img img { width: 100%; height: 100%; object-fit: contain; padding: 12%; transition: transform .6s; }
.service:hover .service-img img { transform: scale(1.04); }
.service p { color: var(--muted); font-size: 0.93rem; margin-top: 8px; }

/* Cases：全部同一種卡片 */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 28px; }
.case-grid-featured { grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.case {
  /* button 預設會把內容垂直置中；標題行數不同時圖片會上下錯位，所以固定靠上 */
  display: block; width: 100%; align-self: start;
  font: inherit; color: inherit; text-align: left; padding: 0; border: 0; background: none; cursor: zoom-in;
}
.case[hidden] { display: none; }
.case-frame { display: block; aspect-ratio: 1; background: #fff; border: 1px solid #ebe8e1; overflow: hidden; }
.case-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.case:hover .case-frame img { transform: scale(1.05); }
.case-meta { display: block; margin-top: 16px; font-size: 0.75rem; letter-spacing: 0.18em; color: var(--green); }
.case-title { display: block; margin-top: 4px; font-weight: 500; line-height: 1.6; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 26, 22, 0.92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(860px, 100%); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; background: #fff; }
.lightbox figcaption { color: var(--cream); margin-top: 16px; letter-spacing: 0.08em; }
.lightbox-close {
  position: absolute; top: 14px; right: 20px; font-size: 2.4rem; line-height: 1;
  color: #fff; background: none; border: 0; cursor: pointer;
}

/* Process */
.cases { background: var(--sand); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 40px; }
.steps li { padding: 32px 28px 0; border-top: 1px solid var(--rule); }
.steps li:not(:nth-child(4n + 1)) { border-left: 1px solid var(--rule); }
.steps li:nth-child(4n + 1) { padding-left: 0; }
.step-no { display: block; font-family: var(--serif); font-size: 2rem; color: var(--green); line-height: 1; margin-bottom: 20px; }
.steps p { color: var(--muted); font-size: 0.93rem; margin-top: 10px; }

/* 自有品牌：馴鹿 HSUNLU */
.brand-section { background: var(--sand); }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.brand-media { aspect-ratio: 1; background: #fff; border: 1px solid #ebe8e1; }
.brand-media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.brand-logo { width: 140px; margin: 4px 0 28px; }
.brand-copy h2 { margin-bottom: 20px; }
.brand-copy p:not(.eyebrow) { color: var(--muted); }
.brand-copy p + p { margin-top: 1em; }
.brand-cta { margin-top: 32px; }
.brand-story { background: var(--paper); }
.brand-products { background: var(--sand); padding-top: clamp(72px, 10vw, 112px); }
.product-grid.product-grid-brand { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }

/* 關於我們頁 */
.about-more { display: inline-block; margin-top: 28px; color: var(--forest); }
.about-intro { background: var(--paper); }
.about-leader { background: var(--sand); }
.leader-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.leader-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #dfe4ea; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.leader-en { font-family: var(--sans); font-size: 0.55em; letter-spacing: 0.12em; color: var(--green); margin-left: 8px; }
.leader-quote {
  margin: 28px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--green);
  font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.6; color: var(--forest);
}
.leader-copy p { color: var(--muted); }
.leader-copy p + p { margin-top: 1em; }
.leader-slogan { color: var(--forest) !important; font-weight: 700; letter-spacing: 0.06em; }
.about-strengths { background: var(--paper); }
.strengths { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rule); }
.strengths li { padding: 32px 24px 0 0; }
.strengths li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.strengths p { color: var(--muted); font-size: 0.93rem; margin-top: 10px; }
.about-mission { background: var(--forest); color: var(--cream); }
.about-mission .eyebrow { color: #b9c9bd; }
.mission-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.mission-title { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 24px; }
.mission-grid p { color: rgba(239, 233, 221, 0.82); }
.mission-grid p + p { margin-top: 1em; }
.mission-grid a { color: #fff; }
.mission-award { margin: 0; text-align: center; }
.mission-award img { background: #fff; padding: 6%; }
.mission-award figcaption { margin-top: 12px; font-size: 0.85rem; letter-spacing: 0.1em; color: #b9c9bd; }
.about-info { background: var(--sand); padding-top: clamp(56px, 8vw, 96px); }
.info-card { background: #fff; border: 1px solid #ebe8e1; padding: clamp(28px, 4vw, 48px); max-width: 860px; margin: 0 auto; }
.info-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 20px; }
.info-list { margin: 0; border-top: 1px solid var(--rule); }
.info-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.info-list dt { color: var(--green); font-weight: 700; letter-spacing: 0.1em; font-size: 0.9rem; }
.info-list dd { margin: 0; }
.info-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* 服務流程頁 */
.process-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(40px, 6vw, 88px); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 1px; background: var(--rule); }
.timeline-step { display: grid; grid-template-columns: 56px 1fr; gap: 28px; position: relative; }
.timeline-step + .timeline-step { margin-top: 44px; }
.timeline-step .step-no {
  width: 56px; height: 56px; border-radius: 50%; background: var(--forest); color: var(--cream);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem; margin: 0; position: relative;
}
.timeline-step h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 10px 0 10px; }
.timeline-step p { color: var(--muted); }
.timeline-step ul { margin: 14px 0 0; padding: 16px 20px 16px 36px; background: var(--sand); color: var(--muted); font-size: 0.93rem; }
.timeline-step li + li { margin-top: 4px; }
.process-side { position: sticky; top: calc(var(--header-h) + 24px); }
.prep-card { background: #fff; border: 1px solid #ebe8e1; padding: 32px 28px; }
.prep-card h2 { font-size: 1.3rem; margin-bottom: 12px; }
.prep-card p { color: var(--muted); font-size: 0.93rem; }
.prep-card ul { margin: 14px 0; padding-left: 20px; font-size: 0.95rem; }
.prep-card li + li { margin-top: 6px; }
.prep-note { margin-bottom: 24px; }
.prep-card .btn { width: 100%; }
.prep-card .btn + .btn { margin-top: 10px; }

/* 聯絡我們頁 */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  padding: 24px; background: #fff; border: 1px solid #ebe8e1; text-decoration: none; transition: border-color .2s;
}
.contact-card:hover { border-color: var(--green); }
.contact-icon { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; background: var(--forest); color: var(--cream); display: flex; align-items: center; justify-content: center; }
.contact-icon svg { width: 26px; height: 26px; }
.contact-label { font-size: 0.85rem; color: var(--green); letter-spacing: 0.14em; font-weight: 700; }
.contact-value { font-size: 1.05rem; word-break: break-word; }
.contact-main { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 48px); margin-top: clamp(40px, 6vw, 64px); align-items: start; }
.form-intro { color: var(--muted); font-size: 0.92rem; margin: -12px 0 24px; }
.contact-side { display: grid; gap: 20px; }
.line-card { background: #fff; border: 1px solid #ebe8e1; color: var(--ink); padding: 32px; text-align: center; }
.line-card img { width: 180px; margin: 0 auto 20px; }
.line-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.line-card p { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }
.contact-map { aspect-ratio: 4 / 3; border: 1px solid #ebe8e1; background: var(--sand); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Footer */
.site-footer { background: #1b2620; color: rgba(239, 233, 221, 0.7); padding: 56px 0 40px; font-size: 0.88rem; }
.site-footer { padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 0.8fr 0.8fr 1.5fr; gap: 40px 48px; align-items: start; }
.footer-name { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.16em; color: var(--cream); margin-bottom: 14px; }
.footer-about p:not(.footer-name) { line-height: 2; max-width: 360px; }
.footer-brand { margin-top: 12px; color: var(--cream); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { color: var(--cream); font-size: 1rem; font-weight: 700; letter-spacing: 0.14em; margin-bottom: 8px; }
.footer-col a { text-decoration: none; letter-spacing: 0.06em; }
.footer-col a:hover { color: #fff; }
.footer-contact a { text-decoration: none; }
.footer-qr { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 10px; align-self: flex-start; }
.footer-qr img { width: 132px; background: #fff; padding: 8px; }
.footer-qr span { font-size: 0.8rem; color: var(--cream); letter-spacing: 0.08em; }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(239, 233, 221, 0.14); padding-top: 24px; font-size: 0.8rem; opacity: 0.7; }

/* 子頁面標頭與麵包屑 */
.page-hero { background: var(--forest); color: var(--cream); padding: clamp(48px, 7vw, 80px) 0 clamp(40px, 6vw, 64px); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 18px 0 14px; }
.page-hero p { color: rgba(239, 233, 221, 0.8); max-width: 640px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.85rem; letter-spacing: 0.06em; color: inherit; opacity: 0.85; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb > *:not(:last-child)::after { content: "/"; margin: 0 10px; opacity: 0.5; }
.pd .breadcrumb { color: var(--muted); margin-bottom: 28px; }

/* 產品列表 */
.catalog { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.catalog-side {
  /* 分類區自己捲動：最高一個畫面，內容超過時在側欄裡捲，不必等右邊商品列表捲到底 */
  position: sticky; top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent; padding-right: 6px;
}
.catalog-search { display: flex; border: 1px solid var(--rule); background: #fff; margin-bottom: 24px; }
.catalog-search input { flex: 1; min-width: 0; border: 0; padding: 12px 14px; font: inherit; background: transparent; }
.catalog-search input:focus { outline: none; }
.catalog-search:focus-within { border-color: var(--green); }
.catalog-search button { border: 0; background: none; padding: 0 12px; color: var(--muted); cursor: pointer; }
.catalog-search svg { width: 20px; height: 20px; }
.catalog-cats-toggle { display: none; }
.catalog-cats { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.cat-link, .sub-link { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; padding: 12px 4px; border-bottom: 1px solid var(--rule); }
.cat-link:hover, .sub-link:hover { color: var(--green); }
.cat-link.is-active, .sub-link.is-active { color: var(--green); font-weight: 700; }
.cat-link .n, .sub-link .n { color: var(--muted); font-size: 0.82rem; font-weight: 400; }
.sub-links { display: flex; flex-direction: column; background: var(--sand); }
.cat-link-brand span:first-child::before { content: "★"; color: var(--green); margin-right: 6px; font-size: 0.8em; }
.sub-link { padding: 9px 4px 9px 18px; font-size: 0.9rem; border-bottom-color: #e8e3d8; }
.catalog-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--rule); padding-bottom: 16px; margin-bottom: 28px; }
.catalog-bar h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.catalog-bar p { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 20px; }
.product-grid .empty { grid-column: 1 / -1; color: var(--muted); padding: 40px 0; }
.pcard { display: flex; flex-direction: column; }
.pcard-link { text-decoration: none; color: inherit; display: block; flex: 1; }
.pcard-img { display: block; aspect-ratio: 1; background: #fff; border: 1px solid #ebe8e1; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.pcard-link:hover .pcard-img img { transform: scale(1.05); }
.pcard-cat { display: block; margin-top: 12px; font-size: 0.75rem; letter-spacing: 0.14em; color: var(--green); }
.pcard-title { display: block; margin-top: 4px; font-size: 0.95rem; line-height: 1.6; }
.pcard-link:hover .pcard-title { color: var(--green); }
.pcard-add {
  margin-top: 10px; align-self: flex-start; font: inherit; font-size: 0.82rem; letter-spacing: 0.06em;
  background: none; border: 1px solid var(--rule); padding: 5px 12px; cursor: pointer; color: var(--forest);
}
.pcard-add:hover { border-color: var(--forest); }
.pcard-add.is-added { color: var(--green); border-color: transparent; padding-left: 0; cursor: default; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 56px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; text-decoration: none; border: 1px solid var(--rule); font-size: 0.9rem; }
.pager a:hover { border-color: var(--forest); }
.pager [aria-current] { background: var(--forest); color: #fff; border-color: var(--forest); }
.pager .gap { border: 0; min-width: 20px; }

/* 商品頁 */
.pd-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.pd-main { aspect-ratio: 1; background: #fff; border: 1px solid #ebe8e1; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.pd-thumb { padding: 0; border: 1px solid #ebe8e1; background: #fff; cursor: pointer; aspect-ratio: 1; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb[aria-current] { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.pd-brand { margin-bottom: 10px; }
.pd-brand a { display: inline-block; font-size: 0.8rem; letter-spacing: 0.1em; text-decoration: none; color: #fff; background: var(--green); padding: 4px 12px; }
.pd-brand a:hover { background: var(--forest); }
.pd-cat { font-size: 0.85rem; letter-spacing: 0.14em; color: var(--green); }
.pd-cat a { text-decoration: none; }
.pd-info h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 10px 0 18px; }
.pd-summary { color: var(--muted); }
.pd-options { margin-top: 24px; border-top: 1px solid var(--rule); }
.pd-option { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 0.93rem; }
.pd-option span:first-child { color: var(--muted); }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pd-actions .btn { flex: 1 1 180px; }
.pd-notes { margin: 28px 0 0; padding: 20px 24px; background: var(--sand); list-style: none; font-size: 0.9rem; color: var(--muted); }
.pd-notes li { padding-left: 18px; position: relative; }
.pd-notes li + li { margin-top: 6px; }
.pd-notes li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 1px; background: var(--green); }
.pd-desc { margin-top: clamp(56px, 8vw, 88px); border-top: 1px solid var(--rule); padding-top: 40px; }
.pd-desc h2, .pd-related h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 24px; }
.pd-desc-body { max-width: 820px; color: #3a423d; }
.pd-desc-body p + p, .pd-desc-body ul, .pd-desc-body h4 { margin-top: 1em; }
.pd-desc-body h4 { font-size: 1.05rem; }
.pd-related { margin-top: clamp(56px, 8vw, 88px); }

/* 詢價頁 */
.inquiry { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.inquiry h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.inquiry-items-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--rule); padding-bottom: 14px; }
.link-btn { font: inherit; font-size: 0.88rem; background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.basket-list { list-style: none; margin: 0; padding: 0; }
.basket-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.basket-thumb { display: block; aspect-ratio: 1; background: #fff; border: 1px solid #ebe8e1; }
.basket-thumb img { width: 100%; height: 100%; object-fit: contain; }
.basket-title { text-decoration: none; display: block; line-height: 1.5; font-size: 0.95rem; }
.basket-title:hover { color: var(--green); }
.basket-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 0.85rem; color: var(--muted); }
.basket-qty input { width: 110px; padding: 6px 8px; border: 1px solid var(--rule); font: inherit; background: #fff; }
.basket-remove { font: inherit; font-size: 0.82rem; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.basket-empty { padding: 28px 0; color: var(--muted); }
.basket-empty p + p { margin-top: 8px; }
.inquiry-form { background: #fff; border: 1px solid #ebe8e1; padding: clamp(24px, 4vw, 40px); }
.inquiry-form h2 { margin-bottom: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 0.88rem; margin-bottom: 6px; letter-spacing: 0.06em; }
.field em { color: #b5523b; font-style: normal; }
.field input, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--rule); background: var(--paper); font: inherit; color: inherit; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.inquiry-form .btn { width: 100%; }
.inquiry-form .btn[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin-top: 18px; padding: 14px 16px; font-size: 0.92rem; }
.form-status.is-ok { background: #e8f0ea; color: var(--forest); }
.form-status.is-error { background: #f8ebe6; color: #7a3524; }

/* 詢價籃數量、提示訊息 */
.nav-basket { gap: 8px; }
.basket-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--cream); color: var(--forest); font-size: 0.75rem; letter-spacing: 0; }
.basket-count[hidden] { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90;
  background: var(--forest); color: #fff; padding: 12px 20px; font-size: 0.92rem; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-width: calc(100% - 32px); text-align: center;
}
.toast[hidden] { display: none; }
.toast a { color: var(--cream); margin-left: 6px; }

/* Floating LINE */
.line-float-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.line-float {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px 10px 12px;
  background: var(--line); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 500;
  font-size: 0.92rem; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.line-float svg { width: 26px; height: 26px; }
.line-pop { display: none; }

/* 只在有滑鼠的裝置顯示 QR：手機掃不到自己的螢幕，直接點按鈕開 LINE */
@media (hover: hover) and (pointer: fine) {
  .line-pop {
    display: block; position: absolute; right: 0; bottom: calc(100% + 12px); width: 200px;
    background: #fff; padding: 14px 14px 10px; text-align: center;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  /* 透明橋接，滑鼠從按鈕移到卡片時不會中斷 */
  .line-pop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
  .line-pop p { margin: 0 0 6px; font-size: 0.82rem; color: var(--muted); }
  .line-pop img { width: 100%; }
  .line-float-wrap:hover .line-pop,
  .line-float-wrap:focus-within .line-pop { opacity: 1; visibility: visible; transform: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .site-nav { gap: 24px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* 選單項目多，1080px 以下改用漢堡選單，避免文字擠到折行或貼到左邊的公司名稱 */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 16px 24px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 20px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .case-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .strengths { grid-template-columns: repeat(2, 1fr); }
  .strengths li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .strengths li { padding-bottom: 28px; }
  .steps li:nth-child(4n + 1) { padding-left: 28px; }
  .steps li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .steps li:nth-child(even) { border-left: 1px solid var(--rule); }
}
@media (max-width: 800px) {
  .container { width: calc(100% - 32px); }
  .brand-name { font-size: 1.25rem; }
  .brand-grid { grid-template-columns: 1fr; }

  .hero { min-height: 0; padding: 72px 16px; }
  .kicker { font-size: 0.9rem; letter-spacing: 0.04em; }
  .section-head-split { grid-template-columns: 1fr; gap: 16px; }
  .section-head-split > p { justify-self: start; }
  .about-grid, .contact-main, .process-layout, .leader-grid, .mission-grid { grid-template-columns: 1fr; }
  .leader-photo { max-width: 420px; }
  .mission-award { max-width: 320px; }
  .info-list > div { grid-template-columns: 88px 1fr; }
  .process-side { position: static; }
  .timeline-step { grid-template-columns: 44px 1fr; gap: 18px; }
  .timeline-step .step-no { width: 44px; height: 44px; font-size: 1rem; }
  .timeline::before { left: 21px; }
  .timeline-step h2 { margin-top: 6px; }
  .contact-cards { grid-template-columns: 1fr; gap: 12px; }
  .about-body { padding-top: 0; }
  .case-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; }
  .client { width: 128px; padding: 0 12px; }
  .client img { height: 42px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-about, .footer-contact { grid-column: 1 / -1; }
  .case-grid-featured { grid-template-columns: repeat(2, 1fr); gap: 32px 14px; }
  .catalog { grid-template-columns: 1fr; }
  .catalog-side { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .catalog-search { margin-bottom: 12px; }
  .catalog-cats-toggle {
    display: flex; justify-content: space-between; width: 100%; font: inherit; padding: 12px 14px;
    background: #fff; border: 1px solid var(--rule); cursor: pointer; color: inherit;
  }
  .catalog-cats-toggle::after { content: "＋"; color: var(--muted); }
  .catalog-cats-toggle[aria-expanded="true"]::after { content: "－"; }
  .catalog-cats { display: none; border-top: 0; }
  .catalog-cats.open { display: flex; }
  .product-grid, .product-grid.product-grid-brand { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .pd-grid, .inquiry { grid-template-columns: 1fr; }
  .pd-thumbs { grid-template-columns: repeat(5, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .line-float span { display: none; }
  .line-float { padding: 12px; }
}
@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .service-img { margin-bottom: 14px; }
  .steps { grid-template-columns: 1fr; }
  .strengths { grid-template-columns: 1fr; }
  .strengths li, .strengths li + li { border-left: 0; padding: 24px 0; border-bottom: 1px solid var(--rule); }
  .steps { row-gap: 0; }
  .steps li, .steps li:nth-child(n) { border-left: 0; padding: 24px 0; }
}
