body {
	margin: 0;
	padding: 0;
	background: linear-gradient(to bottom, #0a0e27 0%, #0d1b3e 30%, #112240 60%, #0a1628 100%);
	font-size: 20px;
	font-family: '微软雅黑', '宋体', sans-serif;
	color: #000000;
	overflow: hidden;
  width: 100vw;
  height: 100vh;
	display: flex;
	flex-direction: column;
}

#navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(255, 192, 203, 0.95);
	padding: 15px;
	display: flex;
	justify-content: center;
	gap: 30px;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-btn {
	padding: 12px 40px;
	font-size: 18px;
	font-family: '微软雅黑', '宋体', sans-serif;
	border: 2px solid rgb(190, 26, 37);
	background: transparent;
	color: rgb(190, 26, 37);
	border-radius: 25px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: bold;
}

.nav-btn:hover {
	background: rgb(190, 26, 37);
	color: white;
}

.nav-btn.active {
	background: rgb(190, 26, 37);
	color: white;
}

.music-btn {
	min-width: 120px;
}

.music-btn.playing {
	background: rgb(190, 26, 37);
	color: white;
	animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

#diary-section {
	display: none;
	height: 100%;
	padding-top: 100px;
	padding-bottom: 50px;
	overflow: hidden;
	box-sizing: border-box;
}

#diary-content {
	max-width: 73%;
	margin: 0 auto;
	padding: 30px;
	height: 100%;
	overflow: hidden;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

#diary-content h2 {
	text-align: center;
	color: rgb(190, 26, 37);
	margin-bottom: 10px;
	font-size: 32px;
	flex-shrink: 0;
}

.diary-intro {
	text-align: center;
	color: #FF8C00;
	font-size: 21px;
	margin-bottom: 30px;
	font-style: italic;
	flex-shrink: 0;
}

#diary-entries {
	flex: 1;
	overflow-y: auto;
	padding-right: 10px;
	min-height: 0;
}

.diary-entry {
	background: white;
	padding: 25px;
	margin-bottom: 25px;
	border-radius: 15px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.diary-entry h3 {
	color: rgb(190, 26, 37);
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 20px;
}

.diary-entry p {
	line-height: 1.8;
	color: #333;
	font-size: 16px;
}

#main {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-top: 80px;
	align-items: center;
}

#main-title {
	text-align: center;
	font-size: 36px;
	font-weight: bold;
	font-family: '微软雅黑', '黑体', sans-serif;
	margin-top: 20px;
	margin-bottom: 10px;
	position: relative;
	z-index: 10;
	white-space: nowrap;
	display: flex;
	justify-content: center;
	gap: 0;
}

.title-char {
	background: linear-gradient(90deg, #FFECD2 0%, #FCB69F 50%, #FFECD2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 0 3px rgba(255, 255, 255, 0.5),
				 0 0 8px rgba(255, 255, 255, 0.3);
	opacity: 0;
	filter: blur(15px);
	display: inline-block;
	transition: all 2.1s ease-out;
}

#wrap {
	position: relative;
	margin: 0 auto;
	width: 1100px;
	height: 680px;
	margin-top: 10px;
	margin-bottom: 50px;
	background: #ffc0cb;
	border-radius: 15px;
}

#text {
	width: 400px;
	height: 425px;
	right: 60px;
	top: 80px;
	position: absolute;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
}

#code {
	font-size: 16px;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

#slideshow {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

#current-photo {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#clock-box {
	position: absolute;
	right: 60px;
	top: 550px;
	font-size: 28px;
	display: none;
	z-index: 10;
}

#clock-box a {
	font-size: 28px;
	text-decoration: none;
}

#clock {
	margin-left: 48px;
}

#clock .digit {
	font-size: 64px;
}

#canvas {
	margin: 0 auto;
	width: 1100px;
	height: 680px;
	position: relative;
	z-index: 1;
}

#error {
	margin: 0 auto;
	text-align: center;
	margin-top: 60px;
	display: none;
}

.hand {
	cursor: pointer;
}

.say {
	margin-left: 5px;
}

.space {
	margin-right: 150px;
}

#butterfly-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 99999;
	overflow: hidden;
}

.butterfly {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.butterfly-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.butterfly-head {
	width: 4px;
	height: 4px;
	background: #c71585;
	border-radius: 50%;
	position: relative;
	z-index: 4;
}

.butterfly-eye {
	position: absolute;
	width: 1px;
	height: 1px;
	background: #fff;
	border-radius: 50%;
	top: 1px;
}

.butterfly-eye-left {
	left: 0px;
}

.butterfly-eye-right {
	right: 0px;
}

.butterfly-body-line {
	width: 2px;
	height: 50px;
	background: linear-gradient(to bottom, #c71585 0%, #8b0a50 30%, #5c0030 100%);
	border-radius: 1px;
	z-index: 1;
	position: relative;
}

.butterfly-wing-container {
	position: absolute;
	top: 4px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 52px;
	z-index: 2;
}

.butterfly-wing-side {
	position: absolute;
	top: 0;
}

.butterfly-wing-left {
	left: 0;
	width: 40px;
	height: 52px;
	transform-origin: right center;
}

.butterfly-wing-right {
	right: 0;
	width: 40px;
	height: 52px;
	transform-origin: left center;
}

.butterfly-wing-upper {
	position: absolute;
}

.butterfly-wing-lower {
	position: absolute;
}

.butterfly-wing-left .butterfly-wing-upper {
	width: 36px;
	height: 32px;
	top: 0;
	right: 0;
	border-radius: 60% 28% 50% 50%;
	background: radial-gradient(ellipse at 35% 50%, rgba(255,182,193,0.85) 0%, rgba(255,105,180,0.85) 35%, rgba(255,20,147,0.85) 100%);
	box-shadow: 0 0 8px rgba(255, 105, 180, 0.5);
}

.butterfly-wing-left .butterfly-wing-lower {
	width: 24px;
	height: 22px;
	top: 30px;
	right: 0;
	border-radius: 50% 28% 50% 40%;
	background: radial-gradient(ellipse at 35% 45%, rgba(255,182,193,0.8) 0%, rgba(255,105,180,0.8) 40%, rgba(234,128,176,0.8) 100%);
	box-shadow: 0 0 6px rgba(255, 105, 180, 0.4);
}

.butterfly-wing-right .butterfly-wing-upper {
	width: 36px;
	height: 32px;
	top: 0;
	left: 0;
	border-radius: 28% 60% 50% 50%;
	background: radial-gradient(ellipse at 65% 50%, rgba(255,182,193,0.85) 0%, rgba(255,105,180,0.85) 35%, rgba(255,20,147,0.85) 100%);
	box-shadow: 0 0 8px rgba(255, 105, 180, 0.5);
}

.butterfly-wing-right .butterfly-wing-lower {
	width: 24px;
	height: 22px;
	top: 30px;
	left: 0;
	border-radius: 28% 50% 40% 50%;
	background: radial-gradient(ellipse at 65% 45%, rgba(255,182,193,0.8) 0%, rgba(255,105,180,0.8) 40%, rgba(234,128,176,0.8) 100%);
	box-shadow: 0 0 6px rgba(255, 105, 180, 0.4);
}

.butterfly-antenna {
	position: absolute;
	width: 1px;
	height: 10px;
	background: #c71585;
	top: -6px;
	z-index: 3;
}

.butterfly-antenna-left {
	left: 1px;
	transform: rotate(-30deg);
}

.butterfly-antenna-right {
	right: 1px;
	transform: rotate(30deg);
}

.butterfly-antenna::after {
	content: '';
	position: absolute;
	width: 2px;
	height: 2px;
	border-radius: 50%;
	background: #ff69b4;
	top: -2px;
	left: -1px;
}

.butterfly-legs {
	display: flex;
	justify-content: center;
	gap: 2px;
	position: absolute;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 4;
}

.butterfly-leg {
	width: 1px;
	height: 6px;
	background: #8b0a50;
	transform-origin: top center;
}

.butterfly-leg:nth-child(1) {
	transform: rotate(-25deg);
	height: 5px;
}

.butterfly-leg:nth-child(2) {
	transform: rotate(0deg);
	height: 6px;
}

.butterfly-leg:nth-child(3) {
	transform: rotate(25deg);
	height: 5px;
}

.butterfly-leg::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: -1px;
	width: 2px;
	height: 1px;
	background: #8b0a50;
	border-radius: 50%;
}

.butterfly.resting .butterfly-leg {
	transform: rotate(0deg);
	height: 4px;
}

.butterfly-glow {
	filter: drop-shadow(0 0 6px rgba(255, 105, 180, 0.7)) drop-shadow(0 0 12px rgba(255, 20, 147, 0.4));
}

.butterfly-poem {
	font-size: 16px;
	color: #fff;
	font-family: '微软雅黑', '黑体', sans-serif;
	white-space: nowrap;
	margin-top: 4px;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.butterfly.resting .butterfly-poem {
	opacity: 1;
}

.butterfly-particle {
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	pointer-events: none;
	opacity: 1;
}

.diary-subtitle {
	color: #888 !important;
	font-size: 14px !important;
	margin-bottom: 10px !important;
	font-style: italic;
}

.diary-images {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 15px;
}

.diary-image {
	max-width: 100%;
	width: 300px;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 3px 10px rgba(0,0,0,0.15);
	object-fit: cover;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.diary-image:hover {
	transform: scale(1.02);
}
