/* 新官網共用暖紙張風格；合作表單維持既有 merchant-join.css，不套用本檔。 */
:root {
  --filter-bg: #fffaf0;
}
.toolbar select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: var(--filter-bg);
  color: var(--ink);
}
.paper-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 5px 18px #493a2510;
}
.paper-card h3 {
  margin-top: 0;
}
.merchant-case {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 3rem;
}
.merchant-case h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0.2rem 0;
}
.merchant-case-copy > p:not(.eyebrow),
.merchant-faq p,
.merchant-support p {
  color: var(--muted);
}
.merchant-case-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(8rem, 0.8fr);
  gap: 1rem;
  align-items: end;
}
.merchant-case-gallery figure {
  margin: 0;
}
.merchant-case-gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
  background: var(--soft);
}
.merchant-case-gallery figure:first-child img {
  aspect-ratio: 16/14;
}
.merchant-case-gallery figure:last-child img {
  aspect-ratio: 9/16;
  object-position: top;
}
.merchant-case-gallery figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
.merchant-faq {
  max-width: 50rem;
}
.merchant-faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.merchant-faq summary {
  cursor: pointer;
  font-weight: 700;
}
.merchant-help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.merchant-help-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  text-decoration: none;
  background: var(--surface);
}
.merchant-support {
  padding-bottom: 3rem;
}
.merchant-support a {
  color: var(--rust);
  font-weight: 700;
}
@media (max-width: 42rem) {
  .merchant-case {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .merchant-case-gallery {
    grid-template-columns: minmax(0, 1.15fr) minmax(7rem, 0.85fr);
  }
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}
.help-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  text-decoration: none;
}
.help-card strong,
.help-card small {
  display: block;
}
.help-card small,
.help-meta,
.help-summary {
  color: var(--muted);
}
.help-page {
  padding: 2rem 0 4rem;
}
.help-step-list {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}
.help-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 28rem);
  gap: 2rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.help-step-number {
  color: var(--rust);
  font-weight: 800;
  font-size: 1.4rem;
}
.help-step-copy h2 {
  margin: 0.2rem 0;
}
.help-step-copy p,
.help-step-tip p {
  color: var(--muted);
}
.help-phone-frame {
  overflow: hidden;
  border-radius: 1.2rem;
  background: var(--soft);
  box-shadow: 0 5px 18px #493a2510;
}
.help-step-visual img {
  display: block;
  width: 100%;
  height: auto;
}
.help-step-gallery {
  display: grid;
  gap: 1rem;
}
.help-step-gallery[data-count="2"],
.help-step-gallery[data-count="3"] {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.help-step-tip,
.help-article-notice {
  background: var(--soft);
  border-radius: 1rem;
  padding: 1rem;
  margin: 1rem 0;
}
.help-article-notice h2 {
  margin-top: 0;
}
.help-step-visual {
  margin: 0;
}
.help-step-visual figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
@media (max-width: 42rem) {
  .help-step {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .help-step-gallery[data-count="2"],
  .help-step-gallery[data-count="3"] {
    grid-template-columns: 1fr;
  }
}
:root {
  --paper: #f7f3ea;
  --surface: #fffdf7;
  --ink: #29251f;
  --muted: #746b5e;
  --rust: #a95335;
  --line: #ded4c3;
  --soft: #eee5d5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.65 system-ui,
    -apple-system,
    "Noto Sans TC",
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
}
.shell {
  width: min(70rem, calc(100% - 2rem));
  margin: auto;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: #faf7ef;
}
.site-header .shell,
.site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  text-decoration: none;
}
.brand-mark {
  font-size: 1.7rem;
}
.site-header nav,
.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
}
.site-header nav a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  text-decoration: none;
  background: var(--surface);
  font-weight: 650;
}
.btn-primary {
  background: var(--rust);
  border-color: var(--rust);
  color: white;
}
.hero {
  padding: clamp(3rem, 8vw, 7rem) 0 3rem;
}
.hero h1,
.store-hero h1 {
  max-width: 12em;
  margin: 0.2rem 0;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.15;
}
.hero p {
  color: var(--muted);
  font-size: 1.1rem;
}
.eyebrow {
  color: var(--rust);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.search {
  display: flex;
  max-width: 34rem;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.search input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 0.75rem 1rem;
  font: inherit;
}
.section {
  padding: 2rem 0;
}
.section h2 {
  font-size: 1.7rem;
}
.area-grid,
.store-grid,
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}
.area-card,
.store-card,
.offer-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  padding: 0.8rem;
  text-decoration: none;
  box-shadow: 0 5px 18px #493a2510;
}
.area-card > * {
  display: block;
}
.area-card strong,
.store-card strong {
  font-size: 1.1rem;
}
.area-card small,
.area-card span,
.store-card small {
  color: var(--muted);
}
.area-image,
.store-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 0.7rem;
  background: var(--soft);
  margin-bottom: 0.5rem;
}
.store-card {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.8rem;
  align-items: center;
}
.store-card .store-image {
  aspect-ratio: 1;
  margin: 0;
}
.store-card em {
  display: block;
  color: var(--rust);
  font-size: 0.85rem;
  font-style: normal;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--muted);
}
.store-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}
.store-hero-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 1rem;
  background: var(--soft);
}
.street {
  color: var(--muted);
}
.offer-detail {
  max-width: 52rem;
}
.offer-card h3 {
  margin: 0.2rem 0;
  font-size: 1.2rem;
}
.offer-card p,
.offer-card li {
  color: var(--muted);
}
.offer-card ul {
  padding-left: 1.2rem;
}
.app-cta {
  margin-top: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--soft);
}
.empty {
  padding: 6rem 0;
}
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}
@media (max-width: 42rem) {
  .site-header .shell {
    align-items: flex-start;
  }
  .site-header nav {
    justify-content: flex-end;
    font-size: 0.9rem;
  }
  .store-hero {
    grid-template-columns: 1fr;
    padding: 2rem 0;
  }
  .hero {
    padding-top: 3rem;
  }
}

/* 共用互動與窄螢幕排列。 */
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 999px;
}
.skip-link:focus {
  top: 1rem;
}
:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 4px;
}
.site-header nav a {
  text-decoration: none;
}
.site-header .download-link {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--rust);
  font-weight: 700;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.brand {
  flex-shrink: 0;
}
.brand img {
  border-radius: 50%;
}
.toolbar {
  flex-wrap: wrap;
}
.toolbar label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.store-card small {
  display: block;
}
.image-placeholder {
  display: block;
  background: var(--soft);
  aspect-ratio: 16/9;
  border-radius: 0.7rem;
}
.store-card .image-placeholder {
  aspect-ratio: 1;
}
html:not(.js-enabled) .store-card .store-image-deferred {
  display: none;
}
html.js-enabled .store-card .store-image-deferred {
  visibility: hidden;
}
html.js-enabled .store-card .store-image-deferred[data-image-state="loaded"] {
  visibility: visible;
}
.offer-detail {
  max-width: 70rem;
}
.offer-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.offer-card {
  padding: 1.5rem;
}
.offer-card p {
  white-space: pre-line;
}
.offer-download {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.app-cta .btn + .btn,
.hero .btn + .btn {
  margin-left: 0.5rem;
}
.support-page {
  padding: 2.5rem 0;
  max-width: 60rem;
  min-height: 60vh;
}
.support-page h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.3;
}
.support-page img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}
.support-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
}
.support-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.support-links a,
.support-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--rust);
  color: white;
  text-decoration: none;
}
.support-page p {
  overflow-wrap: anywhere;
}
.support-page table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.support-page th,
.support-page td {
  padding: 0.6rem;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 42rem) {
  .site-header .shell {
    flex-wrap: wrap;
    gap: 0.2rem;
  }
  .site-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .site-footer .shell {
    align-items: flex-start;
    flex-direction: column;
  }
  .store-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    justify-content: flex-start;
  }
  .toolbar strong {
    width: 100%;
  }
  .search button {
    flex-shrink: 0;
  }
  .help-step-gallery {
    max-width: 26rem;
    margin: auto;
  }
  .app-cta {
    padding: 1.3rem;
  }
  .hero h1,
  .store-hero h1 {
    overflow-wrap: anywhere;
  }
}
