:root {
  --yellow: #f5a623;
  --yellow-dark: #e08e0e;
  --yellow-soft: #fdecc9;
  --cream: #faf1df;
  --cream-card: #fffaf0;
  --cream-deep: #f4e8cf;
  --brown: #4a3826;
  --brown-mid: #7a6350;
  --brown-soft: #a68b6e;
  --white: #ffffff;
  --line: #efe0c4;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow: 0 6px 20px rgba(150, 110, 45, 0.08);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑",
    "Noto Sans SC", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}

/* 顶部导航 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 12px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  color: var(--brown);
  flex-shrink: 0;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--brown-mid);
  letter-spacing: 2px;
}

.nav {
  display: none;
}

.nav.open {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px 12px;
  box-shadow: 0 10px 18px rgba(120, 90, 40, 0.08);
}

.nav a {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--brown-mid);
}

.nav a:hover {
  background: var(--cream-deep);
  color: var(--brown);
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  background: var(--yellow);
  color: #402f12;
  font-weight: 800;
  font-size: 14px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(240, 160, 20, 0.35);
}

.phone-pill:hover {
  background: var(--yellow-dark);
}

.phone-icon {
  font-size: 16px;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--brown);
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

/* 首屏 banner */
.hero {
  background: linear-gradient(180deg, #fdf4de 0%, var(--cream) 100%);
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 42px 18px 46px;
  text-align: center;
}

.hero-slogan {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: #9a6a1a;
  background: var(--yellow-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.hero-note {
  font-size: 16px;
  color: var(--brown-mid);
  margin: 0 0 20px;
}

.hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 22px;
}

.info-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 14px;
  box-shadow: var(--shadow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}

.hero-tip {
  font-size: 14px;
  color: #a0710f;
  background: #fff4d6;
  border: 1px dashed #eec672;
  border-radius: 12px;
  padding: 10px 14px;
  display: inline-block;
  margin: 0;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--yellow);
  color: #402f12;
  box-shadow: 0 4px 14px rgba(240, 160, 20, 0.35);
}

.btn-primary:hover {
  background: var(--yellow-dark);
}

.btn-wechat {
  background: #3bb04a;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59, 176, 74, 0.3);
}

.btn-wechat:hover {
  background: #349b42;
}

/* 通用板块 */
.section {
  padding: 44px 0;
}

.section-alt {
  background: var(--cream-deep);
}

.section-title {
  font-size: 26px;
  text-align: center;
  margin: 0 0 6px;
}

.section-sub {
  text-align: center;
  color: var(--brown-mid);
  margin: 0 0 26px;
}

#products,
#store,
#reviews {
  scroll-margin-top: 72px;
}

/* 产品分类 */
.category {
  margin-bottom: 34px;
}

.category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}

.category-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-img {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
}

.card-img.cake {
  background: linear-gradient(135deg, #ffe6e0, #ffd0c4);
}

.card-img.bread {
  background: linear-gradient(135deg, #fdeac8, #f4c96b);
}

.card-img.dessert {
  background: linear-gradient(135deg, #fbe9d2, #ecc895);
}

.card-body {
  padding: 12px 14px 14px;
}

.card-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}

.card-desc {
  font-size: 13px;
  color: var(--brown-mid);
  margin: 0 0 10px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  color: #9a6a1a;
  background: var(--yellow-soft);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-weight: 600;
}

/* 门店信息 */
.store-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}

.store-addr {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.store-time {
  color: var(--brown-mid);
  margin: 0 0 18px;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}

/* 街坊好评 */
.reviews {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  margin: 0;
}

.review p {
  margin: 0 0 10px;
  font-size: 15px;
}

.review .who {
  font-size: 13px;
  color: var(--brown-soft);
}

/* 页脚 */
.footer {
  background: #463323;
  color: #f4e9d4;
  padding: 34px 0 26px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
  text-align: center;
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 15px;
}

.footer-contact a {
  color: var(--yellow);
  font-weight: 700;
}

.footer-copy {
  font-size: 12px;
  color: #c9b79a;
  margin: 0;
}

/* 轻提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(70, 50, 30, 0.95);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  max-width: 90vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 响应式 */
@media (min-width: 560px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 720px) {
  .reviews {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero h1 {
    font-size: 40px;
  }
}

@media (min-width: 900px) {
  .brand-name {
    font-size: 24px;
  }

  .brand-sub {
    font-size: 14px;
  }

  .nav {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
    position: static;
    padding: 0;
    margin-left: 8px;
  }

  .nav a {
    padding: 8px 14px;
  }

  .menu-btn {
    display: none;
  }
}

@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

@media (max-width: 359px) {
  .phone-icon {
    display: none;
  }

  .phone-pill {
    font-size: 13px;
    padding: 7px 10px;
  }
}
