



* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Orbitron", monospace;
	background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
	color: #fff;
	overflow: hidden;
	height: 100vh;
}

.container {
	position: relative;
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 星空背景 */
.stars {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="star" cx="50%" cy="50%"><stop offset="0%" stop-color="%23fff"/><stop offset="100%" stop-color="%23fff" stop-opacity="0"/></radialGradient></defs><circle cx="100" cy="100" r="1" fill="url(%23star)"/><circle cx="200" cy="300" r="0.5" fill="url(%23star)"/><circle cx="300" cy="150" r="1.5" fill="url(%23star)"/><circle cx="400" cy="400" r="0.8" fill="url(%23star)"/><circle cx="500" cy="250" r="1" fill="url(%23star)"/><circle cx="600" cy="350" r="0.6" fill="url(%23star)"/><circle cx="700" cy="200" r="1.2" fill="url(%23star)"/><circle cx="800" cy="450" r="0.9" fill="url(%23star)"/><circle cx="900" cy="300" r="1" fill="url(%23star)"/><circle cx="150" cy="500" r="0.7" fill="url(%23star)"/><circle cx="250" cy="600" r="1.1" fill="url(%23star)"/><circle cx="350" cy="550" r="0.8" fill="url(%23star)"/><circle cx="450" cy="700" r="1.3" fill="url(%23star)"/><circle cx="550" cy="650" r="0.9" fill="url(%23star)"/><circle cx="650" cy="750" r="1" fill="url(%23star)"/><circle cx="750" cy="600" r="0.6" fill="url(%23star)"/><circle cx="850" cy="800" r="1.2" fill="url(%23star)"/><circle cx="950" cy="700" r="0.8" fill="url(%23star)"/></svg>')
		repeat;
	animation: twinkle 4s ease-in-out infinite;
}

.twinkling {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	animation: twinkle 3s ease-in-out infinite reverse;
}

@keyframes twinkle {
	0%,
	100% {
		opacity: 0.3;
	}
	50% {
		opacity: 1;
	}
}

.content {
	position: relative;
	z-index: 10;
	text-align: center;
	max-width: 800px;
	padding: 2rem;
}

/* 404 数字样式 */
.error-code {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 2rem;
	font-size: 8rem;
	font-weight: 900;
	color: #fff;
	text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.digit {
	animation: float 3s ease-in-out infinite;
	text-shadow: 0 0 30px #00ffff, 0 0 60px #00ffff;
}

.digit:nth-child(1) {
	animation-delay: 0s;
}
.digit:nth-child(3) {
	animation-delay: 1.5s;
}

.zero-container {
	position: relative;
	margin: 0 1rem;
}

.zero {
	font-size: 8rem;
	font-weight: 900;
	color: #fff;
	text-shadow: 0 0 30px #ff6b6b, 0 0 60px #ff6b6b;
	animation: rotate 10s linear infinite;
}

.planet {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	background: linear-gradient(45deg, #4ecdc4, #44a08d);
	border-radius: 50%;
	box-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
	animation: orbit 8s linear infinite;
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-20px);
	}
}

@keyframes rotate {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@keyframes orbit {
	0% {
		transform: translate(-50%, -50%) rotate(0deg) translateX(30px) rotate(0deg);
	}
	100% {
		transform: translate(-50%, -50%) rotate(360deg) translateX(30px)
			rotate(-360deg);
	}
}

/* 标题样式 */
.title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
	background-size: 200% 200%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: gradient 3s ease infinite;
}

.subtitle {
	font-size: 1.2rem;
	color: #ccc;
	margin-bottom: 3rem;
	animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 宇航员样式 */
.astronaut {
	position: absolute;
	top: 20%;
	right: 10%;
	animation: float 4s ease-in-out infinite;
}

.astronaut-body {
	position: relative;
	width: 80px;
	height: 120px;
}

.helmet {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 60px;
	background: linear-gradient(45deg, #e0e0e0, #f0f0f0);
	border-radius: 50%;
	border: 3px solid #ccc;
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.helmet::before {
	content: "";
	position: absolute;
	top: 15px;
	left: 15px;
	width: 30px;
	height: 20px;
	background: rgba(0, 150, 255, 0.3);
	border-radius: 50%;
	border: 2px solid rgba(0, 150, 255, 0.5);
}

.body {
	position: absolute;
	top: 50px;
	left: 50%;
	transform: translateX(-50%);
	width: 50px;
	height: 60px;
	background: linear-gradient(45deg, #fff, #f0f0f0);
	border-radius: 25px;
	border: 2px solid #ccc;
}

.arms {
	position: absolute;
	top: 60px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
}

.arm {
	position: absolute;
	width: 15px;
	height: 40px;
	background: linear-gradient(45deg, #fff, #f0f0f0);
	border-radius: 7px;
	border: 2px solid #ccc;
}

.arm.left {
	left: -20px;
	transform: rotate(-30deg);
	animation: wave 2s ease-in-out infinite;
}

.arm.right {
	right: -20px;
	transform: rotate(30deg);
	animation: wave 2s ease-in-out infinite reverse;
}

.legs {
	position: absolute;
	top: 100px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
}

.leg {
	position: absolute;
	width: 12px;
	height: 30px;
	background: linear-gradient(45deg, #fff, #f0f0f0);
	border-radius: 6px;
	border: 2px solid #ccc;
}

.leg.left {
	left: 5px;
	animation: kick 3s ease-in-out infinite;
}

.leg.right {
	right: 5px;
	animation: kick 3s ease-in-out infinite reverse;
}

@keyframes wave {
	0%,
	100% {
		transform: rotate(-30deg);
	}
	50% {
		transform: rotate(-60deg);
	}
}

@keyframes kick {
	0%,
	100% {
		transform: rotate(0deg);
	}
	50% {
		transform: rotate(15deg);
	}
}

/* 按钮样式 */
.buttons {
	display: flex;
	gap: 2rem;
	justify-content: center;
	margin-top: 3rem;
	animation: fadeInUp 1s ease-out 1s both;
}

.btn {
	position: relative;
	padding: 1rem 2rem;
	font-family: "Orbitron", monospace;
	font-size: 1rem;
	font-weight: 600;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	overflow: hidden;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.btn.primary {
	background: linear-gradient(45deg, #ff6b6b, #ee5a24);
	color: white;
	box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn.secondary {
	background: linear-gradient(45deg, #4ecdc4, #44a08d);
	color: white;
	box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-glow {
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.3),
		transparent
	);
	transition: left 0.5s ease;
}

.btn:hover .btn-glow {
	left: 100%;
}

/* 浮动元素 */
.floating-elements {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.element {
	position: absolute;
	font-size: 2rem;
	animation: floatElement 6s ease-in-out infinite;
	animation-delay: var(--delay);
}

.element:nth-child(1) {
	top: 20%;
	left: 10%;
}
.element:nth-child(2) {
	top: 30%;
	right: 15%;
}
.element:nth-child(3) {
	top: 60%;
	left: 5%;
}
.element:nth-child(4) {
	top: 70%;
	right: 10%;
}
.element:nth-child(5) {
	top: 40%;
	left: 50%;
}

@keyframes floatElement {
	0%,
	100% {
		transform: translateY(0px) rotate(0deg);
		opacity: 0.7;
	}
	50% {
		transform: translateY(-30px) rotate(180deg);
		opacity: 1;
	}
}

/* 响应式设计 */
@media (max-width: 768px) {
	.error-code {
		font-size: 4rem;
	}

	.zero {
		font-size: 4rem;
	}

	.planet {
		width: 30px;
		height: 30px;
	}

	.title {
		font-size: 1.8rem;
	}

	.subtitle {
		font-size: 1rem;
	}

	.buttons {
		flex-direction: column;
		align-items: center;
	}

	.astronaut {
		display: none;
	}

	.floating-elements {
		display: none;
	}
}

@media (max-width: 480px) {
	.error-code {
		font-size: 3rem;
	}

	.zero {
		font-size: 3rem;
	}

	.planet {
		width: 25px;
		height: 25px;
	}

	.title {
		font-size: 1.5rem;
	}
}
