gay
Some checks failed
Deploy / build-and-deploy (push) Has been cancelled

This commit is contained in:
2025-09-05 12:06:51 +08:00
parent d9414a9781
commit 346dc71d2e
2 changed files with 234 additions and 90 deletions

View File

@@ -11,7 +11,7 @@
<div id="app">
<div class="container">
<main class="main">
<h1 class="title gradient">徐越的在线学习平台</h1>
<h1 class="title gradient">♥️ 徐越的在线学习平台 ♥️</h1>
<h2 class="subtitle"></h2>
<div class="grid" id="sites"></div>
</main>

318
style.css
View File

@@ -3,10 +3,42 @@ body {
padding: 0;
margin: 0;
font-family: 'Orbitron', 'Roboto Mono', 'Fira Mono', 'Consolas', monospace, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
background: radial-gradient(ellipse at 10% 10%, #1b0036 0%, transparent 25%), linear-gradient(135deg, #0f1724 0%, #081220 40%, #120022 100%);
color: #f8f8f2;
background:
radial-gradient(circle at 20% 80%, rgba(255, 182, 193, 0.3) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(221, 160, 221, 0.3) 0%, transparent 50%),
radial-gradient(circle at 40% 40%, rgba(173, 216, 230, 0.2) 0%, transparent 50%),
linear-gradient(135deg, #ffeef8 0%, #f0e6ff 25%, #e6f3ff 50%, #fff0f5 75%, #f8f0ff 100%);
color: #4a4a4a;
min-height: 100vh;
letter-spacing: 0.02em;
letter-spacing: 0.01em;
position: relative;
overflow-x: hidden;
}
/* 添加可爱的装饰星星 */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image:
radial-gradient(2px 2px at 20px 30px, #ff69b4, transparent),
radial-gradient(2px 2px at 40px 70px, #ffb6c1, transparent),
radial-gradient(1px 1px at 90px 40px, #dda0dd, transparent),
radial-gradient(1px 1px at 130px 80px, #87ceeb, transparent),
radial-gradient(2px 2px at 160px 30px, #ffc0cb, transparent);
background-repeat: repeat;
background-size: 200px 100px;
animation: twinkle 3s ease-in-out infinite alternate;
pointer-events: none;
z-index: 1;
}
@keyframes twinkle {
0% { opacity: 0.3; }
100% { opacity: 0.8; }
}
a {
@@ -14,15 +46,17 @@ a {
text-decoration: none;
}
/* 霓虹链接 */
/* 动漫风格链接 */
a {
color: #00fff7;
text-shadow: 0 0 3px rgba(0,255,247,0.9), 0 0 6px rgba(255,0,234,0.35);
transition: color 0.18s ease, text-shadow 0.18s ease;
color: #ff69b4;
text-shadow: 0 1px 2px rgba(255, 105, 180, 0.3);
transition: all 0.3s ease;
position: relative;
}
a:hover {
color: #ff00ea;
text-shadow: 0 0 6px rgba(255,0,234,0.9), 0 0 10px rgba(0,255,247,0.25);
color: #ff1493;
text-shadow: 0 2px 4px rgba(255, 20, 147, 0.4);
transform: translateY(-1px);
}
* {
@@ -31,41 +65,64 @@ a:hover {
.container {
padding: 0 2rem;
position: relative;
z-index: 2;
}
.main {
/* 保持居中:水平与垂直;移除最外层框和动画 */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 2rem 0;
min-height: 100vh; /* 确保垂直居中 */
background: transparent;
border-radius: 0;
box-shadow: none;
backdrop-filter: none;
animation: none;
min-height: 100vh;
background: rgba(255, 255, 255, 0.1);
border-radius: 20px;
box-shadow: 0 8px 32px rgba(255, 182, 193, 0.2);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
animation: float 6s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
}
.title {
line-height: 1.15;
font-size: 2rem;
line-height: 1.2;
font-size: 2.5rem;
font-weight: bold;
text-align: center;
margin-bottom: 1rem;
}
.title {
font-family: 'Orbitron', sans-serif;
color: #ff00ea;
text-shadow: 0 0 4px rgba(255,0,234,0.9), 0 0 8px rgba(0,255,247,0.28);
letter-spacing: 0.04em;
color: #ff69b4;
text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
letter-spacing: 0.02em;
animation: bounce 2s ease-in-out infinite;
}
/* 渐变文字(用于主标题) */
/* 动漫风格渐变文字 */
.title.gradient {
background: linear-gradient(90deg, #00fff7 0%, #ff00ea 50%, #ffd400 100%);
background: linear-gradient(45deg, #ff69b4 0%, #ff1493 25%, #da70d6 50%, #9370db 75%, #8a2be2 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
text-shadow: none; /* 去掉发光以显示纯渐变 */
text-shadow: none;
animation: rainbow 3s ease-in-out infinite;
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
40% { transform: translateY(-10px); }
60% { transform: translateY(-5px); }
}
@keyframes rainbow {
0% { filter: hue-rotate(0deg); }
100% { filter: hue-rotate(360deg); }
}
.title,
@@ -74,14 +131,17 @@ a:hover {
}
.description {
margin: 4rem 0;
line-height: 1.5;
font-size: 1.5rem;
margin: 2rem 0;
line-height: 1.6;
font-size: 1.2rem;
color: #9370db;
text-shadow: 1px 1px 2px rgba(147, 112, 219, 0.3);
animation: pulse 2s ease-in-out infinite;
}
.description {
color: #00fff7;
text-shadow: 0 0 3px rgba(0,255,247,0.10), 0 0 6px rgba(255,0,234,0.04);
@keyframes pulse {
0%, 100% { opacity: 0.8; }
50% { opacity: 1; }
}
.grid {
@@ -89,70 +149,107 @@ a:hover {
align-items: center;
justify-content: center;
flex-wrap: wrap;
max-width: 800px;
}
.grid {
gap: 1rem;
max-width: 960px;
gap: 1.5rem;
max-width: 1000px;
margin-top: 2rem;
}
.card {
width: 100%;
margin: 1rem;
margin: 0;
padding: 1.5rem;
text-align: left;
color: inherit;
text-decoration: none;
border: 1px solid #eaeaea;
border-radius: 10px;
transition: color 0.15s ease, border-color 0.15s ease;
border: 2px solid rgba(255, 182, 193, 0.3);
border-radius: 20px;
transition: all 0.3s ease;
max-width: 300px;
position: relative;
overflow: hidden;
}
/* 赛博朋克卡片 */
/* 动漫风格卡片 */
.card {
color: #f8f8f2;
border: 1px solid rgba(0,255,247,0.12);
background: linear-gradient(180deg, rgba(20,0,40,0.48), rgba(5,0,20,0.52));
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.55), 0 0 12px rgba(255,0,234,0.03);
max-width: 340px;
backdrop-filter: blur(3px);
color: #4a4a4a;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 240, 245, 0.8) 100%);
box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
backdrop-filter: blur(10px);
animation: cardFloat 4s ease-in-out infinite;
}
.card::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(45deg, transparent, rgba(255, 182, 193, 0.1), transparent);
transform: rotate(45deg);
transition: all 0.6s ease;
opacity: 0;
}
.card:hover::before {
animation: shine 0.6s ease-in-out;
}
@keyframes shine {
0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
50% { opacity: 1; }
100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}
@keyframes cardFloat {
0%, 100% { transform: translateY(0px) rotate(0deg); }
50% { transform: translateY(-5px) rotate(1deg); }
}
.card.pin {
background: linear-gradient(180deg, rgba(30,0,60,0.68), rgba(10,0,30,0.72));
border-color: rgba(255,0,234,0.9);
background: linear-gradient(135deg, rgba(255, 192, 203, 0.9) 0%, rgba(255, 182, 193, 0.8) 100%);
border-color: rgba(255, 105, 180, 0.6);
animation: pinPulse 2s ease-in-out infinite;
}
@keyframes pinPulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}
.card:hover,
.card:focus,
.card:active {
color: #e6ffff;
border-color: rgba(255,0,234,0.85);
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(0,0,0,0.6), 0 0 18px 4px rgba(255,0,234,0.06);
color: #ff1493;
border-color: rgba(255, 20, 147, 0.8);
transform: translateY(-8px) scale(1.02);
box-shadow: 0 8px 25px rgba(255, 20, 147, 0.3);
}
.card h2 {
margin: 0;
font-size: 1.5rem;
margin: 0 0 0.5rem 0;
font-size: 1.4rem;
font-weight: bold;
color: #ff69b4;
text-shadow: 1px 1px 2px rgba(255, 105, 180, 0.3);
transition: all 0.3s ease;
}
.card h2 {
color: #00fff7;
text-shadow: 0 0 3px rgba(0,255,247,0.9), 0 0 6px rgba(255,0,234,0.25);
.card:hover h2 {
color: #ff1493;
transform: scale(1.05);
}
.card p {
margin: 0;
font-size: 1.25rem;
line-height: 1.5;
margin: 0.5rem 0;
font-size: 1rem;
line-height: 1.4;
color: #666;
transition: all 0.3s ease;
}
.card p {
color: #dfeffd;
.card:hover p {
color: #ff1493;
}
.card .single {
@@ -166,51 +263,83 @@ a:hover {
display: flex;
align-items: center;
margin-bottom: 1rem;
transition: all 0.3s ease;
}
.title-icon .icon {
width: 32px;
height: 32px;
width: 36px;
height: 36px;
margin-right: 12px;
transition: all 0.3s ease;
filter: drop-shadow(0 2px 4px rgba(255, 105, 180, 0.3));
}
.title-icon .icon {
filter: drop-shadow(0 0 3px rgba(0,255,247,0.9)) drop-shadow(0 0 6px rgba(255,0,234,0.35));
.card:hover .title-icon .icon {
transform: scale(1.1) rotate(5deg);
filter: drop-shadow(0 4px 8px rgba(255, 20, 147, 0.4));
}
.beian {
margin-top: 2rem;
margin-bottom: 20px;
text-align: center;
padding: 1rem;
background: rgba(255, 255, 255, 0.1);
border-radius: 15px;
backdrop-filter: blur(5px);
border: 1px solid rgba(255, 182, 193, 0.2);
}
.beian img {
width: 14px;
height: 14px;
width: 16px;
height: 16px;
margin: 0 4px;
transition: all 0.3s ease;
}
.beian img:hover {
transform: scale(1.2) rotate(10deg);
}
.beian a {
text-decoration: none;
font-size: 14px;
color: #9370db;
transition: all 0.3s ease;
text-shadow: 1px 1px 2px rgba(147, 112, 219, 0.3);
}
.beian a:hover {
color: #ff69b4;
transform: translateY(-2px);
}
.beian {
color: #00fff7;
text-shadow: 0 0 2px rgba(0,255,247,0.9);
color: #9370db;
text-shadow: 1px 1px 2px rgba(147, 112, 219, 0.3);
}
.beian a { color: #ff00ea; }
@media (max-width: 600px) {
.grid {
width: 100%;
flex-direction: column;
}
gap: 1rem;
}
@media (max-width: 600px) {
.main { padding: 1.25rem; border-radius: 10px; }
.card { max-width: 100%; margin: 0.5rem 0; }
.main {
padding: 1.5rem;
border-radius: 15px;
margin: 1rem;
}
.card {
max-width: 100%;
margin: 0;
}
.title {
font-size: 2rem;
}
}
@media (prefers-color-scheme: dark) {
@@ -219,22 +348,37 @@ a:hover {
}
body {
color: white;
background: black;
color: #e0e0e0;
background:
radial-gradient(circle at 20% 80%, rgba(255, 105, 180, 0.2) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.2) 0%, transparent 50%),
radial-gradient(circle at 40% 40%, rgba(75, 0, 130, 0.1) 0%, transparent 50%),
linear-gradient(135deg, #1a0b2e 0%, #16213e 25%, #0f3460 50%, #533483 75%, #7209b7 100%);
}
.card {
border-color: #222;
background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(50, 20, 50, 0.8) 100%);
border-color: rgba(255, 105, 180, 0.4);
color: #e0e0e0;
}
.pin.card {
background-color: #222;
background: linear-gradient(135deg, rgba(40, 20, 40, 0.9) 0%, rgba(60, 30, 60, 0.8) 100%);
}
}
/* 霓虹呼吸动画 */
@keyframes neonPulse {
0% { box-shadow: 0 0 4px rgba(0,255,247,0.08), 0 0 8px rgba(255,0,234,0.03); }
50% { box-shadow: 0 0 12px rgba(255,0,234,0.06), 0 0 24px rgba(0,255,247,0.05); }
100% { box-shadow: 0 0 4px rgba(0,255,247,0.08), 0 0 8px rgba(255,0,234,0.03); }
/* 添加更多动漫风格装饰 */
.main::after {
content: '✨';
position: absolute;
top: 20px;
right: 20px;
font-size: 2rem;
animation: sparkle 2s ease-in-out infinite;
z-index: 1;
}
@keyframes sparkle {
0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}