/* 全局移除粗体 - 限定范围避免过度覆盖 */
.fd, .fd b, .fd i, .fd p, .fd span {
    font-weight: normal !important;
}

::-webkit-scrollbar {
    width: 0px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    height: 50px;
    background-color: #ccc;
    outline-offset: -2px;
    border: 2px solid #ccc;
}

::-webkit-scrollbar-track {
    background: #f8f8f8;
}

::-webkit-scrollbar-track-piece {
    border-radius: 0;
    -webkit-border-radius: 0;
}


@font-face {
  font-family: "iconfont"; /* Project id 4597532 */
  src: url('//at.alicdn.com/t/c/font_4597532_9wdvpxxneaj.woff2?t=1722405853637') format('woff2'),
       url('//at.alicdn.com/t/c/font_4597532_9wdvpxxneaj.woff?t=1722405853637') format('woff'),
       url('//at.alicdn.com/t/c/font_4597532_9wdvpxxneaj.ttf?t=1722405853637') format('truetype');
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sorticon {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.totalcount {
    color:#e64c62;
    padding:0 5px;
}

.icon-up:before {
    content: "\e600";
}

.icon-down:before {
    content: "\e601";
}

.icon-left:before {
    content: "\e67e";
  }
  
  .icon-right:before {
    content: "\e602";
  }

  .icon-sort:before {
    content: "\e613";
  }


  .icon-you:before {
    content: "\e630";
  }

  /* switch box  */
.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 15px;
  }
  
  /* 隐藏默认 checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* 开关 */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
  /* 过渡 */
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 11px;
    width: 11px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  /* 改变颜色 */
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  /* 中心原点运动 */
  input:checked + .slider:before {
    -webkit-transform: translateX(15px);
    -ms-transform: translateX(15px);
    transform: translateX(15px);
  }
  
  /* 圆角 */
  .slider.round {
    border-radius: 17px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

  .kline {cursor: pointer;}

/* 深色主题样式 */
body.dark-theme {
    background-color: #1e232d;
    color: #dddddd;
}

body.dark-theme .table {
    background-color: #1e232d;
}

body.dark-theme .table th,
body.dark-theme .table td {
    border-color: #333333;
    color: #dddddd;
}

body.dark-theme .head {
    background: #191d25 !important;
}

body.dark-theme .head span {
    background-color: rgba(240, 15, 15, 0.3);
    color: #ff9900; /*一字，封单*/
}

body.dark-theme .fd {
    color: #888888;
}

body.dark-theme .fd span:nth-child(3) {
    color: #ff9900; /*个股*/
}

body.dark-theme .fd span:nth-child(4) {
    color: #888888;
}

body.dark-theme .fd b,
body.dark-theme .fd b i {
    color: #dddddd;
}

body.dark-theme .time {
    background-color: #191d25;
    color: #888888;
}

body.dark-theme #jj-main-panel,
body.dark-theme #jj-side-panel iframe {
    background-color: #1e232d;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.dark-theme ::-webkit-scrollbar-track {
    background: #191d25;
}

body.dark-theme ::-webkit-scrollbar-thumb {
    background-color: #444444;
    border-color: #444444;
}

/* 主题切换按钮悬停效果 */
#theme-toggle:hover {
    color: #01bcdd !important;
}

/* 概念板块/题材/板块颜色 - 遵循监管规范 */
.concept-tag,
.sector-tag,
.theme-tag,
.fd b i p:not(.board-tag) {
    color: #01bcdd !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* 空间/连板数颜色 - 连续板颜色 */
.fd b i p.board-tag {
    color: #FF03CB !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

/* 涨跌停样式 - 统一设置，涨跌停不需要区分深浅主题 */
.zf.limit-up,
.zf.limit-down {
    padding: 0 2px;
    border-radius: 2px;
}

.zf.limit-up {
    background-color: #D22222 !important;
    color: #ffffff !important;
}

.zf.limit-down {
    background-color: #006006 !important;
    color: #ffffff !important;
}

/* 市场标识样式 - 合并相同颜色 */
.market-tag {
    font-weight: normal !important;
    margin-left: 4px;
}

.market-tag.chi,
.market-tag.star {
    color: #01bcdd !important;
}

.market-tag.bj {
    color: #9332e6 !important;
}

/* 说明书按钮悬停效果 */
#help-btn:hover {
    color: #01bcdd !important;
}

/* 说明书模态框样式 - 深色主题 */
#idouModal .modal-content {
    background-color: #191d25;
}

#idouModal .modal-close:hover {
    background-color: #D22222 !important;
}

#idouModal .tips-container {
    background-color: #0e1b2c;
    border-color: #333;
}

/* 说明书模态框样式 - 浅色主题 */
body.light-theme #idouModal .modal-content {
    background-color: #ffffff;
}

body.light-theme #idouModal .tips-container {
    background-color: #f5f7f9;
    border-color: #dfe3e8;
}

body.light-theme #idouModal #idouBody {
    color: #1a1d23;
}

body.light-theme #idouModal #idouBody table th {
    color: #64748b;
}

body.light-theme #idouModal #idouBody table tr {
    border-color: #dfe3e8;
}

body.light-theme #idouModal #idouBody > div > div:nth-child(2) {
    border-color: #dfe3e8;
}

/* 浅色主题通用样式 */
body.light-theme {
    background-color: #ffffff;
    color: #1a1d23;
}

body.light-theme .table {
    background-color: #ffffff;
}

body.light-theme .table th,
body.light-theme .table td {
    border-color: #dfe3e8;
    color: #1a1d23;
}

body.light-theme .head {
    background: #d9534f !important;
}

body.light-theme .head span {
    background-color: #000000;
    color: #333333;
}

body.light-theme .fd {
    color: #666666;
}

body.light-theme .fd span:nth-child(3) {
    color: #DB6D00;
}

body.light-theme .fd span:nth-child(4) {
    color: #666666;
}

body.light-theme .fd b,
body.light-theme .fd b i {
    color: #333333;
}

body.light-theme .time {
    background-color: #f5f7f9;
    color: #666666;
}

body.light-theme #jj-main-panel,
body.light-theme #jj-side-panel iframe {
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

body.light-theme ::-webkit-scrollbar-track {
    background: #f5f7f9;
}

body.light-theme ::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-color: #cbd5e1;
}