/* ============= 全局 & 重置 ============= */
* { box-sizing: border-box; margin:0; padding:0; }
html { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 16px; background: #f2f2f2; overflow-y: scroll; }
body { margin:0; padding-bottom: 60px; color: #333; }
a { color: inherit; text-decoration: none; }
button { outline: none; border: none; background: none; cursor: pointer; }

/* ============= 分类栏 ============= */
.category-bar {
  position: sticky; top: 0; z-index: 100;
  display: flex; overflow-x: auto;
  background: #ff6f61; padding: 0.5rem 0;
}
.category-bar::-webkit-scrollbar { display: none; }
.category-item {
  flex: 0 0 auto; margin: 0 0.5rem;
  padding: 0.4rem 0.8rem; background: rgba(255,111,97,0.2);
  border-radius: 20px; color: #fff; font-weight: 500;
  transition: background .3s;
}
.category-item.active,
.category-item:hover {
  background: #ffffff;
  color: #ff6f61;
}

/* ============= 产品列表 ============= */
main { padding: 0.6rem; }
.simple-list { list-style: none; }
.category-header {
  padding: 1rem 0 0.5rem;
  font-size: 1.2rem; font-weight: bold;
  color: #4b3832;
}
.product-item {
  display: flex; justify-content: space-between;
  align-items: center; padding: .75rem 0;
  border-bottom: 1px solid #e0e0e0;
  background: #fff; margin-bottom: 0.2rem;
  border-radius: 4px;
  transition: background .2s;
}
.product-item:hover {
  background: #fff8f7;
}
.product-item .name {
  flex:1; margin-right: 1rem;
  font-size: 1rem; line-height:1.2;
}
.product-item .price {
  white-space: nowrap; font-size: 1rem;
  color: #666;
}

/* ============= 底部滑出面板 ============= */
.bottom-sheet {
  position: fixed; left:0; right:0; bottom:-100%;
  background: #fff; border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
  transition: bottom .3s ease-out; z-index: 200;
}
.bottom-sheet.open { bottom:0; }
.sheet-content { padding:1rem; }
.sheet-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: .5rem;
}
.sheet-header h3 { font-size: 1.3rem; color: #4b3832; }
.close-sheet { font-size: 1.5rem; color: #999; cursor: pointer; }
.sheet-price { font-size: 1.2rem; margin: .5rem 0; color: #333; }
.qty-control {
  display: flex; justify-content: center; align-items: center;
  margin: 1rem 0;
}
.qty-control button {
  width: 2.8rem; height: 2.8rem;
  font-size: 1.6rem; background: #f7f7f7;
  border: 1px solid #ccc; border-radius: 4px;
}
.qty-control span {
  width: 3.2rem; text-align: center;
  font-size: 1.2rem; margin: 0 0.5rem;
}
.sheet-subtotal {
  text-align: right; font-size: 1.1rem;
  color: #444; margin-bottom: 1rem;
}
.btn-confirm {
  width: 100%; padding: 0.8rem;
  background: #4b3832; color: #fff;
  border-radius: 4px; font-size: 1rem;
}

/* ============= 底部固定栏 ============= */
.footer-bar {
  position: fixed; left:0; right:0; bottom:0;
  display: flex; justify-content: space-between;
  align-items: center; padding: .8rem 1rem;
  background: #ff6f61; color: #fff; z-index: 150;
}
.btn-submit {
  background: #4b3832; color: #fff;
  padding: 0.6rem 1.2rem; border-radius: 4px;
  animation: accentFlash 1.2s ease-in-out infinite;
}
@keyframes accentFlash {
  0%,100% { box-shadow: none; }
  50%    { box-shadow: 0 0 8px rgba(75,56,50,0.8); }
}
