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

/* ---------- 7 列数据表格（名称/涨幅/连板数/09:15/09:20/09:25/题材） ---------- */
/* 列宽逻辑以观察宝为准：每张表按自身内容自适应取宽，不做拉伸、不限宽截断 */
table.stock {
    width: auto;
    border-collapse: collapse;
}

table.stock tr.fd { cursor: pointer; }

/* 表头时点列字色：09:15 #4a9eff / 09:20 #ff9900 / 09:25 #D22222（类选择器，兼容最左表格多出的序号列） */
table.stock .col-header th.col-t1 { color: #4a9eff !important; }
table.stock .col-header th.col-t2 { color: #ff9900 !important; }
table.stock .col-header th.col-t3 { color: #D22222 !important; }

/* 日与日之间的间隔线（参照观察宝：列组左侧 1px var(--border-color)，首列无） */
#th1, #th2, #th3, #tb1, #tb2, #tb3 {
    border-left: 1px solid var(--border-color);
}

/* 选择器用 table.stock>tbody>tr>td 提高优先级，压过 bootstrap 的 .table>tbody>tr>td（line-height:1.4286） */
table.stock>tbody>tr>th,
table.stock>tbody>tr>td,
table.stock>thead>tr>th {
    font-size: 12px;
    height: 21px;
    line-height: 21px;
    padding: 0 4px;
    border: none;
    white-space: nowrap;
}

/* 表头（深色表头 #191d25，不随主题变化） */
table.stock .col-header th {
    background: #191d25;
    color: #e0e0e0;
    font-weight: normal;
    text-align: center;
}

/* 名称/题材列：观察宝逻辑 width:fit-content + nowrap，按内容自适应、不截断 */
table.stock .col-name { text-align: left; width: fit-content; white-space: nowrap; }
/* 序号列（豆宝规则：固定宽 21px、居中、点击加入通达信板块） */
table.stock .col-idx { width: 21px; min-width: 21px; max-width: 21px; text-align: center; }
table.stock td.col-idx { cursor: pointer; color: #888888 !important; }
table.stock td.col-idx:hover { color: #ff9900 !important; }
/* 表头"加"（豆宝规则：默认 #333 底白字，悬停 #D22222 底白字） */
table.stock .col-header th.col-idx { background: #333333; color: #ffffff; cursor: pointer; }
table.stock .col-header th.col-idx:hover { background: #D22222; color: #ffffff; }
table.stock .col-zf   { text-align: right; }
table.stock .col-board{ text-align: center; color: #FF03CB; }
/* 连板数为 2：名称与连板数字色黄色 */
table.stock td.col-board.lb2,
table.stock td.col-name.lb2,
table.stock td.col-name.lb2 b { color: #ffff00 !important; }
/* 连板数 >= 3：名称与连板数字色 #FF03CB */
table.stock td.col-board.lb3,
table.stock td.col-name.lb3,
table.stock td.col-name.lb3 b { color: #FF03CB !important; }
table.stock .col-t1,
table.stock .col-t2,
table.stock .col-t3   { text-align: right; background: #555555; }
table.stock .col-theme{ text-align: left; color:#01bcdd !important; width: fit-content; white-space: nowrap; }

/* 行高统一 21px：td 内元素回归 inline，消除旧 inline-block 规则的基线撑高 */
table.stock td b,
table.stock td span {
    display: inline;
    vertical-align: baseline;
}
/* 涨停/跌停底色需要盒模型，用 inline-block 且顶部对齐（高度=line-height 21，不撑行） */
table.stock td span.zf {
    display: inline-block;
    vertical-align: top;
}

/* 金额文字与亿/万单位色（豆宝规则：单位 #1f477a） */
body.dark-theme table.stock .col-t1,
body.dark-theme table.stock .col-t2,
body.dark-theme table.stock .col-t3 { color: #e0e0e0; }
body.light-theme table.stock .col-t1,
body.light-theme table.stock .col-t2,
body.light-theme table.stock .col-t3 { color: #333333; }
.amt-unit { color: #1f477a; }

/* 涨跌幅文字色（豆宝规则：涨 #D22222 / 跌 #4eeeee） */
.zf.zf-up { color: #D22222; }
.zf.zf-down { color: #4eeeee; }

/* 行悬停 / 选中（豆宝规则：hover #1f477a、选中 #1e3a5f + 下边 #4a9eff） */
body.dark-theme table.stock tr.fd:hover { background: #1f477a; }
body.light-theme table.stock tr.fd:hover { background: #e8eef7; }
/* 悬停时三列时间单元格让位于行悬停色：单元格自带底色会盖住 tr 的 hover 背景，
   置为 transparent 后由 tr 的悬停色透出（深色 #1f477a / 浅色 #e8eef7） */
table.stock tr.fd:hover .col-t1,
table.stock tr.fd:hover .col-t2,
table.stock tr.fd:hover .col-t3 { background: transparent; }
table.stock tr.fd.selected-row {
    background-color: #1e3a5f !important;
    box-shadow: inset 0 -1px 0 #4a9eff;
}
body.light-theme table.stock tr.fd.selected-row {
    background-color: #dbe7f7 !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 #fdbj-main-panel,
body.dark-theme #fdbj-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;
}

/* 涨跌停样式（豆宝规则：主板涨停底 #800000、20cm 涨停底 #800080、跌停底 #006006，字 #e0e0e0） */
.zf.limit-up,
.zf.limit-down {
    padding: 0 2px;
    border-radius: 2px;
}

.zf.limit-up {
    background-color: #800000 !important;
    color: #e0e0e0 !important;
}

.zf.limit-up.limit-20 {
    background-color: #800080 !important;
}

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

/* 连板股（连板数>=1）：涨幅列按涨停样式显示（白字 + 涨停红底，20cm 紫底） */
table.stock td.col-zf span.zf.zf-lb {
    color: #ffffff !important;
    background-color: #800000 !important;
}

table.stock td.col-zf span.zf.zf-lb.limit-20 {
    background-color: #800080 !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 #fdbj-main-panel,
body.light-theme #fdbj-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;
}