更新 index.html

This commit is contained in:
He
2025-09-30 19:58:46 +08:00
parent 1a9334ee5a
commit 37c9d8b20e

View File

@@ -1,122 +1,122 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh-CN"> <html lang="zh-CN">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title> <title></title>
<style> <style>
* { * {
margin: 0; margin: 0;
padding: 0; padding: 0;
box-sizing: border-box; box-sizing: border-box;
} }
body { body {
font-family: 'Helvetica Neue', Arial, sans-serif; font-family: 'Helvetica Neue', Arial, sans-serif;
background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
color: white; color: white;
min-height: 100vh; min-height: 100vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
padding: 20px; padding: 20px;
text-align: center; text-align: center;
} }
.container { .container {
max-width: 800px; max-width: 800px;
padding: 40px; padding: 40px;
background-color: rgba(255, 255, 255, 0.1); background-color: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
border-radius: 20px; border-radius: 20px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
animation: fadeIn 1.5s ease-out; animation: fadeIn 1.5s ease-out;
} }
h1 { h1 {
font-size: 5rem; font-size: 5rem;
margin-bottom: 20px; margin-bottom: 20px;
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3); text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
letter-spacing: 2px; letter-spacing: 2px;
animation: pulse 2s infinite; animation: pulse 2s infinite;
} }
p { p {
font-size: 1.5rem; font-size: 1.5rem;
line-height: 1.6; line-height: 1.6;
margin-bottom: 30px; margin-bottom: 30px;
opacity: 0.9; opacity: 0.9;
} }
.decoration { .decoration {
display: flex; display: flex;
justify-content: center; justify-content: center;
gap: 15px; gap: 15px;
margin: 30px 0; margin: 30px 0;
} }
.circle { .circle {
width: 20px; width: 20px;
height: 20px; height: 20px;
border-radius: 50%; border-radius: 50%;
background-color: white; background-color: white;
opacity: 0.7; opacity: 0.7;
animation: bounce 2s infinite alternate; animation: bounce 2s infinite alternate;
} }
.circle:nth-child(2) { .circle:nth-child(2) {
animation-delay: 0.2s; animation-delay: 0.2s;
} }
.circle:nth-child(3) { .circle:nth-child(3) {
animation-delay: 0.4s; animation-delay: 0.4s;
} }
.quote { .quote {
font-style: italic; font-style: italic;
margin-top: 40px; margin-top: 40px;
padding: 20px; padding: 20px;
border-left: 3px solid rgba(255, 255, 255, 0.5); border-left: 3px solid rgba(255, 255, 255, 0.5);
text-align: left; text-align: left;
} }
@keyframes fadeIn { @keyframes fadeIn {
from { opacity: 0; transform: translateY(30px); } from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); } to { opacity: 1; transform: translateY(0); }
} }
@keyframes pulse { @keyframes pulse {
0% { transform: scale(1); } 0% { transform: scale(1); }
50% { transform: scale(1.05); } 50% { transform: scale(1.05); }
100% { transform: scale(1); } 100% { transform: scale(1); }
} }
@keyframes bounce { @keyframes bounce {
from { transform: translateY(0); } from { transform: translateY(0); }
to { transform: translateY(-15px); } to { transform: translateY(-15px); }
} }
@media (max-width: 600px) { @media (max-width: 600px) {
h1 { h1 {
font-size: 3rem; font-size: 3rem;
} }
p { p {
font-size: 1.2rem; font-size: 1.2rem;
} }
.container { .container {
padding: 25px; padding: 25px;
} }
} }
</style> </style>
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<h1>你好</h1> <h1>你好</h1>
<p>一个简单的短语,蕴含着无限的可能性...</p> <p>一个简单的短语,蕴含着无限的可能性...</p>
</div> </div>
</body> </body>
</html> </html>