/* ============================================================
   青集 · 二手闲置交易平台
   设计系统：清新自然绿 × 极简现代
   ============================================================ */

:root {
  /* 自然绿主色阶 */
  --green-900: #14301F;
  --green-800: #1D4229;
  --green-700: #2A603F;
  --green-600: #347950;
  --green-500: #419363;
  --green-400: #6BB189;
  --green-300: #9ACBAE;
  --green-200: #C2DFCE;
  --green-100: #E2F0E7;
  --green-050: #F2F8F4;

  /* 中性色 */
  --ink: #16211B;
  --ink-2: #3D4C44;
  --muted: #77867D;
  --faint: #A7B3AB;

  --bg: #F6F9F7;
  --surface: #FFFFFF;
  --surface-2: #FAFCFA;
  --line: #E5ECE7;
  --line-strong: #D3DED7;

  /* 强调 */
  --amber: #C8811F;
  --amber-bg: #FBF2E2;
  --rose: #C0473F;
  --rose-bg: #FBEDEB;

  /* 圆角 */
  --r-xs: 6px;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --r-xl: 26px;
  --r-full: 999px;

  /* 阴影 */
  --sh-s: 0 1px 2px rgba(20, 48, 31, .05);
  --sh-m: 0 4px 16px rgba(20, 48, 31, .07);
  --sh-l: 0 14px 38px rgba(20, 48, 31, .11);
  --sh-glow: 0 8px 24px rgba(52, 121, 80, .22);

  --maxw: 1180px;
  --nav-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }

::selection { background: var(--green-200); color: var(--green-900); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--green-300); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   顶栏（桌面）
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--green-500), var(--green-700));
  display: grid; place-items: center;
  box-shadow: var(--sh-glow);
  flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--green-900);
}
.brand-tag {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .12em;
  padding-left: 8px;
  margin-left: 2px;
  border-left: 1px solid var(--line-strong);
  line-height: 1;
}

/* 导航 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.main-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--r-s);
  font-size: 14px;
  color: var(--ink-2);
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--green-050); color: var(--green-700); }
.main-nav a.is-active { color: var(--green-700); font-weight: 600; }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-600);
}
.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 17px; height: 17px;
  padding: 0 5px;
  margin-left: 5px;
  border-radius: var(--r-full);
  background: var(--rose);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  vertical-align: 1px;
}

/* 头部搜索 */
.header-search {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  margin-left: auto;
  position: relative;
}
.header-search svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--faint);
  pointer-events: none;
}
.header-search input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 40px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  background: var(--green-050);
  font-size: 13.5px;
  outline: none;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.header-search input::placeholder { color: var(--faint); }
.header-search input:focus {
  background: var(--surface);
  border-color: var(--green-300);
  box-shadow: 0 0 0 3px rgba(107, 177, 137, .16);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* 头像 */
.avatar {
  border-radius: var(--r-full);
  object-fit: cover;
  background: var(--green-100);
  flex-shrink: 0;
}
.avatar-32 { width: 32px; height: 32px; }
.avatar-40 { width: 40px; height: 40px; }
.avatar-48 { width: 48px; height: 48px; }
.avatar-56 { width: 56px; height: 56px; }
.avatar-84 { width: 84px; height: 84px; }
.avatar-link {
  display: block;
  border-radius: var(--r-full);
  transition: box-shadow .18s, transform .18s;
}
.avatar-link:hover {
  box-shadow: 0 0 0 3px var(--green-100);
  transform: translateY(-1px);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .18s, color .18s, box-shadow .18s, transform .12s, border-color .18s;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.975); }

.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  box-shadow: var(--sh-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  box-shadow: 0 10px 26px rgba(52, 121, 80, .3);
}

.btn-soft {
  background: var(--green-100);
  color: var(--green-700);
}
.btn-soft:hover { background: var(--green-200); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-s);
}
.btn-ghost:hover {
  border-color: var(--green-300);
  color: var(--green-700);
  background: var(--green-050);
}

.btn-lg { height: 48px; padding: 0 30px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ---------- 标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13.5px;
  white-space: nowrap;
  transition: all .18s;
  cursor: pointer;
}
.chip:hover {
  border-color: var(--green-300);
  color: var(--green-700);
  background: var(--green-050);
}
.chip.is-active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--sh-glow);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  font-size: 11.5px;
  font-weight: 500;
  background: var(--green-050);
  color: var(--green-700);
  border: 1px solid var(--green-100);
  white-space: nowrap;
}
.tag-amber { background: var(--amber-bg); color: var(--amber); border-color: #F0E2C6; }
.tag-rose { background: var(--rose-bg); color: var(--rose); border-color: #F3DAD6; }
.tag-plain { background: var(--surface-2); color: var(--muted); border-color: var(--line); }

/* ============================================================
   布局
   ============================================================ */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 24px 72px;
}
.page-narrow { max-width: 960px; }

.section { margin-bottom: 34px; }

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.section-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
}
.section-sub { font-size: 13px; color: var(--muted); }
.section-head .spacer { flex: 1; }
.link-more {
  font-size: 13px;
  color: var(--green-600);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: gap .18s, color .18s;
}
.link-more:hover { gap: 7px; color: var(--green-700); }
.link-more svg { width: 13px; height: 13px; }

/* 面包屑 */
.crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.crumbs a { transition: color .18s; }
.crumbs a:hover { color: var(--green-600); }
.crumbs .sep { color: var(--faint); }
.crumbs .now { color: var(--ink-2); }

/* ============================================================
   首页 Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(130deg, var(--green-800) 0%, var(--green-600) 58%, var(--green-500) 100%);
  padding: 46px 44px;
  margin-bottom: 30px;
  color: #fff;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 68%);
  pointer-events: none;
}
.hero::before { width: 420px; height: 420px; right: -110px; top: -190px; }
.hero::after { width: 300px; height: 300px; right: 130px; bottom: -190px; opacity: .7; }

.hero-inner { position: relative; z-index: 1; max-width: 560px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px 5px 9px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 12px;
  letter-spacing: .04em;
  margin-bottom: 18px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #B7E8C9;
  box-shadow: 0 0 0 3px rgba(183, 232, 201, .3);
}
.hero h1 {
  font-size: 38px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}
.hero h1 em {
  font-style: normal;
  color: #C6EDD6;
}
.hero p {
  font-size: 15px;
  color: rgba(255, 255, 255, .82);
  line-height: 1.75;
  margin-bottom: 26px;
}
.hero-search {
  position: relative;
  max-width: 440px;
  margin-bottom: 22px;
}
.hero-search svg {
  position: absolute;
  left: 17px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--green-600);
  pointer-events: none;
}
.hero-search input {
  width: 100%;
  height: 50px;
  padding: 0 122px 0 46px;
  border-radius: var(--r-full);
  border: none;
  background: #fff;
  font-size: 14px;
  outline: none;
  box-shadow: 0 10px 30px rgba(10, 34, 20, .18);
}
.hero-search input::placeholder { color: var(--faint); }
.hero-search button {
  position: absolute;
  right: 5px; top: 5px;
  height: 40px;
  padding: 0 22px;
  border-radius: var(--r-full);
  background: var(--green-700);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background .18s;
}
.hero-search button:hover { background: var(--green-800); }

.hero-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.hero-stat b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.hero-stat span {
  font-size: 12px;
  color: rgba(255, 255, 255, .68);
}

/* 快捷入口 */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}
.quick-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  transition: all .2s;
}
.quick-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--sh-m);
  transform: translateY(-2px);
}
.quick-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--green-050);
  color: var(--green-600);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.quick-card:hover .quick-icon { background: var(--green-100); color: var(--green-700); }
.quick-icon svg { width: 20px; height: 20px; }
.quick-card b { display: block; font-size: 14px; font-weight: 600; }
.quick-card span { font-size: 12px; color: var(--muted); }

/* 分类横滑 */
.cat-scroll {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 20px;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-scroll .chip { flex-shrink: 0; }

/* 筛选条 */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-tab {
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
  transition: all .18s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.filter-tab:hover { color: var(--green-700); background: var(--green-050); }
.filter-tab.is-active {
  background: var(--green-050);
  color: var(--green-700);
  font-weight: 600;
}
.filter-tab svg { width: 12px; height: 12px; }
.filter-bar .divider {
  width: 1px;
  height: 18px;
  background: var(--line);
  margin: 0 6px;
  flex-shrink: 0;
}
.filter-count {
  margin-left: auto;
  padding-right: 14px;
  font-size: 13px;
  color: var(--faint);
  white-space: nowrap;
}

/* ============================================================
   商品卡片 · 网格
   ============================================================ */
.goods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 18px;
}

.goods-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
  transition: transform .22s cubic-bezier(.2, .8, .3, 1), box-shadow .22s, border-color .22s;
}
.goods-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-l);
  border-color: var(--green-200);
}

.goods-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--green-050);
}
.goods-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
.goods-card:hover .goods-media img { transform: scale(1.055); }

.goods-badge {
  position: absolute;
  top: 9px; left: 9px;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(6px);
  color: var(--green-700);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  letter-spacing: .02em;
}
.goods-badge.amber { color: var(--amber); }
.goods-badge.rose { color: var(--rose); }

.goods-fav {
  position: absolute;
  top: 8px; right: 8px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  color: var(--muted);
  opacity: 0;
  transform: translateY(-4px);
  transition: all .2s;
}
.goods-card:hover .goods-fav { opacity: 1; transform: none; }
.goods-fav:hover { color: var(--rose); background: #fff; }
.goods-fav.is-on { color: var(--rose); opacity: 1; transform: none; }
.goods-fav svg { width: 15px; height: 15px; }

.goods-body { padding: 12px 13px 14px; }
.goods-title {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 9px;
}
.goods-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 8px;
}
.price-now {
  color: var(--green-700);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  line-height: 1;
}
.price-now i {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  margin-right: 1px;
}
.price-old {
  font-size: 11.5px;
  color: var(--faint);
  text-decoration: line-through;
}

.goods-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  color: var(--faint);
}
.goods-foot .seller {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.goods-foot .seller img { width: 16px; height: 16px; border-radius: 50%; }
.goods-foot .seller span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.goods-foot .dot-sep { color: var(--line-strong); }
.goods-foot .loc {
  margin-left: auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.goods-foot .loc svg { width: 11px; height: 11px; }

/* 加载更多 */
.load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 30px;
}

/* 空状态 */
.empty {
  padding: 72px 20px;
  text-align: center;
}
.empty-icon {
  width: 66px; height: 66px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-050);
  color: var(--green-400);
  display: grid; place-items: center;
}
.empty-icon svg { width: 28px; height: 28px; }
.empty h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.empty p { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }

/* ============================================================
   商品详情
   ============================================================ */
.detail-layout {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.detail-main { min-width: 0; }

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 28px;
  align-items: start;
}

.gallery { position: sticky; top: calc(var(--nav-h) + 22px); }
.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--green-050);
  margin-bottom: 12px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count {
  position: absolute;
  right: 14px; bottom: 14px;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--r-full);
  background: rgba(20, 48, 31, .62);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  font-variant-numeric: tabular-nums;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.gallery-thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-s);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--green-050);
  transition: border-color .18s, transform .18s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.is-active { border-color: var(--green-600); }

/* 详情信息栏 */
.detail-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 26px;
  box-shadow: var(--sh-m);
}
.detail-price-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.detail-price {
  color: var(--green-700);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -.03em;
  line-height: 1;
}
.detail-price i { font-style: normal; font-size: 20px; font-weight: 700; margin-right: 2px; }
.detail-price-old {
  font-size: 14px;
  color: var(--faint);
  text-decoration: line-through;
  padding-bottom: 4px;
}
.detail-save {
  margin-left: auto;
  padding-bottom: 5px;
  font-size: 12.5px;
  color: var(--amber);
  background: var(--amber-bg);
  border-radius: var(--r-xs);
  padding: 4px 9px;
  font-weight: 600;
}

.detail-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.44;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.detail-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.detail-meta div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  min-width: 0;
}
.detail-meta dt { color: var(--muted); flex-shrink: 0; }
.detail-meta dd {
  margin: 0;
  color: var(--ink-2);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 卖家卡 */
.seller-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: var(--r-m);
  background: var(--green-050);
  border: 1px solid var(--green-100);
  margin-bottom: 20px;
}
.seller-card .info { flex: 1; min-width: 0; }
.seller-card .name {
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.seller-card .name svg { width: 14px; height: 14px; color: var(--green-600); }
.seller-card .sub {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-actions {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 11px;
}
.icon-btn {
  width: 52px; height: 48px;
  border-radius: var(--r-m);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  transition: all .18s;
  position: relative;
}
.icon-btn:hover {
  border-color: var(--green-300);
  color: var(--green-700);
  background: var(--green-050);
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn small {
  display: block;
  font-size: 10px;
  color: var(--faint);
  margin-top: 1px;
  line-height: 1;
}

/* 描述区块 */
.detail-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 24px 26px;
  margin-top: 22px;
}
.detail-block h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-block h2 .count {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--faint);
}
.desc-text {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-2);
  white-space: pre-line;
}
.desc-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.desc-specs div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--r-s);
  background: var(--surface-2);
}
.desc-specs dt { color: var(--muted); }
.desc-specs dd { margin: 0; font-weight: 600; color: var(--ink-2); }

/* 留言 */
.comment {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.comment:last-child { border-bottom: none; padding-bottom: 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.comment-name { font-size: 13.5px; font-weight: 600; }
.comment-time { font-size: 12px; color: var(--faint); margin-left: auto; }
.comment-text { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.comment-input {
  display: flex;
  gap: 11px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.comment-input textarea {
  flex: 1;
  min-height: 46px;
  resize: none;
  padding: 12px 15px;
  border-radius: var(--r-m);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  font-size: 13.5px;
  line-height: 1.6;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.comment-input textarea:focus {
  border-color: var(--green-400);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(107, 177, 137, .15);
}

/* 详情底部吸底栏（移动） */
.detail-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  gap: 10px;
}
.detail-bar .price-mini {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}
.detail-bar .price-mini b {
  display: block;
  font-size: 19px;
  color: var(--green-700);
  font-weight: 800;
}

/* ============================================================
   发布页
   ============================================================ */
.publish-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 28px;
  box-shadow: var(--sh-s);
}
.form-section + .form-section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.form-label .req { color: var(--rose); }
.form-label .hint {
  font-weight: 400;
  font-size: 12px;
  color: var(--faint);
  margin-left: auto;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
}
.upload-box {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-m);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--green-050);
  transition: all .18s;
}
.upload-box img { width: 100%; height: 100%; object-fit: cover; }
.upload-box .remove {
  position: absolute;
  top: 6px; right: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(20, 48, 31, .6);
  color: #fff;
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity .18s, background .18s;
}
.upload-box:hover .remove { opacity: 1; }
.upload-box .remove:hover { background: var(--rose); }
.upload-box .remove svg { width: 11px; height: 11px; }
.upload-box .cover-tag {
  position: absolute;
  left: 6px; bottom: 6px;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .92);
  color: var(--green-700);
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.upload-add {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-m);
  border: 1.5px dashed var(--line-strong);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  transition: all .18s;
}
.upload-add:hover {
  border-color: var(--green-400);
  background: var(--green-050);
  color: var(--green-700);
}
.upload-add svg { width: 22px; height: 22px; }
.upload-add span { font-size: 12px; }

.input,
.textarea,
.select {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--r-m);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 14px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.input::placeholder,
.textarea::placeholder { color: var(--faint); }
.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(107, 177, 137, .15);
}
.textarea { resize: vertical; min-height: 128px; line-height: 1.75; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2377867D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  padding-right: 40px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.field { min-width: 0; }

.price-input-wrap { position: relative; }
.price-input-wrap .symbol {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  color: var(--green-700);
  font-weight: 700;
  font-size: 15px;
}
.price-input-wrap .input { padding-left: 32px; font-weight: 600; }

.form-foot {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* 侧栏提示 */
.tips-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 22px;
  position: sticky;
  top: calc(var(--nav-h) + 22px);
}
.tips-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tips-card h3 svg { width: 16px; height: 16px; color: var(--green-600); }
.tips-list { display: grid; gap: 13px; }
.tips-list li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.tips-list .num {
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--green-050);
  color: var(--green-600);
  font-size: 11px;
  font-weight: 700;
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.tips-card hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
.tips-note {
  display: flex;
  gap: 10px;
  padding: 13px;
  border-radius: var(--r-m);
  background: var(--amber-bg);
  font-size: 12.5px;
  line-height: 1.65;
  color: #8A5A12;
}
.tips-note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   搜索页
   ============================================================ */
.search-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 30px;
  margin-bottom: 26px;
}
.search-big {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}
.search-big svg {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.search-big input {
  width: 100%;
  height: 52px;
  padding: 0 112px 0 48px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--line-strong);
  background: var(--surface-2);
  font-size: 15px;
  outline: none;
  transition: all .18s;
}
.search-big input:focus {
  border-color: var(--green-400);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(107, 177, 137, .14);
}
.search-big button {
  position: absolute;
  right: 5px; top: 5px;
  height: 42px;
  padding: 0 26px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: all .18s;
}
.search-big button:hover { box-shadow: var(--sh-glow); }

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

/* 搜索结果列表 */
.result-list { display: grid; gap: 12px; }
.result-item {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  transition: all .2s;
}
.result-item:hover {
  border-color: var(--green-200);
  box-shadow: var(--sh-m);
  transform: translateX(3px);
}
.result-item .thumb {
  width: 122px; height: 122px;
  border-radius: var(--r-s);
  overflow: hidden;
  background: var(--green-050);
}
.result-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.result-item .body { min-width: 0; }
.result-item .title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 7px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.result-item .snippet {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 9px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.result-item .meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--faint);
}
.result-item .side {
  text-align: right;
  display: grid;
  gap: 10px;
  justify-items: end;
}
.result-item .side .price-now { font-size: 22px; }

mark {
  background: var(--green-100);
  color: var(--green-800);
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 600;
}

/* ============================================================
   消息页
   ============================================================ */
.msg-layout {
  display: grid;
  grid-template-columns: 366px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.msg-list-card,
.chat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--sh-s);
}
.msg-tabs {
  display: flex;
  gap: 3px;
  padding: 12px 12px 0;
  border-bottom: 1px solid var(--line);
}
.msg-tab {
  padding: 9px 14px 12px;
  font-size: 13.5px;
  color: var(--muted);
  position: relative;
  transition: color .18s;
}
.msg-tab:hover { color: var(--green-700); }
.msg-tab.is-active { color: var(--green-700); font-weight: 600; }
.msg-tab.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--green-600);
}

.conv-list { max-height: 560px; overflow-y: auto; }
.conv {
  display: flex;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .18s;
  position: relative;
}
.conv:last-child { border-bottom: none; }
.conv:hover { background: var(--green-050); }
.conv.is-active { background: var(--green-050); }
.conv.is-active::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--green-600);
}
.conv .pic {
  width: 48px; height: 48px;
  border-radius: var(--r-s);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--green-050);
}
.conv .pic img { width: 100%; height: 100%; object-fit: cover; }
.conv .body { flex: 1; min-width: 0; }
.conv .row1 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}
.conv .name { font-size: 14px; font-weight: 600; }
.conv .time { margin-left: auto; font-size: 11.5px; color: var(--faint); flex-shrink: 0; }
.conv .last {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conv .unread {
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--rose);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  position: absolute;
  right: 18px; bottom: 16px;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.chat-head .info { flex: 1; min-width: 0; }
.chat-head b { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.chat-head b svg { width: 14px; height: 14px; color: var(--green-600); }
.chat-head span { font-size: 12px; color: var(--muted); }
.chat-head .goods-mini {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--r-m);
  background: var(--surface-2);
  border: 1px solid var(--line);
  max-width: 260px;
}
.chat-head .goods-mini img { width: 38px; height: 38px; border-radius: var(--r-xs); }
.chat-head .goods-mini div { font-size: 12px; line-height: 1.4; min-width: 0; }
.chat-head .goods-mini b { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head .goods-mini em { font-style: normal; color: var(--green-700); font-weight: 700; }

.chat-body {
  padding: 22px 20px;
  background: var(--surface-2);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-time-sep {
  text-align: center;
  font-size: 11.5px;
  color: var(--faint);
}
.bubble-row { display: flex; gap: 10px; align-items: flex-start; }
.bubble-row.me { flex-direction: row-reverse; }
.bubble {
  max-width: 68%;
  padding: 11px 15px;
  border-radius: var(--r-m);
  font-size: 13.5px;
  line-height: 1.65;
  background: var(--surface);
  border: 1px solid var(--line);
  word-break: break-word;
}
.bubble-row.me .bubble {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  border-color: transparent;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble-row:not(.me) .bubble { border-bottom-left-radius: 4px; }

.chat-input {
  display: flex;
  gap: 11px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  align-items: flex-end;
}
.chat-input textarea {
  flex: 1;
  height: 42px;
  max-height: 120px;
  resize: none;
  padding: 10px 14px;
  border-radius: var(--r-m);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  font-size: 13.5px;
  outline: none;
  transition: all .18s;
}
.chat-input textarea:focus {
  border-color: var(--green-400);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(107, 177, 137, .14);
}

/* ============================================================
   个人中心
   ============================================================ */
.profile-head {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--green-800), var(--green-600) 70%, var(--green-500));
  padding: 34px 34px 30px;
  color: #fff;
  margin-bottom: 24px;
}
.profile-head::after {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  right: -90px; top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 70%);
}
.profile-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.profile-top .avatar {
  border: 3px solid rgba(255, 255, 255, .28);
}
.profile-id { flex: 1; min-width: 200px; }
.profile-id h1 {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.profile-id h1 .badge-v {
  height: 22px;
  padding: 0 10px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .26);
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: .02em;
}
.profile-id h1 .badge-v svg { width: 12px; height: 12px; }
.profile-id p {
  font-size: 13px;
  color: rgba(255, 255, 255, .76);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.profile-id p svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.profile-ops { display: flex; gap: 10px; }
.profile-ops .btn-ghost {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .26);
  color: #fff;
  box-shadow: none;
}
.profile-ops .btn-ghost:hover {
  background: rgba(255, 255, 255, .24);
  color: #fff;
}
.profile-ops .btn-white {
  background: #fff;
  color: var(--green-700);
}
.profile-ops .btn-white:hover { background: var(--green-050); }

.stat-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.stat-row .stat b {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.stat-row .stat b i {
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  opacity: .7;
  margin-left: 2px;
}
.stat-row .stat span { font-size: 12.5px; color: rgba(255, 255, 255, .7); }

.tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-item {
  padding: 13px 18px;
  font-size: 14.5px;
  color: var(--muted);
  white-space: nowrap;
  position: relative;
  transition: color .18s;
}
.tab-item:hover { color: var(--green-700); }
.tab-item.is-active { color: var(--ink); font-weight: 600; }
.tab-item.is-active::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-600);
}
.tab-item .n {
  display: inline-block;
  margin-left: 6px;
  padding: 0 7px;
  height: 19px;
  line-height: 19px;
  border-radius: var(--r-full);
  background: var(--green-050);
  color: var(--green-600);
  font-size: 11.5px;
  font-weight: 600;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: auto;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 24px 34px;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 34px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 12px;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 13px;
  color: var(--ink-2);
}
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  font-size: 13px;
  color: var(--muted);
  transition: color .18s;
}
.footer-col a:hover { color: var(--green-600); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--faint);
}
.footer-bottom .spacer { flex: 1; }
.footer-bottom .dot-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-600);
}
.footer-bottom .dot-live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-500);
}

/* ============================================================
   移动端底部 Tab
   ============================================================ */
.tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 58px;
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  color: var(--faint);
  transition: color .18s;
  position: relative;
}
.tabbar a svg { width: 21px; height: 21px; }
.tabbar a.is-active { color: var(--green-700); font-weight: 600; }
.tabbar a.is-active svg { stroke-width: 2.2; }
.tabbar .tab-pub { justify-content: center; }
.tabbar .tab-pub .pub-btn {
  width: 46px; height: 34px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-glow);
  margin-bottom: 1px;
}
.tabbar .tab-pub .pub-btn svg { width: 19px; height: 19px; }
.tabbar .tab-pub span { color: var(--green-700); font-weight: 600; }
.tabbar .mini-dot {
  position: absolute;
  top: 9px;
  right: calc(50% - 15px);
  min-width: 15px; height: 15px;
  padding: 0 4px;
  border-radius: var(--r-full);
  background: var(--rose);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 1.5px solid #fff;
}

/* 移动端顶部条 */
.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  gap: 12px;
  align-items: center;
}
.mobile-topbar .mt-search {
  flex: 1;
  position: relative;
}
.mobile-topbar .mt-search svg {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--faint);
}
.mobile-topbar .mt-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 36px;
  border-radius: var(--r-full);
  border: none;
  background: var(--green-050);
  font-size: 13.5px;
  outline: none;
}

/* ============================================================
   Toast
   ============================================================ */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--r-full);
  background: rgba(20, 48, 31, .93);
  color: #fff;
  font-size: 13.5px;
  box-shadow: var(--sh-l);
  backdrop-filter: blur(10px);
  animation: toastIn .32s cubic-bezier(.2, .9, .3, 1.2);
}
.toast svg { width: 16px; height: 16px; color: #9ADFB4; flex-shrink: 0; }
.toast.out { animation: toastOut .24s ease forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px) scale(.95); }
  to { opacity: 1; transform: none; }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px) scale(.97); }
}

/* 入场动画 */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.anim-in { animation: fadeUp .42s cubic-bezier(.2, .8, .3, 1) both; }

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

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gallery { position: static; }
  .profile-layout { grid-template-columns: minmax(0, 1fr); }
  #profile-overview { display: none; }
  .publish-layout { grid-template-columns: 1fr; }
  .tips-card { position: static; }
  .msg-layout { grid-template-columns: 320px minmax(0, 1fr); }
  .footer-inner { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 26px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-search { max-width: 260px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .msg-layout { grid-template-columns: 1fr; }
  .chat-card { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero { padding: 36px 30px; }
  .hero h1 { font-size: 30px; }
}

@media (max-width: 760px) {
  :root { --nav-h: 58px; }

  body { padding-bottom: 58px; }

  .site-header { display: none; }
  .mobile-topbar { display: flex; }
  .tabbar { display: block; }

  .page { padding: 16px 14px 32px; }
  .page-narrow { padding: 16px 14px 32px; }

  .hero {
    padding: 28px 22px;
    border-radius: var(--r-l);
    margin-bottom: 20px;
  }
  .hero h1 { font-size: 25px; margin-bottom: 10px; }
  .hero p { font-size: 13.5px; margin-bottom: 20px; }
  .hero-search input {
    height: 46px;
    padding: 0 100px 0 42px;
    font-size: 13.5px;
  }
  .hero-search button { height: 36px; padding: 0 16px; font-size: 13px; }
  .hero-stats { gap: 22px; }
  .hero-stat b { font-size: 18px; }
  .hero-eyebrow { font-size: 11px; margin-bottom: 14px; }

  .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .quick-card { padding: 13px; gap: 10px; border-radius: var(--r-s); }
  .quick-icon { width: 36px; height: 36px; border-radius: 10px; }
  .quick-icon svg { width: 17px; height: 17px; }
  .quick-card b { font-size: 13px; }
  .quick-card span { font-size: 11px; }

  .goods-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
  }
  .goods-body { padding: 9px 10px 11px; }
  .goods-title { font-size: 12.5px; height: 37px; margin-bottom: 7px; }
  .price-now { font-size: 16.5px; }
  .price-now i { font-size: 11px; }
  .price-old { font-size: 10.5px; }
  .goods-foot { padding-top: 7px; font-size: 10.5px; }
  .goods-foot .loc { display: none; }
  .goods-fav { opacity: 1; transform: none; }

  .section { margin-bottom: 24px; }
  .section-title { font-size: 16.5px; }
  .filter-bar { border-radius: var(--r-m); padding: 4px; margin-bottom: 16px; }
  .filter-tab { padding: 7px 14px; font-size: 13px; }
  .filter-count { display: none; }

  .detail-price { font-size: 28px; }
  .detail-price i { font-size: 16px; }
  .detail-title { font-size: 17.5px; }
  .detail-panel { padding: 18px; border-radius: var(--r-m); }
  .detail-meta { grid-template-columns: 1fr; gap: 9px; }
  .detail-block { padding: 18px; border-radius: var(--r-m); margin-top: 16px; }
  .detail-actions { display: none; }
  .detail-bar { display: flex; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .gallery-main { border-radius: var(--r-m); }
  .desc-specs { grid-template-columns: 1fr; }

  .form-card { padding: 18px; border-radius: var(--r-m); }
  .upload-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .field-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-foot { flex-direction: column-reverse; }
  .form-foot .btn { width: 100%; }

  .search-hero { padding: 20px 16px; border-radius: var(--r-m); }
  .search-big input { height: 46px; padding: 0 92px 0 42px; font-size: 14px; }
  .search-big button { height: 36px; padding: 0 18px; font-size: 13px; }

  .result-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 13px;
    padding: 11px;
  }
  .result-item .thumb { width: 92px; height: 92px; }
  .result-item .side {
    grid-column: 2;
    justify-items: start;
    text-align: left;
    grid-auto-flow: column;
    align-items: baseline;
    gap: 10px;
  }
  .result-item .side .price-now { font-size: 18px; }
  .result-item .title { font-size: 14px; }

  .conv-list { max-height: none; }
  .profile-head { padding: 22px 20px; border-radius: var(--r-l); }
  .profile-id h1 { font-size: 19px; }
  .profile-top .avatar-84 { width: 62px; height: 62px; }
  .stat-row { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 20px; padding-top: 18px; }
  .stat-row .stat b { font-size: 18px; }
  .stat-row .stat span { font-size: 11px; }
  .profile-ops { width: 100%; }
  .profile-ops .btn { flex: 1; }
  .tab-item { padding: 12px 12px; font-size: 13.5px; }
  .tab-bar { margin-bottom: 18px; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 30px 16px 22px; }
  .footer-bottom { padding: 16px; font-size: 11.5px; }
  .footer-bottom .spacer { display: none; }
  .site-footer { margin-bottom: 0; }
}

@media (max-width: 380px) {
  .goods-grid { gap: 9px; }
  .hero h1 { font-size: 22px; }
}

/* ---------- 会话切换（返回按钮 / 移动端单栏） ---------- */
.chat-back {
  display: none;
  width: 32px; height: 32px;
  border-radius: var(--r-s);
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  flex-shrink: 0;
  transition: background .18s, color .18s;
}
.chat-back:hover { background: var(--green-050); color: var(--green-700); }
.chat-back svg { width: 19px; height: 19px; }

@media (max-width: 900px) {
  .chat-back { display: inline-flex; }
  .msg-layout .chat-card { display: none; }
  .msg-layout.is-chat .msg-list-card { display: none; }
  .msg-layout.is-chat .chat-card { display: block; }
  .chat-head .goods-mini { display: none; }
  .bubble { max-width: 78%; }
  .chat-body { min-height: 60vh; }
}
