.main {
	width: 600px;
	height: 380px;
	position: relative;
	perspective: 1000px;
	transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.1);
	box-shadow: 0 3px 3px -10px rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	transition: transform 0.6s ease;
}
.main:not(.clicked):hover {

	transform: translateY(-10px);

	transition: transform 0.6s ease;
}
.main-float {
	animation: float 5s ease-in-out infinite;
}


.flap:not(.clicked):hover {
	transform: rotateX(-23deg);
}
.mainopen {
	transform: translateY(150px);
	transition: transform 0.8s ease;
}


.flap {
	width: 0;
	height: 0px;
	position: absolute;
	top: 0;
	left: 0;
	border-left: 300px solid transparent;
	border-right: 300px solid transparent;
	border-top: 170px solid #f5b0b9;

	transform: rotateX(0deg);
	transform-origin: top;
	transition: transform 0.6s ease,opacity 0.6s ease;
	z-index: 50;
	cursor: url('../cakesvg/cake.svg') 22 16, pointer;
	border-radius: 8px;

}

.flapopen {
	transform: rotateX(175deg);

}

.envelope {
	display: flex;
	justify-content: center;
	align-items: center;
	background: #fceaea;
	width: 600px;
	height: 370px;
	z-index: 100;

	border-radius: 6px;
	box-shadow:
		inset 0 -2px 5px rgba(0, 0, 0, 0.02),
		0 8px 20px rgba(0, 0, 0, 0.06),
		0 1px 2px rgba(0, 0, 0, 0.04);

}

.envelope::after {
	content: '';
	position: absolute;
	bottom: 12%;
	left: 10%;
	width: 80%;
	height: 2px;
	background: repeating-linear-gradient(90deg, #dbb6b6 0px, #dbb6b6 6px, transparent 6px, transparent 12px);
	opacity: 0.4;
	border-radius: 2px;
}

.letter {
	cursor: url('../cakesvg/scake.svg') 22 16, default;
	perspective: 1000px;
	transform: translateY(0px);
	position: relative;
	width: 570px;
	height: 365px;
	background-color: #FFF9F5;
	z-index: -2;
	border-radius: 4px;
	box-shadow:
		inset 0 -2px 5px rgba(0, 0, 0, 0.02),
		0 8px 20px rgba(0, 0, 0, 0.06),
		0 1px 2px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.3s, transform 0.6s ease,opacity 0.6s ease;

}

.lettercursor {
	cursor: url('../cakesvg/cake.svg') 22 16, pointer;
}

.lettertwo {
	position: absolute;
	top: 99%;
	width: 570px;
	height: 320px;
	background-color: #FFF9F5;
	transform-origin: top;
	transform: rotateX(180deg);
	transition: transform 0.8s ease;
	z-index: 0;
	backface-visibility: visible;
	transform-style: preserve-3d;
	border-radius: 4px;
	border-top-left-radius: 0;
	/* 与上一页衔接自然 */
	border-top-right-radius: 0;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s, transform 0.6s ease;

}

.letteropen {

	transform: translateY(-90px);
	transition: transform 0.6s ease;
}

.letteropento {
	transform: translateY(-380px);
}

p {
	display: block;
	
	backface-visibility: hidden;
	/* 	padding-left: 10px;
				padding-top: 3px;
				margin-top: 2px; */

}

.letter p,
.lettertwo p {
	color: #5d3e25;
	font-size: 16px;
	line-height: 1.7;
	text-shadow: 0 1px 1px rgba(255, 245, 225, 0.8);
	padding-left: 20px;
	padding-right: 15px;
	margin-bottom: 6px;
	font-family: '楷体', 'KaiTi', 'Georgia', serif;
}

.letter>p:first-of-type {
	font-size: 18px;
	font-weight: 600;
	color: #8b5a34;
	margin-top: 15px;
	text-indent: 0;
}

.letter p:nth-of-type(2),
.letter p:nth-of-type(3),
.letter p:nth-of-type(4),
.letter p:nth-of-type(5),
.letter p:nth-of-type(6) {
	text-indent: 2em;
}

.lettertwo p:nth-of-type(1) {
	text-indent: 2em;
}

/* 落款区域右对齐 */
.lettertwo p:nth-last-of-type(2) {
	text-align: right;
	font-weight: 600;
	padding-right: 25px;
	font-size: 20px;
	color: #6e4e32;
}

.lettertwo p:nth-last-of-type(1) {

	color: #6e4e32;
	text-align: right;
	font-size: 13px;
}