:root {
  --notion-black: rgba(0, 0, 0, 0.95);
  --notion-white: #ffffff;
  --notion-warm-white: #f6f5f4;
  --notion-gray-500: #615d59;
  --notion-gray-300: #a39e98;
  --notion-blue: #0075de;
  --notion-blue-active: #005bab;
  --whisper-border: 1px solid rgba(0, 0, 0, 0.1);
  --card-shadow: rgba(0, 0, 0, 0.04) 0px 4px 18px, rgba(0, 0, 0, 0.027) 0px 2.025px 7.84688px,
    rgba(0, 0, 0, 0.02) 0px 0.8px 2.925px, rgba(0, 0, 0, 0.01) 0px 0.175px 1.04062px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: var(--notion-black);
  background: var(--notion-white);
  -webkit-font-smoothing: antialiased;
}

.home-page {
  width: 100%;
  min-height: 100vh;
}

.hero-banner {
  position: relative;
  width: 100%;
  padding: 0;
  background: var(--notion-white);
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-topbar {
  position: absolute;
  top: 12px;
  left: 0;
  z-index: 5;
  width: 100%;
  height: auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: transparent;
}

.brand-center {
  justify-self: center;
}

.brand-center img {
  width: 64px;
  height: auto;
}

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.pill-button {
  border: var(--whisper-border);
  background: var(--notion-white);
  color: var(--notion-black);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.12s ease;
}

.icon-button:hover,
.pill-button:hover {
  border-color: rgba(0, 0, 0, 0.18);
  background: var(--notion-warm-white);
}

.icon-button:active,
.pill-button:active {
  transform: scale(0.96);
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.pill-button {
  min-width: 68px;
  height: 34px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.125px;
}

.menu-button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.menu-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.hamburger-line {
  display: block;
  width: 12px;
  height: 1px;
  background: var(--notion-black);
  margin: 2px 0;
}

.site-footer {
  width: 100%;
  display: grid;
  grid-template-columns: 150px minmax(300px, 576px) 220px;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 48px;
  background: var(--notion-warm-white);
  border-top: var(--whisper-border);
}

.footer-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 80px;
  height: auto;
}

.brand-name {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.footer-middle p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--notion-gray-500);
}

.footer-copyright {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--notion-gray-500);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-follow-text {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.2;
  color: var(--notion-gray-500);
}

.social-button {
  width: 24px;
  height: 24px;
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.social-button:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.social-button.active {
  opacity: 1;
}

.social-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.qrcode-popover {
  position: fixed;
  z-index: 50;
  width: 200px;
  height: 200px;
  border-radius: 12px;
  border: var(--whisper-border);
  background: var(--notion-white);
  box-shadow: var(--card-shadow);
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  animation: popover-in 0.2s ease-out;
}

.qrcode-popover.is-hidden {
  display: none;
}

.qrcode-popover-image {
  width: 124px;
  height: 124px;
  object-fit: contain;
}

.qrcode-popover-title {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--notion-black);
}

.qrcode-popover-subtitle {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  color: var(--notion-gray-500);
}

@keyframes popover-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1080px) {
  .hero-banner {
    padding: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 20px;
  }

  .footer-right {
    align-items: flex-start;
  }
}
