/* 暖阳烘焙 · 纯前端版
   暖橙色 + 米白色，移动优先，三档断点：手机 / 平板 / 电脑 */

:root {
  --orange: #E07B39;
  --orange-deep: #C9631F;
  --cream: #FDF7F0;
  --cream-2: #F9EEDF;
  --pill: #FBEFE2;
  --selected: #FBF0E4;
  --ink: #3B2C22;
  --muted: #7A6A5C;
  --placeholder: #B9A99B;
  --line: #F1E5D8;
  --footer: #F6EADC;
  --error: #B4341F;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

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

/* ---------- 顶栏 ---------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 手机上只留「预订」，其余导航藏起来，避免顶栏挤成一团 */
.nav-link {
  display: none;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, opacity .18s ease;
}

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); }

.btn-light { background: #fff; color: var(--orange); }
.btn-light:hover { background: var(--cream); }

.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-sm { padding: 8px 16px; font-size: 14px; }

.btn-lg {
  width: 100%;
  padding: 14px 34px;
  font-size: 16px;
}

.btn-block { width: 100%; height: 50px; font-size: 16px; }

/* ---------- 首屏 ---------- */

.hero { background: var(--cream-2); }

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 32px;
}

.hero-text { flex: 1 1 auto; }

.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
}

.hero-sub {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
}

.hours-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--orange-deep);
  font-size: 14px;
  font-weight: 500;
}

.hours-pill svg { flex: 0 0 auto; width: 16px; height: 16px; }

.hero .btn-lg { margin-top: 20px; }

.hero-media {
  border-radius: 16px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ---------- 通用区块 ---------- */

.section { padding: 32px 0; }

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.grid { display: grid; gap: 16px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body { padding: 16px; }

/* ---------- 招牌产品 ---------- */

.product-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-name { font-size: 17px; font-weight: 500; }
.product-price { font-size: 17px; font-weight: 600; color: var(--orange); }

/* ---------- 门店 ---------- */

.store-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.store-icon svg { display: block; width: 24px; height: 24px; color: var(--orange); }
.store-name { font-size: 17px; font-weight: 500; }

/* ---------- 底部号召条 ---------- */

.cta-band {
  background: var(--orange);
  color: #fff;
  padding-top: 36px;
  padding-bottom: 36px;
  text-align: center;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta-band h2 { font-size: 20px; font-weight: 700; }
.cta-band p { font-size: 14px; color: #FBE7D2; }
.cta-band .btn-light { width: 100%; max-width: 320px; padding: 14px 36px; font-size: 16px; }

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--footer);
  padding: 28px 0;
}

.footer-inner { display: flex; flex-direction: column; gap: 6px; }
.footer-name { font-size: 16px; font-weight: 700; }
.footer-line { font-size: 13px; color: var(--muted); }

/* ---------- 预订页 ---------- */

.booking { padding: 24px 0 40px; }

.booking-head {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.page-title { font-size: 24px; font-weight: 700; }
.page-desc { margin-top: 12px; font-size: 14px; color: var(--muted); }

.form-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 14px; font-weight: 500; }

.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px; /* 手机上小于 16px 会触发自动缩放 */
}

.input::placeholder { color: var(--placeholder); }
.input:focus { outline: none; border-color: var(--orange); }
.input.has-error { border-color: var(--error); }

.field-error { font-size: 13px; color: var(--error); }
#form-error { display: block; margin: -4px 0 12px; }

/* 产品行 */
.product-list { display: flex; flex-direction: column; gap: 12px; }

.product-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: background-color .18s ease, border-color .18s ease;
}

.product-row.is-selected {
  background: var(--selected);
  border-color: var(--orange);
}

.product-row .name { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 500; }
.product-row .price { flex: 0 0 auto; font-size: 14px; color: var(--muted); }
.product-row.is-selected .price { color: var(--orange); }

/* 数量加减 */
.stepper {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 112px;
  height: 38px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.step-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  background: none;
  color: var(--placeholder);
  cursor: pointer;
}

.step-btn svg { width: 100%; height: 100%; }
.step-btn:disabled { opacity: .45; cursor: not-allowed; }
.product-row.is-selected .step-btn { color: var(--ink); }

.step-value {
  min-width: 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--placeholder);
  text-align: center;
}

.product-row.is-selected .step-value { color: var(--ink); }

/* 已选汇总 */
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--cream);
  border-radius: 12px;
}

.summary-label { font-size: 14px; font-weight: 500; }
.summary-value { font-size: 15px; font-weight: 600; color: var(--orange); text-align: right; }

/* 门店单选 */
.option-group { display: grid; gap: 12px; grid-template-columns: 1fr; }

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}

.option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.option.is-checked {
  background: var(--selected);
  border-color: var(--orange);
}

.option .icon { display: flex; flex: 0 0 auto; }
.option .icon svg { width: 20px; height: 20px; color: var(--placeholder); }
.option.is-checked .icon svg { color: var(--orange); }

/* 日期提示 */
.hint { display: flex; flex-direction: column; gap: 8px; }

.tag-unavailable {
  align-self: flex-start;
  padding: 6px 12px;
  background: var(--line);
  border-radius: 999px;
  color: var(--placeholder);
  font-size: 13px;
  font-weight: 500;
}

.hint-text { font-size: 13px; color: var(--muted); }

/* 提交成功面板 */
.success {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.success h2 { font-size: 20px; font-weight: 700; }
.success p { font-size: 14px; color: var(--muted); }
.success .btn { margin-top: 8px; padding: 12px 28px; font-size: 15px; }
.success-detail { font-weight: 600; color: var(--ink); }

/* ---------- 平板 ---------- */
@media (min-width: 641px) {
  .container { padding: 0 40px; }
  .header-inner { height: 72px; }
  .brand { font-size: 22px; }
  .nav { gap: 28px; }
  .nav-link { display: inline-block; }
  .btn-sm { padding: 10px 22px; font-size: 15px; }
  .btn-lg { width: auto; }
  .section { padding: 48px 0; }
  .section-title { font-size: 24px; margin-bottom: 20px; }
  .grid { gap: 24px; }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .grid-stores { grid-template-columns: repeat(3, 1fr); }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 56px;
  }
  .hero-title { font-size: 40px; }
  .hero-media { flex: 0 0 42%; width: 42%; border-radius: 20px; }
  .hero-media img { height: 280px; }
  .cta-band { padding-top: 48px; padding-bottom: 48px; }
  .cta-band h2 { font-size: 26px; }
  .cta-band p { font-size: 15px; }
  .cta-band .btn-light { width: auto; padding: 16px 36px; font-size: 17px; }
  .site-footer { padding: 32px 0; }
  .footer-name { font-size: 17px; }
  .footer-line { font-size: 14px; }
  .booking { padding: 40px 0 56px; }
  .page-title { font-size: 28px; }
  .page-desc { font-size: 16px; }
  .form-card { padding: 28px; gap: 24px; }
  .input { height: 50px; }
  .label { font-size: 15px; }
  .option-group { grid-template-columns: repeat(3, 1fr); }
  .stepper { width: 120px; height: 38px; }
  .booking-head { margin-bottom: 28px; }
}

/* ---------- 电脑 ---------- */
@media (min-width: 1025px) {
  .container { padding: 0 80px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 28px; margin-bottom: 28px; }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .card { border-radius: 20px; }
  .card-media img { height: 250px; }
  .card-body { padding: 20px; }
  .product-name { font-size: 20px; }
  .product-price { font-size: 18px; }
  .store-card { padding: 24px; }
  .store-name { font-size: 20px; }
  .hero-inner { gap: 48px; padding-top: 72px; padding-bottom: 72px; }
  .hero-title { font-size: 56px; line-height: 72px; }
  .hero-sub { font-size: 20px; }
  .hero-media { border-radius: 24px; }
  .hero-media img { height: 380px; }
  .cta-band { padding-top: 56px; padding-bottom: 56px; }
  .cta-band h2 { font-size: 28px; }
  .cta-band p { font-size: 16px; }
  .booking { padding: 64px 0; }
  .page-title { font-size: 32px; }
  .form-card { padding: 40px; gap: 28px; border-radius: 24px; }
  .input { height: 52px; padding: 0 16px; }
  .stepper { width: 130px; height: 40px; padding: 0 12px; }
  .step-btn { width: 18px; height: 18px; }
  .summary-row { padding: 16px 20px; }
  .success { padding: 48px 40px; border-radius: 24px; }
  .success h2 { font-size: 24px; }
}
