/* 轮播图样式 */
.carousel {
	position: relative;
	height: 500px;
	overflow: hidden;
}

.carousel-inner {
	width: 100%;
	height: 100%;
	position: relative;
}

.carousel-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 1s ease;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: white;
}

.carousel-slide.active {
	opacity: 1;
}

.slide-content {
	max-width: 800px;
	padding: 0 20px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content h1 {
	font-size: 2.8rem;
	margin-bottom: 20px;
}

.slide-content p {
	font-size: 1.3rem;
	margin-bottom: 30px;
	line-height: 1.8;
}

.cta-button {
	display: inline-block;
	background-color: var(--accent-color);
	color: white;
	padding: 14px 35px;
	border-radius: 4px;
	font-weight: bold;
	font-size: 1.1rem;
	transition: all 0.3s;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
	background-color: #e55a00;
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.carousel-controls {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
}

.carousel-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background-color 0.3s;
}

.carousel-dot.active {
	background-color: white;
}

.carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	background-color: rgba(0, 0, 0, 0.3);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	cursor: pointer;
	transition: background-color 0.3s;
	z-index: 10;
}

.carousel-arrow:hover {
	background-color: rgba(0, 0, 0, 0.6);
}

.carousel-arrow.prev {
	left: 20px;
}

.carousel-arrow.next {
	right: 20px;
}

/* 推荐房产部分 */
.recommendation-section {
	padding: 80px 0;
	background-color: var(--secondary-color);
}

.section-title {
	text-align: center;
	margin-bottom: 50px;
}

.section-title h2 {
	color: var(--primary-dark);
	font-size: 2.2rem;
	margin-bottom: 15px;
	position: relative;
	display: inline-block;
	padding-bottom: 15px;
}

.section-title h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background-color: var(--primary-color);
	border-radius: 3px;
}

.section-title p {
	color: var(--text-light);
	max-width: 700px;
	margin: 0 auto;
	font-size: 1.1rem;
}

/* 房产网格布局 - 修改为4列 */
.property-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 60px;
	border-radius: 12px;
}

.property-grid:last-child {
	margin-bottom: 0;
}

/* 修改后的房产卡片样式 - 左右结构 */
.property-card {
	background-color: white;
	border-radius: 8px;
	overflow: hidden; 
	box-shadow: var(--shadow);
	transition: all 0.3s;
	display: flex;
	height: 140px;
	position: relative;
	cursor: pointer;
}
/* 角标基础样式 */
.badge {
	position: absolute;
	top: 6px;
    right: -3px;
	background-color: var(--accent-color);
	color: white;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
}
.ribbon {
	width: 150px;
	background: #babd25;
	text-align: center;
	transform: rotate(45deg);
	position: absolute;
	top: 10px;
	right: -54px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.property-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.property-img {
	width: 40%;
	height: 100%;
	overflow: hidden;
	position: relative;
	flex-shrink: 0;
}

.property-img img {
	width: 80%;
	height: 60%;
	object-fit: cover;
	transition: transform 0.5s;
	margin-top: 25px;
	margin-left: 15px;
	border-radius: 5px;
}

.property-card:hover .property-img img {
	transform: scale(1.05);
}

.property-tag {
	position: absolute;
	top: 10px;
	left: 10px;
	background-color: var(--primary-color);
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 500;
	z-index: 2;
}

.property-info {
	padding: 12px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.property-info h3 {
	margin-top: 8px;
	/* margin-bottom: 8px; */
	color: var(--primary-dark);
	font-size: 0.95rem;
	line-height: 1.3;
	height: 2.4em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.property-details {
	margin-bottom: 0px;
}

.property-detail-row {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 3px;
	font-size: 0.8rem;
}
.buy-st {
   color:red;
}
.detail-item {
	margin-right: 8px;
	color: var(--text-light);
	display: flex;
	align-items: center;
	margin-bottom: 2px;
	position: relative;
	padding-right: 8px;
}

.detail-item:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 10px;
	width: 1px;
	background-color: #e0e0e0;
}

.property-price {
	color: var(--primary-color);
	font-weight: bold;
	font-size: 0.95rem;
	margin: 5px 0;
}

.property-price .original {
	text-decoration: line-through;
	color: var(--text-light);
	font-size: 0.8rem;
	margin-right: 5px;
}

.property-action {
	display: flex;
	justify-content: space-between;
	margin-top: 5px;
	padding-top: 5px;
	border-top: 1px solid var(--border-color);
}

.view-details {
	color: var(--primary-color);
	font-weight: 500;
	display: flex;
	align-items: center;
	font-size: 0.8rem;
}

.view-details i {
	margin-left: 3px;
	transition: transform 0.3s;
	font-size: 0.8rem;
}

.view-details:hover i {
	transform: translateX(3px);
}

.wishlist-btn {
	color: #ccc;
	cursor: pointer;
	transition: color 0.3s;
	z-index: 3; /* 确保收藏按钮在点击区域上方 */
	position: relative;
}

.wishlist-btn:hover, .wishlist-btn.active {
	color: #e74c3c;
}