

/*******************************六大优势弹窗****************************************/

/* 遮罩层样式 */
.modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.75); /* 透明黑色层 */
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1050;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.show {
	opacity: 1;
	visibility: visible;
}

/* 弹窗内容容器 */
.modal-content {
	position: relative;
	width: 500px;
	height: 600px;
	background-color: white;
	overflow: hidden;
	transform: scale(0.9);
	transition: transform 0.3s ease;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-backdrop.show .modal-content {
	transform: scale(1);
}

/* 轮播容器 */
.carousel {
	position: relative;
	width: 100%;
	height: 100%;
}

.carousel-inner {
	height: 100%;
	/*position: relative;
	width: 100%;
	overflow: hidden;*/
}

.carousel-item {
	height: 100%;
	/*position: relative;
	display: none;
	width: 100%;
	transition: transform 0.6s ease-in-out;*/
}

.carousel-item.active {
	display: block;
	transform: translateX(0);
}

/* 图片容器 */
.carousel-image-container {
	position: relative;
	padding: 1rem 1rem 0.2rem  1rem ;
	width: 100%;
	height: 55%;
	overflow: hidden;
}

.carousel-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 内容容器 */
.carousel-text-container {
	padding: 1rem;
	height: 40%;
	overflow-y: auto;
}

.carousel-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: #222;
}

.carousel-text {
	font-size: 0.95rem;
}

/* 控制箭头 - 移到内容块外部 */
.carousel-control {
	position: absolute;
	top: 49%;
	transform: translateY(-50%);
	width: 40px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	/* background-color: rgba(255, 255, 255, 0.8);
	border: none;
	border-radius: 50%;
	z-index: 1060;
	transition: all 0.3s ease;
	font-size: 1.5rem;
	color: #333; */
}

.carousel-control:hover {
	/* background-color: white; */
	transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
	left: calc(50% - 250px - 80px);
}

.carousel-control-next {
	right: calc(50% - 250px - 80px);
}

/* 关闭按钮 - 移到内容块外部 */
.close-btn {
	position: absolute;
	top: calc(50% - 300px - 32px);
	right: calc(50% - 250px - 32px);
}

/* 指示器 - 移到内容块外部 */
.carousel-indicators {
	position: absolute;
	bottom: calc(50% - 300px - 50px);
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 1060;
}
.carousel-indicator {
	/*width: 8px;*/
	height: 12px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
}
.carousel-indicator.active {
	background-color: white;
	transform: scale(1.2);
}
/* 移动端响应式设计 */
@media (max-width: 768px) {
	.modal-content {
		max-width: 95%;
		max-height: 95vh;
	}	
	.carousel-text-container {
		padding: 1rem;
	}	
	.carousel-title {
		font-size: 1.5rem;
	}	
	.carousel-control {
		width: 35px;
		height: 35px;
		font-size: 1.2rem;
	}	
	.carousel-control-prev {
		left: 30px;
	}
	
	.carousel-control-next {
		right: 30px;
	}
	.carousel-control {
		position: absolute;
		top: 30%;
		transform: translateY(-30%); 
	}
	
	.close-btn {
		width: 35px;
		height: 35px;
		/*right: 1px;*/
		left: auto;
	}
	
	.carousel-indicators {
		top: auto;
	}
	
	.carousel-image {
		max-height: 300px;
	}
}

/* 预览按钮样式 */
.preview-btn {
	background-color: #3498db;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 10px 20px;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 0.3s ease;
	display: inline-block;
	margin-top: 1rem;
}

.preview-btn:hover {
	background-color: #2980b9;
}

/*******************************房型弹窗****************************************/

.room-image-modal{
	top: 10%;
}

.room-image-modal .modal-dialog {
	width:100%;
}

/* 弹窗内容 */
.room-image-modal .modal-content {
   border-radius: 0;
   width: 630px;
   height: 680px
	 /* overflow: hidden;
	/* padding: 10px; */
}

/* 轮播区域 */
.room-carousel-container {
	height: 300px;
	position: relative;
	margin-bottom: 15px;
}

.room-carousel-container .carousel {
	height: 100%;
}

.room-carousel-container .carousel-inner {
	height: 100%;
	/* border-radius: 6px; */
	overflow: hidden;
}

.room-carousel-container .carousel-item {
	height: 100%;
}

.room-carousel-container .carousel-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 自定义轮播控制按钮 */
.carousel-control-custom {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	z-index: 10;
}

.carousel-control-custom.prev {
	left: 15px;
}

.carousel-control-custom.next {
	right: 15px;
}

/* 关闭按钮 - 移到内容块外部 */
.room-image-modal #closeModalBtn{
	top: 30px;
    right: calc(50% - 340px - 35px);
}
.carousel-control-custom img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* 缩略图区域 */
.thumbnail-container {
	display: flex;
	/*justify-content: center;*/
	gap: 8px;
	margin-bottom: 15px;
	overflow-x: auto;
	padding: 5px 0;
}

.thumbnail-item {
	width: 100px;
	height: 75px;
	cursor: pointer;
	/* border-radius: 4px; */
	overflow: hidden;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	flex-shrink: 0;
}

.thumbnail-item:hover {
	transform: translateY(-3px);
}

.thumbnail-item.active {
	border-color: #0d6efd;
}

.thumbnail-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 文字内容区域 */
.text-content {
	/* background-color: #f8f9fa;
	border-radius: 6px;
	padding: 15px; */
	max-height: 240px;
	overflow-y: auto;
    overflow-x: hidden;
}
.text-content p,
.text-content span {
	/* 覆盖内联样式 */
	white-space: normal !important;
	text-wrap: wrap !important;
}
.text-content br {
	display: block; /* 使br标签可控制 */
	content: ""; /* 清除默认内容 */
	margin-top: 1em; /* 减小行间距 */
}


.text-content ul {
	line-height: 1rem;
}

/* 自定义滚动条 */
.text-content::-webkit-scrollbar {
	width: 6px;
}

.text-content::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 10px;
}

.text-content::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 10px;
}

.text-content::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

/* 响应式调整 */
@media (max-width: 768px) {
	.room-carousel-container {
		height: 260px;
	}
	
	.thumbnail-item {
		width: 70px;
		height: 50px;
	}
	/*
	.text-content {
		max-height: 150px;
	}*/
	
	/* 移动端调整关闭按钮位置 */
	.room-image-modal .modal-close-btn {
		top: -40px;
		right: 10px;
	}
	.room-image-modal{
		top: 0;
	}
}