Files
linktree/style.css

303 lines
5.4 KiB
CSS
Raw Normal View History

2026-03-11 01:18:53 +08:00
/* CSS Variables & Design Tokens */
:root {
--primary-color: #6366f1;
--accent-color: #a855f7;
--bg-dark: #0f172a;
--card-bg: rgba(30, 41, 59, 0.7);
--text-primary: #f8fafc;
--text-secondary: #94a3b8;
--glass-border: rgba(255, 255, 255, 0.1);
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Base Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg-dark);
color: var(--text-primary);
line-height: 1.5;
overflow-x: hidden;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: flex-start;
padding: 2rem 1rem;
}
/* Background Blobs */
.background-blobs {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
overflow: hidden;
}
.blob {
position: absolute;
border-radius: 50%;
filter: blur(80px);
opacity: 0.4;
animation: blob-float 20s infinite alternate;
}
.blob-1 {
width: 400px;
height: 400px;
background: var(--primary-color);
top: -100px;
left: -100px;
}
.blob-2 {
width: 300px;
height: 300px;
background: var(--accent-color);
bottom: -50px;
right: -50px;
animation-delay: -5s;
}
.blob-3 {
width: 250px;
height: 250px;
background: #ec4899;
top: 40%;
left: 60%;
animation-delay: -10s;
}
@keyframes blob-float {
0% { transform: translate(0, 0) scale(1); }
100% { transform: translate(50px, 50px) scale(1.1); }
}
/* Container */
.container {
width: 100%;
max-width: 580px;
text-align: center;
position: relative;
z-index: 1;
}
/* Profile Section */
.profile {
margin-bottom: 3rem;
}
.avatar-container {
position: relative;
width: 120px;
height: 120px;
margin: 0 auto 1.5rem;
}
.avatar {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
border: 4px solid var(--glass-border);
position: relative;
z-index: 2;
}
.avatar-ring {
position: absolute;
top: -8px;
left: -8px;
right: -8px;
bottom: -8px;
border-radius: 50%;
background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
opacity: 0.5;
z-index: 1;
animation: ring-pulse 3s infinite;
}
@keyframes ring-pulse {
0% { transform: scale(1); opacity: 0.5; }
50% { transform: scale(1.05); opacity: 0.2; }
100% { transform: scale(1); opacity: 0.5; }
}
.name {
font-family: 'Outfit', sans-serif;
font-size: 2.2rem;
font-weight: 800;
margin-bottom: 0.5rem;
letter-spacing: -0.02em;
}
.bio {
color: var(--text-secondary);
font-size: 1.1rem;
max-width: 80%;
margin: 0 auto;
}
/* Links Section */
.links-container {
display: flex;
flex-direction: column;
gap: 1.2rem;
margin-bottom: 3rem;
}
.link-card {
display: flex;
align-items: center;
background: var(--card-bg);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--glass-border);
border-radius: 1.2rem;
padding: 1.2rem;
text-decoration: none;
color: inherit;
transition: var(--transition);
text-align: left;
}
.link-card:hover {
transform: translateY(-5px) scale(1.02);
background: rgba(45, 55, 72, 0.8);
border-color: rgba(255, 255, 255, 0.2);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}
.link-icon {
width: 50px;
height: 50px;
background: rgba(255, 255, 255, 0.1);
border-radius: 0.8rem;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.5rem;
margin-right: 1.2rem;
color: var(--primary-color);
transition: var(--transition);
}
.link-card:hover .link-icon {
background: var(--primary-color);
color: white;
}
.link-content {
flex: 1;
}
.link-title {
display: block;
font-weight: 600;
font-size: 1.1rem;
margin-bottom: 0.2rem;
}
.link-desc {
display: block;
font-size: 0.9rem;
color: var(--text-secondary);
}
.link-arrow {
color: var(--text-secondary);
opacity: 0.5;
transition: var(--transition);
}
.link-card:hover .link-arrow {
transform: translateX(5px);
opacity: 1;
color: var(--primary-color);
}
/* Footer Section */
.footer {
padding-bottom: 2rem;
}
.social-icons {
display: flex;
2026-05-18 12:50:25 +08:00
flex-wrap: wrap;
2026-03-11 01:18:53 +08:00
justify-content: center;
gap: 2rem;
margin-bottom: 1.5rem;
}
.social-icons a {
color: var(--text-secondary);
font-size: 1.8rem;
transition: var(--transition);
}
.social-icons a:hover {
color: var(--primary-color);
transform: scale(1.2);
}
.copyright {
color: var(--text-secondary);
font-size: 0.85rem;
opacity: 0.6;
}
/* Animations */
.animate-fade-in {
opacity: 0;
animation: fade-in 1s forwards;
}
.animate-slide-up {
opacity: 0;
transform: translateY(20px);
animation: slide-up 0.8s forwards;
}
@keyframes fade-in {
to { opacity: 1; }
}
@keyframes slide-up {
to {
opacity: 1;
transform: translateY(0);
}
}
/* Responsive Adjustments */
@media (max-width: 480px) {
body {
padding: 1.5rem 0.8rem;
}
.name {
font-size: 1.8rem;
}
.bio {
font-size: 1rem;
}
.link-icon {
width: 44px;
height: 44px;
font-size: 1.2rem;
}
2026-05-18 12:50:25 +08:00
.social-icons {
gap: 1.2rem;
}
2026-03-11 01:18:53 +08:00
}