:root {
  --bg: #121212;
  --bg-2: #181818;
  --bg-3: #1f1f1f;
  --text: #ffffff;
  --muted: #b3b3b3;
  --border: #4d4d4d;
  --primary: #1ed760;
  --primary-2: #1db954;
  --primary-soft: #1a3a2a;
  --danger: #f3727f;
  --warning: #ffa42b;
  --info: #539df5;
  --card: #181818;
  --shadow-heavy: rgba(0,0,0,0.5) 0px 8px 24px;
  --shadow-medium: rgba(0,0,0,0.3) 0px 8px 8px;
  --inset-border: rgb(124,124,124) 0px 0px 0px 1px inset;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", helvetica, arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
a { color: var(--primary); cursor: pointer; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 10px 24px;
  border-radius: 500px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: transform .1s, background .15s;
}
.btn-primary:hover { background: #1fdf64; transform: scale(1.03); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { background: #535353; color: #b3b3b3; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid #7c7c7c;
  padding: 9px 18px;
  border-radius: 500px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.btn-ghost:hover { border-color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid #7c7c7c;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
}
.btn-outline:hover { border-color: #fff; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-box {
  background: #282828;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  border-radius: 8px;
  box-shadow: var(--shadow-heavy);
}
.modal-box.wide { width: min(680px, 100%); }
.modal-box h2 { margin: 0 0 8px; color: #fff; font-size: 20px; }
.modal-box .sub { color: var(--muted); margin: 0 0 18px; font-size: 13px; }
.modal-box label {
  display: block;
  font-size: 13px;
  margin: 14px 0 6px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.modal-box label .hint { color: var(--muted); font-weight: 400; margin-left: 4px; font-size: 12px; text-transform: none; letter-spacing: 0; }
.modal-box input, .modal-box select, .modal-box textarea {
  width: 100%;
  border: none;
  box-shadow: var(--inset-border);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: #3e3e3e;
  color: #fff;
}
.modal-box textarea { resize: vertical; min-height: 72px; }
.modal-box input:focus, .modal-box textarea:focus { box-shadow: #fff 0px 0px 0px 1px inset; }

.row-btns {
  display: flex; gap: 10px; margin-top: 20px;
  justify-content: flex-end;
}

.brand-big {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}
.brand-big span { color: var(--primary); }

.login-hint {
  margin-top: 20px;
  padding: 14px;
  background: #1a1a1a;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

/* ---------- App Shell ---------- */
.app { min-height: 100vh; padding-top: 64px; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 64px;
  background: #000;
  border-bottom: 1px solid #282828;
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 24px;
  z-index: 100;
}
.logo-row {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 18px;
  cursor: pointer;
}
.logo-text { color: var(--primary); font-weight: 700; letter-spacing: -0.5px; }
.nav { flex: 1; display: flex; gap: 4px; }
.nav-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 9999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.nav-btn:hover { color: #fff; }
.nav-btn.active { background: #282828; color: #fff; }

.wallet { display: flex; align-items: center; gap: 12px; }
.token-badge {
  background: #282828;
  padding: 6px 14px;
  border-radius: 9999px;
  font-weight: 700;
  color: var(--primary);
  font-size: 13px;
}
.me-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 9999px;
  background: #282828;
  cursor: pointer;
}
.me-btn:hover { background: #3e3e3e; }

/* ---------- Avatar ---------- */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 15px;
}
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.avatar.xl { width: 80px; height: 80px; font-size: 30px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ---------- View ---------- */
.view {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px;
}
.view h1 { font-size: 24px; margin: 0 0 4px; font-weight: 700; }
.view .sub { color: var(--muted); margin: 0 0 20px; font-size: 13px; }

.section-head {
  margin: 28px 0 14px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

/* ---------- Banner ---------- */
.banner {
  background: linear-gradient(135deg, #1a1a1a, #282828);
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 20px;
}
.banner h1 { font-size: 26px; color: #fff; font-weight: 700; }
.banner p { color: var(--muted); margin: 6px 0 16px; }
.search-row input {
  width: 100%;
  max-width: 400px;
  padding: 10px 16px;
  border-radius: 9999px;
  border: none;
  box-shadow: var(--inset-border);
  background: #3e3e3e;
  color: #fff;
  outline: none;
}
.search-row input:focus { box-shadow: #fff 0px 0px 0px 1px inset; }

/* ---------- Tag Filter ---------- */
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0; width: 100%; }
.tag-group-label { font-size: 12px; color: var(--muted); margin-right: 4px; min-width: 60px; text-transform: uppercase; letter-spacing: 1px; }
.tag-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 9999px;
  background: #282828;
  border: 1px solid #4d4d4d;
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
  transition: all .12s;
  font-weight: 700;
}
.tag-chip:hover { border-color: #fff; color: #fff; }
.tag-chip.active { background: var(--primary); color: #000; border-color: var(--primary); }

/* ---------- Products Grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.product-card {
  background: #181818;
  border: none;
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transition: background .12s;
  display: flex; flex-direction: column; gap: 8px;
}
.product-card:hover { background: #282828; box-shadow: var(--shadow-medium); }
.product-card .thumb {
  width: 100%;
  aspect-ratio: 1;
  background: #282828;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.product-card .title {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.product-card .price { color: var(--primary); font-weight: 700; font-size: 16px; }
.product-card .seller { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.product-card .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.product-card .tags .t {
  background: #282828;
  color: var(--primary);
  padding: 1px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
}

.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty p { margin: 12px 0; }

/* ---------- Publish / Forms ---------- */
.view.publish, .view.edit-profile { max-width: 680px; }
.view label {
  display: block;
  font-size: 12px;
  margin: 16px 0 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.view label .hint { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 4px; text-transform: none; letter-spacing: 0; }
.view input, .view textarea, .view select {
  width: 100%;
  border: none;
  box-shadow: var(--inset-border);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: #3e3e3e;
  color: #fff;
}
.view input:focus, .view textarea:focus { box-shadow: #fff 0px 0px 0px 1px inset; }
.view textarea { resize: vertical; min-height: 100px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.tag-picker {
  border: 1px solid #4d4d4d;
  border-radius: 8px;
  padding: 12px;
  max-height: 320px;
  overflow-y: auto;
  background: #1f1f1f;
}
.tag-picker .tg { margin-bottom: 10px; }
.tag-picker .tg-title { font-size: 12px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.tag-picker .tg-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Product Detail ---------- */
.pd-head { display: flex; gap: 20px; align-items: flex-start; }
.pd-thumb {
  width: 180px; height: 180px;
  border-radius: 8px;
  background: #282828;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px;
  flex-shrink: 0;
}
.pd-info { flex: 1; min-width: 0; }
.pd-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.pd-price { font-size: 26px; color: var(--primary); font-weight: 800; margin: 4px 0; }
.pd-meta { color: var(--muted); font-size: 12px; }
.pd-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pd-tags .t { background: var(--primary-soft); color: var(--primary); padding: 3px 10px; border-radius: 9999px; font-size: 12px; font-weight: 700; }
.pd-desc { margin-top: 16px; padding: 14px; background: var(--bg); border-radius: 8px; white-space: pre-wrap; line-height: 1.6; }
.pd-seller {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 12px;
  background: var(--bg); border-radius: 8px; cursor: pointer;
}
.pd-seller:hover { background: var(--primary-soft); }
.pd-contact { margin-top: 16px; padding: 16px; background: #1a3a2a; border: 1px solid var(--primary-2); border-radius: 8px; }
.pd-contact.locked { background: #1f1f1f; border-color: #4d4d4d; }
.pd-contact .label { font-size: 12px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.pd-contact .value { font-size: 18px; font-weight: 700; font-family: monospace; color: var(--primary); }
.pd-actions { display: flex; gap: 10px; margin-top: 16px; }
.pd-actions button { flex: 1; }

/* ---------- Profile ---------- */
.profile-card { display: flex; gap: 20px; padding: 24px; background: #181818; border-radius: 8px; margin-bottom: 20px; }
.profile-info { flex: 1; }
.profile-info .row { display: flex; justify-content: space-between; align-items: center; }
.profile-info h1 { margin: 0 0 4px; }
.profile-info .meta { color: var(--muted); font-size: 12px; }
.profile-info .bio { margin-top: 10px; color: var(--text); line-height: 1.6; }

.card { background: #181818; border: none; border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.card h3 { margin: 0 0 8px; font-size: 16px; color: #fff; font-weight: 700; }
.card p { margin: 0 0 14px; color: var(--muted); }

.unlocked-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.unlocked-item { padding: 14px; background: #1f1f1f; border: 1px solid var(--border); border-radius: 8px; }
.unlocked-item .t { font-weight: 700; margin-bottom: 4px; }
.unlocked-item .c { font-family: monospace; color: var(--primary); background: var(--primary-soft); padding: 6px 10px; border-radius: 4px; display: inline-block; margin-top: 4px; font-weight: 700; }

/* ---------- Chat ---------- */
.chats-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: calc(100vh - 64px - 56px);
  background: #181818;
  border-radius: 8px;
  overflow: hidden;
}
.chats-list { border-right: 1px solid #282828; overflow-y: auto; background: #121212; }
.chat-item { padding: 12px; border-bottom: 1px solid #282828; cursor: pointer; display: flex; gap: 10px; }
.chat-item:hover { background: #1f1f1f; }
.chat-item.active { background: #1f1f1f; border-left: 3px solid var(--primary); }
.chat-item .info { flex: 1; min-width: 0; }
.chat-item .name { font-weight: 700; font-size: 14px; color: #fff; }
.chat-item .prod { font-size: 11px; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .last { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-panel { display: flex; flex-direction: column; overflow: hidden; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.chat-header { padding: 14px 18px; border-bottom: 1px solid #282828; display: flex; align-items: center; gap: 12px; background: #181818; }
.chat-header .prod-banner { margin-left: auto; font-size: 12px; color: var(--primary); background: #1a3a2a; padding: 4px 10px; border-radius: 9999px; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; background: #121212; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 70%; padding: 8px 12px; border-radius: 8px; background: #282828; line-height: 1.5; word-break: break-word; color: #fff; }
.chat-msg.mine { align-self: flex-end; background: var(--primary); color: #000; }
.chat-msg .ts { display: block; font-size: 10px; opacity: 0.7; margin-top: 2px; }
.chat-compose { padding: 12px; border-top: 1px solid #282828; display: flex; gap: 8px; background: #181818; }
.chat-compose input { flex: 1; padding: 10px 14px; border-radius: 9999px; border: none; box-shadow: var(--inset-border); background: #3e3e3e; color: #fff; outline: none; }
.chat-compose input:focus { box-shadow: #fff 0px 0px 0px 1px inset; }

/* ---------- Game ---------- */
.view.game { max-width: 800px; text-align: center; }
.game-stats { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; font-size: 16px; }
.game-stats b { color: var(--primary); font-size: 22px; }
.game-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 520px; margin: 0 auto 20px; }
.hole { aspect-ratio: 1; background: radial-gradient(ellipse at center, #78350f 0%, #3f1a06 90%); border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; cursor: pointer; }
.hole .mole { position: absolute; bottom: -100%; font-size: 40px; transition: bottom .15s cubic-bezier(.34,1.56,.64,1); }
.hole.show .mole { bottom: 18%; }
.hole.hit { background: radial-gradient(ellipse at center, #fbbf24 0%, #f59e0b 90%); }
.cooldown { color: var(--primary); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- File Upload ---------- */
input[type="file"] { padding: 6px 0; font-size: 13px; color: var(--muted); }
.thumb-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 80px; left: 50%;
  transform: translateX(-50%);
  background: #282828; color: #fff;
  padding: 10px 20px; border-radius: 9999px;
  z-index: 500; font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-heavy);
  letter-spacing: 0.5px;
}
.toast.ok { background: var(--primary); color: #000; }
.toast.err { background: var(--danger); }


/* ---------- Animations ---------- */
@keyframes fadein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideup {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scalein {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.view { animation: fadein .25s ease; }
.modal-box { animation: scalein .2s ease; }
.product-card { animation: slideup .2s ease both; }
.anim-fadein { animation: fadein .2s ease; }

.product-card:nth-child(1)  { animation-delay: .02s; }
.product-card:nth-child(2)  { animation-delay: .04s; }
.product-card:nth-child(3)  { animation-delay: .06s; }
.product-card:nth-child(4)  { animation-delay: .08s; }
.product-card:nth-child(5)  { animation-delay: .10s; }
.product-card:nth-child(6)  { animation-delay: .12s; }
.product-card:nth-child(7)  { animation-delay: .14s; }
.product-card:nth-child(8)  { animation-delay: .16s; }

.nav-btn { transition: color .15s, background .15s; }
.tag-chip { transition: all .15s; }
.btn-primary { transition: transform .1s, background .15s; }
.btn-ghost { transition: border-color .15s; }
.btn-outline { transition: border-color .15s; }
.chat-item { transition: background .12s; }

@media (max-width: 720px) {
  /* ── 顶栏：单行，导航从最左开始，logo 隐藏节省空间 ── */
  .app { padding-top: 48px; }
  .topbar { height: 48px; padding: 0 10px; gap: 0; flex-wrap: nowrap; }
  .logo-row { display: none; }
  .nav {
    flex: 1; display: flex; flex-wrap: nowrap; overflow-x: auto;
    gap: 0; padding: 0; margin-right: 6px; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav-btn { flex-shrink: 0; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
  #topbar-wallet { gap: 6px; flex-shrink: 0; }
  #topbar-guest  { flex-shrink: 0; }
  .token-badge { font-size: 12px; padding: 4px 8px; }
  .me-btn { padding: 3px 8px 3px 3px; }
  .me-btn span:last-child { display: none; }
  /* 登录按钮在手机上紧凑 */
  #topbar-guest .btn-primary { padding: 7px 12px; font-size: 12px; letter-spacing: 0.5px; }

  /* ── 页面内容全部左对齐 ── */
  .view { padding: 14px 12px; text-align: left; }
  .banner { padding: 16px 14px; text-align: left; }
  .banner h1 { font-size: 20px; }
  .banner p { font-size: 13px; }

  /* 商品网格 */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-card { padding: 10px; }
  .product-card .thumb { font-size: 32px; }
  .product-card .title { font-size: 13px; min-height: 36px; }
  .product-card .price { font-size: 14px; }

  /* 聊天 */
  .chats-layout { grid-template-columns: 72px 1fr; }
  .chat-item .info .last, .chat-item .info .prod { display: none; }

  /* 表单 */
  .grid-2 { grid-template-columns: 1fr; }

  /* 商品详情弹窗 */
  .pd-head { flex-direction: column; }
  .pd-thumb { width: 100%; height: 180px; }
  .modal-box { padding: 18px 14px; }
  .modal-box.wide { width: 100%; margin: 0; border-radius: 16px 16px 0 0; align-self: flex-end; }
  .modal { align-items: flex-end; padding: 0; }

  /* ── 拼单板手机端 ── */
  .view.pinboard { padding: 12px 10px; }
  /* 标题行：拼单板 + 参与按钮紧靠左 */
  .pb-topbar {
    flex-direction: row; align-items: center;
    justify-content: flex-start; gap: 12px;
    flex-wrap: nowrap; margin-bottom: 14px;
  }
  .pb-topbar > div { flex: 0 0 auto; }
  .pb-topbar h1 { font-size: 18px; margin: 0; }
  .pb-topbar .sub { font-size: 11px; margin: 2px 0 0; }
  .pb-topbar .btn-primary { flex-shrink: 0; padding: 7px 12px; font-size: 12px; letter-spacing: 0; white-space: nowrap; }
  /* 项目 tab 条：更紧凑 */
  .pb-items-tabs { gap: 6px; margin-bottom: 10px; }
  .pb-item-tab { padding: 5px 12px; font-size: 12px; }
  /* 档位条 */
  .pb-slot-tabs { gap: 5px; margin-bottom: 12px; }
  .pb-slot-tab { padding: 4px 10px; font-size: 12px; }
  /* 条目卡片：单列 */
  .pb-cards-grid { grid-template-columns: 1fr; gap: 8px; }
  .pb-entry-card { padding: 10px 12px; }
  .pb-desc-text { font-size: 12px; }
}

/* ========== 拼单板 ========== */
.view.pinboard { padding: 20px; max-width: 960px; margin: 0 auto; }

.pb-topbar {
  display: flex; align-items: center; justify-content: flex-start;
  margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}

/* 项目 Tab 条 */
.pb-items-tabs {
  display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px;
  padding-bottom: 4px; margin-bottom: 16px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.pb-items-tabs::-webkit-scrollbar { height: 4px; }
.pb-items-tabs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.pb-item-tab {
  flex-shrink: 0;
  background: var(--bg-3); color: var(--muted);
  border: 1px solid var(--border); border-radius: 9999px;
  padding: 6px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s; display: flex; align-items: center; gap: 6px;
}
.pb-item-tab:hover { border-color: var(--text); color: var(--text); }
.pb-item-tab.active { background: var(--primary); color: #000; border-color: var(--primary); }
.pb-item-tab.active .pb-badge { background: rgba(0,0,0,.2); color: #000; }

/* 项目描述 */
.pb-item-desc { margin-bottom: 12px; }
.pb-desc-text { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* 档位 Tab 条 */
.pb-slot-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
}
.pb-slot-tab {
  background: var(--bg-2); color: var(--muted);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 5px 14px; font-size: 13px; cursor: pointer;
  transition: all .15s; display: flex; align-items: center; gap: 6px;
}
.pb-slot-tab:hover { border-color: var(--text); color: var(--text); }
.pb-slot-tab.active { background: var(--bg-3); border-color: var(--primary); color: var(--primary); font-weight: 700; }

/* 角标 */
.pb-badge {
  background: var(--bg-3); color: var(--muted);
  border-radius: 9999px; padding: 1px 7px;
  font-size: 11px; font-weight: 700; min-width: 20px; text-align: center;
}

/* 分组标题 */
.pb-group { margin-bottom: 20px; }
.pb-group-title {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 0 10px;
  border-bottom: 1px solid var(--border); margin-bottom: 10px;
}
.pb-type-buy   { color: var(--info); }
.pb-type-sell  { color: var(--primary); }
.pb-type-trade { color: var(--warning); }

/* 卡片网格 */
.pb-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

/* 单条卡片 */
.pb-entry-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s;
}
.pb-entry-card:hover { border-color: #555; }

.pb-entry-head {
  display: flex; align-items: center; gap: 6px;
}
.pb-entry-time { font-size: 11px; color: var(--muted); margin-left: auto; }

.pb-type-badge {
  font-size: 11px; font-weight: 700; padding: 2px 9px;
  border-radius: 9999px; white-space: nowrap;
}
.pb-type-badge.pb-type-buy   { background: rgba(83,157,245,.15); color: var(--info); }
.pb-type-badge.pb-type-sell  { background: var(--primary-soft);   color: var(--primary); }
.pb-type-badge.pb-type-trade { background: rgba(255,164,43,.12);  color: var(--warning); }

.pb-entry-author {
  display: flex; align-items: center; gap: 7px;
}
.pb-author-name { font-size: 13px; font-weight: 600; color: var(--text); }

.pb-wechat-row {
  font-size: 13px; color: var(--muted);
  background: var(--bg-3); padding: 5px 10px; border-radius: 5px;
}
.pb-wechat-val { color: var(--primary); font-family: monospace; font-size: 13px; }

.pb-note {
  font-size: 12px; color: var(--muted); line-height: 1.5;
  padding-top: 2px; border-top: 1px solid var(--border);
}

.pb-del-btn {
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); border-radius: 4px; padding: 2px 8px;
  font-size: 11px; cursor: pointer; margin-left: 4px;
}
.pb-del-btn:hover { border-color: var(--danger); color: var(--danger); }

/* 发布弹窗：类型选择按钮 */
.pbc-type-row { display: flex; gap: 8px; margin-bottom: 14px; }
.pbc-type-btn {
  flex: 1; padding: 8px 0; border-radius: 6px; font-size: 13px; font-weight: 700;
  background: var(--bg-3); color: var(--muted);
  border: 1px solid var(--border); cursor: pointer; transition: all .15s;
}
.pbc-type-btn:hover { border-color: var(--text); color: var(--text); }
.pbc-type-btn.active[data-val="buy"]   { background: rgba(83,157,245,.18); border-color: var(--info);    color: var(--info); }
.pbc-type-btn.active[data-val="sell"]  { background: var(--primary-soft);   border-color: var(--primary); color: var(--primary); }
.pbc-type-btn.active[data-val="trade"] { background: rgba(255,164,43,.15);  border-color: var(--warning); color: var(--warning); }
