.center-container {
	position: absolute;
	left: 50%;
	top: 49%;
	transform: translate(-50%, -50%);
	width: 80%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.a-box {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.a-box .box {
	position: relative;
	width: 86rem;
	height: 100rem;
}

.a-box .box .hall_level_box {
	position: absolute;
	width: 100%;
	height: 100%;
}

.a-box .box .man_photo {
	position: absolute;
	width: 86%;
	height: 86%;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	border: 2rem solid white;
}

/* 供奉祭品展示区域 - 显示在头像下方 */
.offered-libations {
	position: absolute;
	left: 50%;
	top: calc(49% + 60px);
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 5;
	flex-wrap: wrap;
	max-width: 200px;
	pointer-events: none;
}

.offered-libations .offered-libations-title {
	pointer-events: none;
	font-size: 13rem;
	color: #FFD700;
	text-shadow: 0 2rem 6rem rgba(0,0,0,0.8);
	font-weight: bold;
	margin-bottom: 5px;
	text-align: center;
}

.offered-libations .offered-libations-items {
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 5px;
}

.offered-libations .offered-item-wrap {
	position: relative;
	width: 45rem;
	height: 45rem;
	cursor: pointer;
	flex-shrink: 0;
	pointer-events: auto;
}

.offered-libations .offered-item-wrap img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 2rem solid rgba(255, 255, 255, 0.6);
	box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.2);
	object-fit: cover;
}

.offered-libations .offered-item-wrap .gift-count {
	position: absolute;
	bottom: -3rem;
	right: -3rem;
	background: #ff4d4f;
	color: #fff;
	font-size: 11rem;
	padding: 2rem 5rem;
	border-radius: 10rem;
	min-width: 18rem;
	text-align: center;
	font-weight: bold;
}

.offered-libations .offered-item-wrap.static-gift {
	opacity: 0.85;
	pointer-events: none;
}

/* 祭品悬停提示框 */
.gift-tooltip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0,0,0,0.85);
	color: #fff;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 12px;
	white-space: nowrap;
	z-index: 1000;
	pointer-events: none;
	display: none;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.gift-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: rgba(0,0,0,0.85);
}
.offered-item-wrap:hover .gift-tooltip {
	display: block;
}
.gift-tooltip .tooltip-name {
	font-weight: bold;
	color: #ffd700;
	margin-bottom: 2px;
}
.gift-tooltip .tooltip-id {
	color: #aaa;
	font-size: 11px;
}
.gift-tooltip .tooltip-time {
	color: #ccc;
	font-size: 11px;
	margin-top: 2px;
}
.gift-tooltip .tooltip-count {
	color: #ff6b6b;
	font-size: 11px;
}

/* 留言滚动容器 - 水平从右到左滚动 */
.message-scroll-container {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(49% - 60px);
	height: 40px;
	overflow: hidden;
	z-index: 10;
	pointer-events: none;
}

.message-scroll-content {
	display: flex;
	align-items: center;
	gap: 30px;
	height: 100%;
	white-space: nowrap;
	animation: scrollLeft 25s linear infinite;
}

.message-scroll-container:hover .message-scroll-content {
	animation-play-state: paused;
}

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

.message-scroll-content .swiper-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	color: #fff;
	font-size: 14px;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
	background: rgba(0,0,0,0.3);
	border-radius: 20px;
}

.message-scroll-content .swiper-item .avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.3);
	flex-shrink: 0;
}

.message-scroll-content .swiper-item .small-avatar {
	width: 24px !important;
	height: 24px !important;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.4);
	flex-shrink: 0;
}

.message-scroll-content .swiper-item .msg-text {
	max-width: 300px;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (min-width: 992px) {
	.message-scroll-container {
		top: calc(49% - 80px);
		height: 50px;
	}
	.message-scroll-content .swiper-item {
		font-size: 16px;
		gap: 10px;
		padding: 8px 20px;
	}
	.message-scroll-content .swiper-item .avatar {
		width: 32px;
		height: 32px;
	}
	.message-scroll-content .swiper-item .small-avatar {
		width: 28px !important;
		height: 28px !important;
	}
	.offered-libations {
		top: calc(49% + 40px);
		max-width: 280px;
		pointer-events: none;
	}
	.offered-libations .offered-libations-title {
		pointer-events: none;
		font-size: 14px;
		margin-bottom: 8px;
	}
	.offered-libations .offered-libations-items {
		pointer-events: none;
		gap: 8px;
	}
	.offered-libations .offered-item-wrap {
		pointer-events: auto;
		width: 55px;
		height: 55px;
	}
	.offered-libations .offered-item-wrap .gift-count {
		font-size: 11px;
		padding: 2px 6px;
		min-width: 20px;
	}
}

.a-box .man-name {
	color: #d2a689;
	text-shadow: 0 0 0 #333;
	font-weight: 700;
	word-break: break-all;
}

.a-box .man-date {
	color: white;
	font-size: 15rem;
}

.bottom-container {
	position: absolute;
	bottom: 30rem;
	padding: 0 20rem;
	width: 100%;
	box-sizing: border-box;
	justify-content: space-between;
}


.bottom-container img {
	width: 60rem;
	height: 60rem;
}

.light-container {
	position: fixed;
	width: 55rem;
	top: 120rem;
	left: 20rem;
}

.light-container .item {
	cursor: pointer;
	position: relative;
	width: 55rem;
	height: 55rem;
	margin-bottom: 10rem;
}

.light-container .item .gray-img {
	position: absolute;
	width: 100%;
	height: 100%;
}

.light-container .item span {
	position: absolute;
	bottom: 5rem;
	right: 5rem;
	color: white;
}

.light-container .item .light-img {
	position: absolute;
	-webkit-animation: run 5s linear infinite;
}

@keyframes run {
	from {
		-webkit-transform: rotate(0deg);
	}

	to {
		-webkit-transform: rotate(360deg);
	}
}

.gift-container {
	position: absolute;
	left: 0;
	right: 0;
	width: 60%;
	height: 25%;
	overflow-y: auto;
	margin: 0 auto;
	top: 60%;
	display: grid;
	grid-template-columns: repeat(4, 25%);
}

.gift-container img {
	width: 50rem;
	height: 50rem;
	margin: 0 auto;
	cursor: pointer;
}

.gift-container .gift-item {
	position: relative;
	width: 50rem;
	height: 50rem;
	margin: 0 auto;
	cursor: pointer;
}

.gift-container .gift-item img {
	width: 100%;
	height: 100%;
}

.gift-container .gift-count {
	position: absolute;
	bottom: -5rem;
	right: -5rem;
	background: #ff4d4f;
	color: #fff;
	font-size: 12rem;
	padding: 2rem 6rem;
	border-radius: 10rem;
	min-width: 20rem;
	text-align: center;
	font-weight: bold;
}

.l-h-container {
	position: absolute;
	z-index: 100;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	margin: auto;
	background-color: rgb(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
}

.l-h-container .c {
	width: 82%;
	max-height: 80%;
	border-radius: 5rem;
	background-color: white;
}

.l-h-container .c .top-img {
	border-radius: 5rem 5rem 0 0;
	width: 100%;
	height: 160rem;
	background: url(/static/mourn-dec/img/banner_longlight.85fd0bcc.png) no-repeat;
	background-size: 101% 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: white;
}

.l-h-container .c .lib-c {
	background: url(https://static.quwangming.com/mourn/icon/a_bj.png) no-repeat;
	background-size: 100% 100%;
	width: 80rem;
	height: 80rem;
	border-radius: 50%;
	border: 4rem solid white;
	position: relative;
	margin-bottom: 5rem;
}

.l-h-container .c .lib-c .light-img {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	margin: auto;
	-webkit-animation: run 5s linear infinite;
}

.l-h-container .c .lib-c .lib {
	-webkit-animation: unset;
	width: 85%;
	height: 85%;
}

.l-h-container .c .h-l {
	width: 100%;
	padding: 0 15rem;
	box-sizing: border-box;
	max-height: 260rem;
	overflow-y: auto;
	font-size: 14rem;
}

.l-h-container .c .item {
	padding: 10rem 0;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	border-bottom: 1rem solid #ebebeb;
}

.l-h-container .c .item .avatar {
	width: 55rem;
	height: 55rem;
	border-radius: 50%;
	margin-right: 10rem;
}

.l-h-container .c .item .t {
	color: #999;
}

.l-h-container .c .item .green {
	color: #6cae40;
}

.l-h-container .c .item .red {
	color: #f24848;
}

.l-h-container .c .btns {
	background: linear-gradient(90deg, #00c391, #3c9bff);
	margin: 15rem;
	height: 50rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	border-radius: 4rem;
}

.right-container{
	position: fixed;
	width: 55rem;
	top: 120rem;
	right: 10rem;
}

.right-container .item{
	position: relative;
	width: 55rem;
	height: 55rem;
	margin-bottom: 10rem;
	cursor: pointer;
}

/* @media (min-width: 1440rem){

}
@media (min-width: 1200rem){

}
@media (max-width: 1200rem){

}
@media (max-width: 1440rem) and (min-width:992rem) {

} */
@media (min-width:992px) {
	.a-box .man-date {
		font-size: 17px;
	}
	.light-container {
		top: 160px;
		left: calc(50% - 320px);
		transform: translateX(-50%);
		width: 60px;
	}

	.light-container .item {
		width: 60px;
		height: 60px;
		margin-bottom: 15px;
	}

	.light-container .item span {
		bottom: 5px;
		right: 5px;
	}

	.a-box .man-name {
		font-size: 20px;
	}

	.a-box .box {
		width: 120px;
		height: 150px;
	}
	.gift-container img {
		width: 65px;
		height: 65px;
	}

	.bottom-container {
		bottom: 30px;
		padding: 0 30px;
	}

	.bottom-container img {
		width: 80px;
		height: 80px;
		margin: 0 20px;
	}
	.l-h-container .c .lib-c {
	    width: 110px;
	    height: 110px;
		border: 4px solid white;
	}
	.l-h-container .c .top-img {
	    height: 220px;
	}
	.l-h-container .c .h-l {
	    box-sizing: border-box;
	    max-height: 320px;
		font-size: 17px;
	}
	.l-h-container .c .item {
	    padding: 15px 0;
		border-bottom: 1px solid #ebebeb;
	}
	
	.l-h-container .c .item .avatar {
	    width: 75px;
	    height: 75px;
	}
	
	.l-h-container .c .btns {
	    margin: 25px;
	    height: 60px;
	}
	
	.right-container{
		top: 160px;
		right: calc(50% - 360px);
		transform: translateX(-50%);
		width: 60px;
	}
	.right-container .item{
		width: 75px;
		height: 75px;
		margin-bottom: 15px;
	}
}

/* 祭奠页底部四键：长明灯 / 缅怀 / 留言 / 花圈 */
.worship-bottom-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	max-width: 750px;
	margin: 0 auto;
	display: flex;
	justify-content: space-around;
	align-items: flex-end;
	padding: 16rem 12rem calc(16rem + env(safe-area-inset-bottom));
	box-sizing: border-box;
	z-index: 50;
	background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 35%, rgba(0, 0, 0, 0.55) 100%);
	pointer-events: none;
}
.worship-bottom-bar .wb-item {
	pointer-events: auto;
	border: none;
	background: transparent;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6rem;
	cursor: pointer;
	color: #fff;
	font-size: 12rem;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	padding: 0;
	font-family: inherit;
}
.worship-bottom-bar .wb-circle {
	width: 56rem;
	height: 56rem;
	border-radius: 50%;
	box-shadow: 0 4rem 12rem rgba(0, 0, 0, 0.28);
	flex-shrink: 0;
}
.worship-bottom-bar .wb-c-lamp {
	background: linear-gradient(145deg, #e8a0c8, #9b7bc9);
	position: relative;
}
.worship-bottom-bar .wb-c-lamp::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 22rem;
	height: 26rem;
	border-radius: 4rem 4rem 10rem 10rem;
	background: linear-gradient(180deg, #fff8e7 0%, #f5d76e 100%);
	box-shadow: 0 0 8rem rgba(255, 236, 139, 0.9);
}
.worship-bottom-bar .wb-c-cherish {
	background: linear-gradient(145deg, #f39c12, #e67e22);
	position: relative;
}
.worship-bottom-bar .wb-c-cherish::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -55%);
	width: 20rem;
	height: 14rem;
	border: 2rem solid #fff;
	border-radius: 2rem;
	box-sizing: border-box;
}
.worship-bottom-bar .wb-c-msg {
	background: linear-gradient(145deg, #f8c471, #eb984e);
	position: relative;
}
.worship-bottom-bar .wb-c-msg::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 22rem;
	height: 16rem;
	border: 2rem solid #fff;
	border-radius: 4rem;
	box-sizing: border-box;
}
.worship-bottom-bar .wb-c-wreath {
	background: linear-gradient(145deg, #27ae60, #1e8449);
	position: relative;
}
.worship-bottom-bar .wb-c-wreath::after {
	content: "❀";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	font-size: 22rem;
	line-height: 1;
}
.worship-bottom-bar .wb-txt {
	text-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.5);
}
@media (min-width: 992px) {
	.worship-bottom-bar {
		padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
		max-width: 750px;
	}
	.worship-bottom-bar .wb-item {
		font-size: 12px;
		gap: 6px;
	}
	.worship-bottom-bar .wb-circle {
		width: 56px;
		height: 56px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	}
	.worship-bottom-bar .wb-c-lamp::after {
		width: 22px;
		height: 26px;
		border-radius: 4px 4px 10px 10px;
		box-shadow: 0 0 8px rgba(255, 236, 139, 0.9);
	}
	.worship-bottom-bar .wb-c-cherish::after {
		width: 20px;
		height: 14px;
		border-width: 2px;
	}
	.worship-bottom-bar .wb-c-msg::after {
		width: 22px;
		height: 16px;
		border-width: 2px;
	}
	.worship-bottom-bar .wb-c-wreath::after {
		font-size: 22px;
	}
}
