388 lines
8.4 KiB
CSS
388 lines
8.4 KiB
CSS
html,
|
|
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(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.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 {
|
|
color: #ff69b4;
|
|
text-shadow: 0 1px 2px rgba(255, 105, 180, 0.3);
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
}
|
|
a:hover {
|
|
color: #ff1493;
|
|
text-shadow: 0 2px 4px rgba(255, 20, 147, 0.4);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.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: 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.2;
|
|
font-size: 2.5rem;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.title {
|
|
font-family: 'Orbitron', sans-serif;
|
|
color: #ff69b4;
|
|
text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
|
|
letter-spacing: 0.02em;
|
|
animation: centerRotate 4s linear infinite;
|
|
transform-origin: center;
|
|
}
|
|
|
|
/* 动漫风格渐变文字 */
|
|
.title.gradient {
|
|
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;
|
|
animation: centerRotate 4s linear infinite, rainbow 3s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes centerRotate {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
@keyframes rainbow {
|
|
0% { filter: hue-rotate(0deg); }
|
|
100% { filter: hue-rotate(360deg); }
|
|
}
|
|
|
|
.title,
|
|
.description {
|
|
text-align: center;
|
|
}
|
|
|
|
.description {
|
|
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;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 0.8; }
|
|
50% { opacity: 1; }
|
|
}
|
|
|
|
.grid {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
gap: 1.5rem;
|
|
max-width: 1000px;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.card {
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 1.5rem;
|
|
text-align: left;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
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: #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, cardRotate 8s linear infinite;
|
|
transform-origin: center;
|
|
}
|
|
|
|
.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); }
|
|
50% { transform: translateY(-5px); }
|
|
}
|
|
|
|
@keyframes cardRotate {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
.card.pin {
|
|
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, cardRotate 8s linear infinite;
|
|
transform-origin: center;
|
|
}
|
|
|
|
@keyframes pinPulse {
|
|
0%, 100% { transform: scale(1); }
|
|
50% { transform: scale(1.05); }
|
|
}
|
|
|
|
.card:hover,
|
|
.card:focus,
|
|
.card:active {
|
|
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);
|
|
animation-play-state: paused;
|
|
}
|
|
|
|
.card h2 {
|
|
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:hover h2 {
|
|
color: #ff1493;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.card p {
|
|
margin: 0.5rem 0;
|
|
font-size: 1rem;
|
|
line-height: 1.4;
|
|
color: #666;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.card:hover p {
|
|
color: #ff1493;
|
|
}
|
|
|
|
.card .single {
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
word-break: break-all;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.title-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.title-icon .icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
margin-right: 12px;
|
|
transition: all 0.3s ease;
|
|
filter: drop-shadow(0 2px 4px rgba(255, 105, 180, 0.3));
|
|
}
|
|
|
|
.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: 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: #9370db;
|
|
text-shadow: 1px 1px 2px rgba(147, 112, 219, 0.3);
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.grid {
|
|
width: 100%;
|
|
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 (prefers-color-scheme: dark) {
|
|
html {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
body {
|
|
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 {
|
|
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: linear-gradient(135deg, rgba(40, 20, 40, 0.9) 0%, rgba(60, 30, 60, 0.8) 100%);
|
|
}
|
|
}
|
|
|
|
/* 添加更多动漫风格装饰 */
|
|
.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; }
|
|
}
|