/* =========================
 * 资料页面专用样式
 * ========================= */
.lingxyh-source-page .src-index { 
	flex: 0 0 150px; 
	width: 150px; 
	align-self: flex-start; 
	position: sticky;
	top: 32px;
}
.lingxyh-source-page .src-index-list { 
	display: grid; 
	grid-template-columns: repeat(2, minmax(0, 1fr)); 
	gap: 10px; 
    margin-top: 15px;
}
.lingxyh-source-page .src-index  h3 {
    margin: 0 0 10px;
    font-size: 16px;
    display: flex;
}
.lingxyh-source-page .src-index h3:before {
    content: "";
    width: 3px;
    background: #dd3333b3;
    transform: translateX(-15px);
    margin-right: -3px;
    border-radius: 20px;
}
.lingxyh-source-page aside .is-active { 
	color: #fff; 
	background: #dd3333b3; 
	border-color: #dd3333b3; 
}
.lingxyh-source-page .src-index-list button:disabled {
	opacity: .3;
	cursor: default;
	pointer-events: none;
}

.lingxyh-source-page .src-summary .src-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid rgb(0 0 0 / 20%);
    margin-top: 5px;
}
.lingxyh-source-page [hidden] {
    display: none !important;
}
.lingxyh-source-page .src-summary h2{ 
    margin: 0;
    color: #333;
    font-size: 24px;
}
.lingxyh-source-page .src-summary p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #666;
}
.lingxyh-source-page .src-summary .src-list-head{
	display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    justify-items: start;
    align-items: center;
    margin-top: 5px;
}
.lingxyh-source-page .src-summary .src-filter p {
    font-size: 12px;
    color: #333;
    transform: translateY(3px);
}
.lingxyh-source-page .src-summary .src-filter span {
    color: #dd3333b3;
    font-weight: bold;
}
.lingxyh-source-page .src-summary .src-list-head span {
    color: #666;
    font-weight: bold;
    font-size: 12px;
    transform: translateY(3px);
}
.lingxyh-source-page .src-summary .src-list-head b {
    transform: translateY(3px);
}
.lingxyh-source-page .src-summary .src-list-head button{
    min-height: 30px;
    font-size: 12px;
    padding: 0px 10px;
}
.lingxyh-source-page .src-list { 
	display: flex; 
	flex-direction: column;
}
.lingxyh-source-page .src-card-main {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    transition: .2s;
    margin: 0;
    border-radius: 0;
}

.lingxyh-source-page .src-cover img { 
	display: block; 
	width: 90px; 
	height: 120px; 
	object-fit: cover; 
	border-radius: 10px; 
}
.lingxyh-source-page .src-body {
    display: grid;
    justify-content: start;
    align-items: center;
    gap: 10px;
}
.lingxyh-source-page .src-meta,
.lingxyh-source-page .src-tags {
    display: flex;
    gap: 5px 10px;
    color: #666;
    font-size: 12px;
    flex-wrap: wrap;
}
.lingxyh-source-page .src-tags span {
	display: inline-flex;
    padding: 3px 10px;
    border-radius: 5px;
    background: #dd33331a;
    color: #dd3333cc;
    font-size: 12px;
    transition: transform 0.5s ease;
}.lingxyh-source-page .src-tags span:hover {
    background: #dd3333b3;
    color: #fff;
    transform: translateY(-3px);
}
.lingxyh-source-page .src-side {	
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
    align-items: flex-end;
}
.lingxyh-source-page .src-side span { 
	color: #666; 
	font-size: 12px; 
}
.lingxyh-source-page .src-filter > div {   
	display: grid;
    flex-wrap: wrap;
    gap: 10px;
}
.lingxyh-source-page .src-filter-period > div{
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lingxyh-source-page .src-filter-type > div{
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lingxyh-source-page .src-filter-tags > div{
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.lingxyh-src-overlay[hidden] { 
	display: none; 
	}
.lingxyh-src-overlay [hidden] {
    display: none !important;
}
.lingxyh-src-overlay { 
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(20, 30, 50, .55);
    padding: 4vh 4vw;
    backdrop-filter: blur(4px);
}
.lingxyh-src-overlay .src-dialog { 
    width: min(760px, 100%);
    height: min(92vh, 760px);
    margin: auto;
    border-radius: 20px;
    overflow: hidden;
    padding: 20px;
    background: rgb(255 255 255 / 50%);
    border: 1px solid rgb(0 0 0 / 10%);
    box-shadow: 0 10px 15px rgb(0 0 0 / 50%);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    color: #333;
}
.lingxyh-src-overlay .src-close {
	position: absolute;
    right: 14px;
    top: 10px;
    border: 0;
    background: transparent;
    font-size: 32px;
    cursor: pointer;
    color: #ddd;
}
.lingxyh-src-overlay .src-dialog > header {
    padding: 0 15px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: #333;
}
.lingxyh-src-overlay .src-detail {
    overflow: auto;
    padding: 0 10px;
    width: min(84vw, 710px);
    height: min(84vw, 620px);
    min-height: 480px;
    margin: 15px auto;
}

.lingxyh-src-overlay .src-detail::-webkit-scrollbar{
  width: 8px;
}
.lingxyh-src-overlay .src-detail::-webkit-scrollbar-track
{
  background: #f1f1f1;
  border-radius: 4px;
}
.lingxyh-src-overlay .src-detail::-webkit-scrollbar-thumb{
  background-color: #e26c6c;
  border-radius: 4px;
}
.lingxyh-src-overlay .src-detail section { 
    padding: 15px;
    background: rgb(255 255 255 / 40%);
    border: 1px solid rgb(0 0 0 / 10%);
    border-radius: 15px;
}
.lingxyh-src-overlay .src-detail section + section { 
	margin-top: 10px; 
}
.lingxyh-src-overlay .src-detail h3 { 
	margin: 0 0 10px; 
	font-size: 14px; 
}
.lingxyh-src-overlay .src-detail p { 
	margin: 0; 
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.lingxyh-src-overlay .src-grid { 
	display: grid; 
	grid-template-columns: repeat(2, minmax(0, 1fr)); 
	gap: 10px; 
}
.lingxyh-src-overlay .src-grid > div {
    padding: 10px;
    background: rgb(255 255 255 / 40%);
    border-radius: 10px;
}
.lingxyh-src-overlay .src-grid span {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 10px;
    line-height: 1;
}
.lingxyh-src-overlay .src-grid b { 
	overflow-wrap: anywhere; 
}
.lingxyh-src-overlay .src-grid .src-wide { 
	grid-column: 1 / -1; 
}
.lingxyh-src-overlay .src-count-row > div {
	display: flex;
    justify-content: space-between;
    align-items: center;
}
.lingxyh-src-overlay .src-count-row > div .lingxyh-btn {
    padding: 0;
    min-height: 0;
    width: 25px;
    height: 25px;
    text-align: center;
    border-radius: 50px;
    border: 1px solid rgb(0 0 0 / 20%);
    margin-top: -15px;
    margin-right: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lingxyh-src-overlay .src-actions > div { 
	display: flex; 
	flex-wrap: wrap; 
	gap: 10px; 
}
.lingxyh-src-overlay .relation-section p b {
    color: #dd3333b3;
    font-size: 20px;
}
.lingxyh-src-overlay .related-list {
    font-size: 12px;
    display: grid;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: auto auto minmax(0, 1fr) 50px;
}
.lingxyh-src-overlay .related-list > div{
    margin-left: 10px;
    color: #999;
}
.lingxyh-src-overlay .related-list p{
	color: #666;
    grid-column: 4;
}
.lingxyh-src-overlay .related-list:hover p {
	color: #ccc;
}
.lingxyh-src-overlay .lingxyh-btn{
    padding: 5px 10px;
}
.lingxyh-src-overlay .relation-section .lingxyh-btn{
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
}

.lingxyh-src-overlay .relation-section .relation-list{
    margin-top: 10px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lingxyh-src-overlay .relation-section .relation-list a{
    background: rgb(255 255 255 / 30%);
    color: #999;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 25px;
    cursor: pointer;
    padding: 0px 10px;
    border-radius: 10px;
    border: 1px solid rgb(0 0 0 / 10%);
    box-shadow: 0 2px 5px rgb(0 0 0 / 15%);
    transition: transform 0.5s ease;
}
.lingxyh-src-overlay .relation-section .relation-list a:hover {
    color: #fff !important;
    background: #dd3333b3 !important;
    border-color: #dd3333b3 !important;
    transform: translateY(-3px);
    opacity: 0.7;
}

@media screen and (max-width: 750px) {
	.lingxyh-source-page .lingxyh-content { flex-wrap: wrap;gap: 0; }
	.lingxyh-source-page .lingxyh-main { width: 100%; min-width: 0; }
	.lingxyh-source-page .src-index { flex: 1 1 100%; width: 100%; position: static; }
	.lingxyh-source-page .src-index-list { display: flex; flex-wrap: wrap; }
	.lingxyh-source-page .src-index-list button { width: auto; }
}
@media (max-width: 768px) {
	.lingxyh-src-overlay {
		padding: 0;
	}
	.lingxyh-src-overlay .src-dialog{
		width: 100%;
		height: 100%;
		border-radius: 0;
        padding: 0;
        padding-top: 20px;
	}
    .lingxyh-src-overlay .src-detail {
        width: 100%;
        min-height: 520px;
        height: 84vh;
    }
}
@media screen and (max-width: 480px) {
	.lingxyh-source-page .src-card-main {
		grid-template-columns: 60px minmax(0, 1fr) auto;
	}
	.lingxyh-source-page .src-cover img { 
		width: 60px; height: 80px; 
	}
}
@media screen and (max-width: 400px) {
	.lingxyh-source-page .src-side { 
		grid-column: 1 / -1; 
		flex-direction: row; 
		align-items: center; 
		justify-content: flex-end; 
	}
}

.src-list article .lingxyh-glass:hover {
    transform: unset;
}
.src-list > article {
	overflow: hidden;
	transition: transform .5s ease, border-radius .5s ease, box-shadow .5s ease;
}

.src-list > article:first-child {
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
}

.src-list > article:last-child {
	border-bottom-left-radius: 15px;
	border-bottom-right-radius: 15px;
}

/* 当前悬停 */
.src-list > article:hover {
	transform: translateY(-3px);
	border-radius: 15px !important;
	z-index: 10;
}

/* 悬停项的上一张：底部两个角圆 */
.src-list > article:has(+ article:hover) {
	border-bottom-left-radius: 15px;
	border-bottom-right-radius: 15px;
}

/* 悬停项的下一张：顶部两个角圆 */
.src-list > article:hover + article {
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
}

/* 只有一张 */
.src-list > article:only-child {
	width: 100%;
	border-radius: 15px;
	overflow: hidden;
}
