/* ================= 广场 ================= */
.feed { width: min(660px, 100%); margin: 0 auto; overflow: clip; }
.feed__head {
  position: sticky;
  top: var(--topbar-h);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 244, 220, .1);
  background: rgba(14, 20, 24, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.feed__head .chat-icon-btn { margin-left: -8px; }
.feed__title { font-size: 19px; font-weight: 600; letter-spacing: .08em; }
.feed > .state-box, .feed-thread > .state-box, .feed-profile > .state-box { padding: 40px 16px; }

/* ---------- 发帖框 ---------- */
.composer { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 244, 220, .1); }
.composer.is-guest { align-items: center; justify-content: space-between; color: var(--cream-dim); }
.composer__avatar { flex: none; }
.composer__main { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.composer__input {
  width: 100%;
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 17px;
  line-height: 1.45;
  resize: none;
  outline: none;
}
.composer.is-reply .composer__input { font-size: 15px; }
.composer__input::placeholder { color: rgba(255, 244, 220, .4); }
.composer__preview {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  padding: 6px 6px 6px 8px;
  border-radius: 14px;
  background: rgba(8, 12, 14, .5);
  box-shadow: inset 0 0 0 1px rgba(255, 244, 220, .14);
}
.composer__preview .chat-pick__name { flex: 1; min-width: 0; }
.composer__bar { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 244, 220, .08); }
.composer__fav { margin-left: -8px; color: var(--pink); }
.composer__spacer { flex: 1; }
.composer__count { color: var(--cream-faint); font-size: 12.5px; }
.composer__count.is-over { color: var(--red-dot); }
.modal--compose .composer { padding: 4px 0 0; border: 0; }
.share-choose__icon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 244, 220, .08); }

/* ---------- 帖子 ---------- */
.post-feed { position: relative; }
.post-pill {
  position: sticky;
  top: calc(var(--topbar-h) + 60px);
  z-index: 4;
  display: block;
  margin: 10px auto -4px;
  padding: 7px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  animation: fade-up .25s ease both;
}
.post {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 14px 18px 8px;
  border-bottom: 1px solid rgba(255, 244, 220, .08);
  cursor: pointer;
  transition: background .18s;
}
.post:hover { background: rgba(255, 244, 220, .03); }
.post.is-main { padding-top: 16px; cursor: default; }
.post.is-main:hover { background: transparent; }
.post.has-thread { border-bottom: 0; }
.post.has-thread::before { content: ""; position: absolute; top: 60px; bottom: -2px; left: 38px; width: 2px; background: rgba(255, 244, 220, .2); }
.post.is-deleted { padding: 14px 18px; cursor: default; }
.post.is-deleted.has-thread::before { top: 44px; }
.post__gone { flex: 1; padding: 10px 14px; border-radius: 12px; background: rgba(255, 244, 220, .05); color: var(--cream-faint); font-size: 13.5px; }
.post__avatar { position: relative; z-index: 1; flex: none; text-decoration: none; }
.post__body { flex: 1; min-width: 0; }
.post__head { display: flex; align-items: center; gap: 4px; min-width: 0; line-height: 1.3; }
.post__name { overflow: hidden; color: var(--cream); font-weight: 700; text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.post__name:hover { color: var(--gold); }
.post.is-main .post__name { font-size: 16px; }
.post__head .chat-tag { margin-left: 2px; }
.post__dot { color: var(--cream-faint); }
.post__time { flex: none; color: var(--cream-faint); font-size: 13px; text-decoration: none; }
.post__time:hover { color: var(--cream-dim); }
.post__delete { margin: -6px -8px -6px auto; }
.post__replyto { margin-top: 2px; color: var(--cream-faint); font-size: 13px; }
.post__replyto a { color: var(--gold); text-decoration: none; }
.post__text { margin-top: 3px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.post.is-main .post__text { margin-top: 10px; font-size: 18px; }
.post-link { color: var(--gold); text-decoration: none; }
.post-link:hover { color: var(--cream); }
.post__item { margin-top: 10px; }
.post__item .share-item { width: 340px; }
.post__fulltime { margin-top: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 244, 220, .08); }
.post__fulltime .post__time { font-size: 13.5px; }
.post__actions { display: flex; gap: 34px; margin: 4px 0 0 -8px; }
.post.is-main .post__actions { gap: 48px; margin-top: 4px; }
.post-act {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream-faint);
  font-size: 13px;
  transition: background .18s, color .18s;
}
.post-act:hover { background: rgba(255, 244, 220, .08); color: var(--cream); }
.post-act--heart:hover, .post-act--heart.is-on { color: var(--pink); }
.post-act--heart.is-on .sky-icon { fill: currentColor; animation: like-pop .3s var(--ease-spring); }
.post__delete:hover { background: rgba(232, 71, 50, .14); color: var(--red-dot); }
@keyframes like-pop { 50% { transform: scale(1.3); } }

.post-list__footer { min-height: 1px; }
.post-list__empty, .post-list__end { padding: 34px 16px; color: var(--cream-faint); text-align: center; }
.post-list__end { padding: 20px 16px 26px; font-size: 12px; }
.feed-replies__empty { padding: 26px 16px; }

/* ---------- 个人主页 ---------- */
.profile-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 18px; border-bottom: 1px solid rgba(255, 244, 220, .1); }
.profile-card__avatar { position: relative; flex: none; }
.profile-card__avatar .chat-online { right: 4px; bottom: 4px; width: 14px; height: 14px; }
.profile-card__info { flex: 1 1 180px; min-width: 0; }
.profile-card__name { overflow: hidden; font-size: 20px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.profile-card__id { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--cream-faint); font-size: 12.5px; }
.profile-card__id:hover { color: var(--cream); }
.profile-card__stats { margin-top: 6px; color: var(--cream-dim); font-size: 13.5px; }
.profile-card__stats b { color: var(--cream); }
.profile-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 分享的商品卡片（私信 / 广场共用） ---------- */
.share-item {
  display: flex;
  gap: 10px;
  width: 280px;
  max-width: 100%;
  padding: 8px;
  border-radius: 16px;
  background: rgba(8, 12, 14, .55);
  color: var(--cream);
  text-decoration: none;
  transition: background .2s;
}
.share-item:hover { background: rgba(8, 12, 14, .75); }
.share-item__thumb { flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: 12px; background: var(--well); }
.share-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.share-item__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.share-item__tag { display: inline-flex; align-items: center; gap: 4px; color: var(--pink); font-size: 11px; letter-spacing: .06em; }
.share-item__tag .sky-icon { fill: currentColor; }
.share-item__name { overflow: hidden; font-size: 13.5px; white-space: nowrap; text-overflow: ellipsis; }
.share-item__price { color: var(--gold); font-size: 19px; font-weight: 700; line-height: 1.2; }
.share-item__price small { margin-right: 2px; font-size: 12px; }


@media (max-width: 640px) {
  /* 导航项变多：窄屏可横向滑动 */
  .topbar__nav { flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .topbar__nav::-webkit-scrollbar { display: none; }
  .topbar__nav a { flex: none; }
  .feed { border-radius: var(--r-panel); }
  .post, .composer { padding-left: 12px; padding-right: 12px; }
  .post.has-thread::before { left: 32px; }
  .post__actions { gap: 18px; }
  .post.is-main .post__actions { gap: 28px; }
  .post__item .share-item { width: 100%; }
  .composer__input { font-size: 16px; }
}
