/* =========================
 * 模板页面通用样式
 * ========================= */
.lingxyh-content{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
	transform: none;
}
.lingxyh-main{
    width: 100%;
    -webkit-transition-duration: .5s;
    transition-duration: .5s; 
    margin: 0 0 10px;
}
.lingxyh-sidebar{
    width: 100%;
    max-width: 300px;
    transition-duration: .3s;
    -webkit-transition-duration: .3s;
    height: fit-content;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}
.lingxyh-sidebar .lingxyh-glass h3 {
    margin: 0 0 10px;
    font-size: 16px;
	display: flex;
}
.lingxyh-sidebar .lingxyh-glass h3:before {
	content: "";
	width: 3px;
	background: #dd3333b3;
	transform: translateX(-15px);
	margin-right: -3px;
	border-radius: 20px;
}
.lingxyh-sidebar .widget-title {
    padding-left: 15px;
    background: rgb(255 255 255 / 30%);
    height: 38px;
    line-height: 38px;
    margin: 1px 1px 0 1px;
    border-radius: 8px 8px 0 0;
}
@media screen and (max-width: 1025px) {
    .lingxyh-sidebar {
        display: none;
    }
}
/* 通用-玻璃效果 */
.lingxyh-glass {
    -webkit-backdrop-filter: saturate(5) blur(20px);
    backdrop-filter: saturate(5) blur(20px);
    background: #ffffffb3;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.073) inset;
	color: #333;
    margin: 0 0 10px;
    transition: transform 0.5s ease;
}
.lingxyh-glass:hover{
    transform: translateY(-3px);
}
/* 通用-按键 */
.lingxyh-btn {
    cursor: pointer;
    min-height: 35px;
    padding: 0px 12px;
    border-radius: 10px;
    color: #333;
    background: rgb(255 255 255 / 66%);
    border: 1px solid rgb(0 0 0 / 10%);
    box-shadow: 0 2px 5px rgb(0 0 0 / 15%);
    transition: transform 0.5s ease;
}
.lingxyh-btn:hover{
    color: #fff !important;
    background: #dd3333b3 !important;
    border-color: #dd3333b3 !important;
    transform: translateY(-3px);
}

/* 通用-头部背景 */
.lingxyh-header{
	min-height:220px;
	padding:35px;
	border-radius:15px;
	color:#fff;
	box-shadow:0 20px 50px rgb(0 0 0 / 20%);
	position:relative;
	overflow:hidden;
    margin: 0 0 10px;
}
.lingxyh-header::before{
	content:"";
	position:absolute;
	inset:0;
	z-index:0;
	background:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.7)),var(--header-bg) center/cover no-repeat;
	transition:transform .5s ease-in-out,filter .5s ease-in-out;
}
.lingxyh-header:hover::before{
	transform:scale(1.05);
	filter:brightness(.7);
}
.lingxyh-header h1{
	font-size:42px;
	margin:.83em 0;
    text-align: center;
}
.lingxyh-header p{
	line-height:1.8;
	margin:1em 0;
    text-align: center;
}
.lingxyh-header .header-bg{
	display:grid;
	gap:20px;
	align-items:center;
	position:relative;
	z-index:2;
}

.header-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    z-index: 1;
}
@media(max-width:600px){
	.lingxyh-header{
		min-height:190px;
		padding:24px;
	}
	.lingxyh-header h1{
		font-size:34px;
	}
}
/* 通用-搜索和排序 */
.lingxyh-options {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    container-type: inline-size;
}

.lingxyh-search {
    flex: 999 1 225px;
    min-width: 225px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgb(0 0 0 / 20%);
    border-radius: 10px;
    background: rgb(255 255 255 / 50%);
}

.lingxyh-search > input {
    flex: 1 1 150px;
    min-width: 150px;
    padding: 10px 5px 10px 15px;
    border: 0;
    border-radius: 0;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.lingxyh-options > .lingxyh-search > div {
    flex: 0 0 auto;
    display: flex;
    padding: 0 10px;
    align-items: center;
}

.lingxyh-search-field {
    position: relative;
    display: flex;
    border: 1px solid rgb(0 0 0 / 20%);
    border-radius: 10px;
    overflow: hidden;
}

.lingxyh-search-field::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 50%;
    background: #dd3333b3;
    border-radius: 9px;
    transform: translateX(0);
    transition: transform .25s ease;
    pointer-events: none;
}

.lingxyh-search-field:has(> button:first-of-type.is-active)::before {
    transform: translateX(0);
}

.lingxyh-search-field:has(> button:last-of-type.is-active)::before {
    transform: translateX(100%);
}

.lingxyh-search-field:has(> button:first-of-type.is-active):has(> button:last-of-type:hover)::before {
    transform: translateX(100%);
}

.lingxyh-search-field:has(> button:last-of-type.is-active):has(> button:first-of-type:hover)::before {
    transform: translateX(0);
}

.lingxyh-search-field > button {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 5px 15px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #555;
    white-space: nowrap;
    cursor: pointer;
    transition: color .25s ease;
}

.lingxyh-search-field > button.is-active {
    color: #fff;
}

.lingxyh-search-field:has(> button:first-of-type.is-active):has(> button:last-of-type:hover) > button:first-of-type {
    color: #555;
}

.lingxyh-search-field:has(> button:first-of-type.is-active):has(> button:last-of-type:hover) > button:last-of-type {
    color: #fff;
}

.lingxyh-search-field:has(> button:last-of-type.is-active):has(> button:first-of-type:hover) > button:last-of-type {
    color: #555;
}

.lingxyh-search-field:has(> button:last-of-type.is-active):has(> button:first-of-type:hover) > button:first-of-type {
    color: #fff;
}

.lingxyh-sort {
    flex: 1 1 320px;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    font-size: 14px;
    background: rgb(255 255 255 / 50%);
    border: 1px solid rgb(0 0 0 / 20%);
    border-radius: 8px;
    container-type: inline-size;
}

.lingxyh-sort .sort-p {
    flex: 0 0 auto;
    margin: 0 5px;
    font-weight: bold;
    white-space: nowrap;
}

.lingxyh-sort-buttons {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(60px, 1fr));
}

.lingxyh-sort-buttons::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 33.333333%;
    height: 100%;
    background: #dd3333b3;
    border-radius: 10px;
    transform: translateX(0);
    transition: transform .25s ease;
    pointer-events: none;
}

.lingxyh-sort-buttons:has(> button:nth-of-type(1).is-active)::before {
    transform: translateX(0);
}

.lingxyh-sort-buttons:has(> button:nth-of-type(2).is-active)::before {
    transform: translateX(100%);
}

.lingxyh-sort-buttons:has(> button:nth-of-type(3).is-active)::before {
    transform: translateX(200%);
}

.lingxyh-sort-buttons:has(> button:nth-of-type(1):hover)::before {
    transform: translateX(0);
}

.lingxyh-sort-buttons:has(> button:nth-of-type(2):hover)::before {
    transform: translateX(100%);
}

.lingxyh-sort-buttons:has(> button:nth-of-type(3):hover)::before {
    transform: translateX(200%);
}

.lingxyh-sort-buttons > button {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: color .25s ease;
}

.lingxyh-sort-buttons > button.is-active {
    color: #fff;
    font-weight: bold;
}

.lingxyh-sort-buttons > button:hover {
    color: #fff;
    font-weight: bold;
}

.lingxyh-sort-buttons:has(> button:not(.is-active):hover) > button.is-active {
    color: #333;
    font-weight: normal;
}

.lingxyh-sort-arrow {
    display: none;
    margin-left: 8px;
}

.lingxyh-sort-buttons > button.is-active .lingxyh-sort-arrow {
    display: inline-block;
}

@container (max-width: 600px) {
    .lingxyh-search,
    .lingxyh-sort {
        flex-basis: 100%;
        width: 100%;
        min-width: 0;
    }

    .lingxyh-search > input {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
    }

    .lingxyh-sort {
        width: 100%;
    }
}

@container (max-width: 285px) {
    .lingxyh-sort .sort-p {
        display: none;
    }

    .lingxyh-sort-buttons {
        width: 100%;
        flex: 1 1 100%;
        grid-template-columns: repeat(3, 1fr);
    }
}
/* 通用-分页按键 */
.lingxyh-pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    gap: 5px;
}
.lingxyh-pagination .page-numbers {
    -webkit-backdrop-filter: saturate(5) blur(20px);
    backdrop-filter: saturate(5) blur(20px);
    background: #ffffffb3;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.073) inset;
    transition: transform 0.5s ease;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: unset;
    color: #666;
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-weight: bold;
    border: 1px solid rgb(0 0 0 / 20%);
}
.lingxyh-pagination .current {
    border-color: #dd3333b3;
    background: #dd3333b3;
    color: #fff;
}
.lingxyh-pagination .page-numbers:hover {
    transform: translateY(-3px);
    border-color: #dd3333b3;
    background: #dd3333b3;
    color: #fff;
}
/* 通用短代码专用样式。 */
.lingxyh-archive p .x-img{
	width: 14px;
    height: 14px;
    transform: translateY(2px);
}
.lingxyh-single .x-img{
	width: 16px !important;
    height: 16px !important;
    display: inline !important;
    transform: translateY(3px);
}