:root {
  --wx6514c-bottom-h: 42px;
}

body.wx6514c-has-bottom-market {
  padding-bottom: var(--wx6514c-bottom-h) !important;
}

[data-wxssc-bottom-market-v6514c] {
  --bm-line: rgba(148,163,184,.18);
  --bm-text: #f8fafc;
  --bm-sub: #94a3b8;
  --bm-orange: #f97316;
  --bm-red: #fb7185;
  --bm-green: #34d399;
  --bm-blue: #60a5fa;

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147481000;
  height: var(--wx6514c-bottom-h);
  background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(2,6,23,.985));
  border-top: 1px solid rgba(148,163,184,.20);
  box-shadow: 0 -14px 28px rgba(2,6,23,.28);
  color: var(--bm-text);
  overflow: hidden;
  box-sizing: border-box;
  transition: height .18s ease;
}

[data-wxssc-bottom-market-v6514c],
[data-wxssc-bottom-market-v6514c] * {
  box-sizing: border-box;
}

.wxbm14c-wrap {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 148px;
  align-items: center;
}

.wxbm14c-brand {
  height: 100%;
  padding: 0 14px 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-right: 1px solid var(--bm-line);
  white-space: nowrap;
}

.wxbm14c-live {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--bm-orange);
  box-shadow: 0 0 0 5px rgba(249,115,22,.10);
  flex: 0 0 auto;
}

.wxbm14c-brand b {
  color: #e5edf8;
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
}

.wxbm14c-feed {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
}

.wxbm14c-track {
  display: flex;
  align-items: stretch;
  min-width: max-content;
  height: 100%;
  will-change: transform;
  animation: wxbm14c-scroll var(--wxbm14c-duration, 48s) linear infinite;
}

[data-wxssc-bottom-market-v6514c]:hover .wxbm14c-track,
[data-wxssc-bottom-market-v6514c].is-collapsed .wxbm14c-track {
  animation-play-state: paused;
}

.wxbm14c-item {
  min-width: 156px;
  height: 100%;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-right: 1px solid var(--bm-line);
  color: var(--bm-text);
  text-decoration: none;
  white-space: nowrap;
}

.wxbm14c-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--bm-orange);
  flex: 0 0 auto;
}

.wxbm14c-name {
  color: #e5edf8;
  font-size: 12px;
  font-weight: 900;
}

.wxbm14c-price {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -.1px;
}

.wxbm14c-change {
  font-size: 12px;
  font-weight: 950;
}

.wxbm14c-item.up .wxbm14c-change {
  color: var(--bm-red);
}

.wxbm14c-item.down .wxbm14c-change {
  color: var(--bm-green);
}

.wxbm14c-item.flat .wxbm14c-change {
  color: var(--bm-sub);
}

.wxbm14c-item:hover {
  background: rgba(255,255,255,.045);
}

.wxbm14c-actions {
  height: 100%;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-left: 1px solid var(--bm-line);
  white-space: nowrap;
}

.wxbm14c-status {
  color: var(--bm-sub);
  font-size: 12px;
  font-weight: 850;
}

.wxbm14c-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-radius: 99px;
  background: #64748b;
  vertical-align: 1px;
}

.wxbm14c-more,
.wxbm14c-toggle {
  height: 24px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148,163,184,.34);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255,255,255,.035);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.wxbm14c-toggle {
  min-width: 44px;
}

.wxbm14c-more:hover,
.wxbm14c-toggle:hover {
  color: #fff;
  border-color: rgba(96,165,250,.52);
  background: rgba(96,165,250,.10);
}

[data-wxssc-bottom-market-v6514c].is-collapsed {
  height: 28px;
}

[data-wxssc-bottom-market-v6514c].is-collapsed .wxbm14c-wrap {
  grid-template-columns: 1fr 126px;
}

[data-wxssc-bottom-market-v6514c].is-collapsed .wxbm14c-brand {
  justify-content: flex-start;
  border-right: 0;
  padding-left: 18px;
}

[data-wxssc-bottom-market-v6514c].is-collapsed .wxbm14c-brand b::after {
  content: " · 已收起";
  color: #94a3b8;
  font-weight: 850;
}

[data-wxssc-bottom-market-v6514c].is-collapsed .wxbm14c-feed,
[data-wxssc-bottom-market-v6514c].is-collapsed .wxbm14c-status,
[data-wxssc-bottom-market-v6514c].is-collapsed .wxbm14c-more {
  display: none;
}

[data-wxssc-bottom-market-v6514c].is-collapsed .wxbm14c-actions {
  border-left: 0;
  padding-right: 14px;
}

@keyframes wxbm14c-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .wxbm14c-track {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 980px) {
  :root {
    --wx6514c-bottom-h: 40px;
  }

  .wxbm14c-wrap {
    grid-template-columns: 0 minmax(0, 1fr) 96px;
  }

  .wxbm14c-brand {
    display: none;
  }

  .wxbm14c-item {
    min-width: 138px;
    padding: 0 10px;
  }

  .wxbm14c-actions {
    padding: 0 8px;
  }

  .wxbm14c-status,
  .wxbm14c-more {
    display: none;
  }

  [data-wxssc-bottom-market-v6514c].is-collapsed .wxbm14c-wrap {
    grid-template-columns: 1fr 96px;
  }

  [data-wxssc-bottom-market-v6514c].is-collapsed .wxbm14c-brand {
    display: inline-flex;
  }
}
