* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
	background-color: #f5f5f5;
	color: #333;
	max-width: 100%;
	overflow-x: hidden;
}

.container {
	width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: #fff;
}

/* ============ 优化后的轮播图部分 ============ */
.banner-section {
	height: 25vh;
	min-height: 180px;
	/* 最小高度保证显示效果 */
	width: 100%;
	position: relative;
	overflow: hidden;
	background-color: #000;
	/* 添加黑色背景防止图片加载时的白边 */
}

.banner-slider {
	height: 100%;
	width: 100%;
	position: relative;
}

.banner-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.8s ease;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 15px;
	color: white;
	text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
	font-weight: bold;
	font-size: 16px;
	text-align: center;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* 添加遮罩层增强文字可读性 */
.banner-slide::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 80px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
	z-index: 1;
}

.banner-slide>div {
	position: relative;
	z-index: 2;
	padding: 8px 20px;
	border-radius: 4px;
	backdrop-filter: blur(2px);
	background-color: rgba(0, 0, 0, 0.3);
	max-width: 90%;
	margin: 0 auto;
}

.banner-slide.active {
	opacity: 1;
}

.slide-indicators {
	position: absolute;
	bottom: 20px;
	left: 0;
	width: 100%;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 10;
}

.indicator {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.3s ease;
}

.indicator.active {
	background-color: #fff;
	transform: scale(1.3);
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* 左右切换箭头（可选） */
.slide-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 18px;
	cursor: pointer;
	z-index: 10;
	opacity: 0;
	transition: opacity 0.3s ease, background-color 0.3s ease;
}

.banner-section:hover .slide-arrow {
	opacity: 1;
}

.slide-arrow:hover {
	background-color: rgba(0, 0, 0, 0.6);
}

.arrow-left {
	left: 10px;
}

.arrow-right {
	right: 10px;
}

/* 主要内容区域 */
.main-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.theme-title {
	text-align: center;
	font-size: 20px;
	color: #333;
	margin-bottom: 30px;
	font-weight: 600;
}

.theme-title span {
	color: #07c160;
}

/* 写信按钮样式 */
.write-btn-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 20px 0 40px;
	position: relative;
}

.envelope-wrapper {
	position: relative;
	width: 180px;
	height: 140px;
	cursor: pointer;
	margin-bottom: 20px;
	perspective: 1000px;
}

.envelope {
	position: absolute;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.envelope:hover {
	transform: translateY(-10px);
}

.envelope-body {
	position: absolute;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #07c160, #05a54f);
	clip-path: polygon(0% 30%, 50% 0%, 100% 30%, 100% 100%, 0% 100%);
	border-radius: 12px;
	box-shadow: 0 15px 35px rgba(7, 193, 96, 0.25);
	z-index: 2;
	overflow: hidden;
}

.envelope-body::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.envelope-flap {
	position: absolute;
	width: 100%;
	height: 60%;
	background: linear-gradient(135deg, #06b357, #08d46a);
	clip-path: polygon(0% 0%, 50% 100%, 100% 0%);
	border-radius: 12px 12px 0 0;
	z-index: 3;
	transition: transform 0.4s ease;
	transform-origin: top;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.envelope-wrapper:hover .envelope-flap {
	transform: rotateX(-180deg);
}

.letter-inside {
	position: absolute;
	width: 90%;
	height: 85%;
	background: white;
	border-radius: 8px;
	top: 15%;
	left: 5%;
	z-index: 1;
	transform: translateY(10px);
	opacity: 0;
	transition: all 0.4s ease 0.1s;
	box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 15px;
}

.envelope-wrapper:hover .letter-inside {
	transform: translateY(0);
	opacity: 1;
}

.letter-lines {
	position: absolute;
	width: 80%;
	height: 70%;
	background: repeating-linear-gradient(to bottom,
			transparent,
			transparent 20px,
			rgba(7, 193, 96, 0.1) 20px,
			rgba(7, 193, 96, 0.1) 21px);
	left: 10%;
	top: 15%;
}

.write-icon-inside {
	font-size: 28px;
	color: #07c160;
	margin-bottom: 8px;
	z-index: 2;
}

.write-text-inside {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	z-index: 2;
}

.write-action-btn {
	position: relative;
	background: linear-gradient(135deg, #07c160, #05a54f);
	color: white;
	padding: 12px 30px;
	border-radius: 30px;
	font-size: 18px;
	font-weight: bold;
	letter-spacing: 1px;
	box-shadow: 0 8px 20px rgba(7, 193, 96, 0.3);
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	outline: none;
}

.write-action-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 10px 25px rgba(7, 193, 96, 0.4);
}

.write-action-btn:active {
	transform: scale(0.98);
}

.write-action-btn i {
	font-size: 20px;
}

.floating-particles {
	position: absolute;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.particle {
	position: absolute;
	width: 6px;
	height: 6px;
	background: rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	animation: float 3s ease-in-out infinite;
}

@keyframes float {

	0%,
	100% {
		transform: translate(0, 0);
		opacity: 0;
	}

	10%,
	90% {
		opacity: 1;
	}

	50% {
		transform: translate(var(--tx), var(--ty));
	}
}

.write-desc {
	color: #666;
	font-size: 14px;
	text-align: center;
	max-width: 80%;
	line-height: 1.6;
	margin-top: 20px;
	padding: 0 10px;
}

.write-desc strong {
	color: #07c160;
	font-weight: 600;
}

/* 底部导航栏 */
.nav-section {
	height: 70px;
	width: 100%;
	background-color: #fff;
	border-top: 1px solid #eee;
	display: flex;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-btn {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #888;
	transition: all 0.3s ease;
	position: relative;
}

.nav-btn.active {
	color: #07c160;
}

.nav-btn.active::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: #07c160;
}

.nav-icon {
	font-size: 20px;
	margin-bottom: 5px;
}

.nav-text {
	font-size: 12px;
}

/* 响应式调整 */
@media (max-height: 700px) {
	.banner-section {
		height: 22vh;
		min-height: 160px;
	}

	.envelope-wrapper {
		width: 160px;
		height: 120px;
		margin-bottom: 15px;
	}

	.write-action-btn {
		padding: 10px 25px;
		font-size: 16px;
	}

	.nav-section {
		height: 65px;
	}
}

@media (max-height: 600px) {
	.theme-title {
		font-size: 20px;
		margin-bottom: 20px;
	}

	.banner-section {
		min-height: 140px;
	}

	.banner-slide {
		font-size: 14px;
	}

	.banner-slide>div {
		padding: 6px 15px;
	}

	.envelope-wrapper {
		width: 140px;
		height: 100px;
		margin-bottom: 12px;
	}

	.write-action-btn {
		padding: 8px 20px;
		font-size: 15px;
	}

	.write-desc {
		font-size: 13px;
		margin-top: 15px;
	}
}

@media (max-width: 360px) {
	.envelope-wrapper {
		width: 150px;
		height: 110px;
	}

	.banner-slide {
		font-size: 14px;
	}
}