/*
    声明字体
    header #main footer
*/
@font-face {
    font-family:JinlingCu;
    src:url("../ttf/FZCuJinLJW.TTF");
}
@font-face {
    font-family:JinlingXi;
    src:url("../ttf/FZXiJinLJW.TTF");
}
@font-face {
    font-family: QKBYSJW;
    src:url("../ttf/FZQKBYSJW.TTF");
}
tbody{
    position: absolute;
    height: 100%;
    width: 100%;
    /* overflow: hidden; */
    overflow-y: scroll;
}
tbody::-webkit-scrollbar {
    display: none;
}
tr{
    height: 3rem;   /*1.2*/
    font-size: 0.9rem;
    color: black; /* #14352d */
    /*border-bottom: 10px solid black;*/
    /* opacity: 0.7; */
}
hr{
    border: none;
    border-bottom: 1px solid rgba(0, 128, 0, 0.2);
    opacity: 0.7;
}
.content{
    font-size: 0.8rem;
}
li{
    list-style: none;
}
*{
    margin: 0;
    padding: 0;
}
html{
    height: 100%;
    width: 100%;

    font-size: 16px;
    font-family: JinlingXi;
}
body{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-image: url("../images/background.png");
    background-color: white;
    background-size: cover;
    overflow: hidden;
}
.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: -1;
    /* transition: opacity 1s; */
}
/* header{
    position: relative;
    height: 0; 

} */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4%;
    /* background-color: #6c948c; */
    /* background-color: #516EBC; */
}

#switchmode-btn {
    color: white;
}


#switchmode-btn:hover {
    color: rgba(255, 255, 255, 0.35);
}

.move-btn {
    /* width: 50px; */
    position: absolute;
    top: 10%;
    height: 80%;
    left: 0.5%;
    opacity: 1;
}

.header-text {
    position: absolute;
    left: 2.5%; 
    top: 10%;
    font-family: JinlingCu; /* 设置字体为JinlingCu */
    font-size: 24px; /* 设置字体大小为24像素 */
    /* color: white; 设置字体颜色为红色 */
}

#main{
    flex: 1 1 400px;
    display: flex;
    flex-direction: row;
    overflow: visible;
    border: 1px solid rgba(14, 54, 33, 0.325);
    position: relative; /* 设置position属性为relative */
    top: 4%; /* 下移50像素 */
}
/* img:hover {
    transform: scale(1.2);
  } */
footer{
    height: 80px;
    margin-top: -15px;
    overflow: visible;
    /* border: 2px solid black; */
/*     background-color: #c8d8d4; */
}


/* #graph{
    width: 100%;
    transition: all 2s;
    overflow: visible;
} */
.select-box{
    position: absolute;
    left: 0%;
    width: 12%;
    top:0;
    height: 96%;
    display: block;
    border-right: 1px solid rgba(14, 54, 33, 0.325);
    font-size: 12px;
}
.select-box .info-box {
    height: 12%;
    margin-top: 20px;
}

.select-box .location-search-box{
    font-size: 12px;
    display: flex;
    flex-direction: row;
    margin-bottom: 1px;
}

#location-search-input {
    border: none;
    border-bottom: 1px solid rgba(14, 54, 33, 0.225);
    /* border-radius: 5px;  */
    width: 60px;
    text-align:center;
    background-color: transparent; /* 添加这一行 */
    height: 18px;
    /*很关键：将默认的select选择框样式清除*/
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    /* width: 6em; */
    font-size: 12px;
    font-family: JinlingXi;
    opacity: 0.8;
}

#location-search-input:focus {
    outline: 0px;
}

.location-search-autocomplete-box{
    max-height: 40px;
    overflow-y: scroll;
}

.location-search-autocomplete-box div{
    width: 100%;
    height: 18px;
    font-size: 12px;
    line-height: 18px;
    background-color: rgb(197, 226, 211);
    z-index: 99;
}

.location-search-autocomplete-box div:hover{
    background-color: #6c948c;
}


.toggle-layout-btn {
    font-size: 12px; /* 设置字体大小为12像素 */
    font-family: JinlingXi; /* 设置字体为金陵细 */
    opacity: 0.8;
    background-color: rgba(14, 54, 33, 0); /* 设置背景颜色为透明 */
    border: 0px solid rgba(14, 54, 33, 0);
    border-bottom: 1px solid rgba(14, 54, 33, 0.225);
    /* border-radius: 5px;  */
    cursor: pointer;
    width: 60px;
    height: 18px;
    text-align:center;
}
.toggle-layout-btn:hover {
    background-color: rgba(14, 54, 33, 0);
    border-bottom: 1px solid rgba(14, 54, 33, 0.125);
}

.overview{
    position: absolute;
    width: 100%;
    top: 43%;
    height: 62%;
    display: block;
    /* border: 1px solid rgba(14, 54, 33, 0.325); */
}
.overview .overview_grad {
    position: absolute;
    top: 0;
    left: 10%;
    width: 100%;
    height: 2%;
    /* border-right: 1px solid rgba(14, 54, 33, 0.325); */
}
.overview .overview_wenti {
    position: absolute;
    top: 0;
    left: 8%;
    width: 92%;
    height: 20%;
    /* border-right: 1px solid rgba(14, 54, 33, 0.325); */
}
.overview .overview_bar{
    position: absolute;
    top: 0%;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    /* border: 1px solid rgba(14, 54, 33, 0.325); */
}

.overview .overview_bar::-webkit-scrollbar{
    width: 0px;
    height: 0px;
}
.chart4{
    position: absolute;
    left: 80%;
    width: 20%;
    top:0;
    height: 96%;
    display: block;
    border-left: 1px solid rgba(14, 54, 33, 0.325);
    overflow-y: scroll;
}

.chart4::-webkit-scrollbar{
    width: 0px;
    height: 0px;
}
#info-container {
    /* position: absolute; */
    width: 100%;
    /* right: 0; */
    padding: 10px;
    box-sizing: border-box;
    /* border-bottom: 1px solid rgba(14, 54, 33, 0.325); */
}
#info-container div {
    border-bottom: 1px solid #ccc;  /*  rgba(0, 128, 0, 0.2) */
    padding-bottom: 2px;
    margin-bottom: 2px;
}
.chart2_wc{
    /* position: absolute; */
    width: 100%;
    height: 20%;
    top: 50%;
/*     z-index:100; */
}

.chart2_list{
    /* position: absolute; */
    width: 95%;
    /* height: 30%; */
    top: 70%;
    right: 5%;
    padding-left: 0px;
}

#container {
    /* 设置容器的位置和大小 */
    position: absolute;
    top: 0%;
    left: 12%;
    width: 68%;
    height: 96%;
    overflow: hidden;
}

#graph{
    position: absolute;
    top: 0%; /*5%*/
    left: 0%;
    width: 100%;
    height: 100%;
    display: block;
    /* border: 1px solid rgba(14, 54, 33, 0.325); */
}
.chart{
    position: absolute;
    top: 0%;  /*5%*/
    left: 0%;
    width: 100%;
    height: 90%;
    visibility: hidden;
}
.square{
    visibility: visible;
}
/* 添加样式来控制 SVG 画布的位置和动画效果 */
/* #map-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 2s;
}
#map-svg.move-left {
    left: 25%;
} */
/* #right-view {
    position: absolute;
    top: 50%;
    right: 25%;
    transform: translate(50%, -50%);
    display: none;
} */

  
/* .graph-svg-component {
    background-color: #c8d8d4;
}
.row {
    background-color: #c8d8d4;
} */

/* .chart3{
    position: absolute;
    left: 80%;
    width: 20%;
    top:0;
    height: 90%;
    border: 0px solid gray;
    overflow: visible;
    display: block;
    border: 1px solid rgba(14, 54, 33, 0.325);
} */
.chart3 {
    position: absolute;
    left: 60%;
    width: 39.5%;
    top: 50%;
    height: 40%;
    /* border: 3px solid rgba(14, 54, 33, 0.125); */
    border: none; /* 去掉边框 */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); /* 添加阴影效果 */
    overflow: visible;
    display: block;
    z-index: 0; /* 设置z-index为正数，使其浮于#graph之上 */
    background-color: rgba(255, 255, 255, 0.7); /* 设置背景颜色为半透明白色 */
    /* backdrop-filter: blur(1px);  应用模糊滤镜 */
    /* backdrop-filter: grayscale(60%); */
    /* background-image: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)); 添加从上至下透明渐变的样式 */
    
}

.chart3-control-btn{
    position: absolute;
    right: 0.5%;
    top: 50%;
    background-color: rgba(14, 54, 33, 0);
    font-size: 13px;
    font-family: JinlingXi;
    opacity: 0.7;
    cursor: pointer;
    border-bottom: 2px solid rgba(14, 54, 33, 0.225);
}
.chart3-control-btn:hover{
    background-color: rgba(14, 54, 33, 0);
    border-bottom: 2px solid rgba(14, 54, 33, 0.125);
}


.chart5{
    position: absolute;
    left: 0%;
    width: 100%;
    top: 87%;
    height: 13%;
    display: block;
    /* border-top: 1px solid rgba(14, 54, 33, 0.325); */
}
.river-image {
    position: absolute;  /* 设置图片的position为absolute */
    top: 0;  /* 调整图片的上边距 */
    left: 3%;  /* 调整图片的左边距 */
    bottom: 20%;
    width: 93%;  /* 设置图片的宽度 */
    height: 80%;  /* 设置图片的高度 */
}
#river{
    width: 100%;
    height: 100%;
}


.dropdown {
    width: calc(95% - 600px);
    position: absolute;
    display: none;
    background-color: lightblue;
    border: 1px solid black;
    border-radius: 15px;
    padding: 10px;
}
/* #timeline{

} */
.tooltip {
    position:absolute;
    padding: 10px;
    font-size: 14px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 300px;
  }

  .location-tip {
    position:absolute;
    padding: 6px;
    font-size: 14px;
    background-color: #c1c1c1;
    /* border-radius: 5px; */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: #fff;
  }



  #filter-buttons {
    /* display: flex; */
    justify-content: center;
    align-items: center;
  }

  .filter-button-1{
    margin: 2px;
    padding: 8px 14px;
    background-color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
    /* position: absolute;
    top: 510px;
    left: 20px; */
    font-family: JinlingXi;
  }
  .filter-button-1:hover{
    background-color: #bcd6c3;
  }


  .filter-button-dynasties {
    margin: 5px;
    padding: 6px 10px;
    background-color: rgb(222, 220, 220);
    border: none;
    border-radius: 5px;
    font-size: 10px;
    cursor: pointer;
    /* position: absolute;
    top: 510px;
    left: 20px; */
    font-family: JinlingXi;
  }
  .filter-button-dynasties:hover{
    background-color: #bcd6c3;
  }

  .tooltip-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(#5a7bd8, #ffffff);
    margin-top:0px;
    }


    .dropdown-wrapper {
        position: relative;
      }
      
    .dropdown-wrapper:before {
        content: "";
        position: relative;
        left: 0;
        top: 3px;
        /* display: inline-block; */
        width: 12px;
        height: 12px;
        /* background-image: url("../images/dropdown.svg");
        background-size: 12px 12px; */
      }

    select {
        /* padding: 0.1px; */
        font-size: 12px;
        font-family: JinlingXi;
        background-color: #90a6a2;
        background-color: transparent;
        /* color: #515151; */
        /* opacity: 0.8; */
        /* border: 0px ; */
        /* border-radius: 5px; */
        width: 60px;
        height: 18px;
        text-align:center;
        /* padding-bottom: 10px; */

        border-width: 0px 0px 1px 0px;
        border-style: none none solid none;
        border-color: rgba(14, 54, 33, 0.225);
        opacity: 0.8;


        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
      }

@keyframes hide_knowledgemap {
    0%{
        left: 60%;
    }
    100%{
        left: 99%;
    }
}
@keyframes show_knowledgemap {
    0%{
        left: 60%;
    }
    100%{
        left: 99%;
    }
}

.event-keyword {
    opacity: 1;
}
.event-keyword:hover {
    opacity: 1;
}