html, body { height: 100%; }

body {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(72, 149, 220, 0.10), transparent 60%),
    radial-gradient(900px 400px at -10% 110%, rgba(120, 180, 235, 0.08), transparent 55%),
    var(--bg);
}

.h5-shell {
  /* 移动端锁定为视口高度：页面在 .h5-view 内部滚动，底部导航始终固定可见。
     100dvh 随浏览器地址栏伸缩自适应，旧浏览器回退 100vh。 */
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

.h5-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
}

@media (min-width: 520px) {
  body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 0 40px;
  }
  .h5-shell {
    width: 394px;
    height: 812px;
    min-height: 0;
    background: #0d1310;
    border-radius: 52px;
    padding: 11px;
    box-shadow: var(--sh-lg), 0 0 0 2px rgba(255, 255, 255, 0.65) inset, 0 0 0 3px #0d1310;
  }
  .h5-inner {
    border-radius: 42px;
    overflow: hidden;
  }
}

.navbar, .h5-nav-bar {
  height: 48px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(135deg, var(--g700), var(--g600));
  color: #fff;
  box-shadow: 0 2px 10px rgba(23, 34, 46, 0.25);
}
.navbar.plain, .h5-nav-bar.plain {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.navbar .nback, .navbar .nright, .h5-nav-bar .back, .h5-nav-bar .right {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  font-size: 13px;
}
.navbar .nback:hover, .navbar .nright:hover { background: rgba(255, 255, 255, 0.14); }
.navbar.plain .nback:hover, .navbar.plain .nright:hover { background: var(--g50); }
.navbar .ntitle, .h5-nav-bar .title { font-size: 16px; font-weight: 650; letter-spacing: 0.3px; }
.navbar .nright, .h5-nav-bar .right { min-width: 32px; width: auto; padding: 0 4px; }

.h5-view { flex: 1; overflow-y: auto; position: relative; }
.h5-view::-webkit-scrollbar { width: 0; }

.page { padding: 16px 16px 28px; min-height: 100%; }
/* 首页内容区：压缩顶部内边距，使公告栏与上方搜索栏、下方卡片的间距一致（12px） */
.page.home-page {
  padding-top: 6px;
  /* 首页撑满内容区：剩余高度自动交给交易信息卡片，消除底部大面积留白；
     空间不足（小屏/搜索长列表）时各子项不收缩，页面照常内部滚动 */
  display: flex;
  flex-direction: column;
}
.page.home-page > * { flex: none; }
.page.home-page > .quote-card {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.quote-card > * { flex: none; }
.quote-card > .q-tview,
.quote-card > .mosaic { flex: 1 0 auto; }
.quote-card .mosaic { display: flex; flex-direction: column; }
.quote-card .mosaic .mosaic-target {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.quote-card .mosaic .q-tview { flex: 1 0 auto; }

.notice-strip, .h5-footer-scroll {
  flex: none;
  background: linear-gradient(90deg, #fdf8e9, var(--gold-bg), #fdf8e9);
  border-top: 1px solid #eedfb2;
  overflow: hidden;
  white-space: nowrap;
  padding: 5px 0;
}
.notice-strip .track, .h5-footer-scroll span {
  display: inline-block;
  font-size: 10.5px;
  color: #8a6d10;
  padding-left: 100%;
  animation: marquee 22s linear infinite;
}
@keyframes marquee { to { transform: translateX(-100%); } }

.mail-strip, .h5-footer-email {
  flex: none;
  text-align: center;
  font-size: 10.5px;
  color: var(--ink-4);
  padding: 7px;
  background: #fff;
  border-top: 1px solid var(--line-2);
  letter-spacing: 0.3px;
}

.tabbar, .h5-bottom-bar {
  flex: none;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  padding: 6px 8px calc(14px + env(safe-area-inset-bottom));
  /* 双保险：即使旧浏览器走 100vh 兜底导致页面整体略高，底部导航也始终吸附在可视区底部 */
  position: sticky;
  bottom: 0;
  z-index: 40;
}
.tab, .h5-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--ink-3);
  cursor: pointer;
  transition: 0.15s;
  padding-top: 5px;
  position: relative;
}
.tab svg, .h5-tab svg { width: 23px; height: 23px; }
.tab.active, .h5-tab.active { color: var(--g600); font-weight: 700; }
.tab .dot, .h5-tab .dot {
  position: absolute;
  top: 2px;
  right: 50%;
  margin-right: -22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid #fff;
}

.login-wrap {
  min-height: 100%;
  background: linear-gradient(165deg, var(--g700) 0%, var(--g600) 46%, var(--bg) 46.2%);
}
.login-hero {
  padding: 64px 28px 46px;
  text-align: center;
  color: #fff;
}
.login-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 19px;
  background: linear-gradient(135deg, var(--gold), #a8831a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}
.login-hero h1 { font-size: 26px; font-weight: 800; letter-spacing: 2px; }
.login-hero p { font-size: 12px; opacity: 0.75; margin-top: 6px; letter-spacing: 1px; }
.login-card {
  background: #fff;
  border-radius: 26px 26px 0 0;
  margin-top: -26px;
  padding: 26px 22px 18px;
  box-shadow: 0 -8px 30px rgba(23, 34, 46, 0.12);
  min-height: calc(100% - 210px);
}

.reg-logo { text-align: center; margin-bottom: 26px; }
.reg-logo .row { display: inline-flex; align-items: center; gap: 8px; }
.reg-logo .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), #a8831a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.reg-logo .name { font-size: 18px; font-weight: 800; color: var(--g700); letter-spacing: 1px; }

.filter-sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(232, 243, 252, 0.96);
  backdrop-filter: blur(8px);
  padding: 10px 16px 4px;
}

.search-bar { padding: 8px 16px 0; }
.search-bar .input { height: 40px; }

.post-item { cursor: pointer; }
.post-item {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 12px 13px;
  margin-bottom: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.post-item:active { transform: scale(0.985); box-shadow: var(--sh-sm); }
.post-item.pinned {
  border-left: 3.5px solid var(--gold);
  background: linear-gradient(150deg, #fffdf4, #fff);
}
.pi-top { display: flex; align-items: center; gap: 7px; }
.ptag {
  flex: none;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}
.ptag.sell { background: #fdecec; color: var(--red); }
.ptag.buy { background: var(--sg100); color: var(--sg600); }
.ptag.mixed { background: #fbf3dc; color: #a8780e; }
.ptag.vip { background: linear-gradient(135deg, var(--gold-l), var(--gold)); color: #fff; }
.pi-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pi-body {
  margin-top: 7px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pi-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 11px;
  color: var(--ink-4);
  flex-wrap: wrap;
}
.pi-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--line-2);
  padding: 2.5px 8px;
  border-radius: 99px;
}
.pi-price {
  margin-left: auto;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pi-price.up { color: var(--red); }
.pi-price.down { color: var(--sg600); }
.plaza-panel { margin-top: 12px; }
.post-thumb { width: 54px; height: 54px; }
.post-thumb-lg { width: 98px; height: 98px; }
.post-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
}
.lock-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--ink-4);
  background: var(--line-2);
  padding: 3px 8px;
  border-radius: 99px;
}

.detail-foot, .sticky-foot {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px 16px 16px;
  display: flex;
  gap: 10px;
  z-index: 35;
}

.overlay, .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 34, 46, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 24px;
}
.modal {
  background: #fff;
  border-radius: 22px;
  width: 100%;
  max-width: 310px;
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

.profile-hero {
  background: linear-gradient(170deg, var(--g700) 0%, var(--g600) 200px, var(--bg) 200px);
}
.profile-head { padding: 22px 18px 0; color: #fff; }
.profile-av {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}
.chip-light {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
}
.chip-gold {
  font-size: 10px;
  background: linear-gradient(135deg, var(--gold-l), var(--gold));
  color: #4a3a05;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 700;
}
.member-card {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.menu-row:last-child { border-bottom: none; }
.menu-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.menu-ico svg { width: 16px; height: 16px; }

.stepper { display: flex; align-items: center; gap: 0; margin: 2px 4px 18px; }
.step { flex: 1; text-align: center; position: relative; }
.step .n {
  width: 26px;
  height: 26px;
  margin: 0 auto 5px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--ink-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.step.on .n {
  background: var(--g500);
  color: #fff;
  border: none;
  box-shadow: 0 3px 8px rgba(75, 166, 236, 0.3);
}
.step .t { font-size: 10.5px; color: var(--ink-3); }
.step.on .t { font-weight: 700; color: var(--g600); }
.step .line {
  position: absolute;
  top: 13px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: var(--line);
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-title .mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--gold), #a8831a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== Home / quotes / calc / login sheet ===== */
.icon-input {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  height: 46px;
  background: #fff;
  transition: 0.18s;
}
.icon-input:focus-within {
  border-color: var(--g400);
  box-shadow: 0 0 0 3.5px rgba(75, 166, 236, 0.1);
}
.icon-input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  min-width: 0;
}
.pwd-eye {
  cursor: pointer;
  color: var(--ink-3);
  display: flex;
  flex: none;
}

.home-filter {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(232, 243, 252, 0.96);
  backdrop-filter: blur(8px);
  padding: 10px 14px 6px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.home-filter .home-fs-drop {
  position: absolute;
  left: 14px;
  right: 14px;
  top: calc(100% - 2px);
  z-index: 65;
}
.home-search.fs-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.region-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  flex: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  font-family: inherit;
}
.home-search {
  flex: 1;
  display: flex;
  align-items: center;
  height: 38px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  padding: 0 14px;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  min-width: 0;
}
.home-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: inherit;
  background: transparent;
  min-width: 0;
  color: var(--ink);
}
.home-search-btn {
  height: 38px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--g500), var(--g700));
  color: #fff;
  border: none;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  flex: none;
  box-shadow: 0 4px 10px rgba(63, 151, 222, 0.25);
  cursor: pointer;
  font-family: inherit;
}
.nav-plus {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* 首页右上角铃铛：联系申请通知入口 */
.nav-bell {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bell-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 4px;
  box-shadow: var(--sh-sm);
}
.qhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 6px;
  font-size: 13px;
}
.qsub {
  font-size: 10.5px;
  color: var(--ink-4);
  font-weight: 500;
}
.qgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
  min-width: 0;
}
.quote-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 7px 0;
  font-size: 12.5px;
  line-height: 1.2;
  border-bottom: 1px solid var(--line-2);
}
.quote-row:last-child,
.quote-row:nth-last-child(2) { border-bottom: none; }
.quote-row .qn {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink-2);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quote-row .qp-wrap {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.quote-row .qp {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1;
  color: var(--red);
}
.quote-row .qp.down { color: var(--sg600); }
.quote-row .qp.flat { color: var(--ink-2); }
.quote-row .qarr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 11px;
  width: 11px;
  height: 12px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-0.5px);
}
.quote-row .qarr.up { color: var(--red); }
.quote-row .qarr.down { color: var(--sg600); }
.quote-row .qarr.flat { color: transparent; }
.quote-row-go {
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.quote-row-go:active { background: #e5f3fd; }

.qd-hero {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--sh-sm);
}
.qd-hero-top {
  position: relative;
  min-height: 168px;
  background: linear-gradient(145deg, #e5f3fd, #d4e9fa);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.qd-hero-visual {
  width: 92px;
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(160deg, #fff, #e5f3fd);
  border: 1px solid #dce8f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--g700);
  box-shadow: var(--sh-md);
}
.qd-poster-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(75, 166, 236, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  font-family: inherit;
}
.qd-qr-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px dashed var(--line);
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.5;
}
.qd-qr-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: repeating-linear-gradient(45deg, #1f2a33 0 3px, #fff 3px 6px);
  flex: none;
  opacity: 0.85;
}
.qd-info {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--sh-sm);
}
.qd-info-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.qd-info-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.45;
  flex: 1;
}
.qd-follow-btn {
  border: 1px solid var(--g600);
  background: #fff;
  color: var(--g700);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
  flex: none;
  font-family: inherit;
}
.qd-price-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 11px;
  color: var(--ink-3);
}
.qd-price-row b {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 700;
}
.qd-price-row .retail b {
  color: var(--red);
  font-size: 16px;
  font-weight: 800;
}
.qd-panel {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--sh-sm);
}
.qd-sec-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}
.qd-sec-title::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--g400), var(--g700));
}
.qd-periods {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.qd-period {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  font-family: inherit;
}
.qd-period.on {
  background: var(--g700);
  border-color: var(--g700);
  color: #fff;
}
.qd-chart-wrap {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: linear-gradient(180deg, #f3f9ff, #fff);
  padding: 8px 4px 4px;
  min-height: 180px;
}
.qd-chart-svg { width: 100%; height: 168px; display: block; }
.qd-chart-empty {
  padding: 48px 12px;
  text-align: center;
  color: var(--ink-4);
  font-size: 12px;
}
.qd-table-head,
.qd-table-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.qd-table-head {
  color: var(--ink-4);
  font-weight: 600;
  padding: 0 4px 8px;
  border-bottom: 1px solid var(--line-2);
}
.qd-table-row {
  padding: 10px 4px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
}
.qd-table-row:last-child { border-bottom: none; }
.qd-day-price { color: var(--g700); font-weight: 800; }
.qd-change { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.qd-change.up { color: var(--red); }
.qd-change.down { color: var(--sg600); }
.qd-change.flat { color: var(--ink-4); }

.trend { font-weight: 800; vertical-align: middle; }
.trend.up { color: var(--red); }
.trend.down { color: var(--sg600); }
.trend.flat { color: var(--ink-4); }

.region-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--line-2);
  padding: 2.5px 8px;
  border-radius: 99px;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
}

.secbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 2px 8px;
}
.sec-t {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.sec-t::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 13px;
  background: linear-gradient(180deg, var(--g400), var(--g700));
  border-radius: 2px;
  margin-right: 7px;
  vertical-align: -2px;
}
.sec-r {
  font-size: 11px;
  color: var(--ink-4);
  cursor: pointer;
}

.funcs {
  /* 紧凑三列磁贴：一行放三个功能入口，为首页交易信息腾出空间 */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.func {
  cursor: pointer;
  transition: transform 0.2s;
}
.func:active { transform: scale(0.985); }
.fb {
  position: relative;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.fbshade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 34, 46, 0.3) 0%, rgba(23, 34, 46, 0.58) 100%);
}
.fb-c {
  position: absolute;
  inset: 0;
  padding: 8px 6px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 1;
}
.fb-eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 700;
  opacity: 0.85;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-title {
  font-size: clamp(12.5px, 3.8vw, 14.5px);
  font-weight: 800;
  line-height: 1.2;
  margin-top: 3px;
  letter-spacing: 0.5px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-sub {
  font-size: clamp(8.5px, 2.5vw, 9.5px);
  opacity: 0.8;
  margin-top: 2px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-plaza {
  background:
    linear-gradient(180deg, rgba(23, 34, 46, 0.35) 0%, rgba(23, 34, 46, 0.62) 100%),
    linear-gradient(135deg, #328bd2, #2a7ec7);
}
.fb-edu {
  background:
    linear-gradient(180deg, rgba(40, 28, 10, 0.35) 0%, rgba(40, 28, 10, 0.62) 100%),
    linear-gradient(135deg, #b8892a, #6e5012);
}
.fb-guide {
  background:
    linear-gradient(180deg, rgba(40, 28, 10, 0.35) 0%, rgba(40, 28, 10, 0.62) 100%),
    linear-gradient(135deg, #c49a3c, #7a5a18);
}
.fb-cs {
  background:
    linear-gradient(180deg, rgba(12, 28, 48, 0.35) 0%, rgba(12, 28, 48, 0.62) 100%),
    linear-gradient(135deg, #2a7ec7, #1f609c);
}

.feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.feat-card {
  position: relative;
  height: 88px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sh-md);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.feat-card:active { transform: scale(0.985); }
.feat-card.plaza {
  background:
    linear-gradient(180deg, rgba(23, 34, 46, 0.35) 0%, rgba(23, 34, 46, 0.62) 100%),
    linear-gradient(135deg, #328bd2, #2a7ec7);
}
.feat-card.edu {
  background:
    linear-gradient(180deg, rgba(40, 28, 10, 0.35) 0%, rgba(40, 28, 10, 0.62) 100%),
    linear-gradient(135deg, #b8892a, #6e5012);
}
.feat-card.cs {
  background:
    linear-gradient(180deg, rgba(12, 28, 48, 0.35) 0%, rgba(12, 28, 48, 0.62) 100%),
    linear-gradient(135deg, #2a7ec7, #1f609c);
}
.feat-eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 700;
  opacity: 0.85;
}
.feat-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 2px;
  letter-spacing: 1.5px;
}
.feat-sub {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 3px;
}

.mosaic { position: relative; }
.mosaic-target {
  filter: blur(9px) saturate(0.75);
  pointer-events: none;
  user-select: none;
}
.mosaic-cover {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
}
.mask-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 29px;
  padding: 0 15px;
  background: rgba(23, 34, 46, 0.87);
  color: #fff;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.25);
}

.sheet-mask {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: rgba(8, 18, 12, 0.52);
  display: none;
  align-items: flex-end;
}
.sheet-mask.show { display: flex; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } }
.lsheet {
  width: 100%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 8px 22px 26px;
  animation: sheetUp 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.16);
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.ls-grip {
  width: 38px;
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  margin: 8px auto 18px;
}
.ls-icon {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--g100), #d6e9f9);
  color: var(--g700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 6px 16px rgba(75, 166, 236, 0.15);
}
.ls-title {
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.ls-desc {
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  margin: 9px 0 20px;
  line-height: 1.7;
}
.ls-close {
  text-align: center;
  margin-top: 15px;
  font-size: 12.5px;
  color: var(--ink-4);
  cursor: pointer;
}
.region-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.region-opt {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
}
.region-opt.on {
  background: var(--g100);
  color: var(--g700);
  border-color: var(--g400);
}

.cat-tabs {
  display: flex;
  background: var(--line-2);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
  margin-bottom: 12px;
}
.cat-tab {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  font-size: 13px;
  color: var(--ink-3);
  border-radius: 9px;
  cursor: pointer;
  transition: 0.18s;
  font-weight: 600;
}
.cat-tab.on {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--sh-sm);
}

.plaza-postbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px dashed #c5d8ec;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.plaza-postbar .pplabel {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
  flex: none;
}
.plaza-postbar .ppbtns {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}
.postbar-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 7px 12px;
  border-radius: 9px;
  font-family: inherit;
}
.postbar-btn.sell {
  background: linear-gradient(135deg, #fff, #fdecec);
  color: var(--red);
  border: 1px solid #f5c8c6;
}
.postbar-btn.buy {
  background: linear-gradient(135deg, #fff, var(--sg100));
  color: var(--sg700);
  border: 1px solid var(--sg300);
}
.postbar-btn.mixed {
  background: linear-gradient(135deg, #fff, #faf3e0);
  color: #a8780e;
  border: 1px solid #e8d49a;
  box-shadow: 0 2px 6px rgba(168, 120, 14, 0.08);
}
.postbar-btn .plus {
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}
.plaza-end {
  text-align: center;
  color: var(--ink-4);
  font-size: 11.5px;
  padding: 14px 0 2px;
}

.pf-mode .pf-tit {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 2px 0 14px;
}
.pf-mode .pf-tit .pf-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  display: inline-block;
}
.pf-tit-out { color: var(--red); }
.pf-tit-out .pf-dot { background: var(--red); }
.pf-tit-in { color: var(--sg600); }
.pf-tit-in .pf-dot { background: var(--sg600); }
.pf-buy-group { display: none; }
.pf-mode.mode-mixed .pf-buy-group {
  display: block;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1.5px dashed var(--line);
}
.pf-mode.mode-mixed .pf-sell-group { padding-bottom: 4px; }
.pf-mode.mode-sell .pf-sell-group .flabel .pfix { color: var(--red); }
.pf-mode.mode-buy .pf-sell-group .flabel .pfix { color: var(--g600); }
.pf-mode.mode-mixed .pf-sell-group .flabel .pfix { color: var(--red); }
.pf-mode.mode-mixed .pf-buy-group .flabel .pfix { color: var(--g600); }

.post-cat-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(90deg, #fffaf0, #fff5d9);
  border-left: 3px solid var(--gold);
  padding: 8px 12px;
  font-size: 12px;
  color: #7d5b0d;
  font-weight: 700;
  border-radius: 0 9px 9px 0;
  margin: 10px 16px 0;
}
.post-cat-badge .cb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.post-cat-badge .cb-type { color: var(--red); }
.post-cat-badge.cb-buy {
  background: linear-gradient(90deg, var(--sg50), var(--sg100));
  border-left-color: var(--sg600);
  color: var(--sg700);
}
.post-cat-badge.cb-buy .cb-type { color: var(--sg700); }
.post-cat-badge.cb-buy .cb-dot { background: var(--sg600); }
.post-cat-badge.cb-mixed .cb-type { color: #a8780e; }
.post-cat-badge.cb-mixed {
  background: linear-gradient(90deg, #fdfaf0, #faf3dc);
  border-left-color: #d9b44a;
  color: #7a5808;
}
.post-cat-badge.cb-mixed .cb-dot { background: #d9b44a; }

.fs-box { position: relative; }
.fs-box .input { width: 100%; }
.fs-drop {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(31, 42, 36, 0.12);
  z-index: 60;
  max-height: 224px;
  overflow-y: auto;
  display: none;
}
.fs-head {
  padding: 8px 12px 6px;
  font-size: 10.5px;
  color: var(--ink-4);
  font-weight: 600;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg, #e8f3fc);
  border-radius: 12px 12px 0 0;
}
.fs-item {
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.fs-item-name { flex: 1; min-width: 0; }
.fs-item-price {
  flex: none;
  font-size: 11.5px;
  color: var(--red);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.fs-item:last-of-type { border-bottom: none; }
.fs-item:hover, .fs-item:active { background: #eef5fc; }
.fs-item b { color: var(--primary); font-weight: 800; }
.fs-empty {
  padding: 12px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
}
.fs-empty b { color: var(--ink); font-weight: 700; }
.fs-note {
  padding: 7px 12px;
  font-size: 10.5px;
  color: var(--ink-4);
  text-align: center;
  border-top: 1px dashed var(--line-2);
}

.qt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 2px 10px;
}
.qt-date {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: 0.2px;
}
.qt-gen {
  height: 30px;
  padding: 0 14px;
  border-radius: 99px;
  background: var(--g700);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.qt-sum {
  display: flex;
  justify-content: space-between;
  margin: 0 2px 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.qt-sum .v {
  font-weight: 750;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.qt-sum .v.a {
  font-size: 15px;
  color: var(--red);
}
.qt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 40, 30, 0.06);
}
.qt-table thead th {
  background: var(--g700);
  color: #fff;
  font-weight: 650;
  padding: 8px 4px;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.qt-table tbody td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.qt-table tbody tr:last-child td { border-bottom: none; }
.qt-table tbody td.qt-no {
  color: var(--ink-3);
  font-weight: 600;
  width: 24px;
}
.qt-table tbody td.qt-name {
  text-align: left;
  padding-left: 8px;
  font-weight: 600;
  cursor: pointer;
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qt-table tbody td.qt-name.placeholder {
  color: #bfc8c2;
  font-weight: 500;
  font-style: italic;
}
.qt-table tbody td.qt-name.placeholder::before {
  content: "＋ 选择产品";
  color: var(--g600);
  font-weight: 700;
  font-style: normal;
}
.qt-table tbody td.qt-qty { width: 46px; }
.qt-table tbody td.qt-qty input {
  width: 36px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  background: #f7fafd;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  outline: none;
  font-family: inherit;
}
.qt-table tbody td.qt-price { width: 62px; color: var(--ink-2); }
.qt-table tbody td.qt-total { width: 62px; font-weight: 700; color: var(--red); }
.qt-table tbody td.qt-del { width: 30px; }
.qt-table tbody td.qt-del .x {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 14px;
}
.qt-add {
  width: 100%;
  height: 38px;
  margin-top: 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--g600);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
}
.qt-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 40, 30, 0.42);
  backdrop-filter: blur(2px);
  z-index: 50;
  display: none;
}
.qt-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 74%;
  background: #fff;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
  z-index: 51;
  display: none;
  flex-direction: column;
  transform: translateY(8%);
  opacity: 0;
  transition: 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.qt-sheet.show {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.qt-sheet-hd {
  padding: 14px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qt-sheet-hd .qs-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.qt-sheet-hd .qs-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-3);
  font-size: 18px;
}
.qt-sheet-search { padding: 0 16px 8px; }
.qt-sheet-search .in {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #f3f8fd;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}
.qt-sheet-list {
  overflow-y: auto;
  flex: 1;
  padding: 6px 0 14px;
}
.qt-pitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  border-bottom: 1px solid #eef5fb;
  cursor: pointer;
}
.qt-pitem .pl {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.qt-pitem .pn {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.qt-pitem .pp {
  font-size: 12px;
  color: var(--ink-3);
}
.qt-pitem .pp b {
  color: var(--red);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.qt-pitem .pick {
  height: 28px;
  padding: 0 12px;
  border-radius: 99px;
  background: var(--g700);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  flex: none;
  font-family: inherit;
}
.qt-empty {
  text-align: center;
  padding: 30px 0;
  color: var(--ink-3);
  font-size: 13px;
}

/* Platform guide */
.guide-banner {
  position: relative;
  height: 148px;
  background: center/cover no-repeat;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
}
.guide-banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 34, 46, 0.25) 0%, rgba(23, 34, 46, 0.72) 100%);
}
.guide-banner-c {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 0 20px;
}
.guide-banner-eyebrow {
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 700;
  opacity: 0.85;
}
.guide-banner-title {
  font-size: 26px;
  font-weight: 800;
  margin-top: 4px;
  letter-spacing: 1.5px;
}
.guide-banner-sub {
  font-size: 12px;
  opacity: 0.82;
  margin-top: 4px;
}
.guide-page {
  padding-top: 14px;
}
.guide-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--sh-sm);
  margin-bottom: 12px;
  cursor: pointer;
}
.guide-card-cover {
  height: 120px;
  background: center/cover no-repeat;
}
.guide-card-body {
  padding: 14px 16px 16px;
}
.guide-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.guide-card-summary {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 6px;
  line-height: 1.55;
}
.guide-card-link {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--g600);
}
.guide-detail-page {
  padding-top: 8px;
  padding-bottom: 28px;
}
.guide-detail-cover {
  height: 160px;
  border-radius: 14px;
  background: center/cover no-repeat;
  margin-bottom: 14px;
}
.guide-detail-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 8px;
}
.guide-detail-summary {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 0 0 16px;
}
.guide-rich {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.guide-rich h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 18px 0 8px;
}
.guide-rich p {
  margin: 0 0 10px;
}
.guide-rich ul,
.guide-rich ol {
  margin: 0 0 12px 18px;
  padding: 0;
}
.guide-rich li {
  margin-bottom: 6px;
}
.guide-rich img {
  max-width: 100%;
  border-radius: 10px;
  margin: 10px 0;
  display: block;
}
.guide-rich video {
  width: 100%;
  border-radius: 10px;
  margin: 10px 0;
  background: #000;
}
.guide-rich strong {
  color: var(--ink);
  font-weight: 700;
}
.guide-jump-btn {
  display: block;
  width: 100%;
  margin-top: 22px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: var(--g700);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.empty-box {
  text-align: center;
  padding: 40px 16px;
  color: var(--ink-3);
  font-size: 14px;
}

/* Customer support */
.cs-page { padding-bottom: 24px; }
.cs-hint {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--blue-bg);
  border-radius: 10px;
}
.cs-thread {
  min-height: 200px;
  max-height: 50vh;
  overflow: auto;
  padding: 8px 2px 16px;
}
.cs-msg { margin-bottom: 14px; max-width: 86%; }
.cs-msg.user { margin-right: auto; }
.cs-msg.staff { margin-left: auto; text-align: right; }
.cs-msg-meta { font-size: 10.5px; color: var(--ink-4); margin-bottom: 4px; }
.cs-msg-body {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}
.cs-msg.user .cs-msg-body { background: #fff; box-shadow: var(--sh-sm); }
.cs-msg.staff .cs-msg-body { background: var(--g700); color: #fff; }
.cs-msg-new .cs-msg-body { animation: cs-pop 0.45s ease; }
@keyframes cs-pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.cs-compose {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.cs-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.cs-tool-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.cs-tool-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.cs-tool-btn.recording {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}
.cs-msg-body.cs-msg-media {
  padding: 6px;
  background: transparent !important;
  box-shadow: none !important;
  max-width: 100%;
}
.cs-msg.user .cs-msg-body.cs-msg-media,
.cs-msg.staff .cs-msg-body.cs-msg-media {
  background: transparent !important;
}
.cs-img {
  display: block;
  max-width: min(220px, 70vw);
  max-height: 260px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--sh-sm);
  background: #fff;
}
.cs-caption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
  text-align: left;
  white-space: pre-wrap;
}
.cs-voice {
  min-width: 180px;
}
.cs-audio {
  width: min(220px, 70vw);
  height: 36px;
  vertical-align: middle;
}

/* ========== 首页交易信息滚动（近一周帖子） ========== */
.page-wm-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 34px;
  padding: 24px 0;
  transform: rotate(-22deg) scale(1.35);
}
.page-wm-overlay .wm-line {
  display: flex;
  justify-content: space-around;
  white-space: nowrap;
}
.page-wm-overlay .wm-line span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(63, 151, 222, 0.09);
  letter-spacing: 1px;
}
.detail-wm-host { overflow: hidden; }

/* ========== 广告轮播 ========== */
.ad-carousel {
  position: relative;
  margin: 10px 12px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #e9f2fb;
  box-shadow: var(--sh-sm);
  touch-action: pan-y; /* 仅允许纵向滚动，横向位移交给轮播逻辑 */
  user-select: none;
}
.ad-track {
  display: flex;
  transition: transform 0.45s ease;
}
.ad-slide {
  width: 100%;
  flex: none;
  object-fit: cover;
  aspect-ratio: 2.8 / 1;
  display: block;
  pointer-events: none; /* 防止长按保存/拖拽图片，避免干扰滑动 */
  -webkit-user-drag: none;
}
.ad-dots {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  gap: 4px;
}
.ad-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
  transition: all 0.25s;
}
.ad-dot.on {
  width: 14px;
  background: #fff;
}

/* ========== 公告栏跑马灯 ========== */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fffdf4, #fffefa);
  border: 1px solid #f0e6c8;
  border-radius: 12px;
  padding: 9px 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.notice-bar .n-ico {
  color: #a8780e;
  display: flex;
  flex: none;
}
.n-viewport {
  flex: 1;
  height: 18px;
  overflow: hidden;
}
.n-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: n-marquee 18s linear infinite;
}
.n-track .n-group {
  display: inline-flex;
  align-items: center;
}
.n-item {
  font-size: 12px;
  color: #8a6d10;
  font-weight: 600;
  white-space: nowrap;
}
.n-sep {
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d9c98a;
  margin: 0 16px;
}
.notice-bar:hover .n-track {
  animation-play-state: paused;
}
@keyframes n-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========== 交易信息自动滚动 ========== */
.q-tview {
  /* 至少可见 5 行（行高约 35px）；首页 flex 布局下会自动长高吃掉剩余空间 */
  height: 175px;
  overflow: hidden;
}
.q-ttrack {
  display: flex;
  flex-direction: column;
  will-change: transform;
  animation: q-tick 16s linear infinite;
}
.q-tgroup {
  display: flex;
  flex-direction: column;
}
.q-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px dashed var(--line-2);
  font-size: 12.5px;
}
.q-row[role="button"] { cursor: pointer; }
.q-row:last-child { border-bottom: none; }
.q-l {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.q-l .ptag { flex: none; transform: scale(0.9); transform-origin: left center; }
.q-name {
  font-weight: 600;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.q-region { flex: none; font-size: 10.5px; color: var(--ink-4); }
.q-r { flex: none; display: flex; align-items: baseline; gap: 8px; }
.q-price { font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.q-price.buy { color: var(--g600); }
.q-price.both { color: #a8780e; }
.q-time { font-size: 10.5px; color: var(--ink-4); }
.quote-card:hover .q-ttrack { animation-play-state: paused; }
@keyframes q-tick {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

/* 会员相关：金色主按钮（申请成为会员 / 生成邀请码） */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-l), var(--gold));
  color: #fff;
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.28);
}
.btn-gold:hover:not(:disabled) { filter: brightness(1.05); }
.btn-gold:disabled { opacity: 0.6; cursor: not-allowed; }

/* 首页交易信息滚动行内的特权会员小徽章 */
.q-vip {
  flex: none;
  font-size: 9.5px;
  font-weight: 800;
  color: #a8780e;
  background: var(--gold-bg);
  border: 1px solid #ecd9a0;
  border-radius: 5px;
  padding: 1px 5px;
  letter-spacing: 0.3px;
}





