:root {
	/*color-custom*/
	--color-main: #f9818d;
	/*主色*/
	--color-sub: #0ae;
	/*辅色*/
	--color-dot: #f60;
	/*点缀色*/
	--color-black: #000;
	/*黑色*/
	--color-deep: #333;
	/*深色*/
	--color-dark: #666;
	/*暗色*/
	--color-gray: #999;
	/*灰色*/
	--color-silver: #f5f5f5;
	/*银色*/
	--color-light: #f5f5f5;
	/*淡色*/
	--color-white: #fff;
	/*白色*/
	--color-inverse: #fff;
	/*反色*/
	--color-danger: #f00;
	/*危险色*/
	--color-warning: #fb0;
	/*警告色*/
	--color-success: #2c7;
	/*安全色*/
	--color-info: #0ae;
	/*信息色*/
}

*:focus {
	box-shadow: none !important;
	outline: none !important;
}

input:focus {
	border-color: var(--color-main);
}

.text-main {
	color: var(--color-main);
}

.bg-main {
	background-color: var(--color-main);
}

.bg-silver {
	background-color: var(--color-silver);
}


/* 标题下划线 */
.t_line {
	display: inline-block;
	width: 140px;
	height: 5px;
	background-color: #ececec;
	position: relative;
	border-radius: 6px;
	overflow: hidden;
}

.t_line::before {
	content: "";
	display: inline-block;
	background-color: var(--color-main);
	width: 70px;
	height: 5px;
	position: absolute;
	top: 0px;
	left: 0px;
}

/*头部*/
.nav-top {
	list-style: none;
	display: flex;
	column-gap: 8px;
}

.nav-top li {
	background-color: #f9818d;
	padding: 4px 12px;
	color: white;
	border-radius: 6px;
	font-size: 14px;
}


.nav-top__tel i {
	font-size: 26px;
}

.nav-top__tel span {
	font-size: 20px;
}

.navbar-nav .nav-item {
	padding: 0px 15px;
}

.navbar-nav .nav-item a:hover {
	color: #f9818d;
}


/*首页月嫂团队*/
.consultant-card {
	text-align: center;
	padding: 1.5rem;
	border-radius: 8px;
	background-color: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s;
}

.consultant-card:hover {
	transform: translateY(-3px);
}

.consultant-img {
	width: 160px;
	height: 160px;
	object-fit: cover;
	border-radius: 50%;
	margin-bottom: 1rem;
}

.consultant-name {
	font-size: 1.1rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.btn-consult {
	background-color: #ff8a8a;
	color: white;
	border-radius: 20px;
	font-size: 0.9rem;
	padding: 0.3rem 1.2rem;
}

.btn-consult:hover {
	background-color: #ff6b6b;
	color: white;
}

.back-to-top {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, #ffa3ac 0%, #f25969 100%);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
	z-index: 1000;
	opacity: 0;
	transform: translateY(20px);
}

.back-to-top i {
	font-size: 24px;
}

.back-to-top:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.back-to-top.show {
	opacity: 1;
	transform: translateY(0);
}

/* 底部样式 */
.footer {
	background: url("../images/bg_footer.jpg") no-repeat 0 0;
}

.footer a {
	color: white;
	text-decoration: none;
	transition: all .3s;
}

.footer a:hover {
	color: var(--color-main);
}


/*月嫂服务页*/
.timeline {
	position: relative;
	margin: 50px auto;
}

.timeline::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #0d6efd;
	left: 50%;
	transform: translateX(-50%);
}

.timeline-item {
	position: relative;
	margin-bottom: 50px;
}

.timeline-item:nth-child(even) .timeline-content {
	float: right;
	text-align: left;
	padding-left: 70px;
}

.timeline-item:nth-child(odd) .timeline-content {
	float: left;
	text-align: right;
	padding-right: 70px;
}

.timeline-icon {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 50px;
	height: 50px;
	line-height: 50px;
	text-align: center;
	border-radius: 50%;
	background: white;
	color: #0d6efd;
	box-shadow: 0 0 0 4px #e9ecef;
	z-index: 1;
	font-size: 30px;
}

.timeline-content {
	width: calc(50% - 40px);
	background: white;
	padding: 20px;
}

@media (max-width: 768px) {
	.timeline::before {
		left: 30px;
	}

	.timeline-item:nth-child(even) .timeline-content,
	.timeline-item:nth-child(odd) .timeline-content {
		float: none;
		text-align: left;
		padding: 0 0 0 90px;
		width: 100%;
	}

	.timeline-icon {
		left: 30px;
	}
}

/*选择我们的理由*/
.card-body-icon {
	display: inline-block;
	width: 40px;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	border: 1px solid #fff;
	margin: -40px auto 0;
}

.card-body-icon i {
	font-size: 24px;
}

/************** 口碑见证页面 ****************/
.box .box_1 {
	background: #ffeff5 url("../images/icon_5.png") no-repeat 80% center;
	background-size: 100px 100px;
	padding: 40px 0 30px 60px;
}

.box .box_2 {
	background: #fdf3f2 url("../images/icon_6.png") no-repeat 80% center;
	background-size: 100px 100px;
	padding: 40px 0 30px 60px;
}

.comment-card {
	border-radius: 12px;
	box-shadow: 3px 6px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	padding: 15px 30px;
}

.comment-card:hover {
	transform: translateY(-3px);
	box-shadow: 3px 6px 16px rgba(0, 0, 0, 0.1);
}

.comment-card .img-thumbnail {
	width: 200px;
	height: 200px;
}

/*******新闻中心*******/
.snav {
	list-style: none;
	line-height: 60px;
	padding: 0;
	margin: 0;
}

.snav .nav-item {
	background-color: var(--color-silver);
	margin-bottom: 2px;
}

.snav .nav-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 30px 0 40px;
}

.snav .nav-link:hover {
	color: var(--color-main);
}

/********分页条************/
.pagination .page-num {
	position: relative;
	display: block;
	padding: var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);
	font-size: var(--bs-pagination-font-size);
	color: var(--bs-pagination-color);
	text-decoration: none;
	background-color: var(--bs-pagination-bg);
	border: var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);
	transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.pagination .page-num-current{
	background-color: var(--color-main);
	color: white;
	border-color: var(--color-main);
}

/*热门关键词*/
.keyword a{ color: var(--color-dark) !important;}
.keyword a:hover{color: var(--color-main) !important;}

/*当前位置*/
.position  a{color: var(--color-dark) !important; text-decoration: none;}
.position  a:hover{color: var(--color-main) !important;}