/* 零售價值首頁預覽（獨立頁） */
:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.1);
  --paper: #f8fafc;
  --orange: #ea580c;
  --orange-deep: #c2410c;
  --teal: #0e7490;
  --teal-soft: #ecfeff;
  --font: "Outfit", "Noto Sans TC", system-ui, sans-serif;
  --radius: 1.25rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

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

.preview-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 1.25rem;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 650;
}
.preview-banner a {
  color: #fdba74;
  text-decoration: none;
  font-weight: 700;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #fb923c 55%, var(--teal));
  font-weight: 800;
}
.brand-text { font-size: 1.15rem; }
.topnav-links {
  display: none;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.92rem;
  font-weight: 650;
}
.topnav-links a { text-decoration: none; color: var(--muted); }
.topnav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 0.45rem 0.9rem !important;
  border-radius: 999px;
  background: #fde68a;
  color: var(--ink) !important;
}
@media (min-width: 860px) {
  .topnav-links { display: flex; }
  .topnav, .preview-banner { padding-left: 2rem; padding-right: 2rem; }
}

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
  transform: scale(1.06);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.55) 48%, rgba(15, 23, 42, 0.88) 100%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.35) 42%, rgba(15, 23, 42, 0.12) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto 0 0;
  padding: 4.5rem 1.25rem 3.25rem;
  animation: rise 0.9s ease both;
}
@media (min-width: 860px) {
  .hero-copy { padding: 5.5rem 2rem 4rem; margin-left: 2rem; }
}
.brand-signal {
  margin: 0 0 0.75rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.92);
}
.hero h1,
.hero-slogan {
  margin: 0 0 0.9rem;
  font-size: clamp(2.45rem, 7vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 10em;
  text-wrap: balance;
}
.hero-lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 36ch;
  font-weight: 500;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), #fb923c);
  color: #fff;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--orange-deep), var(--orange)); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(6px);
}

.section { padding: 4.5rem 0; }
.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto;
}
.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42rem;
}

.value { background: var(--paper); }
.value-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .value-list { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.value-list li {
  display: grid;
  gap: 0.85rem;
  padding: 0.25rem 0;
}
.value-list .num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.06em;
}
.value-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.value-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.scene { padding-top: 0; }
.scene-frame {
  width: min(1200px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background: #0f172a;
}
.scene-frame img {
  width: 100%;
  height: min(58vh, 560px);
  object-fit: cover;
  opacity: 0.96;
}
.scene-caption { padding-top: 1.75rem; }
.scene-caption h2 { margin-bottom: 0.5rem; }
.scene-caption p { margin: 0; color: var(--muted); max-width: 40rem; }

.proof { background: #fff; border-top: 1px solid var(--line); }
.proof-stat {
  margin: -0.5rem 0 1.25rem;
  font-size: 1.05rem;
  color: var(--muted);
}
.proof-stat strong {
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 800;
  margin-right: 0.25rem;
}
.proof-map-shell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.proof-map {
  height: min(58vh, 480px);
  min-height: 300px;
  background: #e2e8f0;
}
.proof-map-locate {
  position: absolute;
  z-index: 500;
  right: 12px;
  bottom: 12px;
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.35);
}
.proof-map-locate:disabled {
  opacity: 0.65;
  cursor: wait;
}
.proof-map-locate:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}
.proof-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.proof-legend .label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  margin-right: 0.1rem;
}
.proof-legend .chip,
.proof-legend span.chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.proof-legend .chip.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--teal));
}
.proof-legend .chip[data-code="claw"].active { background: #f97316; }
.proof-legend .chip[data-code="gacha"].active { background: #db2777; }
.proof-legend .chip[data-code="vending"].active { background: #06b6d4; }
.proof-legend .chip[data-code="dpp"].active { background: #2563eb; }
.proof-legend .chip[data-code="other"].active { background: #64748b; }
.proof-legend .chip-dpp { background: #2563eb; color: #fff; border-color: transparent; }
.proof-legend .chip-vending { background: #06b6d4; color: #fff; border-color: transparent; }

.rp-pills { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.35rem; }
.rp-pill {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #ecfeff;
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #0e7490;
  font-size: 0.7rem;
  font-weight: 700;
}

.spot-head { margin: 2rem 0 1rem; }
.spot-head h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.spot-head p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.spot-strip {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .spot-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .spot-strip { grid-template-columns: repeat(4, 1fr); }
}
.spot {
  display: grid;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}
.spot-photo {
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(145deg, #e2e8f0, #f8fafc);
}
.spot-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spot-photo.placeholder {
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
}
.spot strong { font-size: 0.95rem; letter-spacing: -0.01em; }
.spot span {
  color: var(--muted);
  font-size: 0.82rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spot-type {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--teal);
}

.paths { background: var(--teal-soft); }
.path-grid {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 800px) {
  .path-grid { grid-template-columns: repeat(3, 1fr); }
}
.path {
  display: grid;
  gap: 0.4rem;
  padding: 1.25rem 1.15rem;
  text-decoration: none;
  border-bottom: 2px solid rgba(14, 116, 144, 0.25);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.path:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.path-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.04em;
}
.path strong {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.path span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact { background: #0f172a; color: #fff; }
.contact-inner {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
}
.contact h2 {
  margin: 0;
  max-width: 16ch;
}
.contact p {
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.foot a { color: var(--teal); font-weight: 700; text-decoration: none; }

/* map popup (light) */
.rp-pop { width: min(230px, 75vw); font-family: var(--font); }
.rp-pop img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.55rem;
  margin-bottom: 0.45rem;
  background: #e2e8f0;
}
.rp-pop strong { display: block; font-size: 0.92rem; margin-bottom: 0.2rem; }
.rp-pop .addr { font-size: 0.78rem; color: #64748b; margin-bottom: 0.45rem; }
.rp-marker { background: transparent; border: 0; }
.rp-pin {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 3px 6px rgba(15, 23, 42, 0.28));
  position: relative;
}
.rp-pin::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 6px;
  transform: rotate(-45deg);
  background: var(--pin, #2563eb);
}
.rp-pin i {
  position: absolute;
  inset: 0 0 4px;
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-weight: 800;
  font-size: 0.7rem;
  z-index: 1;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .hero-copy,
  .value-list li { animation: none !important; transition: none !important; }
}
