:root {
  --container: 1100px;
  --page-pad: 20px;

  --text: #111111;
  --muted: #6b7280;
  --bg: #ffffff;
  --card: #ffffff;
  --hero: #d9d9d9;
  --footer: #111;

  --radius: 16px;
  --shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container {
  width: min(var(--container), 100% - (var(--page-pad) * 2));
  margin-inline: auto;
}

.site-header {
  background: #ffffff;
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 22px;
}



.hero-banner {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 400;
  object-fit: cover;
  border-radius: clamp(0px, 1.5vw, 12px);
}

.section {
  padding: 46px 0;
}

.section--tight {
  padding-top: 6px;
  padding-bottom: 64px;
}

.section-title {
  margin: 0 0 22px 0;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.logo-grid {
  display: grid;
  gap: 26px;
  justify-content: center;
  align-items: stretch;
}

/* 桌機時：銷售 3 欄、支付 4 欄；縮小時自動降欄 */
.logo-grid--sales {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  max-width: 780px;
  margin-inline: auto;
}

.logo-grid--pay {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  max-width: 980px;
  margin-inline: auto;
}

.logo-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  display: grid;
  place-items: center;
  min-height: 132px;
}

.logo-img {
  width: 100%;
  max-width: 190px;
  object-fit: contain;
}

.site-footer {
  margin-top: auto;
}

.footer-top {
  background: var(--footer);
}

.footer-top-inner {
  padding: 22px 0 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-contact {
  font-size: 14px;
  color: #fff;
  display: grid;
  gap: 8px;
}

.footer-contact-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.footer-label {
  color: #fff;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 14px;
  color: #94d619;
  font-weight: 500;
}

.footer-bottom {
  background: #94d619;
}

.footer-bottom-inner {
  width:60%;
  padding: 14px 0 18px;
  color: #111;
  font-size: 12px;
  text-align: center;
}

/* Modal (pure CSS :target) */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal:target {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
}

.modal-panel {
  position: relative;
  width: min(860px, calc(100% - 32px));
  margin: 6vh auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.25);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.modal-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
  opacity: 0.85;
}

.modal-close:hover {
  text-decoration: none;
  background: rgba(17, 24, 39, 0.06);
  opacity: 1;
}

.modal-body {
  padding: 16px 18px 18px;
  max-height: min(80vh, 700px);
  overflow: auto;
}

.modal-body p {
  margin: 0 0 12px 0;
}

.modal-note {
  color: #111827;
  opacity: 0.88;
}

@media (max-width: 420px) {
  .modal-panel {
    width: calc(100% - 24px);
    margin: 5vh auto;
  }

  .modal-body {
    max-height: 72vh;
  }
}

@media (max-width: 900px) {
  .logo-grid--pay {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 64px;
  }

  .logo-grid--sales {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    max-width: 520px;
  }

  .footer-top-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 16px 18px;

  }
}

@media (max-width: 420px) {
  .logo-grid--sales,
  .logo-grid--pay {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .logo-card {
    min-height: 104px;
  }
}

