/* ============================================================
   立曄股份有限公司 — forest-lab 主題
   深森綠 × 科技灰 × 米白 / Noto Serif TC + Noto Sans TC
   設計取向：日本花王 / 德國 BASF 的台灣中型版
   ============================================================ */

/* ---------- Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&family=Noto+Serif+TC:wght@500;700;900&display=swap');

/* ---------- LINE / FB / IG webview 防爆字 + 橫向溢出鎖（鐵律）---------- */
/* 依 /clients/_docs/IN-APP-BROWSER-FIXES.md §2、§7C */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px; /* 鎖死、不要讓 webview 改 */
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}
/* 每個 section 也鎖一道、防 ::before / ::after 推爆 */
section { max-width: 100vw; overflow-x: hidden; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans TC', system-ui, -apple-system, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  background: var(--ly-cream);
  color: var(--ly-text);
  line-height: 1.75;
  overflow-x: clip; /* 不用 hidden，保留 sticky */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: 'Noto Serif TC', 'Noto Sans TC', serif;
  color: var(--ly-ink);
  line-height: 1.35;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Color & Type Tokens ---------- */
:root {
  /* Forest 主色系 */
  --ly-forest: #1F4E3D;
  --ly-forest-dark: #15392A;
  --ly-forest-darker: #0D261B;
  --ly-mint: #A8D5BA;
  --ly-mint-soft: #D7EBDD;

  /* 科技灰 */
  --ly-steel: #2C3E50;
  --ly-steel-soft: #4A5C6E;
  --ly-silver: #B8C5D0;
  --ly-silver-soft: #E2E8EE;

  /* 中性 */
  --ly-cream: #FAF7F2;
  --ly-paper: #FFFFFF;
  --ly-ink: #1A1F1C;
  --ly-text: #3D4A52;
  --ly-text-soft: #6B7884;
  --ly-line: #E8E4DC;

  /* Effects */
  --ly-radius: 4px;
  --ly-radius-lg: 8px;
  --ly-shadow-sm: 0 1px 2px rgba(20,40,30,0.04), 0 2px 8px rgba(20,40,30,0.03);
  --ly-shadow-md: 0 4px 16px rgba(20,40,30,0.06), 0 8px 32px rgba(20,40,30,0.04);
  --ly-shadow-lg: 0 12px 40px rgba(20,40,30,0.10);

  /* Type scale — clamp + 手機 @media px override（鐵律） */
  --fs-mega: clamp(2.4rem, 5vw, 4rem);
  --fs-h1: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.2rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.75rem;
}

/* 手機 vw 計算不準、強制 px override（鐵律） */
@media (max-width: 768px) {
  :root {
    --fs-mega: 2.2rem;
    --fs-h1: 1.85rem;
    --fs-h2: 1.5rem;
    --fs-h3: 1.2rem;
    --fs-lead: 1.05rem;
  }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}
@media (min-width: 1200px) {
  .container { padding: 0 48px; }
}

.ly-section {
  padding: 88px 0;
}
@media (max-width: 768px) {
  .ly-section { padding: 56px 0; }
}

.ly-section--tight { padding: 56px 0; }
.ly-section--cream { background: var(--ly-cream); }
.ly-section--paper { background: var(--ly-paper); }
.ly-section--forest {
  background: var(--ly-forest);
  color: rgba(255,255,255,0.88);
}
.ly-section--forest h1,
.ly-section--forest h2,
.ly-section--forest h3 { color: #fff; }
.ly-section--steel {
  background: var(--ly-steel);
  color: rgba(255,255,255,0.85);
}
.ly-section--steel h1,
.ly-section--steel h2,
.ly-section--steel h3 { color: #fff; }

/* Section header pattern */
.ly-eyebrow {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ly-forest);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.ly-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--ly-forest);
  display: inline-block;
}
.ly-section--forest .ly-eyebrow,
.ly-section--steel .ly-eyebrow { color: var(--ly-mint); }
.ly-section--forest .ly-eyebrow::before,
.ly-section--steel .ly-eyebrow::before { background: var(--ly-mint); }

.ly-section-title {
  font-size: var(--fs-h1);
  margin-bottom: 16px;
}
.ly-section-lead {
  font-size: var(--fs-lead);
  color: var(--ly-text);
  max-width: 720px;
  margin-bottom: 48px;
}
.ly-section--forest .ly-section-lead,
.ly-section--steel .ly-section-lead { color: rgba(255,255,255,0.78); }

.ly-seo-intro {
  max-width: 980px;
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--ly-line);
}
.ly-seo-intro h2 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}
.ly-seo-intro p {
  max-width: 900px;
  color: var(--ly-text);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.9;
}

@media (max-width: 768px) {
  .ly-seo-intro {
    margin-bottom: 48px;
    padding-bottom: 40px;
  }
  .ly-seo-intro h2 {
    font-size: 1.65rem;
  }
}

/* ---------- Product Stories — 「立曄走進生活」3-card showcase ---------- */
.ly-stories {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
.ly-story {
  position: relative;
  overflow: hidden;
  border-radius: var(--ly-radius);
  background: var(--ly-forest-darker);
  isolation: isolate;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.ly-story img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%; /* 將主體往上推、避免被底部文字遮住 */
  z-index: -2;
  transition: transform 0.6s ease;
}
.ly-story::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(13,38,27,0) 55%,
    rgba(13,38,27,0.35) 75%,
    rgba(13,38,27,0.82) 100%);
}
.ly-story:hover {
  transform: translateY(-4px);
  box-shadow: var(--ly-shadow-lg);
}
.ly-story:hover img { transform: scale(1.04); }
.ly-story-meta {
  padding: 32px;
  position: relative;
  z-index: 1;
}
.ly-story-meta .ly-badge {
  margin-bottom: 14px;
  background: rgba(245, 215, 123, 0.92); /* 鵝黃 — 跟 hero stats 呼應 */
  color: var(--ly-forest-darker);
}
.ly-story-meta h3 {
  color: #fff;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin-bottom: 8px;
  font-family: 'Noto Serif TC', serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.ly-story-meta p {
  color: rgba(255,255,255,0.86);
  font-size: 0.95rem;
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.ly-story-meta .ly-story-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.88rem;
  color: #F5D77B;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.ly-story-meta .ly-story-cta::after {
  content: '→';
  transition: transform 0.2s;
}
.ly-story:hover .ly-story-cta::after { transform: translateX(4px); }

/* 大卡：左半 + 全高（含 row span 2）*/
.ly-story--hero {
  grid-row: span 2;
  min-height: 560px;
}
.ly-story--hero .ly-story-meta {
  padding: 40px;
}
.ly-story--hero .ly-story-meta h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}
.ly-story--hero .ly-story-meta p {
  font-size: 1.05rem;
  max-width: 480px;
}

@media (max-width: 900px) {
  .ly-stories {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .ly-story--hero {
    grid-row: span 1;
    min-height: 420px;
  }
  .ly-story { min-height: 320px; }
}

.ly-applications-hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--ly-forest-darker);
}
.ly-applications-hero .ly-section-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.ly-applications-hero .ly-section-bg picture,
.ly-applications-hero .ly-section-bg img {
  width: 100%;
  height: 100%;
  display: block;
}
.ly-applications-hero .ly-section-bg img {
  object-fit: cover;
  object-position: center;
  filter: none;
}
.ly-applications-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,22,16,0.06) 0%, rgba(7,22,16,0) 46%, rgba(7,22,16,0.04) 100%),
    linear-gradient(180deg, rgba(7,22,16,0) 0%, rgba(7,22,16,0.12) 100%);
}
.ly-applications-hero .container {
  position: relative;
  z-index: 1;
}
.ly-applications-hero .ly-section-title {
  max-width: 760px;
  font-size: clamp(2.4rem, 4vw, 4.1rem);
  line-height: 1.16;
  text-shadow: 0 4px 28px rgba(0,0,0,0.42);
}
.ly-applications-hero .ly-section-lead {
  max-width: 640px;
  margin-bottom: 40px;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 2px 18px rgba(0,0,0,0.38);
}
@media (min-width: 769px) and (max-width: 1500px) {
  .ly-applications-hero .ly-section-bg img {
    object-fit: contain;
    object-position: center top;
  }
}
@media (max-width: 900px) {
  .ly-applications-hero {
    min-height: 0;
    display: block;
    padding: 0 0 72px;
  }
  .ly-applications-hero .ly-section-bg {
    position: relative;
    z-index: 0;
    aspect-ratio: 900 / 1100;
    background: var(--ly-forest-darker);
  }
  .ly-applications-hero .ly-section-bg picture {
    height: 100%;
  }
  .ly-applications-hero .ly-section-bg img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(1.08) saturate(1.04);
  }
  .ly-applications-hero::before {
    display: none;
  }
  .ly-applications-hero .container {
    padding-top: 44px;
  }
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ly-forest-darker);
  color: rgba(255,255,255,0.72);
  font-size: var(--fs-tiny);
  letter-spacing: 0.05em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.topbar-info span,
.topbar-info a { color: inherit; }
.topbar-info a:hover { color: var(--ly-mint); }
@media (max-width: 640px) {
  .topbar { display: none; }
}

/* ---------- Site Header / Nav ---------- */
.site-header {
  position: sticky; /* 鐵律 */
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ly-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ly-forest);
}
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--ly-forest);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Noto Serif TC', serif;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.05em;
}
/* Real logo image variant */
.brand-logo-img {
  height: 48px;
  width: auto;
  display: block;
}
/* Footer — 白底名片卡包住原色 logo（避免反白把彩色地球 icon 變成雜訊） */
.site-footer .brand {
  background: #fff;
  padding: 12px 18px;
  border-radius: 4px;
  align-self: flex-start;
  display: inline-flex;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.site-footer .brand-logo-img {
  filter: none;
  opacity: 1;
  height: 40px;
}
.brand-text strong {
  display: block;
  font-family: 'Noto Serif TC', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ly-ink);
  letter-spacing: 0.05em;
  line-height: 1;
}
.brand-text small {
  display: block;
  font-size: 0.7rem;
  color: var(--ly-text-soft);
  letter-spacing: 0.22em;
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-item {
  position: relative;
}
.nav-item > a {
  display: inline-block;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ly-text);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-item:hover > a,
.nav-item.active > a {
  color: var(--ly-forest);
  border-bottom-color: var(--ly-forest);
}
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--ly-paper);
  border: 1px solid var(--ly-line);
  border-radius: var(--ly-radius);
  box-shadow: var(--ly-shadow-md);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-item:hover .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-submenu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--ly-text);
  transition: background 0.15s, color 0.15s;
}
.nav-submenu li a:hover {
  background: var(--ly-mint-soft);
  color: var(--ly-forest);
}

/* ---------- Language Switcher (TW / EN / JP) ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--ly-line);
  border-radius: 4px;
  overflow: hidden;
  margin-left: 16px;
}
.lang-switch a,
.lang-switch span {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ly-text-soft);
  background: transparent;
  border-right: 1px solid var(--ly-line);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  user-select: none;
}
.lang-switch a:last-child,
.lang-switch span:last-child { border-right: 0; }
.lang-switch a:hover { background: var(--ly-mint-soft); color: var(--ly-forest); }
.lang-switch .is-active {
  background: var(--ly-forest);
  color: #fff;
  cursor: default;
}
.lang-switch .is-disabled {
  color: var(--ly-silver);
  cursor: not-allowed;
  opacity: 0.55;
}
@media (max-width: 1024px) {
  .lang-switch {
    margin-left: 0;
    margin-top: 16px;
    align-self: flex-start;
    margin-left: 24px;
  }
}

/* ---------- Hero: FULL-WIDTH BANNER (老一輩大器版) ---------- */
.ly-hero--banner {
  position: relative;
  padding: 0;
  min-height: 620px;
  display: grid;
  place-items: center;
  background: var(--ly-forest-darker);
  overflow: hidden;
  isolation: isolate;
}
.ly-hero--banner .ly-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.ly-hero--banner .ly-hero-bg picture,
.ly-hero--banner .ly-hero-bg img {
  width: 100%;
  height: 100%;
  display: block;
}
.ly-hero--banner .ly-hero-bg img {
  object-fit: cover;
  object-position: center;
}
.ly-hero--banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,38,27,0.54) 0%, rgba(13,38,27,0.34) 42%, rgba(13,38,27,0.76) 100%),
    radial-gradient(circle at 50% 48%, rgba(8,24,18,0.44) 0%, rgba(8,24,18,0.28) 34%, transparent 62%);
}
.ly-hero--banner .container {
  position: relative;
  z-index: 1;
  padding-top: 88px;
  padding-bottom: 72px;
  width: 100%;
}
.ly-hero--banner .ly-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.ly-hero--banner .ly-hero-eyebrow {
  justify-content: center;
}
.ly-hero--banner .ly-hero-eyebrow::before,
.ly-hero--banner .ly-hero-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--ly-mint);
}
.ly-hero--banner h1 {
  font-size: clamp(2.35rem, 4.6vw, 4rem);
  line-height: 1.14;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.ly-hero--banner p.lead {
  max-width: 720px;
  margin: 0 auto 32px;
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.78;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.ly-hero--banner .ly-hero-cta {
  justify-content: center;
}
.ly-hero--banner .ly-hero-stats {
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  padding-top: 24px;
  border-top-color: rgba(255,255,255,0.22);
}
.ly-hero--banner .ly-hero-stat {
  text-align: center;
}
@media (max-width: 768px) {
  .ly-hero--banner {
    min-height: 540px;
    display: block;
    background: var(--ly-forest-darker);
  }
  .ly-hero--banner .ly-hero-bg {
    display: none;
  }
  .ly-hero--banner .ly-hero-eyebrow::before,
  .ly-hero--banner .ly-hero-eyebrow::after {
    display: none;
  }
  .ly-hero--banner::before {
    display: none;
  }
  .ly-hero--banner .container {
    margin-top: 0;
    padding-top: 56px;
    padding-bottom: 64px;
  }
  .ly-hero--banner .ly-hero-inner {
    max-width: 520px;
  }
  .ly-hero--banner .ly-hero-eyebrow {
    margin-bottom: 20px;
    justify-content: center;
  }
  .ly-hero--banner h1 { font-size: 2.2rem; }
  .ly-hero--banner h1 .accent { display: block; }
  .ly-hero--banner h1 .accent + br { display: none; }
  .ly-hero--banner p.lead {
    font-size: 1rem;
    line-height: 1.85;
    text-shadow: none;
  }
  .ly-hero--banner .ly-hero-stats {
    position: relative;
    isolation: isolate;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
    min-height: 360px;
    margin-top: 40px;
    padding: 52px 22px;
    border-top: 0;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(9,31,22,0.34), rgba(9,31,22,0.48)),
      url('../images/hero-banner-mobile.png') center / cover no-repeat;
  }
  .ly-hero--banner .ly-hero-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% 45%, rgba(7,24,18,0.10) 0%, rgba(7,24,18,0.52) 76%);
  }
  .ly-hero--banner .ly-hero-stat {
    align-self: center;
  }
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-around;
  align-items: stretch;
  cursor: pointer;
  position: relative;
  z-index: 101; /* 確保在 sticky header 上層 */
}
.nav-toggle span {
  display: block;
  width: 100%; /* 修：原本沒設寬、column flex 預設可能渲染成 0 寬看不見 */
  height: 2px;
  background: var(--ly-forest);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
  pointer-events: none;
}
/* 開啟時 hamburger → X */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    width: min(360px, 90vw);
    background: var(--ly-paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px 0;
    box-shadow: var(--ly-shadow-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav-item > a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--ly-line);
  }
  .nav-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: var(--ly-cream);
    padding: 0;
  }
  .nav-submenu li a { padding: 10px 40px; }
}

/* ---------- Buttons ---------- */
.ly-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--ly-radius);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.ly-btn--primary {
  background: var(--ly-forest);
  color: #fff;
  border-color: var(--ly-forest);
}
.ly-btn--primary:hover {
  background: var(--ly-forest-dark);
  border-color: var(--ly-forest-dark);
  transform: translateY(-1px);
  box-shadow: var(--ly-shadow-md);
}
.ly-btn--ghost {
  background: transparent;
  color: var(--ly-forest);
  border-color: var(--ly-silver);
}
.ly-btn--ghost:hover {
  border-color: var(--ly-forest);
  background: var(--ly-mint-soft);
}
.ly-btn--light {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-color: rgba(255,255,255,0.30);
  backdrop-filter: blur(4px);
}
.ly-btn--light:hover {
  background: #fff;
  color: var(--ly-forest);
}
.ly-btn--arrow::after {
  content: '→';
  font-size: 1.05em;
  transition: transform 0.2s;
}
.ly-btn--arrow:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */
.ly-hero {
  position: relative;
  background: linear-gradient(135deg, var(--ly-forest-darker) 0%, var(--ly-forest) 60%, var(--ly-steel) 100%);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 100px;
}
.ly-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(168,213,186,0.15) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(168,213,186,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.ly-hero .container {
  position: relative;
  z-index: 1;
}
.ly-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .ly-hero { padding: 80px 0 64px; }
  .ly-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.ly-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-small);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ly-mint);
  margin-bottom: 24px;
  font-weight: 700;
}
.ly-hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--ly-mint);
}
.ly-hero h1 {
  font-size: var(--fs-mega);
  color: #fff;
  line-height: 1.25;
  margin-bottom: 24px;
  font-weight: 900;
}
.ly-hero h1 .accent {
  color: var(--ly-mint);
  font-style: normal;
}
.ly-hero p.lead {
  font-size: var(--fs-lead);
  color: rgba(255,255,255,0.80);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.85;
}
.ly-hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.ly-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.ly-hero-stat strong {
  display: block;
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 900;
  color: #F5D77B; /* 鵝黃 · 深森綠的黃金搭檔 */
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
  text-shadow:
    0 2px 12px rgba(0,0,0,0.55),
    0 4px 24px rgba(0,0,0,0.35),
    0 0 24px rgba(245, 215, 123, 0.25),
    0 0 1px rgba(60, 40, 0, 0.5);
}
.ly-hero-stat span {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.12em;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Home hero: keep the stronger HTML typography and move actions below. */
.ly-hero--composed {
  position: relative;
  padding: 0;
  min-height: clamp(760px, 44vw, 880px);
  display: grid;
  place-items: center;
  background: var(--ly-forest-darker);
  overflow: hidden;
  isolation: isolate;
}
.ly-hero--composed .ly-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
}
.ly-hero--composed .ly-hero-bg picture,
.ly-hero--composed .ly-hero-bg img {
  width: 100%;
  height: 100%;
  display: block;
}
.ly-hero--composed .ly-hero-bg img {
  object-fit: cover;
  object-position: center;
  filter: contrast(1.06) saturate(1.05) brightness(1.03);
}
.ly-hero--composed::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  background:
    radial-gradient(ellipse 38% 50% at 50% 43%, rgba(7,24,18,0.27) 0%, rgba(7,24,18,0.13) 42%, rgba(7,24,18,0.025) 66%, transparent 84%),
    linear-gradient(180deg, rgba(13,38,27,0.03) 0%, transparent 48%, rgba(13,38,27,0.10) 100%);
}
.ly-hero--composed .container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 86px;
  padding-bottom: 58px;
}
.ly-hero--composed .ly-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.ly-hero--composed h1 {
  color: #fff;
  text-shadow:
    0 3px 18px rgba(0,0,0,0.58),
    0 1px 2px rgba(0,0,0,0.46);
}
.ly-hero--composed h1 .accent {
  color: #C1E8CC;
}
.ly-hero--composed p.lead {
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 12px rgba(0,0,0,0.58);
}
.ly-hero--composed .ly-hero-stats {
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 38px auto 0;
  padding-top: 22px;
  border-top-color: rgba(255,255,255,0.26);
}
.ly-hero-actions {
  background: linear-gradient(90deg, var(--ly-forest-darker), var(--ly-forest), var(--ly-forest-darker));
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(13,38,27,0.18);
  padding: 18px 0;
}
.ly-hero-actions .ly-hero-cta {
  justify-content: center;
}

@media (max-width: 768px) {
  .ly-hero--composed {
    min-height: 670px;
    display: grid;
  }
  .ly-hero--composed .ly-hero-bg {
    display: block;
  }
  .ly-hero--composed .ly-hero-bg img {
    object-position: center top;
  }
  .ly-hero--composed::before {
    display: block;
    background:
      radial-gradient(ellipse 70% 54% at 50% 38%, rgba(7,24,18,0.31) 0%, rgba(7,24,18,0.15) 42%, rgba(7,24,18,0.035) 68%, transparent 86%),
      linear-gradient(180deg, rgba(9,31,22,0.06) 0%, transparent 46%, rgba(9,31,22,0.20) 100%);
  }
  .ly-hero--composed .container {
    margin-top: 0;
    padding-top: 58px;
    padding-bottom: 48px;
  }
  .ly-hero--composed .ly-hero-inner {
    max-width: 520px;
  }
  .ly-hero--composed .ly-hero-eyebrow {
    margin-bottom: 18px;
    justify-content: center;
  }
  .ly-hero--composed h1 {
    font-size: 2.15rem;
  }
  .ly-hero--composed h1 .accent {
    display: block;
  }
  .ly-hero--composed h1 .accent + br {
    display: none;
  }
  .ly-hero--composed p.lead {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.96rem;
    line-height: 1.82;
    text-shadow: 0 2px 14px rgba(0,0,0,0.5);
  }
  .ly-hero--composed .ly-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 12px;
    min-height: 0;
    margin-top: 32px;
    padding: 26px 0 0;
    border-top: 1px solid rgba(255,255,255,0.20);
    background: none;
    overflow: visible;
  }
  .ly-hero--composed .ly-hero-stats::before {
    display: none;
  }
  .ly-hero-actions {
    padding: 16px 0;
  }
  .ly-hero-actions .ly-hero-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .ly-hero-actions .ly-btn {
    justify-content: center;
    min-height: 52px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Hero visual (right) — image placeholder block */
.ly-hero-visual {
  position: relative;
}
.ly-hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  padding: 32px;
  border-radius: 8px;
  position: relative;
}

/* ---------- Image Placeholder ---------- */
.ly-img {
  position: relative;
  width: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(31, 78, 61, 0.06),
      rgba(31, 78, 61, 0.06) 12px,
      rgba(31, 78, 61, 0.10) 12px,
      rgba(31, 78, 61, 0.10) 24px
    ),
    linear-gradient(135deg, var(--ly-mint-soft), var(--ly-silver-soft));
  border: 1px dashed var(--ly-silver);
  border-radius: var(--ly-radius);
  display: grid;
  place-items: center;
  color: var(--ly-forest);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-align: center;
  padding: 24px;
  overflow: hidden;
}
.ly-img::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(31,78,61,0.18);
  border-radius: 2px;
  pointer-events: none;
}
.ly-img-label {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 2px;
  font-weight: 500;
  max-width: 80%;
}
.ly-img-label small {
  display: block;
  font-size: 0.7rem;
  color: var(--ly-text-soft);
  margin-top: 4px;
  letter-spacing: 0.05em;
}
.ly-img--16x9 { aspect-ratio: 16 / 9; }
.ly-img--4x3 { aspect-ratio: 4 / 3; }
.ly-img--1x1 { aspect-ratio: 1 / 1; }
.ly-img--3x4 { aspect-ratio: 3 / 4; }
.ly-img--wide { aspect-ratio: 21 / 9; }
.ly-img--dark {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.04),
      rgba(255,255,255,0.04) 12px,
      rgba(255,255,255,0.07) 12px,
      rgba(255,255,255,0.07) 24px
    ),
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-color: rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.85);
}
.ly-img--dark .ly-img-label {
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.95);
}
.ly-img--dark .ly-img-label small { color: rgba(255,255,255,0.65); }

/* ---------- Cards ---------- */
.ly-card {
  background: var(--ly-paper);
  border: 1px solid var(--ly-line);
  border-radius: var(--ly-radius);
  padding: 32px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.ly-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ly-shadow-md);
  border-color: var(--ly-mint);
}
.ly-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ly-radius);
  background: var(--ly-mint-soft);
  color: var(--ly-forest);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.ly-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 12px;
}
.ly-card p {
  color: var(--ly-text);
  font-size: 0.95rem;
  line-height: 1.85;
}

/* Grid 變體 */
.ly-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.ly-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ly-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) {
  .ly-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ly-grid-2,
  .ly-grid-3,
  .ly-grid-4 { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Pillars (3 大支柱、研發頁專用樣式) ---------- */
.ly-pillar {
  position: relative;
  padding: 40px 32px;
  background: var(--ly-paper);
  border-left: 3px solid var(--ly-forest);
  border-radius: 0 var(--ly-radius) var(--ly-radius) 0;
  box-shadow: var(--ly-shadow-sm);
}
.ly-pillar-number {
  font-family: 'Noto Serif TC', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--ly-mint);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}
.ly-pillar h3 {
  font-size: var(--fs-h3);
  margin-bottom: 12px;
  color: var(--ly-forest);
}

/* ---------- Product card ---------- */
.ly-product {
  background: var(--ly-paper);
  border: 1px solid var(--ly-line);
  border-radius: var(--ly-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.ly-product:hover {
  transform: translateY(-4px);
  box-shadow: var(--ly-shadow-md);
  border-color: var(--ly-forest);
}
.ly-product .ly-img { border: 0; border-radius: 0; }
.ly-product-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ly-product-tag {
  display: inline-block;
  font-size: var(--fs-tiny);
  letter-spacing: 0.15em;
  color: var(--ly-forest);
  background: var(--ly-mint-soft);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
  align-self: flex-start;
  font-weight: 700;
}
.ly-product-tag--toxic { color: var(--ly-steel); background: var(--ly-silver-soft); }
.ly-product h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.ly-product p {
  font-size: 0.9rem;
  color: var(--ly-text-soft);
  margin-bottom: 16px;
  flex: 1;
}
.ly-product-meta {
  font-size: var(--fs-tiny);
  color: var(--ly-text-soft);
  letter-spacing: 0.08em;
  padding-top: 12px;
  border-top: 1px solid var(--ly-line);
  display: flex;
  justify-content: space-between;
}

/* ---------- Stats bar ---------- */
.ly-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--ly-line);
  border-radius: var(--ly-radius);
  background: var(--ly-paper);
  overflow: hidden;
}
.ly-stats-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--ly-line);
}
.ly-stats-item:last-child { border-right: 0; }
.ly-stats-item strong {
  display: block;
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 900;
  color: var(--ly-forest);
  line-height: 1;
  margin-bottom: 10px;
}
.ly-stats-item span {
  font-size: var(--fs-small);
  color: var(--ly-text-soft);
  letter-spacing: 0.1em;
}
@media (max-width: 768px) {
  .ly-stats { grid-template-columns: repeat(2, 1fr); }
  .ly-stats-item { border-right: 0; border-bottom: 1px solid var(--ly-line); }
  .ly-stats-item:nth-child(odd) { border-right: 1px solid var(--ly-line); }
  .ly-stats-item:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- Spec table (產品規格 / 認證) ---------- */
.ly-spec {
  width: 100%;
  border-collapse: collapse;
  background: var(--ly-paper);
  border: 1px solid var(--ly-line);
  border-radius: var(--ly-radius);
  overflow: hidden;
}
.ly-spec th,
.ly-spec td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--ly-line);
  font-size: 0.92rem;
}
.ly-spec tr:last-child th,
.ly-spec tr:last-child td { border-bottom: 0; }
.ly-spec th {
  width: 30%;
  background: var(--ly-cream);
  font-weight: 700;
  color: var(--ly-forest);
  letter-spacing: 0.05em;
}
.ly-spec td { color: var(--ly-text); }

/* ---------- Badge ---------- */
.ly-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--ly-mint-soft);
  color: var(--ly-forest);
  border-radius: 2px;
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.ly-badge--outline {
  background: transparent;
  border: 1px solid var(--ly-forest);
}
.ly-badge--steel {
  background: var(--ly-silver-soft);
  color: var(--ly-steel);
}

/* ---------- Cert chip ---------- */
.ly-cert-chip {
  background: var(--ly-paper);
  border: 1px solid var(--ly-line);
  padding: 20px;
  text-align: center;
  border-radius: var(--ly-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.ly-cert-chip:hover {
  border-color: var(--ly-forest);
  transform: translateY(-2px);
}
.ly-cert-chip .ly-img {
  width: 80px;
  height: 80px;
  margin-bottom: 8px;
}
.ly-cert-chip strong {
  font-size: 0.95rem;
  color: var(--ly-forest);
  display: block;
  font-family: 'Noto Serif TC', serif;
}
.ly-cert-chip span {
  font-size: var(--fs-tiny);
  color: var(--ly-text-soft);
  letter-spacing: 0.05em;
}

/* ---------- Form ---------- */
.ly-form {
  display: grid;
  gap: 20px;
}
.ly-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .ly-form .row-2 { grid-template-columns: 1fr; }
}
.ly-field { display: flex; flex-direction: column; gap: 6px; }
.ly-field label {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ly-ink);
  letter-spacing: 0.03em;
}
.ly-field label .req { color: var(--ly-forest); margin-left: 2px; }
.ly-field input,
.ly-field select,
.ly-field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--ly-silver);
  border-radius: var(--ly-radius);
  background: var(--ly-paper);
  color: var(--ly-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.ly-field input:focus,
.ly-field select:focus,
.ly-field textarea:focus {
  outline: 0;
  border-color: var(--ly-forest);
  box-shadow: 0 0 0 3px rgba(31,78,61,0.10);
}
.ly-field textarea { resize: vertical; min-height: 140px; }

/* ---------- Article card (knowledge 頁) ---------- */
.ly-article {
  display: flex;
  flex-direction: column;
  background: var(--ly-paper);
  border: 1px solid var(--ly-line);
  border-radius: var(--ly-radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.ly-article:hover {
  transform: translateY(-4px);
  box-shadow: var(--ly-shadow-md);
}
.ly-article .ly-img { border: 0; border-radius: 0; }
.ly-article-body { padding: 24px; }
.ly-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-tiny);
  color: var(--ly-text-soft);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.ly-article-meta strong {
  color: var(--ly-forest);
  font-weight: 700;
}
.ly-article h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.5;
}
.ly-article p {
  font-size: 0.9rem;
  color: var(--ly-text-soft);
}

/* ---------- Application scene card ---------- */
.ly-scene {
  position: relative;
  overflow: hidden;
  border-radius: var(--ly-radius);
  background: var(--ly-steel);
  color: #fff;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}
.ly-scene .ly-img {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  z-index: 0;
}
.ly-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15,40,30,0.75) 80%, rgba(15,40,30,0.95) 100%);
  z-index: 1;
}
.ly-scene > * { position: relative; z-index: 2; }
.ly-scene h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.ly-scene p {
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
  margin: 0;
}
.ly-applications-hero .ly-scene {
  min-height: 190px;
  padding: 24px;
  background: rgba(7,24,18,0.22);
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
  backdrop-filter: blur(6px);
}
.ly-applications-hero .ly-scene .ly-img {
  display: none;
}
.ly-applications-hero .ly-scene::after {
  display: none;
}
.ly-applications-hero .ly-scene h3 {
  font-size: 1.25rem;
}
.ly-applications-hero .ly-scene p {
  color: rgba(255,255,255,0.78);
}
@media (max-width: 768px) {
  .ly-applications-hero .ly-scene {
    min-height: 150px;
  }
}

/* ---------- Breadcrumb ---------- */
.ly-breadcrumb {
  font-size: var(--fs-small);
  color: var(--ly-text-soft);
  letter-spacing: 0.05em;
  padding: 20px 0 0;
}
.ly-breadcrumb a { color: var(--ly-text-soft); }
.ly-breadcrumb a:hover { color: var(--ly-forest); }
.ly-breadcrumb span { margin: 0 8px; opacity: 0.5; }

/* ---------- Page header (sub-pages) ---------- */
.ly-pagehead {
  background: linear-gradient(135deg, var(--ly-forest-darker), var(--ly-forest));
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.ly-pagehead::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(168,213,186,0.12) 0%, transparent 50%);
}
.ly-pagehead .container { position: relative; }
.ly-pagehead h1 {
  font-size: var(--fs-h1);
  color: #fff;
  margin-bottom: 16px;
  font-weight: 900;
}
.ly-pagehead p {
  font-size: var(--fs-lead);
  color: rgba(255,255,255,0.80);
  max-width: 720px;
  line-height: 1.85;
}
@media (max-width: 768px) {
  .ly-pagehead { padding: 64px 0 56px; }
}

/* ---------- Feature list（簡單的圖示+文字） ---------- */
.ly-feat-list {
  display: grid;
  gap: 20px;
}
.ly-feat-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: flex-start;
}
.ly-feat-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ly-mint-soft);
  color: var(--ly-forest);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.9rem;
}
.ly-feat-item h4 {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--ly-ink);
}
.ly-feat-item p {
  font-size: 0.92rem;
  color: var(--ly-text);
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ly-forest-darker);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 24px;
  font-size: 0.9rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 700;
}
.site-footer a { color: rgba(255,255,255,0.65); }
.site-footer a:hover { color: var(--ly-mint); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .brand-logo {
  background: var(--ly-mint);
  color: var(--ly-forest-darker);
}
.footer-brand strong { color: #fff; }
.footer-brand small { color: rgba(255,255,255,0.55); }
.footer-brand p {
  margin-top: 16px;
  font-size: 0.85rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.55);
}
.footer-list li { margin-bottom: 8px; }
.footer-list li a { font-size: 0.88rem; }
.footer-contact dt {
  color: var(--ly-mint);
  font-size: var(--fs-tiny);
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 4px;
}
.footer-contact dt:first-child { margin-top: 0; }
.footer-contact dd {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.80);
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--fs-tiny);
  color: rgba(255,255,255,0.40);
  letter-spacing: 0.05em;
}

/* ---------- Utils ---------- */
.ly-text-center { text-align: center; }
.ly-mt-0 { margin-top: 0; }
.ly-mt-16 { margin-top: 16px; }
.ly-mt-24 { margin-top: 24px; }
.ly-mt-32 { margin-top: 32px; }
.ly-mt-48 { margin-top: 48px; }
.ly-mt-64 { margin-top: 64px; }
.ly-mb-16 { margin-bottom: 16px; }
.ly-mb-24 { margin-bottom: 24px; }
.ly-mb-48 { margin-bottom: 48px; }
.ly-max-720 { max-width: 720px; }
.ly-max-720.ly-text-center { margin-left: auto; margin-right: auto; }

/* ---------- Reveal animation (very subtle) ---------- */
@keyframes ly-fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.ly-reveal {
  animation: ly-fadeUp 0.7s ease both;
}
.ly-reveal[data-delay="1"] { animation-delay: 0.1s; }
.ly-reveal[data-delay="2"] { animation-delay: 0.2s; }
.ly-reveal[data-delay="3"] { animation-delay: 0.3s; }
.ly-reveal[data-delay="4"] { animation-delay: 0.4s; }

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute; top: -100px; left: 8px;
  background: var(--ly-forest); color: #fff;
  padding: 12px 20px; z-index: 999; border-radius: 4px;
}
.skip-link:focus { top: 8px; }

/* ============================================================
   IN-APP BROWSER OVERRIDES (LINE / FB / IG / WeChat)
   依 /clients/_docs/IN-APP-BROWSER-FIXES.md §7B
   ============================================================ */

/* site-header 在 in-app 時：強制 solid 白底（backdrop-filter 失靈、會跟 LINE 工具列融在一起）*/
html.is-in-app .site-header {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: -webkit-sticky;
  position: sticky;
}
/* iPhone notch / safe area */
.site-header { padding-top: env(safe-area-inset-top, 0); }

/* backdrop-filter 完全不支援的瀏覽器 fallback */
@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .site-header { background: #ffffff; }
}

/* 漢堡按鈕在 in-app 時加白底框 + 深色 bar、避免融進背景 */
html.is-in-app .nav-toggle {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(31, 78, 61, 0.20);
  border-radius: 6px;
}
html.is-in-app .nav-toggle span {
  background: var(--ly-forest-darker);
}

/* flex container 內元素 min-width: 0、避免長英文撐爆 */
.topbar .container,
.site-header .container,
.nav { min-width: 0; }
.topbar .container > *,
.site-header .container > *,
.nav > * { min-width: 0; flex-shrink: 1; }

/* ============================================================
   MOBILE 字級 PX OVERRIDE（鎖死、不用 clamp/vw）
   依 /clients/_docs/IN-APP-BROWSER-FIXES.md §2 Step 2
   ============================================================ */
@media (max-width: 768px) {
  /* Hero */
  .ly-hero h1 { font-size: 32px !important; line-height: 1.2 !important; }
  .ly-hero p.lead { font-size: 15px !important; line-height: 1.85 !important; }
  .ly-hero-stat strong { font-size: 26px !important; }
  .ly-hero-stat span { font-size: 11px !important; }
  /* Section heads */
  .ly-section-title { font-size: 24px !important; line-height: 1.3 !important; }
  .ly-section-lead { font-size: 15px !important; }
  .ly-eyebrow { font-size: 12px !important; }
  /* Page head */
  .ly-pagehead h1 { font-size: 28px !important; line-height: 1.25 !important; }
  .ly-pagehead p { font-size: 15px !important; }
  /* SEO intro */
  .ly-seo-intro h2 { font-size: 22px !important; }
  /* Pillar / Card titles */
  .ly-pillar h3,
  .ly-card h3,
  .ly-story-meta h3 { font-size: 18px !important; }
  /* Body */
  body { font-size: 15px !important; }
}
