.greybg {
    background-color: #e9e9e9;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-size: clamp(12px, 1.3vw, 18px);
}
img {
  max-width: 100%; /* 图片最大宽度不超过容器 */
  height: auto;    /* 高度自动按比例缩放 */
  display: block;  /* 避免底部留空隙，可选 */
}
.more-text { display: none; }
.more-link { color:#999999; cursor: pointer; }
table tr th { vertical-align: middle !important; font-weight: normal; font-size: clamp(12px, 1.2vw, 16px);}
table tr td { vertical-align: middle !important; font-weight: normal;}

.list-table th:first-child,
.list-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;          /* 确保在其他列之上 */
}

/* 表头需要更高 z-index */
.list-table th:first-child {
    z-index: 3;
}

.grey {color:#777;}
.size-plus-1 {font-size: clamp(12px, 1.5vw, 18px);}
.size-less-1 {font-size: clamp(12px, 1.2vw, 16px);}
.size-less-2 {font-size: clamp(12px, 1.1vw, 16px);}
.size-less-3 {font-size: clamp(12px, 1.0vw, 14px);}
.size-less-4 {font-size: clamp(10px, 0.8vw, 12px);}

/* JSON Tree Viewer styles */
.jtv-node {
  margin-left: 12px;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  align-items: flex-start; /* 垂直顶对齐 */
}

.jtv-header {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.jtv-arrow {
  width: 16px;
  display: inline-block;
  color: #888;
}

.jtv-arrow.empty {
  color: transparent;
}




.jtv-children {
  display: none;
  border-left: 1px solid #ccc;
}

.jtv-node.open > .jtv-children {
  display: block;
  align-items: flex-start;
}


/* Key 的颜色 */
.jtv-key {
  color: #1d4ed8; /* 蓝色 */
  font-weight: bold;
  align-items: flex-start; 
  
}

.jtv-value {
  color: #444;
  padding-left: 8px;
  margin-left: 6px;
}

/* 字符串值 */
.jtv-value.string {
  color: #111; /* 色 */
  max-width: 800px;
}

/* 数字值 */
.jtv-value.number {
  color: #045c18; /* 橙色 */
}

/* 布尔值 */
.jtv-value.boolean {
  color: #9333ea; /* 紫色 */
}

/* null */
.jtv-value.null {
  color: #6b7280; /* 灰色 */
}

/* 特定字段 signal: bullish/bearish */
.jtv-value.bullish {
  color: #16a34a;
  font-weight: bold;
}

.jtv-value.bearish {
  color: #dc2626;
  font-weight: bold;
}


.glossary-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f0f0f0;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
  border: 1px solid #ccc;
}

#glossary-popup {
  position: absolute;
  max-width: 380px;
  width: max-content;
  z-index: 9999;
  background: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

@media (max-width: 460px) {
  #glossary-popup {
    max-width: 90vw !important;
  }
}

.popup-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 8px;
}

.popup-close {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 14px;
}

.term {
  margin-bottom: 12px;
}

.term-title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
}

.term-exp {
  font-size: 12px;
  color: #555;
}

.autocomplete {
    border: 1px solid #ccc;
    border-top: 0;
    max-height: 250px;
    overflow-y: auto;
    position: absolute;
    background: white;
    width: 17.5vw;
    z-index: 9999;
}

.autocomplete div {
    padding: 8px;
    cursor: pointer;
}

.autocomplete div:hover {
    background: #eee;
}

.autocomplete-item {
    padding: 6px 8px;
    cursor: pointer;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: #eaeaea;
}
