:root {
  --red: #a01b34;
  --red-dark: #781127;
  --vi-cream: #f4eedf;
  --vi-soft-white: #fbfaf7;
  --paper: #ffffff;
  --white: #ffffff;
  --sand: #f4eedf;
  --mist: #f3f5f7;
  --ink: #1b1917;
  --muted: #6d6861;
  --line: #e4e6e8;
  --dark: #111111;
  --shell: min(1400px, calc(100% - 80px));
  --header-height: 56px;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 18px 50px rgba(24, 27, 29, 0.08);
  --shadow-header: 0 6px 20px rgba(23, 28, 34, 0.07), 0 1px 2px rgba(23, 28, 34, 0.05);
  --shadow-menu: 0 20px 48px rgba(23, 28, 34, 0.13), 0 3px 10px rgba(23, 28, 34, 0.06);
  --shadow-card: 0 10px 28px rgba(23, 28, 34, 0.08), 0 2px 5px rgba(23, 28, 34, 0.05);
  --shadow-card-hover: 0 18px 42px rgba(23, 28, 34, 0.14), 0 4px 10px rgba(23, 28, 34, 0.07);
  --shadow-control: 0 6px 18px rgba(23, 28, 34, 0.14), 0 1px 3px rgba(23, 28, 34, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  z-index: 18;
  inset: 0;
  background: rgba(17, 17, 17, 0.24);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

body.mega-open::after { opacity: 1; pointer-events: auto; }

body.menu-open,
body.search-open { overflow: hidden; }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button,
input { font: inherit; }

button { color: inherit; }

.page-shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 50;
  left: 16px;
  top: -80px;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--dark);
  color: var(--white);
}

.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.utility-bar {
  display: none;
  background: var(--mist);
  color: #4f565d;
  font-size: 11px;
  letter-spacing: 0;
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
}

.utility-note { color: #7d858c; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(20, 25, 28, 0.06);
  transition: background-color 260ms ease, box-shadow 260ms ease;
}

.site-header.is-scrolled {
  background: var(--white);
  box-shadow: var(--shadow-header), 0 1px 0 rgba(20, 25, 28, 0.06);
  backdrop-filter: none;
}

.main-nav-wrap { position: relative; z-index: 2; background: var(--white); }

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  gap: 22px;
}

.brand {
  flex: 0 0 118px;
  display: flex;
  align-items: center;
}

.brand img { width: 104px; height: auto; }

.primary-nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  flex: 1;
  min-width: 0;
  align-self: stretch;
}

.nav-item { position: static; display: flex; align-items: stretch; }

.nav-trigger {
  position: relative;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  padding: 0 10px;
  cursor: pointer;
  color: #181a1c;
  font-size: 12.5px;
  font-weight: 520;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-trigger::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 2px;
  background: var(--red);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 180ms ease, transform 240ms var(--ease-out);
}

.nav-trigger:hover,
.nav-trigger:focus-visible,
.nav-trigger.is-active { color: var(--red); }

.nav-trigger:hover::after,
.nav-trigger:focus-visible::after,
.nav-trigger.is-active::after { opacity: 1; transform: scaleX(1); }

.icon-button:focus-visible,
.round-button:focus-visible,
.pause-button:focus-visible,
.button:focus-visible,
.text-link:focus-visible,
.mega-menu a:focus-visible,
.tool-link:focus-visible,
.config-link:focus-visible,
.category-card:focus-visible,
.case-card:focus-visible,
.product-card a:focus-visible,
.mobile-menu-links a:focus-visible,
.footer-grid a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.nav-tools { display: flex; align-self: stretch; align-items: center; gap: 12px; flex: 0 0 auto; }

.nav-tools .nav-item--member { position: static; align-self: stretch; align-items: center; }

.nav-tools > .icon-button,
.nav-tools > .tool-link,
.nav-tools .member-tool-button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  padding: 0;
  line-height: 1;
}

.nav-tools > .tool-link,
.nav-tools .member-tool-button { display: inline-grid; }

.nav-tools .member-tool-button {
  justify-content: center;
  border-radius: 50%;
  color: #1f2326;
}

.nav-tools .member-tool-button::after { display: none; }

.nav-tools .member-tool-button:hover,
.nav-tools .member-tool-button:focus-visible,
.nav-tools .member-tool-button.is-active { background: #f1f3f4; color: var(--red); }

.member-glyph {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.member-glyph::before,
.member-glyph::after {
  position: absolute;
  left: 50%;
  border: 1.5px solid currentColor;
  content: "";
  transform: translateX(-50%);
}

.member-glyph::before {
  top: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.member-glyph::after {
  bottom: 1px;
  width: 14px;
  height: 7px;
  border-radius: 8px 8px 3px 3px;
}

.icon-button.mobile-member-button { display: none; }

.icon-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.icon-button:hover { color: var(--red); }

.search-glyph {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.search-glyph::before {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 11px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
}

.search-glyph::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 6px;
  height: 1.5px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.tool-link,
.config-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34383c;
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-tools > .tool-link { justify-content: center; font-weight: 520; }

.tool-link:hover,
.config-link:hover { color: var(--red); }

.tool-link--accent { color: var(--red); font-weight: 600; }

.config-link { color: var(--ink); font-weight: 600; }

.floating-tools {
  position: fixed;
  z-index: 17;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.floating-tools-panel {
  position: relative;
  width: 82px;
  overflow: hidden;
  border: 1px solid rgba(160, 27, 52, 0.32);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(23, 28, 34, 0.12), 0 2px 6px rgba(23, 28, 34, 0.06);
  animation: floating-tools-in 280ms var(--ease-out) both;
}

.floating-tools-head {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.floating-tools-head > div { display: grid; gap: 1px; }
.floating-tools-head span { color: var(--ink); font-size: 13px; font-weight: 680; }
.floating-tools-head small { color: #8a9095; font-size: 10px; }

.floating-tools-close {
  display: grid;
  width: 100%;
  min-height: 58px;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 7px 5px 8px;
  border: 0;
  border-top: 1px solid rgba(160, 27, 52, 0.18);
  border-radius: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.floating-tools-close span:first-child { font-size: 20px; font-weight: 400; line-height: 0.8; }
.floating-tools-close span:last-child { font-size: 11px; }

.floating-tools-links { display: grid; }

.floating-tool {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 27px auto;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-height: 68px;
  padding: 7px 4px 8px;
  border-bottom: 1px solid rgba(160, 27, 52, 0.15);
  background: transparent;
  color: var(--red);
  text-align: center;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms var(--ease-out);
}

.floating-tool:last-child { border-bottom: 0; }
.floating-tool > span:nth-child(2) { display: block; min-width: 0; }
.floating-tool strong { display: block; max-width: 72px; overflow-wrap: anywhere; font-size: 11px; font-weight: 650; line-height: 1.25; white-space: nowrap; }
.floating-tool small { display: none; }
.floating-tool b { display: none; }

.floating-tool:hover,
.floating-tool:focus-visible {
  background: var(--white);
  box-shadow: inset 3px 0 0 var(--red);
  color: var(--red);
  transform: translateX(-1px);
}

.floating-tool--primary { background: transparent; color: var(--red); }
.floating-tool--primary small { color: var(--red); }
.floating-tool--primary:hover,
.floating-tool--primary:focus-visible,
.floating-tool--primary:hover { background: var(--white); color: var(--red); }

.floating-tool--primary .floating-tool-mark { background: var(--red); color: var(--white); }

.floating-tool--backtop { border-bottom: 0; }

.floating-tool-mark {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1.4px solid currentColor;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

.floating-tools-launcher {
  display: grid;
  width: 48px;
  min-height: 66px;
  place-items: center;
  gap: 5px;
  padding: 8px 5px;
  border: 0;
  border-radius: 8px 0 0 8px;
  background: var(--red);
  box-shadow: var(--shadow-control);
  color: var(--white);
  cursor: pointer;
}

.floating-tools-launcher[hidden],
.floating-tools-panel[hidden] { display: none; }
.floating-tools-launcher-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 8px;
}
.floating-tools-launcher-icon::before {
  position: absolute;
  inset: -4px 0 0;
  content: "...";
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1;
}
.floating-tools-launcher-icon::after {
  position: absolute;
  left: 4px;
  bottom: -4px;
  width: 5px;
  height: 5px;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  background: var(--red);
  content: "";
  transform: skewY(-34deg);
}
.floating-tools-launcher strong { font-size: 10px; font-weight: 650; line-height: 1; }

.floating-tools-close:hover,
.floating-tools-close:focus-visible,
.floating-tools-launcher:hover,
.floating-tools-launcher:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

@keyframes floating-tools-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

.announcement-strip {
  position: relative;
  z-index: 31;
  background: #eceeef;
}

.announcement-inner {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #3f4448;
  font-size: 12px;
  letter-spacing: 0;
}

.announcement-inner a { border-bottom: 1px solid currentColor; color: #17191b; font-weight: 600; }

.mega-menu {
  position: absolute;
  z-index: 4;
  top: 100%;
  right: auto;
  left: 50%;
  display: grid;
  width: 100vw;
  margin-left: -50vw;
  grid-template-columns: minmax(210px, 260px) minmax(390px, 1fr) minmax(230px, 290px);
  justify-content: start;
  gap: clamp(34px, 4.2vw, 64px);
  min-height: 292px;
  padding: 38px max(40px, calc((100vw - 1160px) / 2)) 44px;
  border-top: 1px solid #e5e7e9;
  background: var(--white);
  box-shadow: var(--shadow-menu);
  backdrop-filter: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 180ms ease, transform 260ms var(--ease-out);
}

.mega-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }

.mega-menu[hidden] { display: none; }

.mobile-menu[hidden],
.search-drawer[hidden] { display: none; }

.mega-intro { max-width: 280px; }

.menu-kicker,
.mega-heading,
.eyebrow,
.footer-heading {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.mega-intro p { max-width: 260px; margin: 12px 0 22px; color: #31363a; font-size: 20px; font-weight: 540; line-height: 1.45; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 650;
}

.text-link span,
.category-overlay em,
.product-meta a span,
.evidence-cards b { font-style: normal; transition: transform 180ms ease; }

.text-link:hover span,
.category-card:hover em,
.product-meta a:hover span,
.evidence-cards a:hover b { transform: translateX(4px); }

.mega-links { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding-top: 2px; }

.mega-links > div { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }

.mega-heading { margin-bottom: 9px; color: #8a9095; font-size: 11px; }

.mega-links a { position: relative; color: #222629; font-size: 14px; }

.mega-links a:hover { color: var(--red); }

.mega-feature {
  display: grid;
  grid-template-rows: 142px auto;
  align-self: start;
  overflow: hidden;
  border: 1px solid #e7e9eb;
  background: var(--mist);
}

.mega-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }

.mega-feature:hover img { transform: scale(1.03); }

.mega-feature::after { display: none; }

.mega-feature > span { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 11px 13px; background: var(--mist); color: var(--ink); font-size: 12px; }

.mega-feature--offer { display: flex; min-height: 186px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 24px; background: var(--sand); }

.mega-feature--offer::after { display: none; }

.offer-mark { color: var(--red); font-size: 36px; font-weight: 700; line-height: 1; }

.menu-button { display: none; }

.mobile-menu,
.search-drawer { position: fixed; z-index: 50; inset: 0; background: var(--white); overflow-y: auto; }

.mobile-menu:not([hidden]) { animation: drawer-in 320ms var(--ease-out) both; }
.mobile-menu-links a { animation: drawer-link-in 420ms var(--ease-out) both; }
.mobile-menu-links a:nth-child(2) { animation-delay: 30ms; }
.mobile-menu-links a:nth-child(3) { animation-delay: 60ms; }
.mobile-menu-links a:nth-child(4) { animation-delay: 90ms; }
.mobile-menu-links a:nth-child(5) { animation-delay: 120ms; }
.mobile-menu-links a:nth-child(6) { animation-delay: 150ms; }

@keyframes drawer-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drawer-link-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

.mobile-menu-inner { padding-block: 30px 40px; }

.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.mobile-menu-links { display: grid; gap: 0; }

.mobile-menu-home {
  display: flex;
  min-height: 66px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(19px, 5.4vw, 24px);
  font-weight: 560;
}

.mobile-menu-home:hover,
.mobile-menu-home:focus-visible { color: var(--red); }

.mobile-menu-links details { border-bottom: 1px solid var(--line); }

.mobile-menu-links summary {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-size: clamp(19px, 5.4vw, 24px);
  font-weight: 560;
  letter-spacing: 0;
  list-style: none;
}

.mobile-menu-links summary::-webkit-details-marker { display: none; }

.mobile-menu-links summary span { flex: 0 0 auto; color: var(--red); font-size: 22px; font-weight: 400; transition: transform 220ms var(--ease-out); }

.mobile-menu-links details[open] summary { color: var(--red); }

.mobile-menu-links details[open] summary span { transform: rotate(45deg); }

.mobile-submenu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  padding: 0 0 20px;
}

.mobile-submenu a {
  display: flex;
  min-height: 42px;
  align-items: center;
  border-top: 1px solid #f0f1f2;
  color: #4f555a;
  font-size: 14px;
}

.mobile-submenu a:hover { color: var(--red); }

.mobile-menu-links summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.mobile-menu-actions { display: grid; gap: 12px; margin-top: 28px; }

.mobile-menu-actions .config-link,
.mobile-menu-actions .tool-link { justify-content: center; min-height: 48px; border: 1px solid var(--line); }

.mobile-menu-actions .tool-link--accent { border-color: var(--red); background: var(--red); color: var(--white); }

.hero { position: relative; background: var(--white); }

.hero-track {
  position: relative;
  height: clamp(420px, 32vw, 500px);
  min-height: 420px;
  overflow: hidden;
  background: var(--white);
}

.hero-slide { position: absolute; inset: 0; display: grid; height: 100%; grid-template-columns: minmax(0, 52fr) minmax(360px, 48fr); grid-template-areas: "media copy"; opacity: 0; pointer-events: none; transition: opacity 1300ms cubic-bezier(0.44, 0.51, 0.42, 1); }

.hero-slide.is-active { z-index: 1; opacity: 1; pointer-events: auto; will-change: opacity; }

.hero.is-offscreen .hero-slide.is-active { will-change: auto; }

.hero-copy { grid-area: copy; display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 58px clamp(36px, 4vw, 76px) 84px clamp(36px, 4vw, 72px); background: var(--white); }

.hero-copy > * { opacity: 0; transform: translateY(20px); transition: opacity 430ms ease, transform 650ms var(--ease-out); }

.hero-slide.is-active .hero-copy > * { opacity: 1; transform: translateY(0); }

.hero-slide.is-active .hero-copy .eyebrow { transition-delay: 90ms; }
.hero-slide.is-active .hero-copy h1,
.hero-slide.is-active .hero-copy h2 { transition-delay: 150ms; }
.hero-slide.is-active .hero-copy p { transition-delay: 210ms; }
.hero-slide.is-active .hero-actions { transition-delay: 270ms; }

.hero-copy h1,
.hero-copy h2 { max-width: 11em; margin: 17px 0 17px; font-family: var(--font-display); font-size: clamp(38px, 2.8vw, 50px); font-weight: 620; letter-spacing: 0; line-height: 1.12; overflow-wrap: anywhere; }

.hero-copy h1 span,
.hero-copy h2 span { display: block; color: var(--red); }

.hero-copy--formula h2 { max-width: 13em; font-size: clamp(34px, 2.45vw, 44px); }

.hero-copy p { max-width: 410px; margin: 0; color: #646b70; font-size: 15px; line-height: 1.7; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 1px solid transparent; border-radius: 2px; box-shadow: 0 4px 12px rgba(18, 18, 18, 0.08); font-size: 13px; font-weight: 650; cursor: pointer; transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 220ms ease, transform 220ms var(--ease-out); }

.button:hover { box-shadow: 0 8px 18px rgba(18, 18, 18, 0.14); transform: translateY(-2px); }
.button:active { box-shadow: 0 2px 6px rgba(18, 18, 18, 0.1); transform: translateY(0); }
.button span[aria-hidden="true"] { display: inline-block; transition: transform 220ms var(--ease-out); }
.button:hover span[aria-hidden="true"] { transform: translateX(4px); }

.button--dark { background: var(--dark); color: var(--white); }

.button--dark:hover { background: var(--red); }

.button--quiet { border-color: var(--line); background: transparent; color: var(--ink); }

.button--quiet:hover { border-color: var(--ink); }

.button--outline { border-color: rgba(36, 32, 30, 0.32); color: var(--ink); }

.button--outline:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }

.button--light { background: var(--red); color: var(--white); }

.button--light:hover { background: var(--red-dark); }

.button--ghost-light { border-color: rgba(36, 32, 30, 0.32); color: var(--ink); }

.button--ghost-light:hover { border-color: var(--ink); }

.hero-media { grid-area: media; position: relative; height: 100%; overflow: hidden; background: var(--mist); }

.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.72; transform: scale(1.025); filter: saturate(0.92); transition: opacity 1000ms ease, transform 1300ms cubic-bezier(0.44, 0.51, 0.42, 1), filter 1000ms ease; }

.hero-slide.is-active .hero-media img { opacity: 1; transform: scale(1); filter: saturate(1); }

.hero-media--trust {
  display: grid;
  place-items: center;
  background: var(--sand);
}

.trust-mark {
  display: flex;
  align-items: flex-end;
  gap: clamp(22px, 4vw, 58px);
}

.hero-media--trust .trust-mark img {
  width: clamp(210px, 22vw, 330px);
  height: auto;
  object-fit: contain;
}

.trust-mark > span {
  padding-bottom: 24px;
  color: var(--red);
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 650;
  line-height: 1.35;
}

.media-label { display: none; }

.hero-controls { position: absolute; z-index: 4; right: 0; bottom: 20px; left: 0; display: flex; align-items: center; justify-content: center; min-height: 36px; pointer-events: none; }

.hero-progress { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 20px; background: rgba(255, 255, 255, 0.72); box-shadow: 0 8px 22px rgba(20, 24, 28, 0.1); backdrop-filter: blur(10px); pointer-events: auto; }

.progress-dot { position: relative; width: 6px; height: 6px; overflow: hidden; padding: 0; border: 0; border-radius: 20px; background: rgba(22, 24, 26, 0.25); cursor: pointer; transition: width 260ms var(--ease-out); }

.progress-dot.is-active { width: 36px; background: rgba(22, 24, 26, 0.18); }

.progress-dot.is-active::after { position: absolute; inset: 0; background: var(--red); content: ""; transform: scaleX(0); transform-origin: left; animation: hero-progress 5500ms linear forwards; }

.hero.is-paused .progress-dot.is-active::after { animation-play-state: paused; }

.hero-control-actions { position: absolute; right: 0; display: flex; align-items: center; gap: 6px; pointer-events: auto; }

.round-button,
.pause-button { display: inline-grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid rgba(36, 32, 30, 0.22); border-radius: 50%; background: rgba(255, 255, 255, 0.84); cursor: pointer; backdrop-filter: blur(8px); }

.round-button:hover,
.pause-button:hover { border-color: var(--red); background: var(--red); color: var(--white); box-shadow: 0 8px 18px rgba(160, 27, 52, 0.22); transform: translateY(-2px); }

.round-button,
.pause-button { transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 220ms ease, transform 220ms var(--ease-out); }

.pause-button { font-size: 10px; }

@keyframes hero-progress { to { transform: scaleX(1); } }

.section-pad { padding-block: clamp(76px, 9vw, 132px); }

.category-section { border-radius: 36px 36px 0 0; background: var(--mist); }

.category-section.section-pad { padding-block: 0; }

.category-section > .page-shell { padding-block: 72px 88px; }

.section-heading { margin-bottom: 34px; }

.section-heading--split { display: flex; align-items: end; justify-content: space-between; gap: 24px; }

.section-heading h2,
.customize-intro h2,
.evidence-lead h2,
.contact-inner h2 { max-width: 720px; margin: 14px 0 0; font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 48px); font-weight: 620; letter-spacing: 0; line-height: 1.12; }

.category-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(400px, 0.85fr); grid-template-rows: repeat(3, 164px); gap: 14px; }

.category-card { position: relative; display: grid; min-width: 0; overflow: hidden; border: 1px solid #e2e5e7; border-radius: 6px; background: var(--white); transition: box-shadow 260ms ease, transform 320ms var(--ease-out); }

.category-card:not(.category-card--wide) { grid-template-columns: 43% minmax(0, 1fr); }

.category-card--wide { grid-row: 1 / -1; grid-template-rows: minmax(0, 1fr) auto; }

.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1); }

.category-card::after { display: none; }

.category-card:hover img { transform: scale(1.035); }

.category-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }

.category-overlay { position: static; display: grid; gap: 3px; padding: 13px 16px 15px; color: var(--ink); }

.category-overlay strong { font-size: 18px; font-weight: 600; letter-spacing: 0; }

.category-overlay span { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #77818a; font-size: 11px; }

.customize-section { background: var(--white); border-top: 1px solid #edf0f2; }

.customize-grid { display: grid; grid-template-columns: minmax(270px, 0.9fr) minmax(420px, 1.1fr); gap: clamp(52px, 10vw, 160px); }

.customize-intro p,
.evidence-lead p { max-width: 425px; margin: 20px 0 28px; color: var(--muted); font-size: 16px; }

.process-list { border-top: 1px solid rgba(36, 32, 30, 0.22); }

.process-item { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid rgba(36, 32, 30, 0.22); }

.process-number { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: 0; }

.process-item h3 { margin: 0; font-size: 19px; font-weight: 600; }

.process-item p { max-width: 430px; margin: 5px 0 0; color: var(--muted); font-size: 14px; }

.product-section { background: var(--white); }

.product-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.product-card { min-width: 0; }

.product-image { position: relative; display: block; aspect-ratio: 1.2 / 1; overflow: hidden; background: var(--mist); }

.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1); }

.product-image:hover img { transform: scale(1.035); }

.swatches { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 5px; padding: 7px; background: rgba(255, 255, 255, 0.9); }

.swatches i { display: block; width: 12px; height: 12px; border-radius: 50%; background: #d2cbc0; }

.swatches i:nth-child(2) { background: #8f887e; }

.swatches i:nth-child(3) { background: var(--red); }

.product-card { border: 1px solid #e5e9ed; background: var(--white); }

.product-meta { padding: 17px 18px 20px; }

.product-meta > span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }

.product-meta h3 { margin: 7px 0 2px; font-size: 20px; font-weight: 570; }

.product-meta p { margin: 0; color: var(--muted); font-size: 13px; }

.product-meta a { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; color: var(--red); font-size: 12px; font-weight: 650; }

.offer-section { background: var(--mist); }

.offer-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 80px; }

.offer-inner h2 { max-width: 680px; margin: 14px 0 0; font-family: var(--font-display); font-size: clamp(30px, 3.1vw, 46px); font-weight: 620; letter-spacing: 0; line-height: 1.12; }

.offer-copy { max-width: 390px; }

.offer-copy p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

.case-section { background: var(--white); }

.case-heading { align-items: flex-end; }

.case-intro-note {
  max-width: 660px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.case-heading-actions {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  flex-direction: column;
  gap: 16px;
}

.case-filters {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.case-filter {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #dfe3e6;
  border-radius: 999px;
  background: var(--white);
  color: #596167;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease-out);
}

.case-filter:hover,
.case-filter:focus-visible { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.case-filter.is-active { border-color: var(--dark); background: var(--dark); color: var(--white); box-shadow: 0 6px 16px rgba(17, 17, 17, 0.16); }

.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.case-card { position: relative; display: grid; grid-template-rows: 240px auto; min-height: auto; overflow: hidden; border: 1px solid #e5e9ed; background: var(--white); }

.case-card--large { grid-column: span 2; min-height: auto; grid-template-rows: 330px auto; }

.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1); }

.case-card:hover img { transform: scale(1.035); }

.case-card::after { display: none; }

.case-card > span { position: static; display: grid; gap: 4px; padding: 16px 18px 20px; color: var(--ink); }

.case-card strong { font-size: 18px; font-weight: 580; }

.case-card small { color: #77818a; font-size: 12px; }

.evidence-section { border-top: 1px solid #eceeef; background: var(--white); color: var(--ink); }

.evidence-grid { display: grid; grid-template-columns: 0.76fr 1.24fr; align-items: center; gap: clamp(50px, 8vw, 120px); }

.evidence-lead h2 { max-width: 500px; }

.evidence-lead p { color: var(--muted); }

.quality-lockup {
  display: flex;
  max-width: 390px;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(36, 32, 30, 0.18);
}

.quality-lockup img { width: 72px; height: auto; }

.quality-lockup span { display: grid; gap: 2px; }
.quality-lockup strong { font-size: 16px; font-weight: 650; }
.quality-lockup small { color: var(--muted); font-size: 11px; }

.evidence-stage {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: 12px;
}

.evidence-image {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e5e9ed;
  background: var(--white);
}

.evidence-image img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.evidence-image--wide img { object-position: center; }

.evidence-image figcaption {
  padding: 13px 15px;
  color: var(--muted);
  font-size: 11px;
}

.evidence-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 64px;
  border-top: 1px solid rgba(36, 32, 30, 0.18);
}

.evidence-cards a { position: relative; display: block; min-width: 0; padding: 24px 54px 26px 22px; border-right: 1px solid rgba(36, 32, 30, 0.18); border-bottom: 1px solid rgba(36, 32, 30, 0.18); }
.evidence-cards a:first-child { padding-left: 0; }
.evidence-cards a:last-child { border-right: 0; }

.evidence-cards span { color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: 0; }

.evidence-cards h3 { margin: 8px 0 3px; font-size: 20px; font-weight: 580; }

.evidence-cards p { max-width: 390px; margin: 0; color: var(--muted); font-size: 13px; }

.evidence-cards b { position: absolute; top: 46px; right: 20px; color: var(--red); font-size: 20px; font-weight: 400; }

.contact-section { border-top: 1px solid #e5e9ed; border-bottom: 1px solid #e5e9ed; background: var(--white); color: var(--ink); }

.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 300px; }

.eyebrow--light { color: var(--red); }

.contact-inner h2 { margin-top: 14px; }

.contact-inner p { margin: 14px 0 0; color: var(--muted); font-size: 16px; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.site-footer { border-top: 1px solid #e4e7ea; background: var(--white); }

.footer-grid { display: grid; grid-template-columns: 1.65fr repeat(5, minmax(0, 1fr)); gap: 28px 24px; padding-block: 64px 54px; }

.footer-brand { min-width: 0; padding-right: 28px; }

.footer-anchor { display: block; position: relative; top: -20px; visibility: hidden; height: 0; }

.footer-brand img { width: 128px; }

.footer-brand p { margin: 17px 0 0; color: var(--ink); font-size: 15px; font-weight: 620; }

.footer-brand .footer-brand-note { max-width: 240px; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.55; }

.footer-brand-actions { display: grid; gap: 8px; margin-top: 24px; max-width: 230px; }

.footer-download,
.footer-contact-link { display: inline-flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 12px; border: 1px solid #d8dde1; background: var(--white); color: var(--ink) !important; font-size: 12px !important; font-weight: 650; }

.footer-download { border-color: var(--red); background: var(--red); color: var(--white) !important; }

.footer-download:hover,
.footer-contact-link:hover { border-color: var(--red); color: var(--red) !important; }

.footer-download:hover { background: var(--red-dark); color: var(--white) !important; }

.footer-column { display: grid; align-content: start; gap: 9px; min-width: 0; }

.footer-heading { position: relative; margin-bottom: 8px; padding-bottom: 10px; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }

.footer-heading::after { position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--red); content: ""; }

.footer-heading--sub { margin-top: 14px; }

.footer-grid a { color: #5f6870; font-size: 12px; line-height: 1.45; }

.footer-grid a:hover { color: var(--red); }

.footer-service-row { display: flex; align-items: center; gap: 18px; min-height: 54px; border-top: 1px solid #e0e4e7; color: #5f6870; font-size: 12px; }

.footer-service-row a { color: #5f6870; }

.footer-service-row a:hover { color: var(--red); }

.footer-service-spacer { flex: 1; }

.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 17px; border-top: 1px solid #e0e4e7; color: #889198; font-size: 11px; }

.footer-bottom a { color: inherit; }

.footer-bottom a:hover { color: var(--red); }

.search-drawer { z-index: 40; background: rgba(251, 250, 247, 0.98); }

.search-drawer:not([hidden]) { animation: drawer-in 300ms var(--ease-out) both; }

.reveal-item { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 720ms var(--ease-out); }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
.category-card:nth-child(2), .product-card:nth-child(2), .case-card:nth-child(2), .evidence-cards > a:nth-child(2) { transition-delay: 60ms; }
.category-card:nth-child(3), .product-card:nth-child(3), .case-card:nth-child(3), .evidence-cards > a:nth-child(3) { transition-delay: 120ms; }

.search-inner { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-content: start; padding-block: 72px; }

.search-inner h2 { max-width: 650px; margin: 16px 0 0; font-family: var(--font-display); font-size: clamp(34px, 4vw, 58px); font-weight: 620; letter-spacing: 0; line-height: 1.08; }

.search-form { grid-column: 1 / -1; display: flex; max-width: 780px; margin-top: 72px; border-bottom: 2px solid var(--ink); }

.search-form input { flex: 1; min-width: 0; padding: 15px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 22px; }

.search-form input::placeholder { color: #a59e96; }

@media (max-width: 1180px) {
  :root { --shell: min(100% - 48px, 1120px); }
  .main-nav { gap: 10px; }
  .brand { flex-basis: 106px; }
  .brand img { width: 98px; }
  .nav-trigger { padding-inline: 7px; font-size: 11.5px; }
  .nav-trigger::after { right: 7px; left: 7px; }
  .nav-tools > .tool-link { display: none; }
  .mega-menu { grid-template-columns: 230px minmax(420px, 580px); gap: 64px; padding-inline: max(32px, calc((100vw - 1020px) / 2)); }
  .mega-feature { display: none; }
  .hero-copy { padding-inline: 34px; }
  .hero-copy h1,
  .hero-copy h2 { font-size: 38px; }
  .hero-copy--formula h2 { font-size: 35px; }
}

@media (max-width: 960px) {
  :root { --shell: calc(100% - 36px); }
  .utility-note { display: none; }
  .main-nav { min-height: var(--header-height); }
  .nav-tools { margin-left: auto; }
  .primary-nav { display: none; }
  .nav-item--member { display: none; }
  .icon-button.mobile-member-button { display: inline-grid; }
  .menu-button { display: inline-grid; }
  .config-link { font-size: 11px; }
  .floating-tools { right: 0; }
  .floating-tools-panel { width: 80px; }
  .announcement-inner { justify-content: space-between; }
  .announcement-inner > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .announcement-inner a { flex: 0 0 auto; }
  .hero-track { height: 680px; min-height: 680px; }
  .hero-slide { grid-template-columns: 1fr; grid-template-rows: 300px 380px; grid-template-areas: "copy" "media"; }
  .hero-copy { min-height: 0; justify-content: center; padding: 38px max(36px, calc((100vw - 720px) / 2)) 34px; }
  .hero-copy h1,
  .hero-copy h2 { max-width: 620px; margin-block: 13px 12px; font-size: clamp(36px, 6vw, 48px); }
  .hero-copy--formula h2 { max-width: 640px; font-size: 32px; }
  .hero-copy p { font-size: 15px; }
  .hero-actions { margin-top: 15px; }
  .hero-controls { bottom: 18px; min-height: 36px; }
  .category-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 280px; }
  .category-card,
  .category-card:not(.category-card--wide),
  .category-card--wide { grid-row: auto; grid-template-columns: 1fr; grid-template-rows: 208px minmax(0, 1fr); }
  .customize-grid,
  .evidence-grid,
  .offer-inner { grid-template-columns: 1fr; gap: 34px; }
  .product-rail { grid-template-columns: repeat(3, minmax(250px, 1fr)); overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x proximity; }
  .product-card { scroll-snap-align: start; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case-card--large { grid-column: 1 / -1; min-height: 430px; }
  .contact-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 60px; }
  .footer-grid { grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-brand { grid-row: span 2; }
  .footer-brand { padding-right: 12px; }
  .footer-service-row { gap: 14px; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 28px); --header-height: 62px; }
  .utility-bar { font-size: 10px; }
  .main-nav { min-height: var(--header-height); }
  .brand { flex-basis: 96px; }
  .brand img { width: 88px; }
  .nav-tools { gap: 5px; }
  .config-link { display: none; }
  .floating-tools {
    top: auto;
    right: 0;
    bottom: 12px;
    transform: none;
  }
  .floating-tools-panel { width: 78px; }
  .floating-tool { min-height: 64px; padding-block: 7px; }
  .floating-tool strong { max-width: 70px; font-size: 10.5px; }
  .floating-tools-close { min-height: 54px; }
  .floating-tools-launcher { width: 48px; min-height: 60px; border-radius: 8px 0 0 8px; }
  .announcement-inner { min-height: 40px; gap: 8px; font-size: 11px; }
  .hero-track { height: 680px; min-height: 680px; }
  .hero-slide { grid-template-rows: 318px 362px; }
  .hero-media img { object-position: 54% center; }
  .hero-copy { min-height: 0; justify-content: center; padding: 32px 22px 28px; }
  .hero-copy h1,
  .hero-copy h2 { max-width: 350px; font-size: 38px; }
  .hero-copy--formula h2 { max-width: 340px; font-size: 30px; }
  .hero-copy p { max-width: 320px; }
  .hero-actions { margin-top: 15px; }
  .button { min-height: 42px; padding-inline: 15px; }
  .hero-controls { bottom: 14px; min-height: 34px; }
  .hero-control-actions { display: none; }
  .section-pad { padding-block: 74px; }
  .section-heading--split { align-items: flex-start; flex-direction: column; gap: 15px; }
  .section-heading h2,
  .customize-intro h2,
  .evidence-lead h2,
  .contact-inner h2 { font-size: 36px; }
  .category-section { border-radius: 24px 24px 0 0; }
  .category-section > .page-shell { padding-block: 56px 68px; }
  .category-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; gap: 10px; }
  .category-card,
  .category-card:not(.category-card--wide),
  .category-card--wide { grid-template-rows: 216px minmax(0, 1fr); }
  .category-overlay { right: 12px; bottom: 12px; left: 12px; }
  .category-overlay strong { font-size: 17px; }
  .category-overlay span { font-size: 10px; }
  .category-overlay span { display: flex; font-size: 10px; }
  .process-item { grid-template-columns: 35px 1fr; gap: 10px; padding-block: 20px; }
  .process-item h3 { font-size: 18px; }
  .product-rail { grid-template-columns: repeat(3, 82vw); gap: 12px; margin-right: -14px; }
  .case-grid { grid-template-columns: 1fr; gap: 10px; }
  .case-card,
  .case-card--large { min-height: auto; grid-template-rows: 220px auto; }
  .trust-mark { align-items: center; gap: 18px; }
  .hero-media--trust .trust-mark img { width: 170px; }
  .trust-mark > span { padding-bottom: 0; font-size: 11px; }
  .evidence-stage { grid-template-columns: 1fr; }
  .evidence-image img { min-height: 210px; }
  .evidence-cards { grid-template-columns: 1fr; margin-top: 46px; }
  .evidence-cards a,
  .evidence-cards a:first-child { padding-left: 0; border-right: 0; }
  .evidence-cards b { right: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 18px; padding-block: 50px 42px; }
  .footer-brand { grid-column: 1 / -1; grid-row: auto; }
  .footer-brand { padding-right: 0; }
  .footer-brand-actions { max-width: 270px; }
  .footer-service-row { flex-wrap: wrap; gap: 8px 14px; padding-block: 14px; }
  .footer-service-spacer { display: none; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 5px; }
  .search-inner { padding-block: 40px; }
  .search-form { margin-top: 42px; }
  .search-form input { font-size: 18px; }
  .search-form .button { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal-item { opacity: 1; transform: none; }
}

/* v5：白色 Huawei 骨架；Tylko 视觉只保留在商品流配置卡。 */
.homepage-v4 {
  --v4-canvas: #ffffff;
  --v4-warm: #f6f7f8;
  --v4-graphite: #18191b;
  --v4-soft: #f7f8f9;
  background: var(--v4-canvas);
}

.homepage-v4 .announcement-strip {
  z-index: 31;
  background: var(--v4-warm);
}

.homepage-v4 .announcement-inner {
  min-height: 36px;
  font-size: 11px;
}

.homepage-v4 .button--glass {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.homepage-v4 .button--glass:hover { background: rgba(255, 255, 255, 0.2); }

.homepage-v4 .future-section {
  display: block;
  min-height: 0;
  padding: 92px 0 76px;
  border-bottom: 1px solid #eceff1;
  border-radius: 0;
  background: var(--v4-canvas);
  text-align: left;
}

.homepage-v4 .future-inner { width: var(--shell); }

.homepage-v4 .future-inner h2 {
  max-width: 18em;
  margin: 12px 0 0;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.08;
}

.homepage-v4 .category-pills {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 46px;
  border-bottom: 1px solid #dde1e4;
}

.homepage-v4 .category-pills a {
  position: relative;
  display: grid;
  min-height: 148px;
  grid-template-rows: auto auto 1fr;
  padding: 20px 20px 18px;
  border-top: 1px solid #dde1e4;
  border-right: 1px solid #eceff1;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  transition: background-color 180ms ease;
}

.homepage-v4 .category-pills a:last-child { border-right: 0; }
.homepage-v4 .category-pills a:hover { background: var(--v4-soft); }
.homepage-v4 .category-pills a > span { color: var(--red); font-size: 10px; font-weight: 750; }
.homepage-v4 .category-pills strong { margin-top: 8px; font-size: 20px; font-weight: 620; }
.homepage-v4 .category-pills small { align-self: end; padding-right: 22px; color: #72777b; font-size: 11px; }
.homepage-v4 .category-pills b { position: absolute; right: 18px; bottom: 16px; color: var(--red); font-size: 16px; transition: transform 180ms ease; }
.homepage-v4 .category-pills a:hover b { transform: translateX(4px); }

.homepage-v4 .commerce-section {
  margin-top: 26px;
  padding: 88px 0 28px;
  border-radius: 28px 28px 0 0;
  background: var(--v4-soft);
}

.homepage-v4 .commerce-section,
.homepage-v4 .customize-section,
.homepage-v4 .case-section,
.homepage-v4 .evidence-section,
.homepage-v4 .contact-section { scroll-margin-top: 94px; }

.homepage-v4 .catalog-toolbar {
  display: flex;
  width: var(--shell);
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 28px;
}

.homepage-v4 .catalog-toolbar h2 {
  margin: 10px 0 0;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.08;
}

.homepage-v4 .commerce-grid {
  display: grid;
  width: var(--shell);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
  margin-inline: auto;
}

.homepage-v4 .commerce-card {
  position: relative;
  min-width: 0;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(225, 229, 233, 0.82);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 280ms var(--ease-out), box-shadow 280ms ease;
}

.homepage-v4 .commerce-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.homepage-v4 .commerce-card--image-story {
  grid-column: span 2;
}

.homepage-v4 .commerce-card--offer {
  grid-column: 1 / -1;
  min-height: 420px;
}

.homepage-v4 .commerce-card--image-story > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms var(--ease-out);
}

.homepage-v4 .commerce-card--image-story::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.02) 34%, rgba(10, 10, 10, 0.68) 100%);
  content: "";
}

.homepage-v4 .commerce-card--image-story:hover > img { transform: scale(1.035); }

.homepage-v4 .commerce-card--configure {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(0, 1fr) 154px;
  aspect-ratio: auto;
  isolation: isolate;
  background: var(--white);
}

.homepage-v4 .configure-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #d9cec6;
}

.homepage-v4 .configure-motion-video,
.homepage-v4 .configure-motion .motion-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.homepage-v4 .configure-motion-video {
  z-index: 1;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.homepage-v4 .configure-motion .motion-fallback {
  z-index: 0;
  object-fit: cover;
  object-position: center 58%;
  object-fit: cover;
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 320ms ease;
}

.homepage-v4 .configure-motion.is-ready .configure-motion-video { opacity: 1; }
.homepage-v4 .configure-motion.is-ready .motion-fallback { opacity: 0; }
.homepage-v4 .configure-motion.is-reduced .configure-motion-video { display: none; }
.homepage-v4 .configure-motion.is-reduced .motion-fallback { opacity: 1; }

.homepage-v4 .commerce-card--configure .configure-card-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 15px 16px 18px;
  background: var(--white);
  color: var(--v4-graphite);
  opacity: 1;
  pointer-events: none;
}

.homepage-v4 .configure-card-heading > span {
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
}

.homepage-v4 .configure-card-heading h3 {
  margin: 3px 0 0;
  font-size: 20px;
  font-weight: 620;
  line-height: 1.16;
}

.homepage-v4 .configure-card-cta {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  color: var(--red);
  font-size: 12px;
  font-weight: 650;
}

.homepage-v4 .configure-card-cta b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-control);
  font-size: 15px;
  font-weight: 500;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease;
}

.homepage-v4 .commerce-card--configure:hover .configure-card-cta b {
  box-shadow: var(--shadow-card-hover);
  transform: translate(2px, -2px);
}

.homepage-v4 .configure-card-link {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
}

.homepage-v4 .configure-card-link:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: -7px;
}

.homepage-v4 .commerce-card--image-story > div {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 30px;
  left: 30px;
  color: var(--white);
}

.homepage-v4 .commerce-card--image-story > div > span {
  font-size: 11px;
  font-weight: 700;
}

.homepage-v4 .commerce-card--image-story h3 {
  max-width: 12em;
  margin: 8px 0 18px;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.08;
}

.homepage-v4 .commerce-card--image-story a,
.homepage-v4 .commerce-card--proof > a,
.homepage-v4 .offer-content > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
}

.homepage-v4 .commerce-card--product {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 154px;
}

.homepage-v4 .commerce-media {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  background: #e8e8e5;
}

.homepage-v4 .commerce-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.homepage-v4 .commerce-media:hover img { transform: scale(1.035); }

.homepage-v4 .card-action {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-control);
  font-size: 20px;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, background 180ms ease;
}

.homepage-v4 .commerce-media:hover .card-action { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }

.homepage-v4 .commerce-meta {
  position: relative;
  padding: 15px 16px 18px;
  background: var(--white);
}

.homepage-v4 .commerce-meta > span {
  color: #737476;
  font-size: 10px;
  font-weight: 700;
}

.homepage-v4 .commerce-meta h3 {
  margin: 4px 0 2px;
  font-size: 19px;
  font-weight: 610;
  line-height: 1.24;
}

.homepage-v4 .commerce-meta p {
  margin: 0;
  color: #66686a;
  font-size: 12px;
  line-height: 1.45;
}

.homepage-v4 .commerce-meta .swatches {
  position: static;
  display: flex;
  gap: 6px;
  margin-top: 11px;
  padding: 0;
  background: transparent;
}

.homepage-v4 .commerce-meta .swatches i {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.homepage-v4 .commerce-card--proof {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-content: center;
  padding: 48px;
  background: var(--white);
}

.homepage-v4 .proof-mark {
  grid-row: 1 / span 4;
  display: grid;
  place-items: center;
}

.homepage-v4 .proof-mark img {
  width: min(180px, 82%);
  height: auto;
}

.homepage-v4 .commerce-card--proof > span,
.homepage-v4 .offer-content > span {
  align-self: end;
  color: #66686a;
  font-size: 11px;
  font-weight: 700;
}

.homepage-v4 .commerce-card--proof h3,
.homepage-v4 .offer-content h3 {
  margin: 10px 0 12px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.08;
}

.homepage-v4 .commerce-card--proof p,
.homepage-v4 .offer-content p {
  max-width: 410px;
  margin: 0 0 22px;
  color: #5e6062;
  font-size: 14px;
}

.homepage-v4 .commerce-card--offer {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(360px, 42fr);
  padding: 0;
  background: var(--white);
}

.homepage-v4 .offer-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.homepage-v4 .offer-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 54px clamp(34px, 4vw, 68px);
}

.homepage-v4 .offer-content .button {
  align-self: flex-start;
}

.homepage-v4 .case-section,
.homepage-v4 .evidence-section {
  background: var(--v4-canvas);
}

.homepage-v4 .section-heading h2,
.homepage-v4 .evidence-lead h2,
.homepage-v4 .contact-inner h2 { font-size: 42px; }

.homepage-v4 .case-card,
.homepage-v4 .evidence-image {
  border-color: rgba(225, 229, 233, 0.82);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 280ms var(--ease-out), box-shadow 280ms ease;
}

.homepage-v4 .case-card:hover,
.homepage-v4 .evidence-image:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.homepage-v4 .reveal-item {
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 520ms var(--ease-out);
}

.homepage-v4 .reveal-item.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1280px) {
  .homepage-v4 .future-inner h2 { font-size: 38px; }
  .homepage-v4 .commerce-card { min-height: 480px; }
}

@media (max-width: 1100px) {
  .homepage-v4 .category-pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .homepage-v4 .category-pills a:nth-child(3) { border-right: 0; }
  .homepage-v4 .commerce-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .homepage-v4 .commerce-card--proof { grid-column: span 1; grid-template-columns: 1fr; padding: 32px; }
  .homepage-v4 .commerce-card--proof .proof-mark { grid-row: auto; justify-content: start; }
  .homepage-v4 .commerce-card--proof .proof-mark img { width: 96px; }
  .homepage-v4 .commerce-card--proof h3 { font-size: 28px; }
  .homepage-v4 .commerce-card--image-story { grid-column: span 2; }
  .homepage-v4 .commerce-card--offer { grid-column: 1 / -1; min-height: 400px; padding: 0; }
  .homepage-v4 .commerce-card--offer h3 { font-size: 28px; }
}

@media (max-width: 960px) {
  .homepage-v4 .nav-tools { gap: 4px; }
  .homepage-v4 .nav-tools > .config-link { display: none; }
  .homepage-v4 .future-section { min-height: 0; padding-block: 72px 60px; }
  .homepage-v4 .future-inner h2 { font-size: 34px; }
  .homepage-v4 .commerce-card { min-height: 440px; }
  .homepage-v4 .commerce-card--image-story h3 { font-size: 32px; }
}

@media (max-width: 720px) {
  .homepage-v4 .announcement-inner > span { max-width: 62vw; }
  .homepage-v4 .future-section { min-height: 0; padding: 58px 0 48px; }
  .homepage-v4 .future-inner h2 { font-size: 31px; }
  .homepage-v4 .future-inner .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .homepage-v4 .category-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
  .homepage-v4 .category-pills a { min-height: 126px; padding: 16px 14px 14px; }
  .homepage-v4 .category-pills a:nth-child(2n) { border-right: 0; }
  .homepage-v4 .category-pills a:last-child { grid-column: 1 / -1; }
  .homepage-v4 .category-pills strong { font-size: 18px; }
  .homepage-v4 .category-pills b { right: 14px; bottom: 12px; }
  .homepage-v4 .commerce-section { margin-top: 18px; padding: 64px 0 18px; border-radius: 22px 22px 0 0; }
  .homepage-v4 .catalog-toolbar { width: var(--shell); align-items: flex-start; }
  .homepage-v4 .catalog-toolbar h2 { font-size: 32px; }
  .homepage-v4 .catalog-toolbar > .text-link { display: none; }
  .homepage-v4 .commerce-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .homepage-v4 .commerce-card { min-height: 360px; }
  .homepage-v4 .commerce-card--configure,
  .homepage-v4 .commerce-card--proof,
  .homepage-v4 .commerce-card--image-story,
  .homepage-v4 .commerce-card--offer { grid-column: span 2; }
  .homepage-v4 .commerce-card--configure,
  .homepage-v4 .commerce-card--image-story,
  .homepage-v4 .commerce-card--proof,
  .homepage-v4 .commerce-card--offer { min-height: 410px; }
  .homepage-v4 .commerce-card--configure {
    min-height: 460px;
    grid-template-rows: 326px 134px;
  }
  .homepage-v4 .commerce-card--product { grid-template-rows: 220px 140px; }
  .homepage-v4 .commerce-meta { padding: 12px; }
  .homepage-v4 .commerce-meta h3 { font-size: 16px; }
  .homepage-v4 .commerce-meta p { display: none; }
  .homepage-v4 .commerce-meta .swatches { margin-top: 8px; }
  .homepage-v4 .card-action { top: 9px; right: 9px; width: 32px; height: 32px; }
  .homepage-v4 .commerce-card--image-story > div { right: 22px; bottom: 22px; left: 22px; }
  .homepage-v4 .commerce-card--configure .configure-card-copy {
    padding: 13px 15px 15px;
  }
  .homepage-v4 .commerce-card--image-story h3 { font-size: 30px; }
  .homepage-v4 .commerce-card--proof { grid-template-columns: 110px 1fr; padding: 28px 22px; }
  .homepage-v4 .commerce-card--proof .proof-mark { grid-row: 1 / span 4; }
  .homepage-v4 .commerce-card--proof h3,
  .homepage-v4 .commerce-card--offer h3 { font-size: 28px; }
  .homepage-v4 .commerce-card--offer { grid-template-columns: 1fr; grid-template-rows: 240px auto; padding: 0; }
  .homepage-v4 .offer-content { padding: 32px 24px 36px; }
  .homepage-v4 .section-heading h2,
  .homepage-v4 .evidence-lead h2,
  .homepage-v4 .contact-inner h2 { font-size: 34px; }
  .homepage-v4 .reveal-item,
  .homepage-v4 .reveal-item.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 420px) {
  .homepage-v4 .announcement-inner { gap: 8px; font-size: 10px; }
  .homepage-v4 .future-inner h2 { font-size: 29px; }
  .homepage-v4 .commerce-card--product { grid-template-rows: 200px 144px; }
  .homepage-v4 .commerce-card { min-height: 344px; }
  .homepage-v4 .commerce-card--configure {
    min-height: 450px;
    grid-template-rows: 316px 134px;
  }
  .homepage-v4 .commerce-card--proof { grid-template-columns: 88px 1fr; }
  .homepage-v4 .proof-mark img { width: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-v4 .configure-motion-video { display: none !important; }
  .homepage-v4 .configure-motion .motion-fallback { opacity: 1 !important; }
}

/* 首頁內容藍圖新增區塊：以留白、細線和清晰層級承接 Huawei 式簡約骨架。 */
.homepage-v4 .section-lead {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.homepage-v4 .formula-section,
.homepage-v4 .matching-section,
.homepage-v4 .faq-section {
  border-top: 1px solid #e7eaec;
  background: var(--white);
}

.homepage-v4 .formula-grid,
.homepage-v4 .faq-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(50px, 9vw, 132px);
}

.homepage-v4 .formula-intro h2,
.homepage-v4 .faq-grid h2 {
  max-width: 520px;
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 620;
  line-height: 1.12;
}

.homepage-v4 .formula-intro h2 span { display: block; color: var(--red); }

.homepage-v4 .formula-intro p,
.homepage-v4 .faq-grid > div:first-child > p {
  max-width: 430px;
  margin: 20px 0 26px;
  color: var(--muted);
  font-size: 15px;
}

.homepage-v4 .formula-intro .formula-price-note {
  margin-top: -12px;
  color: #687178;
  font-size: 12px;
  line-height: 1.6;
}

.homepage-v4 .formula-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #dfe3e6;
}

.homepage-v4 .formula-steps > div {
  display: grid;
  align-content: start;
  min-height: 154px;
  padding: 22px 24px 24px 0;
  border-bottom: 1px solid #dfe3e6;
}

.homepage-v4 .formula-steps > div:nth-child(odd) {
  padding-right: 30px;
  border-right: 1px solid #dfe3e6;
}

.homepage-v4 .formula-steps > div:nth-child(even) {
  padding-left: 30px;
}

.homepage-v4 .formula-steps span,
.homepage-v4 .matching-column > span {
  color: var(--red);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0;
}

.homepage-v4 .formula-steps strong {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 620;
}

.homepage-v4 .formula-steps p {
  max-width: 210px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.homepage-v4 .matching-section { background: #fbfcfc; }

.homepage-v4 .matching-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #dfe3e6;
}

.homepage-v4 .matching-column {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 22px 28px 8px 0;
}

.homepage-v4 .matching-column + .matching-column {
  padding-left: 28px;
  border-left: 1px solid #dfe3e6;
}

.homepage-v4 .matching-column a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #e4e8ea;
  color: var(--ink);
  font-size: 16px;
}

.homepage-v4 .matching-column a:hover { color: var(--red); }

.homepage-v4 .matching-column b {
  color: var(--red);
  font-size: 16px;
  font-weight: 400;
  transition: transform 180ms ease;
}

.homepage-v4 .matching-column a:hover b { transform: translateX(4px); }

.homepage-v4 .service-network-detail {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #dfe3e6;
}

.homepage-v4 .service-network-detail h3 {
  max-width: 560px;
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(25px, 2.4vw, 36px);
  font-weight: 620;
  line-height: 1.16;
}

.homepage-v4 .service-network-detail p {
  max-width: 500px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.homepage-v4 .service-network-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.homepage-v4 .faq-section { background: #f6f8f8; }

.homepage-v4 .faq-list { border-top: 1px solid #dfe3e6; }

.homepage-v4 .faq-list details {
  border-bottom: 1px solid #dfe3e6;
}

.homepage-v4 .faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
}

.homepage-v4 .faq-list summary::-webkit-details-marker { display: none; }

.homepage-v4 .faq-list summary::after {
  color: var(--red);
  content: "+";
  font-size: 20px;
  font-weight: 400;
}

.homepage-v4 .faq-list details[open] summary::after { content: "−"; }

.homepage-v4 .faq-list details p {
  max-width: 640px;
  margin: -4px 44px 22px 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .homepage-v4 .formula-grid,
  .homepage-v4 .faq-grid { grid-template-columns: 1fr; gap: 42px; }

  .homepage-v4 .formula-steps > div { min-height: 138px; padding-right: 18px; }
  .homepage-v4 .formula-steps > div:nth-child(odd) { padding-right: 18px; }
  .homepage-v4 .formula-steps > div:nth-child(even) { padding-left: 18px; }
  .homepage-v4 .formula-steps strong { font-size: 18px; }

  .homepage-v4 .matching-grid { grid-template-columns: 1fr; }
  .homepage-v4 .matching-column { padding: 20px 0 8px; }
  .homepage-v4 .matching-column + .matching-column { padding-left: 0; border-top: 1px solid #dfe3e6; border-left: 0; }

  .homepage-v4 .service-network-detail { align-items: flex-start; flex-direction: column; margin-top: 38px; }
  .homepage-v4 .service-network-actions { justify-content: flex-start; }
  .homepage-v4 .faq-list summary { font-size: 16px; }
}

/* 第二屏：以 Tylko 的商品混排語法呈現「定選家」模組，不改動主畫布的白色節奏。 */
.module-showcase-section {
  scroll-margin-top: 94px;
  padding: clamp(48px, 5vw, 68px) 0 76px;
  border-top: 1px solid #eef0f1;
  background: var(--white);
}

.module-showcase-head {
  display: flex;
  max-width: 1244px;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}

.module-showcase-head h2 {
  max-width: 680px;
  margin: 13px 0 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 2.6vw, 39px);
  font-weight: 620;
  line-height: 1.1;
}

.module-showcase-head .section-lead { max-width: 570px; margin-top: 10px; font-size: 14px; }

.module-filters {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.module-filter {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #dfe3e6;
  border-radius: 999px;
  background: var(--white);
  color: #596167;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease-out);
}

.module-filter:hover,
.module-filter:focus-visible { border-color: var(--red); color: var(--red); transform: translateY(-1px); }
.module-filter.is-active { border-color: var(--dark); background: var(--dark); color: var(--white); box-shadow: 0 6px 16px rgba(17, 17, 17, 0.16); }

.module-showcase-grid {
  display: grid;
  max-width: 1244px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.module-intro-card,
.module-card,
.module-proof-card {
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: var(--white);
  box-shadow: none;
  transition: transform 260ms var(--ease-out);
}

.module-card {
  border: 1px solid #e4e7e9;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 3px 12px rgba(23, 28, 34, 0.04);
}

.module-intro-card:hover,
.module-card:hover,
.module-proof-card:hover { transform: translateY(-2px); }

.module-card:hover { box-shadow: 0 10px 24px rgba(23, 28, 34, 0.1); }

.module-intro-card {
  position: relative;
  display: block;
  min-height: 0;
}

.module-intro-stage {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #dfc2bc;
}

.homepage-v4 .module-intro-card .motion-fallback,
.homepage-v4 .module-intro-card .configure-motion-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.homepage-v4 .module-intro-card .motion-fallback,
.homepage-v4 .module-intro-card .configure-motion-video { object-fit: cover; object-position: center; }

.module-intro-overlay {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 18px;
  left: 18px;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(36, 20, 20, 0.14);
  pointer-events: none;
}

.module-intro-overlay span { display: block; font-size: 12px; font-weight: 700; }
.module-intro-overlay strong { display: block; margin-top: 4px; font-size: clamp(25px, 2vw, 34px); font-weight: 650; line-height: 1.04; }

.module-intro-copy {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  min-height: 0;
  padding: 0;
}

.module-intro-copy > div { display: none; }
.module-intro-copy .module-arrow-link {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 5px 16px rgba(28, 24, 22, 0.12);
  color: var(--ink);
}

.module-kicker,
.module-category { display: block; color: var(--red); font-size: 10px; font-weight: 750; }
.module-intro-copy h3 { margin: 3px 0 0; font-size: 17px; font-weight: 620; line-height: 1.1; }

.module-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.module-arrow-link span { transition: transform 180ms var(--ease-out); }
.module-arrow-link:hover span { transform: translate(3px, -2px); }

.module-card {
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.module-card-media {
  position: relative;
  aspect-ratio: 1 / 0.82;
  overflow: hidden;
  background: #f1f2f2;
}

.module-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--module-image-filter, none);
  transition: transform 540ms var(--ease-out), filter 380ms ease;
}

.module-card[data-module-product="wardrobe-door"] { --module-thumbnail: url("./assets/old-site-product-wardrobe-door.jpg"); }
.module-card[data-module-product="tv-storage"] { --module-thumbnail: url("./assets/old-site-product-tv-cabinet.jpg"); }
.module-card[data-module-product="window-dining"] { --module-thumbnail: url("./assets/old-site-product-window-desk.jpg"); }
.module-card[data-module-product="platform-bed"] { --module-thumbnail: url("./assets/old-site-product-platform-bed.jpg"); }
.module-card[data-module-product="walk-in-wardrobe"] { --module-thumbnail: url("./assets/old-site-hero-walk-in-wardrobe-768.webp"); }
.module-card[data-module-product="combination-bed"] { --module-thumbnail: url("./assets/old-site-product-combination-bed.jpg"); }

.module-card:hover .module-card-image { transform: scale(1.03); }

.module-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--red);
  color: var(--white);
  font-size: 9px;
  font-weight: 750;
}

.module-favorite {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(31, 34, 36, 0.06);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-control);
  color: #1f2326;
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, box-shadow 220ms ease, transform 220ms var(--ease-out);
}

.module-favorite:hover,
.module-favorite:focus-visible { background: var(--red); color: var(--white); box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.module-favorite.is-favorite { background: var(--red); color: var(--white); }

.module-variants {
  display: flex;
  gap: 6px;
  min-height: 46px;
  align-items: center;
  padding: 6px 8px 5px;
  border-bottom: 1px solid #edf0f1;
  overflow-x: auto;
  scrollbar-width: none;
}

.module-variants::-webkit-scrollbar { display: none; }

.module-variant {
  flex: 0 0 38px;
  width: 38px;
  height: 32px;
  padding: 2px;
  border: 1px solid #e1e5e7;
  border-radius: 1px;
  background: #f5f6f6;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease-out);
}

.module-variant:hover,
.module-variant:focus-visible { border-color: var(--red); transform: translateY(-2px); }
.module-variant.is-selected { border-color: var(--ink); box-shadow: 0 2px 0 var(--ink); }

.module-variant-preview {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--variant-color);
  background-image: var(--module-thumbnail);
  background-position: center;
  background-size: cover;
  filter: var(--variant-filter, none);
}

.variant-ash { --variant-color: #8f8f8d; --variant-filter: grayscale(.2) saturate(.66); }
.variant-oak { --variant-color: #c9a378; --variant-filter: sepia(.34) saturate(.82); }
.variant-ink { --variant-color: #25262a; --variant-filter: grayscale(.82) contrast(1.08) brightness(.68); }
.variant-mist { --variant-color: #e4e4df; --variant-filter: grayscale(.42) brightness(1.12); }
.variant-sand { --variant-color: #d2c5b6; --variant-filter: sepia(.2) saturate(.72) brightness(1.04); }
.variant-rose { --variant-color: #caa4a3; --variant-filter: sepia(.28) saturate(.64) hue-rotate(318deg); }
.variant-smoke { --variant-color: #87827e; --variant-filter: grayscale(.58) contrast(1.04); }
.variant-white { --variant-color: #f1f1ee; --variant-filter: grayscale(.55) brightness(1.17); }
.variant-charcoal { --variant-color: #33353a; --variant-filter: grayscale(.8) contrast(1.08) brightness(.7); }
.variant-chalk { --variant-color: #e6e5de; --variant-filter: grayscale(.62) brightness(1.18); }
.variant-walnut { --variant-color: #6c4d39; --variant-filter: sepia(.5) saturate(.8) brightness(.82); }
.variant-taupe { --variant-color: #9b8d82; --variant-filter: sepia(.26) saturate(.48) brightness(.94); }
.variant-linen { --variant-color: #c5bbb0; --variant-filter: grayscale(.2) sepia(.14) saturate(.62) brightness(1.06); }
.variant-clay { --variant-color: #b78678; --variant-filter: sepia(.34) saturate(.76) hue-rotate(335deg); }
.variant-night { --variant-color: #303238; --variant-filter: grayscale(.82) brightness(.68); }
.variant-sage { --variant-color: #7f8a76; --variant-filter: sepia(.2) saturate(.55) hue-rotate(36deg); }

.module-card-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  min-height: 93px;
  padding: 10px 12px 11px;
}

.module-proof-card {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  gap: 18px;
  min-height: 0;
  padding: 20px;
  background: #f1f3f3;
}

.module-proof-mark { display: grid; justify-content: start; }
.module-proof-mark img { width: 62px; height: auto; }
.module-proof-copy { align-self: end; }
.module-proof-copy h3 { margin: 6px 0 8px; font-size: 21px; font-weight: 620; line-height: 1.12; }
.module-proof-copy p { margin: 0 0 13px; color: #67645f; font-size: 12px; line-height: 1.45; }
.module-proof-copy .module-arrow-link { color: var(--ink); }

.module-card-meta h3 { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.2; }
.module-card-meta p { min-height: 1.35em; margin: 3px 0 0; color: #62696e; font-size: 11px; line-height: 1.35; }

.module-meta-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 0;
}

.module-color-name { color: var(--red); font-size: 11px; font-weight: 700; }

.module-meta-bottom > span { display: inline-flex; align-items: center; gap: 5px; color: #61696e; font-size: 10px; white-space: nowrap; }

.module-meta-bottom > span i {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: conic-gradient(#d7b944 0 24%, #4ea3d0 24% 48%, #95bd4a 48% 72%, #cc5a6a 72% 100%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

@media (max-width: 1100px) {
  .module-showcase-grid { max-width: 930px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .module-showcase-head { max-width: 930px; align-items: start; flex-direction: column; }
  .module-filters { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .module-showcase-section { padding-block: 68px 74px; }
  .module-showcase-head { gap: 24px; margin-bottom: 26px; }
  .module-showcase-head h2 { font-size: 34px; }
  .module-showcase-grid { max-width: 660px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .module-intro-card { grid-column: 1 / -1; grid-row: auto; min-height: 360px; }
  .module-card { min-height: 0; }
  .module-proof-card { grid-column: span 2; min-height: 280px; }
  .module-card-media { aspect-ratio: 1 / 0.76; }
  .module-card-meta { padding-inline: 11px; }
  .module-card-meta h3 { font-size: 17px; }
  .module-card-meta p { font-size: 11px; }
  .module-meta-bottom { align-items: flex-start; flex-direction: column; gap: 6px; padding-top: 9px; }
}

@media (max-width: 480px) {
  .module-showcase-head h2 { font-size: 31px; }
  .module-filters { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .module-filters::-webkit-scrollbar { display: none; }
  .module-filter { flex: 0 0 auto; }
  .module-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .module-intro-card { grid-column: 1 / -1; min-height: 326px; }
  .module-card { min-height: 0; }
  .module-card-media { aspect-ratio: 1 / 0.82; }
  .module-card-meta p { display: none; }
  .module-proof-card { grid-column: 1 / -1; min-height: 240px; }
}

@media (max-width: 720px) {
  .case-heading-actions {
    width: 100%;
    align-items: flex-start;
  }

  .case-filters {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .case-filters::-webkit-scrollbar { display: none; }
  .case-filter { flex: 0 0 auto; }
}

/* 案例墙使用屋苑页索引，桌面保持密集四列，主卡只承担首个入口的视觉引导。 */
.homepage-v4 .formula-section { padding-block: clamp(48px, 4vw, 60px); }
.homepage-v4 .formula-steps > div { min-height: 122px; padding-top: 18px; padding-bottom: 18px; }
.homepage-v4 .case-section { padding-block: clamp(74px, 7vw, 104px); }
.homepage-v4 .case-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.homepage-v4 .case-card { grid-template-rows: 220px auto; }
.homepage-v4 .case-card--large { grid-column: span 2; grid-template-rows: 320px auto; }
.homepage-v4 .case-card strong { font-size: 16px; }
.homepage-v4 .case-card small { line-height: 1.45; }

@media (max-width: 1100px) {
  .homepage-v4 .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .homepage-v4 .case-card--large { grid-column: span 2; }
}

@media (max-width: 720px) {
  .homepage-v4 .formula-section { padding-block: 56px 30px; }
  .homepage-v4 .formula-steps > div { min-height: 116px; }
  .homepage-v4 .case-section { padding-top: 54px; }
  .homepage-v4 .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .homepage-v4 .case-card,
  .homepage-v4 .case-card--large { grid-template-rows: 200px auto; }
  .homepage-v4 .case-card--large { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .homepage-v4 .case-grid { grid-template-columns: 1fr; }
  .homepage-v4 .case-card,
  .homepage-v4 .case-card--large { grid-template-rows: 220px auto; }
  .homepage-v4 .case-card--large { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .case-filter { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .module-intro-card,
  .module-card,
  .module-card-image,
  .module-filter,
  .module-variant,
  .module-favorite { transition: none; }
}

/* 第五屏：以横向活动入口承接电商浏览效率，视觉仍保持红苹果白色主画布。 */
.homepage-v4 .promotion-section {
  overflow: hidden;
  padding-block: clamp(76px, 7.2vw, 108px);
  border-top: 1px solid #edf0f2;
  background: var(--white);
  scroll-margin-top: 94px;
}

.homepage-v4 .promotion-heading {
  align-items: flex-end;
  margin-bottom: 32px;
}

.homepage-v4 .promotion-heading h2 {
  max-width: 760px;
  margin: 10px 0 0;
  font-size: clamp(34px, 3.3vw, 48px);
  font-weight: 620;
  line-height: 1.08;
}

.homepage-v4 .promotion-heading p {
  max-width: 660px;
  margin: 14px 0 0;
  color: #70777d;
  font-size: 12px;
  line-height: 1.6;
}

.homepage-v4 .promotion-heading-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 24px;
}

.homepage-v4 .promotion-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.homepage-v4 .promotion-count {
  display: inline-flex;
  min-width: 64px;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
  margin-right: 4px;
  color: #8a9095;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.homepage-v4 .promotion-count b {
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
}

.homepage-v4 .promotion-count i { font-style: normal; }

.homepage-v4 .promotion-control {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #dfe3e6;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-control);
  font-size: 17px;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.homepage-v4 .promotion-control:hover,
.homepage-v4 .promotion-control:focus-visible {
  border-color: var(--red);
  color: var(--red);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.homepage-v4 .promotion-control:disabled {
  border-color: #edf0f2;
  color: #b7bdc1;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.homepage-v4 .promotion-viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.homepage-v4 .promotion-viewport::-webkit-scrollbar { display: none; }

.homepage-v4 .promotion-viewport:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 6px;
}

.homepage-v4 .promotion-rail {
  display: flex;
  width: max-content;
  gap: 14px;
}

.homepage-v4 .promotion-card {
  position: relative;
  display: grid;
  width: 286px;
  min-width: 0;
  height: 446px;
  flex: 0 0 286px;
  grid-template-rows: 246px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #e5e9ec;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  scroll-snap-align: start;
  transition: transform 280ms var(--ease-out), box-shadow 280ms ease;
}

.homepage-v4 .promotion-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.homepage-v4 .promotion-card--feature {
  width: 596px;
  flex-basis: 596px;
  grid-template-rows: 1fr;
  grid-template-columns: minmax(0, 1.12fr) minmax(250px, 0.88fr);
  background: #f4f5f4;
}

.homepage-v4 .promotion-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #edf0ee;
}

.homepage-v4 .promotion-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.homepage-v4 .promotion-card:hover .promotion-media img { transform: scale(1.035); }

.homepage-v4 .promotion-badge,
.homepage-v4 .promotion-index {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
}

.homepage-v4 .promotion-badge {
  padding: 0 13px;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 5px 14px rgba(199, 0, 10, 0.24);
}

.homepage-v4 .promotion-index {
  right: 14px;
  left: auto;
  min-width: 32px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: var(--shadow-control);
  font-variant-numeric: tabular-nums;
}

.homepage-v4 .promotion-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 20px 22px;
}

.homepage-v4 .promotion-card--feature .promotion-copy {
  justify-content: center;
  padding: 36px 34px;
}

.homepage-v4 .promotion-category {
  color: var(--red);
  font-size: 10px;
  font-weight: 750;
}

.homepage-v4 .promotion-copy h3 {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 620;
  line-height: 1.18;
}

.homepage-v4 .promotion-card--feature .promotion-copy h3 {
  margin-top: 12px;
  font-size: 32px;
  line-height: 1.08;
}

.homepage-v4 .promotion-copy p {
  margin: 10px 0 0;
  color: #666e74;
  font-size: 12px;
  line-height: 1.55;
}

.homepage-v4 .promotion-card--feature .promotion-copy p { font-size: 13px; }

.homepage-v4 .promotion-card--feature .button {
  margin-top: 22px;
  padding-inline: 18px;
}

.homepage-v4 .promotion-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
}

.homepage-v4 .promotion-link span { transition: transform 180ms ease; }
.homepage-v4 .promotion-link:hover span { transform: translate(2px, -1px); }

.homepage-v4 .promotion-progress {
  position: relative;
  height: 2px;
  margin-top: 26px;
  overflow: hidden;
  background: #e8ebed;
}

.homepage-v4 .promotion-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--red);
  transform-origin: left center;
  transition: width 240ms var(--ease-out);
}

@media (max-width: 1100px) {
  .homepage-v4 .promotion-card {
    width: 270px;
    flex-basis: 270px;
  }

  .homepage-v4 .promotion-card--feature {
    width: 524px;
    flex-basis: 524px;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.92fr);
  }
}

@media (max-width: 720px) {
  .homepage-v4 .promotion-section { padding-block: 62px 68px; }
  .homepage-v4 .promotion-heading { align-items: flex-start; flex-direction: column; gap: 22px; margin-bottom: 24px; }
  .homepage-v4 .promotion-heading h2 { font-size: 34px; }
  .homepage-v4 .promotion-heading-actions { width: 100%; justify-content: space-between; gap: 14px; }
  .homepage-v4 .promotion-count { min-width: 56px; }
  .homepage-v4 .promotion-control { width: 38px; height: 38px; }
  .homepage-v4 .promotion-viewport { margin-right: calc((100vw - 100%) * -1); padding-right: max(18px, calc((100vw - var(--shell)) / 2)); }
  .homepage-v4 .promotion-rail { gap: 10px; }
  .homepage-v4 .promotion-card,
  .homepage-v4 .promotion-card--feature {
    width: min(82vw, 316px);
    height: 432px;
    flex-basis: min(82vw, 316px);
    grid-template-columns: 1fr;
    grid-template-rows: 232px minmax(0, 1fr);
  }
  .homepage-v4 .promotion-card--feature .promotion-copy { justify-content: flex-start; padding: 22px 20px; }
  .homepage-v4 .promotion-card--feature .promotion-copy h3 { margin-top: 8px; font-size: 24px; }
  .homepage-v4 .promotion-card--feature .promotion-copy p { font-size: 12px; }
  .homepage-v4 .promotion-card--feature .button { margin-top: auto; }
  .homepage-v4 .promotion-progress { margin-top: 20px; }
}

@media (max-width: 420px) {
  .homepage-v4 .promotion-heading h2 { font-size: 31px; }
  .homepage-v4 .promotion-heading p { font-size: 11px; }
  .homepage-v4 .promotion-heading-actions > .text-link { font-size: 12px; }
  .homepage-v4 .promotion-count { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-v4 .promotion-viewport { scroll-behavior: auto; }
  .homepage-v4 .promotion-card,
  .homepage-v4 .promotion-media img,
  .homepage-v4 .promotion-control,
  .homepage-v4 .promotion-progress span { transition: none; }
}

/* 第五屏修正版：優惠以完整網格呈現，不依賴橫向滾動；彩色編號牌和實惠式 CTA 建立促銷識別。 */
.homepage-v4 .promotion-heading {
  align-items: flex-end;
}

.homepage-v4 .promotion-all-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--red);
  border-radius: 999px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.homepage-v4 .promotion-all-link:hover,
.homepage-v4 .promotion-all-link:focus-visible {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(160, 27, 52, 0.2);
  transform: translateY(-2px);
}

.homepage-v4 .promotion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.homepage-v4 .promotion-tile {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 394px;
  overflow: hidden;
  border: 1px solid #e2e6e8;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 280ms var(--ease-out), box-shadow 280ms ease;
}

.homepage-v4 .promotion-tile:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.homepage-v4 .promotion-tile--feature {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  background: #f4f5f3;
}

.homepage-v4 .promotion-tile-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #eef0ed;
}

.homepage-v4 .promotion-tile-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(16, 18, 18, 0.56));
  content: "";
  pointer-events: none;
}

.homepage-v4 .promotion-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.homepage-v4 .promotion-tile:hover .promotion-tile-media img { transform: scale(1.04); }

.homepage-v4 .promotion-feature-tag {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  left: 18px;
  color: var(--white);
  font-size: 18px;
  font-weight: 620;
  line-height: 1.12;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24);
}

.homepage-v4 .promotion-feature-tag b {
  display: block;
  margin-top: 4px;
  font-size: 30px;
  font-weight: 700;
}

.homepage-v4 .promotion-live-dot {
  position: absolute;
  z-index: 3;
  top: 15px;
  right: 15px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(160, 27, 52, 0.24);
  font-size: 10px;
  font-weight: 750;
}

.homepage-v4 .promotion-label {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  display: grid;
  width: 82px;
  height: 66px;
  grid-template-columns: 42px 40px;
  overflow: visible;
  border-radius: 8px 8px 8px 0;
  background: var(--promo-color, var(--red));
  color: var(--white);
  box-shadow: 0 7px 17px rgba(18, 22, 24, 0.2);
}

.homepage-v4 .promotion-label::after {
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 0;
  height: 0;
  border-top: 11px solid var(--promo-color, var(--red));
  border-right: 14px solid transparent;
  content: "";
}

.homepage-v4 .promotion-label > span {
  display: grid;
  align-content: center;
  justify-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.homepage-v4 .promotion-label > strong {
  display: grid;
  place-items: center;
  font-size: 35px;
  font-weight: 750;
  line-height: 1;
}

.homepage-v4 .promotion-label--green { --promo-color: #65ae4a; }
.homepage-v4 .promotion-label--orange { --promo-color: #e18b27; }
.homepage-v4 .promotion-label--blue { --promo-color: #5075b5; }

.homepage-v4 .promotion-tile-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 18px 20px;
}

.homepage-v4 .promotion-tile--feature .promotion-tile-body {
  justify-content: center;
  padding: 28px 26px;
}

.homepage-v4 .promotion-category {
  color: var(--red);
  font-size: 10px;
  font-weight: 750;
}

.homepage-v4 .promotion-tile-body h3 {
  margin: 7px 0 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.16;
}

.homepage-v4 .promotion-tile--feature .promotion-tile-body h3 {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.1;
}

.homepage-v4 .promotion-tile-body h3 em {
  display: block;
  color: var(--promo-color, inherit);
  font-style: normal;
}

.homepage-v4 .promotion-tile-body p {
  margin: 9px 0 0;
  color: #666f75;
  font-size: 11px;
  line-height: 1.52;
}

.homepage-v4 .promotion-tile--feature .promotion-tile-body p { font-size: 12px; }

.homepage-v4 .promotion-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  margin-top: auto;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--white);
  box-shadow: 0 6px 13px rgba(20, 25, 28, 0.18);
  font-size: 11px;
  font-weight: 720;
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.homepage-v4 .promotion-cta:hover,
.homepage-v4 .promotion-cta:focus-visible {
  filter: brightness(0.94);
  box-shadow: 0 9px 18px rgba(20, 25, 28, 0.24);
  transform: translateY(-2px);
}

.homepage-v4 .promotion-cta--dark { background: var(--dark); }
.homepage-v4 .promotion-cta--green { background: #65ae4a; }
.homepage-v4 .promotion-cta--orange { background: #e18b27; }
.homepage-v4 .promotion-cta--blue { background: #5075b5; }

.homepage-v4 .promotion-tile--solid {
  grid-template-rows: 1fr auto;
  padding: 25px 20px 20px;
  color: var(--white);
}

.homepage-v4 .promotion-tile--solid::before {
  position: absolute;
  top: 38px;
  right: 14px;
  width: 78%;
  height: 7px;
  background: rgba(255, 255, 255, 0.88);
  content: "";
  transform: rotate(-8deg);
}

.homepage-v4 .promotion-tile--gold { background: #efb84e; }
.homepage-v4 .promotion-tile--sage { background: #8fbe76; }

.homepage-v4 .promotion-solid-mark {
  position: relative;
  z-index: 1;
  align-self: center;
  margin-top: 34px;
  text-align: center;
  transform: rotate(-3deg);
}

.homepage-v4 .promotion-solid-mark span {
  display: block;
  font-size: 17px;
  font-weight: 650;
}

.homepage-v4 .promotion-solid-mark strong {
  display: block;
  margin-top: 7px;
  font-size: 28px;
  font-weight: 750;
  line-height: 1.08;
}

.homepage-v4 .promotion-solid-note {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-bottom: 9px;
  font-size: 10px;
  opacity: 0.9;
}

.homepage-v4 .promotion-solid-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  box-shadow: 0 6px 14px rgba(22, 25, 26, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.homepage-v4 .promotion-solid-link:hover,
.homepage-v4 .promotion-solid-link:focus-visible {
  box-shadow: 0 9px 18px rgba(22, 25, 26, 0.24);
  transform: translateY(-2px);
}

.homepage-v4 .promotion-footnote {
  margin: 14px 0 0;
  color: #858c91;
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .homepage-v4 .promotion-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .homepage-v4 .promotion-tile { min-height: 408px; }
  .homepage-v4 .promotion-tile--feature { grid-column: span 2; }
}

@media (max-width: 720px) {
  .homepage-v4 .promotion-heading { align-items: flex-start; gap: 18px; }
  .homepage-v4 .promotion-all-link { min-height: 38px; }
  .homepage-v4 .promotion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .homepage-v4 .promotion-tile { min-height: 340px; border-radius: 12px; }
  .homepage-v4 .promotion-tile--feature {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    min-height: 360px;
  }
  .homepage-v4 .promotion-tile-body { padding: 14px 13px 15px; }
  .homepage-v4 .promotion-tile--feature .promotion-tile-body { padding: 20px 18px; }
  .homepage-v4 .promotion-tile--feature .promotion-tile-body h3 { font-size: 23px; }
  .homepage-v4 .promotion-tile-body h3 { font-size: 17px; }
  .homepage-v4 .promotion-tile-body p { font-size: 10px; }
  .homepage-v4 .promotion-cta { min-height: 32px; padding-inline: 12px; font-size: 10px; }
  .homepage-v4 .promotion-label { top: 11px; left: 11px; transform: scale(0.88); transform-origin: top left; }
  .homepage-v4 .promotion-live-dot { top: 11px; right: 11px; }
  .homepage-v4 .promotion-solid-mark strong { font-size: 22px; }
}

@media (max-width: 420px) {
  .homepage-v4 .promotion-heading h2 { font-size: 31px; }
  .homepage-v4 .promotion-tile { min-height: 310px; }
  .homepage-v4 .promotion-tile--feature { min-height: 350px; }
  .homepage-v4 .promotion-tile--feature .promotion-tile-body h3 { font-size: 21px; }
  .homepage-v4 .promotion-feature-tag { right: 13px; bottom: 13px; left: 13px; font-size: 15px; }
  .homepage-v4 .promotion-feature-tag b { font-size: 24px; }
  .homepage-v4 .promotion-tile-body p { display: none; }
  .homepage-v4 .promotion-solid-mark span { font-size: 14px; }
  .homepage-v4 .promotion-solid-mark strong { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-v4 .promotion-tile,
  .homepage-v4 .promotion-tile-media img,
  .homepage-v4 .promotion-cta,
  .homepage-v4 .promotion-solid-link,
  .homepage-v4 .promotion-all-link { transition: none; }
}

/* 实惠参考素材演示：整屏横幅 + 四张促销海报，完整网格呈现，不依赖横向滚动。 */
.homepage-v4 .promotion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.homepage-v4 .promotion-banner {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid #e4e7e8;
  border-radius: 12px;
  background: #f5f5f3;
  box-shadow: var(--shadow-card);
}

.homepage-v4 .promotion-banner-media {
  position: relative;
  min-width: 0;
  aspect-ratio: 1020 / 372;
  overflow: hidden;
  background: #ffef48;
}

.homepage-v4 .promotion-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffef48;
  transition: transform 600ms var(--ease-out);
}

.homepage-v4 .promotion-banner:hover .promotion-banner-media img { transform: scale(1.012); }

.homepage-v4 .promotion-banner-chip {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.78);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.homepage-v4 .promotion-banner-action {
  display: inline-flex;
  align-self: center;
  justify-self: end;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 7px 16px rgba(31, 25, 21, 0.22);
  font-size: 11px;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.homepage-v4 .promotion-banner-action:hover,
.homepage-v4 .promotion-banner-action:focus-visible {
  filter: brightness(0.94);
  box-shadow: 0 10px 20px rgba(31, 25, 21, 0.28);
  transform: translateY(-2px);
}

.homepage-v4 .promotion-banner-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 18px;
  padding: 13px 16px 15px;
  background: var(--white);
}

.homepage-v4 .promotion-banner-caption > span {
  grid-column: 1;
  color: var(--red);
  font-size: 10px;
  font-weight: 750;
}

.homepage-v4 .promotion-banner-caption h3 {
  grid-column: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.18;
}

.homepage-v4 .promotion-banner-caption p {
  grid-column: 1;
  max-width: 760px;
  margin: 2px 0 0;
  color: #687178;
  font-size: 11px;
  line-height: 1.5;
}

.homepage-v4 .promotion-poster {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e3e7e8;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 260ms var(--ease-out), box-shadow 260ms ease;
}

.homepage-v4 .promotion-poster:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.homepage-v4 .promotion-poster > a:first-child {
  display: block;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #f0f1ef;
}

.homepage-v4 .promotion-poster > a:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

.homepage-v4 .promotion-poster:hover > a:first-child img { transform: scale(1.025); }

.homepage-v4 .promotion-poster > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 12px;
}

.homepage-v4 .promotion-poster > div > span {
  color: var(--red);
  font-size: 10px;
  font-weight: 750;
}

.homepage-v4 .promotion-poster > div > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.homepage-v4 .promotion-poster > div > a b { font-size: 13px; font-weight: 500; }
.homepage-v4 .promotion-poster > div > a:hover { color: var(--red); }

.homepage-v4 .promotion-footnote {
  margin-top: 12px;
  color: #858c91;
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .homepage-v4 .promotion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .homepage-v4 .promotion-banner { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .homepage-v4 .promotion-grid { gap: 10px; }
  .homepage-v4 .promotion-banner-chip { top: 10px; right: 10px; }
  .homepage-v4 .promotion-banner-action { min-height: 34px; padding-inline: 12px; font-size: 10px; }
  .homepage-v4 .promotion-banner-caption { padding: 12px 13px 14px; }
  .homepage-v4 .promotion-banner-caption h3 { font-size: 18px; }
  .homepage-v4 .promotion-banner-caption p { font-size: 10px; }
  .homepage-v4 .promotion-poster > div { align-items: flex-start; flex-direction: column; gap: 6px; padding: 9px 10px 11px; }
}

@media (max-width: 420px) {
  .homepage-v4 .promotion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .homepage-v4 .promotion-banner-caption { grid-template-columns: 1fr; gap: 3px; }
  .homepage-v4 .promotion-banner-action { grid-column: 1; justify-self: start; margin-top: 8px; }
  .homepage-v4 .promotion-banner-caption h3 { font-size: 16px; }
  .homepage-v4 .promotion-poster > div > span { font-size: 9px; }
  .homepage-v4 .promotion-poster > div > a { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-v4 .promotion-banner-media img,
  .homepage-v4 .promotion-banner-action,
  .homepage-v4 .promotion-poster,
  .homepage-v4 .promotion-poster > a:first-child img { transition: none; }
}

/* v6：按 Huawei 香港线上商店的原生滚动层级整理首屏与第二屏。 */
.homepage-v4 .hero {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--white);
}

.homepage-v4 .hero-track {
  border-bottom: 0;
}

.homepage-v4 main > section:not(.hero),
.homepage-v4 .site-footer {
  position: relative;
  z-index: 3;
}

.homepage-v4 .module-showcase-section {
  position: relative;
  margin-top: 0;
  padding-top: 56px;
  border-top: 0;
  border-radius: 48px 48px 0 0;
  background: #f5f7f8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.homepage-v4 .module-showcase-section::before {
  display: none;
}

.homepage-v4 .module-showcase-head {
  margin-bottom: 24px;
}

.homepage-v4 .module-showcase-grid {
  padding-bottom: 4px;
}

.homepage-v4 .formula-section {
  border-top-color: #e1e5e8;
  background: var(--white);
}

.homepage-v4 .case-section,
.homepage-v4 .evidence-section {
  border-top-color: #e5e8ea;
}

.homepage-v4 .site-footer {
  background: var(--white);
}

@media (max-width: 720px) {
  .homepage-v4 .module-showcase-section {
    margin-top: 0;
    padding-top: 48px;
    border-radius: 32px 32px 0 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

  .homepage-v4 .module-showcase-head > div:first-child {
    padding-right: 66px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .homepage-v4 .module-showcase-head {
    opacity: 1;
    transform: none;
  }
}

/* v7：按 Huawei 香港線上商店校準頁頭安全區、Hero 控件與左右分欄層次。 */
@media (min-width: 961px) {
  .homepage-v4 .main-nav {
    width: min(1280px, calc(100% - 80px));
  }

  .homepage-v4 .hero-copy {
    border-left: 1px solid #f0f2f3;
  }

  .homepage-v4 .hero-progress {
    position: absolute;
    left: calc(52% - 112px);
  }
}

.homepage-v4 .hero-controls {
  bottom: 44px;
}

.homepage-v4 .hero-control-actions {
  right: 96px;
}

.homepage-v4 .hero-progress {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 18px rgba(20, 24, 28, 0.08);
}

@media (max-width: 960px) {
  .homepage-v4 .hero-controls { bottom: 32px; }
  .homepage-v4 .hero-control-actions { right: 92px; }
}

@media (max-width: 560px) {
  .homepage-v4 .hero-controls { bottom: 28px; }
}
