/* =========================
 * 词条页面专用样式
 * ========================= */
 
 /* 词条页-头部背景 */
.lingxyh-single .lingxyh-header h1{
    text-align: unset;
}
.lingxyh-single .lingxyh-header p{
	max-width:720px;
    text-align: unset;
}
.lingxyh-single .lingxyh-header p a{
    color: #dd3333b3;
    font-weight: bold;
}
.lingxyh-single .lingxyh-header p a:hover{
    color: #333;
}
.lingxyh-single .lingxyh-header .header-bg{
	grid-template-columns:minmax(0,1fr) 260px;
}
@media(max-width:550px){
	.lingxyh-single .lingxyh-header .header-bg{
		grid-template-columns:1fr;
	}
}
.lingxyh-single .single-header-button{
	margin-top:15px;
}
.lingxyh-single .single-header-button .lingxyh-btn{
	background:rgb(255 255 255 / 20%);
	color:#fff;
}
.lingxyh-single .lingxyh-header .single-header-img{
	overflow:hidden;
	border-radius:15px;
	transition:transform .5s ease-in-out;
}
.lingxyh-single .lingxyh-header .single-header-img:hover{
	transform:scale(1.05);
}
.lingxyh-single .single-header-img img{
	display:block;
	width:100%;
	height:170px;
	object-fit:cover;
	border:1px solid rgba(255,255,255,.3);
	border-radius:15px;
}

/* 词条页-词条卡片 */
.single-card {
    padding: 20px;
}

.card-profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 15px;
}
.card-profile-main h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.card-profile-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    color: #333;
    font-size: 13px;
}
.card-profile-intro {
    margin: 10px 0 0;
    line-height: 1.8;
    font-size: 15px;
    min-height: 100px;
}
.card-profile-intro a{
    color: #dd3333b3;
    font-weight: bold;
}
.card-profile-intro a:hover{
    color: #333;
}
.card-profile-aside {
    border-left: 1px solid rgb(0 0 0 / 10%);
    padding-left: 15px;
}
.card-profile-aside h3 {
    margin: 0 0 10px;
    font-size: 16px;
}
.card-profile-aside p {
    margin: 0;
    line-height: 1.8;
    color: #666;
    font-size: 15px;
}
.card-profile-aside a{
    color: #dd3333b3;
    font-weight: bold;
}
.card-profile-aside a:hover{
    color: #333;
}
.card-button {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgb(0 0 0 / 10%);
    justify-content: flex-end;
}
.card-button .zm{
    margin-right: 5px;
}

/* 词条页-页面目录 */
.single-directory nav::-webkit-scrollbar{
  width: 8px;
}
.single-directory nav::-webkit-scrollbar-track
{
  background: #f1f1f1;
  border-radius: 4px;
}
.single-directory nav::-webkit-scrollbar-thumb{
  background-color: #e26c6c;
  border-radius: 4px;
}
.single-directory{	
    list-style: none;
    height: 100%;
    max-height: 360px;
    padding: 5px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 15px;
	font-size: 16px;
	box-sizing: border-box;
}
.single-directory h3{	
    margin: 0 0 10px;
	font-size: 16px;
}

.single-directory nav {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 360px;
    padding-right: 10px;
    overflow-x: hidden;
    overflow-y: auto;
}
.directory-1:not(:last-child){
    border-bottom: 1px solid rgb(0 0 0 / 10%);
}
.directory-2 > a{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    font-weight: normal;
}
.directory-2 > a > span{
    margin: auto 3px;
}
.directory-2 > p{
    font-weight: 600;
}
.single-directory a{
	text-decoration: none;
    color: #555;
    display: flex;
    align-items: flex-start;
    padding: 5px;
    transition: all 0.3s ease;
    border-radius: 4px;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    margin: 5px 0;
}
.single-directory a:hover {    
	transform: translateX(5px);
    background: #dd333380;
    color: #fff;
    font-weight: bold;
}
.directory-1 > a{
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}
.directory-2 > a{
    font-weight: 400;
    font-size: 13px;
    line-height: 1.3;
    padding-left: 18px;
}
.directory-p > a{
    font-weight: unset;
    font-size: 12px;
    line-height: 1.2;
    padding-left: 28px;
}
/* 词条页-卡片 */
.single-content-card .single-directory{
	display: none;
}
.single-content-card .directory-overview {
	display: none;
}
@media screen and (min-width: 601px) and (max-width: 1025px) {
	.single-content-card .single-directory{
		display: flex;
		position: absolute;
		inset: 0 auto 0 0;
		width: 180px;
		height: 100%;
		max-height: none;
		min-height: 0;
	}
	.single-content-card .single-directory nav {
		max-height: none;
	}
    .single-content-card.has-directory {
        position: relative;
        display: block;
        padding-left: 190px;
    }
}
@media (max-width: 700px) {
    .card-profile {
        grid-template-columns: 1fr;
    }
    .single-card .card-profile-aside {
        margin-top: 15px;
        padding: 15px 0 0;
        border-top: 1px solid rgb(0 0 0 / 10%);
        border-left: 0;
	}
	.card-profile-intro {
		min-height: 50px;
}
}
@media (max-width: 600px) {
    .single-content-card.has-directory{
        display: block;
        padding-left: 0;
    }
    .single-directory nav {
        max-height: 180px !important;
	}
	.single-content-card .single-directory {
		display: flex;
		position: static;
		width: auto;
		height: auto;
		margin-bottom: 10px;
	}
}
/* 词条页-分类标签 */
.single-content-taxonomy{
    margin-top: 10px;
    padding: 15px;
}
.single-content-taxonomy h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.taxonomy-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.taxonomy-Level-1 {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgb(0 0 0 / 10%);
    border-radius: 10px;
    background: rgb(255 255 255 / 70%);
}
.taxonomy-Level-1 > a {
    display: flex;
    align-items: center;
    padding: 10px;
    border-right: 1px solid rgb(85 85 85 / 20%);
    background: rgba(199, 207, 216, .46);
    color: #333;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
}
.taxonomy-Level-2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    padding: 10px;
}
.taxonomy-Level-2 > a,
.taxonomy-Level-3 > div a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgb(85 85 85 / 20%);
    border-radius: 7px;
    background: rgb(255 255 255 / 70%);
    color: #333;
    font-size: 12px;
}
.taxonomy-Level-2 > a:hover,
.taxonomy-Level-3 > div a:hover {
    color: #fff;
    border-color: #dd3333b3;
    background: #dd3333b3;
}
.taxonomy-tag {
    display: block;
    padding: 0;
}
.taxonomy-Level-3 {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: center;
    min-height: 50px;
}
.taxonomy-Level-3 + .taxonomy-Level-3 {
    border-top: 1px solid rgb(85 85 85 / 20%);
}
.taxonomy-Level-3 > a {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 10px;
    border-right: 1px solid rgb(85 85 85 / 20%);
    color: #666;
    font-size: 12px;
    justify-content: center;
}
.taxonomy-Level-3 > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
}
/* 词条页-条目 */
.single-content-info{
	margin-top: 10px;
    columns: 3 270px;
    column-gap: 10px;	
}
.info-card {
	break-inside: avoid;
    margin: 0 0 10px;
    padding: 15px;
}
.info-card h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 16px;
}

.info-card h3 small {
    color: #666;
    font-size: 11px;
    font-weight: 500;
}
.data-row{
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgb(85 85 85 / 10%);
    font-size: 13px;
    line-height: 1.8;
}
.data-row a{
    color: #dd3333b3;
    font-weight: bold;
}
.data-row a:hover{
    color: #333;
}
.data-row:last-child {
    border-bottom: 0;
}
.data-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.data-tag-row > a {
    display: inline-flex;
    padding: 3px 15px;
    border-radius: 5px;
    background: #dd33331a;
    color: #dd3333cc;
    font-size: 12px;
    transition: transform 0.5s ease;
}
.data-tag-row > a:hover{
	background: #dd3333b3;
    color: #fff; 
    transform: translateY(-3px);
}


/* 词条页-资料来源 */
.single-content-match{
    margin-top: 10px;
    padding: 20px;
}
.single-content-match h2 {
    margin: 0 0 15px;
    font-size: 18px;
}
.match-1 {
    overflow: hidden;
    border: 1px solid rgb(51 51 51 / 20%);
    border-radius: 15px;
    color: #333;
}
.match-1 + .match-1 {
    margin-top: 10px;
}
.match-1-button {
    cursor: pointer;
    width: 100%;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    min-height: 50px;
    padding: 0 15px;
    font-weight: bold;
    color: #333;
    background: #ffffff80;
}
.match-1-button:hover {
    background: #dd3333b3;
    color: #fff;
}
.match-1-body {
    padding: 10px;
    border: 1px solid rgb(51 51 51 / 20%);
    background: rgb(255 255 255 / 20%);
}
.match-2 {
    overflow: hidden;
    border: 1px solid rgb(51 51 51 / 20%);
    border-radius: 10px;
    color: #333;
    background: rgb(255 255 255 / 20%);
}
.match-2 + .match-2 {
    margin-top: 10px;
}
.match-2-button {
    cursor: pointer;
    width: 100%;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
    color: #333;
    background: rgb(255 255 255 / 20%);
}
.match-2-button:hover {
    background: #dd3333b3;
    color: #fff;
}
.match-2-button > span > span {
    margin: auto 3px;
}
.lingxyh-entry-source-content {
    padding: 15px;
    border-top:  1px solid rgb(51 51 51 / 20%);
    color: #333;
    background: rgb(255 255 255 / 20%);
}
/* 词条页-图册 */
.single-gallery{
    padding: 15px;
}
.single-content-info > .single-gallery h3{
    margin: 0 0 10px;
    font-size: 16px;
}
.single-content-info > .single-gallery {
    display: block;
    break-inside: avoid;
    margin: 0 0 10px;
}
.gallery-list{
    position: relative;
    height: 260px;
    perspective: 900px;
}
.gallery-card {
    position: absolute;
    left: 50%;
    top: 0;
    width: 100%;
    height: 250px;
    z-index: 0;
    transform: translate3d(-50%, 18px, 0) scale(.91);
    border: 1px solid #888888b3;
    border-radius: 15px;
    background: rgba(255, 255, 255, .10);
    box-shadow: 0 12px 26px rgba(18, 30, 45, .16);
    backdrop-filter: blur(18px) saturate(108%);
    -webkit-backdrop-filter: blur(18px) saturate(108%);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform .36s ease, opacity .36s ease, filter .36s ease;
    will-change: transform, opacity;
}
.gallery-card.is-active {
    z-index: 3;
    transform: translate3d(-50%, 0, 0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.gallery-card.is-next {
    z-index: 2;
    transform: translate3d(-50%, 10px, 0) scale(.96);
    opacity: .72;
    filter: brightness(.92);
}
.gallery-card.is-after-next {
    z-index: 1;
    transform: translate3d(-50%, 20px, 0) scale(.91);
    opacity: .42;
    filter: brightness(.84);
}
.gallery-card.is-leaving-up {
    transform: translate3d(-50%, -18px, 0) scale(.94);
}
.gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-meta {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 11px;
    color: #fff;
    font-size: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.gallery-count {
    padding: 0px 8px;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 20px;
    background: rgb(255 255 255 / 15%);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.gallery-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    background: linear-gradient(transparent, rgb(0 0 0 / 70%));
}
.gallery-controls {
	display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}
.gallery-controls button {
    width: 30px;
    height: 30px;
    border: 1px solid rgb(0 0 0 / 10%);
    border-radius: 8px;
    background: rgb(255 255 255 / 30%);
    color: #333;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}
.gallery-controls button:hover {
    background: #dd3333b3;
    color: #fff;
}

/*词条页-标题红边*/
.card-profile-main h2,
.single-directory h3,
.single-content-taxonomy h2,
.info-card h3 div,
.single-content-match h2,
.single-content-info > .single-gallery h3{
    display: flex
}
.card-profile-main h2:before,
.single-directory h3:before,
.single-content-taxonomy h2:before,
.info-card h3 div:before,
.single-content-info > .single-gallery h3:before,
.single-content-match h2:before{
    content: "";
    width: 3px;
    background: #dd3333b3;
    transform: translateX(-15px);
    margin-right: -3px;
    border-radius: 20px;
}
.card-profile-main h2:before,
.single-content-match h2:before{
    transform: translateX(-20px);
}

