@import "./common.less";


body {
	font-size: var(--ft16);
	.d-flex;
	.flex-column;
	min-height: 100vh;

	@media (max-width: 768px) {}
}

main {}

:root {
	--loader-bg-color: #E5E7EB;
	/* 加载背景色 */
	--loader-shine-color: rgba(255, 255, 255, 0.2);
	/* 光效颜色 */
	--loader-animation-duration: 1.5s;
	/* 动画持续时间 */
}

.image-container {
	position: relative;
	background: #e6e5e53b;
}

/* 关键修改：使用::before伪元素替代原来的.loader-shine元素 */
.image-container::before {
	content: '';
	/* 伪元素必须有content属性 */
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	height: 100%;
	background: linear-gradient(to right,
			rgba(255, 255, 255, 0) 0%,
			var(--loader-shine-color) 50%,
			rgba(255, 255, 255, 0) 100%);
	animation: pulseLoader var(--loader-animation-duration) infinite;
	/* 加载完成后隐藏伪元素 */
	opacity: 1;
	transition: opacity 0.3s ease;
}

.image-container::after {
	background: border-radius;
}

/* 图片加载完成后隐藏伪元素动画 */
.image-container.loaded::before {
	opacity: 0;
	display: none;
}

.image-container.loaded {
	background: initial;
}

.image-loading {
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
}

.image-loaded {
	opacity: 1;
}

@keyframes pulseLoader {
	0% {
		transform: translateX(-100%);
	}

	100% {
		transform: translateX(100%);
	}
}

:root {
	--color-grad: linear-gradient(to bottom, #23819f 0%, #3ea6b4 100%);
	--color-grad-diagonal: initial;
	--color-cricle: #FFFBF4;
	--color-radius: 0;
}

.fill-circle {
	--x: 0%;
	--y: 0%;
	display: none;
	border-radius: var(--color-radius);
}


.capsule {
	z-index: 1;
	position: relative;
	color: var(--color-light)
}

.capsule:before {
	z-index: -1;
	content: "";
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	border-radius: var(--color-radius);
	background: var(--color-grad-diagonal);
}


.fill-circle {
	position: absolute;
	display: block;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	border-radius: inherit;
	overflow: hidden
}

.fill-circle:before {
	z-index: -1;
	content: "";
	position: absolute;
	display: block;
	top: var(--y);
	left: var(--x);
	aspect-ratio: 1/1;
	border-radius: 50%;
	background: var(--color-cricle);
	width: 100%;
	opacity: 1;
	transform: translate(-50%, -50%) scale(0)
}


.fill-circle:hover:before {
	animation: fill-circle-aniamtion 2s ease-out
}

@keyframes fill-circle-aniamtion {
	0% {
		transform: translate(-50%, -50%) scale(0);
		opacity: 1
	}

	to {
		transform: translate(-50%, -50%) scale(1.5);
		opacity: 0
	}
}

.capsule:not(.is-disabled):before {
	transition: transform .45s ease-out
}


header {
	--main: 1200px;
	background: #FFFBF4;
	position: sticky;
	top: 0;
	z-index: 1000;
	padding: var(--p20) 0;

	ul {
		.d-flex;
		.al-c;
		justify-content: space-between;
		align-items: center;
		gap: var(--p60);

		li {

			color: #000;

			&.layui-this,

			&:hover {
				color: var(--ftc);

			}

			&.layui-this a::before,
			&:hover a::before {
				width: 100%;
			}

			a {
				line-height: 1em;
				display: block;
				font-size: var(--ft18);
				text-decoration: none;
				position: relative;


				&::before {
					content: '';
					display: block;
					width: 0;
					bottom: -5px;
					position: absolute;
					left: 50%;
					transform: translateX(-50%);
					height: 2px;
					background: var(--ftc);
					transition: width 0.3s ease;
					background-color: var(--ftc);
				}



			}
		}
	}
	&.bgcolor{
	    
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	}
}
.bookNav{
   .d-flex;
   .al-c;
   gap: 5px;
    font-size: var(--ft14);
    
}

.Form {
	.d-flex;
	.al-c;

	button {
		flex-shrink: 0;
		background: initial;
		transition: all 0.3s ease;

		&:hover {
			cursor: pointer;
			scale: 0.9;
		}
	}

	input {
		flex: 1;
	}

	background-color: #fff;
	border-radius: 10px;
	padding: var(--p10) var(--p20);
	border: 1px solid var(--ftc);
	color: #000;
}

.IndexTitle {
	background: var(--ftc);
	display: inline-flex;
	.al-c;
	border-radius: 5px;
	gap: 10px;
	font-size: var(--ft24);
	padding: 5px 10px;
	color: #fff;

	.en {
		opacity: 0.8;
	}
}

.TopImg {
	.bg_img;
	padding: var(--p80) 0 var(--p25);
	color: #fff;
	background-image: url(../images/newbg.png);

	.layui-main {
		.d-flex;
		.al-fe;
		.jc-s;
	}

	h1 {
		font-size: var(--ft36);
	}

	nav {
		margin-top: var(--p40);
		font-size: var(--ft18);

		span {
			margin: 0 var(--p10)
		}
	}
a{
    color: #fff;
}
	form {
		width: 580px;
		max-width: 50%;
	}

	form button img {
		height: 29px;
	}
}

.HelpList {
	margin-top: var(--p50);

	.sub {

		padding-top: var(--p15);
		font-size: var(--ft14);
		display: none;
	}

	i {
		display: inline-block;
		transform: rotate(-45deg);
		transition: all 0.3s ease;
	}

	li {
		padding: vaR(--p15) 0;
		border-bottom: 1px solid #E5E5E5;

		.t1 {
			cursor: pointer;
			.d-flex;
			.al-c;
			.jc-s;
			color: var(--ftc)
		}

		&.active {
			i {

				transform: rotate(0deg);
			}
		}
	}


}
.layui-btn{
    &:hover{
        
    border-color: var(--ftc);
    }
}
.bookDetailsMain{
    .Info{
        margin-top: vaR(--p80);
        .d-grid;
        grid-template-columns:0.4fr 1fr;
        gap: vaR(--p60);
        .img{
            min-height: 350px;
            border: 1px solid #e3e3e3;
        }
        h1{
            font-size: vaR(--ft24);
            margin-bottom: vaR(--p40);
        }
        dl{
            .d-grid;
            gap: var(--p15);
            dd{
                .d-grid;
                grid-template-columns: 6em 1fr;
                gap: vaR(--p10);
            }
            .t1{
                color: #000;
            }
            span{
                color: #666;
            }
        }
    }
    .down{
            .d-grid;
        grid-template-columns:0.4fr 1fr;
        gap: vaR(--p60);
        margin-top: vaR(--p80);
        padding-bottom: var(--p60) ;
        border-bottom: 1px solid #e3e3e3;
        .layui-btn{
            border-radius: 0;
        }
    }
}
#tabHeader {
	font-size: var(--ft20);
	.flex-center;
	gap: var(--p60);

	.item {
		cursor: pointer;
		position: relative;
		line-height: 2em;

		&::before {
			content: '';
			display: block;
			width: 0;
			position: absolute;
			height: 2px;
			background: var(--ftc);
			left: 50%;
			transform: translateX(-50%);
			transition: width 0.3s ease;
			margin-top: 5px;
			bottom: 0;
		}

		&.layui-this {
			color: var(--ftc);

			&::before {
				width: 30px
			}

		}
	}
}

.IndexAbout {
	.bg_fixed;
	background-image: url(../images/indexbg2.png);
	--main: 1400px;

	.layui-main {
		padding: var(--p40) 0 var(--p40) var(--p100);
		background: #fff;
		.d-grid;
		.al-c;
		gap: var(--p50);
		grid-template-columns: 1fr 1fr;
	}

	h1 {
		font-size: var(--ft24);
		margin-top: var(--p35);
		font-weight: normal;
	}

	.sub {
		font-weight: bold;
		margin-top: var(--p35);
		font-size: var(--ft14);
	}

	.Img {
		position: relative;

		width: fit-content;
		height: fit-content;


		&::before {
			position: absolute;
			left: var(--p15);
			top: var(--p15);
			content: '';
			display: block;
			width: 100%;
			height: 100%;
			background: #EDE1E3;
			z-index: 1;
		}

		img {
			position: relative;
			z-index: 5;
			flex-shrink: 0;


		}
	}
}

.layui-btn {
	color: #fff;
	min-width: 160px;
	border-radius: 25px;
	transition: all 0.3s ease;

	&:hover {
		color: #fff;
		opacity: 1;
		box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
	}

}

.pagenum {
	.flex-center;
	margin-top: var(--p40);
		.next-page,
	.prev-page{
	    i{
	        font-size: var(--ft12);
	    }
	}
	.next-page,
	.prev-page,
	 a,  span{
	    margin: 0;
	    font-size: var(--ft12);
    border: 1px solid #eee;
	}
}
.pagenum a:hover{
 
  color: var(--ftc);  
  background: #fff;
 border: 1px solid #eee;
}
.pagenum span:not(:first-child, :last-child){
    background:  var(--ftc);
    border-color: var(--ftc);
color: #fff;
    
}
.layui-laypage a:hover {
	color: var(--ftc);
}

.layui-laypage .layui-laypage-curr .layui-laypage-em {
	background-color: var(--ftc);
}

.IndexNews {
	--main: 1200px;

	.foot {
		.flex-center;
		margin-top: var(--p30);
	}

}

.newslist {
	.item {
		display: block;
		padding: var(--p25) 0;
		border-bottom: 1px solid #E5E5E5;

		h5 {
			.line-clamp1;
			font-size: var(--ft20);
			font-weight: normal;
		}

		.date {
			color: #999999;

			font-size: var(--ft14);
		}

		.sub {
			margin-top: var(--p10);

			font-size: var(--ft14);
			.line-clamp3;
			height: 4.2em;
			line-height: 1.4em;
		}

		.more {
			.d-flex;
			.jc-fe;
			font-size: var(--ft16);
			margin-top: vaR(--p10);
			color: #7B0C1F;
		}
	}
}

.IndexSearch {
	padding: var(--p100) 0 var(--p300);
	.bg_fixed;
	--main: 1400px;

	.Form {
		max-width: 65%;
		margin: var(--p40) auto 0;
	}

	ul {
		margin-top: var(--p160);
		.d-grid;
		grid-template-columns: 0.6fr 0.4fr 1fr;
		gap: var(--p10);
		height: 380px;

		li {
			gap: var(--p10);
			.d-grid;
		}

		li:nth-child(1) {
			grid-template-rows: 0.7fr 1fr;
		}

		li:nth-child(3) {
			grid-template-rows: 1fr 0.7fr;
		}

		.index1box {
			.d-grid;
			grid-template-columns: 1fr 1fr;
			gap: var(--p10);
		}

		.indexbox3 {
			.d-grid;
			grid-template-columns: 1fr 1fr;
			gap: var(--p10);
		}

		.indexbox4 {
			.d-grid;
			grid-template-columns: 1fr 1fr 1fr;
			gap: var(--p10);
		}

		a {
			flex: 1 1 auto;
			color: #fff;
			font-size: var(--ft24);
			padding: var(--p20);
			display: block;
			position: relative;
			transition: all 0.3s ease;
			overflow: hidden;

			&:hover {
				img {
					scale: 1.1;
				}
			}

			span {
				position: relative;
				z-index: 1;
			}

			img {
				position: absolute;
				left: 0;
				right: 0;
				top: 0;
				transition: all 0.8s ease;
				width: 100%;
				height: 100%;
				object-fit: cover;
			}
		}
	}
}

footer {
	font-size: var(--ft18);
	background: var(--bgc);
	color: #fff;

	.foot1 {
		text-align: center;
		padding: var(--p50) 0;
	}

	nav {
		.d-grid;
		gap: var(--p10);
	}

	a {
		color: #fff;
		margin: 0 var(--p10);
		display: inline-block;
		transition: all 0.3s ease;

		&:hover {
			opacity: 0.8;
		}
	}

	.foot2 {
		text-align: center;
		padding: 0 0 var(--p30);
		font-size: var(--ft14);
		color: #ccc;
	}
}

.About {
    .s_content{
        section{
            padding: unset;
        }
    }

	h1 {
		font-size: var(--ft20);
		text-align: center;
		font-weight: bold;
	}

	.con {
		margin-top: var(--p40);
		font-size: var(--ft14);
	}
}  
.BookMain{
    .d-grid;
    grid-template-columns: 0.2fr 1fr;
    gap: var(--p30);
    .title{
        .d-flex;
        .al-c;
        .jc-s;
        margin-bottom: vaR(--p30);
        h1{
            font-size: vaR(--ft24);
        }
        .Form{
            width: 40%;
            img{
                height: 30px;
            }
        }
    }
    .allnum{
        
        span{
        border-left: 2px solid var(--ftc);
           line-height: 1.5em;
           display:block;
            padding-left: 0.5em;
        }
        background: #FFFBF4;
        padding:5px var(--p15);
        margin-bottom: vaR(--p40);
    }
}
.bookList{
        .d-flex;
        gap: vaR(--p40) var(--p15);
        flex-wrap: wrap;
        .img{
            img{
                
            height: 300px;
            }
        }
        .item{
            position: relative;
        }
        h5{
            margin-top: 5px;
            position: absolute;
            left: 0;
            right: 0;
            top: 100%;
            .line-clamp1;
        }
    }
.BookSilder{
    position: sticky;
    top: 0;
    background: #fffbf4;
    font-size: var(--ft14);
    .t1{
        background: vaR(--ftc);
        color: #fff;
        text-align: center;
        padding: 5px vaR(--p10);
    }
    .body{
        padding: var(--p10);
    }
    ul{
        font-size: vaR(--ft12);
        .d-grid;
        gap: 5px;
    }
    dl{
        padding-left: 1em;
    }
    .t2{
        .d-flex;
        .al-c;
        .jc-s;
        margin: var(--p20) 0 var(--p10);
        border-bottom: 1px dashed #999;
        i{
            transition: all 0.3s;
    transform: rotate(-90deg);
        }
        &.active{
            .ftc;
            i{
                
    transform: rotate(0);
            }
        }
    }
    .item{
        background: initial;
        .d-flex;
        width: 100%;
        .al-c;
        .jc-s;
        cursor: pointer;
        &:hover,
        &.active{
            .ftc;
        }
    }
   
}
@media only screen and (max-width: 1400px) {
    .IndexSearch ul a{
        font-size: vaR(--ft16);
    }
    .IndexSearch ul{
        height: 320px;
    }
}

@media only screen and (max-width: 990px) {
    .BookMain{
        .grid1;
    }
    .bookList .img img{
        height: 100px;
    }
     .BookSilder form,
    .BookSilder ul{
        gap: 10px;
        .d-flex;
        flex-wrap: wrap;
    }
    .BookSilder .item{
        width: auto;
        gap: 5px;
    }
 
       .bookDetailsMain{
           padding-top: 60px;
       }
    .bookDetailsMain .Info .img{
        min-height: auto;
    }
    .bookDetailsMain .down,
    .bookDetailsMain .Info{
        .grid1;
    }
:root{
    
    --btn:35px;
    --btn_size: 12px;
}
	.IndexSearch {
		padding: 80px 0;
	}

	.TopImg {
		padding: 80px 0 var(--p20);

	}

	.TopImg form {
		padding: 5px 10px;
	}

	.navMobile li>a {
		display: inline-block;
	}

	.Form button img {
		height: 20px;
	}

	header {
		position: fixed;
	}

	.IndexAbout .Img {
		max-width: 80%;
	}

	.IndexAbout .layui-main {
		padding: var(--p40);
	}

	.menu_button .line {
		stroke: var(--ftc);
	}

	.logo img {
		max-height: 20px;

	}

	.IndexAbout .Img img {
		max-width: 100%
	}

	.IndexSearch ul {
		.grid1;
		height: auto;
	}

	.IndexAbout .layui-main {
		.grid1;
	}

	.IndexSearch ul li:nth-child(2) {
		.grid2;

	}

	.IndexSearch ul a {
		min-height: 100px;
	}
}

@media only screen and (max-width: 768px) {}

@media only screen and (min-width: 751px) and (max-width: 1400px) {}

@media only screen and (min-width: 751px) {}