@font-face {
  font-family: DINPro-Medium;
  src: url('../fonts/DINPro-Medium.otf');
}

@font-face {
  font-family: DINPro-Regular;
  src: url('../fonts/DINPro-Regular.otf');
}

@font-face {
  font-family: DINPro-Bold;
  src: url('../fonts/DINPro-Bold.otf');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: DINPro-Medium;
  font-size: 14px;
}

body{
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.chart-container{
  position: relative;
  flex: 1;
}
#chart_container, #chart_depth{
  width: 100%;
  height: 100%;
}

#chart_depth{
  border-top: 1px solid #eee;
  display: none;
}

.symbol{
  display: none;
  align-items: flex-start;
  justify-content: space-between;
  padding: 6px 16px;
  border-bottom: 1px solid #eee;
  position: relative;
  background-color: #fff;
  z-index: 10;
}

.symbol>div{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: #666;
}

.symbol .info{
  justify-content: flex-end;
}

.symbol .name{
  font-size: 18px;
  color: #333;
}

.symbol .label,
.symbol .value{
  font-family: DINPro-Regular;
}

.symbol .price{
  font-weight: 700;
}
.symbol .about{
  font-size: 12px;
}

.time {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  position: relative;
  white-space: nowrap;
  position: relative;
  z-index: 10;
  background-color: #fff;
}

.time>div {
  padding: 0 10px;
  line-height: 40px;
  color: #010101;
  font-size: 12px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
}

.time>div.active {
  color: #007aff!important;
}

/* .time>div:last-child {
  margin-left: auto;
  color: #909399;
} */

.time-active-line {
  position: absolute;
  bottom: 0;
  left: 10px;
  width: 46px;
  display: flex;
  justify-content: center;
  transition: all .3s;
}

.time-active-line::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background-color: #007aff;
}

.time>div .triangle,
.time>div .triangle {
  position: absolute;
  top: 55%;
  left: calc(50% + 16px);
}

.time>div.active .triangle,
.time>div.active .triangle {
  border-top-color: #007aff;
  border-bottom-color: #007aff;
}

.triangle {
  display: inline-block;
  border-width: 4px 4px 0;
  border-style: solid;
  border-color: #909399;
  border-left-color: transparent;
  border-right-color: transparent;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

/* 时间选择弹出层 */
.more-pop {
  position: absolute;
  left: 0;
  top: -35%;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #eee;
  padding: 12px;
  transition: all .5s;
  display: flex;
  z-index: 9;
}
.more-pop.show {
  top: 0;
  box-shadow: 0 10px 10px rgba(0, 0, 0, .1);
}
.more-pop .fullscreen{
  margin-top: 5px;
  margin-left: 12px;
}
.more-box{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 12px;
}

.more-item {
  flex: 0 0 calc(20% - 10px);
  padding: 4px;
  text-align: center;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
  border: 1px solid #eee;
  background-color: #eee;
}

.more-item.active{
  color: #007aff!important;
  border: 1px solid #007aff;
}

.fullscreen, .close-fullscreen{
  width: 16px;
  height: 16px;
}

[data-theme="Dark"] .time,
[data-theme="Dark"] .symbol,
[data-theme="Dark"] .more-pop{
  background-color: #131722;
}
[data-theme="Dark"] .symbol{
  border-bottom-color: #2e313c;
}
[data-theme="Dark"] .symbol .name,
[data-theme="Dark"] .symbol>div{
  color: #fff;
}
[data-theme="Dark"] .more-pop.show{
  border-top-color: #2e313c;
  box-shadow: 0 10px 10px rgba(145, 145, 145, .1);
}
[data-theme="Dark"] .more-item{
  background-color: #212329;
  color: #fff;
  border: none!important;
}
[data-theme="Dark"] .time>div{
  color: #fff;
}
[data-theme="Dark"] .chart-container{
  background-color: #141823;
}
[data-theme="Dark"] #chart_depth{
  border-top-color: #2e313c;
}