/* 基本页面样式 */
body {
	font-family: 'Nunito', sans-serif;
	background: linear-gradient(135deg, #FF6F61, #D4A5A5);
	margin: 0;
	padding: 0;
	color: #333;
	height: 100%;
	overflow-x: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

/* 固定标题样式 */
h1 {
	font-family: 'Roboto', sans-serif;
	font-size: 3rem;
	color: #2C3E50;
	text-align: center;
	margin: 0;
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	animation: fadeIn 1s ease-in-out;
}

/* 渐变色动画 */
@keyframes fadeIn {
	0% {
		opacity: 0;
		transform: translateY(-20px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 标题下方的装饰条 */
h1::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 0;
	width: 60px;
	height: 3px;
	background-color: #FF6F61;
	border-radius: 5px;
}

/* 主体容器样式 */
.container {
	width: 1000px;  /* 宽度增加 */
	margin: 100px auto 0;
	background-color: #fff;
	padding: 40px;
	border-radius: 15px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	margin-top: 80px;
	animation: fadeInUp 1.2s ease-out;
}

/* 上升动画 */
@keyframes fadeInUp {
	0% {
		opacity: 0;
		transform: translateY(30px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 时间轴容器 */
.timeline {
	display: flex;
	flex-direction: column;
	gap: 30px;
	padding: 0;
	list-style: none;
	margin-top: 10px;
	max-height: 70vh;
	overflow-y: auto;
}

/* 每条碎言碎语样式 */
.quote-box {
	padding: 20px;
	background-color: #FAF9F6;
	border-left: 6px solid #FF6F61;
	border-radius: 12px;
	font-size: 1.2rem;
	font-style: italic;
	color: #555;
	position: relative;
	transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	display: flex;
	align-items: center; /* Align content */
	gap: 15px; /* Add space between number and text */
}

/* 碎言碎语盒子的悬停效果 */
.quote-box:hover {
	background-color: #FFF6F0;
	transform: translateY(-10px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 序号的样式 */
.quote-box .quote-number {
	font-size: 1.5rem;
	font-weight: bold;
	color: #FF6F61;
	background-color: #fff;
	padding: 5px 10px;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 每条碎言碎语的时间标记 */
.quote-box::after {
	content: attr(data-time);
	position: absolute;
	bottom: 10px;
	right: 15px;
	font-size: 1rem;
	color: #FF6F61;
	font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.container {
		padding: 25px;
	}
	h1 {
		font-size: 2rem;
	}
	.quote-box {
		font-size: 1.1rem;
		padding: 20px;
	}
}

@media (max-width: 480px) {
	h1 {
		font-size: 1.7rem;
	}
	.quote-box {
		font-size: 1rem;
		padding: 15px;
	}
}
