/* =========================
 * 日历页面
 * ========================= */
.lingxyh-template-calendar .hidden,
.lingxyh-calendar-overlay .hidden,
.lingxyh-calendar-overlay[hidden] { display: none !important; }

.lingxyh-calendar-today {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
}
.calendar-today-item { text-align: center; }
.calendar-today-item b { display: block; margin-bottom: 5px; color: #dd3333; font-size: 21px; }
.calendar-today-item span { color: #666; font-size: 12px; }

.lingxyh-calendar-left {
    flex: 0 0 150px;
    width: 150px;
    height: fit-content;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}
.lingxyh-calendar-right {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    height: fit-content;
}
.lingxyh-calendar-main > h2 { margin: 0; }


.month-list { display: grid; gap: 5px; }
.month {
    width: 100%;
    min-height: 30px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    border: 1px solid rgb(0 0 0 / 12%);
    border-radius: 8px;
    background: rgb(255 255 255 / 55%);
    color: #666;
}
.month:hover,.month.active { background: #dd3333b3; border-color: #dd3333b3; color: #fff; }
.month-count { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgb(221 51 51 / 10%); color: #a63e46; font-size: 9px; font-weight: 800; }
.month.active .month-count { background: rgb(255 255 255 / 22%); color: #fff; }
.lingxyh-calendar-left .lingxyh-glass h3 { margin: 0 0 10px; font-size: 16px; }
.folk-calendar-btn.active { background: #dd3333b3; border-color: #dd3333b3; color: #fff; }
.lingxyh-calendar-head { margin-bottom: 10px; }
.calendar-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.calendar-nav > button{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
@media screen and (max-width: 500px) {
	.calendar-nav > button span:first-of-type{
		display: none;
	}
}
@media screen and (max-width: 380px) {
	.calendar-nav > button{
		display: none;
	}
	.calendar-nav {
		display: unset;
	}
	.calendar-title-wrap{
		grid-template-columns: repeat(2, minmax(0, 1fr));
		display: grid;
		align-items: center;
	}
	.calendar-title-wrap > button:first-of-type{
		grid-column: 1;
	}
	.calendar-title-wrap > h2{
		grid-column: 1 / -1;
		grid-row: 1;
	}
	.calendar-title-wrap > button:last-of-type{
		grid-column: 2;
	}
}
.calendar-nav h2 { margin: 0; text-align: center; font-size: 22px; }
.lingxyh-calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; }
.day {
    position: relative;
    min-width: 0;
    min-height: 90px;
    padding: 8px;
    border: 1px solid rgb(0 0 0 / 10%);
    border-radius: 10px;
    background: rgb(255 255 255 / 58%);
    text-align: left;
    transition: transform .16s ease,background .16s ease,border-color .16s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.day:hover { transform: translateY(-2px); background: rgb(255 255 255 / 80%); }
.day.no-event { background: rgb(40 50 60 / 10%); color: rgb(32 36 43 / 58%); }
.day.has-event { background: rgb(255 255 255 / 72%); }
.day.today-day { background: #dd3333b3 !important; border-color: #dd3333b3 !important; color: #fff; }
.day.date-selected:not(.today-day) { outline: 2px solid #dd3333b3; outline-offset: -2px; }
.day-solar { display: block; font-size: 18px; font-weight: 800; line-height: 1.2; }
.day-lunar { display: block; margin-top: 5px; color: #666; font-size: 10px; line-height: 1.2; }
.today-day .day-lunar { color: rgb(255 255 255 / 82%); }
.day-term,.day-season { display: block; margin-top: 5px; color: #a63e46; font-size: 9px; font-weight: 700; }
.today-day .day-term,.today-day .day-season { color: #fff; }
.day-folk-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: stretch; gap: 5px; margin-top: 5px; }
.folk-type-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 20px; padding: 0 5px; border-radius: 5px; background: rgb(221 51 51 / 10%); color: #a63e46; font-size: 9px; font-weight: 800; white-space: nowrap; }
.today-day .folk-type-badge { background: rgb(255 255 255 / 18%); color: #fff; }
.calendar-empty-day { min-height: 90px; }
.calendar-related-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.calendar-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 64%); font-size: 11px; }
.calendar-chip:hover,.calendar-chip.active { background: #dd3333b3; color: #fff; }


.today-info-list,.folk-list,.stat-tag-list { display: grid; gap: 8px; }
.today-info-item,.folk-item,.stat-tag-card { border: 1px solid rgb(0 0 0 / 12%); border-radius: 10px; background: rgb(255 255 255 / 50%); }
.today-info-date { padding: 0 0 10px; margin-bottom: 10px; border-bottom: 1px solid rgb(0 0 0 / 12%); font-size: 12px; line-height: 1.8; }
.today-info-item { padding: 10px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 10px; cursor: pointer;justify-items: start; }
.today-info-name { min-width: 0; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-info-date-value { color: #666; font-size: 11px; white-space: nowrap; }
.today-info-meta { grid-column: 1 / -1; display: flex; gap: 5px; color: #666; font-size: 11px;line-height: 2;}


.lingxyh-calendar-overlay { position: fixed; inset: 0; z-index: 9999; padding: 8vh 4vw; background: rgba(20,30,50,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lingxyh-calendar-overlay .calendar-dialog { position: relative; width: min(760px,100%); max-height: 84vh; margin: auto; overflow: hidden; border: 1px solid rgb(0 0 0 / 10%); border-radius: 20px; background: rgb(255 255 255 / 50%); box-shadow: 0 10px 15px rgb(0 0 0 / 50%); -webkit-backdrop-filter: blur(50px); backdrop-filter: blur(50px); color: #333; }
.lingxyh-calendar-overlay .calendar-dialog > header { min-height: 50px; display: flex; align-items: center; justify-content: center; padding: 0 45px; border-bottom: 1px solid rgb(0 0 0 / 10%); font-weight: 700; text-align: center; }
.calendar-modal-body { padding: 15px; max-height: calc(84vh - 50px); overflow: auto; }
.calendar-close { position: absolute; z-index: 2; right: 14px; top: 8px; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: #666; }
.calendar-detail-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.calendar-back { width: 30px; height: 30px; border: 1px solid rgb(0 0 0 / 12%); border-radius: 50%; background: rgb(255 255 255 / 72%); display: flex; align-items: center; justify-content: center; padding: 0; font-size: 20px; }
.calendar-current-filter { margin-bottom: 10px; padding: 8px 10px; border-radius: 8px; background: rgb(221 51 51 / 8%); color: #9f444b; font-size: 12px; font-weight: 700; }
.folk-calendar-switch { display: flex; gap: 5px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid rgb(0 0 0 / 12%); }
.folk-month-filter {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 5px;
	margin-bottom: 10px;
}
.folk-month-filter .folk-month {
	width: 100%;
	min-width: 0;
	padding: 0 5px;
	font-size: 11px;
}
@media(max-width:700px){
	.folk-month-filter {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}
@media(max-width:500px){
	.folk-month-filter {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
@media(max-width:380px){
	.folk-month-filter {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.folk-item { padding: 10px; display: grid; grid-template-columns: minmax(0,1fr) 30px; align-items: center; gap: 8px; cursor: pointer; }
.folk-item-main { min-width: 0; }
.folk-item-titleline { display: flex; align-items: center; gap: 5px; min-width: 0; }
.folk-item-titleline b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folk-item-subline { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: #666; font-size: 11px; }
.folk-item-arrow { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 1px solid rgb(0 0 0 / 12%); border-radius: 50%; background: rgb(255 255 255 / 72%); font-size: 18px; }
.date-modal-nav { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; margin-bottom: 10px; }
.date-modal-center { text-align: center; }
.date-modal-center b { display: block; font-size: 14px; }
.date-modal-center small { display: block; margin-top: 2px; color: #666; font-size: 10px; }
.stat-tag-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
.stat-tag-card { min-height: 70px; padding: 8px; display: grid; grid-template-columns: minmax(0,1fr) 25px; grid-template-rows: auto 25px; gap: 5px; text-align: left; cursor: pointer; }
.stat-tag-name { grid-column: 1 / -1; min-width: 0; font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-tag-count,.stat-tag-arrow { width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.stat-tag-count { background: rgb(221 51 51 / 10%); color: #aa424a; font-size: 10px; font-weight: 800; }
.stat-tag-arrow { justify-self: end; border: 1px solid rgb(0 0 0 / 12%); background: rgb(255 255 255 / 76%); font-size: 18px; }
.calendar-toast { position: fixed; z-index: 5000; left: 50%; bottom: 30px; transform: translate(-50%,20px); opacity: 0; padding: 10px 15px; border-radius: 999px; background: rgb(15 22 32 / 92%); color: #fff; transition: .22s; }
.calendar-toast.show { opacity: 1; transform: translate(-50%,0); }

@media(max-width:820px) {
    .lingxyh-calendar-today { 
		grid-template-columns: 1fr 1fr;
        margin-bottom: 10px; 
	}
    .lingxyh-template-calendar .lingxyh-content { flex-direction: column; }
    .lingxyh-calendar-left { position: static; width: 100%; flex: 0 0 auto; }
    .month-list { grid-template-columns: repeat(6,minmax(0,1fr)); }
    .lingxyh-calendar-grid { gap: 5px; }
    .day { min-height: 75px; padding: 5px; }
    .calendar-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.lingxyh-calendar-left section:last-of-type {
		display: none;
	}
	.lingxyh-calendar-today .lingxyh-glass,
	.lingxyh-calendar-left .lingxyh-glass {
		margin: 0;
	}
	.calendar-today-item {
		padding: 5px;
	}
	.calendar-today-item b {
		display: block;
		color: #dd3333;
		font-size: 18px;
	}
}
@media(max-width:520px) {
    .lingxyh-template-calendar { width: min(100% - 10px,1200px); }
    .lingxyh-calendar-today { grid-template-columns: 1fr 1fr; }
    .month-list { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .calendar-nav h2 { font-size: 17px; }
    .day-solar { font-size: 15px; }
    .day-lunar { font-size: 9px; }
    .day-term,.day-season,.day-folk-types { display: none; }
    .calendar-related-grid,.folk-related-grid { grid-template-columns: 1fr; }
    .stat-tag-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 420px) {
    .month-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 320px) {
    .month-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
		
.lingxyh-template-calendar .calendar-stat-list {
	display: grid;
	gap: 0;
}
.lingxyh-template-calendar .calendar-stat-row {
	width: 100%;
	min-height: 40px;
	padding: 0 5px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	border: 0;
	border-bottom: 1px solid rgb(0 0 0 / 10%);
	background: transparent;
	color: #333;
	text-align: left;
	cursor: pointer;
	transition: color .2s ease, padding .2s ease;
}
.lingxyh-template-calendar .calendar-stat-row:last-child {
	border-bottom: 0;
}
.lingxyh-template-calendar .calendar-stat-row:hover span{
    color: #dd3333;
    transform: translateX(15px);
    font-weight: bold;
}
.lingxyh-template-calendar .calendar-stat-row span {
	min-width: 0;
	font-size: 13px;
	transition: transform 0.5s ease;
}
.lingxyh-template-calendar .calendar-stat-row b {
	flex: 0 0 auto;
	font-size: 14px;
	color: #dd3333;
}


.lingxyh-template-calendar .calendar-info-general b { font-size: 14px; }
.lingxyh-template-calendar .calendar-info-divider { margin: 10px 0; border: 0; border-top: 1px solid rgb(0 0 0 / 12%); }
.lingxyh-template-calendar .calendar-info-subtitle { margin: 0 0 8px; font-size: 13px; }
@media(max-width:600px){
	.lingxyh-template-calendar .calendar-nav { gap: 5px; }
	.lingxyh-template-calendar .calendar-title-wrap { gap: 5px; }
	
}


/* =========================
 * 日期选择弹窗
 * ========================= */
.calendar-date-picker-modal .calendar-dialog {
	width: min(440px, calc(100vw - 25px));
	max-height: none;
}
.calendar-date-picker-modal .calendar-dialog > header {
	height: 55px;
	padding: 0 15px;
	background: rgb(255 255 255 / 70%);
}
.calendar-date-picker-modal .calendar-modal-body {
	padding: 15px;
	overflow: visible;
}
.calendar-wheel-wrap {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	height: 210px;
	margin: 0 0 10px;
	overflow: hidden;
}
.calendar-wheel-wrap::before,
.calendar-wheel-wrap::after {
	content: "";
	position: absolute;
	z-index: 3;
	left: 0;
	right: 0;
	height: 80px;
	pointer-events: none;
}
.calendar-wheel-wrap::before {
	top: 0;
	background: linear-gradient(to bottom, rgb(248 250 252 / 100%), rgb(248 250 252 / 0%));
}
.calendar-wheel-wrap::after {
	bottom: 0;
	background: linear-gradient(to top, rgb(248 250 252 / 100%), rgb(248 250 252 / 0%));
}
.calendar-wheel {
	position: relative;
	z-index: 2;
	height: 210px;
	padding: 85px 0;
	overflow-y: auto;
	scroll-snap-type: y mandatory;
	scroll-behavior: auto;
	scrollbar-width: none;
	overscroll-behavior: contain;
	text-align: center;
}
.calendar-wheel::-webkit-scrollbar {
	display: none;
}
.calendar-wheel::before {
	content: "";
	position: absolute;
	left: 5px;
	right: 5px;
	top: 85px;
	height: 40px;
	border-top: 1px solid rgb(0 0 0 / 12%);
	border-bottom: 1px solid rgb(0 0 0 / 12%);
	background: rgb(255 255 255 / 35%);
	pointer-events: none;
}
.calendar-wheel button {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
	border: 0;
	background: transparent;
	color: #666;
	font-size: 13px;
	line-height: 1;
	scroll-snap-align: center;
	cursor: pointer;
	transition: color .18s ease, font-size .18s ease, transform .18s ease;
}
.calendar-wheel button.is-active {
	color: #222;
	font-size: 18px;
	font-weight: 700;
	transform: scale(1.05);
}
.calendar-wheel button:hover {
	color: #dd3333;
}
.calendar-picker-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 10px;
	border-top: 1px solid rgb(0 0 0 / 10%);
}
.calendar-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #666;
	font-size: 13px;
	cursor: pointer;
	user-select: none;
}
.calendar-switch input {
	display: none;
}
.calendar-switch i {
	position: relative;
	width: 40px;
	height: 25px;
	flex: 0 0 auto;
	border-radius: 999px;
	background: #d5d9dd;
	box-shadow: inset 0 0 0 1px rgb(0 0 0 / 6%);
	transition: background .2s ease;
}
.calendar-switch i::after {
	content: "";
	position: absolute;
	top: 5px;
	left: 5px;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgb(0 0 0 / 20%);
	transition: transform .2s ease;
}
.calendar-switch input:checked + i {
	background: #dd3333b3;
}
.calendar-switch input:checked + i::after {
	transform: translateX(15px);
}
.calendar-picker-confirm {
	min-width: 75px;
}
@media(max-width:600px){
	.calendar-date-picker-modal .calendar-dialog {
		width: calc(100vw - 15px);
	}
	.calendar-wheel-wrap,
	.calendar-wheel {
		height: 230px;
	}
	.calendar-wheel {
		padding: 95px 0;
	}
	.calendar-wheel::before {
		top: 95px;
	}
}


/* =========================
 * 日历页面文字规格
 * ========================= */
.lingxyh-template-calendar h1 {
	font-size: 42px;
	font-weight: 700;
	line-height: 1.35;
}
.lingxyh-template-calendar h2 {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
	color: #333;
}
.lingxyh-template-calendar h3 {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	color: #333;
}
.lingxyh-template-calendar h4 {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	color: #333;
}
.lingxyh-template-calendar p {
	font-size: 13px;
	line-height: 1.8;
	color: #666;
}
.lingxyh-template-calendar button {
	font-size: 13px;
	line-height: 1.4;
}
.lingxyh-template-calendar small {
	font-size: 11px;
	line-height: 1.5;
	color: #666;
}
.lingxyh-calendar-overlay .calendar-dialog {
	font-size: 13px;
	line-height: 1.6;
	color: #333;
}
.lingxyh-calendar-overlay h2 {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	color: #333;
}
.lingxyh-calendar-overlay h3 {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	color: #333;
}
.lingxyh-calendar-overlay h4 {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	color: #333;
}
.lingxyh-calendar-overlay p {
	font-size: 13px;
	line-height: 1.8;
	color: #666;
}
.lingxyh-calendar-overlay button {
	font-size: 13px;
	line-height: 1.4;
}
.lingxyh-calendar-overlay small {
	font-size: 11px;
	line-height: 1.5;
	color: #666;
}
.lingxyh-calendar-overlay .calendar-dialog > header > b,
.calendar-detail-title > b {
	font-size: 15px;
	line-height: 1.4;
	color: #333;
}

/* =========================
 * 日期词条弹窗
 * ========================= */
#date .calendar-dialog {
	width: min(620px, calc(100vw - 25px));
}
#date .calendar-modal-body {
	padding: 15px;
}
#date .date-modal-nav {
	display: grid;
	grid-template-columns: 35px minmax(0, 1fr) 35px;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
}
#date .date-nav-btn {
	width: 35px;
	min-width: 35px;
	height: 35px;
	min-height: 35px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
}
#date .date-modal-center {
	min-width: 0;
	text-align: center;
}
#date .date-modal-center b {
	display: block;
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	color: #333;
}
#date .date-modal-center small {
	display: block;
	margin: 2px 0 0;
	font-size: 11px;
	line-height: 1.4;
	color: #666;
}
/* =========================
 * 词条详情弹窗
 * ========================= */
#detail .calendar-dialog {
	width: min(680px, calc(100vw - 25px));
}
#detail .calendar-modal-body {
	padding: 15px;
	max-height: calc(84vh - 50px);
	overflow-x: hidden;
	overflow-y: auto;
}
#detail .folk-detail-top {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 15px;
}
#detail .folk-detail-box {
	min-width: 0;
	padding: 10px;
	border: 1px solid rgb(0 0 0 / 12%);
	border-radius: 10px;
	background: rgb(255 255 255 / 55%);
}
#detail .folk-detail-box small {
	display: block;
	margin: 0 0 5px;
	font-size: 11px;
	line-height: 1.4;
	color: #666;
}
#detail .folk-detail-box b {
	display: block;
	min-width: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
	color: #333;
}
#detail .folk-detail-section {
	padding: 10px 0;
	border-top: 1px solid rgb(0 0 0 / 10%);
}
#detail .folk-detail-section h3 {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	color: #333;
}
#detail .folk-detail-section p {
	margin: 0;
	font-size: 13px;
	line-height: 1.8;
	color: #666;
}
#detail .folk-meta-lines {
	display: grid;
	gap: 8px;
}
#detail .folk-meta-line {
	display: grid;
	grid-template-columns: 50px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	font-size: 12px;
	line-height: 1.6;
}
#detail .folk-meta-line > b {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
	color: #666;
}
#detail .folk-meta-values {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}
#detail .folk-related-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}
#detail .folk-related-card {
	min-width: 0;
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) 25px;
	align-items: center;
	gap: 8px;
	padding: 8px;
	border: 1px solid rgb(0 0 0 / 12%);
	border-radius: 10px;
	background: rgb(255 255 255 / 46%);
}
#detail .folk-related-card.text-only {
	grid-template-columns: 40px minmax(0, 1fr);
}
#detail .folk-related-image {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: rgb(221 51 51 / 10%);
	color: #9a4148;
	font-size: 12px;
	font-weight: 800;
}
#detail .folk-related-card > span:nth-child(2) {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}
#detail .folk-related-card > span:nth-child(2) b {
	max-width: 100%;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#detail .folk-related-card > span:nth-child(2) small {
	max-width: 100%;
	margin-top: 2px;
	font-size: 10px;
	line-height: 1.3;
	color: #666;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#detail .related-arrow {
	width: 25px;
	height: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	justify-self: end;
	border: 1px solid rgb(0 0 0 / 12%);
	border-radius: 50%;
	background: rgb(255 255 255 / 72%);
	color: #666;
	font-size: 16px;
	line-height: 1;
}
@media(max-width:600px){
	#detail .calendar-modal-body {
		padding: 10px;
	}
	#detail .folk-detail-top,
	#detail .folk-related-grid {
		grid-template-columns: 1fr;
	}
	#date .calendar-modal-body {
		padding: 10px;
	}
}

/* 常用组件文字 */
.month {
	font-size: 12px;
}
.calendar-chip,
.folk-type-badge {
	line-height: 1.4;
}
.calendar-close {
	font-size: 20px;
	line-height: 1;
	color: #666;
}
.calendar-back {
	font-size: 20px;
	line-height: 1;
	color: #666;
}
.calendar-stat-row {
	font-size: 13px;
	line-height: 1.5;
}
.calendar-stat-row span {
	font-size: 13px;
	color: #666;
}
.calendar-stat-row b {
	font-size: 13px;
	color: #dd3333;
}


/* =========================
 * 独立相关词条
 * ========================= */
.lingxyh-calendar-related {
	margin-top: 0;
}
.calendar-related-group h3 {
	margin: 0 0 8px;
	font-size: 14px;
	color: #333;
}
.calendar-related-divider {
	height: 1px;
	margin: 10px 0;
	border: 0;
	background: rgb(0 0 0 / 10%);
}
.calendar-related-grid {
	display: grid;
	grid-template-columns: repeat(4,minmax(0,1fr));
	gap: 5px;
}
.calendar-related-card {
	min-width: 0;
	padding: 8px;
	display: grid;
	gap: 2px;
	border: 1px solid rgb(0 0 0 / 10%);
	border-radius: 8px;
	background: rgb(255 255 255 / 50%);
	color: #333;
	transition: background .2s ease, transform .2s ease;
}
.calendar-related-card:hover {
	background: rgb(255 255 255 / 80%);
	transform: translateY(-1px);
}
.calendar-related-name {
	min-width: 0;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.calendar-related-card small {
	font-size: 9px;
	line-height: 1.3;
	color: #666;
}
@media(max-width:820px){
	.calendar-related-grid {
		grid-template-columns: repeat(3,minmax(0,1fr));
	}
}
@media(max-width:520px){
	.calendar-related-grid {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}
}


/* =========================
 * 年月标题操作
 * ========================= */
.calendar-title-wrap {
	display: grid;
	grid-template-columns: minmax(60px, auto) auto minmax(60px, auto);
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.calendar-title-wrap h2 {
	margin: 0;
	min-width: 110px;
	font-size: 22px;
	line-height: 1.4;
	text-align: center;
	color: #333;
}
.lingxyh-template-calendar .calendar-center-action {
	min-width: 60px;
	min-height: 30px;
	padding: 0 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgb(0 0 0 / 10%);
	border-radius: 8px;
	background: rgb(255 255 255 / 65%);
	box-shadow: none;
	color: #666;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
	white-space: nowrap;
	cursor: pointer;
}
.lingxyh-template-calendar .calendar-center-action:hover {
	border-color: #dd3333b3;
	background: #dd3333b3;
	color: #fff;
	transform: none;
}


/* =========================
 * 右侧日期信息
 * ========================= */


.calendar-info-divider {
	height: 1px;
	margin: 15px 0 10px;
	border: 0;
	background: rgb(0 0 0 / 10%);
}
.calendar-info-subtitle {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	color: #333;
}


/* =========================
 * 右侧标签
 * ========================= */
#calendarTags {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 5px;
}
#calendarTags .lingxyh-btn{
    padding: 15px;
}


/* =========================
 * 日期信息
 * ========================= */
.lingxyh-calendar-right .calendar-info-heading > span:first-child {
	min-width: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	color: #333;
}
.calendar-zodiac {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	border: 1px solid rgb(221 51 51 / 35%);
	border-radius: 50%;
	background: rgb(221 51 51 / 8%);
	color: #dd3333;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}
.calendar-info-general {
	padding: 2px 0 0;
}
.calendar-info-date {
	margin: 0 0 10px;
}
.calendar-info-date strong {
	display: block;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.55;
	color: #333;
}
.calendar-info-small {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	column-gap: 20px;
	align-items: start;
	margin-top: 8px;
	padding: 0;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.6;
	color: #666;
}
.calendar-info-small:first-of-type {
	margin-top: 0;
}
.calendar-info-label {
	font-size: 11px;
	font-weight: 400;
	line-height: 1.6;
	color: #666;
	white-space: nowrap;
}
.calendar-info-value {
	min-width: 0;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.6;
	color: #666;
}


.day-main {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	align-self: stretch;
}
.day-date {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
}
.day-special {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-start;
}


/* 相关词条：无数据时彻底隐藏 */
.lingxyh-calendar-related.hidden-section,
.calendar-related-group.hidden-section,
.calendar-related-divider.hidden-section {
	display: none;
}
