/* 叫了一个炸鸡 · 手机商城 */
.chicken-page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f5f5;
  color: #333;
  padding-bottom: 72px;
}
.chicken-nav {
  background: linear-gradient(135deg, #ff6b35, #ff8f45);
  color: #fff;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 20;
}
.chicken-nav .back {
  position: absolute;
  left: 14px;
  font-size: 24px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  z-index: 21;
}
.chicken-search-row {
  background: #fff;
  padding: 8px 12px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.chicken-search-box {
  flex: 1;
  background: #f2f2f2;
  border-radius: 18px;
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #999;
  font-size: 13px;
}
.chicken-loc-bar {
  background: linear-gradient(135deg, #ff6b35, #ff8f45);
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
}
.chicken-banner {
  margin: 10px 12px;
  border-radius: 12px;
  overflow: hidden;
  min-height: 140px;
  background: linear-gradient(120deg, #ff5722 0%, #ffb74d 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.chicken-banner h1 { color: #fff; font-size: 22px; }
.chicken-banner p { color: rgba(255,255,255,.95); font-size: 12px; margin-top: 4px; }
.chicken-banner-emoji {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 72px;
}
.chicken-section-title {
  padding: 14px 14px 8px;
  font-size: 16px;
  font-weight: 700;
}
.chicken-card {
  background: #fff;
  margin: 0 12px 10px;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;
}
.chicken-thumb {
  width: 86px;
  height: 86px;
  border-radius: 10px;
  background: linear-gradient(145deg, #ffe0b2, #ff9800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  flex-shrink: 0;
  overflow: hidden;
}
.chicken-thumb img { width: 100%; height: 100%; object-fit: cover; }
.chicken-info { flex: 1; min-width: 0; }
.chicken-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.chicken-meta { font-size: 11px; color: #888; margin-bottom: 6px; }
.chicken-meta .star { color: #ff9800; font-weight: 600; }
.chicken-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.chicken-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fff3e0;
  color: #e65100;
}
.chicken-price { margin-top: 6px; font-size: 12px; color: #666; }
.chicken-price b { color: #ff5722; font-size: 15px; }
.chicken-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  height: 56px;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  z-index: 30;
}
.chicken-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #999;
  text-decoration: none;
}
.chicken-tab.active { color: #ff5722; }
.chicken-tab span:first-child { font-size: 20px; margin-bottom: 2px; }
.chicken-hero {
  min-height: 220px;
  background: linear-gradient(180deg, #fff8e1 0%, #ffe0b2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  overflow: hidden;
}
.chicken-hero img { width: 100%; height: 220px; object-fit: cover; }
.chicken-panel {
  background: #fff;
  margin: -16px 12px 10px;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.chicken-panel .title { font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.chicken-stars { color: #ff9800; font-size: 13px; margin-bottom: 12px; }
.chicken-store-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #fafafa;
  border-radius: 10px;
  margin-bottom: 12px;
}
.chicken-store-row .logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #ff9800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.chicken-desc { font-size: 13px; color: #666; line-height: 1.6; }
.chicken-specs {
  background: #fff;
  margin: 0 12px 10px;
  border-radius: 12px;
  padding: 14px;
}
.chicken-specs h3 { font-size: 14px; margin-bottom: 10px; }
.chicken-spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #444;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.chicken-spec-item:last-child { border-bottom: none; }
.chicken-spec-emoji {
  width: 32px;
  font-size: 22px;
  line-height: 1;
  text-align: center;
  flex-shrink: 0;
}
.chicken-spec-text { flex: 1; line-height: 1.4; }
.chicken-footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  height: 64px;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
  z-index: 30;
}
.chicken-footer-bar .now { color: #ff5722; font-size: 22px; font-weight: 700; }
.chicken-footer-bar .old { color: #bbb; font-size: 12px; text-decoration: line-through; margin-left: 6px; }
.chicken-buy-btn {
  margin-left: auto;
  background: linear-gradient(135deg, #ff6b35, #ff5722);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
}
.chicken-form-card {
  background: #fff;
  margin: 10px 12px;
  border-radius: 12px;
  padding: 14px;
}
.chicken-form-card label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}
.chicken-form-card input,
.chicken-form-card textarea {
  width: 100%;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  margin-bottom: 10px;
}
.chicken-item-row { display: flex; gap: 12px; align-items: center; }
.chicken-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffe0b2, #ff9800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  overflow: hidden;
}
.chicken-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.chicken-item-info { flex: 1; }
.chicken-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.chicken-item-price { color: #ff5722; font-size: 15px; font-weight: 700; }
.chicken-qty { display: flex; align-items: center; gap: 8px; font-size: 14px; }
/* ± 按钮：flex + 伪元素，避免手机 Safari/微信内 + 偏右（勿改回纯 text 居中） */
.chicken-add-btn,
.chicken-qty button,
.chicken-cart-row .cart-minus,
.chicken-cart-row .cart-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  font-size: 0;
  line-height: 0;
  text-indent: 0;
  overflow: hidden;
  vertical-align: middle;
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}
.chicken-qty button,
.chicken-cart-row .cart-minus,
.chicken-cart-row .cart-plus {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
}
.chicken-add-btn::before,
.chicken-qty button:last-child::before,
.chicken-cart-row .cart-plus::before {
  content: '+';
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
  color: inherit;
}
.chicken-qty button:first-child::before,
.chicken-cart-row .cart-minus::before {
  content: '−';
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
  color: inherit;
}
.chicken-add-btn::before {
  color: #fff;
  font-size: 22px;
}
.chicken-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
  padding: 4px 0;
}
.chicken-pay-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
}
.chicken-pay-row:last-child { border-bottom: none; }
.chicken-pay-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-right: 10px;
  color: #fff;
  font-weight: 700;
}
.chicken-pay-icon.alipay { background: #1677ff; }
.chicken-pay-icon.wechat { background: #07c160; }
.chicken-pay-name { flex: 1; font-size: 14px; }
.chicken-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
}
.chicken-check.on { background: #52c41a; border-color: #52c41a; color: #fff; }
.chicken-pay-btn {
  background: linear-gradient(135deg, #ff6b35, #ff5722);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
}
.chicken-empty {
  text-align: center;
  color: #999;
  padding: 40px 16px;
  font-size: 14px;
}
.chicken-toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.78);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 99;
  display: none;
}
.chicken-toast.show { display: block; }

/* 点击跳转（解决部分手机浏览器 a 标签不响应） */
.chicken-click { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chicken-link { color: #ff5722; text-decoration: underline; cursor: pointer; }
.chicken-link-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 13px;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}
.chicken-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #ff5722;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.chicken-tab { position: relative; }
.chicken-banner.has-image {
  background-size: cover;
  background-position: center;
}
.chicken-banner.has-image .chicken-banner-emoji { opacity: 0.3; }

/* 门店菜单页 */
.chicken-store-page { padding-bottom: 120px; }
.chicken-store-head {
  background: #fff;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
  color: #666;
}
.chicken-menu-wrap {
  display: flex;
  min-height: calc(100vh - 160px);
}
.chicken-cat-side {
  width: 88px;
  background: #f7f7f7;
  flex-shrink: 0;
  overflow-y: auto;
}
.chicken-cat-item {
  padding: 14px 8px;
  font-size: 12px;
  color: #666;
  text-align: center;
  border-left: 3px solid transparent;
}
.chicken-cat-item.active {
  background: #fff;
  color: #ff5722;
  font-weight: 600;
  border-left-color: #ff5722;
}
.chicken-menu-main {
  flex: 1;
  background: #fff;
  overflow-y: auto;
  padding-bottom: 80px;
}
.chicken-menu-section { padding: 8px 10px 0; }
.chicken-menu-cat-title {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  padding: 8px 4px;
}
.chicken-menu-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid #f5f5f5;
}
.chicken-menu-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffe0b2, #ff9800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  flex-shrink: 0;
  overflow: hidden;
}
.chicken-menu-thumb img { width: 100%; height: 100%; object-fit: cover; }
.chicken-menu-info { flex: 1; min-width: 0; }
.chicken-add-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  border: none;
  background: #ff5722;
  color: #fff;
  flex-shrink: 0;
  align-self: center;
}
.chicken-menu-item .chicken-add-btn {
  margin-top: 0;
}
.chicken-store-cart-bar {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  max-width: 456px;
  margin: 0 auto;
  height: 48px;
  background: #333;
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  z-index: 40;
  cursor: pointer;
}
.chicken-store-cart-bar .cart-icon {
  position: relative;
  font-size: 22px;
  margin-right: 12px;
}
.chicken-store-cart-bar .cart-text { font-size: 14px; font-weight: 600; }
.chicken-cart-row {
  background: #fff;
  margin: 10px 12px;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.chicken-cart-mini {
  background: #fff3e0;
  color: #ff5722;
  border: 1px solid #ffcc80;
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
}

/* 首页 · 直接展示商品 */
.chicken-home-page { padding-bottom: 130px; background: #f5f5f5; }
.chicken-home-header { background: #fff; }
.chicken-home-header .chicken-loc-bar { border-radius: 0; }
.chicken-home-header .chicken-banner { margin: 0 12px 12px; }
.chicken-home-promo {
  display: flex;
  gap: 8px;
  padding: 0 12px 10px;
  overflow-x: auto;
}
.chicken-home-promo span {
  flex-shrink: 0;
  font-size: 11px;
  background: #fff;
  color: #ff5722;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid #ffe0b2;
}
.chicken-home-section { margin-bottom: 14px; }
.chicken-section-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px 8px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}
.chicken-section-icon { font-size: 18px; }
.chicken-hot-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 12px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.chicken-hot-scroll .chicken-prod-card.hot {
  flex: 0 0 140px;
  scroll-snap-align: start;
}
.chicken-prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px;
}
.chicken-prod-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.chicken-prod-thumb {
  height: 110px;
  background: linear-gradient(145deg, #fff3e0, #ffcc80);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  line-height: 1;
  overflow: hidden;
}
.chicken-hot-scroll .chicken-prod-thumb { height: 96px; font-size: 42px; }
.chicken-prod-thumb img,
.chicken-thumb img,
.chicken-menu-thumb img,
.chicken-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chicken-prod-body { padding: 8px 10px 10px; }
.chicken-prod-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  max-height: 2.7em;
  overflow: hidden;
  color: #333;
}
.chicken-prod-sub { font-size: 10px; color: #999; margin: 2px 0 4px; }
.chicken-prod-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.chicken-prod-price b { color: #ff5722; font-size: 15px; }
.chicken-prod-price s { color: #bbb; font-size: 10px; margin-left: 4px; }
.chicken-home-page .chicken-store-cart-bar { bottom: 68px; }
