/* 基础样式 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Microsoft YaHei", sans-serif;
	/*  background: linear-gradient(135deg, #D1BFFF, #F2E5FF); */
	/* 	background:
		linear-gradient(to bottom, rgba(0, 0, 0, 0), #fff),
		linear-gradient(to right, #F2E5FF 20%, #D1BFFF); */
	background:

		linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.9)),
		linear-gradient(to right, #FDF2FF 30%, #CDDCFA, #D1BFFF);


	color: #333;
	overflow-x: hidden;
	
}



/* 头部 */
.header {
	/* background-color: rgba(0, 0, 0, 0.2); */

	padding: 20px 0;
	position: sticky;
	top: 0;
	z-index: 999;
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	float: left;
	display: flex;
	align-items: center;
}

.logo a {
	color: #333333;
	text-decoration: none;
	margin-left: 10px;
	font-size: 22px;
	font-weight: bold;
	transition: all 0.3s ease;
}

.logoimg {
	height: 60px;
	border-radius: 20px;
}

.nav {
	float: right;
}

.nav a {
	color: #333333;
	text-decoration: none;
	margin-left: 20px;
	font-size: 22px;
	font-weight: bold;
	transition: all 0.3s ease;
}

/* 导航点 */
.nav-dots {
	position: fixed;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 15px;
	z-index: 1000;
}

.nav-dots a {
	width: 12px;
	height: 12px;
	background-color: white;
	border-radius: 50%;
	opacity: 0.6;
	transition: all 0.3s ease;
}

.nav-dots a:hover,
.nav-dots .active {
	opacity: 1;
	transform: scale(1.2);
}

/* 内容区域 */
.section {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-around;
	padding: 30px 30px;
	min-height: 100vh;
	/* border: 1px red solid; */
	width: 100%;
}


.text-part {
	flex: 1;
	max-width: 700px;
	opacity: 0.9;
	transform: translateY(30px);
	transition: all 0.8s ease;
	/* border: 1px blue solid; */
	padding: 10px 30px;

}
.odd-text{
	/* padding: 10px 30px 10px 30px; */
	padding-left: 100px;
}
.even-text{
	padding-right: 100px;
	/* padding: 10px 10px 10px 60px; */
}
.text-part h2 {
	font-size: 40px;
	margin-bottom: 20px;
	color: #333;
}

.text-part p {
	font-size: 28px;
	line-height: 1.6;
	color: #666;
}

.fade-in .text-part {
	opacity: 1;
	transform: translateY(0);
}

.image-part {
	position: relative;  /*新增：使 ::before 能够相对于这个元素进行定位*/
	flex: 1;
	max-width: 350px;
	/* border: 1px red solid; */
	border-radius: 10px;


}
/* 添加新的样式用于创建渐变遮罩 */
/* 从完全透明到完全不透明的白色渐变 */
 .image-part::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 1) ); 
  pointer-events: none; 
  border-radius: 20px; 
  }



.image-part img {
	width: 100%;
	border-radius: 20px;
	box-shadow: 0 0 8px 3px rgba(255, 255, 255, 0.7);
	background-color: rgba(255, 255, 255, 0.1);
}

.odd {
	flex-direction: row;
}

.even {
	flex-direction: row-reverse;
}

.fade-in {
	opacity: 1;
	transform: translateY(0);
}

/* 底部 */
.footer {

	background:
		linear-gradient(to right, #FDF2FF 30%, #CDDCFA, #D1BFFF);
	text-align: center;
	padding: 40px 0;

	
}

.footer p {
	margin-bottom: 10px;
	font-size: 14px;
	color: #999;
	/* border: 1px red solid; */
	padding: 0 10px;
}

.footer a {
	color: #999;
	text-decoration: underline; 
}

/* 响应式设计 */

@media (max-width: 768px) {
	body {
		font-size: 16px;
	}

	.section {
		flex-direction: column;
		padding-top: 5px;
		/* 减少顶部间距 */
		padding: 30px 10px;
	}

	.text-part {
		padding: 20px;
	}

	.text-part h2 {
		font-size: 24px;
	}

	.text-part p {
		font-size: 18px;
	}

	.image-part {
		max-width: 300px;
		margin-top: 20px;
		/* 确保图片不会与文字重叠 */
	}

	.nav-dots {
		top: auto;
		bottom: 20px;
		left: 50%;
		transform: translateX(-50%);
		right: auto;
		flex-direction: row;
	}

	.nav a {
		font-size: 18px;
	}
	.logo a{
		font-size: 16px;
	}

	.header {
		background:
			linear-gradient(to right, #FDF2FF 30%, #CDDCFA, #D1BFFF);
	}

}