/* ===== 麦子熟了时尚烘焙店 — 单页官网 =====
   原生 HTML + CSS + JavaScript，移动端优先，弱网快速加载 */

:root {
  --c-bg: #faf6ee;          /* 页面底色：暖米色 */
  --c-cream: #f6efe3;       /* 浅米色块 */
  --c-cream-2: #e6dedb;     /* 参考站米色 */
  --c-paper: #ffffff;       /* 卡片白 */
  --c-warm: #f5b335;        /* 暖黄主色 */
  --c-warm-deep: #e09a1a;   /* 暖黄深一档 */
  --c-caramel: #cb986d;     /* 焦糖色，参考站点缀 */
  --c-ink: #333333;         /* 主文字 */
  --c-soft: #6b5a45;        /* 次要暖棕文字 */
  --c-line: #eadfcc;        /* 细边线 */
  --c-on-warm: #4a2f0a;     /* 暖黄上的深棕文字 */

  --font: "PingFang SC", "Helvetica Neue", Helvetica, "Microsoft YaHei", "微软雅黑", Arial, sans-serif;

  --r-lg: 30px;
  --r-md: 20px;
  --r-sm: 14px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(74, 47, 10, 0.06);
  --shadow-md: 0 8px 26px rgba(74, 47, 10, 0.10);

  --content: 1120px;
  --pad: 16px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--r-pill);
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, #ffd27a, var(--c-warm));
  color: var(--c-on-warm);
  box-shadow: 0 6px 18px rgba(224, 154, 26, 0.28);
}
.btn-primary:hover { background: linear-gradient(135deg, #ffd98f, var(--c-warm-deep)); box-shadow: 0 8px 22px rgba(224, 154, 26, 0.34); }

.btn-ghost {
  background: var(--c-paper);
  color: var(--c-ink);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--c-caramel); color: var(--c-warm-deep); }

.btn-wechat {
  background: #4c8d2f;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(76, 141, 47, 0.24);
}
.btn-wechat:hover { background: #3f7a27; }

.btn-lg { padding: 15px 28px; font-size: 17px; }

/* ===== 顶栏 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffffb3;
  box-shadow: var(--shadow-sm);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-mark { font-size: 22px; line-height: 1; }

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.brand-name em {
  font-style: normal;
  font-weight: 600;
  color: var(--c-caramel);
}

.phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #ffd27a, var(--c-warm));
  color: var(--c-on-warm);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.3px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  box-shadow: 0 6px 18px rgba(224, 154, 26, 0.28);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 18px;
  padding-top: 4px;
  padding-bottom: 10px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  font-size: 14px;
  color: var(--c-soft);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--c-warm-deep); border-bottom-color: var(--c-warm); }

/* ===== 首屏 banner ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 85% 8%, rgba(245, 179, 53, 0.20), transparent 70%),
    radial-gradient(50% 50% at 8% 90%, rgba(203, 152, 109, 0.20), transparent 72%),
    linear-gradient(180deg, #fbf3e2, #f6efe3);
  padding: 52px 0 56px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero-kicker {
  display: inline-block;
  font-size: 13px;
  color: #ffffff;
  background: #cb986d;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  letter-spacing: 1px;
}

.hero-title {
  font-size: 34px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 1px;
  color: #000000;
}

.hero-slogan {
  font-size: 21px;
  color: var(--c-soft);
  font-weight: 600;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff80;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 11px 16px;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.meta-chip strong { color: var(--c-caramel); font-weight: 700; }
.meta-chip-copy { cursor: pointer; font-family: inherit; color: var(--c-ink); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.hero-note {
  font-size: 14px;
  color: var(--c-warm-deep);
  background: rgba(245, 179, 53, 0.14);
  border-radius: var(--r-sm);
  padding: 9px 14px;
}

/* ===== 通用板块 ===== */
.section { padding: 52px 0; }
.section-alt { background: var(--c-cream-2); }

.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-kicker {
  font-size: 13px;
  color: var(--c-caramel);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.section-head h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.section-sub {
  font-size: 15px;
  color: var(--c-soft);
}

/* ===== 产品 ===== */
.prod-group + .prod-group { margin-top: 34px; }

.prod-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--c-ink);
}
.prod-group-title span { font-size: 22px; }

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

.card {
  background: var(--c-paper);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(234, 223, 204, 0.6);
}

.card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  height: 150px;
  background: var(--c-cream);
}

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

.card-body h4 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.card-body p { font-size: 14px; color: var(--c-soft); margin-bottom: 10px; }

.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--c-warm-deep);
  background: rgba(245, 179, 53, 0.16);
  border-radius: var(--r-pill);
  padding: 4px 10px;
}

/* 产品占位图的暖色渐变 */
.m1 { background: linear-gradient(135deg, #ffe3b3, #f5b335); }
.m2 { background: linear-gradient(135deg, #f3d5c4, #cb986d); }
.m3 { background: linear-gradient(135deg, #ffe4ee, #f2a9c2); }
.m4 { background: linear-gradient(135deg, #f7e3b8, #e6bd74); }
.m5 { background: linear-gradient(135deg, #fbd188, #e09a1a); }
.m6 { background: linear-gradient(135deg, #ecd3ae, #c9925f); }
.m7 { background: linear-gradient(135deg, #ffe3ae, #f2c04e); }
.m8 { background: linear-gradient(135deg, #e2c69b, #bd915f); }
.m9 { background: linear-gradient(135deg, #f7ddd0, #e2a688); }

/* ===== 门店信息 ===== */
.store-card {
  background: var(--c-paper);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(234, 223, 204, 0.6);
}

.store-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
}
.store-row:last-of-type { border-bottom: 0; }

.store-label {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-caramel);
  min-width: 62px;
}
.store-row p { font-size: 16px; }

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.store-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--c-warm-deep);
  background: rgba(245, 179, 53, 0.14);
  border-radius: var(--r-sm);
  padding: 9px 14px;
}

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

.review {
  margin: 0;
  background: var(--c-paper);
  border-radius: var(--r-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(234, 223, 204, 0.6);
}
.review p { font-size: 15px; color: var(--c-ink); margin-bottom: 10px; }
.review cite { font-style: normal; font-size: 13px; color: var(--c-caramel); }

/* ===== 页脚 ===== */
.site-footer {
  background: #333333;
  color: #f3e8d6;
  padding: 40px 0 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 18px;
}
.footer-brand .brand-mark { font-size: 22px; }

.footer-contact { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.footer-contact li { font-size: 15px; }
.footer-contact a { color: #ffd98f; font-weight: 700; }

.copyright {
  font-size: 13px;
  color: rgba(243, 232, 214, 0.72);
  border-top: 1px solid rgba(243, 232, 214, 0.16);
  padding-top: 18px;
}

/* ===== 提示条 ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: #3a2a17;
  color: #fff;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  max-width: calc(100vw - 40px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== 响应式 ===== */
@media (min-width: 640px) {
  :root { --pad: 24px; }

  .grid { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }

  .hero-title { font-size: 42px; }
  .section { padding: 64px 0; }
}

@media (min-width: 960px) {
  :root { --pad: 32px; }

  .header-main { flex-wrap: nowrap; }
  .brand-name { font-size: 24px; }
  .site-nav { justify-content: center; overflow-x: visible; }

  .hero { padding: 76px 0 80px; }
  .hero-inner { gap: 18px; }
  .hero-title { font-size: 52px; }

  .grid { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }

  .section { padding: 76px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 32px; }

  .store-card { padding: 32px 30px; }
  .store-row { gap: 16px; }
  .store-label { min-width: 76px; }

  .card-media { height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .toast { transition: none; }
}
