:root {
  --ink: #232938;
  --muted: #6a717f;
  --coral: #ff4b36;
  --coral-deep: #fb5f47;
  --coral-glow: #ffd6cd;
  --blue-link: #1673e8;
  --badge: #6161ff;
  --line: #e5e7eb;
  --soft: #efeff1;
  --grey-bg: #f6f6f7;
  --usp-blue: #e6f8fe;
  --usp-green: #eafbf1;
  --radius-card: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans TC", "ShopBackSans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-black { background: #000; color: #fff; }
.btn-black:hover { background: #1c1c1c; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #efeff1; color: var(--ink); }
.btn-light:hover { background: #e6e6e9; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 15px; gap: 6px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
}

.topbar {
  position: relative;
  background: var(--ink);
  color: #fff;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 64px;
}
.topbar-icon { width: 44px; height: 33px; object-fit: contain; flex-shrink: 0; }
.topbar-copy { display: flex; flex-direction: column; gap: 1px; }
.topbar-copy strong { font-size: 14px; line-height: 20px; font-weight: 700; }
.topbar-copy span { font-size: 14px; line-height: 20px; font-weight: 400; color: rgba(255,255,255,.88); }
.topbar-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.topbar-cta:hover { background: #f1f1f3; }
.topbar-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  display: flex;
  padding: 4px;
  opacity: .9;
}
.topbar-close:hover { opacity: 1; }

.nav {
  height: 66px;
  padding: 0 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.04);
  position: relative;
  z-index: 2;
}
.logo img { width: 120px; height: auto; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: 16px; font-weight: 500; padding: 8px 10px; }
.nav-login:hover { color: var(--muted); }
.globe-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  background: #fff;
}
.globe-btn:hover { border-color: #c9ced8; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 583px;
  background-color: var(--coral-deep);
  background-image: url("../assets/hero-gradient-bg.png");
  background-size: cover;
  background-position: center;
}
.hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 128px;
  padding-left: min(13.9vw, 200px);
  padding-right: 24px;
}
.hero h1 {
  font-size: 60px;
  line-height: 60px;
  font-weight: 900;
  letter-spacing: .01em;
  color: #fff;
}
.hero-sub {
  margin-top: 20px;
  max-width: 300px;
  font-size: 18px;
  line-height: 21px;
  font-weight: 700;
  color: #fff;
}
.hero-ctas {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.hero-ctas .btn { height: 48px; }
.hero-ctas .btn-light { height: 49px; padding: 0 20px; }
.hero-ctas .btn-light img { width: 25px; height: 25px; }

.stats {
  position: relative;
  z-index: 2;
  width: calc(100% - 160px);
  max-width: 1280px;
  margin: -74px auto 0;
  padding: 40px 108px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 4px 16px rgba(64, 72, 90, .1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.stat h2 { font-size: 32px; line-height: 39px; font-weight: 700; color: var(--ink); }
.stat h3 { font-size: 16px; line-height: 24px; font-weight: 400; color: var(--muted); }

/* ---------- brands ---------- */
.brands {
  max-width: 1304px;
  margin: 0 auto;
  padding: 20px 24px;
}
.brands-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brands-head h2 { font-size: 24px; line-height: 36px; font-weight: 700; }
.brands-more { font-size: 14.5px; line-height: 20px; color: var(--blue-link); font-weight: 400; }
.brands-more:hover { text-decoration: underline; }

.brands-carousel { position: relative; margin-top: 16px; }
.brands-viewport { overflow: hidden; }
.brands-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}
.brand-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 20px;
}
.brand-card { position: relative; display: block; min-height: 190px; }
.brand-thumb {
  position: relative;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.brand-card:hover .brand-thumb {
  border-color: #d3d8e0;
  box-shadow: 0 6px 16px rgba(35, 41, 56, .08);
}
.brand-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-badge {
  position: absolute;
  top: -6px;
  left: 0;
  z-index: 3;
  padding: 2px 8px;
  background: var(--badge);
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  border-radius: 10px 10px 10px 0;
  white-space: nowrap;
}
.brand-info { padding-top: 8px; }
.brand-name {
  display: block;
  font-size: 14.5px;
  line-height: 19px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-main {
  font-size: 16px;
  line-height: 21px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14.5px;
  line-height: 19px;
  color: var(--muted);
}
.brand-meta .strike { text-decoration: line-through; }
.brand-meta .promo { color: var(--coral); font-weight: 500; }
.brand-meta .promo sup { font-size: 10px; top: -.35em; position: relative; margin-right: 1px; }
.brand-meta .sep { color: var(--muted); }

.brand-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  box-shadow: 0 1px 4px rgba(64, 72, 90, .16);
  transition: opacity .2s ease, visibility .2s ease;
}
.brand-arrow:hover { background: #1c1c1c; }
.brand-arrow.prev { left: -20px; }
.brand-arrow.next { right: -20px; }
.brand-arrow[hidden] { display: flex; visibility: hidden; opacity: 0; pointer-events: none; }

/* ---------- usp ---------- */
.usp { display: grid; grid-template-columns: 1fr 1fr; }
.usp-card {
  min-height: 574px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.usp-blue { background: var(--usp-blue); }
.usp-green { background: var(--usp-green); }
.usp-card > img { width: 488px; max-width: 100%; height: 268px; object-fit: contain; }
.usp-card h2 {
  margin-top: 20px;
  max-width: 488px;
  font-size: 32px;
  line-height: 39px;
  font-weight: 700;
}
.usp-card p {
  margin-top: 8px;
  max-width: 440px;
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
}
.usp-card .btn { margin-top: 24px; }

/* ---------- how it works ---------- */
.how {
  display: flex;
  align-items: center;
  min-height: 620px;
  background: #fff;
}
.how-left {
  width: 50%;
  display: flex;
  justify-content: flex-end;
  padding-right: 48px;
}
.how-visual { position: relative; width: 440px; height: 350px; flex-shrink: 0; }
.how-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .5s ease;
}
.how-visual img.active { opacity: 1; }
.how-right { width: 50%; padding-left: 48px; }
.how-right h2 { font-size: 32px; line-height: 39px; font-weight: 700; margin-bottom: 36px; }
.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 29px 0;
  cursor: pointer;
}
.step:first-child { padding-top: 0; }
.step:last-child { padding-bottom: 0; }
.step-num {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color .25s ease, color .25s ease;
}
.step-label {
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
  font-weight: 400;
  transition: color .25s ease;
}
.step.active .step-num { background: var(--ink); color: #fff; }
.step.active .step-label { color: var(--ink); font-weight: 700; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 59px;
  width: 1px;
  height: 58px;
  background: var(--line);
}
.step:first-child::after { top: 30px; height: 58px; }

/* ---------- extension ---------- */
.ext {
  position: relative;
  min-height: 620px;
  background: var(--coral-glow);
  overflow: hidden;
}
.ext-bg {
  position: absolute;
  left: 35%;
  top: 0;
  width: 768px;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}
.ext-bg img { width: 100%; height: 100%; object-fit: cover; }
.ext-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 620px;
}
.ext-shot { width: 67.57%; height: 620px; object-fit: contain; flex-shrink: 0; }
.ext-copy { margin-left: 64px; max-width: 403px; }
.ext-copy h2 { font-size: 32px; line-height: 39px; font-weight: 700; }
.ext-copy p { margin: 12px 0 24px; font-size: 16px; line-height: 24px; color: var(--muted); }
.ext-copy strong { color: var(--ink); font-weight: 700; }
.btn-chrome img { width: 25px; height: 25px; }

/* ---------- app ---------- */
.app {
  position: relative;
  min-height: 460px;
  background: var(--grey-bg);
  overflow: hidden;
}
.app-bg {
  position: absolute;
  left: 50%;
  top: -170px;
  width: 538px;
  height: auto;
  z-index: 0;
}
.app-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 460px;
  padding-left: 100px;
  padding-right: 20px;
  display: flex;
  align-items: center;
}
.app-copy { width: 500px; flex-shrink: 0; }
.app-copy h2 { font-size: 32px; line-height: 39px; font-weight: 700; }
.app-copy p { margin: 10px 0 20px; max-width: 420px; font-size: 16px; line-height: 24px; color: var(--muted); }
.app-copy strong { color: var(--ink); font-weight: 700; }
.store-row { display: flex; align-items: center; gap: 16px; }
.qr { width: 108px; height: 108px; }
.store-buttons { display: flex; flex-direction: column; gap: 8px; }
.store-buttons img { width: 162px; height: 48px; }
.app-phone { flex: 1; display: flex; justify-content: center; align-items: center; }
.app-phone img { height: 380px; width: auto; }

/* ---------- media ---------- */
.media {
  height: 150px;
  padding-bottom: 40px;
  background: var(--grey-bg);
}
.media h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 6px;
  color: var(--ink);
}
.media-strip {
  height: 60px;
  overflow: hidden;
  opacity: .45;
  filter: grayscale(1);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.media-track {
  height: 60px;
  width: 3928px;
  background: url("../assets/featured-by.webp") repeat-x left center;
  background-size: 3928px 60px;
  animation: media-scroll 60s linear infinite;
}
@keyframes media-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-1964px); }
}

/* ---------- footer ---------- */
.footer {
  background: #000;
  color: #fff;
  padding: 32px 0;
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.footer-grid {
  display: grid;
  grid-template-columns: 204px 204px 204px 228px 1fr;
}
.footer-col h4 { font-size: 14.5px; line-height: 20px; font-weight: 700; margin-bottom: 8px; }
.footer-col a {
  display: block;
  font-size: 14.5px;
  line-height: 20px;
  margin-top: 8px;
  color: #fff;
  opacity: .95;
}
.footer-col a:hover { text-decoration: underline; text-underline-offset: 2px; }
.footer-col .cloudflare { height: 32px; width: auto; margin-top: 12px; }
.lang-select {
  display: block;
  margin-top: 20px;
  width: 204px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #fff;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}
.footer-bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .25);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.socials { display: flex; gap: 16px; }
.socials img { width: 32px; height: 32px; }
.legal { text-align: right; font-size: 14.5px; line-height: 20px; }
.legal p { color: #fff; }
.legal .links { display: flex; justify-content: flex-end; gap: 24px; margin-top: 8px; }
.legal .links a:hover { text-decoration: underline; }

/* ---------- region modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: 560px;
  max-width: 100%;
  max-height: 80vh;
  overflow: auto;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.modal-panel h2 { font-size: 24px; line-height: 32px; font-weight: 700; }
.modal-close { position: absolute; top: 16px; right: 16px; padding: 8px; color: var(--ink); }
.region-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.region {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 8px;
  background: var(--grey-bg);
  font-size: 15px;
  color: var(--ink);
}
.region:hover { background: #ececef; }
.region.active { background: var(--ink); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .hero h1 { font-size: 48px; line-height: 50px; }
  .hero-inner { padding-top: 110px; }
  .stats { padding: 32px 56px; }
  .stat h2 { font-size: 26px; line-height: 34px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .footer-col .lang-select { margin-top: 12px; }
}

@media (max-width: 1023px) {
  .nav { padding: 0 24px; }
  .brands { max-width: 900px; }
  .brands-track { display: block; transform: none !important; }
  .brand-page { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
  .brand-arrow { display: none; }
  .how { flex-direction: column; padding: 56px 24px; gap: 40px; }
  .how-left, .how-right { width: 100%; padding: 0; justify-content: center; }
  .how-right { max-width: 560px; }
  .how-visual { width: 100%; max-width: 440px; }
  .ext-inner { flex-direction: column; justify-content: center; padding: 40px 24px 48px; }
  .ext-shot { width: 100%; max-width: 720px; height: auto; }
  .ext-copy { margin: 24px 0 0; max-width: 560px; text-align: center; }
  .ext-bg { left: auto; right: -120px; opacity: .7; }
  .app-inner { padding-left: 24px; padding-right: 24px; gap: 16px; }
  .app-copy { width: 50%; }
  .app-phone img { height: 320px; }
  .app-bg { left: auto; right: -80px; opacity: .7; }
  .media { height: 140px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .topbar-inner { padding: 10px 44px 10px 16px; gap: 10px; }
  .topbar-icon { width: 34px; height: 26px; }
  .topbar-copy strong { font-size: 12.5px; line-height: 17px; }
  .topbar-copy span { display: none; }
  .topbar-cta { height: 32px; font-size: 12.5px; padding: 0 14px; }
  .topbar-close { right: 8px; }

  .nav { height: 58px; padding: 0 16px; }
  .logo img { width: 96px; }
  .nav-login { font-size: 14px; padding: 6px; }
  .btn-sm { height: 32px; font-size: 13.5px; padding: 0 12px; }
  .globe-btn { width: 30px; height: 30px; }

  .hero {
    height: auto;
    min-height: 560px;
    padding-bottom: 170px;
    background-position: 62% center;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(244, 76, 58, .92) 0%, rgba(248, 93, 66, .72) 46%, rgba(250, 120, 90, .08) 100%);
    z-index: 0;
  }
  .hero-visual { object-position: 64% center; opacity: .95; }
  .hero-inner { padding: 56px 20px 0; }
  .hero h1 { font-size: 38px; line-height: 40px; }
  .hero-sub { margin-top: 14px; font-size: 15px; line-height: 22px; max-width: 260px; font-weight: 500; }
  .hero-ctas { margin-top: 20px; }
  .hero-ctas .btn { height: 44px; font-size: 14.5px; padding: 0 20px; }
  .hero-ctas .btn-light { height: 44px; }
  .hero-ctas .btn-light img { width: 22px; height: 22px; }

  .stats {
    width: calc(100% - 32px);
    margin: -150px auto 0;
    padding: 24px 20px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 12px;
  }
  .stat h2 { font-size: 24px; line-height: 30px; }
  .stat h3 { font-size: 13px; line-height: 19px; }

  .brands { padding: 20px 12px; }
  .brands-head h2 { font-size: 20px; line-height: 30px; }
  .brands-more { font-size: 13px; }
  .brands-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .brands-viewport::-webkit-scrollbar { display: none; }
  .brands-track {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: 168px;
    column-gap: 12px;
    row-gap: 20px;
    width: max-content;
    transform: none !important;
  }
  .brand-page { display: contents; }
  .brand-card { min-height: 153px; }
  .brand-name { font-size: 13px; line-height: 18px; }
  .brand-main { font-size: 14.5px; line-height: 19px; }
  .brand-meta { font-size: 12.5px; line-height: 18px; }
  .brand-badge { font-size: 11px; line-height: 16px; padding: 1px 6px; }

  .usp { grid-template-columns: 1fr; }
  .usp-card { min-height: 0; padding: 44px 20px; }
  .usp-card > img { height: auto; width: 100%; max-width: 440px; }
  .usp-card h2 { font-size: 24px; line-height: 31px; margin-top: 8px; }
  .usp-card p { font-size: 15px; line-height: 23px; }
  .usp-card .btn { height: 44px; font-size: 14.5px; }

  .how { min-height: 0; padding: 44px 20px; }
  .how-right h2 { font-size: 26px; line-height: 34px; margin-bottom: 24px; }
  .step { gap: 12px; padding: 22px 0; }
  .step:not(:last-child)::after { top: 52px; height: 44px; }
  .step:first-child::after { top: 30px; height: 44px; }
  .step-label { font-size: 14.5px; line-height: 21px; }

  .ext { min-height: 0; }
  .ext-inner { min-height: 0; padding: 24px 20px 44px; }
  .ext-shot { max-width: 100%; }
  .ext-copy h2 { font-size: 26px; line-height: 34px; }
  .ext-copy p { font-size: 15px; line-height: 23px; }
  .ext-copy .btn { height: 44px; font-size: 14.5px; }

  .app { min-height: 0; }
  .app-inner { flex-direction: column; min-height: 0; padding: 44px 20px 32px; }
  .app-copy { width: 100%; }
  .app-copy h2 { font-size: 26px; line-height: 34px; }
  .app-copy p { font-size: 15px; line-height: 23px; }
  .app-phone { margin-top: 20px; }
  .app-phone img { height: 300px; }
  .app-bg { right: -140px; top: -60px; opacity: .8; }

  .media { height: auto; padding-bottom: 28px; }
  .media-strip { height: 44px; }
  .media-track { height: 44px; background-size: auto 44px; width: 2880px; animation-duration: 45s; }

  .footer { padding-top: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 24px; column-gap: 16px; }
  .footer-bottom { flex-direction: column-reverse; gap: 16px; }
  .legal { text-align: left; }
  .legal .links { justify-content: flex-start; }

  .modal-panel { padding: 28px 20px; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
}
