:root {
  --bg: #f8f6f1;
  --card: #fffdf9;
  --text: #24211d;
  --muted: #77716a;
  --accent: #8f4f3c;
  --accent-light: #f2e7e1;
  --border: #e8e1d8;
}

a {
    color: inherit;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.shipping-banner {
  background: var(--accent);
  color: #fff;
}

.shipping-banner-inner {
  width: min(1040px, calc(100% - 40px));
  min-height: 44px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-size: 13px;
  font-weight: 600;
}

.shipping-banner-title {
  font-weight: 700;
}

.shipping-banner i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1040px, calc(100% - 40px));
  margin: auto;
}

header {
  padding: 42px 0 28px;
}

.brand {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
}

h1 {
  font-size: clamp(30px, 5vw, 46px);
  margin: 9px 0 12px;
  letter-spacing: -0.03em;
}

.subtitle {
  color: var(--muted);
  margin: 0;
}

.badge {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}

.header-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.notice {
  background: var(--accent-light);
  padding: 18px 20px;
  border-radius: 18px;
  margin: 8px 0 38px;
}

.notice strong {
  display: block;
  margin-bottom: 5px;
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
}

h2 {
  font-size: 22px;
  margin: 0;
}

.section-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 7px 0 0;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 15px;
  cursor: pointer;
  color: var(--text);
}

.filter.active,
.filter:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.menu-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: 0.18s;
}

.menu-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

.photo img,
.modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo small {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
}

.card-body {
  padding: 20px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

h3 {
  margin: 0;
  font-size: 18px;
}

.price {
  font-weight: 600;
  white-space: nowrap;
}

.desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 9px 0 0;
}

.more {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-top: 15px;
}

.info {
  border-top: 1px solid var(--border);
  margin-top: 44px;
  padding: 32px 0 10px;
}

.menu-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent);
}

.notice-info {
  margin: 0 0 42px;
  padding: 0;
  border: 0;
}

.notice-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.delivery-highlight {
  margin: 0;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.notice-card {
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.notice-card-wide {
  grid-column: span 2;
}

.notice-card strong {
  display: block;
  font-size: 14px;
}

.notice-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.info p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.cta {
  text-align: center;
  padding: 45px 0 60px;
}

.cta p {
  color: var(--muted);
  font-size: 14px;
}

.cta h2 {
  margin-top: 5px;
}

.cta button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 13px 24px;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 12px;
}

#wechat-note {
  min-height: 22px;
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10;
}

.modal.show {
  display: flex;
}

.modal-box {
  width: min(540px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--card);
  border-radius: 26px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2);
}

.modal-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.92);
  font-size: 24px;
  cursor: pointer;
}

.modal-body {
  padding: 25px;
}

.modal-category {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.modal-title-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: start;
  margin-top: 5px;
}

.modal-title {
  font-size: 28px;
  margin: 0;
}

.modal-price {
  font-size: 18px;
  font-weight: 600;
}

.modal-desc {
  line-height: 1.8;
  margin: 20px 0;
  color: var(--text);
}

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.label {
  font-size: 13px;
  color: var(--muted);
}

.value {
  font-weight: 600;
  margin-top: 4px;
}

.modal-tip {
  background: var(--accent-light);
  border-radius: 15px;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.7;
  margin-top: 22px;
}

.order {
  width: 100%;
  border: 0;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 13px;
  margin-top: 20px;
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 800px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .notice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 1040px);
  }

  header {
    padding-top: 28px;
  }

  .shipping-banner-inner {
    width: min(100% - 28px, 1040px);
    min-height: 58px;
    flex-wrap: wrap;
    align-content: center;
    gap: 3px 10px;
    line-height: 1.35;
  }

  .shipping-banner-title {
    width: 100%;
    text-align: center;
  }

  .header-row {
    align-items: start;
  }

  .badge {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .notice-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .notice-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .notice-card,
  .notice-card-wide {
    grid-column: auto;
    min-height: 0;
  }

  .modal {
    padding: 0;
    align-items: end;
  }

  .modal-box {
    border-radius: 24px 24px 0 0;
    max-height: 94vh;
  }

  .modal-body {
    padding: 22px;
  }

  .modal-title {
    font-size: 24px;
  }
}
