:root {
  --gz-green: #ff642e;
  --gz-green-dark: #e84e1a;
  --gz-green-soft: #ffe0d4;
  --gz-ink: #111111;
  --gz-orange: #ff4400;
  --gz-bg: #f5f5f5;
  --gz-card: #ffffff;
  --gz-text: #1f1f1f;
  --gz-sub: #999;
  --gz-line: #eee;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--gz-bg);
  color: var(--gz-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* —— 顶栏（闲鱼黄） —— */
.m-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--gz-green);
  padding: 8px 12px 10px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.m-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.m-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.m-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gz-green);
  color: #111;
  border: 1.5px solid #111;
  box-sizing: border-box;
  font-weight: 900;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m-logo-text {
  color: var(--gz-ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.m-brand-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.m-icon-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: #111;
  font-weight: 600;
  min-width: 36px;
}
.m-icon-link i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.08);
  display: block;
  position: relative;
}
.m-icon-link.sell i::before {
  content: "¥";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
}
.m-icon-link.login i::before {
  content: "";
  position: absolute;
  left: 7px; top: 5px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #888;
}
.m-icon-link.login i::after {
  content: "";
  position: absolute;
  left: 5px; bottom: 4px;
  width: 12px; height: 7px;
  border-radius: 6px 6px 2px 2px;
  background: #888;
}

.m-search-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: 22px;
  padding: 3px 3px 3px 12px;
  min-height: 40px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.m-city {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  padding: 0 8px 0 0;
  color: var(--gz-text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border-right: 1px solid #e0e0e0;
  margin-right: 6px;
  height: 28px;
}
.m-caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #666;
  margin-left: 3px;
}
.m-search {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}
.m-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  min-width: 0;
  font-size: 14px;
  padding: 6px 4px;
}
.m-search-go {
  flex: 0 0 auto;
  border: 0;
  background: var(--gz-green);
  color: #111;
  font-size: 13px;
  font-weight: 600;
  border-radius: 18px;
  padding: 8px 14px;
  line-height: 1;
}

.m-tabs {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 10px 0 0;
  scrollbar-width: none;
}
.m-tabs::-webkit-scrollbar { display: none; }
.m-tabs a {
  flex: 0 0 auto;
  font-size: 15px;
  color: #333;
  padding: 8px 0 10px;
  position: relative;
  white-space: nowrap;
}
.m-tabs a.is-active {
  color: #111;
  font-weight: 700;
}
.m-tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 3px;
  margin-left: -11px;
  border-radius: 2px;
  background: var(--gz-ink);
}

.m-main {
  padding: 12px 12px calc(var(--tabbar-h) + var(--safe-b) + 20px);
}

/* 三入口 */
.m-cta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.m-cta-card {
  background: var(--gz-card);
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.m-cta-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--gz-green-soft) center / 22px no-repeat;
}
.m-cta-ico.buy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300b53c'%3E%3Cpath d='M5 11l1.5-4.5A2 2 0 018.4 5h7.2a2 2 0 011.9 1.5L19 11h1a1 1 0 011 1v2a2 2 0 01-2 2h-.2a2.5 2.5 0 01-4.6 0h-3.4a2.5 2.5 0 01-4.6 0H5a2 2 0 01-2-2v-2a1 1 0 011-1h1zm2.2-1h9.6l-1-3H8.2l-1 3zM7.5 16a1 1 0 100-2 1 1 0 000 2zm9 0a1 1 0 100-2 1 1 0 000 2z'/%3E%3C/svg%3E");
}
.m-cta-ico.sell {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300b53c'%3E%3Cpath d='M12 2a5 5 0 015 5v1h1a3 3 0 013 3v7a3 3 0 01-3 3H6a3 3 0 01-3-3v-7a3 3 0 013-3h1V7a5 5 0 015-5zm0 2a3 3 0 00-3 3v1h6V7a3 3 0 00-3-3zm0 8a2 2 0 100 4 2 2 0 000-4z'/%3E%3C/svg%3E");
}
.m-cta-ico.store {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300b53c'%3E%3Cpath d='M3 9l1.5-4h15L21 9v2a2 2 0 01-2 2v7h-2v-7h-3v7H5v-7a2 2 0 01-2-2V9zm2.2 0h13.6l-.8-2H6l-.8 2z'/%3E%3C/svg%3E");
}
.m-cta-txt strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.m-cta-txt em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--gz-sub);
  margin-top: 2px;
}

/* Banner + 卖车卡 */
.m-hero {
  position: relative;
  margin-bottom: 12px;
}
.m-banner {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(255,228,17, 0.22), transparent 55%),
    linear-gradient(145deg, #d9f5e4 0%, #dff3ff 50%, #fff8e8 100%);
  padding: 18px 16px 56px;
  min-height: 132px;
}
.m-banner-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  color: #111;
  font-weight: 600;
}
.m-banner h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  color: #111;
  font-weight: 800;
}
.m-banner h1 span { color: var(--gz-orange); }
.m-banner-sub {
  margin: 8px 0 0;
  font-size: 12px;
  color: #4a6b55;
}

.m-sell-card {
  margin: -40px 0 0;
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.m-sell-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.m-sell-card .m-sell-tip {
  margin: 4px 0 12px;
  font-size: 12px;
  color: var(--gz-sub);
}
.m-sell-card .m-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--gz-line);
  border-radius: 10px;
  padding: 0 12px;
  margin-bottom: 10px;
  background: #fafafa;
}
.m-sell-card .m-field input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
  min-width: 0;
}
.m-sell-card .m-code-btn {
  border: 0;
  background: transparent;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 0 0 8px;
}
.m-sell-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.m-sell-actions button {
  border: 0;
  border-radius: 22px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
}
.m-sell-actions .ghost {
  background: var(--gz-green-soft);
  color: #111;
}
.m-sell-actions .solid {
  background: var(--gz-green);
  color: #111;
}
.m-sell-agree {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--gz-sub);
  line-height: 1.4;
}
.m-sell-agree input { margin-top: 2px; }
.m-sell-msg {
  margin: 8px 0 0;
  font-size: 12px;
  color: #111;
  min-height: 16px;
}
.m-sell-msg.err { color: #e14; }

.m-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 0;
}
.m-trust span {
  background: #f7faf8;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #456;
  text-align: center;
}

/* 服务 / 分类 */
.m-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 4px;
  margin-bottom: 12px;
  text-align: center;
}
.m-services div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #555;
}
.m-services i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gz-green-soft);
  position: relative;
}
.m-services i::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2px solid var(--gz-green);
}

.m-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.m-cats::-webkit-scrollbar { display: none; }
.m-cats a {
  flex: 0 0 auto;
  background: #fff;
  border-radius: 18px;
  padding: 8px 14px;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.m-store {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.m-store h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.m-store .open {
  display: inline-block;
  background: var(--gz-green-soft);
  color: #111;
  font-size: 11px;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 6px;
  font-weight: 600;
}
.m-store p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--gz-sub);
  line-height: 1.5;
}

.m-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 4px 2px 10px;
}
.m-sec-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.m-sec-head span, .m-sec-head a {
  font-size: 12px;
  color: var(--gz-sub);
}

.m-brands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.m-brands button {
  border: 0;
  background: #fff;
  border-radius: 10px;
  padding: 12px 4px;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.m-brands button.is-on {
  background: var(--gz-green-soft);
  color: #111;
  font-weight: 600;
}
.m-brands .more {
  color: var(--gz-sub);
}

.m-filters { margin-bottom: 8px; }
.m-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.m-chips::-webkit-scrollbar { display: none; }
.m-chips button {
  flex: 0 0 auto;
  border: 0;
  background: #fff;
  color: #333;
  border-radius: 16px;
  padding: 7px 12px;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.m-chips button.is-on {
  background: var(--gz-green-soft);
  color: #111;
  font-weight: 600;
}

.m-sort {
  display: flex;
  gap: 4px;
  margin: 0 0 10px;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
}
.m-sort button {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 12px;
  color: #666;
}
.m-sort button.is-on {
  background: var(--gz-green-soft);
  color: #111;
  font-weight: 600;
}

.m-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.m-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
}
.m-card-pic {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  overflow: hidden;
}
.m-card-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-card-tag {
  position: absolute;
  left: 6px;
  top: 6px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 10px;
  border-radius: 4px;
  padding: 2px 5px;
}
.m-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.m-card-tags span {
  font-size: 10px;
  color: #009b3f;
  border: 1px solid #99d7b2;
  border-radius: 2px;
  padding: 1px 4px;
  line-height: 1.3;
}
.m-card-down {
  margin-top: 2px;
  font-size: 11px;
  color: #ff6600;
  font-weight: 600;
}
.m-card-body {
  padding: 8px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.m-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.m-card-meta {
  font-size: 11px;
  color: var(--gz-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-card-price {
  margin-top: auto;
  color: var(--gz-orange);
  font-size: 16px;
  font-weight: 700;
}
.m-card-price small {
  font-size: 12px;
  font-weight: 600;
  margin-left: 1px;
}
.m-card-price.face {
  color: #666;
  font-size: 14px;
}

/* 已售出：列表灰显 + 盖章 */
.m-card.is-sold {
  filter: grayscale(0.45);
  opacity: 0.9;
}
.m-card.is-sold .m-card-price,
.m-card.is-sold .m-card-down {
  color: #888 !important;
}
.m-card.is-sold .m-card-tags span {
  color: #888;
  border-color: #ccc;
}
.m-card-sold-stamp {
  --stamp: #c62828;
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--stamp);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.35), transparent 42%),
    radial-gradient(circle at 70% 75%, rgba(198, 40, 40, 0.18), transparent 50%),
    rgba(255, 248, 245, 0.55);
  border: 2px solid var(--stamp);
  box-shadow:
    inset 0 0 0 4px rgba(198, 40, 40, 0.18),
    inset 0 0 0 6px rgba(255, 255, 255, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transform: rotate(-18deg);
  pointer-events: none;
  animation: mStampIn 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.m-card-sold-stamp::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px dashed rgba(198, 40, 40, 0.75);
  opacity: 0.9;
}
.m-card-sold-stamp::after {
  content: '★';
  position: absolute;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
  font-size: 8px;
  line-height: 1;
  color: var(--stamp);
  opacity: 0.85;
}
.m-card-sold-stamp > em {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.m-card-sold-stamp > small {
  position: relative;
  z-index: 1;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: 0.85;
  line-height: 1;
}
@keyframes mStampIn {
  0% { opacity: 0; transform: rotate(-18deg) scale(1.35); filter: blur(1px); }
  60% { opacity: 1; transform: rotate(-18deg) scale(0.96); filter: none; }
  100% { opacity: 1; transform: rotate(-18deg) scale(1); }
}

.m-more {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: #fff;
  border-radius: 22px;
  padding: 12px;
  font-size: 14px;
  color: #333;
}
.m-empty {
  text-align: center;
  color: var(--gz-sub);
  padding: 28px 12px;
  font-size: 14px;
}

/* FAQ */
.m-faq {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-top: 16px;
}
.m-faq h2 {
  margin: 0 0 4px;
  font-size: 17px;
}
.m-faq .sub {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--gz-sub);
}
.m-faq details {
  border-top: 1px solid var(--gz-line);
  padding: 10px 0;
}
.m-faq summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.m-faq summary::-webkit-details-marker { display: none; }
.m-faq summary::after {
  content: "+";
  float: right;
  color: var(--gz-sub);
  font-weight: 400;
}
.m-faq details[open] summary::after { content: "−"; }
.m-faq p {
  margin: 8px 0 0;
  font-size: 13px;
  color: #555;
  line-height: 1.55;
}

.m-about {
  margin-top: 16px;
  padding: 16px 8px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--gz-sub);
  line-height: 1.6;
}
.m-about strong {
  display: block;
  color: #333;
  font-size: 14px;
  margin-bottom: 6px;
}

/* 买车页（瓜子风格顶栏 + 筛选） */
.m-buy-page {
  padding-top: 0;
}
.m-buy-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  padding: 8px 12px 10px;
  border-bottom: 0;
}
.m-buy-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.m-buy-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}
.m-buy-logo span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gz-green);
  color: #111;
  border: 1.5px solid #111;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}
.m-buy-sell {
  color: #303740;
  font-size: 15px;
  text-decoration: none;
  font-weight: 600;
}
.m-buy-search {
  display: flex;
  align-items: center;
  height: 34px;
  border: 1px solid var(--gz-green);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  padding: 0 2px 0 0;
}
.m-buy-search .m-city {
  border-right: 1px solid #e5e5e5;
  margin-right: 0;
  height: 100%;
  padding: 0 8px;
  font-size: 13px;
}
.m-buy-search .m-search {
  padding: 0 6px;
}
.m-buy-search .m-search-go {
  border-radius: 4px;
  height: 28px;
  padding: 0 12px;
  font-size: 13px;
}
.m-buy-main {
  padding-top: 8px;
}

.m-filter-bar {
  position: sticky;
  top: 86px;
  z-index: 35;
  display: grid;
  grid-template-columns: 0.95fr 0.85fr 0.95fr 1.55fr 0.75fr;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--gz-line);
  padding: 0 4px;
  gap: 0;
}
.m-filter-bar > button[data-panel] {
  border: 0;
  background: transparent;
  padding: 12px 2px;
  font-size: 13px;
  color: #303740;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  white-space: nowrap;
  min-width: 0;
}
.m-filter-bar > button[data-panel] span {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 4.5em;
}
.m-filter-bar button .m-caret {
  border-top-color: #8f96a0;
  margin-left: 2px;
  flex-shrink: 0;
}
.m-filter-bar > button[data-panel].is-on,
.m-filter-bar > button[data-panel].is-on .m-caret {
  color: #111;
  border-top-color: #111;
  font-weight: 600;
}
.m-filter-bar > button[data-panel].is-active-val {
  color: #111;
  font-weight: 600;
}
.m-pay-seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 6px 2px;
}
.m-pay-seg button {
  border: 1px solid #dfe3e8;
  background: #fff;
  color: #5c6570;
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
  white-space: nowrap;
}
.m-pay-seg button:first-child {
  border-radius: 4px 0 0 4px;
  border-right: 0;
}
.m-pay-seg button:last-child {
  border-radius: 0 4px 4px 0;
}
.m-pay-seg button.is-on {
  border-color: #111;
  color: #111;
  background: var(--gz-green-soft);
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.m-filter-ico {
  width: 12px;
  height: 12px;
  margin-left: 2px;
  flex-shrink: 0;
  background:
    linear-gradient(currentColor, currentColor) center/10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center 3px / 7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center 9px / 4px 2px no-repeat;
  color: #8f96a0;
}
.m-filter-bar > button[data-panel].is-on .m-filter-ico,
.m-filter-bar > button[data-panel].is-active-val .m-filter-ico {
  color: #111;
}
.m-filter-panel .region-grid {
  grid-template-columns: repeat(4, 1fr);
}

.m-filter-mask[hidden],
.m-more-mask[hidden] { display: none !important; }
.m-filter-mask {
  /* 遮罩贴在筛选条下方固定，不随列表滚动 */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 130px;
  z-index: 34;
  background: rgba(0,0,0,.35);
}
.m-filter-panel {
  /* 品牌/价格/地区等下拉固定在视口，贴筛选条下方 */
  position: fixed;
  left: 0;
  right: 0;
  top: 130px;
  z-index: 36;
  background: #fff;
  padding: 12px;
  border-bottom: 1px solid var(--gz-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: min(55vh, calc(100vh - 130px - 56px));
  overflow: auto;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.m-filter-panel.m-filter-brands {
  display: block;
  padding: 0 0 12px;
}
.m-filter-panel .sec-title {
  width: 100%;
  font-size: 13px;
  color: #8f96a0;
  margin: 4px 0 8px;
  font-weight: 600;
}
.m-filter-panel .brand-grid,
.m-more-opts.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.m-filter-panel button {
  border: 1px solid var(--gz-line);
  background: #fafafa;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  color: #303740;
}
.m-filter-panel .brand-grid button,
.m-more-opts.brand-grid button {
  padding: 10px 12px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  text-align: left;
}
.m-filter-panel .brand-grid .brand-logo,
.m-more-opts.brand-grid .brand-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
}
.m-filter-panel button.is-on {
  border-color: #111;
  color: #111;
  background: var(--gz-green-soft);
  font-weight: 600;
}

.m-more-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,.45);
  display: flex;
  justify-content: flex-end;
}
.m-more-sheet {
  width: min(92vw, 420px);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  animation: mSlideIn 0.2s ease-out;
}
@keyframes mSlideIn {
  from { transform: translateX(24px); opacity: .7; }
  to { transform: translateX(0); opacity: 1; }
}
.m-more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid #eef0f3;
  flex: 0 0 auto;
}
.m-more-head strong { font-size: 16px; }
.m-more-head button {
  border: 0;
  background: transparent;
  color: #666;
  font-size: 14px;
}
.m-more-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
.m-more-nav {
  width: 96px;
  background: #f5f7fa;
  overflow: auto;
  flex: 0 0 auto;
}
.m-more-nav button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 14px 12px;
  font-size: 13px;
  color: #555;
}
.m-more-nav button.is-on {
  background: #fff;
  color: #111;
  font-weight: 700;
}
.m-more-content {
  flex: 1;
  overflow: auto;
  padding: 12px 14px 20px;
}
.m-more-block { margin-bottom: 18px; }
.m-more-block h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}
.m-more-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.m-more-opts button {
  border: 1px solid #e6e8eb;
  background: #fafafa;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
}
.m-more-opts button.is-on {
  border-color: #111;
  color: #111;
  background: var(--gz-green-soft);
  font-weight: 600;
}
.m-more-foot {
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eef0f3;
  flex: 0 0 auto;
}
.m-more-reset {
  flex: 0 0 88px;
  border: 0;
  background: #f5f6f8;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
}
.m-more-ok {
  flex: 1;
  border: 0;
  background: var(--gz-green);
  color: #111;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  height: 42px;
}

/* 底栏 / 回顶 —— 瓜子风格 */
.m-tabbar {
  --tabbar-h: 58px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding: 4px 2px var(--safe-b);
  background: #fff;
  border-top: 1px solid #ebebeb;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  box-shadow: 0 -2px 10px rgba(0,0,0,.04);
}
.m-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 4px 0 6px;
  font-size: 10px;
  line-height: 1.2;
  color: #8a8a8a;
  position: relative;
  min-width: 0;
}
.m-tabbar a span {
  white-space: nowrap;
  transform: scale(0.96);
}
.m-tabbar a.is-active {
  color: #111;
  font-weight: 600;
}
.m-tabbar .tb-ico {
  width: 24px;
  height: 24px;
  display: block;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 22px 22px;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 22px 22px;
}
.m-tabbar .tb-home {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3.2 3.5 10.2V21h6.2v-6.2h4.6V21h6.2V10.2L12 3.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3.2 3.5 10.2V21h6.2v-6.2h4.6V21h6.2V10.2L12 3.2z'/%3E%3C/svg%3E");
}
.m-tabbar .tb-sell {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 7.5 12 3l8 4.5V11l-2.2-1.2V19H6.2v-9.2L4 11V7.5zm4.2 3.3V17h7.6v-6.2l-3.8-2.1-3.8 2.1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 7.5 12 3l8 4.5V11l-2.2-1.2V19H6.2v-9.2L4 11V7.5zm4.2 3.3V17h7.6v-6.2l-3.8-2.1-3.8 2.1z'/%3E%3C/svg%3E");
}
.m-tabbar .tb-mall {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 5h16v2.2H4V5zm1.2 4h13.6l-1.1 10H6.3L5.2 9zm3.3 2.2v5.6h1.8v-5.6H8.5zm3.6 0v5.6h1.8v-5.6h-1.8zm3.6 0v5.6H17v-5.6h-1.3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 5h16v2.2H4V5zm1.2 4h13.6l-1.1 10H6.3L5.2 9zm3.3 2.2v5.6h1.8v-5.6H8.5zm3.6 0v5.6h1.8v-5.6h-1.8zm3.6 0v5.6H17v-5.6h-1.3z'/%3E%3C/svg%3E");
}
.m-tabbar .tb-me {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 12a4.2 4.2 0 1 0 0-8.4A4.2 4.2 0 0 0 12 12zm0 2.1c-4.1 0-7.5 2.1-7.5 4.7V21h15v-2.2c0-2.6-3.4-4.7-7.5-4.7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 12a4.2 4.2 0 1 0 0-8.4A4.2 4.2 0 0 0 12 12zm0 2.1c-4.1 0-7.5 2.1-7.5 4.7V21h15v-2.2c0-2.6-3.4-4.7-7.5-4.7z'/%3E%3C/svg%3E");
}
/* 中间突出卖车（闲鱼 + 号） */
.m-tabbar a.tb-sell-orb {
  justify-content: flex-end;
  padding-bottom: 6px;
  color: #8a8a8a;
}
.m-tabbar a.tb-sell-orb .tb-plus {
  width: 48px;
  height: 48px;
  margin-top: -22px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff642e 0%, #e84e1a 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  border: 3px solid #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(0);
}
.m-tabbar a.tb-sell-orb.is-active {
  color: #111;
  font-weight: 700;
}
.m-tabbar a.tb-sell-orb.is-active .tb-plus {
  background: #ff642e;
}
.m-tabbar .tb-buy-flat {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5 11.2 7.2 6.5h9.6L19 11.2H5zm-.8 1.5h15.6l-.7 2.6H5l-.8-2.6zM6.4 17.8a1.3 1.3 0 1 0 0-2.6 1.3 1.3 0 0 0 0 2.6zm11.2 0a1.3 1.3 0 1 0 0-2.6 1.3 1.3 0 0 0 0 2.6zM4.5 5h15l2 5.2V16a2 2 0 0 1-2 2h-.4a2.5 2.5 0 0 1-4.9 0H9.8a2.5 2.5 0 0 1-4.9 0H4.5a2 2 0 0 1-2-2v-5.8L4.5 5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5 11.2 7.2 6.5h9.6L19 11.2H5zm-.8 1.5h15.6l-.7 2.6H5l-.8-2.6zM6.4 17.8a1.3 1.3 0 1 0 0-2.6 1.3 1.3 0 0 0 0 2.6zm11.2 0a1.3 1.3 0 1 0 0-2.6 1.3 1.3 0 0 0 0 2.6zM4.5 5h15l2 5.2V16a2 2 0 0 1-2 2h-.4a2.5 2.5 0 0 1-4.9 0H9.8a2.5 2.5 0 0 1-4.9 0H4.5a2 2 0 0 1-2-2v-5.8L4.5 5z'/%3E%3C/svg%3E");
}

/* 我的页 */
.m-me-hero {
  background: linear-gradient(160deg, #ff642e 0%, #e84e1a 55%, #ffe0d4 100%);
  color: #111;
  padding: 20px 16px 28px;
}
.m-me-brand {
  font-size: 13px;
  opacity: .9;
  margin-bottom: 14px;
}
.m-me-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.m-me-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}
.m-me-user strong { display: block; font-size: 17px; }
.m-me-user p { margin: 4px 0 0; font-size: 12px; opacity: .9; }
.m-me-main { padding-top: 12px; }
.m-me-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.m-me-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-bottom: 1px solid #f0f1f3;
  font-size: 15px;
  color: #222;
}
.m-me-card a:last-child { border-bottom: 0; }
.m-me-card a i {
  width: 8px;
  height: 8px;
  border-right: 2px solid #c5c8ce;
  border-bottom: 2px solid #c5c8ce;
  transform: rotate(-45deg);
}
.m-me-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.m-me-btn {
  flex: 1;
  border: 0;
  border-radius: 20px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}
.m-me-btn.solid {
  background: #fff;
  color: #111;
}
.m-me-btn.ghost {
  background: rgba(255,255,255,.22);
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
}
.m-auth-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.m-auth-sheet {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 14px 16px calc(18px + var(--safe-b));
  max-height: 86vh;
  overflow: auto;
}
.m-auth-sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.m-auth-sheet header button {
  border: 0;
  background: transparent;
  color: #666;
  font-size: 14px;
}
.m-auth-form h3 {
  margin: 0 0 12px;
  font-size: 18px;
}
.m-auth-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: #666;
}
.m-auth-form input {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--gz-line);
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  background: #fafafa;
}
.m-auth-submit {
  width: 100%;
  border: 0;
  border-radius: 22px;
  padding: 12px;
  margin-top: 6px;
  background: var(--gz-green);
  color: #111;
  font-size: 15px;
  font-weight: 700;
}
.m-auth-msg {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 12px;
  color: #e14;
}
.m-auth-switch {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  color: #666;
}
.m-auth-switch button {
  border: 0;
  background: transparent;
  color: #111;
  font-weight: 700;
}
.m-me-tip {
  text-align: center;
  color: #9aa0a6;
  font-size: 12px;
  margin: 18px 8px 8px;
}

.m-backtop {
  position: fixed;
  right: 14px;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
  z-index: 45;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  color: #333;
  font-size: 12px;
  font-weight: 600;
}

.m-city-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: flex-end;
}
.m-city-sheet {
  width: 100%;
  max-height: 82vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 12px 12px calc(12px + var(--safe-b));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.m-city-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.m-city-head button {
  border: 0;
  background: transparent;
  color: var(--gz-sub);
  font-size: 14px;
}
.m-city-list,
.m-city-picker {
  position: relative;
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 18px;
}
.m-city-list:not(.m-city-picker) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.m-city-search {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding: 0 0 10px;
}
.m-city-search input {
  width: 100%;
  border: 1px solid var(--gz-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f5f6f8;
  font-size: 14px;
}
.m-city-sec { margin-bottom: 14px; }
.m-city-sec-title {
  font-size: 13px;
  color: #8f96a0;
  font-weight: 600;
  margin: 4px 0 8px;
}
.m-city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.m-city-picker button,
.m-city-list button,
.m-region-full button[data-name] {
  border: 1px solid var(--gz-line);
  background: #fafafa;
  border-radius: 8px;
  padding: 10px 4px;
  font-size: 12px;
  color: #303740;
}
.m-city-picker button.is-on,
.m-city-list button.is-on,
.m-region-full button[data-name].is-on {
  border-color: #111;
  color: #111;
  background: var(--gz-green-soft);
  font-weight: 600;
}
.m-city-index {
  position: sticky;
  top: 48px;
  float: right;
  width: 16px;
  margin-right: -16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 10px;
  line-height: 1.15;
  z-index: 3;
}
.m-city-index a {
  color: #8f96a0;
  padding: 1px 0;
}
.m-city-index a:active { color: #111; }
.m-filter-panel .m-region-full {
  width: 100%;
  max-height: 55vh;
  overflow: auto;
  position: relative;
  padding-right: 18px;
}
.m-filter-panel .m-region-full .m-city-index {
  position: absolute;
  right: 0;
  top: 44px;
  float: none;
  margin: 0;
}

/* 众筹买车样式见 mall.css */

/* 全站轻提示 */
.hs-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h, 56px) + var(--safe-b, 0px) + 24px);
  z-index: 9999;
  max-width: min(86vw, 320px);
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(20, 24, 28, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.hs-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 手机版在宽屏上仍保持手机壳；电脑请访问 /pc/ */
@media (min-width: 901px) {
  body {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 0 1px var(--gz-line);
  }
  .m-tabbar, .m-backtop, .m-buy-top, .m-filter-bar {
    max-width: 480px;
  }
  .m-tabbar {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
  }
  .m-backtop {
    right: calc(50% - 240px + 14px);
  }
}

/* 手机版隐藏右侧悬浮栏 */
.yx-dock { display: none !important; }
