/* m-market.css */

body {
  background-color: #f8f9fa;
  font-size: 14px;
  margin: 0;
  padding: 0 0 80px 0; 
}

h5 {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 16px;
}

/* Banner 轮播 */
#mobileBannerCarousel {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

#mobileBannerCarousel img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Tab 按钮样式 */
.tab-buttons,
.btn-group.btn-group-toggle {
  display: flex;
  justify-content: space-around;
  margin: 0 auto 16px;
  padding: 0 12px;
}

.market-tab-btn {
  flex: 1;
  margin: 0 4px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: bold;
  border: 1px solid #007bff;
  border-radius: 6px;
  background-color: #fff;
  color: #007bff;
  text-align: center;
}

.market-tab-btn.active {
  background-color: #007bff;
  color: #fff;
}

/* 卡片列表容器 */
.market-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

/* 通用卡片结构 */
.market-card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  font-size: 13px;
  gap: 6px;
}

.market-card .address {
  grid-column: span 3;
  font-size: 13px;
  color: #c00;
  font-weight: 500;
}

.market-card .direction {
  font-weight: 600;
}

.market-card .symbol {
  font-weight: bold;
  color: #333;
  text-align: center;
}

.market-card .value {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

.market-card .value small {
  color: #666;
  font-size: 12px;
}

/* 左侧图标+名称结构（Crypto / Meme 用） */
.market-card .left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.market-card .left img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}

.market-card .rank {
  font-size: 14px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
}

.market-card .name {
  font-weight: 600;
  font-size: 14px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-card .price {
  font-size: 14px;
  color: #333;
  text-align: right;
  min-width: 80px;
  white-space: nowrap;
}

.market-card .change {
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  min-width: 80px;
  white-space: nowrap;
}

.market-card .change.positive {
  color: green;
}

.market-card .change.negative {
  color: red;
}

/* 加载提示 */
.loading {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
}

/* Tab 内容显示控制 */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* 隐藏原生滚动条 */
::-webkit-scrollbar {
  display: none;
}
#hyperliquid-list .hyper-card {
  display: grid;
  grid-template-columns: 20px 1fr 1fr 1fr 2fr;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  font-size: 13px;
  gap: 6px;
}

#hyperliquid-list .index {
  font-size: 12px;
  color: #999;
  font-weight: 500;
}

#hyperliquid-list .address {
  font-family: monospace;
  color: #007bff;
  font-size: 13px;
  text-decoration: underline;
}

#hyperliquid-list .asset {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

#hyperliquid-list .text-success,
#hyperliquid-list .text-danger {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

#hyperliquid-list .text-success {
  color: green;
}

#hyperliquid-list .text-danger {
  color: red;
}

#hyperliquid-list .position-value {
  text-align: right;
  font-weight: 600;
  font-size: 13px;
  color: #000;
}

#hyperliquid-list .position-value span {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}
/* Exchange 卡片布局 */
.exchange-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  font-size: 14px;
}

/* 序号 */
.exchange-rank {
  font-weight: bold;
  color: #555;
  min-width: 30px;
}

/* Logo */
.exchange-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
  background: #f0f0f0;
}

/* 名称 */
.exchange-name {
  font-weight: 600;
  flex: 1;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 交易量 */
.exchange-volume {
  font-weight: 500;
  color: #333;
  text-align: right;
  min-width: 100px;
  white-space: nowrap;
}
