/* 买车页：顶栏对齐众筹页 mc-top */
.m-buy-page {
  background: #f7f5ef;
}

.m-buy-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 228, 17, 0.96) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 0 14px 12px !important;
  padding-top: 0 !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 与众筹 .mc-top 同结构 */
.m-buy-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
}

.m-buy-back {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #f3f3f3);
  color: #1c1914;
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.m-buy-bar h1 {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 19px;
  font-weight: 900;
  color: #1c1914;
}

.m-buy-top-link {
  flex-shrink: 0;
  min-width: 40px;
  text-align: right;
  font-size: 15px;
  font-weight: 800;
  color: #1c1914;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

/* 兼容旧类名，避免残留样式干扰 */
.m-buy-top-row,
.m-buy-logo,
.m-buy-sell {
  display: none !important;
}

.m-buy-search {
  display: flex;
  align-items: center;
  height: 42px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  padding: 3px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), inset 0 1px 0 #fff;
  overflow: hidden;
}

.m-buy-search .m-city {
  border-right: 1px solid #eee !important;
  font-weight: 700;
  color: #1c1914;
}

.m-buy-search .m-search-go {
  border: 0 !important;
  border-radius: 999px !important;
  height: 34px !important;
  padding: 0 16px !important;
  font-weight: 900 !important;
  background: linear-gradient(180deg, #ff8a5c, #ff642e 50%, #e84e1a) !important;
  color: #1c1914 !important;
  box-shadow: 0 4px 10px rgba(232, 78, 26, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.m-buy-page .m-filter-bar {
  position: sticky !important;
  top: 118px !important;
  background: #fff !important;
  border-bottom: 1px solid #efe6d2 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.m-buy-page .m-filter-bar > button[data-panel] {
  font-weight: 700;
  color: #2a2418;
}

.m-buy-page .m-filter-bar > button[data-panel].is-on,
.m-buy-page .m-filter-bar > button[data-panel].is-active-val {
  color: #111 !important;
  font-weight: 900;
}

.m-buy-page .m-pay-seg {
  background: #f5f2e8;
  border-radius: 999px;
  padding: 2px;
}

.m-buy-page .m-pay-seg button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-weight: 700;
  color: #8a8070;
}

.m-buy-page .m-pay-seg button.is-on {
  background: linear-gradient(180deg, #ff8a5c, #ff642e);
  color: #111;
  box-shadow: 0 2px 6px rgba(232, 78, 26, 0.25);
}

.m-buy-page .m-sec-head h2 {
  font-weight: 900;
  color: #2a2418;
}

.m-buy-page .m-grid > a,
.m-buy-page .m-card {
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.m-buy-page .m-more {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #f3f3f3);
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06), inset 0 1px 0 #fff;
}

.m-buy-page .m-more-ok {
  background: linear-gradient(180deg, #ff8a5c, #ff642e 50%, #e84e1a) !important;
  color: #111 !important;
  font-weight: 900;
  border: 0 !important;
  box-shadow: 0 6px 14px rgba(232, 78, 26, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
