@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600;700&display=swap');

:root{
    --main-color:#2980b9;
    --bg-color-1:#eee;
    --bg-color-2:#fff;
    --text-color-1:#444;
    --text-color-2:#666;
    --box-shadow:0 .5rem 1.5rem rgba(0,0,0,.1);
}

*{
    font-family: 'Nunito', sans-serif;
    margin:0; padding:0;
    box-sizing: border-box;
    outline: none; border:none;
    text-decoration: none;
    transition: .2s linear;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 7rem;
    scroll-behavior: smooth;
}


/* 滚动条 */
html::-webkit-scrollbar{
    width:1rem;
}

html::-webkit-scrollbar-track{
    background: transparent;
}

html::-webkit-scrollbar-thumb{
    background: var(--main-color);
    border-radius: 5rem;
}



body{
    background:var(--bg-color-1);
}

body.active{
    --bg-color-1:#222;
    --bg-color-2:#333;
    --text-color-1:#fff;
    --text-color-2:#eee;
    --box-shadow:0 .5rem 1.5rem rgba(0,0,0,.3);
}

section{
    padding:2rem 6%;
}

.btn{
    margin-top: .5rem;
    display: inline-block;
    padding:.9rem 3.5rem;
    font-size: 1.7rem;
    color:#fff;
    background: var(--main-color);
    border-radius: 5rem;
    cursor: pointer;
}

.btn:hover{
    letter-spacing: .2rem;
    opacity: .8;
}



/* header section */

.header{
    position: fixed;
    top:0; left:0; right:0;
    padding:1.5rem 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.header.display{
    position: fixed;
    top:0; left:0; right:0;
    background:var(--bg-color-2);
    padding: 1.5rem 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    box-shadow: var(--box-shadow);
}

.header .logo{
    font-size: 2.5rem;
    font-weight: bolder;
    color:var(--text-color-1);
}

.header .icons div{
    height: 4.5rem;
    line-height: 4.5rem;
    width: 4.5rem;
    text-align: center;
    border-radius: 50%;
    font-size: 1.7rem;
    color:var(--text-color-1);
    background:var(--bg-color-1);
    margin-left: .5rem;
    cursor: pointer;
}

.header .icons div:hover{
    background:var(--main-color);
    color:#fff;
}

.header .navbar{
    position: absolute;
    top:115%; right: 9%;
    background:var(--bg-color-2);
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
    width:25rem;
    padding:1rem;
    display: none;
}

.header .navbar.active{
    display: block;
}

.header .navbar a{
    font-size: 2rem;
    padding:1rem;
    color:var(--text-color-1);
    display: block;
}

.header .navbar a:hover{
    color:var(--main-color);
    padding-left: 2rem;
}

.header .search-form{
    position: absolute;
    top:115%; right: 9%;
    background:var(--bg-color-2);
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    height: 5rem;
    width:50rem;
    padding:1rem;
    display: none;
}

.header .search-form.active{    
    display: flex;
}

.header .search-form input{
    height: 100%;
    width: 100%;
    background:none;
    text-transform: none;
    font-size: 1.6rem;
    color:var(--text-color-1);
    padding:1rem;
}

.header .search-form label{
    color:var(--text-color-1);
    font-size: 2rem;
    padding-right: .8rem;
    cursor: pointer;
}

.header .search-form label:hover{
    color:var(--main-color);
}

.header .colors-palette{
    position: absolute;
    top:115%; right: 9%;
    background:var(--bg-color-2);
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
    padding:1rem;
    text-align: center;
    width: 20rem;
    display: none;
}

.header .colors-palette.active{
    display: block;
}

.header .colors-palette h3{
    padding:.7rem;
    font-size: 2rem;
    color:var(--text-color-1);
}

.header .colors-palette .colors{
    display: flex;
    flex-wrap: wrap;
    padding:.7rem;
    justify-content: center;
    gap:1rem;
}

.header .colors-palette .colors .color{
    border-radius: .5rem;
    cursor: pointer;
    height: 4.5rem;
    width: 4.5rem;
}


/* home section */

.home{
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding-top: 8rem;
	background-image: url(../images/th0.jpg) ;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.home .content{
    border-radius: .5rem;
    max-width: 55rem;
	min-width: 42rem;
    padding:3rem 1rem;
    background: var(--bg-color-2);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.home .content h3{
    color:var(--text-color-1);
    font-size: 3.5rem;
}

.home .content p{
    color:var(--text-color-2);
    font-size: 1.5rem;
    padding:1.5rem 0;
    line-height: 2;
}




#textSlider .slide {
  display: none;
}
#textSlider .slide.active {
  display: block;
}


#textSlider {
  position: relative;
  height: fit-content;
  overflow: hidden;
}

.slide {
  opacity: 0;
  position: relative;
  top: 0;
}

.active {
  opacity: 1;
  /* transform: translateY(0); */
}

/* 可以根据需要调整动画方向 */
.fade-up {
  transform: translateY(-100%);
}



/* footer section */

.footer{
     background:var(--bg-color-2);
}

.footer .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
    gap:1.5rem;
}

.footer .box-container .text{
    max-height: 250px;
	overflow: auto;
}

.footer .box-container .text::-webkit-scrollbar{
    width:0.8rem;
	background: var(--bg-color-1);
	border-radius: 5rem;
}

.footer .box-container .text::-webkit-scrollbar-track{
    background: transparent;
}

.footer .box-container .text::-webkit-scrollbar-thumb{
    background: var(--main-color);
    border-radius: 5rem;
}


.footer .box-container .box h3{
    font-size: 2.5rem;
    color:var(--text-color-1);
    padding:1rem 0;
}

.footer .box-container .box a{
    display: block;
    font-size: 1.5rem;
    color:var(--text-color-2);
    padding:1rem 0;
}

.footer .box-container .box a i{
    padding-right: .5rem;
    color:var(--main-color);
}

.footer .box-container .box a:hover i{
    padding-right: 1.5rem;
}

.footer .credit{
    font-size: 1.5rem;
    padding:1rem;
    margin-top: 2rem;
    text-align: center;
    color:var(--text-color-1);
}

.footer .credit a{
	display: inline-block;
	text-decoration: none;
	color:var(--text-color-1);
}

.footer .credit a:hover{
	color:var(--main-color);
}

.footer .credit .ft,a{
	line-height: 2em;
}






/* media queries  */

@media (max-width:991px){

    html{
        font-size: 55%;
    }    

    .header{
        padding:1.5rem 2rem;
    }

    section{
        padding:2rem;
    }

}

@media (max-width:768px){

    .header .navbar{
        right: 2rem;
    }

    .header .search-form{
        right: 2rem;
        width:90%;
    }

    .header .colors-palette{
        right: 2rem;
    }

    .home .content{
        padding:3rem;
    }

}

@media (max-width:450px){

    html{
        font-size: 50%;
    }   

    .contact form .inputBox input{
        width:100%;
    }

}




.dc-main{
    min-height: 100vh;
    display: grid;
    place-items: center;
	background-image: url(../images/th0.jpg) ;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.dc-main .content{
    border-radius: .5rem;
    
    padding:2rem 0rem;
    background: var(--bg-color-2);
    box-shadow: var(--box-shadow);
}

.dc-main .dc-text{
	max-width: 100rem;
	max-height: 62vh;
	overflow: auto;
	padding:0 5rem;
	text-align: justify;
}

.dc-main .content h3{
	text-align: center;
    color:var(--text-color-1);
    font-size: 3.5rem;
}

.dc-main .content p{
    color:var(--text-color-2);
    font-size: 1.6rem;
    padding: 1.5rem 0;
    line-height: 1.9;
		
}

.dc-main .content2{
	text-align: center;
	margin-top: 1rem;
}

.dc-main .content input{
	width: 160px;
}


.dc-text::-webkit-scrollbar{
    width:1rem;
	 border-radius: 5rem;
	background: var(--bg-color-1);
}

.dc-text::-webkit-scrollbar-track{
    background: transparent;
}

.dc-text::-webkit-scrollbar-thumb{
    background: var(--main-color);
    border-radius: 5rem;
}
