/* Google Font Import _ Poppins */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{   
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root{
    --body-color: #EAFAF1;
    --sidebar-color: #FFF;
    --primary-color: #82E0AA;
    --primary-color-light: #EAFAF1;
    --toggle-color: #DDD;
    --text-color: #707070;

    --tran-02: all 0.1s ease;
    --tran-03: all 0.1s ease;
    --tran-04: all 0.1s ease;
    --tran-05: all 0.1s ease;
}

body{
    height: 100vh;
    background: var(--body-color);
    transition: var(--tran-05);
    width: 100%;
    margin: 0 auto;
    font-family: "Kaiti SC", Georgia, 'Times New Roman', Times, serif;
    font-size: 25px;
    background-color: rgba(55,59,63,1);
}

body.dark{
    --body-color: #EAFAF1;
    --sidebar-color: #FFF;  
    --primary-color: #82E0AA; 
    --primary-color-light: #EAFAF1;
    --toggle-color: #FFF;
    --text-color: #CCC;
}

.sidebar{
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    padding: 10px 14px;
    background: var(--sidebar-color);
    transition: var(--tran-05);
    z-index: 100;
}

.sidebar.close{
    width: 0px;
}

.sidebar .text{
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--tran-03);
    white-space: nowrap;
    opacity: 1;
}

.sidebar.close .text{
    opacity: 0;
}

.sidebar .image{
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar li{
    height: 50px;
    margin-top: 10px;
    list-style: none;
    display: flex;
    align-items: center;
}

.sidebar li .icon{
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    font-size: 20px;
}

.sidebar li .icon,
.sidebar li .text{
    color: var(--text-color);
    transition: var(--tran-02);
}

.sidebar header{
    position: relative;
}

.sidebar .image-text img{
    width: 40px;
    border-radius: 3px;
}

.sidebar header .image-text{
    display: flex;
    align-items: center;
}

header .image-text .header-text{
    display: flex;
    flex-direction: column;
}

.header-text .name{
    font-weight: 600;
}

.header-text .profession{
    margin-top: -2px;
}

.sidebar header .toggle{
    position: absolute;
    top: 50%;
    right: -88px;
    transform: translateY(-50%) rotate(180deg);
    height: 30px;
    width: 30px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--sidebar-color);
    font-size: 25px;
    transition: var(--tran-03);
}

.sidebar.close header .toggle{
    transform: translateY(-50%);
}

body.dark .sidebar header .toggle{
    color: var(--text-color);
}

body.dark .sidebar header .toggle{
    color: var(--text-color);
}

.sidebar .menu{
    margin-top: 35px;
}

.sidebar .search-box{
    background: var(--primary-color-light);
    border-radius: 6px;
    transition: var(--tran-05);
}

.search-box input{
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    background: var(--primary-color-light);
    transition: var(--tran-05);
}

body.dark .search-box input{
    color: #fff;
}

.sidebar li a{
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--tran-04);
}

.sidebar li a:hover{
    background: var(--primary-color);
    opacity: 0.8;
}

.sidebar li a:hover .icon,
.sidebar li a:hover .text{
    color: var(--sidebar-color);
}

body.dark .sidebar li a:hover .icon,
body.dark .sidebar li a:hover .text{
    color: var(--text-color);
}

.sidebar .menu-bar{
    height: calc(100% - 50px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

.menu-bar .mode{
    position: relative;
    border-radius: 6px;
    background: var(--primary-color-light);
}

.menu-bar .mode .moon-sun{
    height: 50px;
    width: 60px;
    display: flex;
    align-items: center;
}

.menu-bar .mode i{
    position: absolute;
    transition: var(--tran-03);
}

.menu-bar .mode i.sun{
    opacity: 0;
}

body.dark .menu-bar .mode i.sun{
    opacity: 1;
}

body.dark .menu-bar .mode i.moon{
    opacity: 0;
}

.menu-bar .mode .toggle-switch{
    position:absolute;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-width: 60px;
    cursor: pointer;
    border-radius: 6px;
    background: var(--primary-color-light);
    transition: var(--tran-05);
}

.toggle-switch .switch{
    position: relative;
    height: 22px;
    width: 44px;
    border-radius: 25px;
    background: var(--toggle-color);
}

.switch::before{
    content: "";
    position: absolute;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    top: 50%;
    left: 5px;
    transform: translateY( -50%);
    background: var(--sidebar-color);
    transition: var(--tran-03);
}

body.dark .switch::before{
    left: 24px;
}

.home{
    position:relative;
    height: 100vh;
    left: 240px;
    width: calc(100% - 20px); 
    background: var(--body-color);
    transition: var(--tran-05);
}

.sidebar.close ~ .home{
    left: 88px;
    width: calc(100% - 20px);
}

/* .home .text{
    font-size: 30px;
    font-weight: 500;
    color: var(--text-color);
    padding: 0;
} */







/* h1.en, 
h2.en, 
h3.en, 
h4.en, 
h5.en, 
h6.en,
p.en,
div.en{
display: none;
} */

p{
margin-bottom: .5em !important;
font-size: 18px !important;
padding-left: 10px;
padding-right: 1px;
text-indent:2em;
}

p.cn{
letter-spacing: 0.1em;
padding: 20px;
}

p.en{
    padding: 22px;
}

td.left_30{
    width: 30%;
}

td.right_70{
    width: 70%;
}


img{
/* width: 50% ; */
text-align: center !important;
}


h1,h2,h3,h4,h5,h6{
text-align:center;
font-size: 150%;

}

a{
    font-size: 20px;
    color: rgba(0, 0, 255, .75) ;
}
a:hover{
    color: rgba(255, 0, 0, .9);
    text-decoration-line: none;
}

.bottom{
width: 100%;
border: 0 solid transparent;
font-size: 25px;
overflow: hidden;
}

.top{
margin-bottom: -9999px;
padding-bottom: 9999px;
width: 50%;
font-size: 20px;
float: left;
/* overflow:hidden; */
}




/* 白昼版 */
/* .left{
background-color: rgba(250, 250, 250, 1);
color: rgba(114, 114, 114, .9);
font-size: 0.7em;
}

.right{
background-color: rgba(255, 255, 255, 1);
color: rgba(114, 114, 114, .9);
border-width: 5px;
} */


/* 黑夜版 */
.left{
background-color: rgba(46,48,51,1);
color: rgba(184, 191, 198, .8);
font-size: 0.7em;
}

h2.left{
    font-size: 150%;
}

.right{
background-color: rgba(55,59,63,1);
color: rgba(184, 191, 198, .8);
border-width: 5px;
}

a{
    font-size: 20px;
    color: rgba(255, 255, 255, .93);;
}
a:hover{
    color: rgba(255, 0, 0, .9);
    text-decoration-line: none;
}

.block {
    height: auto;
    margin-bottom: 0;
    margin-top: 0;
    max-height: 100%;
    max-width: 100%;
    overflow: none;
    vertical-align: middle;
    width: auto
    }






