/* 拾集 · 浅色信息流视觉层
   设计语言：白色列表、浅灰底、深绿主色、扁平分隔线、底部中央绿色发布键。
   不包含任何第三方商标、图标或素材。 */

:root {
  --wa-green: #00a884;
  --wa-green-deep: #008069;
  --wa-green-dark: #005c4b;
  --wa-green-soft: #d9fdd3;
  --wa-green-wash: #e7fce3;
  --wa-text: #111b21;
  --wa-text-soft: #3b4a54;
  --wa-muted: #5b6b74;
  --wa-faint: #667781;
  --wa-line: #e9edef;
  --wa-line-strong: #d1d7db;
  --wa-surface: #ffffff;
  --wa-bg: #f0f2f5;
  --wa-wallpaper: #efeae2;
  --wa-red: #ea0038;
  --wa-amber: #d97706;
  --wa-blue: #53bdeb;
  --wa-radius: 10px;
  --wa-radius-sm: 8px;
  --wa-shadow: 0 1px 1px rgba(11, 20, 26, 0.12);
  --wa-shadow-float: 0 5px 14px rgba(11, 20, 26, 0.2);
  --wa-font: Roboto, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--wa-bg);
  color: var(--wa-text);
  font-family: var(--wa-font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

svg {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

::placeholder {
  color: var(--wa-muted);
  opacity: 1;
}

:focus-visible {
  outline: 2px solid var(--wa-green);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--wa-green-deep);
  color: #fff;
}

.skip-link:focus {
  left: 12px;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 56px;
  background: var(--wa-green-deep);
  color: #fff;
  box-shadow: 0 1px 3px rgba(11, 20, 26, 0.2);
}

.app-shell .topbar {
  display: none;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 900px;
  height: 56px;
  margin: 0 auto;
  padding: 0 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  color: var(--wa-green-deep);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.brand-sub {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 600;
}

.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 1px;
  padding: 0 5px;
  border: 2px solid var(--wa-green-deep);
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.top-publish {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  margin-left: 4px;
  padding: 5px 13px;
  border-radius: 18px;
  background: #fff;
  color: var(--wa-green-deep);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.top-publish svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.top-publish:hover {
  background: #f4ffef;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}

.mobile-only {
  display: none;
}

.badge-dot {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid var(--wa-surface);
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.topbar .badge-dot {
  position: absolute;
  top: 3px;
  right: 2px;
  border-color: var(--wa-green-deep);
}

.top-actions .avatar {
  margin-left: 3px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: var(--wa-green-soft);
  color: var(--wa-green-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  object-fit: cover;
}

.avatar.lg {
  width: 54px;
  height: 54px;
  font-size: 20px;
}

.avatar.sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.top-login,
.top-register {
  margin-left: 4px;
}

.topbar .top-login {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
}

.topbar .top-login:hover {
  background: rgba(255, 255, 255, 0.12);
}

.topbar .top-register {
  border-color: #fff;
  background: #fff;
  color: var(--wa-green-deep);
}

.topbar .top-register:hover {
  background: #f4ffef;
}

/* ---------- 主容器 ---------- */

#app {
  width: 100%;
  max-width: 900px;
  min-height: calc(100vh - 56px);
  min-height: calc(100dvh - 56px);
  margin: 0 auto;
  padding: 0 0 104px;
  background: var(--wa-surface);
}

.app-shell #app {
  min-height: 100vh;
  min-height: 100dvh;
}

body.in-thread {
  overflow: hidden;
}

body.in-thread .topbar,
body.in-thread .tabbar {
  display: none;
}

body.in-thread #app {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: var(--wa-wallpaper);
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--wa-line);
  background: var(--wa-surface);
}

.page-head h1,
.page-head h2 {
  margin: 0 0 2px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.page-head p {
  margin: 0;
  color: var(--wa-muted);
  font-size: 13px;
}

.loading-line {
  padding: 18px 16px;
  color: var(--wa-muted);
  font-size: 13px;
}

/* ---------- 首页 ---------- */

.home-head {
  padding: 16px 16px 0;
  background: var(--wa-surface);
}

.home-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--wa-green-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wa-green);
  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.14);
}

.home-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 3px 0 13px;
}

.home-title {
  margin: 0;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.home-badge {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--wa-green-wash);
  color: var(--wa-green-deep);
  font-size: 11px;
  font-weight: 650;
}

.home-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--wa-radius);
  background: var(--wa-bg);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-search:focus-within {
  border-color: var(--wa-green);
  background: #fff;
}

.home-search > svg {
  width: 20px;
  height: 20px;
  color: var(--wa-faint);
  stroke-width: 2;
}

.home-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--wa-text);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.home-search .search-submit {
  display: none;
}

.search-clear {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--wa-faint);
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.search-clear:hover {
  background: rgba(11, 20, 26, 0.06);
}

.chips {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid var(--wa-line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--wa-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  background: #f7f8fa;
}

.chip.active {
  border-color: var(--wa-green-soft);
  background: var(--wa-green-soft);
  color: var(--wa-green-deep);
  font-weight: 650;
}

.home-cta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--wa-radius);
  background: var(--wa-green-wash);
}

.home-cta-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
}

.home-cta-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.home-cta-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.home-cta-copy b {
  color: var(--wa-text);
  font-size: 13.5px;
  font-weight: 600;
}

.home-cta-copy span {
  margin-top: 1px;
  color: var(--wa-muted);
  font-size: 11.5px;
}

.home-cta-arrow {
  flex: none;
  color: var(--wa-green-deep);
  font-size: 23px;
  line-height: 1;
}

/* ---------- 闲鱼式首页框架 ---------- */

.xy-head {
  padding: 2px 0 8px;
  background: var(--wa-surface);
}

.xy-topline {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 0 8px 0 14px;
}

.xy-topline::before {
  content: "";
  position: absolute;
  top: 0;
  right: 38px;
  bottom: 0;
  width: 32px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--wa-surface));
  pointer-events: none;
}

.xy-tabs {
  display: flex;
  flex: 1;
  gap: 22px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.xy-tabs::-webkit-scrollbar {
  display: none;
}

.xy-tab {
  position: relative;
  flex: none;
  padding: 10px 0 9px;
  border: 0;
  background: none;
  color: var(--wa-muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.xy-tab.active {
  color: var(--wa-text);
  font-weight: 700;
}

.xy-tab.active::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--wa-green);
  transform: translateX(-50%);
}

.xy-more {
  display: none;
  place-items: center;
  width: 34px;
  flex: none;
  margin: 4px 0;
  border-radius: 50%;
  color: var(--wa-muted);
  -webkit-tap-highlight-color: transparent;
}

.app-shell .xy-more {
  display: grid;
}

.xy-more:active {
  background: var(--wa-bg);
}

.xy-more-dots {
  margin-top: -6px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
}

.xy-head .home-search {
  margin: 4px 14px 0;
  padding: 0 5px 0 13px;
  border-color: var(--wa-line-strong);
  border-radius: 999px;
  background: var(--wa-surface);
}

.xy-head .home-search:focus-within {
  border-color: var(--wa-green);
  background: var(--wa-surface);
}

.xy-head .home-search .search-submit {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
}

.xy-head .home-search .search-submit svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.xy-feed-head {
  gap: 22px;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 1px solid var(--wa-line);
}

.xy-feed-tab {
  position: relative;
  flex: none;
  padding: 11px 0 10px;
  border: 0;
  background: none;
  color: var(--wa-muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.xy-feed-tab.active {
  color: var(--wa-text);
  font-weight: 700;
}

.xy-feed-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--wa-green);
  transform: translateX(-50%);
}

.xy-feed-head .feed-count {
  margin-left: auto;
  white-space: nowrap;
}

/* ---------- 信息流标题 ---------- */

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px 9px;
  background: var(--wa-surface);
}

.feed-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.feed-heading {
  overflow: hidden;
  color: var(--wa-text);
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-count {
  flex: none;
  color: var(--wa-faint);
  font-size: 11.5px;
  font-weight: 400;
}

.feed-sort {
  flex: none;
}

.select {
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid var(--wa-line);
  border-radius: var(--wa-radius-sm);
  outline: 0;
  background: var(--wa-surface);
  color: var(--wa-muted);
  font-size: 12.5px;
}

.select:focus {
  border-color: var(--wa-green);
}

/* ---------- 商品列表 ---------- */

.product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 16px;
  background: transparent;
}

.product-row {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--wa-line);
  border-radius: 12px;
  background: var(--wa-surface);
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.product-row:hover {
  background: #fff;
  box-shadow: 0 2px 10px rgba(11, 20, 26, 0.08);
}

.product-row.inactive {
  opacity: 0.68;
}

.product-link {
  display: block;
  min-width: 0;
  color: inherit;
}

.product-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
  background: var(--wa-bg);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--wa-faint);
  font-size: 11px;
}

.product-main {
  min-width: 0;
  padding: 9px 11px 11px;
}

.product-title {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  margin: 0;
  color: var(--wa-text);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price {
  margin-top: 4px;
  color: var(--wa-green-deep);
  font-size: 16.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.price::before {
  content: "¥";
  margin-right: 1px;
  font-size: 11px;
  font-weight: 600;
}

.product-meta {
  overflow: hidden;
  margin-top: 2px;
  color: var(--wa-muted);
  font-size: 11.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-time {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--wa-faint);
  font-size: 11px;
}

.product-side {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: block;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
}

.fav-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--wa-text-soft);
  box-shadow: 0 1px 4px rgba(11, 20, 26, 0.18);
  -webkit-tap-highlight-color: transparent;
}

.fav-btn:hover {
  background: #fff;
}

.fav-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.14s ease;
}

.fav-btn.on {
  color: var(--wa-red);
}

.fav-btn.on svg {
  fill: currentColor;
  transform: scale(1.04);
}

.product-chevron {
  display: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--wa-bg);
  color: var(--wa-muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
}

.status-pill.sold {
  background: #fff4e5;
  color: #9a5b00;
}

.status-pill.hidden,
.status-pill.removed {
  background: #fdecea;
  color: var(--wa-red);
}

.load-more {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--wa-line);
  background: var(--wa-surface);
  color: var(--wa-green-deep);
  font-size: 13.5px;
  font-weight: 600;
}

.load-more:hover {
  background: #f7f8fa;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--wa-line-strong);
  border-radius: var(--wa-radius-sm);
  background: var(--wa-surface);
  color: var(--wa-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.btn:hover {
  background: #f7f8fa;
}

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

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  border-color: var(--wa-green-deep);
  background: var(--wa-green-deep);
  color: #fff;
}

.btn-primary:hover {
  border-color: var(--wa-green-dark);
  background: var(--wa-green-dark);
}

.btn-accent {
  border-color: var(--wa-green);
  background: var(--wa-green);
  color: #fff;
}

.btn-accent:hover {
  border-color: var(--wa-green-deep);
  background: var(--wa-green-deep);
}

.btn-danger {
  border-color: #f3c6c1;
  background: #fff;
  color: var(--wa-red);
}

.btn-danger:hover {
  background: #fff5f5;
}

.btn-sm {
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
}

.btn-link {
  width: fit-content;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--wa-green-deep);
  font-size: 13px;
  font-weight: 600;
}

.btn-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 商品详情 ---------- */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: start;
  background: var(--wa-surface);
}

.gallery {
  position: sticky;
  top: 56px;
  padding: 16px;
  border-right: 1px solid var(--wa-line);
}

.gallery-main {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--wa-radius);
  background: var(--wa-bg);
}

.gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-bottom: 2px;
  overflow-x: auto;
}

.thumb {
  width: 56px;
  height: 56px;
  flex: none;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--wa-radius-sm);
  background: var(--wa-bg);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb.active {
  border-color: var(--wa-green);
}

.detail .info {
  padding: 18px 16px 26px;
}

.detail-title {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.detail-price {
  margin-bottom: 11px;
  color: var(--wa-green-deep);
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.detail-price::before {
  content: "¥";
  margin-right: 2px;
  font-size: 17px;
  font-weight: 600;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--wa-bg);
  color: var(--wa-muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
}

.badge.brand {
  background: var(--wa-green-wash);
  color: var(--wa-green-deep);
}

.detail-desc {
  margin: 0 0 16px;
  padding: 14px 0;
  border-top: 1px solid var(--wa-line);
  border-bottom: 1px solid var(--wa-line);
  color: var(--wa-text-soft);
  font-size: 14.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.seller-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 11px 12px;
  border-radius: var(--wa-radius);
  background: #f7f8fa;
}

.seller-card .grow {
  flex: 1;
  min-width: 0;
}

.seller-name {
  display: block;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-meta {
  margin-top: 1px;
  color: var(--wa-muted);
  font-size: 12px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.actions .btn {
  flex: 1;
  min-width: 108px;
}

.safety {
  padding: 11px 12px;
  border-radius: var(--wa-radius-sm);
  background: #fff8e1;
  color: #7a5a1e;
  font-size: 12.5px;
  line-height: 1.55;
}

.safety strong {
  display: block;
  margin-bottom: 2px;
}

.hidden-note {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #f3c6c1;
  border-radius: var(--wa-radius-sm);
  background: #fff5f5;
  color: var(--wa-red);
  font-size: 13px;
}

/* ---------- 猜你喜欢 ---------- */

.recs {
  margin: 14px 12px 18px;
  padding: 14px 0 12px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--wa-line);
  border-radius: 16px;
  background: var(--wa-surface);
}

/* 桌面双列时推荐板块独占整行；卡片弹性均分——5 张以内铺满一行自动变宽，
   超过 5 张从每张 1/5 宽起横滑，保证每一屏都是 5 张无空白 */
@media (min-width: 821px) {
  .recs {
    grid-column: 1 / -1;
  }

  .recs-card {
    flex: 1 1 0;
    min-width: calc((100% - 40px) / 5);
    max-width: 320px;
  }
}


.recs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 10px;
}

.recs-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--wa-text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.recs-title::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--wa-green-deep);
}

.recs-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 12px 2px 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.recs-row::-webkit-scrollbar {
  display: none;
}

.recs-empty {
  color: var(--wa-muted);
  font-size: 13px;
}

.recs-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--wa-line);
  border-radius: 12px;
  background: var(--wa-surface);
  text-decoration: none;
}

.recs-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.recs-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--wa-wallpaper);
  color: var(--wa-faint);
  font-size: 12px;
}

.recs-body {
  padding: 8px 9px 9px;
}

.recs-name {
  min-height: 34px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--wa-text);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}

.recs-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}

.recs-price {
  flex: 1;
  overflow: hidden;
  color: var(--wa-green-deep);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recs-tag {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--wa-green-wash);
  color: var(--wa-green-dark);
  font-size: 10.5px;
  font-weight: 600;
}

/* ---------- 表单 ---------- */

.form {
  display: grid;
  gap: 15px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 16px;
}

.modal .form {
  max-width: none;
  padding: 0;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field > label {
  color: var(--wa-muted);
  font-size: 12.5px;
  font-weight: 600;
}

.field .hint,
.hint {
  color: var(--wa-faint);
  font-size: 12px;
}

.input,
.textarea,
.field .select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--wa-line);
  border-radius: var(--wa-radius-sm);
  outline: none;
  background: #f7f8fa;
  color: var(--wa-text);
  font-size: 15px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.input:focus,
.textarea:focus,
.field .select:focus {
  border-color: var(--wa-green);
  background: #fff;
}

.textarea {
  min-height: 124px;
  resize: vertical;
  line-height: 1.55;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.uploader {
  display: block;
  padding: 16px;
  border: 1.5px dashed var(--wa-line-strong);
  border-radius: var(--wa-radius-sm);
  background: #fff;
  color: var(--wa-muted);
  font-size: 13px;
  text-align: center;
}

.uploader:hover {
  border-color: var(--wa-green);
  color: var(--wa-green-deep);
}

.uploader input {
  display: none;
}

.previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.preview {
  position: relative;
  width: 78px;
  height: 78px;
  overflow: hidden;
  border-radius: var(--wa-radius-sm);
  background: var(--wa-bg);
}

.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview button {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 20, 26, 0.65);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.form-actions {
  display: flex;
  gap: 8px;
  padding-top: 2px;
}

/* ---------- 消息 ---------- */

.thread-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--wa-surface);
}

.conv-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
  border-right: 1px solid var(--wa-line);
  background: var(--wa-surface);
}

.conv-pane > .btn {
  width: fit-content;
  margin: 10px 16px;
}

.conv-list {
  overflow: hidden;
  background: var(--wa-surface);
}

.conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--wa-line);
  background: var(--wa-surface);
  transition: background 0.12s ease;
}

.conv-item:hover,
.conv-item.active {
  background: #f5f6f6;
}

.conv-item .avatar {
  width: 49px;
  height: 49px;
  font-size: 18px;
}

.conv-body {
  flex: 1;
  min-width: 0;
}

.conv-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.conv-title {
  flex: 1;
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conv-time {
  flex: none;
  color: var(--wa-faint);
  font-size: 11.5px;
}

.conv-sub {
  overflow: hidden;
  margin-top: 1px;
  color: var(--wa-muted);
  font-size: 13.5px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conv-listing {
  overflow: hidden;
  margin-top: 1px;
  color: var(--wa-green-deep);
  font-size: 11.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-inline {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  flex: none;
  padding: 0 6px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.thread {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--wa-wallpaper);
}

.thread-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--wa-line);
  background: var(--wa-surface);
}

.thread-head .avatar {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.thread-head .grow {
  flex: 1;
  min-width: 0;
}

.thread-head h2 {
  overflow: hidden;
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-head p {
  overflow: hidden;
  margin: 1px 0 0;
  color: var(--wa-muted);
  font-size: 12.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-head p a {
  color: var(--wa-muted);
}

.thread-head .icon-btn {
  color: var(--wa-text-soft);
}

.thread-head .icon-btn:hover {
  background: rgba(11, 20, 26, 0.06);
}

.thread-product {
  flex: none;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--wa-green-wash);
  color: var(--wa-green-deep);
  font-size: 12px;
  font-weight: 600;
}

.messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  padding: 12px 12px 8px;
  background-color: var(--wa-wallpaper);
  background-image: radial-gradient(rgba(17, 27, 33, 0.045) 1px, transparent 1px);
  background-size: 19px 19px;
  -webkit-overflow-scrolling: touch;
}

.msg-date {
  align-self: center;
  margin: 6px 0 8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--wa-muted);
  font-size: 11.5px;
  font-weight: 500;
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.1);
}

.bubble {
  position: relative;
  align-self: flex-start;
  max-width: 81%;
  padding: 6px 9px 5px;
  border-radius: 8px;
  background: var(--wa-surface);
  color: var(--wa-text);
  font-size: 14.5px;
  line-height: 1.38;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  word-break: break-word;
}

.bubble::before {
  content: "";
  position: absolute;
  top: 0;
  width: 8px;
  height: 13px;
  background: inherit;
}

.bubble:not(.mine)::before {
  left: -7px;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.bubble.mine {
  align-self: flex-end;
  background: var(--wa-green-soft);
}

.bubble.mine::before {
  right: -7px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.bubble-text {
  white-space: pre-wrap;
}

.bubble time {
  display: block;
  margin-top: 2px;
  color: var(--wa-muted);
  font-size: 10.5px;
  line-height: 1.2;
  text-align: right;
}

.bubble.mine time {
  color: #4f6a5c;
}

.composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 6px 8px calc(10px + env(safe-area-inset-bottom));
  background: transparent;
}

.composer input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 10px 16px;
  border: 0;
  border-radius: 24px;
  outline: 0;
  background: var(--wa-surface);
  color: var(--wa-text);
  font-size: 16px;
  box-shadow: 0 1px 1px rgba(11, 20, 26, 0.1);
}

.composer-send {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.2);
}

.composer-send:hover {
  background: var(--wa-green-deep);
}

.composer-send:disabled {
  opacity: 0.6;
}

.composer-send svg {
  width: 21px;
  height: 21px;
  margin-left: -1px;
}

/* ---------- 个人中心 ---------- */

.profile-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
  padding: 20px 16px;
  border-bottom: 1px solid var(--wa-line);
  background: var(--wa-surface);
}

.profile-head .avatar {
  width: 74px;
  height: 74px;
  font-size: 27px;
}

.profile-head .grow {
  flex: 1;
  min-width: 0;
}

.profile-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.profile-name {
  overflow: hidden;
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-handle {
  margin-top: 1px;
  color: var(--wa-muted);
  font-size: 13px;
}

.profile-bio {
  margin: 5px 0 0;
  color: var(--wa-text-soft);
  font-size: 13.5px;
  line-height: 1.45;
}

.me-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 6px;
  background: var(--wa-surface);
}

.me-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex: none;
}

.me-avatar-at {
  position: absolute;
  right: -2px;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid var(--wa-surface);
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.me-head .avatar {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

.me-head .grow {
  flex: 1;
  min-width: 0;
}

.me-head .profile-name {
  font-size: 19px;
  font-weight: 800;
}

.me-head .profile-handle {
  margin-top: 2px;
  color: var(--wa-faint);
  font-size: 12.5px;
}

.me-head .profile-bio {
  margin: 4px 0 0;
  color: var(--wa-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.me-edit {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  padding: 9px 14px;
  border: 1.4px solid var(--wa-line);
  border-radius: 999px;
  background: var(--wa-surface);
  color: var(--wa-text);
  font-size: 12.5px;
  font-weight: 600;
}

.me-edit svg {
  width: 14px;
  height: 14px;
}

.me-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
  padding: 10px 14px 14px;
  border: 0;
  background: var(--wa-surface);
}

.me-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 76px;
  padding: 8px 2px;
  border: 0;
  border-radius: 14px;
  background: var(--wa-bg);
  -webkit-tap-highlight-color: transparent;
}

.me-cell:hover {
  background: #eceff1;
}

.me-cell-icon-wrap {
  position: relative;
  display: inline-flex;
}

.me-cell-icon {
  width: 25px;
  height: 25px;
  color: var(--wa-text-soft);
}

.me-cell.active .me-cell-icon,
.me-cell.active .me-cell-label {
  color: var(--wa-green-deep);
}

.me-cell-label {
  color: var(--wa-text);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.me-cell-badge {
  position: absolute;
  top: 6px;
  right: 9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.6px solid var(--wa-surface);
  border-radius: 9px;
  background: #ea4335;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
}

.me-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  padding: 12px 16px 9px;
  border-top: 10px solid var(--wa-bg);
  background: var(--wa-surface);
}

.me-section h2 {
  margin: 0;
  color: var(--wa-text);
  font-size: 16.5px;
  font-weight: 800;
}

.me-section a {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--wa-muted);
  font-size: 13px;
}

.me-section a svg {
  width: 13px;
  height: 13px;
  color: var(--wa-muted);
}

.me-list {
  display: block;
  background: var(--wa-surface);
}

.me-lrow {
  position: relative;
  padding: 10px 16px 0;
}

.me-lcard {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 14px;
  background: var(--wa-bg);
}

.me-lthumb {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 10px;
  background: #e4e7e9;
  object-fit: cover;
}

.me-linfo {
  flex: 1;
  min-width: 0;
}

.me-ltitle {
  display: block;
  overflow: hidden;
  color: var(--wa-text);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.me-lmeta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--wa-muted);
  font-size: 12.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.me-lmeta b {
  flex: none;
  color: var(--wa-green-deep);
  font-weight: 800;
}

.me-lmeta .status {
  margin-left: auto;
  flex: none;
}

.me-ghost {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: 6px 12px;
  border: 1.2px solid var(--wa-line-strong);
  border-radius: 999px;
  background: var(--wa-surface);
  color: var(--wa-muted);
  font-size: 12px;
  font-weight: 500;
}

.me-lactions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 7px 2px 2px;
}

.me-lactions .btn {
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
}

.me-lactions .btn svg {
  width: 13px;
  height: 13px;
}

.me-lactions .btn-danger {
  border-color: #f3d1cc;
  color: #c0392b;
}

/* 设置页 */
.set-group {
  margin: 0;
  padding: 6px 0 8px;
  border-bottom: 10px solid var(--wa-bg);
  background: var(--wa-surface);
  overflow: hidden;
}

.set-danger {
  padding-bottom: 24px;
  border-bottom: 0;
}

.set-label {
  margin: 0;
  padding: 10px 16px 4px;
  color: var(--wa-faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.set-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  background: none;
  color: var(--wa-text);
  font-size: 14.5px;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.set-row + .set-row {
  border-top: 1px solid var(--wa-line);
}

.set-row:hover {
  background: #f7f8fa;
}

.set-row-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.set-row-icon svg {
  width: 20px;
  height: 20px;
  color: var(--wa-text-soft);
}

.set-row-label {
  flex: 1;
  min-width: 0;
}

.set-row-chev {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--wa-faint);
}

.set-row.danger {
  color: var(--wa-red);
}

.set-row.danger .set-row-icon svg {
  color: var(--wa-red);
}

/* 设置页说明弹窗 */
.sh-list {
  margin: 0;
}

.sh-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--wa-line);
}

.sh-item:last-child {
  border-bottom: 0;
}

.sh-item b {
  color: var(--wa-text);
  font-size: 14px;
}

.sh-item p {
  margin: 3px 0 0;
  color: var(--wa-muted);
  font-size: 13px;
  line-height: 1.55;
}

.sh-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  border-bottom: 1px solid var(--wa-line);
  background: var(--wa-surface);
}

.me-stats {
  border-bottom: 0;
}

.stat {
  padding: 11px 4px;
  border: 0;
  border-right: 1px solid var(--wa-line);
  background: none;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.stat:last-child {
  border-right: 0;
}

.me-stats .stat {
  padding: 12px 4px 10px;
}

.stat b {
  position: relative;
  display: block;
  color: var(--wa-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.stat-dot {
  position: absolute;
  top: 1px;
  margin-left: 3px;
  width: 8px;
  height: 8px;
  border: 1.6px solid var(--wa-surface);
  border-radius: 50%;
  background: #ea4335;
}

.stat span {
  display: block;
  margin-top: 1px;
  color: var(--wa-muted);
  font-size: 12px;
}

.tabs {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--wa-line);
  background: var(--wa-surface);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs .tab {
  flex: none;
  padding: 13px 1px 11px;
  border: 0;
  border-bottom: 2.5px solid transparent;
  background: none;
  color: var(--wa-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.tabs .tab.active {
  border-bottom-color: var(--wa-green-deep);
  color: var(--wa-green-deep);
}

.list {
  display: block;
  background: var(--wa-surface);
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--wa-line);
  background: var(--wa-surface);
}

.list-row:hover {
  background: #f7f8fa;
}

.list-row img {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--wa-radius-sm);
  background: var(--wa-bg);
  object-fit: cover;
}

.list-row .grow {
  flex: 1;
  min-width: 0;
}

.list-title {
  display: block;
  overflow: hidden;
  color: var(--wa-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-sub {
  margin-top: 1px;
  color: var(--wa-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.list-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.list-actions .status {
  min-height: 32px;
  padding: 5px 13px;
  font-size: 12.5px;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--wa-bg);
  color: var(--wa-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}

.status.active {
  background: var(--wa-green-wash);
  color: var(--wa-green-deep);
}

.status.sold {
  background: #fff4e5;
  color: #9a5b00;
}

.status.hidden,
.status.removed {
  background: #fdecea;
  color: var(--wa-red);
}

.status.pending {
  background: var(--wa-green);
  color: #ffffff;
}

.status.accepted {
  background: var(--wa-green-wash);
  color: var(--wa-green-deep);
}

.status.declined {
  background: #fdecea;
  color: var(--wa-red);
}

.status.withdrawn {
  background: var(--wa-bg);
  color: var(--wa-muted);
}

.conv-thumb {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--wa-radius-sm);
  background: var(--wa-bg);
  object-fit: cover;
}

.danger-zone {
  margin: 24px 16px;
  text-align: center;
}

/* ---------- 空态 / 加载 ---------- */

.empty {
  padding: 52px 24px;
  background: var(--wa-surface);
  color: var(--wa-muted);
  text-align: center;
}

.empty h3 {
  margin: 0 0 5px;
  color: var(--wa-text);
  font-size: 16px;
  font-weight: 600;
}

.empty p {
  margin: 0 0 14px;
  font-size: 13.5px;
}

.empty-flat {
  padding: 24px 12px;
  background: transparent;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 16px;
  background: transparent;
}

.skeleton {
  height: 250px;
  border: 1px solid var(--wa-line);
  border-radius: 12px;
  background: linear-gradient(90deg, #f4f6f6 25%, #fafbfb 37%, #f4f6f6 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* ---------- 弹窗 ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(11, 20, 26, 0.46);
}

.modal {
  width: min(520px, 100%);
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: var(--wa-surface);
  box-shadow: 0 -10px 36px rgba(11, 20, 26, 0.2);
}

.modal h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 600;
}

.modal .sub {
  margin: 0 0 16px;
  color: var(--wa-muted);
  font-size: 13px;
  line-height: 1.45;
}

.modal-close {
  float: right;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wa-bg);
  color: var(--wa-muted);
  font-size: 19px;
  line-height: 1;
}

/* ---------- 关于拾集 ---------- */

.about-box {
  padding-top: 6px;
  text-align: center;
}

.about-logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.about-list {
  border-top: 1px solid var(--wa-line);
}

.about-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--wa-line);
  font-size: 13.5px;
  text-align: left;
}

.about-key {
  flex: none;
  color: var(--wa-muted);
}

.about-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--wa-text);
  font-weight: 600;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-note {
  margin: 14px 0 0;
  color: var(--wa-faint);
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- 探索栏搜索弹窗（详情页搜全站 / 聊天搜记录） ---------- */

.ex-form {
  margin: 0;
}

.ex-tip {
  margin: 14px 0 10px;
  color: var(--wa-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.ex-input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--wa-line-strong);
  border-radius: var(--wa-radius-sm);
  background: var(--wa-bg);
  color: var(--wa-text);
  font-size: 15px;
}

.ex-input:focus {
  outline: none;
  border-color: var(--wa-green-deep);
  background: var(--wa-surface);
}

.ex-results {
  margin-top: 12px;
  border-top: 1px solid var(--wa-line);
}

.ex-empty {
  margin: 18px 0;
  color: var(--wa-muted);
  font-size: 13px;
  text-align: center;
}

.ex-item {
  display: block;
  padding: 11px 2px;
  border-bottom: 1px solid var(--wa-line);
  color: inherit;
  text-decoration: none;
}

.ex-item:active {
  background: var(--wa-bg);
}

.ex-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.ex-item-name {
  color: var(--wa-text);
  font-size: 14px;
  font-weight: 600;
}

.ex-item-time {
  color: var(--wa-faint);
  font-size: 12px;
}

.ex-item-body {
  margin-top: 4px;
  color: var(--wa-text-soft);
  font-size: 13.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ex-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
  color: var(--wa-faint);
  font-size: 12px;
}

.ex-item-listing {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ex-item-price {
  flex: 0 0 auto;
  color: var(--wa-green-deep);
  font-weight: 600;
}

.auth-tabs {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  padding: 3px;
  border-radius: var(--wa-radius-sm);
  background: var(--wa-bg);
}

.auth-tab {
  flex: 1;
  padding: 8px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--wa-muted);
  font-size: 13.5px;
  font-weight: 600;
}

.auth-tab.active {
  background: var(--wa-surface);
  color: var(--wa-text);
  box-shadow: var(--wa-shadow);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 90;
  max-width: 88vw;
  padding: 10px 16px;
  border-radius: var(--wa-radius-sm);
  background: #111b21;
  color: #fff;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 底部导航 / 发布键 ---------- */

.tabbar {
  display: none;
}

@media (max-width: 820px) {
  .topbar-inner {
    gap: 8px;
    padding: 0 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-sub {
    display: none;
  }

  .nav-link,
  .top-publish {
    display: none;
  }

  .mobile-only {
    display: grid;
  }

  .top-actions {
    gap: 2px;
  }

  .top-actions .avatar {
    width: 32px;
    height: 32px;
  }

  .top-login,
  .top-register {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 12.5px;
  }

  #app {
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    padding-bottom: 92px;
  }

  .page-head {
    padding: 15px 16px 12px;
  }

  .page-head h1,
  .page-head h2 {
    font-size: 21px;
  }

  .xy-tabs {
    gap: 20px;
  }

  .xy-tab {
    font-size: 15.5px;
  }

  .xy-head .home-search {
    margin-right: 12px;
    margin-left: 12px;
  }

  .product-title {
    font-size: 15px;
  }

  .xy-feed-head {
    padding: 0 14px;
  }

  .load-more {
    padding-right: 14px;
    padding-left: 14px;
  }

  .detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .recs-card {
    flex: 0 0 152px;
  }

  .gallery {
    position: static;
    padding: 0;
    border-right: 0;
  }

  .gallery-main {
    border-radius: 0;
  }

  .thumbs {
    padding: 10px 16px 12px;
  }

  .detail .info {
    padding: 16px 16px 24px;
  }

  .detail-title {
    font-size: 21px;
  }

  .detail-price {
    font-size: 26px;
  }

  .actions .btn {
    min-width: 0;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .profile-head {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .profile-head .avatar {
    width: 64px;
    height: 64px;
    font-size: 23px;
  }

  .profile-head .grow {
    flex: 1 1 calc(100% - 80px);
  }

  .profile-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .profile-name {
    font-size: 19px;
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat {
    padding: 10px 2px;
  }

  .stat b {
    font-size: 19px;
  }

  .stat span {
    font-size: 11.5px;
  }

  .list-row {
    flex-wrap: wrap;
    padding: 10px 14px;
  }

  .list-row .grow {
    flex: 1 1 150px;
  }

  .list-row .list-actions {
    width: 100%;
    padding-top: 7px;
    border-top: 1px solid var(--wa-line);
  }

  .thread-layout {
    grid-template-columns: 1fr;
  }

  .conv-pane {
    display: none;
  }

  .thread {
    height: 100%;
  }

  body.in-thread .thread-head {
    padding-top: calc(7px + env(safe-area-inset-top));
  }

  .modal-backdrop {
    align-items: flex-end;
  }

  .toast {
    bottom: 86px;
  }

  .tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 3px 0 calc(4px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--wa-line);
    background: var(--wa-surface);
    transition: transform 0.16s ease;
  }

  .keyboard-open .tabbar {
    display: none;
  }

  .tabbar .tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 50px;
    padding: 3px 0;
    border: 0;
    background: none;
    color: var(--wa-faint);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
  }

  .tabbar .tab svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
  }

  .tabbar .tab.active {
    color: var(--wa-green-deep);
    font-weight: 650;
  }

  .tabbar .tab.active svg {
    stroke-width: 2.2;
  }

  .tabbar .tab-center {
    justify-content: flex-end;
    padding-bottom: 5px;
  }

  .tabbar .tab-center-btn {
    position: absolute;
    top: -20px;
    left: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 3px solid var(--wa-surface);
    border-radius: 50%;
    background: var(--wa-green);
    color: #fff;
    box-shadow: 0 4px 12px rgba(11, 20, 26, 0.24);
    transform: translateX(-50%);
  }

  .tabbar .tab-center-btn svg {
    width: 27px;
    height: 27px;
    stroke-width: 2.4;
  }

  .tabbar .tab-center-label {
    color: var(--wa-text-soft);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.2;
  }

  .tabbar .tab-center.active .tab-center-label {
    color: var(--wa-green-deep);
  }

  .tabbar .tab-badge {
    position: absolute;
    top: 1px;
    left: calc(50% + 7px);
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-color: var(--wa-surface);
    font-size: 9.5px;
  }

}

@media (min-width: 760px) {
  .product-list,
  .skeleton-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .skeleton {
    height: 280px;
  }
}

@media (min-width: 1100px) {
  .product-list,
  .skeleton-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 821px) {
  body {
    background: #e9edef;
  }

  #app {
    box-shadow: 0 0 24px rgba(11, 20, 26, 0.07);
  }

  .modal-backdrop {
    align-items: center;
    padding: 24px;
  }

  .modal {
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 20px 60px rgba(11, 20, 26, 0.28);
  }

  .thread-layout {
    grid-template-columns: 360px minmax(0, 1fr);
  }
}

@media (max-width: 370px) {
  .home-title {
    font-size: 23px;
  }

  .home-badge {
    display: none;
  }

  .product-list,
  .skeleton-grid {
    gap: 8px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .product-title {
    font-size: 13.5px;
  }

  .stat span {
    font-size: 11px;
  }

  .top-actions .avatar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
