/* 邻聚同城 · 同城二手 */
.sh-page {
  --sh-theme: #f04a3e;
  --sh-theme-2: #ff7a4d;
  --sh-ink: #231c1a;
  --sh-sub: #776b67;
  --sh-muted: #a89d98;
  --sh-line: #f0e8e3;
  --sh-bg: #f8f4f0;
  --sh-card: #fff;
  --sh-gold: #ffb020;
  background: var(--sh-bg);
  color: var(--sh-ink);
  min-height: 100vh;
  padding-bottom: 86px;
}
.sh-page a { color: inherit; }
.sh-page img { max-width: 100%; }

/* custom bottom nav */
.sh-nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 40;
  width: 100%; max-width: 480px; padding: 7px 6px calc(7px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr; align-items: center;
  background: rgba(255, 253, 251, 0.97); backdrop-filter: blur(16px); border-top: 1px solid rgba(60, 30, 20, 0.06);
  box-shadow: 0 -8px 24px rgba(60, 30, 20, 0.06);
}
.sh-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #8f817b; font-size: 9.5px; position: relative; }
.sh-nav-item .ico { width: 20px; height: 20px; }
.sh-nav-item.on { color: var(--sh-theme); font-weight: 700; }
.sh-nav-item .dot { position: absolute; top: -1px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--sh-theme); }
.sh-nav-pub { display: flex; flex-direction: column; align-items: center; gap: 1px; margin-top: -20px; color: var(--sh-theme); font-size: 9.5px; font-weight: 700; }
.sh-nav-pub span { width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--sh-theme-2), var(--sh-theme)); box-shadow: 0 8px 20px rgba(240, 74, 62, 0.36); border: 3px solid #fff; }
.sh-nav-pub .ico { width: 22px; height: 22px; }

/* hero */
.sh-hero { position: relative; padding: calc(13px + env(safe-area-inset-top, 0px)) 15px 13px; color: #fff; overflow: hidden; border-radius: 0 0 26px 26px; background: linear-gradient(150deg, #8e211d, var(--sh-theme) 55%, #ff7a4d); }
.sh-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.24; }
.sh-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 10, 8, 0.04), rgba(30, 10, 8, 0.16)); pointer-events: none; }
.sh-hero-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 9px; }
.sh-round { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, 0.17); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px); }
.sh-round .ico { width: 18px; height: 18px; }
.sh-brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; }
.sh-brand-mark { width: 31px; height: 31px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.2); }
.sh-brand-mark .ico { width: 18px; height: 18px; }
.sh-brand b { display: block; font-size: 14.5px; font-weight: 800; }
.sh-brand small { display: block; font-size: 8px; letter-spacing: 2px; opacity: 0.6; margin-top: 1px; }
.sh-search { position: relative; z-index: 2; display: flex; align-items: center; gap: 7px; margin-top: 12px; background: rgba(255, 255, 255, 0.96); border-radius: 13px; height: 42px; padding: 0 11px; color: var(--sh-ink); box-shadow: 0 8px 20px rgba(100, 20, 10, 0.16); }
.sh-search .ico { color: var(--sh-theme); }
.sh-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; }
.sh-search button { font-size: 10px; color: var(--sh-theme); font-weight: 700; background: #fff0ec; padding: 5px 9px; border-radius: 8px; }
.sh-hero-stats { position: relative; z-index: 2; display: flex; gap: 14px; margin-top: 11px; font-size: 9.5px; color: rgba(255, 240, 235, 0.78); }
.sh-hero-stats b { color: #fff; font-size: 11px; margin-right: 2px; }
.sh-carousel { position: relative; z-index: 2; margin-top: 12px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 13px; }
.sh-carousel::-webkit-scrollbar { display: none; }
.sh-banner { flex: 0 0 100%; scroll-snap-align: center; position: relative; height: 122px; border-radius: 13px; overflow: hidden; background: #5a251e; }
.sh-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.sh-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 10, 8, 0.64), rgba(30, 10, 8, 0.05)); }
.sh-banner-copy { position: absolute; z-index: 2; left: 12px; bottom: 13px; right: 40%; }
.sh-banner-copy span { font-size: 8px; letter-spacing: 1.4px; color: rgba(255, 230, 220, 0.7); }
.sh-banner-copy b { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 16px; line-height: 1.35; font-weight: 800; }
.sh-carousel-dots { position: absolute; z-index: 3; right: 12px; bottom: 10px; display: flex; gap: 3px; }
.sh-carousel-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.sh-carousel-dots i.on { background: #fff; width: 12px; border-radius: 4px; }

/* body */
.sh-body { padding: 0 13px; }
.sh-cat-card { margin-top: -2px; background: #fff; border-radius: 17px; border: 1px solid rgba(60, 30, 20, 0.03); box-shadow: 0 7px 18px rgba(60, 30, 20, 0.05); padding: 10px 4px 7px; }
.sh-cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.sh-cat-item { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 7px 2px 9px; border-radius: 11px; font-size: 10.5px; color: var(--sh-ink); }
.sh-cat-item:active { background: #faf7f4; }
.sh-cat-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--sc); background: var(--sb); }
.sh-cat-ico .ico { width: 21px; height: 21px; }
.sh-cat-item span { text-align: center; line-height: 1.2; }
.sh-ad-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; margin-top: 11px; }
.sh-ad-card { position: relative; height: 82px; border-radius: 13px; overflow: hidden; display: block; background: #eee; }
.sh-ad-card img { width: 100%; height: 100%; object-fit: cover; }
.sh-ad-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40, 15, 10, 0.5), transparent); }
.sh-ad-card b { position: absolute; z-index: 2; left: 9px; bottom: 8px; font-size: 11px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.sh-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 18px 2px 9px; }
.sh-sec-head h2 { font-size: 17px; font-weight: 800; }
.sh-sec-head > a, .sh-sec-side { font-size: 9.5px; color: var(--sh-muted); display: flex; align-items: center; gap: 1px; }
.sh-filter-row { display: flex; align-items: center; gap: 5px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.sh-filter-row::-webkit-scrollbar { display: none; }
.sh-sort-chip { flex: none; padding: 6px 9px; border-radius: 8px; font-size: 10px; color: var(--sh-sub); background: transparent; }
.sh-sort-chip.on { color: var(--sh-theme); background: #ffece8; font-weight: 700; }
.sh-type-chip { flex: none; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--sh-line); background: #fff; font-size: 9.5px; color: var(--sh-sub); }
.sh-type-chip.on { color: var(--sh-theme); border-color: #ffc2b8; background: #fff3ef; }
.sh-filter-btn { flex: none; display: flex; align-items: center; gap: 2px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--sh-line); background: #fff; font-size: 9.5px; color: var(--sh-sub); }
.sh-filter-btn.on { color: var(--sh-theme); border-color: #ffc2b8; background: #fff3ef; }
.sh-active-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.sh-active-filters span { display: inline-flex; align-items: center; gap: 2px; font-size: 8.5px; color: var(--sh-theme); background: #ffece8; border: 1px solid #ffd2c9; border-radius: 999px; padding: 3px 7px; margin-bottom: 4px; }
.sh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding-top: 3px; }
.sh-card { display: flex; flex-direction: column; background: #fff; border-radius: 13px; overflow: hidden; border: 1px solid rgba(60, 30, 20, 0.04); box-shadow: 0 5px 14px rgba(60, 30, 20, 0.04); }
.sh-card-cover { position: relative; width: 100%; aspect-ratio: 1 / 0.92; background: #eee6e2; overflow: hidden; }
.sh-card-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.sh-card-cover .ph { width: 100%; height: 100%; display: grid; place-items: center; color: #d0bdb6; background: linear-gradient(145deg, #f6efeb, #ece2dc); }
.sh-card-cover .ph .ico { width: 28px; height: 28px; }
.sh-card-cover .tag { position: absolute; left: 7px; top: 7px; font-size: 8px; font-weight: 700; color: #fff; background: rgba(35, 20, 16, 0.54); border-radius: 4px; padding: 3px 5px; backdrop-filter: blur(5px); }
.sh-card-cover .top { position: absolute; right: 7px; top: 7px; font-size: 8px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ff7a4d, var(--sh-theme)); border-radius: 4px; padding: 3px 5px; }
.sh-card-cover .wanted { background: rgba(234, 179, 8, 0.9); color: #3c2b00; }
.sh-card-body { padding: 8px 9px 9px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.sh-card-title { font-size: 12.5px; line-height: 1.4; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.sh-card-price { display: flex; align-items: baseline; gap: 4px; color: var(--sh-theme); }
.sh-card-price b { font-size: 19px; font-weight: 800; letter-spacing: -0.4px; }
.sh-card-price s { font-size: 9px; color: #b7aaa4; }
.sh-card-price em { font-style: normal; font-size: 8.5px; color: var(--sh-muted); }
.sh-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 8.5px; color: var(--sh-muted); }
.sh-card-meta span { display: flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-card-seller { display: flex; align-items: center; gap: 4px; padding-top: 6px; border-top: 1px dashed var(--sh-line); margin-top: auto; }
.sh-mini-avatar { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 8px; font-weight: 700; flex: none; }
.sh-card-seller span { font-size: 8.5px; color: var(--sh-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-card-seller .sh-verified { margin-left: auto; font-size: 7.5px; color: #2e8bff; background: #eaf3ff; padding: 2px 4px; border-radius: 3px; flex: none; }
.sh-empty { display: flex; flex-direction: column; align-items: center; padding: 38px 16px; text-align: center; color: var(--sh-muted); }
.sh-empty .ico { width: 40px; height: 40px; color: #d4c3bb; margin-bottom: 9px; }
.sh-empty b { font-size: 12px; color: var(--sh-sub); }
.sh-empty p { margin-top: 4px; font-size: 9.5px; line-height: 1.6; }
.sh-skeleton { height: 210px; border-radius: 13px; background: linear-gradient(100deg, #f1eae6 20%, #faf7f4 42%, #f1eae6 64%); background-size: 200% 100%; animation: shShimmer 1.2s infinite linear; }
@keyframes shShimmer { from { background-position: 130% 0; } to { background-position: -30% 0; } }

/* home entry */
.sh-entry { position: relative; display: block; margin: 14px 14px 0; padding: 15px 15px 12px; border-radius: 20px; overflow: hidden; color: #fff; background: radial-gradient(90% 80% at 85% 0%, rgba(255, 214, 120, 0.28), transparent 58%), linear-gradient(150deg, #8f241d, #f04a3e 56%, #ff8a5b); box-shadow: 0 13px 28px rgba(180, 48, 30, 0.2); }
.sh-entry::after { content: ""; position: absolute; right: -42px; top: -55px; width: 165px; height: 165px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.04); }
.sh-entry-top { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.sh-entry-kicker { font-size: 8px; letter-spacing: 1.9px; color: rgba(255, 236, 222, 0.64); font-weight: 700; }
.sh-entry-title { margin-top: 6px; font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: 0.5px; display: flex; align-items: baseline; gap: 7px; }
.sh-entry-title span { font-family: var(--font); font-size: 9.5px; font-weight: 700; color: #5a2500; background: #ffe1a8; padding: 3px 6px; border-radius: 5px; }
.sh-entry-sub { margin-top: 5px; font-size: 10px; color: rgba(255, 237, 226, 0.68); }
.sh-entry-count { flex: none; text-align: right; padding-top: 3px; }
.sh-entry-count b { display: block; font-size: 24px; line-height: 1; font-weight: 800; color: #ffe1a8; }
.sh-entry-count span { display: block; font-size: 8.5px; color: rgba(255, 236, 222, 0.62); margin-top: 3px; }
.sh-entry-cats { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 11px; }
.sh-entry-cats > span { font-size: 8.5px; font-weight: 600; padding: 3px 6px; border-radius: 4px; }
.sh-entry-more { margin-left: auto; display: flex; align-items: center; gap: 1px; color: rgba(255, 236, 222, 0.7) !important; background: rgba(255, 255, 255, 0.1) !important; }
.sh-entry-foot { position: relative; z-index: 2; margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.13); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 8.5px; color: rgba(255, 236, 222, 0.58); }
.sh-entry-foot span { display: flex; align-items: center; gap: 3px; }

/* detail */
.sh-detail-page { padding-bottom: 0; }
.sh-gallery { position: relative; background: #1e1513; }
.sh-gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sh-gallery-track::-webkit-scrollbar { display: none; }
.sh-gallery-item { flex: 0 0 100%; scroll-snap-align: center; height: 310px; }
.sh-gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.sh-gallery-item.ph { display: grid; place-items: center; color: rgba(255, 255, 255, 0.35); }
.sh-gallery-top { position: absolute; z-index: 3; left: 13px; right: 13px; top: calc(12px + env(safe-area-inset-top, 0px)); display: flex; align-items: center; justify-content: space-between; }
.sh-gallery-actions { display: flex; gap: 7px; }
.sh-gallery-count { position: absolute; z-index: 3; right: 13px; bottom: 12px; font-size: 9px; color: #fff; background: rgba(20, 10, 8, 0.52); border-radius: 999px; padding: 3px 8px; }
.sh-detail-main { position: relative; margin-top: -18px; z-index: 4; background: #fff; border-radius: 20px 20px 0 0; padding: 15px 14px 10px; }
.sh-detail-badge-row { display: flex; align-items: center; gap: 5px; }
.sh-pill { display: inline-flex; align-items: center; gap: 2px; font-size: 8.5px; font-weight: 700; padding: 3px 6px; border-radius: 4px; }
.sh-pill.type { color: #fff; background: var(--sh-theme); }
.sh-pill.wanted { color: #6b4b00; background: #ffedba; }
.sh-pill.condition { color: #6c5a51; background: #f6f1ed; }
.sh-pill.trade { color: #2e8bff; background: #eaf3ff; }
.sh-detail-title { margin-top: 7px; font-size: 18px; line-height: 1.4; font-weight: 800; }
.sh-detail-price-row { display: flex; align-items: flex-end; gap: 6px; margin-top: 7px; }
.sh-detail-price { color: var(--sh-theme); font-size: 28px; font-weight: 800; letter-spacing: -0.6px; line-height: 1; }
.sh-detail-original { font-size: 10px; color: #b6aaa4; text-decoration: line-through; padding-bottom: 2px; }
.sh-detail-stats { margin-left: auto; font-size: 8.5px; color: var(--sh-muted); padding-bottom: 2px; }
.sh-detail-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.sh-detail-tags span { font-size: 8.5px; color: #7a6b63; background: #faf6f3; border: 1px solid #f0e7e2; border-radius: 4px; padding: 3px 6px; }
.sh-info-card, .sh-seller-card, .sh-fields-card, .sh-desc-card, .sh-ad-card-detail, .sh-redpack-card { background: #fff; border-radius: 15px; margin-top: 9px; border: 1px solid var(--sh-line); overflow: hidden; }
.sh-info-row { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-bottom: 1px dashed var(--sh-line); }
.sh-info-row:last-child { border-bottom: 0; }
.sh-info-row .ico { color: var(--sh-theme); margin-top: 2px; }
.sh-info-row div { flex: 1; min-width: 0; }
.sh-info-row span { display: block; font-size: 8.5px; color: var(--sh-muted); }
.sh-info-row b { display: block; font-size: 11px; font-weight: 600; margin-top: 2px; line-height: 1.45; }
.sh-info-row a { flex: none; font-size: 9px; color: var(--sh-theme); background: #fff1ed; padding: 5px 8px; border-radius: 6px; }
.sh-detail-section { padding: 12px 13px; }
.sh-detail-section h3 { font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 4px; }
.sh-detail-desc { margin-top: 7px; font-size: 11px; line-height: 1.8; color: var(--sh-sub); white-space: pre-line; }
.sh-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: 8px; }
.sh-field { min-width: 0; }
.sh-field span { display: block; font-size: 8.5px; color: var(--sh-muted); }
.sh-field b { display: block; font-size: 10.5px; margin-top: 2px; font-weight: 600; word-break: break-word; }
.sh-seller-card { display: flex; align-items: center; gap: 9px; padding: 11px 12px; }
.sh-seller-avatar { width: 42px; height: 42px; border-radius: 12px; overflow: hidden; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff7a6b, var(--sh-theme)); }
.sh-seller-avatar .ico { width: 20px; height: 20px; }
.sh-seller-info { flex: 1; min-width: 0; }
.sh-seller-name { font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 4px; }
.sh-seller-meta { font-size: 8.5px; color: var(--sh-muted); margin-top: 3px; }
.sh-follow-btn { flex: none; padding: 6px 10px; border-radius: 999px; font-size: 9px; font-weight: 700; color: var(--sh-theme); border: 1px solid #ffc5bb; background: #fff0ec; }
.sh-follow-btn.on { color: var(--sh-muted); background: #f7f2ef; border-color: var(--sh-line); }
.sh-redpack-card { display: flex; align-items: center; gap: 9px; padding: 11px 12px; background: linear-gradient(120deg, #fff1e8, #ffdcd0); }
.sh-redpack-ico { width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff8a4d, var(--sh-theme)); flex: none; }
.sh-redpack-ico .ico { width: 18px; height: 18px; }
.sh-redpack-info { flex: 1; }
.sh-redpack-info b { font-size: 11.5px; color: #9c2e1c; }
.sh-redpack-info small { display: block; font-size: 8.5px; color: #b06a58; margin-top: 2px; }
.sh-redpack-btn { flex: none; font-size: 9.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ff7a4d, var(--sh-theme)); padding: 7px 11px; border-radius: 999px; }
.sh-ad-card-detail { display: block; padding: 12px 13px; background: linear-gradient(120deg, #fff9ee, #ffeecb); }
.sh-ad-card-detail b { display: block; font-size: 11.5px; color: #7a4a00; }
.sh-ad-card-detail span { display: block; font-size: 8.5px; color: #a87620; margin-top: 3px; }
.sh-similar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 13px 10px; }
.sh-detail-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 253, 251, 0.97); backdrop-filter: blur(15px); border-top: 1px solid rgba(60, 30, 20, 0.06); }
.sh-bar-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--sh-line); background: #fff; color: var(--sh-sub); }
.sh-bar-icon.on { color: var(--sh-theme); border-color: #ffc5bb; background: #fff1ed; }
.sh-bar-main { flex: 1; display: flex; gap: 6px; }
.sh-bar-main .sh-btn { flex: 1; }
.sh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 11px 14px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.sh-btn.primary { color: #fff; background: linear-gradient(135deg, var(--sh-theme-2), var(--sh-theme)); box-shadow: 0 7px 16px rgba(240, 74, 62, 0.24); }
.sh-btn.ghost { color: var(--sh-sub); background: #fff; border: 1px solid var(--sh-line); }
.sh-btn.gold { color: #3d2700; background: linear-gradient(135deg, #ffd978, #ffb020); }
.sh-btn.block { display: flex; width: 100%; margin-top: 10px; }
.sh-btn:disabled { opacity: 0.45; box-shadow: none; }
.sh-mini-btn { display: inline-flex; align-items: center; gap: 2px; padding: 6px 8px; border-radius: 6px; font-size: 8.5px; font-weight: 600; background: #fff; border: 1px solid var(--sh-line); color: var(--sh-sub); white-space: nowrap; }
.sh-mini-btn.primary { color: #fff; background: var(--sh-theme); border-color: var(--sh-theme); }
.sh-mini-btn.danger { color: #cf3a2e; background: #fff0ed; border-color: #ffd0c8; }

/* publish */
.sh-publish-page { padding-bottom: 0; }
.sh-publish-head { padding: calc(13px + env(safe-area-inset-top, 0px)) 17px 20px; background: linear-gradient(150deg, #8e211d, var(--sh-theme) 62%, #ff8256); color: #fff; border-radius: 0 0 24px 24px; position: relative; overflow: hidden; }
.sh-publish-head h1 { margin-top: 18px; font-family: var(--font-display); font-size: 23px; font-weight: 800; }
.sh-publish-head p { margin-top: 5px; font-size: 10px; color: rgba(255, 238, 232, 0.72); }
.sh-publish-type { display: flex; gap: 7px; margin-top: 13px; position: relative; z-index: 2; }
.sh-publish-type button { flex: 1; padding: 9px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.22); }
.sh-publish-type button.on { background: #fff; color: var(--sh-theme); border-color: #fff; }
.sh-publish-body { padding: 13px; display: flex; flex-direction: column; gap: 10px; }
.sh-form-block { background: #fff; border-radius: 14px; border: 1px solid var(--sh-line); padding: 12px; }
.sh-form-title { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 10px; font-size: 11.5px; font-weight: 800; }
.sh-form-title small { font-size: 8.5px; color: var(--sh-muted); font-weight: 400; }
.sh-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 8px; }
.sh-field-label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sh-field-label.wide { grid-column: 1 / -1; }
.sh-field-label > span { font-size: 9.5px; color: var(--sh-sub); font-weight: 600; }
.sh-field-label > span i { font-style: normal; color: var(--sh-theme); }
.sh-input { width: 100%; min-height: 38px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--sh-line); background: #fdfbf9; outline: 0; font-size: 11px; color: var(--sh-ink); }
.sh-input:focus { border-color: #ffb9ad; box-shadow: 0 0 0 3px rgba(240, 74, 62, 0.07); background: #fff; }
textarea.sh-input { min-height: 70px; resize: vertical; line-height: 1.6; }
.sh-image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sh-image-item { position: relative; aspect-ratio: 1 / 1; border-radius: 9px; overflow: hidden; background: #f5efeb; }
.sh-image-item img { width: 100%; height: 100%; object-fit: cover; }
.sh-image-del { position: absolute; right: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(30, 15, 10, 0.56); color: #fff; }
.sh-image-add { aspect-ratio: 1 / 1; border-radius: 9px; border: 1.5px dashed #e2d5cf; background: #fdfaf8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--sh-muted); font-size: 8.5px; }
.sh-image-add .ico { width: 22px; height: 22px; color: var(--sh-theme); }
.sh-upload-progress { font-size: 9px; color: var(--sh-muted); margin-top: 4px; }
.sh-cat-picker { display: flex; flex-wrap: wrap; gap: 5px; }
.sh-cat-pick { padding: 7px 9px; border-radius: 7px; border: 1px solid var(--sh-line); background: #faf7f4; font-size: 9.5px; color: var(--sh-sub); }
.sh-cat-pick.on { color: var(--sh-theme); border-color: #ffc5ba; background: #fff0ec; font-weight: 700; }
.sh-tag-picker { display: flex; flex-wrap: wrap; gap: 5px; }
.sh-tag-pick { padding: 6px 9px; border-radius: 999px; border: 1px solid var(--sh-line); background: #faf7f4; font-size: 9px; color: var(--sh-sub); }
.sh-tag-pick.on { color: var(--sh-theme); border-color: #ffc8bd; background: #fff2ee; }
.sh-trade-picker { display: flex; gap: 6px; }
.sh-trade-pick { flex: 1; padding: 8px 4px; border-radius: 8px; border: 1px solid var(--sh-line); background: #faf7f4; font-size: 9.5px; color: var(--sh-sub); text-align: center; }
.sh-trade-pick.on { color: var(--sh-theme); border-color: #ffc5ba; background: #fff0ec; font-weight: 700; }
.sh-loc-box { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 7px 9px; border-radius: 8px; background: #faf7f4; border: 1px solid var(--sh-line); }
.sh-loc-box span { display: flex; align-items: center; gap: 3px; font-size: 8.5px; color: var(--sh-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-form-tip { display: flex; align-items: flex-start; gap: 3px; justify-content: center; font-size: 8.5px; color: var(--sh-muted); line-height: 1.6; padding: 0 8px; }
.sh-submit-bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 9px; padding: 9px 13px calc(9px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 252, 249, 0.97); backdrop-filter: blur(15px); border-top: 1px solid rgba(60, 30, 20, 0.06); }
.sh-submit-bar > div { flex: 1; }
.sh-submit-bar small { display: block; font-size: 8px; color: var(--sh-muted); }
.sh-submit-bar b { font-size: 15px; color: var(--sh-theme); }
.sh-submit-bar .sh-btn { min-width: 132px; }

/* mine */
.sh-mine-head { padding: calc(15px + env(safe-area-inset-top, 0px)) 17px 22px; color: #fff; background: linear-gradient(150deg, #8e211d, var(--sh-theme) 62%, #ff8256); border-radius: 0 0 24px 24px; position: relative; overflow: hidden; }
.sh-mine-head::after { content: ""; position: absolute; right: -38px; top: 28px; width: 135px; height: 135px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.05); }
.sh-mine-user { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; }
.sh-mine-avatar { width: 51px; height: 51px; border-radius: 15px; overflow: hidden; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); border: 1.5px solid rgba(255, 255, 255, 0.35); }
.sh-mine-avatar .ico { width: 24px; height: 24px; }
.sh-mine-user div { flex: 1; }
.sh-mine-user h1 { font-size: 18px; font-weight: 800; }
.sh-mine-user p { font-size: 9.5px; color: rgba(255, 238, 232, 0.68); margin-top: 3px; }
.sh-mine-stats { position: relative; z-index: 2; display: flex; margin-top: 17px; }
.sh-mine-stat { flex: 1; text-align: center; position: relative; }
.sh-mine-stat + .sh-mine-stat::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 1px; background: rgba(255, 255, 255, 0.16); }
.sh-mine-stat b { display: block; font-size: 16px; }
.sh-mine-stat span { display: block; font-size: 8.5px; color: rgba(255, 238, 232, 0.66); margin-top: 2px; }
.sh-mine-body { padding: 0 13px; }
.sh-trade-card { background: #fff; border-radius: 15px; box-shadow: 0 7px 18px rgba(60, 30, 20, 0.05); padding: 12px 10px; margin-top: -13px; position: relative; z-index: 3; }
.sh-trade-card-head { display: flex; align-items: center; justify-content: space-between; padding: 0 3px 9px; font-size: 11.5px; font-weight: 800; }
.sh-trade-card-head a { font-size: 8.5px; color: var(--sh-muted); font-weight: 400; display: flex; align-items: center; }
.sh-trade-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.sh-trade-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 2px; border-radius: 9px; }
.sh-trade-item b { font-size: 17px; color: var(--sh-theme); }
.sh-trade-item span { font-size: 8.5px; color: var(--sh-sub); }
.sh-tools-card { background: #fff; border-radius: 15px; margin-top: 10px; padding: 12px 11px; border: 1px solid var(--sh-line); }
.sh-tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 2px; }
.sh-tool-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 2px; font-size: 9px; color: var(--sh-sub); }
.sh-tool-item .sh-tool-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #fff1ed; color: var(--sh-theme); }
.sh-tool-item .sh-tool-ico .ico { width: 17px; height: 17px; }
.sh-mine-tabs { display: flex; gap: 4px; margin-top: 10px; background: #fff; border: 1px solid var(--sh-line); border-radius: 11px; padding: 4px; }
.sh-mine-tab { flex: 1; padding: 7px 2px; border-radius: 8px; font-size: 9.5px; color: var(--sh-sub); }
.sh-mine-tab.on { background: var(--sh-theme); color: #fff; font-weight: 700; }
.sh-mine-panel { margin-top: 10px; }
.sh-listing-row { display: flex; gap: 9px; background: #fff; border-radius: 12px; border: 1px solid var(--sh-line); padding: 8px; margin-bottom: 8px; }
.sh-lr-cover { width: 74px; height: 74px; border-radius: 9px; overflow: hidden; flex: none; background: #f3ece8; }
.sh-lr-cover img { width: 100%; height: 100%; object-fit: cover; }
.sh-lr-main { flex: 1; min-width: 0; }
.sh-lr-title { font-size: 11.5px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-lr-meta { margin-top: 3px; font-size: 8.5px; color: var(--sh-muted); }
.sh-lr-price { margin-top: 3px; font-size: 15px; color: var(--sh-theme); font-weight: 800; }
.sh-lr-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.sh-status { font-size: 8pt; font-weight: 700; padding: 3px 5px; border-radius: 4px; white-space: nowrap; }
.sh-status.active { color: #0d8a52; background: #e8f9f0; }
.sh-status.sold { color: #777; background: #f2f0ee; }
.sh-status.off { color: #777; background: #f2f0ee; }
.sh-status.pending_redpacket { color: #a56800; background: #fff4d8; }
.sh-status.pending_pay { color: #a56800; background: #fff4d8; }
.sh-status.paid { color: #2470c8; background: #eaf3ff; }
.sh-status.shipped { color: #2470c8; background: #eaf3ff; }
.sh-status.completed { color: #0d8a52; background: #e8f9f0; }
.sh-status.cancelled, .sh-status.refunded { color: #777; background: #f2f0ee; }
.sh-seller-mini { display: flex; align-items: center; gap: 7px; background: #fff; border-radius: 12px; border: 1px solid var(--sh-line); padding: 9px; margin-bottom: 8px; }
.sh-seller-mini .sh-seller-avatar { width: 38px; height: 38px; }
.sh-seller-mini div { flex: 1; }
.sh-seller-mini b { font-size: 11px; }
.sh-seller-mini small { display: block; font-size: 8.5px; color: var(--sh-muted); margin-top: 2px; }

/* orders */
.sh-orders-page { padding-bottom: 80px; }
.sh-order-head { padding: calc(13px + env(safe-area-inset-top, 0px)) 16px 18px; color: #fff; background: linear-gradient(150deg, #8e211d, var(--sh-theme) 62%, #ff8256); border-radius: 0 0 24px 24px; }
.sh-order-tabs { display: flex; gap: 4px; padding: 10px 13px 4px; position: relative; z-index: 3; margin-top: -10px; }
.sh-order-tabs button { flex: 1; padding: 8px 3px; border-radius: 8px; font-size: 10px; color: var(--sh-sub); background: transparent; }
.sh-order-tabs button.on { background: #fff; color: var(--sh-ink); font-weight: 700; box-shadow: 0 4px 12px rgba(60, 30, 20, 0.06); }
.sh-order-body { padding: 8px 13px 20px; }
.sh-order-filter { display: flex; gap: 4px; overflow-x: auto; padding: 2px 1px 7px; scrollbar-width: none; }
.sh-order-filter::-webkit-scrollbar { display: none; }
.sh-order-filter button { flex: none; padding: 5px 9px; border-radius: 999px; font-size: 9px; color: var(--sh-sub); background: #fff; border: 1px solid var(--sh-line); }
.sh-order-filter button.on { color: var(--sh-theme); border-color: #ffc5ba; background: #fff1ed; }
.sh-order-card { background: #fff; border-radius: 13px; border: 1px solid var(--sh-line); padding: 10px; margin-bottom: 9px; }
.sh-order-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 8.5px; color: var(--sh-muted); }
.sh-order-main { display: flex; gap: 8px; margin-top: 8px; }
.sh-order-cover { width: 66px; height: 66px; border-radius: 8px; overflow: hidden; flex: none; background: #f3ece8; }
.sh-order-cover img { width: 100%; height: 100%; object-fit: cover; }
.sh-order-info { flex: 1; min-width: 0; }
.sh-order-info b { display: block; font-size: 11px; line-height: 1.4; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-order-info small { display: block; font-size: 8.5px; color: var(--sh-muted); margin-top: 3px; }
.sh-order-price { display: flex; align-items: baseline; justify-content: space-between; margin-top: 7px; }
.sh-order-price span { font-size: 8.5px; color: var(--sh-muted); }
.sh-order-price b { font-size: 16px; color: var(--sh-theme); }
.sh-order-actions { display: flex; justify-content: flex-end; gap: 5px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--sh-line); }
.sh-order-detail-card { background: #fff; border-radius: 15px; border: 1px solid var(--sh-line); overflow: hidden; margin-bottom: 10px; }
.sh-od-head { padding: 12px 13px; background: linear-gradient(120deg, #fff7f4, #ffede6); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sh-od-head b { font-size: 12px; color: var(--sh-theme); }
.sh-od-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 13px; font-size: 10px; border-bottom: 1px dashed var(--sh-line); }
.sh-od-row span { color: var(--sh-muted); }
.sh-od-row b { font-weight: 600; text-align: right; color: var(--sh-ink); }
.sh-track-list { padding: 11px 13px; }
.sh-track-item { display: flex; gap: 9px; padding-bottom: 12px; position: relative; }
.sh-track-item::before { content: ""; position: absolute; left: 5px; top: 13px; bottom: 0; width: 1px; background: #efdfd9; }
.sh-track-item:last-child::before { display: none; }
.sh-track-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; margin-top: 2px; background: #e2d4ce; z-index: 2; }
.sh-track-item.done .sh-track-dot { background: var(--sh-theme); }
.sh-track-text b { display: block; font-size: 10.5px; }
.sh-track-text small { display: block; font-size: 8.5px; color: var(--sh-muted); margin-top: 2px; }

/* publish modals / filters / share */
.sh-modal-sheet { max-height: 80vh; }
.sh-filter-block { padding: 4px 0 12px; }
.sh-filter-block h4 { font-size: 10.5px; margin-bottom: 7px; }
.sh-filter-chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.sh-price-inputs { display: flex; align-items: center; gap: 5px; }
.sh-price-inputs input { width: 100%; }
.sh-trade-modal { background: #fff; border-radius: 16px; padding: 14px; }
.sh-trade-modal h3 { font-size: 14px; font-weight: 800; }
.sh-trade-tabs { display: flex; gap: 5px; margin-top: 10px; }
.sh-trade-tab { flex: 1; padding: 8px; border-radius: 8px; border: 1px solid var(--sh-line); background: #faf7f4; font-size: 10px; color: var(--sh-sub); }
.sh-trade-tab.on { color: var(--sh-theme); background: #fff1ed; border-color: #ffc5ba; font-weight: 700; }
.sh-trade-form { margin-top: 10px; }
.sh-trade-summary { margin-top: 9px; background: #faf7f4; border-radius: 8px; padding: 8px 9px; }
.sh-trade-summary div { display: flex; justify-content: space-between; padding: 3px 0; font-size: 9.5px; color: var(--sh-muted); }
.sh-trade-summary b { color: var(--sh-theme); font-size: 12px; }
.sh-share-modal { width: min(90vw, 340px); background: #fff; border-radius: 18px; overflow: hidden; padding: 0 0 14px; }
.sh-share-cover { height: 170px; background: #ddd; }
.sh-share-cover img { width: 100%; height: 100%; object-fit: cover; }
.sh-share-body { padding: 13px 14px 0; }
.sh-share-body b { font-size: 15px; font-weight: 800; }
.sh-share-body p { margin-top: 5px; font-size: 9.5px; color: var(--sh-muted); line-height: 1.6; }
.sh-share-qr { margin-top: 10px; display: flex; gap: 9px; align-items: center; }
.sh-share-qr img { width: 74px; height: 74px; border-radius: 7px; background: #f6f1ee; flex: none; }
.sh-share-qr small { font-size: 8.5px; color: var(--sh-muted); word-break: break-all; }
.sh-share-copy { margin: 11px 14px 14px; width: calc(100% - 28px); }
.sh-category-modal { background: #fff; border-radius: 16px; padding: 14px; }
.sh-category-modal h3 { font-size: 14px; font-weight: 800; }
.sh-cat-modal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.sh-cat-modal-item { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border-radius: 9px; background: #faf7f4; border: 1px solid var(--sh-line); font-size: 9.5px; }
.sh-cat-modal-item .ico { width: 19px; height: 19px; }
.sh-cat-modal-item.on { background: #fff1ed; border-color: #ffc5ba; color: var(--sh-theme); }

/* seller */
.sh-seller-page { padding-bottom: 0; }
.sh-seller-head { padding: calc(13px + env(safe-area-inset-top, 0px)) 16px 20px; background: linear-gradient(150deg, #8e211d, var(--sh-theme) 62%, #ff8256); color: #fff; border-radius: 0 0 24px 24px; }
.sh-seller-profile { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.sh-seller-big-avatar { width: 54px; height: 54px; border-radius: 15px; overflow: hidden; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); border: 1.5px solid rgba(255, 255, 255, 0.3); }
.sh-seller-big-avatar .ico { width: 25px; height: 25px; }
.sh-seller-profile div { flex: 1; min-width: 0; }
.sh-seller-profile h1 { font-size: 18px; font-weight: 800; }
.sh-seller-profile p { font-size: 9.5px; color: rgba(255, 238, 232, 0.7); margin-top: 3px; }
.sh-seller-pstats { display: flex; gap: 16px; margin-top: 13px; font-size: 9px; color: rgba(255, 238, 232, 0.7); }
.sh-seller-pstats b { color: #fff; font-size: 13px; margin-right: 2px; }
.sh-seller-body { padding: 12px 13px; }
.sh-seller-actions { display: flex; gap: 7px; margin-bottom: 10px; }
.sh-seller-actions .sh-btn { flex: 1; }

@media (max-width: 360px) {
  .sh-grid { gap: 7px; }
  .sh-card-title { font-size: 11.5px; }
  .sh-detail-title { font-size: 16px; }
  .sh-form-fields { grid-template-columns: 1fr; }
}
