@charset "utf-8";

/* ============================================================
   凱為科技 Kaviaz Technology — 全站樣式
   品牌色取自 logo：#008941 / #78a22d / #dadf00 / #666464
   ============================================================ */

:root {
  --green: #008941;
  --green-dark: #016631;
  --green-deep: #054b28;
  --olive: #78a22d;
  --lime: #dadf00;
  --grey: #666464;

  --ink: #16211c;
  --ink-2: #44514b;
  --ink-3: #6f7d76;
  --line: #e3e8e5;
  --line-2: #eef2f0;
  --bg: #ffffff;
  --bg-soft: #f5f8f6;
  --bg-deep: #0d1712;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(13, 23, 18, .05), 0 8px 28px rgba(13, 23, 18, .06);
  --shadow-lg: 0 2px 6px rgba(13, 23, 18, .06), 0 24px 60px rgba(13, 23, 18, .12);
  --header-h: 92px;
  --maxw: 1120px;

  --sans: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
          "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--olive); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid rgba(0, 137, 65, .45); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ============================================================
   Header / 導覽列
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* 左上角 logo */
.brand { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.brand img {
  height: 46px; width: auto;
  /* 視窗過窄時等比縮小，不會被壓扁 */
  max-width: 100%; object-fit: contain; object-position: left center;
}
@media (max-width: 1024px) { :root { --header-h: 84px; } .brand img { height: 42px; } }
@media (max-width: 560px)  { :root { --header-h: 72px; } .brand img { height: 34px; } }
@media (max-width: 400px)  { :root { --header-h: 64px; } .brand img { height: 28px; } }

/* 右上角主選單 */
.nav { flex: 0 0 auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: 8px;
  font-size: .95rem; font-weight: 600; color: var(--ink);
  white-space: nowrap; background: none; border: 0; cursor: pointer;
  font-family: inherit; transition: background .18s ease, color .18s ease;
}
.nav__link:hover { background: var(--bg-soft); color: var(--green); }
.nav__link.is-active { color: var(--green); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 1px;
  height: 2px; background: var(--green); border-radius: 2px;
}
/* EDA / IP：文字是連結（前往總覽頁），箭頭是展開選單的按鈕 */
.nav__item--menu { display: flex; align-items: center; }
.nav__item--menu .nav__link { padding-right: 4px; }
.nav__toggle {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 34px; padding: 0; margin-right: 8px;
  background: none; border: 0; border-radius: 8px;
  color: var(--ink); cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.nav__toggle:hover { background: var(--bg-soft); color: var(--green); }
.nav__item--menu:hover .nav__link,
.nav__item--menu:hover .nav__toggle { color: var(--green); }
.nav__caret { width: 9px; height: 9px; flex: none; transition: transform .2s ease; }
.nav__toggle[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__cta {
  margin-left: 8px; padding: 9px 18px; border-radius: 999px;
  background: var(--green); color: #fff !important;
}
.nav__cta:hover { background: var(--green-dark); }
.nav__cta.is-active::after { display: none; }

/* 語言切換 */
.nav__item--lang { margin-left: 10px; }
.langswitch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
.langswitch__opt {
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
  font-size: .8rem; font-weight: 650; line-height: 1.45; color: var(--ink-3);
  transition: background .18s ease, color .18s ease;
}
.langswitch__opt.is-on { background: var(--bg-soft); color: var(--ink); cursor: default; }
a.langswitch__opt:hover { background: rgba(0, 137, 65, .08); color: var(--green-dark); }

/* 下拉選單 */
.dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 480px; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; list-style: none; margin: 0; padding: 0; }
.dropdown__link { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink); }
.dropdown__link:hover { background: var(--bg-soft); color: var(--green); }
.dropdown__link strong { display: block; font-size: .92rem; font-weight: 650; line-height: 1.4; }
.dropdown__link span { display: block; font-size: .78rem; color: var(--ink-3); line-height: 1.45; }
.dropdown__link:hover span { color: var(--ink-2); }
.dropdown__foot {
  margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line-2);
  font-size: .85rem; font-weight: 600;
}

/* 漢堡按鈕 */
.burger {
  display: none; width: 42px; height: 42px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  margin-inline: auto; transition: transform .22s ease, opacity .18s ease;
}
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* 加入語言切換後選單變寬，切換到抽屜式的斷點跟著往上調
   （main.js 的 isDesktop() 必須與這裡的 1180px 一致） */
@media (max-width: 1180px) {
  .burger { display: block; }
  /* backdrop-filter 會讓 .topbar 成為 fixed 子元素的容納區塊，
     導致行動版側邊選單高度塌陷，因此在此中斷點關閉毛玻璃效果。 */
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(400px, 88vw);
    background: #fff; border-left: 1px solid var(--line);
    padding: 16px 20px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .26s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { justify-content: space-between; padding: 13px 12px; font-size: 1rem; }
  .nav__link.is-active::after { display: none; }
  /* 行動版：文字佔滿一列可直接點進總覽頁，右側箭頭獨立為 44px 觸控區 */
  .nav__item--menu { flex-wrap: wrap; }
  .nav__item--menu .nav__link { flex: 1; padding-right: 12px; }
  .nav__toggle { width: 44px; height: 44px; margin-right: 0; border: 1px solid var(--line); }
  .nav__item--menu .dropdown { flex: 0 0 100%; }
  .nav__item--lang { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
  .langswitch { width: 100%; justify-content: center; }
  .langswitch__opt { flex: 1; text-align: center; padding: 9px 14px; font-size: .9rem; }
  .nav__cta { margin: 12px 0 0; justify-content: center; }
  .dropdown {
    position: static; min-width: 0; opacity: 1; visibility: visible; transform: none;
    border: 0; border-radius: 0; box-shadow: none; padding: 0 0 8px 8px;
    display: none; margin-bottom: 6px;
  }
  .nav__item.is-open .dropdown { display: block; }
  .dropdown__grid { grid-template-columns: 1fr; }
  .dropdown__link { padding: 8px 10px; border-left: 2px solid var(--line); border-radius: 0 8px 8px 0; }
}
.nav-scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(13, 23, 18, .35);
  opacity: 0; visibility: hidden; transition: opacity .26s ease, visibility .26s;
}
.nav-scrim.is-on { opacity: 1; visibility: visible; }

/* ============================================================
   共用區塊
   ============================================================ */
.section { padding: clamp(56px, 6vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 680px; margin-bottom: 44px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--ink-3); margin-bottom: 0; }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px;
  background: var(--lime); transform: rotate(45deg) translateY(-1px);
}

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px;
  font-size: .95rem; font-weight: 650; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn--line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--line:hover { border-color: var(--green); color: var(--green); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   首頁 Hero
   ============================================================ */
/* 影片鋪滿整個 hero，上面蓋一層「淺色」遮罩：
   影片保持原本明亮的色調，文字則改用深色，兩邊都清楚。 */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--ink-2); background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--bg-soft); }
.hero__bg img,
.hero__bg video { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* 文字區（左側約 0–60%）保持夠亮，讓深色字在影片最暗的畫面上也讀得清楚；
     右側逐漸放淡，影片本身看得最完整。 */
  background:
    linear-gradient(100deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .76) 38%,
                            rgba(255, 255, 255, .58) 62%, rgba(255, 255, 255, .38) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, 0) 42%);
}

/* 窄螢幕時文字會佔滿整個寬度，左右向的遮罩就不夠用了，
   改成上下向：文字所在的上半部維持夠亮。 */
@media (max-width: 900px) {
  .hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%,
                                        rgba(255, 255, 255, .84) 58%,
                                        rgba(255, 255, 255, .62) 100%);
  }
}

.hero__inner {
  position: relative; z-index: 1; max-width: 680px;
  /* 上下留白刻意壓低，讓整個 hero（含下方數據列）在一般筆電視窗
     開啟頁面時就能一次看完，不需要先捲動 */
  padding: clamp(40px, 5.5vw, 76px) 0 clamp(32px, 4vw, 56px);
}
.hero h1 { color: var(--ink); margin-bottom: .42em; font-size: clamp(1.9rem, 1.35rem + 2vw, 2.7rem); }
.hero h1 em { font-style: normal; color: var(--green-dark); }
/* 內文比一般段落再深一階：影片會在底下流動，需要多一點對比餘裕 */
.hero__lead { font-size: clamp(1rem, .95rem + .35vw, 1.14rem); color: #2a3630; margin-bottom: 1.4em; }
.hero .eyebrow { color: var(--green-dark); }
.hero .eyebrow::before { background: var(--olive); }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px);
  margin-top: clamp(26px, 3.5vw, 44px); padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* 播放／暫停控制（WCAG 2.2.2：超過 5 秒的自動播放內容需可暫停） */
.hero__videobtn {
  position: absolute; right: 24px; bottom: 24px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .82); color: var(--ink-2);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  opacity: .8; transition: opacity .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.hero__videobtn:hover, .hero__videobtn:focus-visible {
  opacity: 1; background: #fff; border-color: var(--green); color: var(--green-dark);
}
.hero__videobtn svg { width: 13px; height: 13px; fill: currentColor; flex: none; }
.hero__videobtn[hidden] { display: none; }
@media (max-width: 560px) {
  .hero__videobtn { right: 16px; bottom: 16px; padding: 7px 13px 7px 11px; font-size: .78rem; }
  .hero__videobtn span { display: none; }
}
.hero__stat b {
  display: block; width: fit-content;
  font-size: clamp(2.2rem, 1.7rem + 2vw, 3rem); font-weight: 800;
  color: var(--green-dark); line-height: 1.2; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; /* 跳動時數字寬度固定，旁邊文字不會跟著抖動 */
  padding: .02em .16em; margin: 0 0 .1em -.16em;
  border-radius: 10px;
  /* 背景固定用淺色小卡片襯底：底下是會變化明暗的影片，
     純色文字對比度會隨畫面忽高忽低，用卡片墊底才能穩定保持清楚可讀 */
  background: rgba(255, 255, 255, .78);
  transition: transform .18s ease, background-color .18s ease;
}
/* 每輪重新跳動時，數到最終值那一刻短暫放大再彈回，加強「又跳了一次」的視覺提示 */
.hero__stat b.is-popping { transform: scale(1.12); background-color: rgba(255, 255, 255, .95); }
.hero__stat span { font-size: .86rem; color: #2a3630; }

/* 內頁標題區 */
.pagehead {
  background: linear-gradient(120deg, var(--green-deep), var(--green-dark) 62%, var(--olive));
  color: #fff; position: relative; overflow: hidden;
}
.pagehead::after {
  content: ""; position: absolute; right: -60px; top: -90px; width: 340px; height: 340px;
  background: rgba(218, 223, 0, .12); transform: rotate(45deg); border-radius: 40px;
}
.pagehead__inner { position: relative; z-index: 1; padding: clamp(52px, 6vw, 84px) 0; max-width: 760px; }
.pagehead h1 { color: #fff; margin-bottom: .35em; }
.pagehead p { color: rgba(255, 255, 255, .82); font-size: 1.05rem; margin-bottom: 0; }
.pagehead .eyebrow { color: var(--lime); }

.crumbs { font-size: .84rem; color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.crumbs a { color: rgba(255, 255, 255, .9); }
.crumbs a:hover { color: var(--lime); }
.crumbs span { margin-inline: 8px; opacity: .5; }

/* ---- 主視覺圖版本：淺色遮罩 + 深色文字，讓圖片保持原本明亮的色調 ---- */
.pagehead--media {
  background: var(--bg-soft);
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.pagehead--media::after {
  /* 蓋掉預設的菱形裝飾，改成淺色遮罩 */
  content: ""; position: absolute; inset: 0; right: 0; top: 0;
  width: auto; height: auto; transform: none; border-radius: 0; z-index: 0;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .72) 38%,
                            rgba(255, 255, 255, .38) 64%, rgba(255, 255, 255, .12) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, 0) 42%);
}
.pagehead__bg { position: absolute; inset: 0; z-index: -1; background: var(--bg-soft); }
.pagehead__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }

.pagehead--media .pagehead__inner { padding: clamp(72px, 8vw, 124px) 0; max-width: 640px; }
.pagehead--media h1 { color: var(--ink); }
.pagehead--media p { color: #2a3630; }
.pagehead--media .eyebrow { color: var(--green-dark); }
.pagehead--media .eyebrow::before { background: var(--olive); }
.pagehead--media .crumbs { color: #2a3630; }
.pagehead--media .crumbs a { color: #2a3630; }
.pagehead--media .crumbs a:hover { color: var(--green); }

/* 窄螢幕文字佔滿寬度，改用上下向遮罩 */
@media (max-width: 900px) {
  .pagehead--media::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .93) 0%,
                                        rgba(255, 255, 255, .84) 62%,
                                        rgba(255, 255, 255, .6) 100%);
  }
  .pagehead__bg img { object-position: center; }
}

/* ============================================================
   卡片
   ============================================================ */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(0, 137, 65, .35); box-shadow: var(--shadow); transform: translateY(-3px); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }

/* 供應商卡片 */
.vendor {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.vendor:hover { border-color: rgba(0, 137, 65, .35); box-shadow: var(--shadow); transform: translateY(-3px); }
.vendor__logo {
  display: flex; align-items: center; justify-content: center;
  height: 116px; padding: 24px 28px; background: var(--bg-soft); border-bottom: 1px solid var(--line-2);
}
/* max-height 與 max-width 同時限制，讓不同長寬比的原廠 logo
   都以同一套規則縮放至同一個框內，不會有的爆框、有的看起來過小 */
.vendor__logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.vendor__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.vendor__body h3 { margin-bottom: .3em; }
.vendor__cat { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); display: block; margin-bottom: 8px; }
.vendor__body p { font-size: .93rem; color: var(--ink-3); }
.vendor__more { margin-top: auto; padding-top: 14px; font-size: .9rem; font-weight: 650; color: var(--green); }
.vendor__more::after { content: " →"; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0 0 16px; padding: 0; }
.tags li {
  margin: 0; padding: 4px 11px; border-radius: 999px;
  background: rgba(120, 162, 45, .1); border: 1px solid rgba(120, 162, 45, .22);
  font-size: .76rem; font-weight: 600; color: var(--green-dark);
}
.tags--light li { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); color: #fff; }

/* logo 牆 */
.logowall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.logowall a, .logowall div {
  display: flex; align-items: center; justify-content: center;
  height: 104px; padding: 20px; background: #fff; transition: background .2s ease;
}
.logowall a:hover { background: var(--bg-soft); }
.logowall img { max-height: 46px; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .62; transition: filter .25s ease, opacity .25s ease; }
.logowall a:hover img { filter: none; opacity: 1; }

/* ============================================================
   產品內頁
   ============================================================ */
.vendor-hero { border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.vendor-hero__inner {
  padding: clamp(36px, 4vw, 56px) 0; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 4vw, 48px);
}
.vendor-hero__logo {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 220px; height: 116px; padding: 20px 26px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.vendor-hero__logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.vendor-hero__text { flex: 1 1 340px; }
.vendor-hero__text p:last-child { margin-bottom: 0; }
.lead { font-size: 1.06rem; color: var(--ink-2); }

.prod {
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px);
  padding: 32px 0; border-top: 1px solid var(--line);
}
.prod:first-of-type { border-top: 0; padding-top: 6px; }
.prod__name { margin-bottom: .3em; }
.prod__kicker { font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--olive); }
.prod__body p:first-child { margin-top: 0; }
.prod__body > p:last-child, .prod__body > ul:last-child { margin-bottom: 0; }
.prod__body ul { list-style: none; padding-left: 0; }
.prod__body ul li { position: relative; padding-left: 24px; }
.prod__body ul li::before {
  content: ""; position: absolute; left: 4px; top: .68em; width: 7px; height: 7px;
  background: var(--olive); transform: rotate(45deg);
}
@media (max-width: 760px) { .prod { grid-template-columns: 1fr; gap: 10px; } }

.badge-new {
  display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px;
  background: var(--lime); color: #33380a; font-size: .68rem; font-weight: 800;
  letter-spacing: .06em; vertical-align: middle; text-transform: uppercase;
}

.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--olive);
  border-radius: var(--radius-sm); background: var(--bg-soft); padding: 22px 26px;
}
.callout p:last-child { margin-bottom: 0; }

/* 上下頁 */
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 34px; border-top: 1px solid var(--line); margin-top: 12px; }
.pager a { font-weight: 650; font-size: .93rem; }

/* ============================================================
   新聞
   ============================================================ */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 28px; }
.news-item:first-child { border-top: 1px solid var(--line); }
.news-item time { font-size: .88rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.news-item h3 { margin-bottom: .35em; }
.news-item p { margin-bottom: .8em; font-size: .96rem; }
.news-item p:last-child { margin-bottom: 0; }
.news-cat {
  display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px;
  background: rgba(0, 137, 65, .09); color: var(--green-dark);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
}
@media (max-width: 700px) { .news-item { grid-template-columns: 1fr; gap: 8px; } }

/* ============================================================
   聯繫 / 關於
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-2); margin: 0; }
.info-list li:last-child { border-bottom: 0; }
.info-list dt, .info-list b { flex: 0 0 84px; color: var(--ink); font-weight: 650; font-size: .93rem; }
.info-list span { flex: 1; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding-bottom: 26px; margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -33px; top: .55em; width: 11px; height: 11px;
  background: var(--green); transform: rotate(45deg);
}
.timeline b { display: block; color: var(--ink); }

.form-note { font-size: .86rem; color: var(--ink-3); }

/* CTA 區塊 */
.cta {
  background: linear-gradient(120deg, var(--green-deep), var(--green-dark) 60%, var(--olive));
  color: #fff; border-radius: var(--radius); padding: clamp(36px, 5vw, 60px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px;
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: rgba(255, 255, 255, .82); margin-bottom: 0; max-width: 560px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--bg-deep); color: rgba(255, 255, 255, .62); padding: clamp(48px, 6vw, 72px) 0 28px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 36px; }
.footer__brand img { height: 30px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: rgba(255, 255, 255, .55); font-size: .88rem; max-width: 320px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: rgba(255, 255, 255, .62); }
.footer a:hover { color: var(--lime); }
.footer__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .84rem; color: rgba(255, 255, 255, .45);
}

/* ============================================================
   回到頂端按鈕
   ============================================================ */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 48px; height: 48px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff;
  border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 23, 18, .18), 0 10px 30px rgba(0, 137, 65, .22);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity .24s ease, transform .24s ease, visibility .24s, background .18s ease;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-dark); transform: translateY(-2px); }
.to-top:active { transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

@media (max-width: 560px) {
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ---------- 進場動畫 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 列印 ---------- */
@media print {
  .topbar, .footer, .cta, .burger, .nav-scrim, .pager, .to-top { display: none !important; }
  body { color: #000; }
  a { color: #000; }
}
