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 id="app">
<div class="container"> <div class="container">
<main class="main"> <main class="main">
<h1 class="title gradient">徐越的在线学习平台</h1> <h1 class="title gradient">♥️ 徐越的在线学习平台 ♥️</h1>
<h2 class="subtitle"></h2> <h2 class="subtitle"></h2>
<div class="grid" id="sites"></div> <div class="grid" id="sites"></div>
</main> </main>

322
style.css
View File

@@ -3,10 +3,42 @@ body {
padding: 0; padding: 0;
margin: 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; 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%); background:
color: #f8f8f2; 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; 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 { a {
@@ -14,15 +46,17 @@ a {
text-decoration: none; text-decoration: none;
} }
/* 霓虹链接 */ /* 动漫风格链接 */
a { a {
color: #00fff7; color: #ff69b4;
text-shadow: 0 0 3px rgba(0,255,247,0.9), 0 0 6px rgba(255,0,234,0.35); text-shadow: 0 1px 2px rgba(255, 105, 180, 0.3);
transition: color 0.18s ease, text-shadow 0.18s ease; transition: all 0.3s ease;
position: relative;
} }
a:hover { a:hover {
color: #ff00ea; color: #ff1493;
text-shadow: 0 0 6px rgba(255,0,234,0.9), 0 0 10px rgba(0,255,247,0.25); text-shadow: 0 2px 4px rgba(255, 20, 147, 0.4);
transform: translateY(-1px);
} }
* { * {
@@ -31,41 +65,64 @@ a:hover {
.container { .container {
padding: 0 2rem; padding: 0 2rem;
position: relative;
z-index: 2;
} }
.main { .main {
/* 保持居中:水平与垂直;移除最外层框和动画 */
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
padding: 2rem 0; padding: 2rem 0;
min-height: 100vh; /* 确保垂直居中 */ min-height: 100vh;
background: transparent; background: rgba(255, 255, 255, 0.1);
border-radius: 0; border-radius: 20px;
box-shadow: none; box-shadow: 0 8px 32px rgba(255, 182, 193, 0.2);
backdrop-filter: none; backdrop-filter: blur(10px);
animation: none; 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 { .title {
line-height: 1.15; line-height: 1.2;
font-size: 2rem; font-size: 2.5rem;
font-weight: bold;
text-align: center;
margin-bottom: 1rem;
} }
.title { .title {
font-family: 'Orbitron', sans-serif; font-family: 'Orbitron', sans-serif;
color: #ff00ea; color: #ff69b4;
text-shadow: 0 0 4px rgba(255,0,234,0.9), 0 0 8px rgba(0,255,247,0.28); text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
letter-spacing: 0.04em; letter-spacing: 0.02em;
animation: bounce 2s ease-in-out infinite;
} }
/* 渐变文字(用于主标题) */ /* 动漫风格渐变文字 */
.title.gradient { .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; -webkit-background-clip: text;
background-clip: text; background-clip: text;
color: transparent; 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, .title,
@@ -74,14 +131,17 @@ a:hover {
} }
.description { .description {
margin: 4rem 0; margin: 2rem 0;
line-height: 1.5; line-height: 1.6;
font-size: 1.5rem; 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 { @keyframes pulse {
color: #00fff7; 0%, 100% { opacity: 0.8; }
text-shadow: 0 0 3px rgba(0,255,247,0.10), 0 0 6px rgba(255,0,234,0.04); 50% { opacity: 1; }
} }
.grid { .grid {
@@ -89,70 +149,107 @@ a:hover {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
flex-wrap: wrap; flex-wrap: wrap;
max-width: 800px; gap: 1.5rem;
} max-width: 1000px;
margin-top: 2rem;
.grid {
gap: 1rem;
max-width: 960px;
} }
.card { .card {
width: 100%; width: 100%;
margin: 1rem; margin: 0;
padding: 1.5rem; padding: 1.5rem;
text-align: left; text-align: left;
color: inherit; color: inherit;
text-decoration: none; text-decoration: none;
border: 1px solid #eaeaea; border: 2px solid rgba(255, 182, 193, 0.3);
border-radius: 10px; border-radius: 20px;
transition: color 0.15s ease, border-color 0.15s ease; transition: all 0.3s ease;
max-width: 300px; max-width: 300px;
position: relative;
overflow: hidden;
} }
/* 赛博朋克卡片 */ /* 动漫风格卡片 */
.card { .card {
color: #f8f8f2; color: #4a4a4a;
border: 1px solid rgba(0,255,247,0.12); background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 240, 245, 0.8) 100%);
background: linear-gradient(180deg, rgba(20,0,40,0.48), rgba(5,0,20,0.52)); box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
border-radius: 12px; backdrop-filter: blur(10px);
box-shadow: 0 4px 12px rgba(0,0,0,0.55), 0 0 12px rgba(255,0,234,0.03); animation: cardFloat 4s ease-in-out infinite;
max-width: 340px; }
backdrop-filter: blur(3px);
.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 { .card.pin {
background: linear-gradient(180deg, rgba(30,0,60,0.68), rgba(10,0,30,0.72)); background: linear-gradient(135deg, rgba(255, 192, 203, 0.9) 0%, rgba(255, 182, 193, 0.8) 100%);
border-color: rgba(255,0,234,0.9); 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:hover,
.card:focus, .card:focus,
.card:active { .card:active {
color: #e6ffff; color: #ff1493;
border-color: rgba(255,0,234,0.85); border-color: rgba(255, 20, 147, 0.8);
transform: translateY(-3px); transform: translateY(-8px) scale(1.02);
box-shadow: 0 8px 20px rgba(0,0,0,0.6), 0 0 18px 4px rgba(255,0,234,0.06); box-shadow: 0 8px 25px rgba(255, 20, 147, 0.3);
} }
.card h2 { .card h2 {
margin: 0; margin: 0 0 0.5rem 0;
font-size: 1.5rem; 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 { .card:hover h2 {
color: #00fff7; color: #ff1493;
text-shadow: 0 0 3px rgba(0,255,247,0.9), 0 0 6px rgba(255,0,234,0.25); transform: scale(1.05);
} }
.card p { .card p {
margin: 0; margin: 0.5rem 0;
font-size: 1.25rem; font-size: 1rem;
line-height: 1.5; line-height: 1.4;
color: #666;
transition: all 0.3s ease;
} }
.card p { .card:hover p {
color: #dfeffd; color: #ff1493;
} }
.card .single { .card .single {
@@ -166,51 +263,83 @@ a:hover {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 1rem; margin-bottom: 1rem;
transition: all 0.3s ease;
} }
.title-icon .icon { .title-icon .icon {
width: 32px; width: 36px;
height: 32px; height: 36px;
margin-right: 12px; margin-right: 12px;
transition: all 0.3s ease;
filter: drop-shadow(0 2px 4px rgba(255, 105, 180, 0.3));
} }
.title-icon .icon { .card:hover .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)); transform: scale(1.1) rotate(5deg);
filter: drop-shadow(0 4px 8px rgba(255, 20, 147, 0.4));
} }
.beian { .beian {
margin-top: 2rem;
margin-bottom: 20px; margin-bottom: 20px;
text-align: center; 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 { .beian img {
width: 14px; width: 16px;
height: 14px; height: 16px;
margin: 0 4px; margin: 0 4px;
transition: all 0.3s ease;
}
.beian img:hover {
transform: scale(1.2) rotate(10deg);
} }
.beian a { .beian a {
text-decoration: none; text-decoration: none;
font-size: 14px; 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 { .beian {
color: #00fff7; color: #9370db;
text-shadow: 0 0 2px rgba(0,255,247,0.9); text-shadow: 1px 1px 2px rgba(147, 112, 219, 0.3);
} }
.beian a { color: #ff00ea; }
@media (max-width: 600px) { @media (max-width: 600px) {
.grid { .grid {
width: 100%; width: 100%;
flex-direction: column; flex-direction: column;
gap: 1rem;
}
.main {
padding: 1.5rem;
border-radius: 15px;
margin: 1rem;
}
.card {
max-width: 100%;
margin: 0;
}
.title {
font-size: 2rem;
} }
}
@media (max-width: 600px) {
.main { padding: 1.25rem; border-radius: 10px; }
.card { max-width: 100%; margin: 0.5rem 0; }
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
@@ -219,22 +348,37 @@ a:hover {
} }
body { body {
color: white; color: #e0e0e0;
background: black; 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 { .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 { .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 { .main::after {
0% { box-shadow: 0 0 4px rgba(0,255,247,0.08), 0 0 8px rgba(255,0,234,0.03); } content: '✨';
50% { box-shadow: 0 0 12px rgba(255,0,234,0.06), 0 0 24px rgba(0,255,247,0.05); } position: absolute;
100% { box-shadow: 0 0 4px rgba(0,255,247,0.08), 0 0 8px rgba(255,0,234,0.03); } 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; }
}