/* WXSSC V65.12 Visual Refine
   目标：更像金融终端；减少浅蓝面积，强化白底数据卡与边框层级。
   不改数据算法。
*/
.wx63-market.wxrm6512-market {
  --rm-bg: #fbfdff;
  --rm-card: rgba(255,255,255,.985);
  --rm-soft: #f6f9fc;
  --rm-line: rgba(203,213,225,.86);
  --rm-line-strong: rgba(148,163,184,.75);
  --rm-text: #0f172a;
  --rm-sub: #64748b;
  --rm-blue: #2563eb;
  --rm-green: #16a34a;
  --rm-amber: #9a6700;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 350px !important;
  min-height: 350px !important;
  max-height: 350px !important;
  padding: 15px !important;
  border: 1px solid rgba(147,197,253,.48) !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow:
    0 18px 44px rgba(15,23,42,.075),
    inset 0 1px 0 rgba(255,255,255,.92) !important;
  overflow: hidden !important;
  color: var(--rm-text) !important;
  box-sizing: border-box !important;
}

.wx63-market.wxrm6512-market,
.wx63-market.wxrm6512-market * {
  box-sizing: border-box;
}

.rm6512-wrap {
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(92px, 1fr) auto auto;
  gap: 7px;
  overflow: hidden;
}

.rm6512-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.rm6512-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 6px 10px;
  border: 1px solid rgba(16,185,129,.22);
  border-radius: 999px;
  background: rgba(240,253,244,.78);
  color: #0f766e;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.rm6512-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--rm-green);
  box-shadow: 0 0 0 5px rgba(22,163,74,.12);
}

.wx63-market.wxrm6512-market .rm6512-title {
  margin: 7px 0 0 !important;
  color: var(--rm-text) !important;
  font-size: 27px !important;
  line-height: 1.04 !important;
  letter-spacing: -0.9px !important;
  font-weight: 950 !important;
  white-space: nowrap;
}

.rm6512-status {
  flex: 0 0 auto;
  margin-top: 29px;
  padding: 7px 10px;
  border: 1px solid rgba(37,99,235,.24);
  border-radius: 999px;
  background: #fff;
  color: var(--rm-blue);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.rm6512-desc {
  margin: 0;
  color: var(--rm-sub);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 780;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm6512-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 8px;
}

.rm6512-tab {
  appearance: none;
  min-width: 0;
  height: 31px;
  border: 1px solid var(--rm-line);
  border-radius: 13px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm6512-tab.is-active {
  color: var(--rm-blue);
  border-color: rgba(37,99,235,.70);
  background: rgba(239,246,255,.92);
  box-shadow: inset 0 0 0 1px rgba(37,99,235,.10);
}

.rm6512-main {
  display: grid;
  grid-template-columns: minmax(0,.96fr) minmax(0,1.04fr);
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.rm6512-pricebox {
  min-width: 0;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(100,116,139,.46);
  border-radius: 18px;
  background: var(--rm-card);
  box-shadow:
    0 10px 28px rgba(15,23,42,.055),
    inset 0 1px 0 rgba(255,255,255,.92);
  overflow: hidden;
}

.rm6512-signal {
  min-width: 0;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(203,213,225,.70);
  border-radius: 18px;
  background: rgba(255,255,255,.90);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
  overflow: hidden;
}

.rm6512-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--rm-sub);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.rm6512-label em {
  font-style: normal;
  color: var(--rm-amber);
  font-weight: 950;
}

.rm6512-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
}

.rm6512-price {
  color: var(--rm-text);
  font-size: 31px;
  line-height: 1;
  letter-spacing: -1.1px;
  font-weight: 950;
  white-space: nowrap;
}

.rm6512-badge {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(37,99,235,.10);
  color: var(--rm-blue);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.rm6512-mini {
  margin-top: 10px;
  width: 100%;
  height: 32px;
}

.rm6512-mini polyline {
  fill: none;
  stroke: var(--rm-blue);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rm6512-signal b {
  display: block;
  margin-top: 7px;
  color: var(--rm-text);
  font-size: 17px;
  line-height: 1.12;
  font-weight: 950;
}

.rm6512-signal p {
  margin: 6px 0 0;
  color: var(--rm-sub);
  font-size: 12px;
  line-height: 1.34;
  font-weight: 760;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rm6512-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
}

.rm6512-metric {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--rm-line);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  overflow: hidden;
}

.rm6512-metric small {
  display: block;
  color: var(--rm-sub);
  font-size: 11px;
  font-weight: 850;
}

.rm6512-metric b {
  display: block;
  margin-top: 4px;
  color: var(--rm-text);
  font-size: 16px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm6512-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  color: var(--rm-sub);
  font-size: 11px;
  line-height: 1;
  font-weight: 780;
  white-space: nowrap;
  overflow: hidden;
}

.rm6512-foot span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.rm6512-foot a {
  flex: 0 0 auto;
  color: var(--rm-blue);
  text-decoration: none;
  font-weight: 950;
}

@media(max-width:980px) {
  .wx63-market.wxrm6512-market {
    height: auto !important;
    min-height: 280px !important;
    max-height: none !important;
  }

  .rm6512-wrap {
    display: flex;
    flex-direction: column;
  }

  .rm6512-head {
    display: block;
  }

  .rm6512-status {
    display: inline-flex;
    margin-top: 8px;
  }

  .wx63-market.wxrm6512-market .rm6512-title {
    white-space: normal;
    font-size: 26px !important;
  }

  .rm6512-desc {
    white-space: normal;
  }

  .rm6512-tabs {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .rm6512-main,
  .rm6512-metrics {
    grid-template-columns: 1fr;
  }
}
