:root {
	--bg-color: #0f172a;
	--text-color: #e2e8f0;
	--accent-color: #38bdf8;
	--secondary-color: #94a3b8;
	--card-bg: rgba(30, 41, 59, 0.7);
	--font-main: 'Noto Sans SC', sans-serif;
	--font-mono: 'Roboto Mono', monospace;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-main);
	background-color: var(--bg-color);
	color: var(--text-color);
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	position: relative;
}

/* Dynamic Gradient Background */
.background-animation {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(45deg, #0f172a, #1e293b, #334155, #1e1b4b);
	background-size: 400% 400%;
	animation: gradientBG 15s ease infinite;
	z-index: -1;
}

@keyframes gradientBG {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

.container {
	text-align: center;
	padding: 2rem;
	background: var(--card-bg);
	backdrop-filter: blur(10px);
	border-radius: 20px;
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
	border: 1px solid rgba(255, 255, 255, 0.1);
	max-width: 800px;
	width: 90%;
	animation: fadeIn 1s ease-out;
}

header h1 {
	font-size: 2.5rem;
	margin-bottom: 2rem;
	font-weight: 300;
	letter-spacing: 2px;
	color: var(--accent-color);
	text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.dafu-name {
	color: #fbbf24;
	font-weight: 700;
	font-size: 1.1em;
	text-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
	margin: 0 0.2rem;
	display: inline-block;
	animation: pulseName 2s infinite ease-in-out;
}

@keyframes pulseName {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.1);
	}
}

.countdown-container {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 3rem;
	flex-wrap: wrap;
}

.time-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: rgba(15, 23, 42, 0.6);
	padding: 1.5rem;
	border-radius: 12px;
	min-width: 100px;
	border: 1px solid rgba(255, 255, 255, 0.05);
	transition: transform 0.3s ease;
}

.time-box:hover {
	transform: translateY(-5px);
	border-color: var(--accent-color);
}

.number {
	font-family: var(--font-mono);
	font-size: 3.5rem;
	font-weight: 700;
	color: #fff;
	line-height: 1;
	margin-bottom: 0.5rem;
}

.label {
	font-size: 1rem;
	color: var(--secondary-color);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.quote-container {
	margin-top: 2rem;
	padding: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	min-height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#quote-text {
	font-size: 1.2rem;
	font-style: italic;
	color: var(--text-color);
	line-height: 1.6;
	opacity: 0.9;
	transition: opacity 0.5s ease;
}

footer {
	margin-top: 2rem;
	font-size: 0.9rem;
	color: var(--secondary-color);
	opacity: 0.7;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive Design */
@media (max-width: 600px) {
	header h1 {
		font-size: 1.8rem;
	}

	.countdown-container {
		flex-wrap: wrap;
		justify-content: center;
		gap: 1rem;
	}

	/* 天单独一行，横向展示 */
	.time-box:first-child {
		flex-direction: row;
		background: transparent;
		border: none;
		padding: 0;
		min-width: auto;
		gap: 0.5rem;
		width: 100%;
		justify-content: center;
	}

	.time-box:first-child .number {
		font-size: 4rem;
		margin-bottom: 0;
		font-weight: 700;
		text-shadow: 0 0 20px rgba(56, 189, 248, 0.8);
	}

	.time-box:first-child .label {
		font-size: 1.8rem;
		align-self: center;
		font-weight: 700;
		color: var(--accent-color);
	}

	/* 其他时间框保持原有样式 */
	.time-box:not(:first-child) {
		min-width: 70px;
		padding: 1rem;
	}

	.time-box:not(:first-child) .number {
		font-size: 2rem;
	}

	.time-box:not(:first-child) .label {
		font-size: 0.8rem;
	}
}